@hot-updater/console 0.36.7 → 1.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/AnalyticsCapabilityContext-BCke57-7.js +1 -0
- package/.output/public/assets/BundleActivityChart-CnsBe_1J.js +42 -0
- package/.output/public/assets/BundleIdDisplay-Dky75zLU.js +1 -0
- package/.output/public/assets/alert-C-1KvDW8.js +1 -0
- package/.output/public/assets/analytics-Bqz0c-BT.js +1 -0
- package/.output/public/assets/analytics-api-CJdrTLLO.js +1 -0
- package/.output/public/assets/api-B_Rh-uzC.js +1 -0
- package/.output/public/assets/api-keys-BurCFhzH.js +1 -0
- package/.output/public/assets/api-keys-api-BEDJdQg3.js +1 -0
- package/.output/public/assets/badge-Bf0fZ-Gx.js +1 -0
- package/.output/public/assets/chart-no-axes-combined-FaYMGmQS.js +1 -0
- package/.output/public/assets/createServerFn-gM2-LFBy.js +3 -0
- package/.output/public/assets/dialog-BS60BRr2.js +1 -0
- package/.output/public/assets/dist-DspNKfMj.js +1 -0
- package/.output/public/assets/download-O-yNBc9H.js +1 -0
- package/.output/public/assets/field-Buq148-A.js +1 -0
- package/.output/public/assets/index-kFhd2S78.js +10 -0
- package/.output/public/assets/installations-BrQ-od41.js +2 -0
- package/.output/public/assets/installations-CGlZ3ROz.js +1 -0
- package/.output/public/assets/lazyRouteComponent-rPzgA7S-.js +1 -0
- package/.output/public/assets/loader-circle-DCYF-wJl.js +1 -0
- package/.output/public/assets/preload-helper-TKOBYGYD.js +1 -0
- package/.output/public/assets/refresh-cw-n8XYbPPj.js +1 -0
- package/.output/public/assets/routes-CrdokJ80.js +1 -0
- package/.output/public/assets/routes-DcQnVajO.js +2 -0
- package/.output/public/assets/search-DLhbWw3W.js +1 -0
- package/.output/public/assets/shield-check-DE_hVuHu.js +1 -0
- package/.output/public/assets/signing-HRexfjsH.js +1 -0
- package/.output/public/assets/styles-eB4EtvFS.css +2 -0
- package/.output/public/assets/table-D8CLieHX.js +1 -0
- package/.output/public/assets/textarea-YJLTVAoq.js +1 -0
- package/.output/public/assets/useMutation-JsGVjQMY.js +1 -0
- package/.output/public/assets/useOpenInteractionType-4cRD5xO0.js +1 -0
- package/.output/server/__23tanstack-start-server-fn-resolver-DBP9TQ7K.mjs +146 -0
- package/.output/server/_libs/@base-ui/react+[...].mjs +16124 -0
- package/.output/server/_libs/@reduxjs/toolkit+[...].mjs +1554 -0
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +41 -10
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +132 -0
- package/.output/server/_libs/d3-array.mjs +231 -0
- package/.output/server/_libs/d3-color.mjs +330 -0
- package/.output/server/_libs/d3-format.mjs +252 -0
- package/.output/server/_libs/d3-interpolate.mjs +207 -0
- package/.output/server/_libs/d3-path.mjs +77 -0
- package/.output/server/_libs/d3-scale+[...].mjs +1907 -0
- package/.output/server/_libs/d3-shape.mjs +818 -0
- package/.output/server/_libs/decimal.js-light.mjs +884 -0
- package/.output/server/_libs/es-toolkit.mjs +1134 -0
- package/.output/server/_libs/eventemitter3.mjs +236 -0
- package/.output/server/_libs/immer.mjs +532 -0
- package/.output/server/_libs/lucide-react.mjs +141 -13
- package/.output/server/_libs/next-themes.mjs +2 -2
- package/.output/server/_libs/react-redux+[...].mjs +205 -0
- package/.output/server/_libs/recharts+[...].mjs +14117 -0
- package/.output/server/_libs/sonner.mjs +2 -2
- package/.output/server/_libs/tanstack__query-core.mjs +114 -1
- package/.output/server/_libs/tanstack__react-query.mjs +3 -4
- package/.output/server/_runtime.mjs +10 -1
- package/.output/server/_ssr/AnalyticsCapabilityContext-ui4DX8GO.mjs +15 -0
- package/.output/server/_ssr/BundleActivityChart-BiB9ZORH.mjs +288 -0
- package/.output/server/_ssr/BundleIdDisplay-Czk6iR6p.mjs +13 -0
- package/.output/server/_ssr/alert-Dim3MGY5.mjs +86 -0
- package/.output/server/_ssr/analytics-DtMTn8fn.mjs +858 -0
- package/.output/server/_ssr/analytics-api-Cg1M5v_H.mjs +71 -0
- package/.output/server/_ssr/analytics-input-fRRRn0uA.mjs +96 -0
- package/.output/server/_ssr/analytics-rpc-DY5uXvHT.mjs +155 -0
- package/.output/server/_ssr/api-BTSv1tZb.mjs +282 -0
- package/.output/server/_ssr/api-keys-BnM_o2nS.mjs +300 -0
- package/.output/server/_ssr/api-keys-api-CIywsSF5.mjs +60 -0
- package/.output/server/_ssr/api-keys-rpc-BSp1wkIV.mjs +136 -0
- package/.output/server/_ssr/api-rpc-cG5wd_tO.mjs +1468 -0
- package/.output/server/_ssr/auth-BF8mbAgF.mjs +21 -0
- package/.output/server/_ssr/auth-rpc-BrJ6obHJ.mjs +24 -0
- package/.output/server/_ssr/auth.server-DwKoZoQM.mjs +50 -0
- package/.output/server/_ssr/badge-DCxbEeof.mjs +26 -0
- package/.output/server/_ssr/bundle-signing-rpc-COoQhW8E.mjs +16 -0
- package/.output/server/_ssr/bundle-signing.server-D5u8KkMp.mjs +51 -0
- package/.output/server/_ssr/config-Dv8qLDZ0.mjs +13 -0
- package/.output/server/_ssr/config.server-DEiLhKmy.mjs +361 -0
- package/.output/server/_ssr/{createServerFn-DzU0k62V.mjs → createServerFn-B2hcXoPM.mjs} +1 -1
- package/.output/server/_ssr/createServerRpc-DB29C_5p.mjs +12 -0
- package/.output/server/_ssr/{sidebar-Cv_H0_Jv.mjs → createSsrRpc-9P0S0lJ3.mjs} +68 -50
- package/.output/server/_ssr/databaseRows-CwbNwYSl.mjs +166 -0
- package/.output/server/_ssr/deleteBundle-Cu_XOMt0.mjs +66 -0
- package/.output/server/_ssr/dialog-CQuRMNZ4.mjs +170 -0
- package/.output/server/_ssr/dist-BVSLTpoP.mjs +250 -0
- package/.output/server/_ssr/downloadBundle-CNnYxYO2.mjs +24 -0
- package/.output/server/_ssr/{empty-plugin-adapters-B4HCzgmM.mjs → empty-plugin-adapters-B5QvGpEl.mjs} +1 -1
- package/.output/server/_ssr/field-DRIXKjZG.mjs +74 -0
- package/.output/server/_ssr/{getBundleChildren-CVtSiH5t.mjs → getBundleChildren-BcRMFoDF.mjs} +10 -18
- package/.output/server/_ssr/installations-B-azgAvX.mjs +19 -0
- package/.output/server/_ssr/installations-Ctvzp2JH.mjs +535 -0
- package/.output/server/_ssr/router-C-KUBfOi.mjs +513 -0
- package/.output/server/_ssr/routes-BM4ht9jb.mjs +2286 -0
- package/.output/server/_ssr/routes-Z7TwC6nC.mjs +37 -0
- package/.output/server/_ssr/runtime.server-awTLiiXW.mjs +527 -0
- package/.output/server/_ssr/server-BjzmvXnO.mjs +7468 -0
- package/.output/server/_ssr/signing-k8GxyBDF.mjs +202 -0
- package/.output/server/_ssr/ssr.mjs +4 -5740
- package/.output/server/_ssr/start-DpViQGnt.mjs +4 -0
- package/.output/server/_ssr/table-v1yCvYo7.mjs +53 -0
- package/.output/server/_ssr/textarea-DYHnskhb.mjs +14 -0
- package/.output/server/_ssr/uuidv7-BbJ-9D_I.mjs +31 -0
- package/.output/server/_tanstack-start-manifest_v-CH4StzJu.mjs +108 -0
- package/.output/server/index.mjs +256 -53
- package/README.md +29 -8
- package/lib/index.d.mts +36 -0
- package/lib/index.mjs +4 -0
- package/lib/vite-internal.mjs +127 -0
- package/lib/vite.d.mts +10 -0
- package/lib/vite.mjs +5 -0
- package/package.json +51 -29
- package/public/apple-touch-icon.png +0 -0
- package/public/favicon-16x16.png +0 -0
- package/public/favicon-32x32.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/logo.svg +1 -0
- package/public/manifest.json +30 -0
- package/public/robots.txt +3 -0
- package/src/components/AppSidebar.tsx +159 -0
- package/src/components/BundleIdDisplay.tsx +18 -0
- package/src/components/ChannelBadge.tsx +31 -0
- package/src/components/ConsoleAccessPage.tsx +122 -0
- package/src/components/EnabledStatusIcon.tsx +54 -0
- package/src/components/HashValueDisplay.tsx +85 -0
- package/src/components/HotUpdaterLogo.tsx +30 -0
- package/src/components/NotFoundPage.tsx +33 -0
- package/src/components/PlatformIcon.tsx +39 -0
- package/src/components/RolloutPercentageBadge.tsx +28 -0
- package/src/components/ThemeProvider.tsx +116 -0
- package/src/components/TimestampDisplay.tsx +41 -0
- package/src/components/features/analytics/ActivityChart.tsx +150 -0
- package/src/components/features/analytics/AnalyticsCapabilityContext.tsx +24 -0
- package/src/components/features/analytics/AnalyticsControls.tsx +115 -0
- package/src/components/features/analytics/AnalyticsErrorAlert.tsx +21 -0
- package/src/components/features/analytics/AnalyticsOverview.tsx +208 -0
- package/src/components/features/analytics/BundleDistribution.tsx +133 -0
- package/src/components/features/analytics/BundleSelector.tsx +114 -0
- package/src/components/features/analytics/InstallationHistoryCard.tsx +248 -0
- package/src/components/features/analytics/InstallationMatchesCard.tsx +132 -0
- package/src/components/features/analytics/InstallationPageHeader.tsx +138 -0
- package/src/components/features/analytics/InstallationPagination.tsx +48 -0
- package/src/components/features/analytics/InstallationSearch.tsx +230 -0
- package/src/components/features/analytics/UpdateOutcomes.tsx +147 -0
- package/src/components/features/api-keys/ApiKeysPage.tsx +377 -0
- package/src/components/features/bundles/BundleActivityChart.tsx +193 -0
- package/src/components/features/bundles/BundleAnalyticsSummary.tsx +123 -0
- package/src/components/features/bundles/BundleChildrenPanel.tsx +201 -0
- package/src/components/features/bundles/BundleMetadata.tsx +136 -0
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +201 -0
- package/src/components/features/channels/ChannelManagementDialog.tsx +228 -0
- package/src/components/features/releases/ReleaseEditorSheet.tsx +879 -0
- package/src/components/features/releases/ReleaseStateBadge.tsx +20 -0
- package/src/components/features/signing/BundleSigningPage.tsx +247 -0
- package/src/components/ui/alert-dialog.tsx +185 -0
- package/src/components/ui/alert.tsx +76 -0
- package/src/components/ui/badge.tsx +49 -0
- package/src/components/ui/button.tsx +58 -0
- package/src/components/ui/card.tsx +89 -0
- package/src/components/ui/chart.tsx +371 -0
- package/src/components/ui/combobox.tsx +303 -0
- package/src/components/ui/dialog.tsx +156 -0
- package/src/components/ui/dropdown-menu.tsx +270 -0
- package/src/components/ui/field.tsx +235 -0
- package/src/components/ui/input-group.tsx +147 -0
- package/src/components/ui/input.tsx +19 -0
- package/src/components/ui/label.tsx +25 -0
- package/src/components/ui/progress.tsx +84 -0
- package/src/components/ui/select.tsx +205 -0
- package/src/components/ui/separator.tsx +23 -0
- package/src/components/ui/sheet.tsx +132 -0
- package/src/components/ui/sidebar.tsx +779 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/components/ui/slider.tsx +56 -0
- package/src/components/ui/sonner.tsx +45 -0
- package/src/components/ui/switch.tsx +25 -0
- package/src/components/ui/table.tsx +114 -0
- package/src/components/ui/textarea.tsx +18 -0
- package/src/components/ui/toggle-group.tsx +89 -0
- package/src/components/ui/toggle.tsx +43 -0
- package/src/components/ui/tooltip.tsx +66 -0
- package/src/hooks/use-mobile.ts +30 -0
- package/src/index.ts +48 -0
- package/src/lib/analytics-api.ts +145 -0
- package/src/lib/analytics-error.ts +19 -0
- package/src/lib/analytics-input.ts +187 -0
- package/src/lib/analytics-overview.ts +170 -0
- package/src/lib/analytics-rpc.ts +218 -0
- package/src/lib/api-keys-api.ts +69 -0
- package/src/lib/api-keys-rpc.ts +87 -0
- package/src/lib/api-rpc.ts +478 -0
- package/src/lib/api.ts +444 -0
- package/src/lib/auth-rpc.ts +16 -0
- package/src/lib/bundle-signing-api.ts +14 -0
- package/src/lib/bundle-signing-rpc.ts +16 -0
- package/src/lib/constants.ts +1 -0
- package/src/lib/git.ts +51 -0
- package/src/lib/server/auth.server.ts +43 -0
- package/src/lib/server/bundle-signing.server.ts +100 -0
- package/src/lib/server/config.server.ts +109 -0
- package/src/lib/server/console-runtime.server.ts +70 -0
- package/src/lib/server/deleteBundle.ts +145 -0
- package/src/lib/server/downloadBundle.ts +46 -0
- package/src/lib/server/getBundleChildren.ts +130 -0
- package/src/lib/server/listReleases.ts +61 -0
- package/src/lib/server/releaseActivity.ts +27 -0
- package/src/lib/server/releaseReachability.ts +95 -0
- package/src/lib/server/runtime.server.ts +172 -0
- package/src/lib/utils.ts +9 -0
- package/src/logo.svg +1 -0
- package/src/routeTree.gen.ts +199 -0
- package/src/router.tsx +21 -0
- package/src/routes/-installations-search.ts +19 -0
- package/src/routes/-releases-search.ts +74 -0
- package/src/routes/__root.tsx +174 -0
- package/src/routes/analytics.tsx +139 -0
- package/src/routes/api/auth/$.ts +19 -0
- package/src/routes/api/bundles/$bundleId/download.ts +17 -0
- package/src/routes/api-keys.tsx +37 -0
- package/src/routes/index.tsx +982 -0
- package/src/routes/installations.tsx +194 -0
- package/src/routes/signing.tsx +37 -0
- package/src/styles.css +152 -0
- package/src/virtual-modules.d.ts +21 -0
- package/src/vite-env.d.ts +1 -0
- package/src/vite-internal.ts +195 -0
- package/src/vite.ts +12 -0
- package/.output/public/assets/dist-DJX53faP.js +0 -3
- package/.output/public/assets/index-Iylis5kY.js +0 -10
- package/.output/public/assets/routes-HT21hs0C.js +0 -54
- package/.output/public/assets/styles-C0Re4quB.css +0 -2
- package/.output/server/__23tanstack-start-server-fn-resolver-CgwgZ0-i.mjs +0 -66
- package/.output/server/_libs/@floating-ui/core+[...].mjs +0 -698
- package/.output/server/_libs/@floating-ui/dom+[...].mjs +0 -644
- package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +0 -839
- package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +0 -2138
- package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +0 -308
- package/.output/server/_libs/@radix-ui/react-select+[...].mjs +0 -1038
- package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +0 -196
- package/.output/server/_libs/@tanstack/form-core+[...].mjs +0 -3228
- package/.output/server/_libs/@tanstack/react-form+[...].mjs +0 -430
- package/.output/server/_libs/@tanstack/react-table+[...].mjs +0 -2382
- package/.output/server/_libs/radix-ui__number.mjs +0 -6
- package/.output/server/_libs/radix-ui__primitive.mjs +0 -9
- package/.output/server/_libs/radix-ui__react-arrow.mjs +0 -23
- package/.output/server/_libs/radix-ui__react-collection.mjs +0 -78
- package/.output/server/_libs/radix-ui__react-direction.mjs +0 -13
- package/.output/server/_libs/radix-ui__react-label.mjs +0 -22
- package/.output/server/_libs/radix-ui__react-separator.mjs +0 -30
- package/.output/server/_libs/radix-ui__react-slider.mjs +0 -510
- package/.output/server/_libs/radix-ui__react-switch.mjs +0 -157
- package/.output/server/_libs/radix-ui__react-tooltip.mjs +0 -493
- package/.output/server/_ssr/api-rpc-BIbDUKSz.mjs +0 -292
- package/.output/server/_ssr/config.server-BSS366KT.mjs +0 -41
- package/.output/server/_ssr/deleteBundle-BgbZTtpW.mjs +0 -141
- package/.output/server/_ssr/dist-KboydRVk.mjs +0 -120
- package/.output/server/_ssr/router-C3hqEy3k.mjs +0 -307
- package/.output/server/_ssr/routes-B0lQvvlC.mjs +0 -3048
- package/.output/server/_ssr/start-02sLteYG.mjs +0 -4
- package/.output/server/_ssr/storageProfile-FVkjPoGb.mjs +0 -9
- package/.output/server/_tanstack-start-manifest_v-Bpx52WOU.mjs +0 -20
- package/.output/server/node_modules/tslib/modules/index.js +0 -70
- package/.output/server/node_modules/tslib/modules/package.json +0 -3
- package/.output/server/node_modules/tslib/package.json +0 -47
- package/.output/server/node_modules/tslib/tslib.js +0 -484
- package/.output/server/package.json +0 -9
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/installations-CGlZ3ROz.js","assets/createServerFn-gM2-LFBy.js","assets/lazyRouteComponent-rPzgA7S-.js","assets/AnalyticsCapabilityContext-BCke57-7.js","assets/field-Buq148-A.js","assets/search-DLhbWw3W.js","assets/BundleIdDisplay-Dky75zLU.js","assets/alert-C-1KvDW8.js","assets/badge-Bf0fZ-Gx.js","assets/api-B_Rh-uzC.js","assets/useMutation-JsGVjQMY.js","assets/textarea-YJLTVAoq.js","assets/table-D8CLieHX.js","assets/analytics-api-CJdrTLLO.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e,t}from"./lazyRouteComponent-rPzgA7S-.js";import{t as n}from"./analytics-api-CJdrTLLO.js";import{t as r}from"./preload-helper-TKOBYGYD.js";function i(e){return{query:typeof e.query==`string`?e.query:void 0,installId:typeof e.installId==`string`?e.installId:void 0,searchOffset:typeof e.searchOffset==`number`&&Number.isSafeInteger(e.searchOffset)&&e.searchOffset>=0?e.searchOffset:0,historyOffset:typeof e.historyOffset==`number`&&Number.isSafeInteger(e.historyOffset)&&e.historyOffset>=0?e.historyOffset:0}}var a=e(`/installations`)({beforeLoad:({context:e})=>n(e.queryClient),component:t(()=>r(()=>import(`./installations-CGlZ3ROz.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),`component`),validateSearch:i});export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Cn as e,En as t,Lr as n,Pr as r,Qn as i,Sn as a,Tn as o,Zn as s,ir as c,m as l}from"./createServerFn-gM2-LFBy.js";import{i as u}from"./lazyRouteComponent-rPzgA7S-.js";import{n as d}from"./AnalyticsCapabilityContext-BCke57-7.js";import{a as f,c as p,i as m,n as h,s as g,t as _}from"./field-Buq148-A.js";import{t as v}from"./search-DLhbWw3W.js";import{r as ee}from"./analytics-api-CJdrTLLO.js";import{t as y}from"./installations-BrQ-od41.js";import{b as te,d as b,u as x,v as S,x as C,y as w}from"./api-B_Rh-uzC.js";import{a as T,i as E,l as D,o as O,r as k,s as A,t as j,u as M}from"./alert-C-1KvDW8.js";import{t as N}from"./badge-Bf0fZ-Gx.js";import{a as P,i as F,n as ne,o as I,r as L,t as R}from"./table-D8CLieHX.js";import{t as z}from"./BundleIdDisplay-Dky75zLU.js";var B=i(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),V=n(r()),H=c();function U({label:e,limit:t,offset:n,pageLength:r,total:i,onOffsetChange:a}){return(0,H.jsxs)(`nav`,{"aria-label":`${e} pagination`,className:`flex items-center justify-between gap-4 border-t px-5 py-5`,children:[(0,H.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[n+1,`–`,Math.min(n+r,i),` of `,i]}),(0,H.jsxs)(`div`,{className:`flex gap-2`,children:[(0,H.jsx)(o,{disabled:n===0,onClick:()=>a(Math.max(0,n-t)),size:`sm`,type:`button`,variant:`outline`,children:`Previous`}),(0,H.jsx)(o,{disabled:n+r>=i,onClick:()=>a(n+t),size:`sm`,type:`button`,variant:`outline`,children:`Next`})]})]})}var W=e=>{if(!e)return`—`;let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?`—`:new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1,timeZone:`UTC`}).format(t)},G=e=>e.userId??e.username??`—`,K=e=>`lastKnownBundleId`in e?e.lastKnownBundleId:e.toBundleId??e.fromBundleId;function q({error:t,history:n,isLoading:r,limit:i,offset:o,onOffsetChange:c,selectedEvent:l,selectedInstallId:u}){let d=l?K(l):void 0;return(0,H.jsxs)(T,{className:`min-h-0 min-w-0`,children:[(0,H.jsx)(D,{className:`p-6 pb-5`,children:(0,H.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[(0,H.jsx)(M,{className:`text-sm font-medium`,children:(0,H.jsx)(`h2`,{children:u?`Installation history`:`Select an installation`})}),(0,H.jsx)(A,{children:u?`Recorded bundle changes for this installation.`:`Choose a match to view its recorded bundle changes.`})]}),n&&n.pagination.total>0?(0,H.jsxs)(N,{variant:`outline`,children:[n.pagination.total,` events`]}):null]})}),(0,H.jsx)(O,{className:`min-h-0 p-0`,children:u?r?(0,H.jsxs)(`div`,{className:`flex flex-col gap-3 p-5`,children:[(0,H.jsx)(a,{className:`h-10 w-full`}),(0,H.jsx)(a,{className:`h-10 w-full`}),(0,H.jsx)(a,{className:`h-10 w-full`})]}):n&&n.data.length>0?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`section`,{"aria-labelledby":`latest-installation-state`,className:`px-6 pb-6`,children:[(0,H.jsx)(`h3`,{className:`text-xs font-medium`,id:`latest-installation-state`,children:`Latest reported state`}),(0,H.jsxs)(`dl`,{className:`mt-4 grid gap-6 xl:grid-cols-3`,children:[(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Installation`}),(0,H.jsx)(`dd`,{className:`mt-1 font-mono text-xs`,children:(0,H.jsx)(z,{bundleId:u})})]}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`User ID`}),(0,H.jsx)(`dd`,{className:`mt-1 truncate text-xs font-medium`,children:l?G(l):`—`})]}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Last known bundle`}),(0,H.jsx)(`dd`,{className:`mt-1 font-mono text-xs`,children:d?(0,H.jsx)(z,{bundleId:d}):`—`})]})]})]}),(0,H.jsx)(e,{}),(0,H.jsxs)(R,{className:`min-w-3xl table-fixed`,children:[(0,H.jsx)(P,{children:(0,H.jsxs)(I,{className:`hover:bg-transparent [&>th]:h-12 [&>th]:px-5`,children:[(0,H.jsx)(F,{className:`w-1/5 whitespace-normal`,children:`Reported (UTC)`}),(0,H.jsx)(F,{className:`w-1/6 whitespace-normal`,children:`App version`}),(0,H.jsx)(F,{className:`w-1/5 whitespace-normal`,children:`Change`}),(0,H.jsx)(F,{className:`whitespace-normal`,children:`Bundle transition`})]})}),(0,H.jsx)(ne,{children:n.data.map(e=>(0,H.jsxs)(I,{className:`[&>td]:px-5 [&>td]:py-4`,children:[(0,H.jsx)(L,{className:`whitespace-normal align-top text-sm text-muted-foreground`,children:W(e.receivedAtMs)}),(0,H.jsx)(L,{className:`whitespace-normal align-top font-mono text-xs`,children:e.appVersion}),(0,H.jsx)(L,{className:`whitespace-normal align-top`,children:(0,H.jsx)(N,{variant:`secondary`,children:e.type===`UPDATE_APPLIED`?`Bundle applied`:`Recovered`})}),(0,H.jsx)(L,{className:`whitespace-normal align-top`,children:(0,H.jsxs)(`div`,{className:`grid grid-cols-[2rem_minmax(0,1fr)] gap-x-3 gap-y-3`,children:[(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`From`}),e.fromBundleId?(0,H.jsx)(z,{bundleId:e.fromBundleId}):`—`,(0,H.jsx)(`span`,{className:`text-muted-foreground`,children:`To`}),e.toBundleId?(0,H.jsx)(z,{bundleId:e.toBundleId}):`—`]})})]},e.id))})]}),(0,H.jsx)(U,{label:`Installation history`,limit:i,offset:o,pageLength:n.data.length,total:n.pagination.total,onOffsetChange:c})]}):t?(0,H.jsx)(`div`,{className:`p-5 pt-0`,children:(0,H.jsxs)(j,{variant:`destructive`,children:[(0,H.jsx)(s,{"aria-hidden":`true`}),(0,H.jsx)(E,{children:`Installation history unavailable`}),(0,H.jsx)(k,{children:t instanceof Error?t.message:`Failed to load installation history.`})]})}):(0,H.jsx)(`div`,{className:`p-5 pt-0 text-sm text-muted-foreground`,children:`No history is available for this installation.`}):(0,H.jsx)(`div`,{className:`p-5 pt-0 text-sm text-muted-foreground`,children:`Choose an installation to inspect its update history.`})})]})}var J=e=>e.lastKnownBundleId,Y=e=>e.userId??e.username??`—`;function X({error:e,limit:t,offset:n,onOffsetChange:r,onSelect:i,results:a,selectedInstallId:o}){return(0,H.jsxs)(T,{className:`min-h-0 min-w-0`,children:[(0,H.jsx)(D,{className:`p-6 pb-5`,children:(0,H.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[(0,H.jsx)(M,{className:`text-sm font-medium`,children:(0,H.jsx)(`h2`,{children:`Matching installations`})}),(0,H.jsx)(A,{children:`Select a row to review its bundle history.`})]}),(0,H.jsx)(N,{variant:`outline`,children:a?.pagination.total??0})]})}),(0,H.jsxs)(O,{className:`min-h-0 p-0`,children:[a&&a.data.length>0?(0,H.jsx)(`ul`,{"aria-label":`Matching installations`,className:`divide-y`,children:a.data.map(e=>{let t=J(e),n=e.installId===o;return(0,H.jsx)(`li`,{children:(0,H.jsxs)(`button`,{"aria-pressed":n,className:`group flex w-full min-w-0 flex-col gap-4 border-l-2 border-transparent px-6 py-5 text-left outline-none transition-colors hover:bg-muted/40 focus-visible:border-ring focus-visible:bg-muted/40 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/30 aria-pressed:border-primary aria-pressed:bg-muted/60`,onClick:()=>i(e.installId),type:`button`,children:[(0,H.jsxs)(`span`,{className:`flex w-full min-w-0 items-center justify-between gap-3`,children:[(0,H.jsx)(`span`,{className:`min-w-0 truncate text-sm font-medium`,children:Y(e)}),n?(0,H.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 text-xs font-medium text-primary`,children:[(0,H.jsx)(p,{"aria-hidden":`true`,className:`size-3.5`}),`Selected`]}):null]}),(0,H.jsx)(z,{bundleId:e.installId,className:`block text-muted-foreground`}),(0,H.jsxs)(`span`,{className:`min-w-0`,children:[(0,H.jsx)(`span`,{className:`mb-1 block text-xs text-muted-foreground`,children:`Last known bundle`}),t?(0,H.jsx)(z,{bundleId:t}):(0,H.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`—`})]})]})},e.installId)})}):e?(0,H.jsx)(`div`,{className:`p-5`,children:(0,H.jsxs)(j,{variant:`destructive`,children:[(0,H.jsx)(s,{"aria-hidden":`true`}),(0,H.jsx)(E,{children:`Installation search unavailable`}),(0,H.jsx)(k,{children:e instanceof Error?e.message:`Failed to load installations.`})]})}):(0,H.jsx)(`div`,{className:`p-5 text-sm text-muted-foreground`,children:`No installations matched that query.`}),a&&a.pagination.total>0?(0,H.jsx)(U,{label:`Installation results`,limit:t,offset:n,pageLength:a.data.length,total:a.pagination.total,onOffsetChange:r}):null]})]})}function Z(){return(0,H.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-2 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,H.jsx)(l,{className:`-ml-1`}),(0,H.jsxs)(u,{className:t({size:`sm`,variant:`ghost`}),to:`/analytics`,children:[(0,H.jsx)(B,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Back to Analytics`]}),(0,H.jsx)(e,{className:`mx-1 hidden h-4 sm:block`,orientation:`vertical`}),(0,H.jsxs)(`div`,{className:`basis-full pl-9 sm:basis-auto sm:pl-0`,children:[(0,H.jsx)(`h1`,{className:`text-sm font-medium`,children:`Installation history`}),(0,H.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Review the last known bundle and recorded changes.`})]})]})}function re({draftQuery:e,onDraftQueryChange:t,onSubmit:n,onClear:r,hasQuery:i}){return(0,H.jsx)(T,{children:(0,H.jsxs)(O,{className:`grid gap-4 p-4 lg:grid-cols-[minmax(12rem,0.45fr)_minmax(0,1.55fr)] lg:items-start`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[(0,H.jsx)(M,{className:`text-sm font-medium`,children:(0,H.jsx)(`h2`,{children:`Find an installation`})}),(0,H.jsx)(A,{children:`Search by either identifier to inspect its bundle history.`})]}),(0,H.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),n()},role:`search`,children:(0,H.jsx)(m,{children:(0,H.jsxs)(_,{children:[(0,H.jsx)(f,{htmlFor:`installation-history-search`,children:`User ID or install ID`}),(0,H.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row`,children:[(0,H.jsxs)(S,{className:`h-8`,children:[(0,H.jsx)(w,{children:(0,H.jsx)(v,{"aria-hidden":`true`})}),(0,H.jsx)(C,{id:`installation-history-search`,onChange:e=>t(e.target.value),placeholder:`Enter a user ID or install ID`,type:`search`,value:e}),e.length>0||i?(0,H.jsx)(w,{align:`inline-end`,children:(0,H.jsx)(te,{"aria-label":`Clear search`,onClick:r,size:`icon-xs`,children:(0,H.jsx)(g,{"aria-hidden":`true`})})}):null]}),(0,H.jsxs)(o,{className:`w-full sm:w-auto`,disabled:e.trim().length===0,size:`lg`,type:`submit`,children:[(0,H.jsx)(v,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Search history`]})]}),(0,H.jsx)(h,{children:`A user ID may return more than one installation. An install ID opens one installation directly.`})]})})})]})})}function ie(){return(0,H.jsxs)(`div`,{className:`grid items-stretch gap-6 lg:min-h-96 lg:grid-cols-[minmax(18rem,20rem)_minmax(0,1fr)]`,children:[(0,H.jsx)(a,{className:`h-64 w-full lg:h-full`}),(0,H.jsx)(a,{className:`h-64 w-full lg:h-full`})]})}var Q=20,$=50;function ae(){let e=ee(d()),t=y.useSearch(),n=y.useNavigate(),[r,i]=(0,V.useState)(t.query??``);(0,V.useEffect)(()=>{i(t.query??``)},[t.query]);let a=t.query?.trim()??``,{data:o,error:s,isLoading:c}=b({query:a,limit:Q,offset:t.searchOffset},e),l=t.installId??``,u=o?.data[0]?.installId;(0,V.useEffect)(()=>{l||!u||n({to:`/installations`,search:{query:t.query,installId:u,searchOffset:t.searchOffset,historyOffset:0},replace:!0})},[u,n,t.query,t.searchOffset,l]);let{data:f,error:p,isLoading:m}=x({installId:l,limit:$,offset:t.historyOffset},e),h=(0,V.useMemo)(()=>o?.data.find(e=>e.installId===l)??null,[o?.data,l])??f?.data[0],g=(e,t=!1)=>{n({to:`/installations`,search:{query:e.query,installId:e.installId,searchOffset:e.searchOffset??0,historyOffset:e.historyOffset??0},replace:t})},_=a.length>0||l.length>0;return(0,H.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,H.jsx)(Z,{}),(0,H.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,H.jsxs)(`div`,{className:`mx-auto flex w-full max-w-7xl flex-col gap-6`,children:[(0,H.jsx)(re,{draftQuery:r,hasQuery:_,onClear:()=>{i(``),g({query:void 0,installId:void 0})},onDraftQueryChange:i,onSubmit:()=>{g({query:r.trim()||void 0,installId:void 0})}}),_?c?(0,H.jsx)(ie,{}):(0,H.jsxs)(`div`,{className:`grid min-h-0 min-w-0 items-stretch gap-6 lg:min-h-96 lg:grid-cols-[minmax(18rem,20rem)_minmax(0,1fr)]`,children:[(0,H.jsx)(X,{error:s,limit:Q,offset:t.searchOffset,results:o,selectedInstallId:l,onOffsetChange:e=>g({query:t.query,installId:void 0,searchOffset:e,historyOffset:0}),onSelect:e=>g({query:t.query,installId:e,searchOffset:t.searchOffset})}),(0,H.jsx)(q,{error:p,history:f,isLoading:m,limit:$,offset:t.historyOffset,selectedEvent:h,selectedInstallId:l,onOffsetChange:e=>g({query:t.query,installId:l,searchOffset:t.searchOffset,historyOffset:e})})]}):null]})})]})}export{ae as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$n as e,Dr as t,Lr as n,Nr as r,Pr as i,ir as a,jr as o}from"./createServerFn-gM2-LFBy.js";import{c as s,i as c,o as l,r as u,s as d}from"./AnalyticsCapabilityContext-BCke57-7.js";function f(e){return e[e.length-1]}function p(e){return typeof e==`function`}function m(e,t){return p(e)?e(t):e}var h=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;function _(e){for(let t in e)if(h.call(e,t))return!0;return!1}var v=()=>Object.create(null),y=(e,t)=>b(e,t,v);function b(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=w(e)&&w(i);if(!a&&!(S(e)&&S(i)))return i;let o=a?e:x(e);if(!o)return i;let s=a?i:x(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;t<l;t++){let o=a?t:s[t],l=e[o],f=i[o];if(l===f){u[o]=l,(a?t<c:h.call(e,o))&&d++;continue}if(l===null||f===null||typeof l!=`object`||typeof f!=`object`){u[o]=f;continue}let p=b(l,f,n,r+1);u[o]=p,p===l&&d++}return c===l&&d===c?e:u}function x(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!g.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;let r=t;for(let t of n){if(!g.call(e,t))return!1;r.push(t)}return r}function S(e){if(!C(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!C(n)||!n.hasOwnProperty(`isPrototypeOf`))}function C(e){return Object.prototype.toString.call(e)===`[object Object]`}function w(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function T(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!T(e[r],t[r],n))return!1;return!0}if(S(e)&&S(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!T(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!T(e[o],t[o],n)))return!1;return i===a}return!1}function E(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function D(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function O(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function k(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function A(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return k(t)}var j=[`http:`,`https:`,`mailto:`,`tel:`];function ee(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var te={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},ne=/[&><\u2028\u2029]/g;function re(e){return e.replace(ne,e=>te[e])}function ie(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=A(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=A(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function ae(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function oe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function M(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var N=4,se=5;function ce(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function le(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=ce(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2<a.length&&a.charCodeAt(r+2)===36){let e=r+3,a=s;if(e<a)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+a,n[4]=t+s+1,n[5]=i,n}}else if(c===36){let a=r+1,o=r+2;return o===s?(n[0]=2,n[1]=t+r,n[2]=t+a,n[3]=t+o,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+o,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function P(e,t,n,r,i,a,o){o?.(n);let s=r;{let r=n.fullPath??n.from,o=r.length,c=n.options?.caseSensitive??e,l=n.options?.params?.parse??n.options?.parseParams;for(;s<o;){let e=le(r,s,t),o,u=s,d=e[5];switch(s=d+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(c){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=L(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=L(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.dynamic?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=R(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=R(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=R(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=L(n.fullPath??n.from);e.kind=se,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=L(n.fullPath??n.from);e.kind=N,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)P(e,t,r,s,i,a,o)}function F(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function I(e){if(e.pathless)for(let t of e.pathless)I(t);if(e.static)for(let t of e.static.values())I(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())I(t);if(e.dynamic?.length){e.dynamic.sort(F);for(let t of e.dynamic)I(t)}if(e.optional?.length){e.optional.sort(F);for(let t of e.optional)I(t)}if(e.wildcard?.length){e.wildcard.sort(F);for(let t of e.wildcard)I(t)}}function L(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function R(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function ue(e,t){let n=L(`/`),r=new Uint16Array(6);for(let t of e)P(!1,r,t,1,n,0);I(n),t.masksTree=n,t.flatCache=M(1e3)}function z(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=W(e,t.masksTree);return t.flatCache.set(e,r),r}function B(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=L(`/`),P(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),W(r,o,n)}function V(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=W(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=de(a.route)),t.matchCache.set(r,a),a}function H(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function U(e,t=!1,n){let r=L(e.fullPath),i=new Uint16Array(6),a={},s={},c=0;return P(t,i,e,1,r,0,e=>{if(n?.(e,c),e.id in a&&o(),a[e.id]=e,c!==0&&e.path){let t=H(e.fullPath);(!s[t]||e.fullPath.endsWith(`/`))&&(s[t]=e)}c++}),I(r),{processedTree:{segmentTree:r,singleCache:M(1e3),matchCache:M(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:s}}function W(e,t,n=!1){let r=e.split(`/`),i=pe(e,r,t,n);if(!i)return null;let[a]=G(e,r,i);return{route:i.node.route,rawParams:a}}function G(e,t,n){let r=fe(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===N)break;if(u.kind===se){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0;if(e.charCodeAt(t)===123){let n=u.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0,r=u.suffix?.length??0,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function de(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function fe(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function pe(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!f(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,depth:f,statics:p,dynamics:m,optionals:h}=n,{extract:g,rawParams:_}=n;if(i.kind===2&&i.route&&!J(l,n))continue;if(i.parse){if(!q(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==N&&J(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===N||i.kind===2)&&J(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let y=v?void 0:t[u],b;if(v&&i.index){let n={node:i.index,index:u,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_},r=!0;if(i.index.parse&&(q(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&me(p,o))return n;J(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<<f,t=f+1;for(let n=i.optional.length-1;n>=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+K(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+K(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+K(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+K(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function K(e,t){return 2**(e-t-1)}function me(e,t){return e===2**(t-1)-1}function q(e,t,n){let r,i;try{[r,i]=G(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function J(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===N)>(e.node.kind===N)||t.node.kind===N==(e.node.kind===N)&&t.depth>e.depth))):!0}function Y(e){return he(e.filter(e=>e!==void 0).join(`/`))}function he(e){return e.replace(/\/{2,}/g,`/`)}function ge(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function _e(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function ve(e){return _e(ge(e))}function ye(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function be(e,t,n){return ye(e,n)===ye(t,n)}function xe({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&f(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.pop():r===`.`||s.push(r)}}s.length>1&&(f(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=he(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function Se(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function Ce(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>Te(e,n)).join(`/`):Te(r,n):r}function we({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=le(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=Ce(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Ce(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Ce(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function Te(e,t){let n=encodeURIComponent(e);return t?.(n)??n}var Ee=`__root__`,De=`Error preloading route! ☝️`,Oe=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Ee:this.parentRoute||o();let r=n?Ee:t?.path;r&&r!==`/`&&(r=ge(r));let i=t?.id||r,a=n?Ee:Y([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=Y([`/`,a]));let s=a===`__root__`?`/`:Y([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=s,this._to=_e(s)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>t({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},ke=class extends Oe{constructor(e){super(e)}},X=n(i(),1),Ae=a();function je({children:e,fallback:t=null}){return Me()?(0,Ae.jsx)(X.Fragment,{children:e}):(0,Ae.jsx)(X.Fragment,{children:t})}function Me(){return X.useSyncExternalStore(Ne,()=>!0,()=>!1)}function Ne(){return()=>{}}var Pe=X.createContext(void 0),Fe=X.createContext(void 0),Ie=e();function Le(e,t){return e===t}function Re(e,t,n=Le){let r=(0,X.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,X.useCallback)(()=>e?.get(),[e]);return(0,Ie.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var ze={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function Z(e){let t=c(),n=X.useContext(e.from?Fe:Pe),r=e.from??n,i=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,a=X.useRef(void 0);return Re(i??ze,n=>{if((e.shouldThrow??!0)&&!n&&o(),n===void 0)return;let r=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=b(a.current,r);return a.current=e,e}return r})}function Be(e){return Z({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Ve(e){let{select:t,...n}=e;return Z({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function He(e){return Z({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Ue(e){return Z({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function We(e){return Z({...e,select:t=>e.select?e.select(t.context):t.context})}var Ge=n(r(),1);function Ke(e,t){let n=c(),r=d(t),{activeProps:i,inactiveProps:a,activeOptions:o,to:l,preload:u,preloadDelay:f,preloadIntentProximity:p,hashScrollIntoView:h,replace:g,startTransition:_,resetScroll:v,viewTransition:y,children:b,target:x,disabled:S,style:C,className:w,onClick:E,onBlur:D,onFocus:O,onMouseEnter:k,onMouseLeave:A,onTouchStart:j,ignoreBlocker:te,params:ne,search:re,hash:ie,state:ae,mask:oe,reloadDocument:M,unsafeRelative:N,from:se,_fromLocation:ce,...le}=e,P=Me(),F=X.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),I=Re(n.stores.location,e=>e,(e,t)=>e.href===t.href),L=X.useMemo(()=>{let e={_fromLocation:I,...F};return n.buildLocation(e)},[n,I,F]),R=L.maskedLocation?L.maskedLocation.publicHref:L.publicHref,ue=L.maskedLocation?L.maskedLocation.external:L.external,z=X.useMemo(()=>$e(R,ue,n.history,S),[S,ue,R,n.history]),B=X.useMemo(()=>{if(z?.external)return ee(z.href,n.protocolAllowlist)?void 0:z.href;if(!et(l)&&!(typeof l!=`string`||l.indexOf(`:`)===-1))try{return new URL(l),ee(l,n.protocolAllowlist)?void 0:l}catch{}},[l,z,n.protocolAllowlist]),V=X.useMemo(()=>{if(B)return!1;if(o?.exact){if(!be(I.pathname,L.pathname,n.basepath))return!1}else{let e=ye(I.pathname,n.basepath),t=ye(L.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(o?.includeSearch??!0)&&!T(I.search,L.search,{partial:!o?.exact,ignoreUndefined:!o?.explicitUndefined})?!1:o?.includeHash?P&&I.hash===L.hash:!0},[o?.exact,o?.explicitUndefined,o?.includeHash,o?.includeSearch,I,B,P,L.hash,L.pathname,L.search,n.basepath]),H=V?m(i,{})??Je:qe,U=V?qe:m(a,{})??qe,W=[w,H.className,U.className].filter(Boolean).join(` `),G=(C||H.style||U.style)&&{...C,...H.style,...U.style},[de,fe]=X.useState(!1),pe=X.useRef(!1),K=e.reloadDocument||B?!1:u??n.options.defaultPreload,me=f??n.options.defaultPreloadDelay??0,q=X.useCallback(()=>{n.preloadRoute({...F,_builtLocation:L}).catch(e=>{console.warn(e),console.warn(De)})},[n,F,L]);s(r,X.useCallback(e=>{e?.isIntersecting&&q()},[q]),Qe,{disabled:!!S||K!==`viewport`}),X.useEffect(()=>{pe.current||!S&&K===`render`&&(q(),pe.current=!0)},[S,q,K]);let J=e=>{let t=e.currentTarget.getAttribute(`target`),r=x===void 0?t:x;if(!S&&!nt(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,Ge.flushSync)(()=>{fe(!0)});let t=n.subscribe(`onResolved`,()=>{t(),fe(!1)});n.navigate({...F,replace:g,resetScroll:v,hashScrollIntoView:h,startTransition:_,viewTransition:y,ignoreBlocker:te})}};if(B)return{...le,ref:r,href:B,...b&&{children:b},...x&&{target:x},...S&&{disabled:S},...C&&{style:C},...w&&{className:w},...E&&{onClick:E},...D&&{onBlur:D},...O&&{onFocus:O},...k&&{onMouseEnter:k},...A&&{onMouseLeave:A},...j&&{onTouchStart:j}};let Y=e=>{if(S||K!==`intent`)return;if(!me){q();return}let t=e.currentTarget;if(Q.has(t))return;let n=setTimeout(()=>{Q.delete(t),q()},me);Q.set(t,n)},he=e=>{S||K!==`intent`||q()},ge=e=>{if(S||!K||!me)return;let t=e.currentTarget,n=Q.get(t);n&&(clearTimeout(n),Q.delete(t))};return{...le,...H,...U,href:z?.href,ref:r,onClick:$([E,J]),onBlur:$([D,ge]),onFocus:$([O,Y]),onMouseEnter:$([k,Y]),onMouseLeave:$([A,ge]),onTouchStart:$([j,he]),disabled:!!S,target:x,...G&&{style:G},...W&&{className:W},...S&&Ye,...V&&Xe,...P&&de&&Ze}}var qe={},Je={className:`active`},Ye={role:`link`,"aria-disabled":!0},Xe={"data-status":`active`,"aria-current":`page`},Ze={"data-transitioning":`transitioning`},Q=new WeakMap,Qe={rootMargin:`100px`},$=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function $e(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function et(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var tt=X.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=Ke(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return X.createElement(`a`,t,o)}return X.createElement(n,a,o)});function nt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var rt=class extends Oe{constructor(e){super(e),this.useMatch=e=>Z({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>We({...e,from:this.id}),this.useSearch=e=>Ue({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>He({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Ve({...e,from:this.id}),this.useLoaderData=e=>Be({...e,from:this.id}),this.useNavigate=()=>u({from:this.fullPath}),this.Link=X.forwardRef((e,t)=>(0,Ae.jsx)(tt,{ref:t,from:this.fullPath,...e}))}};function it(e){return new rt(e)}function at(){return e=>st(e)}var ot=class extends ke{constructor(e){super(e),this.useMatch=e=>Z({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>We({...e,from:this.id}),this.useSearch=e=>Ue({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>He({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Ve({...e,from:this.id}),this.useLoaderData=e=>Be({...e,from:this.id}),this.useNavigate=()=>u({from:this.fullPath}),this.Link=X.forwardRef((e,t)=>(0,Ae.jsx)(tt,{ref:t,from:this.fullPath,...e}))}};function st(e){return new ot(e)}function ct(e){return new lt(e,{silent:!0}).createRoute}var lt=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=it(e);return t.isRoot=!1,t},this.silent=t?.silent}};function ut(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,D(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(l)l(o());else throw o();return X.createElement(r,e)};return s.preload=o,s}export{re as A,M as C,ie as D,E,f as F,y as I,b as L,_ as M,ee as N,T as O,O as P,U as S,oe as T,de as _,Re as a,B as b,Me as c,Se as d,we as f,_e as g,ve as h,tt as i,m as j,ae as k,Ee as l,xe as m,ct as n,Pe as o,Y as p,at as r,je as s,ut as t,he as u,z as v,j as w,ue as x,V as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Qn as e}from"./createServerFn-gM2-LFBy.js";var t=e(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`modulepreload`,t=function(e){return`/`+e},n={},r=function(r,i,a){let o=Promise.resolve();if(i&&i.length>0){let r=document.getElementsByTagName(`link`),s=document.querySelector(`meta[property=csp-nonce]`),c=s?.nonce||s?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}o=l(i.map(i=>{if(i=t(i,a),i in n)return;n[i]=!0;let o=i.endsWith(`.css`),s=o?`[rel="stylesheet"]`:``;if(a)for(let e=r.length-1;e>=0;e--){let t=r[e];if(t.href===i&&(!o||t.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;let l=document.createElement(`link`);if(l.rel=o?`stylesheet`:e,o||(l.as=`script`),l.crossOrigin=``,l.href=i,c&&l.setAttribute(`nonce`,c),document.head.appendChild(l),o)return new Promise((e,t)=>{l.addEventListener(`load`,e),l.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${i}`)))})}))}function s(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return o.then(e=>{for(let t of e||[])t.status===`rejected`&&s(t.reason);return r().catch(s)})};export{r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Qn as e}from"./createServerFn-gM2-LFBy.js";var t=e(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]),n=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t as n,n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$t as e,At as t,C as n,Cn as r,Ct as i,D as a,Dn as o,Dt as s,E as c,En as l,Et as u,Fn as d,Fr as f,Ft as p,Gn as m,Gt as h,H as g,Hn as _,Ht as v,J as y,Jn as b,Jt as x,K as S,Kt as C,Lr as w,Mn as T,Mt as E,Nt as ee,O as D,On as O,P as k,Pn as te,Pr as A,Pt as j,Qn as M,Rt as N,S as ne,Sn as P,Tn as F,Tt as re,U as I,Un as ie,W as L,Wn as R,X as ae,Xn as oe,Xt as z,Y as B,Yn as V,Zn as H,_ as U,an as se,b as W,bn as G,en as K,er as ce,et as q,fn as le,g as ue,h as de,in as fe,ir as pe,jn as me,k as he,kt as ge,m as _e,on as ve,q as J,qn as ye,rn as be,rt as xe,vn as Se,w as Ce,wn as we,x as Y,xn as Te,y as Ee}from"./createServerFn-gM2-LFBy.js";import{i as De}from"./lazyRouteComponent-rPzgA7S-.js";import{n as Oe}from"./AnalyticsCapabilityContext-BCke57-7.js";import{a as ke,c as Ae,i as X,n as je,o as Me,r as Ne,s as Pe,t as Fe}from"./field-Buq148-A.js";import{B as Ie,C as Le,E as Re,F as ze,H as Be,I as Ve,L as He,R as Ue,S as We,T as Ge,V as Ke,_ as qe,a as Je,b as Ye,c as Xe,f as Ze,h as Qe,i as $e,l as et,m as tt,n as nt,o as rt,r as it,s as at,t as ot,v as st,w as ct,x as lt,y as ut,z as dt}from"./BundleActivityChart-CnsBe_1J.js";import{t as ft}from"./download-O-yNBc9H.js";import{t as pt}from"./loader-circle-DCYF-wJl.js";import{n as mt,r as ht,t as gt}from"./routes-DcQnVajO.js";import{C as _t,S as vt,T as yt,a as bt,b as xt,c as St,d as Ct,f as wt,g as Tt,i as Et,l as Dt,m as Ot,n as kt,o as At,p as jt,r as Mt,s as Nt,t as Pt,u as Ft,v as It,w as Lt,x as Rt,y as zt}from"./dialog-BS60BRr2.js";import{C as Bt,S as Vt,_ as Ht,c as Ut,d as Wt,f as Gt,g as Kt,i as qt,l as Jt,o as Yt,r as Xt,t as Zt,u as Qt,w as $t}from"./useOpenInteractionType-4cRD5xO0.js";import{n as en}from"./dist-DspNKfMj.js";import{t as tn}from"./textarea-YJLTVAoq.js";import{S as nn,_ as rn,a as an,c as on,f as sn,g as cn,h as ln,i as un,l as dn,m as fn,n as pn,o as mn,p as hn,r as gn,s as _n,t as vn,v as yn,x as bn,y as xn}from"./api-B_Rh-uzC.js";import{a as Sn,i as Cn,l as wn,o as Tn,r as En,s as Dn,t as On,u as kn}from"./alert-C-1KvDW8.js";import{t as An}from"./badge-Bf0fZ-Gx.js";import{a as jn,i as Mn,n as Nn,o as Pn,r as Fn,t as In}from"./table-D8CLieHX.js";import{t as Ln}from"./BundleIdDisplay-Dky75zLU.js";var Rn=M(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),zn=M(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Bn=M(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Vn=M(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Hn=M(`circle-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.35 2.69A10 10 0 0 1 21.3 15.65`,key:`1pfsoa`}],[`path`,{d:`M19.08 19.08A10 10 0 1 1 4.92 4.92`,key:`1ablyi`}]]),Un=M(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Wn=M(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),Gn=M(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),Kn=M(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),qn=M(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Jn=M(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Yn=M(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),Xn=M(`tags`,[[`path`,{d:`M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z`,key:`16rjxf`}],[`path`,{d:`M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193`,key:`178nd4`}],[`circle`,{cx:`10.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`12ikhr`}]]),Zn=M(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Z=w(A());function Qn(e){let[t,n]=Z.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}var Q=pe(),$n=e=>{if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return typeof t.baseBundleId==`string`&&typeof t.baseFileHash==`string`&&typeof t.patchFileHash==`string`&&typeof t.patchStorageUri==`string`},er=e=>Array.isArray(e)?e.filter($n):[],tr=e=>{let t=er(e.patches),n=new Set;return t.filter(e=>n.has(e.baseBundleId)?!1:(n.add(e.baseBundleId),!0))},nr=e=>tr(e)[0]??null,rr=e=>nr(e)?.baseBundleId??null,ir=e=>nr(e)?.baseFileHash??null,ar=e=>nr(e)?.patchFileHash??null,or=1e3,sr=or,cr=`Invalid cohort. Use 1-1000 or a lowercase slug without spaces, up to 64 characters.`,lr=/^[a-z0-9-]+$/;function ur(e){if(!/^\d+$/.test(e))return null;let t=Number.parseInt(e,10);return Number.isNaN(t)||t<1||t>1e3?null:t}function dr(e,t){return(e%t+t)%t}function fr(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}function pr(e,t){let n=Math.abs(e),r=Math.abs(t);for(;r!==0;){let e=n%r;n=r,r=e}return n}function mr(e,t){let n=0,r=1,i=t,a=dr(e,t);for(;a!==0;){let e=Math.floor(i/a);[n,r]=[r,n-e*r],[i,a]=[a,i-e*a]}if(i>1)throw Error(`No modular inverse for ${e} mod ${t}`);return dr(n,t)}function hr(e){let t=dr(fr(`${e}:multiplier`),997);for(t===0&&(t=1);pr(t,or)!==1;)t=dr(t+1,or),t===0&&(t=1);let n=dr(fr(`${e}:offset`),or);return{multiplier:t,offset:n,inverseMultiplier:mr(t,or)}}function gr(e){return e==null?sr:e<=0?0:e>=1e3?or:Math.floor(e)}function _r(e){let t=e.trim().toLowerCase(),n=ur(t);return n===null?t:String(n)}function vr(e){return ur(_r(e))}function yr(e){return vr(e)!==null}function br(e){let t=_r(e);return t.length>0&&t.length<=64&&!/^\d+$/.test(t)&&lr.test(t)}function xr(e){let t=_r(e);return yr(t)||br(t)}function Sr(e,t){if(t<1||t>1e3)throw Error(`Invalid numeric cohort: ${t}`);let{offset:n,inverseMultiplier:r}=hr(e);return dr(r*(t-1-n),or)}var Cr=/^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,wr=e=>typeof e==`string`&&Cr.test(e);function Tr(e,t,n,r=!0,i){let[a,o]=Z.useState(),s=Ce(i?`${i}-label`:void 0),c=e??t??a;return me(()=>{let i=e||t||!r?void 0:Er(n.current,s);a!==i&&o(i)}),c}function Er(e,t){let n=Dr(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Dr(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function Or(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}var kr=Z.createContext(void 0),Ar={disableStyleElements:!1};function jr(){return Z.useContext(kr)??Ar}function Mr(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var Nr=new Map;function Pr(e,t){let n=JSON.stringify({locale:e,options:t}),r=Nr.get(n);if(r)return r;let i=new Intl.NumberFormat(e,t);return Nr.set(n,i),i}function Fr(e,t,n){return e==null?``:Pr(t,n).format(e)}function Ir(e,t,n){return(e-t)*100/(n-t)}var Lr=`base-ui-disable-scrollbar`,Rr={className:Lr,getElement(e){return(0,Q.jsx)(`style`,{nonce:e,href:Lr,precedence:`base-ui:low`,children:`.${Lr}{scrollbar-width:none}.${Lr}::-webkit-scrollbar{display:none}`})}};function zr(e,t){return Math.max(0,e-t)}function Br(e,t){if(t<=0)return 0;let n=Mr(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}var Vr=Z.createContext(null),Hr=Z.createContext(null);function Ur(){let e=Z.useContext(Vr);if(e===null)throw Error(V(60));return e}function Wr(){let e=Z.useContext(Hr);if(e===null)throw Error(V(61));return e}var $={id:y(e=>e.id),labelId:y(e=>e.labelId),modal:y(e=>e.modal),multiple:y(e=>e.multiple),items:y(e=>e.items),itemToStringLabel:y(e=>e.itemToStringLabel),itemToStringValue:y(e=>e.itemToStringValue),isItemEqualToValue:y(e=>e.isItemEqualToValue),value:y(e=>e.value),hasSelectedValue:y(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Ye(t,r)!==``}),hasNullItemLabel:y((e,t)=>t?Qe(e.items):!1),open:y(e=>e.open),mounted:y(e=>e.mounted),forceMount:y(e=>e.forceMount),transitionStatus:y(e=>e.transitionStatus),openMethod:y(e=>e.openMethod),activeIndex:y(e=>e.activeIndex),selectedIndex:y(e=>e.selectedIndex),isActive:y((e,t)=>e.activeIndex===t),isSelected:y((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>lt(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:lt(n,i,r)}),isSelectedByFocus:y((e,t)=>e.selectedIndex===t),popupProps:y(e=>e.popupProps),triggerProps:y(e=>e.triggerProps),triggerElement:y(e=>e.triggerElement),positionerElement:y(e=>e.positionerElement),listElement:y(e=>e.listElement),popupSide:y(e=>e.popupSide),scrollUpArrowVisible:y(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:y(e=>e.scrollDownArrowVisible),hasScrollArrows:y(e=>e.hasScrollArrows)};function Gr(e){let{id:n,value:r,defaultValue:i=null,onValueChange:a,open:o,defaultOpen:s=!1,onOpenChange:c,name:l,form:d,autoComplete:f,disabled:p=!1,readOnly:m=!1,required:h=!1,modal:_=!0,actionsRef:v,inputRef:y,onOpenChangeComplete:C,items:w,multiple:E=!1,itemToStringLabel:D,itemToStringValue:O,isItemEqualToValue:te=We,highlightItemOnHover:A=!0,children:j}=e,{clearErrors:M}=Xe(),{setDirty:N,setTouched:ne,setFocused:P,shouldValidateOnChange:F,validityData:I,setFilled:z,name:B,disabled:V,validation:H,validationMode:U}=Ze(),se=rt({id:n}),W=V||p,G=B??l,[K,ce]=dt({controlled:r,default:E?i??ie:i,name:`Select`,state:`value`}),[q,le]=dt({controlled:o,default:s,name:`Select`,state:`open`}),ue=Z.useRef([]),de=Z.useRef([]),fe=Z.useRef(null),pe=Z.useRef(null),ge=Z.useRef(0),_e=Z.useRef(null),ve=Z.useRef([]),be=Z.useRef(!1),xe=Z.useRef(!1),Se=Z.useRef(null),Ce=Z.useRef(null),we=Z.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),Y=Z.useRef(!1),{mounted:Ee,setMounted:De,transitionStatus:Oe}=L(q),{openMethod:ke,triggerProps:Ae}=Zt(q),X=b(()=>new S({id:se,labelId:void 0,modal:_,multiple:E,itemToStringLabel:D,itemToStringValue:O,isItemEqualToValue:te,value:K,open:q,mounted:Ee,transitionStatus:Oe,items:w,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,je=J(X,$.activeIndex),Me=J(X,$.selectedIndex),Ne=J(X,$.triggerElement),Pe=J(X,$.positionerElement),Fe=Qn(ke),Re=ke??Fe,ze=Z.useMemo(()=>E&&Array.isArray(K)&&K.length===0?``:Ye(K,O),[E,K,O]),Be=Z.useMemo(()=>E&&Array.isArray(K)?K.map(e=>Ye(e,O)):Ye(K,O),[E,K,O]);et(t(X.state.triggerElement),se,K,T(()=>Be));let Ve=Z.useRef(K),He=E?Array.isArray(K)&&K.length>0:K!=null;me(()=>{K!==Ve.current&&X.set(`forceMount`,!0)},[X,K]),me(()=>{z(He)},[He,z]),me(function(){let e=ve.current,t;if(E){let n=Array.isArray(K)?K:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=Le(e,r,te);t=i===-1?null:i}}else{let n=Le(e,K,te);t=n===-1?null:n}t===null&&(Ce.current=null),!q&&X.set(`selectedIndex`,t)},[He,E,q,K,ve,te,X,Ce]),Xt(K,()=>{M(G),N(K!==I.initialValue),F()?H.commit(K):H.commit(K,!0)});let Ue=T((e,t)=>{if(c?.(e,t),!t.isCanceled&&(le(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(ne(!0),P(!1),U===`onBlur`&&H.commit(K)),!e&&X.state.activeIndex!==null)){let e=ue.current[X.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),Ge=T(()=>{De(!1),X.update({activeIndex:null,openMethod:null}),C?.(!1)});g({enabled:!v,open:q,ref:fe,onComplete(){q||Ge()}}),Z.useImperativeHandle(v,()=>({unmount:Ge}),[Ge]);let qe=T((e,t)=>{a?.(e,t),!t.isCanceled&&ce(e)}),Je=T(()=>{let e=X.state.listElement||fe.current;if(!e)return;let t=zr(e.scrollHeight,e.clientHeight),n=Br(e.scrollTop,t),r=n>0,i=n<t;X.state.scrollUpArrowVisible!==r&&X.set(`scrollUpArrowVisible`,r),X.state.scrollDownArrowVisible!==i&&X.set(`scrollDownArrowVisible`,i)}),Qe=he({open:q,onOpenChange:Ue,elements:{reference:Ne,floating:Pe}}),$e=Bt(Qe,{enabled:!m&&!W,event:`mousedown`}),tt=ae(Qe),nt=Ke(Qe,{enabled:!m&&!W,listRef:ue,activeIndex:je,selectedIndex:Me,disabledIndices:ie,onNavigate(e){e===null&&!q||X.set(`activeIndex`,e)},focusItemOnHover:A}),it=Ie(Qe,{enabled:!m&&!W&&(q||!E),listRef:de,activeIndex:je,selectedIndex:Me,onMatch(e){q?X.set(`activeIndex`,e):qe(ve.current[e],ee(`none`))},onTyping(e){be.current=e}}),at=Z.useMemo(()=>{let e=oe(it.reference,nt.reference,tt.reference,$e.reference,Ae);return se&&(e.id=se),e},[$e.reference,it.reference,nt.reference,tt.reference,Ae,se]),ot=Z.useMemo(()=>oe(k,it.floating,nt.floating,tt.floating),[it.floating,nt.floating,tt.floating]),st=nt.item??R;Te(()=>{X.update({popupProps:ot,triggerProps:at})}),me(()=>{X.update({id:se,modal:_,multiple:E,value:K,open:q,mounted:Ee,transitionStatus:Oe,popupProps:ot,triggerProps:at,items:w,itemToStringLabel:D,itemToStringValue:O,isItemEqualToValue:te,openMethod:Re})},[X,se,_,E,K,q,Ee,Oe,ot,at,w,D,O,te,Re]);let ct=Z.useMemo(()=>({store:X,name:G,required:h,disabled:W,readOnly:m,multiple:E,highlightItemOnHover:A,setValue:qe,setOpen:Ue,listRef:ue,popupRef:fe,scrollHandlerRef:pe,handleScrollArrowVisibility:Je,scrollArrowsMountedCountRef:ge,itemProps:st,events:Qe.context.events,valueRef:_e,valuesRef:ve,labelsRef:de,typingRef:be,selectionRef:we,firstItemTextRef:Se,selectedItemTextRef:Ce,validation:H,onOpenChangeComplete:C,keyboardActiveRef:xe,alignItemWithTriggerActiveRef:Y,initialValueRef:Ve}),[X,G,h,W,m,E,A,qe,Ue,st,Qe.context.events,H,C,Je]),lt=ye(y,H.inputRef),ft=E&&Array.isArray(K)&&K.length>0,pt=E?void 0:G,mt=Z.useMemo(()=>!E||!Array.isArray(K)||!G?null:K.map(e=>{let t=Ye(e,O);return(0,Q.jsx)(`input`,{type:`hidden`,form:d,name:G,value:t},t)}),[E,K,d,G,O]);return(0,Q.jsx)(Vr.Provider,{value:ct,children:(0,Q.jsxs)(Hr.Provider,{value:Qe,children:[j,(0,Q.jsx)(`input`,{...H.getInputValidationProps({onFocus(){X.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||W||m){e.preventBaseUIHandler?.();return}let t=e.currentTarget.value,n=ee(x,e.nativeEvent);function r(){if(E)return;let e=ve.current.find(e=>Ye(e,O).toLowerCase()===t.toLowerCase()||ut(e,D).toLowerCase()===t.toLowerCase());e!=null&&(N(e!==I.initialValue),qe(e,n),F()&&H.commit(e))}X.set(`forceMount`,!0),queueMicrotask(r)}}),id:se&&pt==null?`${se}-hidden-input`:void 0,form:d,name:pt,autoComplete:f,value:ze,disabled:W,required:h&&!ft,readOnly:m,ref:lt,style:G?u:re,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),mt]})})}var Kr=2,qr=400,Jr={...a,...tt,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},Yr=Z.forwardRef(function(e,n){let{render:r,className:i,id:a,disabled:o=!1,nativeButton:c=!0,style:l,...u}=e,{setTouched:d,setFocused:f,validationMode:m,state:h,disabled:g}=Ze(),{labelId:v}=at(),{store:y,setOpen:b,selectionRef:S,validation:C,readOnly:w,required:E,alignItemWithTriggerActiveRef:D,disabled:k,keyboardActiveRef:te}=Ur(),A=g||k||o,j=J(y,$.open),M=J(y,$.mounted),N=J(y,$.value),ne=J(y,$.triggerProps),P=J(y,$.positionerElement),F=J(y,$.listElement),re=J(y,$.popupSide),I=J(y,$.id),ie=J(y,$.labelId),L=J(y,$.hasSelectedValue),R=M&&P?re:null,ae=a??I,z=$e(v,ie);rt({id:ae});let B=t(P),V=Z.useRef(null),{getButtonProps:H,buttonRef:U}=O({disabled:A,native:c}),W=ye(n,V,U,T(e=>{y.set(`triggerElement`,e)})),ce=G(),q=G(),le=G();Z.useEffect(()=>{if(j)return le.start(qr,()=>{S.current.allowUnselectedMouseUp=!0,S.current.allowSelectedMouseUp=!0}),()=>{le.clear()};S.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},q.clear()},[j,S,q,le]);let ue=oe(ne,{id:ae,role:`combobox`,"aria-expanded":j?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":j?F?.id??K(P)?.id:void 0,"aria-labelledby":z,"aria-readonly":w||void 0,"aria-required":E||void 0,tabIndex:A?-1:0,ref:W,onFocus(e){f(!0),j&&D.current&&b(!1,ee(x,e.nativeEvent)),ce.start(0,()=>{y.set(`forceMount`,!0)})},onBlur(e){se(P,e.relatedTarget)||(d(!0),f(!1),m===`onBlur`&&C.commit(N))},onPointerMove(){te.current=!1},onKeyDown(){te.current=!0},onMouseDown(e){if(j)return;let t=s(e.currentTarget);function n(e){if(!V.current)return;let t=e.target;if(se(V.current,t)||se(B.current,t)||t===V.current)return;let n=Je(V.current);e.clientX>=n.left-Kr&&e.clientX<=n.right+Kr&&e.clientY>=n.top-Kr&&e.clientY<=n.bottom+Kr||b(!1,ee(p,e))}q.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},C.getValidationProps,u,H);ue.role=`combobox`;let de={...h,open:j,disabled:A,value:N,readOnly:w,popupSide:R,placeholder:!L};return _(`button`,e,{ref:[n,V],state:de,stateAttributesMapping:Jr,props:ue})}),Xr={value:()=>null},Zr=Z.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=Ur(),u=J(c,$.value),d=J(c,$.items),f=J(c,$.itemToStringLabel),p=J(c,$.hasSelectedValue),m=!p&&a!=null&&i==null,h=J(c,$.hasNullItemLabel,m),g={value:u,placeholder:!p},v=null;return v=typeof i==`function`?i(u):i??(!p&&a!=null&&!h?a:Array.isArray(u)?qe(u,d,f):st(u,d,f)),_(`span`,e,{state:g,ref:[t,l],props:[{children:v},s],stateAttributesMapping:Xr})}),Qr=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=Ur();return _(`span`,e,{state:{open:J(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:D})}),$r=Z.createContext(void 0),ei=Z.forwardRef(function(e,t){let{store:n}=Ur(),r=J(n,$.mounted),i=J(n,$.forceMount);return r||i?(0,Q.jsx)($r.Provider,{value:!0,children:(0,Q.jsx)(q,{ref:t,...e})}):null}),ti=Z.createContext(void 0);function ni(){let e=Z.useContext(ti);if(!e)throw Error(V(59));return e}function ri(e,t){e&&Object.assign(e.style,t)}var ii={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},ai={position:`fixed`},oi=Z.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=xe,style:_,...v}=e,{store:y,listRef:b,labelsRef:S,alignItemWithTriggerActiveRef:C,selectedItemTextRef:w,valuesRef:E,initialValueRef:D,popupRef:O,setValue:k}=Ur(),te=Wr(),A=J(y,$.open),j=J(y,$.mounted),M=J(y,$.modal),N=J(y,$.value),P=J(y,$.openMethod),F=J(y,$.positionerElement),re=J(y,$.triggerElement),I=J(y,$.isItemEqualToValue),ie=J(y,$.transitionStatus),L=Z.useRef(null),R=Z.useRef(null),[ae,oe]=Z.useState(h),z=j&&ae&&P!==`touch`;!j&&ae!==h&&oe(h),me(()=>{j||($.scrollUpArrowVisible(y.state)&&y.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(y.state)&&y.set(`scrollDownArrowVisible`,!1))},[y,j]),Z.useImperativeHandle(C,()=>z),nt((z||M)&&A,P===`touch`,F,re);let B=ne({anchor:n,floatingRootContext:te,positionMethod:r,mounted:j,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??z,collisionAvoidance:g,keepMounted:!0}),V=z?`none`:B.side,H=z?ai:B.positionerStyles,U={open:A,side:V,align:B.align,anchorHidden:B.anchorHidden};me(()=>{y.set(`popupSide`,B.side)},[y,B.side]);let se=W(e,U,{styles:H,transitionStatus:ie,props:v,refs:[t,T(e=>{y.set(`positionerElement`,e)})],hidden:!j,inert:!A}),G=Z.useRef(0),K=T(e=>{if(e.size===0&&G.current===0||E.current.length===0)return;let t=G.current;if(G.current=e.size,e.size===t)return;let n=ee(x);if(t!==0&&!y.state.multiple&&N!==null&&Le(E.current,N,I)===-1){let e=D.current,t=e!=null&&Le(E.current,e,I)!==-1?e:null;k(t,n),t===null&&(y.set(`selectedIndex`,null),w.current=null)}if(t!==0&&y.state.multiple&&Array.isArray(N)){let e=e=>Le(E.current,e,I)!==-1,t=N.filter(t=>e(t));(t.length!==N.length||t.some(e=>!Ge(N,e,I)))&&(k(t,n),t.length===0&&(y.set(`selectedIndex`,null),w.current=null))}if(A&&z){y.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};ri(F,e),ri(O.current,e)}}),ce=Z.useMemo(()=>({...B,side:V,alignItemWithTriggerActive:z,setControlledAlignItemWithTrigger:oe,scrollUpArrowRef:L,scrollDownArrowRef:R}),[B,V,z,oe]);return(0,Q.jsx)(Ve,{elementsRef:b,labelsRef:S,onMapChange:K,children:(0,Q.jsxs)(ti.Provider,{value:ce,children:[j&&M&&(0,Q.jsx)(qt,{inert:Vt(!A),cutout:re}),se]})})}),si={...c,...I},ci=Z.forwardRef(function(t,r){let{render:i,className:a,style:o,finalFocus:c,...l}=t,{store:u,popupRef:d,onOpenChangeComplete:f,setOpen:p,valueRef:m,firstItemTextRef:h,selectedItemTextRef:v,keyboardActiveRef:y,multiple:b,handleScrollArrowVisibility:x,scrollHandlerRef:S,listRef:C,highlightItemOnHover:w}=Ur(),{side:D,align:O,alignItemWithTriggerActive:k,isPositioned:A,setControlledAlignItemWithTrigger:j,scrollDownArrowRef:M,scrollUpArrowRef:N}=ni(),ne=ze(!0)!=null,P=Wr(),F=n(),{nonce:re,disableStyleElements:I}=jr(),ie=J(u,$.id),L=J(u,$.open),R=J(u,$.mounted),ae=J(u,$.popupProps),oe=J(u,$.transitionStatus),z=J(u,$.triggerElement),B=J(u,$.positionerElement),V=J(u,$.listElement),H=Z.useRef(!1),U=Z.useRef(!1),se=Z.useRef({}),W=ge(),G=T(e=>{if(!B||!d.current||!U.current)return;if(H.current||!k){x();return}let t=B.style.top===`0px`,n=B.style.bottom===`0px`;if(!t&&!n){x();return}let r=di(B),i=fi(B.getBoundingClientRect().height,`y`,r),a=s(B),o=getComputedStyle(B),c=parseFloat(o.marginTop),l=parseFloat(o.marginBottom),u=li(getComputedStyle(d.current)),f=Math.min(a.documentElement.clientHeight-c-l,u),p=e.scrollTop,m=ui(e),h=0,g=null,_=!1,v=!1,y=e=>{B.style.height=`${e}px`},b=(t,n)=>{let r=Mr(t,0,f-i);r>0&&y(i+r),e.scrollTop=n,f-(i+r)<=1&&(H.current=!0),x()},S=t?m-p:p,C=Math.min(i+S,f);if(h=C,S<=1){b(S,t?m:0);return}if(f-C>1?t?v=!0:g=0:(_=!0,n&&p<m&&(g=p-(S-(i+S-f)))),h=Math.ceil(h),h!==0&&y(h),v||g!=null){let t=ui(e),n=v?t:Mr(g,0,t);Math.abs(e.scrollTop-n)>1&&(e.scrollTop=n)}(_||h>=f-1)&&(H.current=!0),x()});Z.useImperativeHandle(S,()=>G,[G]),g({open:L,ref:d,onComplete(){L&&f?.(!0)}});let K={open:L,transitionStatus:oe,side:D,align:O};me(()=>{!B||!d.current||Object.keys(se.current).length||(se.current={top:B.style.top||`0`,left:B.style.left||`0`,right:B.style.right,height:B.style.height,bottom:B.style.bottom,minHeight:B.style.minHeight,maxHeight:B.style.maxHeight,marginTop:B.style.marginTop,marginBottom:B.style.marginBottom})},[d,B]),me(()=>{L||k||(U.current=!1,H.current=!1,ri(B,se.current))},[L,k,B,d]),me(()=>{let e=d.current;if(!L||!z||!B||!e||k&&!A||u.state.transitionStatus===`ending`)return;if(!k){U.current=!0,W.request(x),e.style.removeProperty(`--transform-origin`);return}let t=hi(e);e.style.removeProperty(`--transform-origin`);try{let t=v.current;t?.isConnected||(t=!$.hasSelectedValue(u.state)&&h.current?.isConnected?h.current:null);let n=m.current,r=getComputedStyle(B),i=getComputedStyle(e),a=s(z),o=te(B),c=di(z),l=pi(z.getBoundingClientRect(),c),d=pi(B.getBoundingClientRect(),c),f=l.height,p=V||e,g=p.scrollHeight,_=parseFloat(i.borderBottomWidth),y=parseFloat(r.marginTop)||10,b=parseFloat(r.marginBottom)||10,S=parseFloat(r.minHeight)||100,T=li(i),E=a.documentElement.clientHeight-y-b,ee=a.documentElement.clientWidth,D=E-l.bottom+f,O,k=F===`rtl`?l.right-d.width:l.left,A=0;if(t&&n){let e=pi(n.getBoundingClientRect(),c);O=pi(t.getBoundingClientRect(),c),k=d.left+(F===`rtl`?e.right-O.right:e.left-O.left);let r=e.top-l.top+e.height/2;A=O.top-d.top+O.height/2-r}let M=D+A+b+_,N=Math.min(E,M),ne=E-y-b,P=M-N,re=ee-5;B.style.left=`${Mr(k,5,re-d.width)}px`,B.style.height=`${N}px`,B.style.maxHeight=`auto`,B.style.marginTop=`${y}px`,B.style.marginBottom=`${b}px`,e.style.height=`100%`;let I=ui(p),ie=P>=I-1;ie&&(N=Math.min(E,d.height)-(P-I));let L=l.top<20||l.bottom>E-20||Math.ceil(N)+1<Math.min(g,S),R=(o.visualViewport?.scale??1)!==1&&Se;if(L||R){U.current=!0,ri(B,se.current),j(!1);return}let ae=Math.max(S,N);if(ie){let e=Math.max(0,E-M);B.style.top=d.height>=ne?`0`:`${e}px`,B.style.height=`${N}px`,p.scrollTop=ui(p)}else B.style.bottom=`0`,p.scrollTop=P;if(O){let t=d.top,n=d.height,r=O.top+O.height/2,i=Mr(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(ae===E||N>=T)&&(H.current=!0),x(),w&&u.state.selectedIndex===null&&u.state.activeIndex===null&&C.current[0]!=null&&u.set(`activeIndex`,0),U.current=!0}finally{t()}},[u,L,B,z,m,h,v,d,x,k,j,W,M,N,V,C,w,F,A]),Z.useEffect(()=>{if(!k||!B||!L)return;let t=te(B);function n(t){p(!1,ee(e,t))}return E(t,`resize`,n)},[p,k,B,L]);let ce={...V?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":b||void 0,id:`${ie}-list`},onKeyDown(e){y.current=!0,ne&&Wt.has(e.key)&&e.stopPropagation()},onMouseMove(){y.current=!1},onScroll(e){V||G(e.currentTarget)},...k&&{style:V?{height:`100%`}:ii}},q=_(`div`,t,{ref:[r,d],state:K,stateAttributesMapping:si,props:[ae,ce,Y(oe),{className:!V&&k?Rr.className:void 0},l]});return(0,Q.jsxs)(Z.Fragment,{children:[!I&&Rr.getElement(re),(0,Q.jsx)($t,{context:P,modal:!1,disabled:!R,returnFocus:c,restoreFocus:!0,children:q})]})});function li(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function ui(e){return zr(e.scrollHeight,e.clientHeight)}function di(e){return B.getScale(e)}function fi(e,t,n){return e/n[t]}function pi(e,t){return i({x:fi(e.x,`x`,t),y:fi(e.y,`y`,t),width:fi(e.width,`x`,t),height:fi(e.height,`y`,t)})}var mi=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function hi(e){let{style:t}=e,n={};for(let[e,r]of mi)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of mi){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var gi=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=Ur(),{alignItemWithTriggerActive:c}=ni(),l=J(o,$.hasScrollArrows),u=J(o,$.openMethod),d=J(o,$.multiple),f={id:`${J(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:ii},className:l&&u!==`touch`?Rr.className:void 0};return _(`div`,e,{ref:[t,T(e=>{o.set(`listElement`,e)})],props:[f,a]})}),_i=Z.createContext(void 0);function vi(){let e=Z.useContext(_i);if(!e)throw Error(V(57));return e}var yi=Z.memo(Z.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...l}=e,u=Z.useRef(null),d=Ue({label:o,textRef:u,indexGuessBehavior:He.GuessFromOrder}),{store:f,itemProps:p,setOpen:m,setValue:g,selectionRef:v,typingRef:y,valuesRef:b,multiple:x,selectedItemTextRef:S}=Ur(),C=J(f,$.isActive,d.index),w=J(f,$.isSelected,d.index,a),T=J(f,$.isSelectedByFocus,d.index),E=J(f,$.isItemEqualToValue),D=d.index,k=D!==-1,te=Z.useRef(null);me(()=>{if(!k)return;let e=b.current;return e[D]=a,()=>{delete e[D]}},[k,D,a,b]),me(()=>{if(!k)return;let e=f.state.value,t=e;x&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&<(a,t,E)&&(f.set(`selectedIndex`,D),u.current&&(S.current=u.current))},[k,D,x,E,f,a,S]);let A=Z.useRef(null),j=Z.useRef(`mouse`),M=Z.useRef(!1),{getButtonProps:N,buttonRef:ne}=O({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),P={disabled:s,selected:w,highlighted:C};function F(e){let t=f.state.value;if(x){let n=Array.isArray(t)?t:[];g(w?ct(n,a,E):[...n,a],ee(h,e))}else g(a,ee(h,e)),m(!1,ee(h,e))}function re(){v.current.dragY=0}let I={role:`option`,"aria-selected":w,tabIndex:C?0:-1,onKeyDown(e){A.current=e.key,f.set(`activeIndex`,D),e.key===` `&&y.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&j.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&le(e.nativeEvent)&&(n!==void 0||C),i=t&&!r&&!M.current;M.current=!1,!(e.type===`keydown`&&A.current===null)&&(s||e.type===`keydown`&&A.current===` `&&y.current||i||(A.current=null,F(e.nativeEvent)))},onPointerEnter(e){j.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=v.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){j.current=e.pointerType,M.current=!0,re()},onMouseUp(){if(re(),s||j.current===`touch`||M.current)return;let e=!v.current.allowSelectedMouseUp&&w,t=!v.current.allowUnselectedMouseUp&&!w;e||t||(M.current=!0,te.current?.click(),M.current=!1)}},ie=_(`div`,e,{ref:[ne,t,d.ref,te],state:P,props:[p,I,l,N]}),L=Z.useMemo(()=>({selected:w,index:D,textRef:u,selectedByFocus:T,hasRegistered:k}),[w,D,u,T,k]);return(0,Q.jsx)(_i.Provider,{value:L,children:ie})})),bi=Z.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=vi();return n||r?(0,Q.jsx)(xi,{...e,ref:t}):null}),xi=Z.memo(Z.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=vi(),c=Z.useRef(null),{transitionStatus:l,setMounted:u}=L(s),d=_(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:I});return g({open:s,ref:c,onComplete(){s||u(!1)}}),d})),Si=Z.memo(Z.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i,hasRegistered:a}=vi(),{firstItemTextRef:o,selectedItemTextRef:s}=Ur(),{render:c,className:l,style:u,...d}=e;return _(`div`,e,{ref:[Z.useCallback(e=>{e&&(a&&n===0&&(o.current=e),a&&i&&(s.current=e))},[o,s,n,i,a]),t,r],props:d})})),Ci=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:l,popupRef:u,listRef:d,handleScrollArrowVisibility:f,scrollArrowsMountedCountRef:p}=Ur(),{side:m,scrollDownArrowRef:h,scrollUpArrowRef:v}=ni(),y=J(l,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),b=J(l,$.openMethod),x=y&&b!==`touch`,S=G(),C=c?v:h,{transitionStatus:w,setMounted:T}=L(x);me(()=>(p.current+=1,l.state.hasScrollArrows||l.set(`hasScrollArrows`,!0),()=>{p.current=Math.max(0,p.current-1),p.current===0&&l.state.hasScrollArrows&&l.set(`hasScrollArrows`,!1)}),[l,p]),g({open:x,ref:C,onComplete(){x||T(!1)}});let E=_(`div`,e,{ref:[t,C],state:{direction:a,visible:x,side:m,transitionStatus:w},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||S.isStarted())return;l.set(`activeIndex`,null);function t(){let e=l.state.listElement??u.current;if(!e)return;l.set(`activeIndex`,null),f();let n=zr(e.scrollHeight,e.clientHeight),r=Br(e.scrollTop,n),i=r===(c?0:n),a=d.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&l.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i){S.clear();return}if(a.length>0){let t=C.current?.offsetHeight||0;e.scrollTop=wi(a,c,r,e.clientHeight,t,n)}S.start(40,t)}S.start(40,t)},onMouseLeave(){S.clear()}},s]});return x||o?E:null});function wi(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?Br(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?Br(l.offsetTop+l.offsetHeight-r+i,a):a}var Ti=Z.forwardRef(function(e,t){return(0,Q.jsx)(Ci,{...e,ref:t,direction:`down`})}),Ei=Z.forwardRef(function(e,t){return(0,Q.jsx)(Ci,{...e,ref:t,direction:`up`})}),Di=Z.createContext(void 0),Oi=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=Z.useState(),c=Z.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),l=_(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,Q.jsx)(Di.Provider,{value:c,children:l})});function ki(e,t){return e-t}function Ai(e,t,n){let r=e.slice();return r[t]=n,r.sort(ki)}function ji(e,t,n,r,i,a){let o=e;return o=Mr(o,n,r),i&&(o=Ai(a,t,Mr(o,a[t-1]||-1/0,a[t+1]||1/0))),o}function Mi(e,t,n){if(!Array.isArray(e))return!0;let r=e.reduce((e,t,n,r)=>(n===r.length-1||e.push(Math.abs(t-r[n+1])),e),[]);return Math.min(...r)>=t*n}var Ni={activeThumbIndex:()=>null,max:()=>null,min:()=>null,minStepsBetweenValues:()=>null,step:()=>null,values:()=>null,...tt},Pi=Z.createContext(void 0);function Fi(){let e=Z.useContext(Pi);if(e===void 0)throw Error(V(62));return e}function Ii(e){return`key`in e?C:v}function Li(e,t){return typeof e==`number`&&typeof t==`number`?e===t:Array.isArray(e)&&Array.isArray(t)?Or(e,t):!1}var Ri=Z.forwardRef(function(e,n){let{"aria-labelledby":r,className:i,defaultValue:a,disabled:o=!1,id:c,format:l,largeStep:u=10,locale:d,render:f,max:p=100,min:m=0,minStepsBetweenValues:h=0,form:g,name:v,onValueChange:y,onValueCommitted:b,orientation:x=`horizontal`,step:S=1,thumbCollisionBehavior:C=`push`,thumbAlignment:w=`center`,value:E,style:D,...O}=e,k=Ce(c),te=it(k),A=T(y),M=T(b),{clearErrors:N}=Xe(),{state:ne,disabled:P,name:F,setTouched:re,setDirty:I,validityData:ie,shouldValidateOnChange:L,validation:R}=Ze(),{labelId:ae}=at(),[oe,z]=Z.useState(),B=r??$e(ae,oe),V=P||o,H=F??v,[U,W]=dt({controlled:E,default:a??m,name:`Slider`}),G=Z.useRef(null),K=Z.useRef(null),ce=Z.useRef([]),q=Z.useRef(null),le=Z.useRef(null),ue=Z.useRef(-1),de=Z.useRef(null),pe=Z.useRef(null),he=Z.useRef(`none`),ge=t(l),[_e,ve]=Z.useState(-1),[J,ye]=Z.useState(-1),[be,xe]=Z.useState(!1),[Se,we]=Z.useState(()=>new Map),[Y,Te]=Z.useState([void 0,void 0]),Ee=T(e=>{ve(e),e!==-1&&ye(e)});et(K,k,U),Xt(U,()=>{N(H),L()?R.commit(U):R.commit(U,!0);let e=ie.initialValue,t;t=Array.isArray(U)&&Array.isArray(e)?!Or(U,e):U!==e,I(t)});let De=T(e=>{e&&(K.current=e)}),Oe=Array.isArray(U),ke=Z.useMemo(()=>Oe?U.slice().sort(ki):[Mr(U,m,p)],[p,m,Oe,U]),Ae=T((e,t)=>{if(Number.isNaN(e)||Li(e,U))return;let n=t??ee(`none`,void 0,void 0,{activeThumbIndex:-1});he.current=n.reason;let r=n.event,i=new(r.constructor??Event)(r.type,r);Object.defineProperty(i,`target`,{writable:!0,value:{value:e,name:H}}),n.event=i,pe.current=e,A(e,n),!n.isCanceled&&W(e)}),X=T((e,t,n)=>{let r=ji(e,t,m,p,Oe,ke);if(Mi(r,S,h)){let e=Ii(n);Ae(r,ee(e,n.nativeEvent,void 0,{activeThumbIndex:t})),re(!0),M(pe.current??r,j(e,n.nativeEvent))}});me(()=>{let e=fe(s(G.current));V&&se(G.current,e)&&e.blur()},[V]),V&&_e!==-1&&Ee(-1);let je=Z.useMemo(()=>({...ne,activeThumbIndex:_e,disabled:V,dragging:be,orientation:x,max:p,min:m,minStepsBetweenValues:h,step:S,values:ke}),[ne,_e,V,be,p,m,h,x,S,ke]),Me=Z.useMemo(()=>({active:_e,controlRef:K,disabled:V,dragging:be,validation:R,formatOptionsRef:ge,handleInputChange:X,indicatorPosition:Y,inset:w!==`center`,labelId:B,rootLabelId:te,largeStep:u,lastUsedThumbIndex:J,lastChangedValueRef:pe,lastChangeReasonRef:he,form:g,locale:d,max:p,min:m,minStepsBetweenValues:h,name:H,onValueCommitted:M,orientation:x,pressedInputRef:q,pressedThumbCenterOffsetRef:le,pressedThumbIndexRef:ue,pressedValuesRef:de,registerFieldControlRef:De,renderBeforeHydration:w===`edge`,setActive:Ee,setDragging:xe,setIndicatorPosition:Te,setLabelId:z,setValue:Ae,state:je,step:S,thumbCollisionBehavior:C,thumbMap:Se,thumbRefs:ce,values:ke}),[_e,K,B,te,V,be,R,ge,X,Y,u,J,pe,he,g,d,p,m,h,H,M,x,q,le,ue,de,De,Ee,xe,Te,z,Ae,je,S,C,w,Se,ce,ke]),Ne=_(`div`,e,{state:je,ref:[n,G],props:[{"aria-labelledby":B,id:k,role:`group`},R.getValidationProps,O],stateAttributesMapping:Ni});return(0,Q.jsx)(Pi.Provider,{value:Me,children:(0,Q.jsx)(Ve,{elementsRef:ce,onMapChange:we,children:Ne})})});function zi(e){let t=e.getBoundingClientRect();return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function Bi(e){if(e===0)return 0;if(Math.abs(e)<1){let t=e.toExponential().split(`e-`),n=t[0].split(`.`)[1];return(n?n.length:0)+parseInt(t[1],10)}let t=e.toString().split(`.`)[1];return t?t.length:0}function Vi(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Math.max(Bi(t),Bi(n))))}function Hi({values:e,index:t,nextValue:n,min:r,max:i,step:a,minStepsBetweenValues:o,initialValues:s}){if(e.length===0)return[];let c=e.slice(),l=a*o,u=c.length-1,d=s??e;c[t]=Mr(n,r+t*l,i-(u-t)*l);for(let e=t+1;e<=u;e+=1){let t=c[e-1]+l,n=i-(u-e)*l,r=d[e]??c[e],a=Math.max(c[e],t);r<a&&(a=Math.max(r,t)),c[e]=Mr(a,t,n)}for(let e=t-1;e>=0;--e){let t=c[e+1]-l,n=r+e*l,i=d[e]??c[e],a=Math.min(c[e],t);i>a&&(a=Math.min(i,t)),c[e]=Mr(a,n,t)}for(let e=0;e<=u;e+=1)c[e]=Number(c[e].toFixed(12));return c}function Ui({behavior:e,values:t,currentValues:n,initialValues:r,pressedIndex:i,nextValue:a,min:o,max:s,step:c,minStepsBetweenValues:l}){let u=n??t,d=r??t;if(!(u.length>1))return{value:a,thumbIndex:0,didSwap:!1};let f=c*l;switch(e){case`swap`:{let e=u[i],t=1e-7,n=u.slice(),r=n[i-1],p=n[i+1],m=Mr(a,r==null?o:r+f,p==null?s:p-f),h=Number(m.toFixed(12));n[i]=h;let g=a>e,_=a<e,v=g&&p!=null&&a>=p-t,y=_&&r!=null&&a<=r+t;if(!v&&!y)return{value:n,thumbIndex:i,didSwap:!1};let b=v?i+1:i-1,x=n.map((e,t)=>t===i?h:d[t]??u[t]),S=a;S=v?Math.max(a,n[b]):Math.min(a,n[b]);let C=Hi({values:n,index:b,nextValue:S,min:o,max:s,step:c,minStepsBetweenValues:l,initialValues:x}),w=v?b-1:b+1;if(w>=0&&w<C.length){let e=C[w-1],t=C[w+1],n=e==null?o:e+f;n=Math.max(n,o+w*f);let r=t==null?s:t-f;r=Math.min(r,s-(C.length-1-w)*f);let i=Mr(h,n,r);C[w]=Number(i.toFixed(12))}return{value:C,thumbIndex:b,didSwap:!0}}case`push`:return{value:Hi({values:u,index:i,nextValue:a,min:o,max:s,step:c,minStepsBetweenValues:l}),thumbIndex:i,didSwap:!1};default:{let e=u.slice(),t=e[i-1],n=e[i+1],r=Mr(a,t==null?o:t+f,n==null?s:n-f);return e[i]=Number(r.toFixed(12)),{value:e,thumbIndex:i,didSwap:!1}}}}var Wi=2;function Gi(e,t){if(!e)return{start:0,end:0};function n(e){let t=e==null?0:parseFloat(e);return Number.isNaN(t)?0:t}let r=t?`Top`:`InlineStart`,i=t?`Bottom`:`InlineEnd`;return{start:n(e[`border${r}Width`])+n(e[`padding${r}`]),end:n(e[`border${i}Width`])+n(e[`padding${i}`])}}function Ki(e,t){if(t.current!=null&&e.changedTouches){let n=e;for(let e=0;e<n.changedTouches.length;e+=1){let r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return null}return{x:e.clientX,y:e.clientY}}var qi=Z.forwardRef(function(e,r){let{render:i,className:a,style:o,...c}=e,{disabled:l,dragging:u,inset:f,lastChangedValueRef:p,lastChangeReasonRef:m,max:h,min:g,minStepsBetweenValues:v,onValueCommitted:y,orientation:b,pressedInputRef:x,pressedThumbCenterOffsetRef:S,pressedThumbIndexRef:C,pressedValuesRef:w,registerFieldControlRef:D,renderBeforeHydration:O,setActive:k,setDragging:A,setValue:M,state:ne,step:P,thumbCollisionBehavior:F,thumbRefs:re,values:I}=Fi(),ie=n(),L=I.length>1,R=b===`vertical`,ae=Z.useRef(null),oe=Z.useRef(null),B=T(e=>{e&&oe.current==null&&(oe.current=te(e).getComputedStyle(e))}),V=Z.useRef(null),H=Z.useRef(0),U=Z.useRef(0),W=t(I);function G(e){C.current!==e&&(C.current=e);let t=re.current[e];if(!t){S.current=null,x.current=null;return}x.current=t.querySelector(`input[type="range"]`)}function K(e){let t=ae.current;if(!t)return null;let{width:n,height:r,bottom:i,left:a,right:o}=t.getBoundingClientRect(),s=Gi(oe.current,R),c=U.current,l=(R?r:n)-s.start-s.end-c*2,u=S.current??0,d=e.x-u,f=e.y-u,p=Mr(((R?i-f-s.end:(ie===`rtl`?o-d:d-a)-s.start)-c)/l,0,1),m=(h-g)*p+g;if(m=Vi(m,P,g),m=Mr(m,g,h),!L)return{value:m,thumbIndex:0,didSwap:!1};let _=C.current;if(_<0)return null;let y=Ui({behavior:F,values:I,currentValues:W.current??I,initialValues:w.current,pressedIndex:_,nextValue:m,min:g,max:h,step:P,minStepsBetweenValues:v});return F===`swap`&&y.didSwap?G(y.thumbIndex):C.current=y.thumbIndex,y}function ce(e){w.current=L?I.slice():null,W.current=I;let t=C.current,n=t;if(t>-1&&t<I.length){if(I[t]===h){let e=t;for(;e>0&&I[e-1]===h;)--e;n=e}}else{let t=R?`y`:`x`,r;n=-1;for(let i=0;i<re.current.length;i+=1){let a=re.current[i];if(d(a)){let o=zi(a),s=Math.abs(e[t]-o[t]);(r===void 0||s<=r)&&(n=i,r=s)}}}if(n>-1&&n!==t&&G(n),f){let e=re.current[n];d(e)&&(U.current=e.getBoundingClientRect()[R?`height`:`width`]/2)}}function q(e){let t=re.current?.[e]?.querySelector(`input[type="range"]`);t&&t.focus({preventScroll:!0,focusVisible:!1})}let le=T(e=>{let t=Ki(e,V);if(t==null)return;if(H.current+=1,e.type===`pointermove`&&e.buttons===0){ue(e);return}let n=K(t);n!=null&&Mi(n.value,P,v)&&(!u&&H.current>Wi&&A(!0),M(n.value,ee(N,e,void 0,{activeThumbIndex:n.thumbIndex})),W.current=Array.isArray(n.value)?n.value:[n.value],n.didSwap&&q(n.thumbIndex))});function ue(e){k(-1),A(!1),x.current=null,S.current=null;let t=Ki(e,V),n=t==null?null:K(t);if(n!=null){let t=m.current;y(p.current??n.value,j(t,e))}`pointerType`in e&&ae.current?.hasPointerCapture(e.pointerId)&&ae.current?.releasePointerCapture(e.pointerId),C.current=-1,V.current=null,w.current=null,pe()}let de=T(e=>{if(l)return;let t=e.changedTouches[0];t!=null&&(V.current=t.identifier);let n=Ki(e,V);if(n!=null){ce(n);let t=K(n);if(t==null)return;q(t.thumbIndex),M(t.value,ee(z,e,void 0,{activeThumbIndex:t.thumbIndex})),W.current=Array.isArray(t.value)?t.value:[t.value],t.didSwap&&q(t.thumbIndex)}H.current=0;let r=s(ae.current);r.addEventListener(`touchmove`,le,{passive:!0}),r.addEventListener(`touchend`,ue,{passive:!0})}),pe=T(()=>{let e=s(ae.current);e.removeEventListener(`pointermove`,le),e.removeEventListener(`pointerup`,ue),e.removeEventListener(`touchmove`,le),e.removeEventListener(`touchend`,ue),w.current=null}),me=ge();return Z.useEffect(()=>{let e=ae.current;if(!e)return()=>pe();let t=E(e,`touchstart`,de,{passive:!0});return()=>{t(),me.cancel(),pe()}},[pe,de,ae,me]),Z.useEffect(()=>{l&&pe()},[l,pe]),_(`div`,e,{state:ne,ref:[r,D,ae,B],props:[{"data-base-ui-slider-control":O?``:void 0,onPointerDown(e){let t=ae.current,n=ve(e.nativeEvent);if(!t||l||e.defaultPrevented||!d(n)||e.button!==0)return;let r=Ki(e,V);if(r!=null){ce(r);let n=K(r);if(n==null)return;se(re.current[n.thumbIndex],fe(s(t)))?e.preventDefault():me.request(()=>{q(n.thumbIndex)}),A(!0),S.current??(M(n.value,ee(z,e.nativeEvent,void 0,{activeThumbIndex:n.thumbIndex})),W.current=Array.isArray(n.value)?n.value:[n.value],n.didSwap&&q(n.thumbIndex))}e.nativeEvent.pointerId&&t.setPointerCapture(e.nativeEvent.pointerId),H.current=0;let i=s(ae.current);i.addEventListener(`pointermove`,le,{passive:!0}),i.addEventListener(`pointerup`,ue,{once:!0})}},c],stateAttributesMapping:Ni})}),Ji=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=Fi();return _(`div`,e,{state:o,ref:t,props:[{style:{position:`relative`}},a],stateAttributesMapping:Ni})}),Yi=ce();function Xi(){return m}function Zi(){return!1}function Qi(){return!0}function $i(){return(0,Yi.useSyncExternalStore)(Xi,Zi,Qi)}var ea=function(e){return e.index=`data-index`,e.dragging=`data-dragging`,e.orientation=`data-orientation`,e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.focused=`data-focused`,e}({}),ta=new Set([...Wt,Ht,Kt]);function na(e,t,n,r){if(!(t<0))return e.length===2?t===0?`${Fr(e[t],r,n)} start range`:`${Fr(e[t],r,n)} end range`:n?Fr(e[t],r,n):void 0}function ra(e,t,n,r,i){let a=n===1?e+t:e-t;return Mr(Number(a.toFixed(Math.max(Bi(e),Bi(t),Bi(r)))),r,i)}var ia=Z.forwardRef(function(e,t){let{render:r,children:i,className:a,"aria-describedby":o,"aria-label":s,"aria-labelledby":c,disabled:l=!1,getAriaLabel:u,getAriaValueText:d,id:f,index:p,inputRef:m,onBlur:h,onFocus:g,onKeyDown:v,tabIndex:y,style:b,...x}=e,{nonce:S}=jr(),C=Ce(f),{active:w,lastUsedThumbIndex:E,controlRef:ee,disabled:D,validation:O,formatOptionsRef:k,handleInputChange:A,inset:j,labelId:M,largeStep:N,locale:ne,max:P,min:F,minStepsBetweenValues:I,form:ie,name:L,orientation:R,pressedInputRef:ae,pressedThumbCenterOffsetRef:z,pressedThumbIndexRef:B,renderBeforeHydration:V,setActive:H,setIndicatorPosition:U,state:se,step:W,values:G}=Fi(),K=n(),ce=l||D,q=G.length>1,le=R===`vertical`,ue=K===`rtl`,{setTouched:de,setFocused:fe,validationMode:pe}=Ze(),he=Z.useRef(null),ge=Z.useRef(null),_e=Z.useRef(!1),ve=Ce(),J=rt(),xe=q?ve:J,{ref:Se,index:we}=Ue({metadata:Z.useMemo(()=>({inputId:xe}),[xe])}),Y=q?p??we:0,Te=Y===G.length-1,Ee=G[Y],De=Ir(Ee,F,P),[Oe,ke]=Z.useState(),Ae=$i(),X=E>=0&&E<G.length?E:-1,je=T(()=>{let e=ee.current,t=he.current;if(!e||!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=le?`height`:`width`,a=r[i]-n[i],o=(n[i]/2+a*De/100)/r[i]*100,s=Number.isFinite(o)?o:void 0;ke(s),Y===0?U(e=>[s,e[1]]):Te&&U(e=>[e[0],s])});me(()=>{j&&queueMicrotask(je)},[je,j]),me(()=>{j&&je()},[je,j,De]),me(()=>{if(!j)return;let e=ee.current,t=he.current;if(!e||!t)return;let n=te(e).ResizeObserver;if(typeof n!=`function`)return;let r=new n(je);return r.observe(e),r.observe(t),()=>{r.disconnect()}},[ee,je,j]);let Me=le?`bottom`:`insetInlineStart`,Ne=le?`left`:`top`,Pe;q?w===Y?Pe=2:X===Y&&(Pe=1):w===Y&&(Pe=1);let Fe;Fe=j?{"--position":`${Oe??0}%`,visibility:V&&Ae||Oe===void 0?`hidden`:void 0,position:`absolute`,[Me]:`var(--position)`,[Ne]:`50%`,translate:`${(le||!ue?-1:1)*50}% ${(le?1:-1)*50}%`,zIndex:Pe}:Number.isFinite(De)?{position:`absolute`,[Me]:`${De}%`,[Ne]:`50%`,translate:`${(le||!ue?-1:1)*50}% ${(le?1:-1)*50}%`,zIndex:Pe}:re;let Ie;R===`vertical`&&(Ie=ue?`vertical-rl`:`vertical-lr`);let Le=typeof u==`function`?u(Y):s,Re=oe({"aria-label":Le,"aria-labelledby":c??(Le==null?M:void 0),"aria-describedby":o,"aria-orientation":R,"aria-valuenow":Ee,"aria-valuetext":typeof d==`function`?d(Fr(Ee,ne,k.current??void 0),Ee,Y):na(G,Y,k.current??void 0,ne),disabled:ce,form:ie,id:xe,max:P,min:F,name:L,onChange(e){A(e.currentTarget.valueAsNumber,Y,e)},onFocus(e){let t=_e.current;_e.current=!1,H(Y),fe(!0),t&&e.stopPropagation()},onBlur(e){if(_e.current){e.stopPropagation();return}he.current&&(H(-1),de(!0),fe(!1),pe===`onBlur`&&O.commit(ji(Ee,Y,F,P,q,G)))},onKeyDown(e){if(!ta.has(e.key))return;Wt.has(e.key)&&e.stopPropagation();let t=null,n=Vi(Ee,W,F);switch(e.key){case Qt:t=ra(n,e.shiftKey?N:W,1,F,P);break;case Jt:t=ra(n,e.shiftKey?N:W,ue?-1:1,F,P);break;case Yt:t=ra(n,e.shiftKey?N:W,-1,F,P);break;case Ut:t=ra(n,e.shiftKey?N:W,ue?1:-1,F,P);break;case Ht:t=ra(n,N,1,F,P);break;case Kt:t=ra(n,N,-1,F,P);break;case`End`:t=P,q&&(t=Number.isFinite(G[Y+1])?G[Y+1]-W*I:P);break;case Gt:t=F,q&&(t=Number.isFinite(G[Y-1])?G[Y-1]+W*I:F);break;default:break}if(t!==null){let n=e.currentTarget;be(n)||(_e.current=!0,n.blur(),n.focus({preventScroll:!0,focusVisible:!0})),A(t,Y,e),e.preventDefault()}},step:W,style:{...re,width:`100%`,height:`100%`,writingMode:Ie},tabIndex:y??void 0,type:`range`,value:Ee??``},O.getInputValidationProps),ze=ye(ge,O.inputRef,m);return _(`div`,e,{state:se,ref:[t,Se,he],props:[{[ea.index]:Y,children:(0,Q.jsxs)(Z.Fragment,{children:[i,(0,Q.jsx)(`input`,{ref:ze,...Re,suppressHydrationWarning:!0}),j&&Ae&&V&&Te&&(0,Q.jsx)(`script`,{nonce:S,dangerouslySetInnerHTML:{__html:'!function(){const t=document.currentScript?.parentElement;if(!t)return;const e=t.closest("[data-base-ui-slider-control]");if(!e)return;const r=e.querySelector("[data-base-ui-slider-indicator]"),i=e.getBoundingClientRect(),n="vertical"===e.getAttribute("data-orientation")?"height":"width",o=e.querySelectorAll(\'input[type="range"]\'),l=o.length>1,s=o.length-1;let a=null,u=null;for(let t=0;t<o.length;t+=1){const e=o[t],y=parseFloat(e.getAttribute("value")??"");if(Number.isNaN(y))return;const c=e.parentElement;if(!c)return;const p=parseFloat(e.getAttribute("max")??"100"),g=parseFloat(e.getAttribute("min")??"0"),b=c?.getBoundingClientRect(),d=i[n]-b[n],m=100*(y-g)/(p-g),v=(b[n]/2+d*m/100)/i[n]*100;c.style.setProperty("--position",`${v}%`),Number.isFinite(v)&&(c.style.removeProperty("visibility"),r&&(0===t?(a=v,r.style.setProperty("--start-position",`${v}%`),l||r.style.removeProperty("visibility")):t===s&&(u=v-(a??0),r.style.setProperty("--end-position",`${v}%`),r.style.setProperty("--relative-size",`${u}%`),r.style.removeProperty("visibility"))))}}();'},suppressHydrationWarning:!0})]}),id:C,onBlur:h,onFocus:g,onPointerDown(e){if(B.current=Y,he.current!=null){let t=R===`horizontal`?`x`:`y`,n=zi(he.current);z.current=(R===`horizontal`?e.clientX:e.clientY)-n[t]}ge.current!=null&&ae.current!==ge.current&&(ae.current=ge.current)},style:Fe,suppressHydrationWarning:V||void 0},x],stateAttributesMapping:Ni})});function aa(e,t,n,r,i,a){let o=n===void 0||t&&r===void 0?`hidden`:void 0,s=e?`bottom`:`insetInlineStart`,c=e?`height`:`width`,l={visibility:i&&a?`hidden`:o,position:e?`absolute`:`relative`,[e?`width`:`height`]:`inherit`};return l[`--start-position`]=`${n??0}%`,t?(l[`--relative-size`]=`${(r??0)-(n??0)}%`,l[s]=`var(--start-position)`,l[c]=`var(--relative-size)`,l):(l[s]=0,l[c]=`var(--start-position)`,l)}function oa(e,t,n,r){let i=e?`bottom`:`insetInlineStart`,a=e?`height`:`width`,o={position:e?`absolute`:`relative`,[e?`width`:`height`]:`inherit`};if(!t)return o[i]=0,o[a]=`${n}%`,o;let s=r-n;return o[i]=`${n}%`,o[a]=`${s}%`,o}var sa=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{indicatorPosition:o,inset:s,max:c,min:l,orientation:u,renderBeforeHydration:d,state:f,values:p}=Fi(),m=$i(),h=u===`vertical`,g=p.length>1,v=s?aa(h,g,o[0],o[1],d,m):oa(h,g,Ir(p[0],l,c),Ir(p[p.length-1],l,c));return _(`div`,e,{state:f,ref:t,props:[{"data-base-ui-slider-indicator":d?``:void 0,style:v,suppressHydrationWarning:d||void 0},a],stateAttributesMapping:Ni})}),ca=Z.createContext(void 0);function la(){let e=Z.useContext(ca);if(e===void 0)throw Error(V(63));return e}var ua=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.disabled=`data-disabled`,e.readonly=`data-readonly`,e.required=`data-required`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),da={...tt,checked(e){return e?{[ua.checked]:``}:{[ua.unchecked]:``}}},fa=Z.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i,"aria-labelledby":a,form:o,id:s,inputRef:c,name:l,nativeButton:d=!1,onCheckedChange:f,readOnly:p=!1,required:m=!1,disabled:h=!1,render:g,uncheckedValue:v,value:y,style:b,...S}=e,{clearErrors:C}=Xe(),{state:w,setTouched:T,setDirty:E,validityData:D,setFilled:k,setFocused:A,shouldValidateOnChange:j,validationMode:M,disabled:N,name:ne,validation:P}=Ze(),{labelId:F}=at(),I=N||h,ie=ne??l,L=Z.useRef(null),ae=ye(L,c,P.inputRef),z=Z.useRef(null),B=Ce(),V=rt({id:s,implicit:!1,controlRef:z}),H=d?void 0:V,[U,se]=dt({controlled:n,default:!!i,name:`Switch`,state:`checked`});et(z,B,U),me(()=>{L.current&&k(L.current.checked)},[L,k]),Xt(U,()=>{C(ie),E(U!==D.initialValue),k(U),j()?P.commit(U):P.commit(U,!0)});let{getButtonProps:W,buttonRef:G}=O({disabled:I,native:d}),K=Tr(a,F,L,!d,H),ce={id:d?V:B,role:`switch`,"aria-checked":U,"aria-readonly":p||void 0,"aria-required":m||void 0,"aria-labelledby":K,onFocus(){I||A(!0)},onBlur(){let e=L.current;!e||I||(T(!0),A(!1),M===`onBlur`&&P.commit(e.checked))},onClick(e){if(p||I)return;e.preventDefault();let t=L.current;t&&t.dispatchEvent(new(te(t)).PointerEvent(`click`,{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))}},q=oe({checked:U,disabled:I,form:o,id:H,name:ie,required:m,style:ie?u:re,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,ref:ae,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(p){e.preventDefault();return}let t=e.currentTarget.checked,n=ee(x,e.nativeEvent);f?.(t,n),!n.isCanceled&&se(t)},onFocus(){z.current?.focus()}},P.getInputValidationProps,y===void 0?R:{value:y}),le=Z.useMemo(()=>({...w,checked:U,disabled:I,readOnly:p,required:m}),[w,U,I,p,m]),ue=_(`span`,e,{state:le,ref:[t,z,G],props:[ce,P.getValidationProps,S,W],stateAttributesMapping:da});return(0,Q.jsxs)(ca.Provider,{value:le,children:[ue,!U&&ie&&v!==void 0&&(0,Q.jsx)(`input`,{type:`hidden`,form:o,name:ie,value:v}),(0,Q.jsx)(`input`,{...q,suppressHydrationWarning:!0})]})}),pa=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return _(`span`,e,{state:la(),ref:t,stateAttributesMapping:da,props:a})}),ma={production:`bg-green-500/10 text-green-700 dark:text-green-400 border-green-500/20`,dev:`bg-blue-500/10 text-blue-700 dark:text-blue-400 border-blue-500/20`,staging:`bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 border-yellow-500/20`};function ha({channel:e,className:t}){return(0,Q.jsx)(An,{variant:`outline`,className:o(ma[e.toLowerCase()]||`bg-gray-500/10 text-gray-700 dark:text-gray-400 border-gray-500/20`,t),children:e})}function ga({enabled:e,className:t,falseIcon:n=`x`,colorMode:r=`semantic`}){let i=r===`inherit`?`text-current`:void 0;return e?(0,Q.jsx)(Ae,{className:o(`h-4 w-4`,i??`text-green-600 dark:text-green-400`,t)}):n===`minus`?(0,Q.jsx)(qn,{className:o(`h-4 w-4`,i??`text-muted-foreground`,t)}):(0,Q.jsx)(Pe,{className:o(`h-4 w-4`,i??`text-red-600 dark:text-red-400`,t)})}var _a=e=>{if(!wr(e))throw TypeError(`Expected a canonical lowercase UUIDv7`);let t=e.split(`-`).join(``).slice(0,12);return Number.parseInt(t,16)};function va(e){let t=new Uint8Array(10);crypto.getRandomValues(t);let n=Array.from(t).map(e=>e.toString(16).padStart(2,`0`)).join(``),r=n.slice(0,3),i=n.slice(3,19),a=`7${r}`,o=(128|parseInt(i.slice(0,2),16)&63).toString(16).padStart(2,`0`);return[e.slice(0,8),e.slice(8,12),a,o+i.slice(2,4),i.slice(4,16)].join(`-`)}var ya=()=>va(Date.now().toString(16).padStart(12,`0`)),ba=f(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ee=E.prototype;return w.prototype=ee,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ee[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),xa=f(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_relativeTime=r()})(e,(function(){return function(e,t,n){e||={};var r=t.prototype,i={future:`in %s`,past:`%s ago`,s:`a few seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`};function a(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,a,o,s){for(var c,l,u,d=a.$locale().relativeTime||i,f=e.thresholds||[{l:`s`,r:44,d:`second`},{l:`m`,r:89},{l:`mm`,r:44,d:`minute`},{l:`h`,r:89},{l:`hh`,r:21,d:`hour`},{l:`d`,r:35},{l:`dd`,r:25,d:`day`},{l:`M`,r:45},{l:`MM`,r:10,d:`month`},{l:`y`,r:17},{l:`yy`,d:`year`}],p=f.length,m=0;m<p;m+=1){var h=f[m];h.d&&(c=o?n(t).diff(a,h.d,!0):a.diff(t,h.d,!0));var g=(e.rounding||Math.round)(Math.abs(c));if(u=c>0,g<=h.r||!h.r){g<=1&&m>0&&(h=f[m-1]);var _=d[h.l];s&&(g=s(``+g)),l=typeof _==`string`?_.replace(`%d`,g):_(g,r,h.l,u);break}}if(r)return l;var v=u?d.future:d.past;return typeof v==`function`?v(l):v.replace(`%s`,l)},r.to=function(e,t){return a(e,t,this,!0)},r.from=function(e,t){return a(e,t,this)};var o=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(o(this),e)},r.fromNow=function(e){return this.from(o(this),e)}}}))})),Sa=w(ba(),1),Ca=w(xa(),1);Sa.default.extend(Ca.default);function wa({uuid:e,format:t=`relative`}){let n=(0,Sa.default)(_a(e));return t===`relative`?(0,Q.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.fromNow()}):t===`absolute`?(0,Q.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)}):(0,Q.jsxs)(`div`,{className:`flex flex-col`,children:[(0,Q.jsx)(`span`,{className:`text-sm`,children:n.fromNow()}),(0,Q.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)})]})}function Ta({panelId:e,bundle:t,bundles:n,loading:r,onDetailClick:i}){let a=de();return(0,Q.jsx)(`div`,{"aria-live":`polite`,className:`border-t bg-muted/10 p-3 sm:p-4`,id:e,children:(0,Q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,Q.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,Q.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2 text-sm sm:items-center`,children:[(0,Q.jsx)(`span`,{className:`text-muted-foreground`,children:`Base bundle`}),(0,Q.jsx)(Ln,{bundleId:t.id,fullOnMobile:!0,maxLength:18})]}),(0,Q.jsxs)(An,{variant:`outline`,children:[n.length,` `,n.length===1?`patch`:`patches`]})]}),r?(0,Q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Q.jsx)(P,{className:`h-10 w-full`}),(0,Q.jsx)(P,{className:`h-10 w-full`})]}):n.length>0?(0,Q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Q.jsx)(`div`,{className:`text-xs font-semibold uppercase text-muted-foreground/70`,children:`Patch bundles from this base`}),a?(0,Q.jsx)(`div`,{className:`flex flex-col gap-2`,children:n.map(e=>(0,Q.jsx)(`div`,{className:`rounded-md border bg-background p-3`,children:(0,Q.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,Q.jsxs)(`div`,{className:`space-y-1`,children:[(0,Q.jsx)(`div`,{className:`text-[11px] font-medium uppercase text-muted-foreground/70`,children:`Patch Bundle`}),(0,Q.jsx)(Ln,{bundleId:e.id,fullOnMobile:!0,maxLength:18})]}),(0,Q.jsxs)(`div`,{className:`space-y-1`,children:[(0,Q.jsx)(`div`,{className:`text-[11px] font-medium uppercase text-muted-foreground/70`,children:`Relation`}),(0,Q.jsxs)(`div`,{className:`flex flex-col items-start gap-1 text-sm`,children:[(0,Q.jsx)(Ln,{bundleId:t.id,fullOnMobile:!0,maxLength:12}),(0,Q.jsx)(Rn,{className:`size-4 rotate-90 text-muted-foreground`}),(0,Q.jsx)(Ln,{bundleId:e.id,fullOnMobile:!0,maxLength:12})]})]}),(0,Q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,Q.jsxs)(`div`,{className:`space-y-1`,children:[(0,Q.jsx)(`div`,{className:`text-[11px] font-medium uppercase text-muted-foreground/70`,children:`Artifact`}),(0,Q.jsx)(An,{variant:`secondary`,children:`bsdiff`})]}),(0,Q.jsxs)(`div`,{className:`space-y-1 text-right`,children:[(0,Q.jsx)(`div`,{className:`text-[11px] font-medium uppercase text-muted-foreground/70`,children:`Created`}),(0,Q.jsx)(`div`,{className:`text-xs tabular-nums text-foreground`,children:(0,Q.jsx)(wa,{uuid:e.id})})]})]}),(0,Q.jsx)(F,{className:`w-full`,onClick:()=>i(e),size:`sm`,type:`button`,variant:`outline`,children:`Detail`})]})},e.id))}):(0,Q.jsx)(`div`,{className:`overflow-x-auto rounded-md border bg-background`,children:(0,Q.jsxs)(In,{className:`min-w-max`,children:[(0,Q.jsx)(jn,{children:(0,Q.jsxs)(Pn,{className:`hover:bg-transparent`,children:[(0,Q.jsx)(Mn,{children:`Patch Bundle`}),(0,Q.jsx)(Mn,{children:`Relation`}),(0,Q.jsx)(Mn,{children:`Artifact`}),(0,Q.jsx)(Mn,{children:`Created`}),(0,Q.jsx)(Mn,{className:`w-24 text-right`,children:`Detail`})]})}),(0,Q.jsx)(Nn,{children:n.map(e=>(0,Q.jsxs)(Pn,{children:[(0,Q.jsx)(Fn,{children:(0,Q.jsx)(Ln,{bundleId:e.id,fullOnMobile:!0,maxLength:18})}),(0,Q.jsx)(Fn,{children:(0,Q.jsxs)(`div`,{className:`flex min-w-[280px] flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-2`,children:[(0,Q.jsx)(Ln,{bundleId:t.id,fullOnMobile:!0,maxLength:12}),(0,Q.jsx)(Rn,{className:`size-4 shrink-0 rotate-90 text-muted-foreground sm:rotate-0`}),(0,Q.jsx)(Ln,{bundleId:e.id,fullOnMobile:!0,maxLength:12})]})}),(0,Q.jsx)(Fn,{children:(0,Q.jsx)(An,{variant:`secondary`,children:`bsdiff`})}),(0,Q.jsx)(Fn,{className:`tabular-nums`,children:(0,Q.jsx)(wa,{uuid:e.id})}),(0,Q.jsx)(Fn,{className:`text-right`,children:(0,Q.jsx)(F,{onClick:()=>i(e),size:`sm`,type:`button`,variant:`outline`,children:`Detail`})})]},e.id))})]})})]}):(0,Q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Q.jsx)(`div`,{className:`text-xs font-semibold uppercase text-muted-foreground/70`,children:`Patch bundles from this base`}),(0,Q.jsx)(`div`,{className:`rounded-md border bg-background p-3 text-sm text-muted-foreground`,children:`No direct patch bundles.`})]})]})})}function Ea({open:e,onOpenChange:t}){let[n,r]=(0,Z.useState)(``),[i,a]=(0,Z.useState)(null),{data:o=[],isPending:s}=an(),c=_n(),l=on(),u=n.trim(),d=async e=>{if(e.preventDefault(),!(!u||c.isPending))try{let e=await c.mutateAsync({row:{id:ya(),name:u},onConflict:`returnExisting`});r(``),e.inserted?en.success(`Channel ${e.row.name} created`):en.info(`Channel ${e.row.name} already exists`)}catch(e){en.error(`Failed to create channel`),console.error(e)}},f=async()=>{if(!(!i||l.isPending))try{let e=await l.mutateAsync({id:i.id});e.deleted?en.success(`Channel ${i.name} deleted`):e.reason===`not_empty`?en.error(`Channel ${i.name} is still in use and cannot be deleted`):en.error(`Channel ${i.name} no longer exists`),a(null)}catch(e){en.error(`Failed to delete channel`),console.error(e)}};return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Pt,{open:e,onOpenChange:t,children:(0,Q.jsxs)(kt,{className:`sm:max-w-lg`,children:[(0,Q.jsxs)(bt,{children:[(0,Q.jsxs)(At,{className:`flex items-center gap-2`,children:[(0,Q.jsx)(Yn,{className:`size-4 text-muted-foreground`}),`Channels`]}),(0,Q.jsx)(Mt,{children:`Create deployment channels and remove them when no Release uses them. Empty channels remain available until you delete them.`})]}),(0,Q.jsx)(`form`,{onSubmit:d,children:(0,Q.jsx)(X,{className:`gap-2`,children:(0,Q.jsxs)(Fe,{orientation:`horizontal`,children:[(0,Q.jsx)(ke,{htmlFor:`channel-name`,className:`sr-only`,children:`Channel name`}),(0,Q.jsx)(we,{id:`channel-name`,value:n,onChange:e=>r(e.target.value),placeholder:`Channel name`,autoComplete:`off`,disabled:c.isPending}),(0,Q.jsxs)(F,{type:`submit`,disabled:!u||c.isPending,children:[c.isPending?(0,Q.jsx)(pt,{"data-icon":`inline-start`,className:`animate-spin`}):(0,Q.jsx)(yt,{"data-icon":`inline-start`}),`Create`]})]})})}),(0,Q.jsx)(`div`,{className:`max-h-72 overflow-y-auto rounded-lg border`,children:s?(0,Q.jsxs)(`div`,{className:`flex h-20 items-center justify-center text-muted-foreground`,children:[(0,Q.jsx)(pt,{className:`mr-2 size-3.5 animate-spin`}),`Loading channels`]}):o.length===0?(0,Q.jsx)(`div`,{className:`flex h-20 items-center justify-center text-muted-foreground`,children:`No channels yet`}):(0,Q.jsx)(`ul`,{className:`divide-y`,children:o.map(e=>(0,Q.jsxs)(`li`,{className:`flex min-h-12 items-center gap-3 px-3 py-2`,children:[(0,Q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Q.jsx)(`p`,{className:`truncate text-xs font-medium`,children:e.name}),(0,Q.jsx)(`p`,{className:`truncate font-mono text-[10px] text-muted-foreground`,children:e.id})]}),(0,Q.jsx)(F,{type:`button`,variant:`ghost`,size:`icon-sm`,"aria-label":`Delete ${e.name}`,title:`Delete ${e.name}`,disabled:l.isPending,onClick:()=>a(e),className:`text-muted-foreground hover:text-destructive`,children:(0,Q.jsx)(Zn,{"data-icon":`inline-start`})})]},e.id))})})]})}),(0,Q.jsx)(St,{open:i!==null,onOpenChange:e=>{!e&&!l.isPending&&a(null)},children:(0,Q.jsxs)(Ct,{children:[(0,Q.jsxs)(Ot,{children:[(0,Q.jsxs)(Tt,{children:[`Delete `,i?.name,`?`]}),(0,Q.jsx)(wt,{children:`Only empty channels can be removed. The server checks this when you delete it, and the channel can be created again later with a new ID.`})]}),(0,Q.jsxs)(jt,{children:[(0,Q.jsx)(Ft,{disabled:l.isPending,children:`Cancel`}),(0,Q.jsx)(Dt,{variant:`destructive`,disabled:l.isPending,onClick:e=>{e.preventDefault(),f()},children:l.isPending?`Deleting...`:`Delete channel`})]})]})})]})}var Da=`[a-zA-Z0-9-]`,Oa=String.raw`0|[1-9]\d*`,ka=String.raw`\d+`,Aa=String.raw`\d*[a-zA-Z-]${Da}*`,ja=String.raw`(${Oa})\.(${Oa})\.(${Oa})`,Ma=String.raw`(${ka})\.(${ka})\.(${ka})`,Na=`(?:${Aa}|${Oa})`,Pa=`(?:${Aa}|${ka})`,Fa=String.raw`(?:-(${Na}(?:\.${Na})*))`,Ia=String.raw`(?:-?(${Pa}(?:\.${Pa})*))`,La=`${Da}+`,Ra=String.raw`(?:\+(${La}(?:\.${La})*))`,za=`v?${ja}${Fa}?${Ra}?`,Ba=String.raw`[v=\s]*${Ma}${Ia}?${Ra}?`,Va=`((?:<|>)?=?)`,Ha=String.raw`${Oa}|x|X|\*`,Ua=String.raw`${ka}|x|X|\*`,Wa=String.raw`[v=\s]*(${Ha})(?:\.(${Ha})(?:\.(${Ha})(?:${Fa})?${Ra}?)?)?`,Ga=String.raw`[v=\s]*(${Ua})(?:\.(${Ua})(?:\.(${Ua})(?:${Ia})?${Ra}?)?)?`,Ka=`(?:~>?)`,qa=String.raw`(?:\^)`,Ja=String.raw`(^|[^\d])(\d{1,${16}})(?:\.(\d{1,${16}}))?(?:\.(\d{1,${16}}))?`,Ya=String.raw`${Ja}(?:$|[^\d])`,Xa=String.raw`${Ja}(?:${Fa})?(?:${Ra})?(?:$|[^\d])`;function Za(e){let t=[[String.raw`\s`,1],[String.raw`\d`,256],[Da,250]];for(let[n,r]of t)e=e.split(`${n}*`).join(`${n}{0,${r}}`).split(`${n}+`).join(`${n}{1,${r}}`);return e}function Qa(e,t){return new RegExp(Za(e),t)}var $a=Qa(`^${za}$`),eo=Qa(`^${Ba}$`);Qa(`^${Fa}$`),Qa(`^${Ia}$`),Qa(Ya),Qa(Xa);var to=/^\d+$/;function no(e){let t=`${e.major}.${e.minor}.${e.patch}`;return e.prerelease?.length?`${t}-${e.prerelease.join(`.`)}`:t}function ro(e,t={}){if(typeof e!=`string`)return e;if(e.length>256)throw TypeError(`Version exceeds the maximum length of 256 characters`);let n=e.trim().match(t.loose?eo:$a);if(!n)throw TypeError(`Invalid version syntax: ${e}`);let r=Number(n[1]),i=Number(n[2]),a=Number(n[3]);if(r>2**53-1||r<0)throw TypeError(`Invalid major version: ${n[1]}`);if(i>2**53-1||i<0)throw TypeError(`Invalid minor version: ${n[2]}`);if(a>2**53-1||a<0)throw TypeError(`Invalid patch version: ${n[3]}`);let o=n[4]?n[4].split(`.`).map(e=>{if(to.test(e)){let t=Number(e);if(t>=0&&t<2**53-1)return t}return e}):void 0;return{build:n[5]?.split(`.`),major:r,minor:i,patch:a,prerelease:o}}var io=Qa(String.raw`^${Va}\s*(${za})$|^$`),ao=Qa(String.raw`^${Va}\s*(${Ba})$|^$`);function oo(e,t={}){let n=e.trim().replaceAll(/\s+/g,` `),r=n.match(t.loose?ao:io);if(!r)throw TypeError(`Invalid comparator: ${n}`);let i=r[1]===`=`?``:r[1]||``,a=r[2]?ro(r[2],t):null;return{operator:i,options:t,value:a?`${i}${no(a)}`:``,version:a}}var so=new RegExp(Ra,`g`),co=Qa(Ra),lo=Qa(String.raw`^\s*(${Wa})\s+-\s+(${Wa})\s*$`),uo=Qa(String.raw`^\s*(${Ga})\s+-\s+(${Ga})\s*$`),fo=Qa(String.raw`(\s*)${Va}\s*(${Ba}|${Wa})`,`g`),po=Qa(String.raw`(\s*)${Ka}\s+`,`g`),mo=Qa(String.raw`(\s*)${qa}\s+`,`g`),ho=Qa(`^${Ka}${Wa}$`),go=Qa(`^${Ka}${Ga}$`),_o=Qa(`^${qa}${Wa}$`),vo=Qa(`^${qa}${Ga}$`),yo=Qa(String.raw`^${Va}\s*${Wa}$`),bo=Qa(String.raw`^${Va}\s*${Ga}$`),xo=Qa(String.raw`(<|>)?=?\s*\*`),So=/^\s*>=\s*0\.0\.0\s*$/,Co=/^\s*>=\s*0\.0\.0-0\s*$/,wo=Qa(String.raw`^${Va}\s*(${Ba})$|^$`);function To(e){return!e||String(e).toLowerCase()===`x`||String(e)===`*`}function Eo(e,t,n){return To(e)&&!To(t)||To(t)&&!!n&&!To(n)}function Do(e,t){let n=t.loose?go:ho,r=t.includePrerelease?`-0`:``;return e.replace(n,(e,t,n,i,a)=>To(t)?``:To(n)?`>=${t}.0.0${r} <${Number(t)+1}.0.0-0`:To(i)?`>=${t}.${n}.0${r} <${t}.${Number(n)+1}.0-0`:a?`>=${t}.${n}.${i}-${a} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${i} <${t}.${Number(n)+1}.0-0`)}function Oo(e,t){return e.trim().split(/\s+/).map(e=>Do(e,t)).join(` `)}function ko(e,t){let n=t.loose?vo:_o,r=t.includePrerelease?`-0`:``;return e.replace(n,(e,t,n,i,a)=>To(t)?``:To(n)?`>=${t}.0.0${r} <${Number(t)+1}.0.0-0`:To(i)?t===`0`?`>=${t}.${n}.0${r} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.0${r} <${Number(t)+1}.0.0-0`:a?t===`0`?n===`0`?`>=${t}.${n}.${i}-${a} <${t}.${n}.${Number(i)+1}-0`:`>=${t}.${n}.${i}-${a} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${i}-${a} <${Number(t)+1}.0.0-0`:t===`0`?n===`0`?`>=${t}.${n}.${i} <${t}.${n}.${Number(i)+1}-0`:`>=${t}.${n}.${i} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${i} <${Number(t)+1}.0.0-0`)}function Ao(e,t){return e.trim().split(/\s+/).map(e=>ko(e,t)).join(` `)}function jo(e,t){let n=t.loose?bo:yo;return e.trim().replace(n,(n,r,i,a,o)=>{let s=r,c=i,l=a,u=o;if(Eo(String(c),l===void 0?void 0:String(l),u===void 0?void 0:String(u)))return e;let d=To(c),f=d||To(l),p=f||To(u);if(s===`=`&&p&&(s=``),d)return s===`>`||s===`<`?`<0.0.0-0`:`*`;let m=t.includePrerelease?`-0`:``;return s&&p?(f&&(l=0),u=0,s===`>`?(s=`>=`,f?(c=Number(c)+1,l=0):l=Number(l)+1):s===`<=`&&(s=`<`,f?c=Number(c)+1:l=Number(l)+1),s===`<`&&(m=`-0`),`${s}${c}.${l}.${u}${m}`):f?`>=${c}.0.0${m} <${Number(c)+1}.0.0-0`:p?`>=${c}.${l}.0${m} <${c}.${Number(l)+1}.0-0`:n})}function Mo(e,t){return e.split(/\s+/).map(e=>jo(e,t)).join(` `)}function No(e,t){let n=t.loose?uo:lo;return e.replace(n,(e,n,r,i,a,o,s,c,l,u,d,f)=>{let p=n,m=c;return p=To(r)?``:To(i)?`>=${r}.0.0${t.includePrerelease?`-0`:``}`:To(a)?`>=${r}.${i}.0${t.includePrerelease?`-0`:``}`:o?`>=${p}`:`>=${p}${t.includePrerelease?`-0`:``}`,m=To(l)?``:To(u)?`<${Number(l)+1}.0.0-0`:To(d)?`<${l}.${Number(u)+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:t.includePrerelease?`<${l}.${u}.${Number(d)+1}-0`:`<=${m}`,`${p} ${m}`.trim()})}function Po(e,t){return Mo(Oo(Ao(e.replace(co,``),t),t),t).trim().replace(xo,``)}function Fo(e,t){let n=No(e.replace(so,``),t).replace(fo,`$1$2$3`).replace(po,`$1~`).replace(mo,`$1^`).split(` `).map(e=>Po(e,t)).join(` `).split(/\s+/).map(e=>e.trim().replace(t.includePrerelease?Co:So,``));t.loose&&(n=n.filter(e=>wo.test(e)));let r=new Map;for(let e of n.map(e=>oo(e,t))){if(e.value===`<0.0.0-0`)return[e];r.set(e.value,e)}return r.size>1&&r.delete(``),[...r.values()]}function Io(e,t={}){if(typeof e!=`string`)return e;let n={...t},r=e.trim().replaceAll(/\s+/g,` `),i=r.split(`||`).map(e=>Fo(e.trim(),n)).filter(e=>e.length);if(!i.length)throw TypeError(`Range contains no valid comparator sets: ${r}`);if(i.length>1){let e=i[0];if(i=i.filter(e=>e[0]?.value!==`<0.0.0-0`),!i.length)i=[e];else if(i.length>1){let e=i.find(e=>e.length===1&&e[0]?.value===``);e&&(i=[e])}}return{normalized:i.map(e=>e.map(e=>e.value).join(` `)).join(`||`),options:n,raw:r,sets:i}}function Lo(e,t={}){try{return Io(e,t)}catch{return null}}function Ro(e,t={}){let n=Lo(e,t);return n?n.normalized||`*`:null}function zo({label:e,tone:t,value:n}){return(0,Q.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,Q.jsxs)(`dt`,{className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:t===`applied`?`size-2 rounded-full bg-chart-2`:`size-2 rounded-full bg-muted-foreground`}),e]}),(0,Q.jsx)(`dd`,{className:`text-xl font-semibold tracking-tight tabular-nums`,children:n})]})}function Bo({bundleId:e}){let{data:t,error:n,isLoading:r}=gn({bundleId:e,window:`30d`,limit:1,offset:0},!0);return(0,Q.jsxs)(Sn,{children:[(0,Q.jsx)(wn,{className:`p-4 pb-3`,children:(0,Q.jsx)(kn,{className:`text-sm font-medium`,children:`Activity · 30 days`})}),(0,Q.jsx)(Tn,{className:`flex flex-col gap-3 px-4 pb-4`,children:r?(0,Q.jsxs)(`div`,{"aria-label":`Loading reported bundle outcomes`,className:`flex flex-col gap-3`,children:[(0,Q.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,Q.jsx)(P,{className:`h-10 w-full`}),(0,Q.jsx)(P,{className:`h-10 w-full`})]}),(0,Q.jsx)(P,{className:`h-24 w-full sm:h-32`})]}):n?(0,Q.jsx)(Re,{error:n instanceof Error?n:Error(`Failed to load bundle analytics.`),fallbackTitle:`Analytics unavailable`}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`dl`,{className:`grid grid-cols-2 divide-x divide-border/70`,children:[(0,Q.jsx)(`div`,{className:`pr-4`,children:(0,Q.jsx)(zo,{label:`Applied`,tone:`applied`,value:t?.summary.installed??0})}),(0,Q.jsx)(`div`,{className:`pl-4`,children:(0,Q.jsx)(zo,{label:`Recovered`,tone:`recovered`,value:t?.summary.recovered??0})})]}),(0,Q.jsx)(ot,{installed:t?.series.installed??[],recovered:t?.series.recovered??[],window:`30d`})]})})]})}function Vo({bundleId:e}){return Oe().status===`supported`?(0,Q.jsx)(Bo,{bundleId:e}):null}function Ho({value:e,maxLength:t=12,className:n}){let r=e.length>t,i=r?e.slice(0,t):e,a=async()=>{try{await navigator.clipboard.writeText(e),en.success(`Copied to clipboard`,{description:e})}catch{en.error(`Failed to copy value`)}},s=e=>{e.preventDefault(),e.stopPropagation(),a()},c=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),a())},l=(0,Q.jsx)(`span`,{translate:`no`,className:o(`font-mono text-xs tabular-nums whitespace-nowrap`,n),children:i});return(0,Q.jsxs)(ue,{children:[(0,Q.jsx)(Ee,{render:(0,Q.jsx)(`button`,{type:`button`,translate:`no`,className:o(`ring-ring/30 bg-muted/40 border-border/70 inline-flex min-w-0 max-w-full cursor-pointer items-center rounded-md border px-1.5 py-0.5 align-top shadow-xs outline-none transition-[background-color,border-color,transform,box-shadow]`,`hover:bg-muted/70 active:scale-[0.98] active:bg-muted/85 focus-visible:ring-[2px]`,`touch-manipulation select-none`,!r&&`cursor-copy`),onClick:s,onKeyDown:c}),children:l}),(0,Q.jsx)(U,{hidden:!r,children:(0,Q.jsx)(`p`,{translate:`no`,className:`break-all font-mono text-xs tabular-nums`,children:e})})]})}var Uo=e=>{let t=e.trim();if(t.startsWith(`git@`)){let e=t.match(/^git@([^:]+):(.+?)(?:\.git)?$/);if(e)return`https://${e[1]}/${e[2]}`}if(t.startsWith(`ssh://`))try{let e=new URL(t);return`https://${e.hostname}${e.pathname}`.replace(/\/+$/,``).replace(/\.git$/,``)}catch{return t.replace(/\/+$/,``).replace(/\.git$/,``)}return t.replace(/\/+$/,``).replace(/\.git$/,``)},Wo=(e,t)=>{if(!e?.trim())return null;let n=Uo(e);try{let{hostname:e}=new URL(n);if(e.includes(`gitlab`))return`${n}/-/commit/${t}`;if(e.includes(`bitbucket`))return`${n}/commits/${t}`}catch{}return`${n}/commit/${t}`};function Go({label:e,value:t}){return(0,Q.jsxs)(`div`,{className:`flex flex-col gap-1.5 sm:flex-row sm:items-start sm:justify-between sm:gap-4`,children:[(0,Q.jsx)(`dt`,{className:`text-muted-foreground`,children:e}),(0,Q.jsx)(`dd`,{className:`min-w-0 text-left text-sm sm:text-right`,children:t})]})}function Ko({bundle:e,release:t}){let{data:n,isFetched:r}=mn(),i=e?rr(e):null,a=e?ar(e):null,o=e?ir(e):null,s=e?.gitCommitHash&&r?Wo(n?.console.gitUrl,e.gitCommitHash):null,c=t.strategy===`APP_VERSION`?t.target_app_version:t.fingerprint_hash;return c||e?.gitCommitHash||e?.fileHash||i||o||a?(0,Q.jsxs)(Sn,{children:[(0,Q.jsx)(wn,{className:`p-4 pb-3`,children:(0,Q.jsx)(kn,{className:`text-sm font-medium`,children:`Metadata`})}),(0,Q.jsx)(Tn,{className:`px-4 pb-4`,children:(0,Q.jsxs)(`dl`,{className:`flex flex-col gap-3 text-sm`,children:[(0,Q.jsx)(Go,{label:t.strategy===`APP_VERSION`?`Target app version`:`Fingerprint target`,value:(0,Q.jsx)(`span`,{className:`break-all font-mono text-xs`,translate:`no`,children:c??`—`})}),e?.gitCommitHash?(0,Q.jsx)(Go,{label:`Git commit`,value:(0,Q.jsxs)(`div`,{className:`flex items-center justify-start gap-1 sm:justify-end`,children:[(0,Q.jsx)(Ho,{className:s?`text-primary`:void 0,maxLength:12,value:e.gitCommitHash}),s?(0,Q.jsx)(`a`,{"aria-label":`Open git commit`,className:`shrink-0 text-primary hover:underline`,href:s,rel:`noopener noreferrer`,target:`_blank`,children:(0,Q.jsx)(Un,{"aria-hidden":`true`})}):null]})}):null,e?.fileHash?(0,Q.jsx)(Go,{label:`Bundle hash`,value:(0,Q.jsx)(Ho,{maxLength:16,value:e.fileHash})}):null,i?(0,Q.jsx)(Go,{label:`Patch base`,value:(0,Q.jsx)(Ln,{bundleId:i,fullOnMobile:!0,maxLength:18})}):null,o?(0,Q.jsx)(Go,{label:`Base hash`,value:(0,Q.jsx)(Ho,{maxLength:16,value:o})}):null,a?(0,Q.jsx)(Go,{label:`Patch hash`,value:(0,Q.jsx)(Ho,{maxLength:16,value:a})}):null]})})]}):null}var qo=Array.from({length:or},(e,t)=>t+1);function Jo({releaseId:e,rolloutCohortCount:t,targetCohorts:n}){let r=gr(t),i=n??[],a=i.length>0,o=r>0&&r<1e3,s=r===or,c=de(),l=s?qo:o?qo.filter(t=>Sr(e,t)<r):[],u=(r/10).toFixed(1),d=s?or:l.length,f=or-d,p=(0,Q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,Q.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,Q.jsx)(Sn,{children:(0,Q.jsxs)(wn,{className:`p-4`,children:[(0,Q.jsx)(Dn,{children:`Selected cohorts`}),(0,Q.jsx)(kn,{className:`font-mono text-2xl tabular-nums`,children:d})]})}),(0,Q.jsx)(Sn,{children:(0,Q.jsxs)(wn,{className:`p-4`,children:[(0,Q.jsx)(Dn,{children:`Excluded cohorts`}),(0,Q.jsx)(kn,{className:`font-mono text-2xl tabular-nums`,children:f})]})})]}),a?(0,Q.jsxs)(Sn,{children:[(0,Q.jsxs)(wn,{className:`p-4 pb-3`,children:[(0,Q.jsx)(kn,{className:`text-sm`,children:`Additional cohorts`}),(0,Q.jsx)(Dn,{children:`Always included in addition to the percentage rollout.`})]}),(0,Q.jsx)(Tn,{className:`p-4 pt-0`,children:(0,Q.jsx)(`div`,{className:`flex flex-wrap gap-2 rounded-lg border bg-muted/20 p-3`,children:i.map(e=>(0,Q.jsx)(An,{className:`max-w-full font-mono`,variant:`secondary`,children:(0,Q.jsx)(`span`,{className:`truncate`,children:e})},e))})})]}):null,(0,Q.jsxs)(Sn,{children:[(0,Q.jsx)(wn,{className:`p-4 pb-3`,children:(0,Q.jsx)(kn,{className:`text-sm`,children:`Numeric cohorts`})}),(0,Q.jsx)(Tn,{className:`p-4 pt-0`,children:(0,Q.jsx)(`div`,{className:`max-h-[50vh] overflow-y-auto overscroll-contain rounded-lg border bg-muted/20 p-3 sm:max-h-[45vh]`,children:l.length>0?(0,Q.jsx)(`div`,{"aria-label":`Included numeric cohorts`,className:`grid grid-cols-3 gap-2 sm:grid-cols-6 lg:grid-cols-8`,role:`list`,children:l.map(e=>(0,Q.jsx)(An,{className:`justify-center font-mono tabular-nums`,role:`listitem`,variant:`outline`,children:e},e))}):(0,Q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No numeric cohorts are included.`})})})]})]});return(0,Q.jsxs)(Pt,{children:[(0,Q.jsxs)(Nt,{render:(0,Q.jsx)(F,{size:`sm`,type:`button`,variant:`outline`}),children:[(0,Q.jsx)(Kn,{"data-icon":`inline-start`}),`Preview cohorts`]}),(0,Q.jsx)(kt,{className:c?`top-0 left-0 h-dvh max-w-none translate-x-0 translate-y-0 rounded-none border-0 p-0`:`sm:max-w-3xl`,children:c?(0,Q.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden`,children:[(0,Q.jsxs)(bt,{className:`shrink-0 border-b border-border/70 px-4 py-4`,children:[(0,Q.jsx)(At,{children:`Rolled out cohorts`}),(0,Q.jsxs)(Mt,{children:[u,`% includes `,d,` of`,` `,or,` numeric cohorts.`,a?` Additional cohorts are always included.`:``]})]}),(0,Q.jsx)(`div`,{className:`flex-1 overflow-y-auto overscroll-contain px-4 py-4`,children:p}),(0,Q.jsx)(Et,{className:`shrink-0 border-t border-border/70 px-4 py-3`,showCloseButton:!0})]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(bt,{children:[(0,Q.jsx)(At,{children:`Rolled out cohorts`}),(0,Q.jsxs)(Mt,{children:[u,`% includes `,d,` of`,` `,or,` numeric cohorts.`,a?` Additional cohorts are always included.`:``]})]}),p,(0,Q.jsx)(Et,{showCloseButton:!0})]})})]})}function Yo({className:e}){return(0,Q.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,Q.jsx)(`path`,{d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701`})})}function Xo({className:e}){return(0,Q.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,Q.jsx)(`path`,{d:`M18.4395 5.5586c-.675 1.1664-1.352 2.3318-2.0274 3.498-.0366-.0155-.0742-.0286-.1113-.043-1.8249-.6957-3.484-.8-4.42-.787-1.8551.0185-3.3544.4643-4.2597.8203-.084-.1494-1.7526-3.021-2.0215-3.4864a1.1451 1.1451 0 0 0-.1406-.1914c-.3312-.364-.9054-.4859-1.379-.203-.475.282-.7136.9361-.3886 1.5019 1.9466 3.3696-.0966-.2158 1.9473 3.3593.0172.031-.4946.2642-1.3926 1.0177C2.8987 12.176.452 14.772 0 18.9902h24c-.119-1.1108-.3686-2.099-.7461-3.0683-.7438-1.9118-1.8435-3.2928-2.7402-4.1836a12.1048 12.1048 0 0 0-2.1309-1.6875c.6594-1.122 1.312-2.2559 1.9649-3.3848.2077-.3615.1886-.7956-.0079-1.1191a1.1001 1.1001 0 0 0-.8515-.5332c-.5225-.0536-.9392.3128-1.0488.5449zm-.0391 8.461c.3944.5926.324 1.3306-.1563 1.6503-.4799.3197-1.188.0985-1.582-.4941-.3944-.5927-.324-1.3307.1563-1.6504.4727-.315 1.1812-.1086 1.582.4941zM7.207 13.5273c.4803.3197.5506 1.0577.1563 1.6504-.394.5926-1.1038.8138-1.584.4941-.48-.3197-.5503-1.0577-.1563-1.6504.4008-.6021 1.1087-.8106 1.584-.4941z`})})}function Zo({platform:e,className:t}){return e===`ios`?(0,Q.jsx)(Yo,{className:t}):(0,Q.jsx)(Xo,{className:t})}var Qo=Gr;function $o({className:e,...t}){return(0,Q.jsx)(Oi,{"data-slot":`select-group`,className:o(`scroll-my-1 p-1`,e),...t})}function es({className:e,...t}){return(0,Q.jsx)(Zr,{"data-slot":`select-value`,className:o(`flex flex-1 text-left`,e),...t})}function ts({className:e,size:t=`default`,children:n,...r}){return(0,Q.jsxs)(Yr,{"data-slot":`select-trigger`,"data-size":t,className:o(`flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,e),...r,children:[n,(0,Q.jsx)(Qr,{render:(0,Q.jsx)(Be,{className:`pointer-events-none size-3.5 text-muted-foreground`})})]})}function ns({className:e,children:t,side:n=`bottom`,sideOffset:r=4,align:i=`center`,alignOffset:a=0,alignItemWithTrigger:s=!0,...c}){return(0,Q.jsx)(ei,{children:(0,Q.jsx)(oi,{side:n,sideOffset:r,align:i,alignOffset:a,alignItemWithTrigger:s,className:`isolate z-50`,children:(0,Q.jsxs)(ci,{"data-slot":`select-content`,"data-align-trigger":s,className:o(`dark relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...c,children:[(0,Q.jsx)(is,{}),(0,Q.jsx)(gi,{children:t}),(0,Q.jsx)(as,{})]})})})}function rs({className:e,children:t,...n}){return(0,Q.jsxs)(yi,{"data-slot":`select-item`,className:o(`relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,Q.jsx)(Si,{className:`flex flex-1 shrink-0 gap-2 whitespace-nowrap`,children:t}),(0,Q.jsx)(bi,{render:(0,Q.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,Q.jsx)(Ae,{className:`pointer-events-none`})})]})}function is({className:e,...t}){return(0,Q.jsx)(Ei,{"data-slot":`select-scroll-up-button`,className:o(`top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,e),...t,children:(0,Q.jsx)(Vn,{})})}function as({className:e,...t}){return(0,Q.jsx)(Ti,{"data-slot":`select-scroll-down-button`,className:o(`bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5`,e),...t,children:(0,Q.jsx)(Be,{})})}function os({...e}){return(0,Q.jsx)(It,{"data-slot":`sheet`,...e})}function ss({...e}){return(0,Q.jsx)(xt,{"data-slot":`sheet-portal`,...e})}function cs({className:e,...t}){return(0,Q.jsx)(Lt,{"data-slot":`sheet-overlay`,className:o(`fixed inset-0 z-50 bg-black/80 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,e),...t})}function ls({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,Q.jsxs)(ss,{children:[(0,Q.jsx)(cs,{}),(0,Q.jsxs)(Rt,{"data-slot":`sheet-content`,"data-side":n,className:o(`fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,e),...i,children:[t,r&&(0,Q.jsxs)(_t,{"data-slot":`sheet-close`,render:(0,Q.jsx)(F,{variant:`ghost`,className:`absolute top-4 right-4`,size:`icon-sm`}),children:[(0,Q.jsx)(Pe,{}),(0,Q.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function us({className:e,...t}){return(0,Q.jsx)(`div`,{"data-slot":`sheet-header`,className:o(`flex flex-col gap-1.5 p-6`,e),...t})}function ds({className:e,...t}){return(0,Q.jsx)(zt,{"data-slot":`sheet-title`,className:o(`text-sm font-medium text-foreground`,e),...t})}function fs({className:e,...t}){return(0,Q.jsx)(vt,{"data-slot":`sheet-description`,className:o(`text-xs/relaxed text-muted-foreground`,e),...t})}function ps({className:e,defaultValue:t,value:n,min:r=0,max:i=100,...a}){let s=Array.isArray(n)?n:n===void 0?Array.isArray(t)?t:t===void 0?[r]:[t]:[n];return(0,Q.jsx)(Ri,{className:o(`data-horizontal:w-full data-vertical:h-full`,e),"data-slot":`slider`,defaultValue:t,value:n,min:r,max:i,thumbAlignment:`edge`,...a,children:(0,Q.jsxs)(qi,{className:`relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col`,children:[(0,Q.jsx)(Ji,{"data-slot":`slider-track`,className:`relative grow overflow-hidden rounded-full bg-primary/20 select-none data-horizontal:h-1.5 data-horizontal:w-full data-vertical:h-full data-vertical:w-1.5`,children:(0,Q.jsx)(sa,{"data-slot":`slider-range`,className:`bg-primary select-none data-horizontal:h-full data-vertical:w-full`})}),Array.from({length:s.length},(e,t)=>(0,Q.jsx)(ia,{"data-slot":`slider-thumb`,className:`relative block size-4 shrink-0 rounded-full border border-primary/50 bg-background shadow transition-colors select-none after:absolute after:-inset-2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring data-disabled:pointer-events-none data-disabled:opacity-50`},t))]})})}function ms({className:e,...t}){return(0,Q.jsx)(fa,{"data-slot":`switch`,className:o(`peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-checked:bg-primary data-unchecked:bg-input data-disabled:cursor-not-allowed data-disabled:opacity-50`,e),...t,children:(0,Q.jsx)(pa,{"data-slot":`switch-thumb`,className:`pointer-events-none block size-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-checked:translate-x-4 data-unchecked:translate-x-0`})})}var hs=[{label:`Move bundle`,value:`move`},{label:`Copy bundle`,value:`copy`}],gs=e=>({enabled:e.enabled,message:e.message??``,rolloutCohortCount:e.rollout_cohort_count,shouldForceUpdate:e.should_force_update,targetAppVersion:e.target_app_version??``,targetCohorts:[...e.target_cohorts]}),_s=(e,t)=>({enabled:t.enabled,message:t.message.trim()||null,rolloutCohortCount:t.rolloutCohortCount,shouldForceUpdate:t.shouldForceUpdate,...e.strategy===`APP_VERSION`?{targetAppVersion:t.targetAppVersion.trim()}:{},targetCohorts:t.targetCohorts}),vs=e=>(e/10).toFixed(1),ys=e=>{let t=e.replace(`,`,`.`),[n=``,...r]=t.split(`.`),i=n.replace(/\D/g,``).slice(0,3),a=r.join(``).replace(/\D/g,``).slice(0,1);return t.includes(`.`)?`${i}.${a}`:i},bs=e=>{let t=Number.parseFloat(e);return Number.isFinite(t)?Math.min(1e3,Math.max(0,Math.trunc(t*10))):null};function xs({value:e,onChange:t}){let[n,r]=(0,Z.useState)(vs(e)),[i,a]=(0,Z.useState)(!1);return(0,Z.useEffect)(()=>{i||r(vs(e))},[i,e]),(0,Q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,Q.jsx)(ps,{"aria-label":`Rollout percentage`,max:1e3,min:0,onValueChange:n=>t(Array.isArray(n)?n[0]??e:n),step:1,value:e}),(0,Q.jsxs)(yn,{className:`w-24 shrink-0`,children:[(0,Q.jsx)(bn,{"aria-label":`Rollout percentage`,autoComplete:`off`,className:`text-right tabular-nums`,id:`release-rollout-percentage`,inputMode:`decimal`,name:`rolloutPercentage`,onBlur:()=>{let i=bs(n)??e;a(!1),r(vs(i)),t(i)},onChange:e=>{let n=ys(e.target.value);r(n);let i=bs(n);i!==null&&t(i)},onFocus:()=>a(!0),value:n}),(0,Q.jsx)(xn,{align:`inline-end`,children:(0,Q.jsx)(nn,{children:`%`})})]})]})}function Ss({channels:e,onOpenChange:t,open:n,releaseId:i}){let a=ln(i),o=a.data,s=un(o?.bundle_id??``),c=s.data,l=fn(o?.scope_key??``),u=rn(),d=sn(),f=dn(),p=hn(),[m,h]=(0,Z.useState)(null),[g,_]=(0,Z.useState)(``),[v,y]=(0,Z.useState)(``),[b,x]=(0,Z.useState)(!1),[S,C]=(0,Z.useState)(!1),[w,T]=(0,Z.useState)(!1),[E,ee]=(0,Z.useState)(``),[D,O]=(0,Z.useState)(`move`);(0,Z.useEffect)(()=>{h(o?gs(o):null),y(``)},[o]);let k=o?gs(o):null,te=m!==null&&k!==null&&JSON.stringify(m)!==JSON.stringify(k),A=d.isPending||u.isPending||f.isPending||p.isPending,j=()=>{if(!A){if(te){x(!0);return}t(!1)}},M=()=>{if(!m)return;let e=_r(g);if(!xr(e)){y(cr);return}h({...m,targetCohorts:Array.from(new Set([...m.targetCohorts,e]))}),_(``),y(``)},N=async()=>{if(!o||!m)return;let e=m.targetCohorts.map(_r);if(e.some(e=>!xr(e))){y(cr);return}if(o.strategy===`APP_VERSION`&&!Ro(m.targetAppVersion.trim())){y(`Enter a valid target app version range.`);return}let t={expectedRevision:o.revision,patch:_s(o,{...m,targetCohorts:e}),releaseId:o.id};y(``);try{await d.mutateAsync(t),await u.mutateAsync(t),en.success(`Bundle settings saved`)}catch(e){y(e instanceof Error?e.message:`Bundle settings could not be saved.`)}},ne=e.find(e=>e.id===o?.channel_id)?.name??o?.channel_id,re=e.filter(e=>e.id!==o?.channel_id),I=re.map(e=>({label:e.name,value:e.name})),ie=E.trim(),L=D===`copy`,R=m?Ro(m.targetAppVersion.trim()):null,ae=()=>{ee(``),O(`move`)},oe=e=>{!e&&p.isPending||(T(e),e||ae())};return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(os,{onOpenChange:e=>e?void 0:j(),open:n,children:(0,Q.jsxs)(ls,{className:`min-w-0 overflow-hidden data-[side=right]:w-full sm:max-w-[600px]`,children:[(0,Q.jsxs)(us,{className:`shrink-0 pr-12`,children:[(0,Q.jsx)(ds,{children:`Bundle Detail`}),(0,Q.jsx)(fs,{className:`sr-only`,children:`Edit bundle delivery settings.`}),o?(0,Q.jsxs)(`div`,{className:`mt-1 flex min-w-0 flex-col gap-3 text-sm`,children:[(0,Q.jsx)(`div`,{className:`flex flex-wrap items-center gap-2`,children:(0,Q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Q.jsx)(Zo,{className:`size-4`,platform:o.platform}),(0,Q.jsx)(`span`,{className:`font-medium`,children:o.platform===`ios`?`iOS`:`Android`})]})}),(0,Q.jsxs)(`div`,{className:`flex flex-wrap items-start gap-2`,children:[(0,Q.jsx)(`span`,{className:`font-medium text-muted-foreground`,children:`Bundle`}),(0,Q.jsx)(`span`,{className:`min-w-0 basis-full sm:basis-auto`,children:o.bundle_id?(0,Q.jsx)(Ln,{bundleId:o.bundle_id,fullOnMobile:!0,maxLength:18}):(0,Q.jsx)(`span`,{className:`text-xs text-foreground`,children:`Built-in app`})})]}),(0,Q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,Q.jsx)(`span`,{className:`font-medium text-muted-foreground`,children:`Channel`}),(0,Q.jsx)(`span`,{className:`text-xs text-foreground`,translate:`no`,children:ne})]}),(0,Q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,Q.jsx)(`span`,{className:`font-medium text-muted-foreground`,children:`Platform`}),(0,Q.jsx)(`span`,{className:`text-xs text-foreground`,children:o.platform===`ios`?`iOS`:`Android`})]})]}):(0,Q.jsx)(P,{className:`h-12 w-full`})]}),(0,Q.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto overscroll-contain`,children:[a.isError?(0,Q.jsxs)(On,{className:`m-4 sm:m-6`,variant:`destructive`,children:[(0,Q.jsx)(H,{}),(0,Q.jsx)(Cn,{children:`Bundle details could not be loaded`}),(0,Q.jsx)(En,{children:a.error.message})]}):null,o&&m?(0,Q.jsxs)(`div`,{className:`flex flex-col gap-6 px-4 pb-4 sm:px-6 sm:pb-6`,children:[o.bundle_id?(0,Q.jsx)(Vo,{bundleId:o.bundle_id}):null,(0,Q.jsxs)(`section`,{"aria-labelledby":`delivery-settings-heading`,className:`flex flex-col gap-4`,children:[(0,Q.jsx)(`h3`,{className:`text-sm font-medium`,id:`delivery-settings-heading`,children:`Delivery settings`}),(0,Q.jsxs)(X,{className:`gap-6`,children:[(0,Q.jsxs)(Fe,{children:[(0,Q.jsx)(ke,{htmlFor:`release-message`,children:`Message`}),(0,Q.jsx)(tn,{autoComplete:`off`,id:`release-message`,name:`message`,onChange:e=>h({...m,message:e.target.value}),rows:3,value:m.message})]}),o.strategy===`APP_VERSION`?(0,Q.jsxs)(Fe,{children:[(0,Q.jsx)(ke,{htmlFor:`release-target`,children:`Target app version`}),(0,Q.jsx)(we,{autoComplete:`off`,id:`release-target`,name:`targetAppVersion`,onChange:e=>h({...m,targetAppVersion:e.target.value}),value:m.targetAppVersion}),R?(0,Q.jsx)(je,{children:R}):null]}):null,(0,Q.jsxs)(Fe,{children:[(0,Q.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,Q.jsx)(ke,{htmlFor:`release-enabled`,children:`Enabled`}),(0,Q.jsx)(ms,{"aria-label":`Enabled`,checked:m.enabled,id:`release-enabled`,name:`enabled`,onCheckedChange:e=>h({...m,enabled:e})})]}),(0,Q.jsx)(je,{children:`Disabling rolls devices back to the previous enabled Release on their next check, or to the built-in app when none remains.`})]}),(0,Q.jsxs)(Fe,{orientation:`horizontal`,children:[(0,Q.jsx)(ke,{htmlFor:`release-force-update`,children:`Force update`}),(0,Q.jsx)(ms,{"aria-label":`Force update`,checked:m.shouldForceUpdate,id:`release-force-update`,name:`shouldForceUpdate`,onCheckedChange:e=>h({...m,shouldForceUpdate:e})})]}),(0,Q.jsxs)(Fe,{children:[(0,Q.jsx)(ke,{htmlFor:`release-rollout-percentage`,children:`Rollout percentage`}),(0,Q.jsx)(xs,{onChange:e=>h({...m,rolloutCohortCount:e}),value:m.rolloutCohortCount})]}),(0,Q.jsxs)(Fe,{children:[(0,Q.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,Q.jsx)(ke,{htmlFor:`release-cohort`,children:`Additional cohorts (optional)`}),(0,Q.jsx)(Jo,{releaseId:o.id,rolloutCohortCount:m.rolloutCohortCount,targetCohorts:m.targetCohorts})]}),(0,Q.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Q.jsx)(we,{autoComplete:`off`,id:`release-cohort`,name:`targetCohort`,onChange:e=>_(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),M())},placeholder:`e.g. qa-team…`,value:g}),(0,Q.jsx)(F,{"aria-label":`Add cohort`,disabled:!g.trim(),onClick:M,size:`icon`,type:`button`,variant:`outline`,children:(0,Q.jsx)(yt,{})})]}),m.targetCohorts.length?(0,Q.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:m.targetCohorts.map(e=>(0,Q.jsxs)(An,{className:`gap-1 font-mono`,variant:`secondary`,children:[e,(0,Q.jsx)(`button`,{"aria-label":`Remove cohort ${e}`,className:`rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,onClick:()=>h({...m,targetCohorts:m.targetCohorts.filter(t=>t!==e)}),type:`button`,children:(0,Q.jsx)(Pe,{className:`size-3`})})]},e))}):null,(0,Q.jsx)(je,{children:`Public names—no IDs or secrets.`})]})]}),v?(0,Q.jsx)(Ne,{children:v}):null,(0,Q.jsx)(F,{className:`w-full`,disabled:!te||A,onClick:N,size:`lg`,children:d.isPending||u.isPending?`Saving…`:`Save changes`})]}),(0,Q.jsx)(r,{className:`my-2`}),(0,Q.jsxs)(`section`,{className:`flex flex-col gap-4`,children:[(0,Q.jsx)(`h3`,{className:`text-sm font-medium`,children:`Actions`}),(0,Q.jsx)(F,{className:`w-full`,disabled:o.kind!==`BUNDLE`||A,onClick:()=>T(!0),size:`sm`,variant:`outline`,children:`Promote to channel`}),o.bundle_id?(0,Q.jsxs)(F,{className:`w-full`,disabled:A,onClick:()=>{window.open(`/api/bundles/${encodeURIComponent(o.bundle_id)}/download`,`_blank`,`noopener,noreferrer`),en.success(`Bundle download started`)},size:`sm`,variant:`outline`,children:[(0,Q.jsx)(ft,{"data-icon":`inline-start`}),`Download bundle`]}):null,(0,Q.jsx)(F,{className:`w-full`,disabled:o.enabled||A,onClick:()=>C(!0),size:`sm`,variant:`destructive`,children:`Remove from channel`})]}),o.bundle_id&&s.isPending?(0,Q.jsx)(P,{className:`h-40 w-full`}):null,o.bundle_id&&s.isError?(0,Q.jsxs)(On,{variant:`destructive`,children:[(0,Q.jsx)(H,{}),(0,Q.jsx)(Cn,{children:`Build details are unavailable`}),(0,Q.jsx)(En,{children:`Delivery settings are unaffected.`})]}):null,!o.bundle_id||!s.isPending?(0,Q.jsx)(Ko,{bundle:c,release:o}):null,(0,Q.jsxs)(`details`,{className:`rounded-lg border bg-muted/10 p-4 text-xs`,children:[(0,Q.jsx)(`summary`,{className:`cursor-pointer font-medium`,children:`Advanced diagnostics`}),(0,Q.jsxs)(`dl`,{className:`mt-4 grid gap-3 text-muted-foreground sm:grid-cols-2`,children:[(0,Q.jsxs)(`div`,{className:`sm:col-span-2`,children:[(0,Q.jsx)(`dt`,{children:`Release ID`}),(0,Q.jsx)(`dd`,{className:`mt-1 break-all font-mono text-foreground`,children:o.id})]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`dt`,{children:`Revision`}),(0,Q.jsx)(`dd`,{className:`mt-1 font-mono text-foreground`,children:o.revision})]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`dt`,{children:`Catalog generation`}),(0,Q.jsx)(`dd`,{className:`mt-1 font-mono text-foreground`,children:l.data?.generation??`—`})]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`dt`,{children:`Catalog size`}),(0,Q.jsx)(`dd`,{className:`mt-1 font-mono text-foreground`,children:l.data?`${l.data.byte_size} bytes`:`—`})]}),(0,Q.jsxs)(`div`,{className:`sm:col-span-2`,children:[(0,Q.jsx)(`dt`,{children:`Scope key`}),(0,Q.jsx)(`dd`,{className:`mt-1 break-all font-mono text-foreground`,children:o.scope_key})]})]}),l.isError?(0,Q.jsx)(`p`,{className:`mt-3 text-destructive`,children:`Diagnostics are unavailable. Bundle settings are unaffected.`}):null]})]}):null]})]})}),(0,Q.jsx)(St,{onOpenChange:x,open:b,children:(0,Q.jsxs)(Ct,{children:[(0,Q.jsxs)(Ot,{children:[(0,Q.jsx)(Tt,{children:`Discard unsaved changes?`}),(0,Q.jsx)(wt,{children:`Your Bundle changes will be lost.`})]}),(0,Q.jsxs)(jt,{children:[(0,Q.jsx)(Ft,{children:`Keep editing`}),(0,Q.jsx)(Dt,{onClick:()=>{x(!1),t(!1)},variant:`destructive`,children:`Discard changes`})]})]})}),(0,Q.jsx)(St,{onOpenChange:C,open:S,children:(0,Q.jsxs)(Ct,{children:[(0,Q.jsxs)(Ot,{children:[(0,Q.jsxs)(Tt,{children:[`Remove this Bundle from `,ne??`the channel`,`?`]}),(0,Q.jsx)(wt,{children:`The Bundle file stays available. This only removes it from the channel.`})]}),(0,Q.jsxs)(jt,{children:[(0,Q.jsx)(Ft,{children:`Cancel`}),(0,Q.jsx)(Dt,{onClick:async()=>{if(o)try{await f.mutateAsync({expectedRevision:o.revision,releaseId:o.id}),en.success(`Bundle removed from ${ne??`the channel`}`),C(!1),t(!1)}catch(e){y(e instanceof Error?e.message:`Bundle could not be removed from the channel.`)}},variant:`destructive`,children:`Remove from channel`})]})]})}),(0,Q.jsx)(Pt,{onOpenChange:oe,open:w,children:(0,Q.jsxs)(kt,{showCloseButton:!p.isPending,children:[(0,Q.jsxs)(bt,{children:[(0,Q.jsx)(At,{children:`Promote to Channel`}),(0,Q.jsx)(Mt,{children:`Choose how to promote this Bundle, then select the target channel.`})]}),(0,Q.jsxs)(`div`,{className:`space-y-4 py-4`,children:[(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(Me,{htmlFor:`promote-action`,children:`Action`}),(0,Q.jsxs)(Qo,{disabled:p.isPending,items:hs,onValueChange:e=>O(e),value:D,children:[(0,Q.jsx)(ts,{className:`w-full`,id:`promote-action`,children:(0,Q.jsx)(es,{placeholder:`Select an action`})}),(0,Q.jsx)(ns,{children:(0,Q.jsxs)($o,{children:[(0,Q.jsx)(rs,{value:`move`,children:`Move bundle`}),(0,Q.jsx)(rs,{value:`copy`,children:`Copy bundle`})]})})]}),(0,Q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:L?`Make this Bundle available in the target channel and keep it in the current channel.`:`Move this Bundle to the target channel. Devices in the current channel may fall back to an earlier Bundle.`})]}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(Me,{htmlFor:`target-channel`,children:`Target Channel`}),(0,Q.jsxs)(Qo,{disabled:p.isPending,items:I,onValueChange:e=>ee(e??``),value:E||null,children:[(0,Q.jsx)(ts,{className:`w-full`,id:`target-channel`,children:(0,Q.jsx)(es,{placeholder:`Select a channel`})}),(0,Q.jsx)(ns,{className:`max-h-64`,children:(0,Q.jsx)($o,{children:re.map(e=>(0,Q.jsx)(rs,{value:e.name,children:e.name},e.id))})})]})]})]}),(0,Q.jsxs)(Et,{children:[(0,Q.jsx)(F,{disabled:p.isPending,onClick:()=>oe(!1),variant:`outline`,children:`Cancel`}),(0,Q.jsx)(F,{disabled:!ie||p.isPending,onClick:async()=>{if(o)try{await p.mutateAsync({action:D,expectedRevision:o.revision,releaseId:o.id,targetChannel:ie}),oe(!1),en.success(L?`Bundle copied to ${ie}`:`Bundle moved to ${ie}`,o.bundle_id?{description:`bundleId: ${o.bundle_id}`}:void 0)}catch(e){en.error(e instanceof Error?e.message:`Bundle could not be promoted.`)}},children:p.isPending?L?`Copying…`:`Moving…`:L?`Copy`:`Move`})]})]})})]})}function Cs({release:e}){return(0,Q.jsxs)(An,{className:`gap-1 font-normal text-muted-foreground`,variant:e.enabled?`outline`:`secondary`,children:[e.enabled?(0,Q.jsx)(Ae,{className:`size-3`}):(0,Q.jsx)(Hn,{className:`size-3`}),e.enabled?`Enabled`:`Disabled`]})}function ws({percentage:e,className:t}){let n=e<100,r=e.toFixed(1);return(0,Q.jsxs)(An,{className:o(`gap-1`,t),variant:n?`secondary`:`default`,children:[n?(0,Q.jsx)(H,{className:`h-3 w-3`}):null,r,`%`]})}var Ts=20,Es=[{label:`All Platforms`,value:`all`},{label:`iOS`,value:`ios`},{label:`Android`,value:`android`}],Ds=new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`}),Os=new Intl.DateTimeFormat(void 0,{dateStyle:`medium`}),ks=e=>e.length>18?`${e.slice(0,8)}…${e.slice(-4)}`:e;function As({summary:e}){return e===null?(0,Q.jsx)(`span`,{"aria-label":`30-day Bundle activity unavailable`,className:`text-sm text-muted-foreground`,title:`Analytics are unavailable for this Bundle.`,children:`—`}):(0,Q.jsxs)(`div`,{"aria-label":`Bundle movement over 30 days, distinct installations`,className:`flex min-w-[140px] items-baseline gap-3 whitespace-nowrap`,role:`group`,title:`Distinct installations over the last 30 days.`,children:[(0,Q.jsxs)(`span`,{className:`flex items-baseline gap-1.5`,children:[(0,Q.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Applied`}),(0,Q.jsx)(`span`,{className:`text-sm font-medium tabular-nums`,children:e.installed})]}),(0,Q.jsxs)(`span`,{className:`flex items-baseline gap-1.5`,children:[(0,Q.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Recovered`}),(0,Q.jsx)(`span`,{className:`text-sm font-medium tabular-nums`,children:e.recovered})]})]})}function js({channels:e,onChange:t,onClear:n,onManageChannels:r,search:i}){let[a,o]=(0,Z.useState)(i.targetAppVersion??``),s=!!(i.bundleId||i.channelId||i.enabled!==void 0||i.platform||i.targetAppVersion),c=[{label:`All Channels`,value:`all`},...e.map(e=>({label:e.name,value:e.id}))],l=()=>{t({targetAppVersion:a.trim()||void 0})};return(0,Z.useEffect)(()=>{o(i.targetAppVersion??``)},[i.targetAppVersion]),(0,Q.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-2 border-b bg-background px-3 py-3 sm:h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:py-0 sm:backdrop-blur-sm`,children:[(0,Q.jsx)(_e,{className:`-ml-1`}),(0,Q.jsx)(`h1`,{className:`sr-only`,children:`Bundles`}),(0,Q.jsxs)(`div`,{className:`ml-1 flex items-center gap-1.5 text-muted-foreground sm:ml-2`,children:[(0,Q.jsx)(Gn,{className:`size-3.5`}),(0,Q.jsx)(`span`,{className:`text-xs font-medium`,children:`Filters`})]}),(0,Q.jsxs)(Qo,{items:Es,onValueChange:e=>t({platform:e===`all`?void 0:e}),value:i.platform??`all`,children:[(0,Q.jsx)(ts,{"aria-label":`Platform`,className:`h-8 w-[calc(50%-0.25rem)] min-w-[132px] text-xs sm:w-[140px]`,children:(0,Q.jsx)(es,{})}),(0,Q.jsx)(ns,{children:(0,Q.jsxs)($o,{children:[(0,Q.jsx)(rs,{value:`all`,children:`All Platforms`}),(0,Q.jsx)(rs,{value:`ios`,children:`iOS`}),(0,Q.jsx)(rs,{value:`android`,children:`Android`})]})})]}),(0,Q.jsx)(we,{"aria-label":`Target app version`,className:`h-8 w-full min-w-[132px] text-xs sm:w-[160px]`,onBlur:l,onChange:e=>o(e.target.value),onKeyDown:e=>{e.key===`Enter`&&l()},placeholder:`Target version`,value:a}),(0,Q.jsxs)(Qo,{items:c,onValueChange:e=>t({channelId:e===null||e===`all`?void 0:e}),value:i.channelId??`all`,children:[(0,Q.jsx)(ts,{"aria-label":`Channel`,className:`h-8 w-[calc(50%-0.25rem)] min-w-[132px] text-xs sm:w-[140px]`,children:(0,Q.jsx)(es,{})}),(0,Q.jsx)(ns,{children:(0,Q.jsxs)($o,{children:[(0,Q.jsx)(rs,{value:`all`,children:`All Channels`}),e.map(e=>(0,Q.jsx)(rs,{value:e.id,children:e.name},e.id))]})})]}),(0,Q.jsx)(F,{"aria-label":`Manage channels`,onClick:r,size:`icon-sm`,title:`Manage channels`,variant:`outline`,children:(0,Q.jsx)(Xn,{})}),i.bundleId?(0,Q.jsxs)(An,{className:`max-w-48 gap-1`,variant:`secondary`,children:[`Bundle `,ks(i.bundleId),(0,Q.jsx)(`button`,{"aria-label":`Clear Bundle filter`,className:`rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,onClick:()=>t({bundleId:void 0}),type:`button`,children:(0,Q.jsx)(Pe,{className:`size-3`})})]}):null,s?(0,Q.jsxs)(F,{className:`h-8 px-2 text-xs text-muted-foreground hover:text-foreground sm:ml-auto`,onClick:n,size:`sm`,variant:`ghost`,children:[(0,Q.jsx)(Pe,{"data-icon":`inline-start`}),`Clear`]}):null]})}function Ms({expanded:e,onOpen:t,onToggleExpand:n,release:r}){let i=r.bundle_id?`bundle ${r.bundle_id}`:`the built-in app deployment`,a=r.operation===`PROMOTE`?`Promoted`:r.operation===`ROLLBACK`?`Rollback`:null;return(0,Q.jsxs)(`div`,{className:`flex min-w-[240px] items-center gap-3`,children:[r.bundle_id?(0,Q.jsx)(F,{"aria-controls":`bundle-lineage-panel-${r.id}`,"aria-expanded":e,"aria-label":e?`Hide Lineage`:`Show Lineage`,className:`size-8 shrink-0 touch-manipulation`,onClick:n,size:`icon`,type:`button`,variant:`ghost`,children:e?(0,Q.jsx)(Be,{}):(0,Q.jsx)(Bn,{})}):(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`size-8 shrink-0`}),(0,Q.jsx)(`button`,{"aria-label":`Open details for ${i}`,className:`min-w-0 rounded-sm text-left text-foreground transition-colors underline-offset-4 hover:text-primary hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,onClick:t,title:r.bundle_id??r.id,type:`button`,children:r.bundle_id?(0,Q.jsx)(Ln,{bundleId:r.bundle_id,fullOnMobile:!0}):(0,Q.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-sm`,children:[(0,Q.jsx)(Jn,{className:`size-3.5`}),` Built-in app`]})}),a?(0,Q.jsx)(An,{className:`shrink-0 font-normal`,variant:`secondary`,children:a}):null,r.currentlyUnreachable?(0,Q.jsxs)(`span`,{"aria-label":`Currently unreachable. No catalog segment or cohort selects this release first.`,className:`inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground`,title:`No catalog segment or cohort selects this release first with the current delivery settings.`,children:[(0,Q.jsx)(Hn,{className:`size-3.5`}),`Unreachable`]}):null]})}function Ns({onDetailClick:e,panelId:t,release:n}){let r=n.bundle_id??``,i=un(r),a=pn(r);return i.isError||a.isError?(0,Q.jsx)(`div`,{"aria-live":`polite`,className:`border-t bg-muted/10 p-4 text-sm text-muted-foreground`,id:t,children:`Patch lineage could not be loaded.`}):i.isPending?(0,Q.jsxs)(`div`,{"aria-live":`polite`,className:`flex flex-col gap-2 border-t bg-muted/10 p-4`,id:t,children:[(0,Q.jsx)(P,{className:`h-10 w-full`}),(0,Q.jsx)(P,{className:`h-10 w-full`})]}):i.data?(0,Q.jsx)(Ta,{bundle:i.data,bundles:a.data??[],loading:a.isPending,onDetailClick:e,panelId:t}):(0,Q.jsx)(`div`,{"aria-live":`polite`,className:`border-t bg-muted/10 p-4 text-sm text-muted-foreground`,id:t,children:`Bundle details are unavailable.`})}function Ps(){let e=gt.useSearch(),t=gt.useNavigate(),n=de(),[r,i]=(0,Z.useState)(!1),[a,s]=(0,Z.useState)(),c=cn({afterReleaseId:e.afterReleaseId,beforeReleaseId:e.beforeReleaseId,bundleId:e.bundleId,channelId:e.channelId,enabled:e.enabled,limit:Ts,page:e.page,platform:e.platform,targetAppVersion:e.targetAppVersion}),u=an().data??[],d=c.data?.data??[],f=vn(Array.from(new Set(d.flatMap(e=>e.bundle_id?[e.bundle_id]:[])))).data??{},p=c.data?.pagination,m=new Map(u.map(e=>[e.id,e.name]));(0,Z.useEffect)(()=>{a&&!d.some(e=>e.id===a)&&s(void 0)},[a,d]);let h=(e,n=!0)=>void t({resetScroll:n,search:e,to:`/`}),g=t=>h(mt(e,t)),_=t=>{let n=d.find(e=>e.bundle_id===t.id);if(s(void 0),n){h({...e,releaseId:n.id},!1);return}g({bundleId:t.id})},v=p?.currentPage??1,y=d.length===0?0:(v-1)*Ts+1,b=y===0?0:y+d.length-1,x=v-1,S=d[0]?.id,C=d.at(-1)?.id,w=p?.hasPreviousPage&&S?{...e,afterReleaseId:S,beforeReleaseId:void 0,page:x>1?x:void 0,releaseId:void 0}:null,T=p?.hasNextPage&&C?{...e,afterReleaseId:void 0,beforeReleaseId:C,page:v+1,releaseId:void 0}:null;return(0,Q.jsxs)(`div`,{className:`flex h-svh min-h-0 min-w-0 flex-col`,children:[(0,Q.jsx)(js,{channels:u,onChange:g,onClear:()=>h({}),onManageChannels:()=>i(!0),search:e}),(0,Q.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col gap-6 bg-muted/5 p-3 sm:p-6`,children:[c.isError?(0,Q.jsxs)(On,{variant:`destructive`,children:[(0,Q.jsx)(H,{}),(0,Q.jsx)(Cn,{children:`Bundles could not be loaded`}),(0,Q.jsx)(En,{children:c.error.message})]}):(0,Q.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm [&_[data-slot=table-container]]:h-full [&_[data-slot=table-container]]:overflow-auto`,children:n?(0,Q.jsx)(`div`,{className:`h-full overflow-y-auto`,children:c.isPending?(0,Q.jsx)(`div`,{className:`flex flex-col gap-3 p-4`,children:Array.from({length:5},(e,t)=>(0,Q.jsx)(P,{className:`h-44 w-full`},t))}):d.length?d.map(t=>{let n=m.get(t.channel_id)??t.channel_id,r=t.bundle_id?f[t.bundle_id]:0,i=a===t.id,c=`bundle-lineage-panel-${t.id}`;return(0,Q.jsxs)(Z.Fragment,{children:[(0,Q.jsxs)(`article`,{className:o(`flex flex-col gap-4 border-b p-4 last:border-b-0`,t.currentlyUnreachable&&`bg-muted/35 saturate-50 transition-[background-color,filter] focus-within:saturate-100 motion-reduce:transition-none`,i&&`border-b-0 bg-primary/5`),children:[(0,Q.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Q.jsx)(Ms,{expanded:i,onOpen:()=>h({...e,releaseId:t.id},!1),onToggleExpand:()=>s(i?void 0:t.id),release:t}),(0,Q.jsx)(ha,{channel:n,className:`shrink-0`})]}),(0,Q.jsxs)(`dl`,{className:`grid grid-cols-2 gap-3 text-xs`,children:[(0,Q.jsxs)(`div`,{className:`rounded-md bg-muted/40 p-3`,children:[(0,Q.jsx)(`dt`,{className:`text-muted-foreground`,children:`Platform`}),(0,Q.jsxs)(`dd`,{className:`mt-1 flex items-center gap-2 font-medium`,children:[(0,Q.jsx)(Zo,{className:`size-4`,platform:t.platform}),t.platform===`ios`?`iOS`:`Android`]})]}),(0,Q.jsxs)(`div`,{className:`rounded-md bg-muted/40 p-3`,children:[(0,Q.jsx)(`dt`,{className:`text-muted-foreground`,children:`Created`}),(0,Q.jsx)(`dd`,{className:`mt-1 tabular-nums`,children:Ds.format(t.created_at_ms)})]}),(0,Q.jsxs)(`div`,{className:`rounded-md bg-muted/40 p-3`,children:[(0,Q.jsx)(`dt`,{className:`text-muted-foreground`,children:`Rollout`}),(0,Q.jsx)(`dd`,{className:`mt-1`,children:(0,Q.jsx)(ws,{percentage:t.rollout_cohort_count/10})})]}),(0,Q.jsxs)(`div`,{className:`rounded-md bg-muted/40 p-3`,children:[(0,Q.jsx)(`dt`,{className:`text-muted-foreground`,children:`Patches`}),(0,Q.jsx)(`dd`,{className:`mt-1`,children:r===void 0?`Checking`:r>0?`${r} ${r===1?`patch`:`patches`}`:`—`})]}),(0,Q.jsxs)(`div`,{className:`col-span-2 rounded-md bg-muted/40 p-3`,children:[(0,Q.jsx)(`dt`,{className:`text-muted-foreground`,children:`Activity · 30d`}),(0,Q.jsx)(`dd`,{className:`mt-1`,children:(0,Q.jsx)(As,{summary:t.activity30d})})]}),(0,Q.jsxs)(`div`,{className:`col-span-2 flex flex-wrap items-center gap-2 rounded-md bg-muted/40 p-3`,children:[(0,Q.jsx)(Cs,{release:t}),t.should_force_update?(0,Q.jsx)(An,{variant:`secondary`,children:`Force update`}):null]}),(0,Q.jsxs)(`div`,{className:`col-span-2 grid gap-2 rounded-md border bg-background/80 p-3`,children:[(0,Q.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Q.jsx)(`dt`,{className:`text-muted-foreground`,children:`Target`}),(0,Q.jsx)(`dd`,{className:`min-w-0 truncate text-right font-mono`,children:t.target_app_version??t.fingerprint_hash??`—`})]}),(0,Q.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Q.jsx)(`dt`,{className:`text-muted-foreground`,children:`Message`}),(0,Q.jsx)(`dd`,{className:`min-w-0 text-right text-foreground`,children:t.message||`—`})]})]})]})]}),i&&t.bundle_id?(0,Q.jsx)(Ns,{onDetailClick:_,panelId:c,release:t}):null]},t.id)}):(0,Q.jsx)(`p`,{className:`p-8 text-center text-sm text-muted-foreground`,children:e.bundleId||e.channelId||e.enabled!==void 0||e.platform||e.targetAppVersion?`No bundles match these filters.`:`No bundles yet. Deploy a bundle to see it here.`})}):(0,Q.jsxs)(In,{className:`min-w-max`,children:[(0,Q.jsx)(jn,{className:`bg-muted/40`,children:(0,Q.jsxs)(Pn,{className:`border-b border-border/60 hover:bg-transparent [&>th]:h-10 [&>th]:text-xs [&>th]:font-semibold [&>th]:uppercase [&>th]:text-muted-foreground/70`,children:[(0,Q.jsx)(Mn,{children:`Bundle ID`}),(0,Q.jsx)(Mn,{children:`Channel`}),(0,Q.jsx)(Mn,{children:`Platform`}),(0,Q.jsx)(Mn,{children:`Patches`}),(0,Q.jsx)(Mn,{children:`Target`}),(0,Q.jsx)(Mn,{children:`Enabled`}),(0,Q.jsx)(Mn,{children:`Force update`}),(0,Q.jsx)(Mn,{children:`Rollout`}),(0,Q.jsx)(Mn,{title:`Distinct installations over the last 30 days.`,children:`Activity · 30d`}),(0,Q.jsx)(Mn,{children:`Message`}),(0,Q.jsx)(Mn,{children:`Created`})]})}),(0,Q.jsxs)(Nn,{children:[c.isPending?Array.from({length:7},(e,t)=>(0,Q.jsx)(Pn,{children:(0,Q.jsx)(Fn,{colSpan:11,children:(0,Q.jsx)(P,{className:`h-8 w-full`})})},t)):d.map(t=>{let n=a===t.id,r=`bundle-lineage-panel-${t.id}`;return(0,Q.jsxs)(Z.Fragment,{children:[(0,Q.jsxs)(Pn,{"aria-label":`Open bundle ${t.bundle_id??t.id}`,className:o(`cursor-pointer transition-[background-color,filter] hover:bg-muted/10 focus-within:bg-muted/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring motion-reduce:transition-none data-[state=selected]:bg-muted/15 [&>td]:py-3`,t.currentlyUnreachable&&`bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100`,n&&`bg-primary/5`),"data-state":e.releaseId===t.id?`selected`:void 0,onClick:n=>{n.target instanceof Element&&n.target.closest(`button, a, input, select, textarea`)||h({...e,releaseId:t.id},!1)},onKeyDown:n=>{n.target!==n.currentTarget||n.key!==`Enter`&&n.key!==` `||(n.preventDefault(),h({...e,releaseId:t.id},!1))},tabIndex:0,children:[(0,Q.jsx)(Fn,{children:(0,Q.jsx)(Ms,{expanded:n,onOpen:()=>h({...e,releaseId:t.id},!1),onToggleExpand:()=>s(n?void 0:t.id),release:t})}),(0,Q.jsx)(Fn,{children:(0,Q.jsx)(ha,{channel:m.get(t.channel_id)??t.channel_id})}),(0,Q.jsx)(Fn,{className:`whitespace-nowrap`,children:(0,Q.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,Q.jsx)(Zo,{className:`size-4`,platform:t.platform}),t.platform===`ios`?`iOS`:`Android`]})}),(0,Q.jsx)(Fn,{children:t.bundle_id&&f[t.bundle_id]===void 0?(0,Q.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Checking`}):t.bundle_id&&f[t.bundle_id]>0?(0,Q.jsxs)(An,{variant:`secondary`,children:[f[t.bundle_id],` `,f[t.bundle_id]===1?`patch`:`patches`]}):(0,Q.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,Q.jsx)(Fn,{children:t.target_app_version?(0,Q.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,Q.jsx)(ht,{className:`size-4 shrink-0 text-muted-foreground`}),(0,Q.jsx)(`span`,{className:`font-medium`,children:t.target_app_version})]}):t.fingerprint_hash?(0,Q.jsxs)(`span`,{className:`flex min-w-[160px] items-center gap-2`,children:[(0,Q.jsx)(Wn,{className:`size-4 shrink-0 text-muted-foreground`}),(0,Q.jsx)(Ho,{maxLength:12,value:t.fingerprint_hash})]}):(0,Q.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,Q.jsx)(Fn,{children:(0,Q.jsxs)(`span`,{className:`flex items-center`,children:[(0,Q.jsx)(ga,{enabled:t.enabled}),(0,Q.jsx)(`span`,{className:`sr-only`,children:t.enabled?`Enabled`:`Disabled`})]})}),(0,Q.jsx)(Fn,{children:(0,Q.jsxs)(`span`,{className:`flex items-center`,children:[(0,Q.jsx)(ga,{enabled:t.should_force_update,falseIcon:`minus`}),(0,Q.jsx)(`span`,{className:`sr-only`,children:t.should_force_update?`Required`:`Optional`})]})}),(0,Q.jsx)(Fn,{children:(0,Q.jsx)(ws,{percentage:t.rollout_cohort_count/10})}),(0,Q.jsx)(Fn,{children:(0,Q.jsx)(As,{summary:t.activity30d})}),(0,Q.jsx)(Fn,{className:`text-sm text-muted-foreground`,title:t.message??void 0,children:t.message||`-`}),(0,Q.jsx)(Fn,{className:`whitespace-nowrap text-xs text-muted-foreground`,title:Ds.format(t.created_at_ms),children:Os.format(t.created_at_ms)})]}),n&&t.bundle_id?(0,Q.jsx)(Pn,{className:`hover:bg-transparent`,children:(0,Q.jsx)(Fn,{className:`border-t-0 p-0`,colSpan:11,children:(0,Q.jsx)(Ns,{onDetailClick:_,panelId:r,release:t})})}):null]},t.id)}),!c.isPending&&d.length===0?(0,Q.jsx)(Pn,{children:(0,Q.jsx)(Fn,{className:`h-40 text-center text-muted-foreground`,colSpan:10,children:e.bundleId||e.channelId||e.enabled!==void 0||e.platform||e.targetAppVersion?`No bundles match these filters.`:`No bundles yet. Deploy a bundle to see it here.`})}):null]})]})}),!c.isError&&!c.isPending?(0,Q.jsxs)(`nav`,{"aria-label":`Bundle pagination`,className:`flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between`,children:[(0,Q.jsxs)(`p`,{className:`text-xs font-medium text-muted-foreground`,children:[`Showing `,(0,Q.jsx)(`span`,{className:`text-foreground`,children:y}),` to`,` `,(0,Q.jsx)(`span`,{className:`text-foreground`,children:b}),` entries`]}),(0,Q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 sm:justify-end`,children:[(0,Q.jsxs)(`p`,{className:`text-xs font-medium text-muted-foreground`,children:[`Page `,(0,Q.jsx)(`span`,{className:`text-foreground`,children:v})]}),w?(0,Q.jsxs)(De,{className:l({className:`h-8 flex-1 px-3 text-xs sm:flex-none`,size:`sm`,variant:`outline`}),search:w,to:`/`,children:[(0,Q.jsx)(zn,{"data-icon":`inline-start`}),`Previous`]}):(0,Q.jsxs)(F,{className:`h-8 flex-1 px-3 text-xs sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[(0,Q.jsx)(zn,{"data-icon":`inline-start`}),`Previous`]}),T?(0,Q.jsxs)(De,{className:l({className:`h-8 flex-1 px-3 text-xs sm:flex-none`,size:`sm`,variant:`outline`}),search:T,to:`/`,children:[`Next`,(0,Q.jsx)(Bn,{"data-icon":`inline-end`})]}):(0,Q.jsxs)(F,{className:`h-8 flex-1 px-3 text-xs sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[`Next`,(0,Q.jsx)(Bn,{"data-icon":`inline-end`})]})]})]}):null]}),(0,Q.jsx)(Ss,{channels:u,onOpenChange:t=>!t&&h({...e,releaseId:void 0},!1),open:!!e.releaseId,releaseId:e.releaseId??``}),(0,Q.jsx)(Ea,{onOpenChange:i,open:r})]})}export{Ps as component};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-CrdokJ80.js","assets/createServerFn-gM2-LFBy.js","assets/dialog-BS60BRr2.js","assets/useOpenInteractionType-4cRD5xO0.js","assets/field-Buq148-A.js","assets/BundleActivityChart-CnsBe_1J.js","assets/alert-C-1KvDW8.js","assets/lazyRouteComponent-rPzgA7S-.js","assets/AnalyticsCapabilityContext-BCke57-7.js","assets/download-O-yNBc9H.js","assets/loader-circle-DCYF-wJl.js","assets/dist-DspNKfMj.js","assets/BundleIdDisplay-Dky75zLU.js","assets/badge-Bf0fZ-Gx.js","assets/api-B_Rh-uzC.js","assets/useMutation-JsGVjQMY.js","assets/textarea-YJLTVAoq.js","assets/table-D8CLieHX.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{Qn as e}from"./createServerFn-gM2-LFBy.js";import{n as t,t as n}from"./lazyRouteComponent-rPzgA7S-.js";import{t as r}from"./preload-helper-TKOBYGYD.js";var i=e(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),a=e=>typeof e==`string`&&e.trim().length>0?e.trim():void 0;function o(e){let t=typeof e.page==`number`?e.page:typeof e.page==`string`?Number(e.page):void 0,n=a(e.beforeReleaseId),r=n?void 0:a(e.afterReleaseId),i=e.enabled===!0||e.enabled===`true`?!0:e.enabled===!1||e.enabled===`false`?!1:void 0;return{afterReleaseId:r,beforeReleaseId:n,bundleId:a(e.bundleId),channelId:a(e.channelId),enabled:i,page:t!==void 0&&Number.isInteger(t)&&t>1?t:void 0,platform:e.platform===`ios`||e.platform===`android`?e.platform:void 0,releaseId:a(e.releaseId),targetAppVersion:a(e.targetAppVersion)}}function s(e,t){return{...e,...t,afterReleaseId:void 0,beforeReleaseId:void 0,page:void 0,releaseId:void 0}}var c=t(`/`)({component:n(()=>r(()=>import(`./routes-CrdokJ80.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])),`component`),validateSearch:o});export{s as n,i as r,c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Qn as e}from"./createServerFn-gM2-LFBy.js";var t=e(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Qn as e}from"./createServerFn-gM2-LFBy.js";var t=e(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),n=e(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),r=e(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]);export{n,t as r,r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Sn as e,Tn as t,Zn as n,ir as r,m as i,t as a,tr as o,wr as s}from"./createServerFn-gM2-LFBy.js";import{n as c,r as l,t as u}from"./shield-check-DE_hVuHu.js";import{n as d,t as f}from"./refresh-cw-n8XYbPPj.js";import{t as p}from"./download-O-yNBc9H.js";import{n as m}from"./dist-DspNKfMj.js";import{t as h}from"./textarea-YJLTVAoq.js";import{a as g,i as _,l as v,n as y,o as b,r as x,s as S,t as C,u as w}from"./alert-C-1KvDW8.js";import{t as T}from"./badge-Bf0fZ-Gx.js";var E=a({method:`GET`}).handler(s(`662034966679a6d29db2b55e7ba665e26e6c9a58a5529f33aa857a2049616233`)),D=[`bundle-signing`],O=()=>({queryFn:()=>E(),queryKey:D,staleTime:3e4}),k=()=>o(O()),A=r(),j=`hot-updater-public-key.pem`;function M(){return(0,A.jsxs)(`div`,{"aria-label":`Loading bundle signing`,className:`flex flex-col gap-6`,children:[(0,A.jsxs)(g,{children:[(0,A.jsxs)(v,{children:[(0,A.jsx)(e,{className:`h-4 w-36`}),(0,A.jsx)(e,{className:`h-3 w-4/5`})]}),(0,A.jsxs)(b,{className:`flex flex-col gap-4`,children:[(0,A.jsx)(e,{className:`h-12 w-full`}),(0,A.jsx)(e,{className:`h-12 w-full`})]})]}),(0,A.jsxs)(g,{children:[(0,A.jsxs)(v,{children:[(0,A.jsx)(e,{className:`h-4 w-28`}),(0,A.jsx)(e,{className:`h-3 w-3/5`})]}),(0,A.jsx)(b,{children:(0,A.jsx)(e,{className:`h-56 w-full`})})]})]})}function N({refetch:e}){return(0,A.jsxs)(C,{variant:`destructive`,children:[(0,A.jsx)(n,{"aria-hidden":`true`}),(0,A.jsx)(_,{children:`Bundle signing couldn't be loaded`}),(0,A.jsx)(x,{children:`Check the Console connection and try again.`}),(0,A.jsx)(y,{children:(0,A.jsxs)(t,{onClick:e,size:`xs`,variant:`outline`,children:[(0,A.jsx)(f,{"data-icon":`inline-start`}),`Retry`]})})]})}function P({inspection:e}){let t=e.status===`enabled`,r=e.status===`misconfigured`;return(0,A.jsxs)(g,{children:[(0,A.jsxs)(v,{children:[(0,A.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,A.jsx)(w,{className:`text-sm font-medium`,children:(0,A.jsx)(`h2`,{children:`Signing status`})}),(0,A.jsx)(T,{variant:r?`destructive`:t?`default`:`outline`,children:t?`Enabled`:r?`Misconfigured`:`Disabled`})]}),(0,A.jsx)(S,{children:t?`The Console found the public key configured for bundle verification.`:r?`Signing is enabled, but the public key cannot be inspected safely.`:`Bundle signing is disabled in the current Hot Updater configuration.`})]}),(0,A.jsx)(b,{className:`flex flex-col gap-5`,children:e.status===`disabled`?(0,A.jsxs)(C,{children:[(0,A.jsx)(c,{"aria-hidden":`true`}),(0,A.jsx)(_,{children:`Configure signing outside the Console`}),(0,A.jsx)(x,{children:`Use your signing provider or the Hot Updater CLI to configure a key. The Console never creates or stores private keys.`})]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`dl`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,A.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Provider`}),(0,A.jsx)(`dd`,{className:`truncate text-sm font-medium`,children:e.provider})]}),e.status===`enabled`?(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,A.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Algorithm`}),(0,A.jsx)(`dd`,{className:`text-sm font-medium`,children:e.algorithm})]}):null]}),e.status===`enabled`?(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1 border-t pt-4`,children:[(0,A.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`SPKI SHA-256 fingerprint`}),(0,A.jsx)(`p`,{className:`break-all font-mono text-xs`,children:e.fingerprint})]}):(0,A.jsxs)(C,{variant:`destructive`,children:[(0,A.jsx)(n,{"aria-hidden":`true`}),(0,A.jsx)(_,{children:`Public key unavailable`}),(0,A.jsx)(x,{children:e.message})]})]})})]})}function F({publicKey:e}){let n=async()=>{try{await navigator.clipboard.writeText(e),m.success(`Public key copied`)}catch{m.error(`Unable to copy public key`)}};return(0,A.jsxs)(g,{children:[(0,A.jsxs)(v,{children:[(0,A.jsx)(w,{className:`text-sm font-medium`,children:(0,A.jsx)(`h2`,{children:`Public key`})}),(0,A.jsx)(S,{children:`This public key may be embedded in native app configuration. Private key material is never available in the Console.`})]}),(0,A.jsxs)(b,{className:`flex flex-col gap-3`,children:[(0,A.jsx)(h,{"aria-label":`Bundle signing public key`,className:`min-h-56 resize-none font-mono text-xs`,readOnly:!0,spellCheck:!1,value:e}),(0,A.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,A.jsxs)(t,{onClick:()=>void n(),size:`sm`,variant:`outline`,children:[(0,A.jsx)(d,{"data-icon":`inline-start`}),`Copy`]}),(0,A.jsxs)(t,{onClick:()=>{let t=URL.createObjectURL(new Blob([`${e}\n`],{type:`application/x-pem-file`})),n=document.createElement(`a`);n.download=j,n.href=t,n.click(),URL.revokeObjectURL(t)},size:`sm`,variant:`outline`,children:[(0,A.jsx)(p,{"data-icon":`inline-start`}),`Download`]})]})]})]})}function I(){let e=k();return e.isLoading?(0,A.jsx)(M,{}):e.isError||!e.data?(0,A.jsx)(N,{refetch:()=>void e.refetch()}):(0,A.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,A.jsx)(P,{inspection:e.data}),e.data.status===`enabled`?(0,A.jsx)(F,{publicKey:e.data.publicKey}):null,(0,A.jsxs)(C,{children:[(0,A.jsx)(l,{"aria-hidden":`true`}),(0,A.jsx)(_,{children:`Read-only inspection`}),(0,A.jsx)(x,{children:`Configure or rotate signing keys through the provider or Hot Updater CLI. The Console only reads a checked-in public key file.`})]})]})}function L(){return(0,A.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,A.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,A.jsx)(i,{className:`-ml-1`}),(0,A.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,A.jsx)(u,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,A.jsx)(`h1`,{className:`text-sm font-medium`,children:`Bundle signing`})]}),(0,A.jsx)(T,{variant:`outline`,children:`Read-only`}),(0,A.jsx)(`p`,{className:`basis-full pl-9 text-xs text-muted-foreground sm:basis-auto sm:pl-0`,children:`Inspect the public key used to verify signed updates.`})]}),(0,A.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,A.jsx)(`div`,{className:`mx-auto w-full max-w-5xl`,children:(0,A.jsx)(I,{})})})]})}export{L as component};
|