dsh-cost-meter 1.9.71 → 1.9.73

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/lib/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated from src/client/*.js by node scripts/build.mjs; do not edit.
2
- ;(function(at){const Re=window.__ModuleLoader__,ke=Re[Symbol.for("@dsh-plugin/dsh-loader:load-wrap")];return(at.id==="dsh-cost-meter"&&Re.load===ke?.ours&&typeof ke.original=="function"?ke.original:Re.load).call(Re,at)})({id:"dsh-cost-meter",factory:he=>{var at={exports:{}},Re=at.exports;Object.defineProperty(Re,Symbol.toStringTag,{value:"Module"});const ke=he("react"),{Tooltip:z}=he("@deepseek-ai/dsh-client-ui-primitives"),Nt=!1,is="var(--dsw-alias-~.cm-~background:~align-items:center~font-size:~border-radius:~display:flex;~color:~width:~flex-direction:column;~white-space:nowrap~height:~padding:~font-weight:600~overflow:hidden~text-overflow:ellipsis~font-variant-numeric:tabular-nums~justify-content:~box-sizing:border-box~1px solid ~grid-template-columns:~display:~cursor:pointer~gap:~border:~flex-wrap:wrap~margin-top:~flex:none~transform:~padding-bottom:~position:~margin:~overflow-wrap:anywhere~text-align:~var(--dsh-frame-top-clearance,0px)~box-shadow:~overscroll-behavior:contain~border-bottom:~grid-column:~flex:~font:inherit;~font-weight:~overflow:auto;~z-index:~transition:~user-select:none~5px solid ~text-only:~left:~opacity:~outline:~-webkit-app-region:~flex-shrink:0~flex-wrap:nowrap;~border-top:~flex-direction:~outline-offset:~pointer-events:~grid-area:1/1;~var(--cm-opaque-base,#fff)~grid-auto-flow:column;~bottom:~align-self:~var(--cm-dialog-top)~var(--cm-guide-top)~2px solid ~clickable:~right:~--cm-opaque-base:~text-decoration:~--cm-guide-top:~overflow-x:auto~inset:~top:50%;~content:~align-items:~cursor:~3px solid ~6px solid ~animation:~top:0;~action:~order:".split("~"),Fa='|section |tabs>|tab{ƕinline-flex;&;Ƒcenter;ƒ;min-Ƌ32px;ƌ6px 10px;Ɵ0;ƨ?13px;line-Ƌ20px;vertical-align:middle}|peak-alert{ƫ2147483647;max-Ƌcalc(100dvh - 32px);ƪƤ}|peak-alert,|peak-alert *{Ƴno-drag}|peak-alert |peak-alert-actions{ƞrelative;ƛ}|peak-alert |peak-alert-actions button{ƹauto}@property --cm-dialog-top{syntax:"<length>";inherits:true;initial-value:0px}|stat-dialog{--cm-dialog-top:var(--dsh-frame-chrome-top,Ƣ);Ljƿ 0 0 0;Ɵauto;ƈmin(1000px,94vw);max-ƈcalc(100vw - 32px);max-Ƌcalc(100vh - ƿ - 32px);Ǝ;ƒ;ƌ0;ƅ16px;ƘƓ`border-l1);Ƈ`label-primary);$`bg-layer-2,`bg-base,#fff))}|stat-dialog[open]{ƆƷcolumn}|loading{ƌ24px;min-Ƌ160px;ƕgrid;Ɨ18px}|loading i{Ƌ18px;ƅ5px;$`bg-layer-1,#f2f3f5)}|loading i:first-child{ƈ35%}|loading i:last-child{ƈ65%}|stat-dialog-head{Ɔ&;Ƒspace-between;Ɨ16px;ƌ16px 24px;ƥƓ`border-l3);ƛ}|stat-dialog-head strong{?15px;Ʃ500}|stat-dialog-body{ƪmin-Ƌ0;ƌ20px 24px;Ƥ}|stat-dialog::backdrop{Ljvar(--dsh-frame-chrome-top,Ƣ) 0 0;$#0005}|dp{ƒ;min-ƈ0;ƨ?calc(var(--dsh-content-font-size-secondary,13px) - 1px);line-Ƌcalc(20px + var(--dsh-content-font-delta-secondary,0px));ƅvar(--dsw-radius-sm);max-ƈ100%;Ƈ`label-tertiary);Ɛ;Ɗ;$0 0;Ƙnone;&;Ɨ6px;ƌ1px 8px;ƕinline-flex;Ɩ}|dp:hover,|dp[aria-expanded=true]{$`interactive-bg-hover);Ƈ`label-secondary)}|dp-header{max-ƈ180px}|dl{Ə;min-ƈ0;Ǝ}|dp-status{max-ƈ100%;?12px;line-Ƌ20px;Ƈ`label-tertiary);Ɗ;Ǝ;Ə}|foot{Ɔ&;Ɨ6px;Ƌ32px;ƌ0 8px;ƅ8px;?12px;Ƈ`label-secondary);Ɗ;Ǝ}|foot:hover,|foot-rail:hover,|corner-chip:hover,|qchip:hover,|tab:hover,|btn:hover{$`interactive-bg-hover)}|foot-rail{ƈ100%;Ƒcenter;ƌ0;?13px;ƍ;Ƈ`label-primary)}|num{Ɛ}|go-rail{?11px;Ʃ700;Ƈ`label-primary)}|go-list{ƆƉƗ10px}|go-row{Ɔ&;Ɨ8px;?12px}|go-label{ƛ;ƈ88px;Ƈ`label-secondary)}|go-bar{Ƨ1;Ƌ6px;ƅ3px;$`interactive-bg-hover);Ǝ}|go-fill{Ƌ100%;ƅ3px;$`brand-primary)}|go-num{ƛ;min-ƈ44px;ơright;ƍ;Ɛ}|go-reset{ƛ;max-ƈ230px;?11px;Ƈ`label-tertiary);Ɗ;Ǝ;Ə}|go-time{?11px;Ƈ`label-tertiary)}|go-row.main |go-label{ƍ;Ƈ`label-primary)}|corner{ƕinline-flex;Ƨ0 1 auto;ƙ;Ƒcenter;&;Ɨ6px;min-ƈ0;max-ƈ100%}|corner-chip{ƕinline-flex;&;Ƌ20px;ƌ0 8px;ƅ6px;$`bg-layer-2);?11px;line-Ƌ20px;Ƈ`label-secondary);Ɗ;Ɛ}|qstrip{Ɔƙ;Ƒcenter;&;Ɨ6px;ƈ100%;max-ƈvar(--dsh-chat-content-width,720px);Ɵ0 auto;ƒ;ƌ0 calc(var(--dsh-composer-side-clearance,0px) + 16px)}|qchip{ƕinline-flex;&;Ɨ6px;Ƌ22px;ƌ0 8px;ƅ6px;$transparent;?11px;line-Ƌ22px;Ƈ`label-secondary);Ɗ;Ɛ;njdefault}|quota-details{ƞrelative;min-ƈ0}|quota-details>summary{list-style:none;Ɩ}|quota-details>summary::-webkit-details-marker{ƕnone}|quota-detail{white-space:normal;ƒ;ƌ10px;ƘƓ`border-l1);ƅ8px;$`bg-layer-1,#fff);Ƈ`label-primary);?12px;line-Ƌ1.6}|qstrip |quota-detail{ƞabsolute;ƽcalc(100% + 6px);ư0;ƈmin(320px,calc(100vw - 32px));ƫ100}|quota-detail button{ƚ8px}|qchip |qlabel{Ƈ`label-primary);ƍ}|qchip |qbar{ƕblock;ƈ44px;Ƌ4px;ƅ2px;$`border-l1);Ǝ;ƛ}|qchip |qfill{ƕblock;Ƌ100%;ƅ2px;$`state-ok-primary,#3ba272)}|qchip |qseg{ƕinline-flex;&;Ɨ4px}|qchip |qsep{ƈ1px;Ƌ12px;$`border-l1);ƛ}|qchip |qtext{Ƈ`label-secondary)}|qchip.warn |qfill{$`state-warn-primary)}|qchip.over |qfill{$`state-error-primary)}|qchip.action{Ɩ;ƭ;Ʋnone}|qchip.Ǒfocus-visible{ƣ0 0 0 2px `brand-primary)}|qchip.Ǒactive{ƜtranslateY(.5px)}|plan-provider{ƆƉƗ8px}|plan-provider+|plan-provider{ƚ14px}|plan-provider-name{Ɔ&;Ɨ8px;?13px;ƍ}|plan-updated{?11px;Ʃ400;Ƈ`label-tertiary)}|plan-tag{ƛ;margin-ư6px;ƌ0 6px;ƅ999px;ƘƓ`border-l1);?10px;line-Ƌ16px;Ƈ`state-warn-primary)}|plan-reset,|plan-method{?11px;Ƈ`label-tertiary)}|qguide{džvar(--dsh-frame-overlay-top,calc(var(--dsh-frame-chrome-top,Ƣ) + 18px));ƞfixed;Ljauto;Ɵ0;top:max(ǀ,env(safe-area-inset-top,0px));ƹauto;Ƴno-drag;ư50%;Ɯtranslate(-50%);ƫ9999;max-ƈ440px;ƈcalc(100% - 32px);ƘƓ`border-l1);ƅ12px;$`bg-layer-2);ƣ0 8px 28px #0000002e;ƌ14px 16px;?13px;Ƈ`label-primary);ƆƉƗ8px}|qguide[data-cm-onboarding]{ƒ;max-Ƌcalc(100dvh - max(ǀ,env(safe-area-inset-top,0px)) - 16px);ƪƤ}|qguide h4{Ɵ0;?13px;ƍ}|qguide p{Ɵ0;?12px;line-Ƌ1.6;Ƈ`label-secondary)}|qguide |buttons{ƆƗ8px;Ƒflex-end}|section{ƆƉƗ20px;ƌ4px 2px 24px;?13px;Ƈ`label-primary)}|cards{ƕgrid;Ɣrepeat(auto-fit,minmax(min(220px,100%),1fr));Ɨ12px}|overview-grid{container:cm-overview / inline-size;min-ƈ0}|overview-grid>|cards{Ɣrepeat(var(--cm-overview-count,3),minmax(0,1fr))}|overview-grid |card{min-ƈ0;ƆƉƗ6px;ƌ12px 14px}|overview-grid :is(|card-title,|card-sub){Ɵ0}|overview-grid |card-value{line-Ƌ1.35;Ɛ;Ơ}|overview-grid |card-sub{line-Ƌ1.5;Ơ}@container cm-overview (max-ƈ460px){|overview-grid>|cards{Ɣ1fr}}|cards-toggle{Ɔ&;Ɨ6px;Ɵ-6px 2px 0 auto;ƈfit-content;?12px;Ƈ`label-tertiary);Ɩ;ƭ}|cards-toggle:hover{Ƈ`label-primary)}|cards-toggle input{Ɵ0;Ɩ}|card,|budget{ƘƓ`border-l1);ƅ12px;ƌ14px 16px;$`bg-layer-1)}|card-title{?12px;Ƈ`label-tertiary);Ɵ0 0 8px}|card-value{?20px;line-Ƌ28px;ƍ}|card-sub{?12px;Ƈ`label-tertiary);ƚ4px}|h{?13px;ƍ;Ɵ0}|collapse-h{Ɔ&;Ɨ8px;$none;Ƙnone;ƌ0;Ɵ0;Ɩ;Ƈinherit;ƨơleft}|collapse-h:hover |h{Ƈ`interactive-text-hover,`label-primary))}|caret{ƛ;ƈ0;Ƌ0;border-ưƮtransparent;border-ǃƮtransparent;ƶǎ`label-secondary);Ɯrotate(-90deg);Ƭtransform .15s ease}|caret.open{Ɯrotate(0)}|collapse-body{ƆƉƗ12px;ƚ12px}|toolbar{ƆƑflex-end;&;Ɨ10px}|toolbar |field{Ʒrow;&;Ɨ8px}|toolbar |field label{Ɵ0;?12px;Ƈ`label-tertiary)}|toolbar |input{min-ƈ150px;ƌ4px 10px}|tabs-row{Ɔ&;Ƒspace-between;Ɨ12px;ƙ;ƥƓvar(--dsh-alias-border-l1);Ɲ10px}|tabs{Ɔ&;Ɨ4px;ƙ}|tab{ƨ?13px;Ƈ`label-secondary);$transparent;Ƙnone;ƅ8px;ƌ6px 14px;Ɩ;Ɗ}|tab.active{$`state-business-primary);Ƈ`label-primary-inverted);ƍ}|tabs-row |msg{ƌ2px 10px}|tabs-row>|hint,|tabs-row>|msg{margin-inline-start:auto}|note{?12px;Ƈ`label-tertiary);Ɵ0}|table{ƈ100%;border-collapse:collapse;?12px}|table th,|table td{ơleft;ƌ7px 10px;ƥƓ`border-l1);Ɗ}|table th{Ƈ`label-tertiary);Ʃ500}|table td.num,|table th.num{ơright;Ɛ}|table tr:last-child td{ƥnone}|table tr|row-click{Ɩ}|table tr|row-click:hover td{$`bg-hover,rgba(127,127,127,.08))}|sess-title{max-ƈ260px;Ǝ;Ə;Ɗ}|sess-id{?11px;font-family:ui-monospace,Consolas,monospace;Ƈ`label-tertiary)}|empty{?12px;Ƈ`label-tertiary);ƌ8px 0}|scroll{max-Ƌ320px;ƪƘƓ`border-l1);ƅ10px}|grid{ƕgrid;Ɣrepeat(auto-fit,minmax(min(220px,100%),1fr));Ɨ12px}|field{ƆƉƗ6px;min-ƈ0}|field label{?12px;Ƈ`label-secondary)}|input,|input option,|input optgroup{Ƈ`label-primary);$`bg-base)}|input{ƨ?13px;ƘƓ`border-l1);ƅ8px;ƌ6px 10px;Ʋnone}|input:is(select){color-scheme:light dark}|input:is(select) :is(option,optgroup){Ƈ`label-primary)!important;$`bg-base)!important;$rgb(from `bg-base) r g b / 1)!important}|input:focus{border-Ƈ`state-business-primary)}|input.narrow{max-ƈ120px}|range-row{Ɔ&;Ɨ10px}|range{Ƨ1;min-ƈ0;accent-Ƈ`state-business-primary)}|range-value{ƛ;min-ƈ44px;?12px;Ƈ`label-tertiary);ơright}|check{Ɔ&;Ɨ8px;?13px;Ƈ`label-primary);Ɩ}|pricing-page,|pricing-content{ƕgrid;Ɨ20px;min-ƈ0}|pricing-heading{Ɔ&;Ƒspace-between;Ɨ12px}|pricing-heading |h{?16px;margin-ƽ6px}|pricing-heading |note{line-Ƌ1.6}|pricing-unit{ƴ;Ƈ`label-tertiary);?11px}|pricing-nav{ƆƗ4px;ƌ4px;ƅ10px;$`bg-layer-1);ƘƓ`border-l1)}|pricing-nav-item{Ƨ1;min-ƈ0;ƨƇ`label-secondary);$transparent;Ƙ0;ƅ7px;ƌ8px 10px;Ɩ}|pricing-nav-item.active{Ƈ`state-business-primary);$`bg-base);ƣ0 1px 3px #0000000d;ƍ}|pricing-nav-item:focus-visible{Ʋǁ`state-business-primary)}|pricing-tools{ƕgrid;Ɨ16px}|pricing-tool{ƆƉƗ12px;ƌ16px;ƘƓ`border-l1);ƅ12px;min-ƈ0}|pricing-tool>|peak-panel{ƌ0;Ƙ0;$none}|pricing-tool p{line-Ƌ1.65}@media(max-ƈ480px){|pricing-heading{Njflex-start;ƉƗ4px}|pricing-nav-item{ƌ8px 4px;?12px}|pricing-tool{ƌ12px}}|price-card{ƘƓ`border-l1);ƅ10px;ƌ12px 14px;ƆƉƗ10px;$`bg-layer-1)}|price-head{Ɔ&;Ɨ8px;ƙ}|price-name{ƍ;?13px;Ơ;min-ƈ0;Ƨ1 1 180px}|price-legacy{?11px;Ƈ`label-tertiary);ƘƓ`border-l1);ƅ999px;ƌ1px 8px}|price-locked{?11px;Ƈ`state-business-primary);ƘƓ`state-business-primary);ƅ999px;ƌ1px 8px;njhelp}|price-row{ƕgrid;Ɣ52px repeat(4,minmax(0,1fr));Ɨ8px;&}|price-row span{?12px;Ƈ`label-tertiary)}|price-row input{ƈ100%;min-ƈ0;ƒ;ƌ6px 5px}|price-multiplier{Ɔ&;Ƒspace-between;Ɨ6px 12px;ƙ;?12px;Ƈ`label-tertiary)}|price-multiplier label{ƕinline-flex;&;Ɨ5px;Ɩ}|price-multiplier input{Ɵ0;accent-Ƈ`brand-primary,#4d6bfe)}|price-row input[aria-invalid=true]{border-Ƈ#d64c4c}|buttons{Ɔƙ;Ɨ10px;&}|btn{ƨ?13px;Ƈ`label-primary);$`button-elevated-fill);ƘƓ`border-l1);ƅ8px;ƌ6px 14px;Ɩ}|btn|stat-entry{?12px;line-Ƌ20px;ƌ0 6px;min-ƈ0;max-ƈ100%;Ɗ;Ǝ;Ə;ƴ}@media(max-ƈ640px){|stat-header{ƕnone}}|btn.primary{$`state-business-primary);border-Ƈtransparent;Ƈ`label-primary-inverted)}|btn.primary:hover{Ʊ.88;$`state-business-primary)}|btn.danger,|msg.err,|bal-line.err,|bal-err{Ƈ`state-error-primary)}|btn.small{ƌ3px 10px;?12px}|msg{?12px;line-Ƌ18px;ƌ8px 12px;ƅ8px;ƘƓ`border-l1)}|msg.ok{Ƈ`state-success-primary)}|hint{?12px;Ƈ`label-tertiary)}|budget{ƆƉƗ10px}|peak-alert{ƞfixed;Ljauto;Ɵ0;ƒ;ƹauto;Ƴno-drag;Ƈ`label-primary);ƫ9999;ƈ340px;max-ƈcalc(100vw - 32px);ƌ16px;ƅ14px;$`bg-layer-2);ƘƓ`border-l2);ƣ0 14px 36px #00000038;ƆƉƗ8px;?12px;Ǐcm-peak-alert-in .22s cubic-bezier(.2,.8,.2,1)}|peak-alert|peak-alert-corner{ǃ20px;ƽ20px}|peak-alert|peak-alert-center{ljư50%;Ɯtranslate(-50%,-50%);animation-name:cm-peak-alert-in-center}|peak-alert-peak{ƶǍ`state-warn-primary)}|peak-alert-offpeak{ƶǍ`state-info-primary,#3b82f6)}|peak-alert-badge{ƕinline-flex;&;Ɨ6px;?11px;ƍ;letter-spacing:.4px;text-Ɯuppercase}|peak-alert-badge:before{NJ"";ƈ8px;Ƌ8px;ƅ50%;$currentColor;ƣ0 0 0 4px color-mix(in srgb,currentColor 16%,transparent)}|peak-alert-peak |peak-alert-badge{Ƈ`state-warn-primary)}|peak-alert-offpeak |peak-alert-badge{Ƈ`state-info-primary,#3b82f6)}|peak-alert-title{?14px;ƍ;Ƈ`label-primary)}|peak-alert-body{Ƈ`label-secondary);line-Ƌ1.55}|peak-alert-actions{ƆƑflex-end;Ɨ8px;ƚ2px}|row{ƆƗ8px;&;ƙ}@keyframes cm-peak-alert-in{0%{Ʊ0;ƜtranslateY(10px) scale(.98)}to{Ʊ1;ƜtranslateY(0) scale(1)}}@keyframes cm-peak-alert-in-center{0%{Ʊ0;Ɯtranslate(-50%,calc(-50% + 10px))}to{Ʊ1;Ɯtranslate(-50%,-50%)}}|budget-head{Ɔ&;Ƒspace-between;Ɨ8px}|quota-name{Ƨ1;min-ƈ0}|budget-bar{Ƌ8px;ƅ999px;$`bg-layer-3);Ǝ}|budget-fill{Ƌ100%;ƅ999px;$`state-business-primary);Ƭwidth .3s ease}|ug{ƆƉƗ12px}|ug-total{?13px;Ƈ`label-primary)}|ug-grid{ƕgrid;Ƽgrid-template-rows:repeat(7,auto);Ɨ3px;ƈ100%}|ug-cell{ƈ100%;aspect-ratio:1/1;ƅ3px;ƒ;$color-mix(in srgb,`label-primary) 8%,transparent);ƘƓ`border-l1)}|ug-cell.l1,|ug-cell.l2,|ug-cell.l3,|ug-cell.l4{border-Ƈtransparent}|ug-cell.l1{$color-mix(in srgb,`state-business-primary) 25%,`bg-layer-3))}|ug-cell.l2{$color-mix(in srgb,`state-business-primary) 50%,`bg-layer-3))}|ug-cell.l3{$color-mix(in srgb,`state-business-primary) 75%,`bg-layer-3))}|ug-cell.l4{$`state-business-primary)}|ug-cell.today{ƲƓ`label-secondary);Ƹ1px}|ug-months{ƕgrid;ƼƗ3px;ƈ100%;?10px;Ƈ`label-tertiary);ƚ4px}|ug-monthc{Ɗ}|budget-line{?13px;Ƈ`label-secondary)}|budget-line.over{Ƈ`state-error-primary)}|peak-strip{Ɔ&;Ɨ6px;ƚ4px;min-ƈ0}|peak-track{ƞrelative;ƆƧ1;Ƌ6px;min-ƈ0;ƅ999px;Ǝ;ƘƓ`border-l1);$`bg-layer-3)}|peak-segment{Ƌ100%;Ƨ1}|peak-high{$#ff9800}|peak-low{$`state-business-primary)}|peak-marker{ƞabsolute;ǐư50%;ƈ2px;Ƌ100%;$`bg-base);ƣ0 0 0 1px `label-tertiary);Ɯtranslate(-50%);Ƭleft .4s ease;ƫ2}|peak-chip{?11px;ƍ;line-Ƌ1.2;Ɗ;Ƈ`label-secondary)}|peak-classic{ƞrelative;ƆƉƗ5px;ƚ6px;min-ƈ0}|peak-classic |peak-track{ƛ;Ƌ8px}|peak-classic-marker{ƞabsolute;ǐư50%;ƈ4px;Ƌ12px;$`bg-base);Ƙ1.Ʈ#ff9800;ƣ0 0 0 1px `bg-base),0 0 0 2px `label-tertiary);Ɯtranslate(-50%);Ƭleft .4s ease;ƫ2;ƅ2px}|peak-classic-marker:after{NJ"";ƞabsolute;top:-7px;ư50%;Ɯtranslate(-50%);border-ưƮtransparent;border-ǃƮtransparent;ƶǎ#ff9800}|peak-classic.off |peak-classic-marker{border-Ƈ`state-business-primary)}|peak-classic.off |peak-classic-marker:after{border-top-Ƈ`state-business-primary)}|peak-classic-chip{ƾflex-start;?11px;ƍ;line-Ƌ1.4;$`bg-layer-2);ƘƓ`border-l1);ƅ999px;ƌ2px 8px;Ɗ;Ƈ`label-secondary)}|peak-strip.peak |peak-chip,|peak-classic.peak |peak-classic-chip,|peak-rail.peak |peak-rail-label,|peak-rail-classic.peak |peak-rail-classic-label{Ƈ#ff9800}|peak-strip.off |peak-chip,|peak-classic.off |peak-classic-chip,|peak-rail.off |peak-rail-label,|peak-rail-classic.off |peak-rail-classic-label{Ƈ`state-business-primary)}|peak-strip.weekend |peak-chip,|peak-classic.weekend |peak-classic-chip,|peak-rail.weekend |peak-rail-label,|peak-rail-classic.weekend |peak-rail-classic-label{Ƈ#34a853}|peak-classic.weekend |peak-classic-marker{border-Ƈ#34a853}|peak-classic.weekend |peak-classic-marker:after{border-top-Ƈ#34a853}|peak-rail{ƆƉ&;Ɨ3px;ƈ40px;ƒ}|peak-rail-track{ƞrelative;ƆƉƈ6px;Ƌ56px;ƅ999px;Ǝ;ƘƓ`border-l1);$`bg-layer-3)}|peak-rail-segment{ƈ100%;Ƨ1}|peak-rail-high{$#ff9800}|peak-rail-low{$`state-business-primary)}|peak-rail-marker{ƞabsolute;ư0;ljƈ100%;Ƌ2px;$`bg-base);ƣ0 0 0 1px `label-tertiary);ƜtranslateY(-50%);Ƭtop .4s ease;ƫ2}|peak-rail-label{?10px;ƍ;line-Ƌ1.2;Ɗ;Ƈ`label-secondary)}|peak-rail-classic{ƆƉ&;Ɨ3px;ƈ40px;ƒ}|peak-rail-classic-track{ƞrelative;ƆƉƈ14px;Ƌ56px;ƅ999px;ƘƓ`border-l1);$`bg-layer-3)}|peak-rail-classic-segment{ƞrelative;ƈ100%;Ƨ1;Ǝ}|peak-rail-classic-segment.peak{$#ff9800;ƅ999px 999px 0 0}|peak-rail-classic-segment.off{$`state-business-primary);ƅ0 0 999px 999px}|peak-rail-classic-marker{ƞabsolute;ư50%;ljƈ12px;Ƌ4px;$`bg-base);Ƙ1.Ʈ#ff9800;ƣ0 0 0 1px `bg-base),0 0 0 2px `label-tertiary);Ɯtranslate(-50%,-50%);Ƭtop .4s ease;ƫ2;ƅ2px}|peak-rail-classic.off |peak-rail-classic-marker{border-Ƈ`state-business-primary)}|peak-rail-classic-label{?10px;ƍ;line-Ƌ1.2;Ɗ}|peak-rail-classic.weekend |peak-rail-classic-marker{border-Ƈ#34a853}|grid-group{Ʀ1 / -1;ƚ8px;?12px;ƍ;Ƈ`label-tertiary);ƥƓ`border-l1);Ɲ4px}|grid-group:first-child{ƚ0}|peak-preview{ƚ8px}|toggle-btn{$none;Ƙnone;ƌ0;?12px;ƍ;Ƈ`state-business-primary);Ɩ}|toggle-btn:hover{Džunderline}|collapsed-note{ƚ4px}|catalog-vendor{ƚ10px;?12px;ƍ;Ƈ`label-tertiary);ƥƓ`border-l1);Ɲ2px;Ɔ&;Ƒspace-between;Ɨ8px}|vendor-toggle{Ɩ;ƭ}|vendor-toggle:hover{Ƈ`label-secondary)}|vendor-display{ƕinline-flex;&;Ɨ4px;Ʃ400;?11px;Ƈ`label-tertiary);Ɗ}|mstats-tabs{ƆƗ8px;margin-ƽ8px}|mstats-tab{$none;ƘƓ`border-l1);ƅ999px;ƌ2px 12px;?12px;Ƈ`label-secondary);Ɩ}|model-costs |mstats-tab.active{$color-mix(in srgb,`state-business-primary) 14%,`bg-base));border-Ƈ`state-business-primary);Ƈ`label-primary);ƍ}|mstats-h{Ɵ10px 0 4px;?12px;ƍ;Ƈ`label-secondary)}|mstats-row{ƕgrid;Ɣminmax(90px,170px) 1fr auto;Ɨ8px;&;?11px;line-Ƌ1.7}|mstats-name{Ǝ;Ə;Ɗ;Ƈ`label-secondary)}|mstats-label{Ʀ1/-1;Ɔƙ;&;Ɨ6px;ƚ6px}|mstats-label |mstats-name{Ƨ1;min-ƈ90px}|mstats-label~|mstats-barbg{Ʀ1/3}|mstats-label select{max-ƈ100%;min-ƈ0}|mstats-barbg{ƞrelative;Ƌ10px;ƅ999px;$`bg-layer-3);Ǝ;ƕflex}|mstats-bar{Ƌ100%;min-ƈ0;ƅ999px}|mstats-bar.cost{$#ff9800}|mstats-bar.hit{$#34a853}|mstats-bar.value{$#a142f4}|mstats-seg{Ƌ100%;min-ƈ0}|mstats-seg.in{$`state-business-primary)}|mstats-seg.cache{$#ff9800}|mstats-seg.out{$#34a853}|mstats-val{Ɗ;Ƈ`label-secondary)}|mstats-legend{ƆƗ12px;?10px;Ƈ`label-tertiary);Ɵ2px 0 4px}|mstats-dot{ƕinline-block;ƈ8px;Ƌ8px;ƅ2px;margin-ǃ3px}|mstats-note{ƚ10px;?10px;line-Ƌ1.6;Ƈ`label-tertiary)}|match-row{Ɔ&;Ɨ8px;ƌ3px 0;?12px;ƙ}|match-row |input{Ƨ1;min-ƈ160px}|budget-controls{ƕgrid;Ɣrepeat(auto-fit,minmax(min(180px,100%),1fr));Ɨ12px}|bbox{ƘƓ`border-l1);ƅ12px;ƌ8px 10px;$`bg-layer-1);ƆƉƗ6px;min-ƈ148px;ƒ}|bbox.rail{ƌ6px;min-ƈ0;ƈ40px;&;Ƒcenter;ƅ10px}|bbox.warn{border-Ƈ`state-warn-primary)}|bbox.over{border-Ƈ`state-error-primary)}|bbox-head{Ɔ&;Ƒspace-between;Ɨ8px}|bbox-label,|bbox-pct{?12px;ƍ;Ƈ`label-primary)}|bbox.warn |bbox-pct{Ƈ`state-warn-primary)}|bbox.over |bbox-pct{Ƈ`state-error-primary)}|bbox-bar{Ƌ6px;ƅ999px;$`bg-layer-3);Ǝ}|bbox-bar.segments{ƆƋ8px}|bbox-bar.segments |bbox-fill{ƛ;ƅ0;Ƌ100%}|bbox-bar.segments |bbox-fill:first-child{ƅ999px 0 0 999px}|bbox-bar.segments |bbox-seg-today{ƛ;Ƌ100%;$#ff9800}|bbox-bar.segments |bbox-seg-spent{ƛ;Ƌ100%;$`interactive-bg-hover);ƅ0 999px 999px 0}|bbox-bar.segments.rev |bbox-fill:first-child,|bbox-bar.segments.rev |bbox-seg-today:first-child{ƅ999px 0 0 999px}|bbox-bar.segments.rev |bbox-fill,|bbox-bar.segments.rev |bbox-fill:last-child,|bbox-bar.segments.rev |bbox-seg-today:last-child,|bbox-bar.segments.rev |bbox-seg-spent:last-child{ƅ0 999px 999px 0}|bbox-bar.segments.rev |bbox-seg-spent{ƅ0}|dir-row{Ɔ&;Ɨ8px;ƚ6px}|dir-label{Ƨ1 1 40%;?12px;Ƈ`label-secondary)}|dir-row |input{Ƨ1 1 60%;ƈauto}|bbox-fill{Ƌ100%;ƅ999px;$`state-business-primary)}|balance-name{ƕinline-flex;&;Ɨ4px;min-ƈ0;Ơ}|model-costs{?12px}|model-costs |bal-label{Ɗ}|model-top{Ɨ4px;max-ƈ180px;Ǝ;Ə}|model-costs |collapse-h{min-ƈ0;ƈ100%;Ɗ}|model-costs |bbox-bar{ƚ3px}|bal-label{min-ƈ0;Ǝ;Ə}|bal-amt{margin-ưauto;ơright;ƴ}|bbox-pct|bal-amt{Ƈ`state-business-primary)}|bal-link{ƛ;ƕinline-flex;&;Ƒcenter;ƌ2px;ƅ4px;?12px;line-Ƌ16px;Ƈ`label-tertiary);Džnone;Ʋnone}|bal-link:hover{Ƈ`brand-primary);$`interactive-bg-hover)}|bal-link:focus-visible{ƣ0 0 0 2px `brand-primary)}|bbox.warn |bbox-fill,|bbox |bbox-section.warn |bbox-fill,|bbox |mm-row.warn |bbox-fill,|budget-fill.warn{$`state-warn-primary)}|bbox.over |bbox-fill,|bbox-section.over |bbox-fill,|mm-row.over |bbox-fill,|budget-fill.over{$`state-error-primary)}|bbox-line{?12px;Ƈ`label-tertiary)}|bbox-rail{?11px;ƍ;Ƈ`label-primary)}|bbox.warn |bbox-pct,|bbox.warn |bbox-rail,|bbox |bbox-section.warn |bbox-pct,|bbox |mm-row.warn |bbox-pct,|mm-row.warn |bbox-label,|corner-chip.warn,|qchip.warn,|simple-summary.warn{Ƈ`state-warn-primary)}|bbox.over |bbox-pct,|bbox.over |bbox-rail,|bbox-section.over |bbox-pct,|mm-row.over |bbox-pct,|mm-row.over |bbox-label,|corner-chip.over,|qchip.over,|simple-summary.over{Ƈ`state-error-primary)}|bbox-pair{ƆƉƗ0;ƌ2px 10px}|bbox-pair |bbox-section{ƆƉƗ4px;ƌ4px 0}|bbox-pair |bbox-bar{Ƌ4px}|bbox-divider{Ƌ1px;$`border-l1);Ɵ0}|bbox.clickable,|foot.clickable{Ɩ}|bbox.ǂhover{border-Ƈ`state-business-primary)}|bbox.ǂfocus-visible,|foot.ǂfocus-visible{Ʋǁ`state-business-primary);Ƹ1px}@keyframes cm-click-refresh-pulse{0%,to{Ʊ.55}50%{Ʊ1}}|bbox.clickable.busy,|foot.clickable.busy{Ǐcm-click-refresh-pulse 1.1s ease-in-out 2;njprogress}|mm{ƌ8px 10px;Ɨ4px}|mm-title{?12px;ƍ;Ƈ`label-primary)}|mm-reset{?11px;Ƈ`label-tertiary);Ʀ1/-1}|codex-head>|mm-title{min-ƈ0;Ǝ;Ə;Ɗ}|codex-resets{ƛ;ơright}|codex-resets>span{ƕblock}|footer-stack.compact |bbox[data-cm-display=codex]{grid:auto/1fr}|bbox.rail[data-cm-display=codex] |bbox-rail{max-ƈ100%;Ơ;ơcenter;?10px}|gw-switcher{Ɩ;ƭ;?11px;ƌ1px 6px;ƅ999px;ƘƓ`border-l1);$`bg-layer-2);Ƈ`label-secondary)}|gw-switcher:hover{$`interactive-bg-hover);Ƈ`label-primary)}|gw-sub{?11px;Ƈ`label-tertiary);Ǝ;Ə;Ɗ}|mm-row{Ɔ&;Ɨ8px;ƌ2px 0}|mm-sub{?11px;line-Ƌ16px;Ɲ4px;Ƈ`label-tertiary)}|mm-sub.warn{Ɲ0;Ƈ`state-warn-primary)}|mm-row |bbox-label{ƛ;ƈauto;min-ƈ22px;max-ƈ115px;Ʃ400;Ƈ`label-secondary);Ɛ;Ɗ;Ǝ;Ə;word-break:keep-all}|mm-row |bbox-bar{Ƨ1;min-ƈ40px;Ƌ6px}|mm-row |bbox-pct{ƛ;min-ƈ2.4em;ơright;Ɛ}|mm-row.wide |bbox-label{ƈauto;max-ƈ64px;Ƨ0 1 auto;Ɗ;Ǝ;Ə}|mm-row.wide |mm-text{Ƨ1;min-ƈ0;?12px;Ƈ`label-secondary);ơright;Ɛ;Ɗ;Ǝ;Ə}|bal-line{?13px;Ƈ`label-secondary)}|bal-line.warn{Ƈ`state-warn-primary,#b45309)}:has(>|footer-stack),:has(>[data-slot="sidebar.footer.action"]>|footer-stack){ƙ;Ƨ0 0 auto;Ƌauto;min-Ƌ0;align-NJflex-start}:has(>div>[data-slot="sidebar.footer.action"]>|footer-stack){Ƨ0 0 auto;Ƌauto;min-Ƌ0}:has(>|footer-stack.rail),:has(>[data-slot="sidebar.footer.action"]>|footer-stack.rail){ƉƵ&;Ɨ6px}|footer-stack{Ɔƛ;ǒ-1;ƉƗ6px;ƈ100%;min-ƈ0;max-ƈ100%;Njstretch;ƒ}|footer-stack.rail{&;ǒ1}|footer-stack |bbox{ƈ100%;min-ƈ0}|footer-stack |foot{ƈ100%;ƒ}|footer-stack |foot:not(|foot-rail){Ƒspace-between}|model-costs |collapse-h{ƈ100%}|model-costs |collapse-h>|bal-amt{margin-ưauto}|footer-stack.compact |bbox{ƕgrid;Ɣrepeat(2,minmax(0,1fr));column-Ɨ12px;row-Ɨ2px;&}|footer-stack.compact |bbox>*{Ʀ1/-1}|footer-stack.compact |bbox>|mm-row:not(|mm-title){Ʀauto}|footer-stack.compact |mm-row{min-ƈ0;Ɨ4px;flex-wrap:nowrap}|footer-stack.compact |mm-row |bbox-label{Ƨ0 1 auto;min-ƈ0;max-ƈ45%;ƈauto}|footer-stack.compact |mm-row |bbox-bar{min-ƈ0;Ƨ1 1 0}|footer-stack.simple{Ɨ0;max-Ƌ38vh;max-Ƌmin(38dvh,320px);ƪƤ;scrollbar-ƈthin;ƘƓ`border-l1);ƅ10px;$`bg-layer-1)}|footer-stack.simple>*{ƴ}|footer-stack.simple:focus-visible{Ʋǁ`state-business-primary);Ƹ2px}|footer-stack.simple |bbox{Ƙ0;ƅ0;ƌ4px 8px;Ɨ2px;$transparent;ƣinset 0 -1px `border-l1)}|footer-stack.simple |mm-title{?11px;line-Ƌ16px;Ɵ0}|footer-stack.simple |mm-row{Ɨ6px;min-Ƌ16px;line-Ƌ16px;Ɵ0;ƌ0}|footer-stack.simple |mm-text{?11px}|footer-stack.simple>|peak-strip,|footer-stack.simple>|peak-classic{Ɵ0;ƌ4px 8px}|simple-summary>span{min-ƈ0;Ɗ;Ǝ;Ə}|footer-stack.simple |bbox-pct{?12px;line-Ƌ18px}|footer-stack.simple |bbox-bar{Ƌ4px}|footer-stack.simple |bbox-line{ƕnone}|footer-stack.simple |foot{Ƌ26px;ƌ0 8px}|footer-stack.simple |peak-classic{ƚ2px;Ɨ2px}|footer-stack.simple |peak-classic-chip{ƌ0 4px;Ƙ0;$transparent}|simple-summary{ƞsticky;ǐƫ1;$`bg-layer-1);ƆƑspace-between;&;Ɨ8px;ƌ5px 8px;?12px;ƍ;ƥƓ`border-l1)}|footer-stack.simple.rail{Ƙ0;$transparent}|footer-stack.simple.rail |bbox{ƌ4px 2px}|footer-stack.simple |peak-rail-track,|footer-stack.simple |peak-rail-classic-track{Ƌ28px}|footer-stack.text-only |bbox-bar{ƕnone}|footer-stack.Ưnot(.rail) |bbox{ƌ4px 8px;Ɨ2px}|footer-stack.Ưnot(.rail) |mm{ƆƷrow;ƙ;Ɨ2px 12px;&}|footer-stack.Ưnot(.rail) |mm>|mm-title,|footer-stack.Ưnot(.rail) |codex-head,|footer-stack.Ưnot(.rail) |mm-reset{Ƨ1 0 100%;min-ƈ0}|footer-stack.Ưnot(.rail) |mm-row:not(|mm-title){Ɨ4px;ƌ0;min-ƈ0;max-ƈ100%}|footer-stack.text-only |mm-row |bbox-label{max-ƈ115px;Ƨ0 1 auto}|footer-stack.text-only |mm-row |bbox-pct{min-ƈ0}@media(max-ƈ640px){|cards,|grid,|budget-controls{Ɣ1fr}}@media(max-ƈ1023px){|section{Ɲcalc(16px + env(safe-area-inset-bottom))}|cards,|overview-grid>|cards,|grid,|budget-controls{Ɣ1fr;Ɨ8px}|card{ƌ10px 12px}|card-value{?17px}|card-sub,|bal-line,|bal-amt{Ơ}|buttons,|toolbar,|row,|budget-head{ƙ}|btn,|tab,|foot,|corner-chip{min-Ƌ36px;Ƌauto}|tabs{ƵLJ}|tab{ƛ}|qstrip{ƌ0 8px}|qguide{max-ƈcalc(100vw - 24px);džvar(--dsh-frame-overlay-top,calc(var(--dsh-frame-chrome-top,Ƣ) + 10px + env(safe-area-inset-top)))}|peak-alert{max-ƈcalc(100vw - 24px)}|peak-alert|peak-alert-corner{ǃ12px;ư12px;ƽcalc(12px + env(safe-area-inset-bottom));ƈauto}|footer-stack{Ɲenv(safe-area-inset-bottom)}|stat-dialog-body{ƌ14px;Ɲcalc(14px + env(safe-area-inset-bottom))}}body[data-dsh-pocket-layout=mobile] :is(|cards,|overview-grid>|cards,|grid,|budget-controls){Ɣ1fr;Ɨ8px}body[data-dsh-pocket-layout=mobile] |tabs{ƵLJ}body[data-dsh-pocket-layout=mobile] |footer-stack{Ɲenv(safe-area-inset-bottom)}body[data-dsh-pocket-layout=mobile] :is(|peak-alert,|qguide){max-ƈcalc(100vw - 24px)}body{DŽ#fff}body[data-ds-dark-theme],body[data-theme=dark],html[data-theme=dark] body{DŽ#151517}|section,|stat-dialog,|qguide,|peak-alert,|footer-stack.simple{$ƻ;$rgb(from `bg-layer-2,`bg-base,#fff)) r g b / 1)}|today-values{ƕinline-flex;ƙ;Ƒflex-end;Ɨ2px 8px;min-ƈ0;max-ƈ100%}|today-values>span{Ɗ}|today-values[data-both=true]>[data-cm-today=tokens]{?11px;Ƈ`label-secondary)}|simple-summary{$ƻ;$rgb(from `bg-layer-1,`bg-base,#fff)) r g b / 1)}|plan-gauges{Ʀ1/-1;ƕgrid;Ɣrepeat(auto-fit,minmax(52px,1fr));Ɨ6px}|plan-gauges |mm-row{ƕgrid;Ɣ1fr;Ɨ0;justify-items:center;Ɵ0;ƌ0;Ƈ`state-business-primary,#4b7ff5)}|plan-gauges svg{ƺƈ100%;max-ƈ64px}|plan-gauges |bbox-pct{ƺƾcenter;ơcenter;ƜtranslateY(-3px);?12px}|plan-gauges |bbox-label{ƺƾend;Ɲ8%;max-ƈ100%;ơcenter;Ǝ;Ə}|plan-gauges |mm-row:not(:has(svg)){Ʀ1/-1;ƕflex}|plan-gauges .warn{Ƈ`state-warn-primary,#d97706)}|plan-gauges .over{Ƈ`state-error-primary,#dc2626)}'.replace(/[`|$&?ƀ-ǿ]/g,e=>is[e.charCodeAt(0)>=384?e.charCodeAt(0)-384:"`|$&?".indexOf(e)]),_a="dsh-cost-meter/client.css";if(typeof document<"u"&&document.head!==void 0){const e=document.querySelector("style[data-plugin-css="+JSON.stringify(_a)+"]");if(e?.textContent!==Fa){const t=e??document.createElement("style");t.dataset.plugin="dsh-cost-meter",t.dataset.pluginCss=_a,t.textContent=Fa,e===null&&document.head.appendChild(t)}}const cs="Balance|balance|session|额度|Label|Plan|models|credential|quota|显示|custom|amount|余额|Stats|价格|费用|peak|coding|模型|Source|gateway|time|tokens|会话|model|refresh|自动|Quota|price|history|刷新|输入|official|weekends and Chinese public holidays are|Refresh|Alert|DeepSeek|Token|position|缓存|message|display|官方|Title|自定义|the|period|sidebar|凭据|用量|调用|input|usage|Failed|Peak|budget|output|source|中国公众假期全天谷价|同步|失败|峰时高价时段显著提示|时段|计费|金额|Credits|Sidebar|OpenCode Go|cache|calls|currency|Budget|Note|今日|峰时|已用|预算|plan|pricing|以同一系统账号运行|Remaining|Settings|历史|图框详细信息|Display|Monthly|details|WorkBuddy2API|分钟|当前|留空|Today|cost|interval|optional|remaining|侧边栏|Coding|DescribeBillingAccount|Enable|account|and|credits|failed|位置|保存|小时|币种|数据|本地|记录|读取|谷时|账本|输出|month|Cost|Cache|Codex|Hint|Placeholder|Strip includes|ledger|启用|History|Preview|browser|current|minutes|右下角|浏览器|设置页|automatically|rates|total|OpenDesign|Weekly|Window|YYYY-MM-DD|auth login|expression|volcengine|全部|剩余|可选|峰谷|提示|时间|更新|本月|查询|订阅|设置|请求|谷价|进入|默认|Currency|Interval|Multiply|Official|Session|Short|default|is an upper bound|never echoed back|workspace ID|法定假日|逗号分隔|API|AccessKey|Custom|Output|WorkBuddy|corner|used|主机|人民币|命中|密钥|日期|来源|清除|点击|登录|积分|累计|账号|配置|重置|隐藏|Total|codex|empty|local|not queried|today|comma-separated|data|deepseek-v4-pro|qwen|导入安装前|开始对话后|汇总在这里|Chinese|Compact|confirm|granted|holiday|unknown|Configured|Credential|Entering|Input|Provider|Remove|Unreported|Volcengine|built-in table|configured|enable|enough samples|external|for this|only|opendesign|override|request Cookie|this|token|toppedUp|估算|使用|侧栏|名称|周末|开启|提醒|明细|暂无|添加|确认|统计|间隔|Alibaba Cloud|Authorization|subscriptions|take priority|Anthropic|Empty|Model|Reset|Strip|apply|countdown|effective|estimates|including|qianwenai|工作区|框上方|横条含|白名单|Bottom-right|Compensation|Content-Type|Cookie|Default|JSON|Loading|Method|MiniMax|Rolling|Show|Target|Updated|Volcano|billing|console|date|hitRate|method|notification|rate|records|same OS user|subscription|weekend|匹配|单价|后续|周期|图框|填写|安装|导入|展开|恢复|按自然月|排行加载|火山引擎|环境变量|移除|采样区间|预览|Clear|Click|Composer|Flash|Local|Match|Position|SiliconFlow|This|Unavailable|Unsupported|Usage|application|auto-detect|bailian-cli|composer|environment|from|full-window|group|host|matching|max-preview|pre-install|provider|qianwen-cli|settings|unavailable|DSH|Key|are|Auto-match|Claude Pro|Cline Pass|Import|Legacy|Management|Notice|OpenRouter|Rhythm|Used|aggregated|billed|equivalent|historical|hours soon|legacy|multiplier|page|percentage|status|to restore|window|下方|优先|倍率|全天|关闭|内置|加载|区间|取消|后重|基础|手动|支持|日志|未知|渠道|滚动|端口|等值|美元|覆盖|计价|这里|采样|Account|Allowed|Bailian|Convert|Factory|Headers|Invalid|Queried|Unknown|Weekend|address|click|factory|headers|hours|include|range|ranking|restore|summary|Auto|Direction|Kimi Code|Rank|Sort|Topped-up|Unlimited|all|auto-sync|precision|reasoning|subagents|sync|unmatched|中复制|占位符|子代理|性价比|抵扣率|控制台|未上报|标题栏|百分比|知道了|起始日|这一项|阿里云|Add|Base URL|Class|Corner|Daily|Detail|DevTools|Disabled|External|Gemini|HTTPS|Ledger|Line|Moonshot|Overview|Qwen|Recent|Saving|Security|Selected|Status|Sync|Toggle|actual|blank to|calendar|card|clear|combined|count|deepseek|entering|estimate|fields|first|follow|import|language|limit|multiply|notice|platform|reads|recorded|remove|requires|reset|sample|snapshot|spend|start|store|subtract|table|use|with|上限|不会|不计|保留|修改|充值|写入|分别|切换|删除|勾选|北京|千问|发现|发送|只写|可用|可能|地址|外部|字段|实际|对账|弹窗|当日|影响|快照|总额|折算|推理|文档|方向|时区|本周|格式|每日|汇率|满窗|生效|用于|精度|编辑|账户|路径|选择|页面|All|Off|Amounts|Base|Beijing|Billing|Both|Bundled|ChatGPT|Confirm|Control|English|Extract|Fetched|General|Granted|HTTP|Include|Kimi|Minimax|Percent|Pricing|Request|Save|Section|applies|catalog|changes|channel|dock|earlier|for|loading|minimax|missing|name|percent|plugins|qianwen|reading|replace|when|Badge|Error|Guide|Limit|Login|Price|Query|ROUTE|Rates|Spent|Start|Style|alert|entry|key|query|scnet|value|Active|Body|Date|Header|Hidden|Minute|Not|OPENAI|Origin|Period|Public|Remain|Sample|Secret|Switch|Time|active|aliyun|auto|cancel|change|divide|flat|full|here|hidden|hide|logs|not|openai|origin|port|reason|remain|select|studio|your|上界|不足|专用|中文|为准|以及|例如|允许|入口|其他|包含|卡片|即可|即将|厂商|原因|发生|可在|同名|后可|后的|回放|回显|域名|填入|处于|套餐|对应|工具|平价|应用|底部|开关|手工|打开|挂载|按量|按钮|换算|授权|放行|早期|最多|最近|月度|权限|条数|标准|样本|档位|比例|状态|界面|百炼|窗口|类型|缺失|网关|花费|英文|获取|表外|规则|语言|请在|账单|赠送|跟随|过期|通知|重试|Hit|box|col|CLI|CNY|Hide|KEY|Last|Lock|USD|Unit|VAR|When|bar|day|docs|left|off|pct|read|saved|stay|that|tier|tok|will|work|yet|Pro|tab|Edit|Open|Top|back|each|new|old|over|per|save|show|zone|Use|com|its|low|min".split("|"),Qa=e=>e.replace(/[ƀ-߿]/g,t=>cs[t.charCodeAt(0)-384]),us=Qa("Ƃ̹|Ƃ̹ɍ|ƂǴɍ|ƈ̘|ǎCnyǷ|ƁσƵ|ɑξ|Ɓ|Ơƀ|ƈʳ|ƈǂǑ|ƈǂʳ|ƈǑʳ|ƈΓʷs|όƵ|reconcileƄ|ɏћpedUp|upʗdAt|ƷOf|ȯOf|dzȿ|Ʒ|ɄǴƫ|Ʉƥsƫ|Ɩх|Džƥs|dzǴ|ȆǴ|Ʉ|ƯǛMetric|ƯǛǴ|ƯǛƥs|ƮDay|ƮMonth|ƮΓ|ƮȫRange|noǼ|нϑ|нC̙s|нInTok|нǵTok|нOutTok|нǴ|noȡsǛ|нȡ|ɜLJ|ƷAmountƄ|ƷϘƄ|͟ϑ|endϑ|̎Text|Ʒ̴Lj|Ʒ́|Ѡπ|nearπ|˟ɺ|ȣF̙ќ|͙|ђΖ|ђΔƶ|ђƶ|ƁApiˎ|ƁƓChoice|ƁƓ̒|ƁƓ˾|ƁƓǷ|Ɓ̹|ƁσƵǷ|Ɓϕ̅|Ǥƀ|ƙing|ƙƀ|Ɗƀƫ|Ɗƀ̭|ɥ˘ƀ̭|ɥ˘ƀLj|Ϡƀ̭|ϠƀLj|ƊƀConfigLj|ƊƀƄZh|ƊƀƄEn|ƊƀUrl|ƊƀUrlǷ|ƊƀHttp|ѕBuddyƀ̭|ѕBuddyƀLj|Ɗƀʎ|Ɗƀ̃|Ɗƀϐ|ƊƀϐLj|ƊƀΟ|ƊƀǔƄ|ƊƀƢȞ|ƊƀхƄ|Ɗƀ́|Ɗƀ́Lj|ƁBarǐ|ƁBarǛ|ƁBarφ|ш̓sƫ|ш̓ǐ|ш̓˙|ƁLJCapƄ|Ɗƀ̄Json|Ɗƀ̃VarLj|Ɗƀ˿Hosts|Ɗƀ˿HostsǷ|Ɗƀɓsƫ|ƊƀɓsǷ|ƊƀNoǸs|ɜ|Ɗƀ̹|Ɗƀǐ|ƙȫƀ|goƛƫ|goƛRowƄ|goȉʐ|goȉȈ|goȉǕ|goɻAt|͛Rѝed|͛Days|͛Hours|͛ϔs|ƈɻInHm|ƈɻInM|ƈɻAt|ƈForecastл|ƈ˙|ƈǐ|goƛΧ|goƛΠAt|goƛǔƄ|goƛƢȞƄ|goƛˎƄ|goMainƄ|go̲Ƅ|ƇɒOf|Ƈϕɒ|ƇΪ|Ƈљ|Ƈʱ|Ƈ̾|ƇɕǷ|secretMigrationPending|Ʒ̲Ƅ|ƙGoƛ|goƛϕ̅|Ƒƅɸ|ƑƅZai|ƑƅΦ|ƑƅΦƫ|δϗ|δϗLj|ƑƅϚ5h|ƑƅϚ7d|ƁRechargeLink|ɀƛƫ|ɀƛǣ|ɀƛFive|ɀƛWeek|ɀƛɻ|ɀƛʺ|ɀƛǣd|ɀƛǂ|ɀƛɼ|̍SubagentǴ|Ɣƛɹ|ƑƅǔƄ|ƑƅˎƄ|ƑƅƢȞƄ|ƙǡƅ|loginǡƅ|loggingIn|Ƒƅϕ̅|Ɣƛƫ|ƔƓ̭|ƔƓƄ|ƔƓΖURL|ƔƓǔ|ƔƓƢȞ|ƔƓΓowlist|ƔƓɓ|ƔƓ́|ƔƓʻ|ƔƓ̆|ƔƓNo˾s|ƔƓΠAt|Ɣϝ˾|ƔOnly̶|ƙ|ƈǣFirst|ƈƢReady|ƈɗ|ƈΫLj|goƛ̴Lj|ȮƄ|ȮGoʐ|ȮGoȈ|ȮGoǕ|ȮLJ|goȢʐ|goȢȈ|goȢǕ|goȢ̱|ƷȢ|ǺReadƵ|κ̸|Ǻʺ|̞Ƶ|Ɲʱed|͈Ƶ|ƐΔ|ƐϕEffective|ƐϏ|Ɛ˖|ьƶϏ|ʟΓΔƶ|ʟChip|ʟȢ|ɐΓΔƶ|ɐChip|ɐȢ|ƐHoliщsƄ|ʟRuleLj|ƐȢ|ьƶȢ|ƐψƄ|Ɛψɍ|Ɛψ̯ic|ƐƣƄ|ƐƣAheadƄ|ƐƣʒƄ|Ɛƣʒƶ|ƐƣʒΔƶ|ƐƣʒΙ|Ɛƣƫƶ|ƐƣƫΔƶ|Ɛƣϐ|ƐƣPhaseƶ|ƐƣPhaseΔƶ|ƐƣBtn|Ɛƣνƶ|ƐƣνΔƶ|ƐƣʷƄ|Ɛƣʷ̰|ƐƣʷCenter|ƐƣWebϕifyƄ|ƐƣWebϕifyǷ|ƐƣǽƄ|Ɛƣǽƶ|ƐƣǽΔƶ|ƐƣǽTag|ƐPanelƫ|Ɛ˖ϓǷ|˄Ρ|˄Money|˄ǂ|ƯSimple|closeο|̐ςʶes|͙ςʶǷ|˄̰|˄̲|unmountBtn|έUnƜd|Ɯуν|ƜуǷ|ƜуRelease|Ƙƍƫ|Ɔƫ|ƆCount|ƆOƭr|Ɔ_ɜd|Ɔ_ȣњ|Ɔ_remember|Ɔ_Ɩ|Ɔ_shˏs|Ɔ_ΰ|Ɔ_Ʈ|Ɔ_̑|Ɔ_Ʀ|Ɔ_topN|Ɔ_ƙSeconds|Ɔȿ|Ɔћ|ƆFirst|ƆAfter|Ɔт|ƘƍǛ|ƘƍǼ|ƘƍǴH|ƘƍƥsH|ƘƍлH|Ƙƍлɘ|ƘƍлɘTip|ƘƍValueH|Ƙƍɕ|Ƙƍǵ|ƘƍȬ|Ƙƍɹ|ƘƍBlended|ƘƍLj|Ƙƍ˔|Ƃ̹Split|Ƃ̹Splitɍ|Ǎƍƫ|Ǎƍɹ|Ǎƍȉ|ǍƍΧ|Ǎƍʵ|ǍƍPer1|ǍƍFull|Ǎƍɻs|Ǎƍʎϛ|ǍƍʎLive|ǍƍʎNone|ǍƍʎϛAt|ǍƍConfidenceLow|ǍƍCurveƫ|Ǎƍ̱|ǍƍȈ|ǍƍǕ|ǍƍCurveɹ|ǍƍBarTip|ǍƍLj|ʕ̯Ƅ|ʕ̯ƅ|ʕ̯̒|ʕ̯Api|ƜȟSepaʛ|ƜȟǷ|ƜȟΓ|ƜȟSingle|Ɯȟ̄|ƜʶƄ|Ɯʶ̒|ƜʶExact|ƜʶLj|ɢʒʋ|ɢɗ|̟ƫ|̟Ƿ|sectionƄ|ƴΫƄ|ϥɕ|ϥǵd|ϥǵWrite|DŽWriteF̙ќ|ϥȬ|ƑƅΥ|Ƒƅњrouter|ƑƅSiliconfѨ|ƑƅCommǥcode|ƑƅClinepass|ƑƅScnet|Ƒƅə|Ƒƅ̼|ƑƅMimo|ƑƅBaidu|ƈ˙ȿ|wbT|wbH|Ƒƅ̂|Ƒƅњdesign|ɡWorkspace|ɡLj|ɡρ|̊Pool|̊PoolΙ|̊Org|mimoȉƅ|mimoȉʈ|Ƒƅȉƀ|ɈƓ|ɈƓʵ|ɈƓCli|ɈƓ̀|ɈCliLj|Ɉ̀Lj|ɈƅǁƄ|ɈƅχƄ|ɈυƄ|ɈυɺǸ|ɈRateDraftLj|Ɉυ̭|ɈʵLj|ύƅǁƄ|ύƅχƄ|ύʵLj|ȍȪIdƄ|ȍϜȪƄ|ȍȪǸ|ȍϜǸ|ɾHoursOnly|ɾHourϔ|ɾϔ|nextΔƶIn|nextƶIn|ƐSummary|noƶȉs|ɑ|͇Ǜ|͇Month|͇ȿ|͇ȿSub|ɞʼ|͉ʼ|ɞStale|ɞǼ|͇sFootϫe|ƕѤǷ|Ʉȡs|ƝExpǥǷ|Ɲȡsʍ|ƝNoȡs|Ɲȡsξ|Ƃ̕ƫ|Ƃ̕Ƿ|Ƃ̕ɹ|Ƃ̕ʍ|Ƃ̕ξ|Ƃ̕π|͇s̓ƅȿ|͇s̓ƅȿǷ|ϩȡǴϒ|ϩȡǴDock|ϩTurnǴ|Ƃ̖̕|Ƃ̖ǴDesc|Ƃ̖ǴAsc|Ƃ̖ϞDesc|Ƃ̖ϞAsc|Ƃ̖̽|Ɲ|ƴƫ|ƴȿ|ƴDay|ƴɹ|ј̻|јƛs|јʼ|јΨ|јǔ|ƝDataƫ|ƦƄ|ƦDock|Ʀϒ|ь|ƈɼʑLJ|ƈɼʑGo|ƈɼʑƅs|ˡLoadϞout|Ɓϓ|Ɓ̓|̉ToƢ|Ɓʲοϐ|ƁʲοOk|ƯƄ|ƯOn|džƄ|ʛƄ|decimalsƄ|ƁǔƄ|Ɓǂ|ƁǑ|ƁΙ|ƙȞƄ|ƐǣdƄ|Ɛ˖Ƅ|ƜTableƫ|ǎȝƄ|ǎȝUsd|ǎȝCny|ǎȝLj|ƜTableLj|ʗdςLj|ȣɺId|ўɺǸ|addɺ|Ɇ͂|saving|ϡΪƵ|ϡΪdAt|ϡΪǷ|ɎFetch|ɽ|Ϣ|̞FromDocs|̞ScopeLj|Ɏɻ|͑˔|Ɏ˓˔|˟˓Ƶ|˟˓Lj|Ɏʱ|͈ΓǼ|last͂|never͂ed|ƹ|ƹȠ|ƹΚ|͒Ƅ|ɂe̒|rpcƵ|rpc͂Ƶ|rpcƀƵ").split("|"),_e=Object.fromEntries([["zh",'本Ɨ {Ƌ} · Ȳ {ʘ} · Ɵ {Ƴ} · Ƨ {DŽ} · Dz {Ƹ}|本Ɨ {Ƌ}|仅Ɖǀ|无限制|Ǚȱǀ来自˹Ǝ × Ή {ʛ}。对照ƪȱе,请Α п,再ƻƎ;ƻ仅;ʢƲ。|ƌȖƼ:{ƨ}|˴错误|ƌ|Ƥ ƌ|Ɵʄ|ɩ和ȃ|ɩ和Ɵʄ|ȃ和Ɵʄ|ȎǨ|ȖƼ|ƪƌ变动与ǭDZ交叉ͻ(偏差超阈时Ȓ)|ж {ɏ} · ͪ {ɦ}|Ȕȓ {ƕ}|nj({Ʈ})|Nj {ȯ} / {Ƌ}|ȕ {dz} · Ⱥ {Ȇ}|nj|ljƏ(按Ǚ价表计算)|lj ƥ Ʊ|Ɩ|Ʋ {Dž} 次 · Ɵ {Ƴ} · Ƨ {DŽ} · Dz {Ƹ}|ȕ {Ƌ}|Ⱥ {Ƌ}|lj|ǠljƉ|Ə|ƥ Ʊ|lj|ȕ|Ⱥ|Ƭ˭|ɯǒǮ。Ɋ,Ə将按天ɋ。|ȴ|Ʋ|Ɵ ѓ|Ƨ ѓ|Dz ѓ|Ə|ljɯƗǮ。|Ɨ|ǻnj|njƃ(按Ɖǫ)|njʣ|开始ȴ|结束ȴ(ǚ = lj)|ɲ˭:{̎}|ǻnj后Ɖƃ、Njǀ及Ц(按ƉǫК);Ȑlj、ȕ、Ⱥ或Ƭʣ。|{Ʈ}nj {Ƌ} · Nj {ȯ} · {э}%|(已超出)|(接近ͥ)|旧ƒ|Ȝ回退|ʮ|˰|ǰ|NJ|ƌ϶ ȩ ˎ|ƌȵ|ƚ(ƒ ˎ ˧)|ˍ ȸ钱包|手选Ȼ或϶ ˎ ˧。|总ƌ {Ȇ} · ж {ɏ} · ͪ {ɦ} · Ȕ于 {ƕ}|ƌȖƼ:{ƨ}|未Ȗƌ|ƪΏƌ|ƞ中…|ƞƌ|Ƭ ɖ ƌ|ɰȼ|ɰ ƥ ˘ ƌ|Ɖ官网Ώ页的ȱ͵ƌ。ȸ ɥrhythm.ϲ,在Ȃ开发者А → 网络̠Ώș的 ʊ,或在存储 / В̠ tr_Ƃ 值,Ќ˦ư并ǻ。ʊ 仅存 ˍ ư库;и˯新ʥ。|ɰͱ / ̬ƌ|Ȗ̬中国站͵金。RAM Ȫ 需 bss:Ǣ С。前两项必填;STS 才需 ̿ ƥ。ȳ存ư库。|extract ˲点ΐ、数值、嵌套 add/͡/͔/Ϥ/ѩ/max/sum,Ϲ Ȍ 算式。Ϻ ǟ: {"Ȍ":"(Ɇ.Ȇ - Ɇ.ȯ) / 500000"}。͹名和КЦ按接口ʥ;已Ʊ应填 ͞。|Ϸɪ|Яɪ|ș URL|˲ ̷、本机 Σ,Ϲ /θ/… 相对ΐ(ƚз ˍ ˷)。|ϻ非回环 Σ(ư明文传输;须将准确的 Ȱ:˷ 加入ʆ)|+ Ǘ ȹ|Ǘ 预设ǯ活跃Ȼ池ȏȹ,ɨ管理后台 X-Adѩ-ƥ(不是ƒ ȩ ˎ)。请ʥͺͷ与˷;令牌и后Ȕư。|ș方法|ș头 (ʌ)|ș体 (ʌ)|ǚ不ͳ;ʌ 原文ǩ并ͳ。Ȝ ʉ 为 ʽ/json,Ѕș头˺。|解析в (ʌ)|ƬƌƉǨ|ƞɳ (ǘ)|ƌ原ǫ|按Ɖǫ΁(ф ƌ)|ɨƉΉ与΍;ƌǫ保持端点原ǫ。Ͻǫ及ȹ不΁。|ƌ {Ƌ}|ͽNj {Ƌ}|Nj {Ƌ}|进度条΄|ȏ΄(满 → 空)|Nj΄(空 → 满)|ƃͥ (Ȑ)|ʌ ·无效|{{ц_NAME}} 从ư库或ʭǯ。<τ>_ȩ_с 中 τ 为大写 ɖ ID,符号改下划线,如 Ϭ→ϖ_ȩ_с。І共用ȳ。|ưʆ (Ȩ)|ș头带ȳ时仅М列表内Ȱ,ǚ则М并警告,防ʧ他人ȼ外带ȳ。|ưƟ|为上方 {{ц}} ̡存入ȳ(write-ɠ,ʹư库,不Њ):|ș头还没有 {{ц}} ̡:Ќ如 "ɵ": "Beˏr {{MY_ȩ_с}}" 后˼会出现ưƟ框。|ǻ|ȏ {ǟ} · Nj {͞} / ƃ {maxLJ} · Ȕ于 {ƕ}|ȏ {Ƌ}|ƞƬƌ|ǃ ȗƃ|Go|˶ 5 Ǫ|Ά|ȕ|Ƚ:{ƕ}|已到Ƚȓ|ȏ {d}天{h}Ǫ|ȏ {h}Ǫ{m}分|ȏ {m}ǘ|{h} Ǫ {m} ǘ后Ƚ|{m} ǘ后Ƚ|{ƕ} Ƚ|按本Ъ平均Ʊ,预计 {ƕ} 达到ͥ|Nj {э}%|ȏ {э}%|{η}%|Ȕ于 {ƕ}|Go ƃƉǨ|Go ƃƞɳ(ǘ)|ǃ ȩ ˎ(Ȑ,ǚƚͲ)|Go ƃ主Х|Go Ǔ|已ȼ(ȵ:{ƹ})|未ȼ|ǩ|Ύư|ȶ|ǩ中…|ȳ只ͫ ˍ ư库,不ǩ在DZ里,也ͦЊ。|以下ȳ仍在ǭDZ,未迁入ư库。请导出Џʭ˯启:|njǓ|ƞƃ|未Ȗƃ|ɸ(ˑ/Max)|Z.ai / 智谱 GLM ǡ ƅ|ʏ M ƅ / ƥ ƅ|ʏ ƅ|ȖЋ(̷)|ǚƚΑƪ站点。ʥ后 ˎ 仅发往该Ћ;ɨ可信ͷ,不含ΐ。|5h|7d|Ж Ƥ ͪ页(͖.͋.Ѧ/ƴ)|Λ (Ƕ) ƃ|Ƕ ƃ未ɬ · 点此ɬ|5h ƃ|周ƃ|{ƕ} Ƚ|未取得ƃ,请ɱ所选Ǭ源已ȸ;ȷк|Ɖ Ƕ ƃ(需ȸ Ƕ 插件)|在ɩƉ Ƕ ƃ|在Ɵ区Ɖ Ƕ ƃ|本ƗƏϾ̢|ɯƃǬ|ƉǨ|ȩ ˎ(Ȑ,ǚƚͲ)|ƞɳ(ǘ)|ƞ|ȸ|ȸ中…|未Ȗƃ|оїxyȩ Эƃ|ɰȵ|ȵɪ|̮|ƉǨ|ƞɳ(ǘ)|ưʆ(Ȱ:˷,Ȩ)|˕ ˎ(ʹ)|Ч|不˲的 ɖ|˴|未ͲȻ|抓取于 {ƕ}|ͭȻ (Ǚ: {Ǥ})|只Ɖ ̶ ƃ|ƞ|先ͯǻ̫|ǻ并ǩƉǨЇƞ|ͮ|ͯǻ后会排到最上面;点ɪ可ʨ该项自己的ȼ。ƬƌО 8 条,ЭȵО 4 条。|ɬ后ǯ ǃ 的˶ 5 Ǫ、周、月ƃ,Ɖ在ɩ、ȃ及ȁ;无ȗ时ȒЃ。|ȁƉ(ΰ)|˶ 5 Ǫƃ|Άƃ|ȕƃ|njNj%|5h|周|月|日|nj|DZǯƼ:{ƨ}|正在ǯDZ…|DZ不͵|ƻƼ:{ƨ}|ǒǮ已ȶ。|ȶƼ:{ƨ}|ȑ˻已˪,按˰Ǝƿ|尚未΋(΋ȓ:{ƕ}),Ǚ按˰Ǝƿ|ǙЍ峰ƾ,按NJ价ƿ|Ǚ为 Ƥ NJ高价ƾ,按NJ价ƿ|ǙЍ谷ƾ,按ǰ价ƿ|ɫƾ——全Ț(周六及周日˩按ǰ价ƿ)|ɫƾ——全Ț|ɫ全谷|ȧ——˩Ț|ȧ——全Ț|假日|ȧ(Ͱȴ,Ȩ)|自 2026-08-23 Ͱȓ 00:00 起,ɫ和ƺ;调休上班的ɫ仍按Ț。|NJ|Б|ȑƾ条样式|简洁(单行紧凑)|经典(分段与胶囊芯片)|峰/谷ͭ前ͼɭ|提前ɭ(ǘ,1-30)|ɭЫ|țNJ|țǰ|峰和谷|ЁțNJ|Ёțǰ|约 {ƕ} 后ƿХͭ为{phase}价,请注意本ƾƲ成本。|NJ|ǰ|̩|峰价ɭ|Țɭ|ͼǨ|ȁ|屏幕中心|ƻͳ系统й|Д后дȂͷ栏ϻйС,才能在Β最小化/切走时收到ɭ。|ʰͼ|ʰ ț峰|ʰ ț谷|(ʰ)|ȑ˻与Ȓ|Ȓ已Ⱦ:需ǻȑ˻并ɬ「ƽ」。|常规|ǀ与ǫ|ǠƉ|简化ɩƉ|˪Ȓ|ʩ已ʮ的ƒ ({͊})|ʮ会ȶ˱映射并Ⱦ此行,可ʩ;ͦͮƱǮ,ʢ按ƚʠв˻。|ȁ角标|Ǔ|ˮЗ|未核价|已Ƭ|这个Ǝ是你˱改过的,ƚƻͦ˺它。|ʩƚƻ|按ƒɲ(ɥ 与Ə)|ɩƒЮ|{n} ƒ|其它|ƉƒЮϿ|Ȝʨ|记住ʨЧ|Ɖ ƥ|ƉƏ占比条|ȁƉ ћ-1 ƒ|Ȝʣ|收起摘要|ϿǨ|ƒ行数(1–10)|ƞɳ(10–60 秒)|ʣ΀与ƒ数|ћ-1 ƒ与ǀ|顶部|ƌ之后|Г|lj|近 90 天|Ə排行|ƥ 消耗|ƧȲ率|̦?|长Ʋ无ƧȲ:代理ͶʮƧ͹。ǀ按全未Ȳ计,是ϴ;可直连核对。|̣ · 每˹ ɥ 数|Ɵ|Ƨ|Dz|该ƾɯƱǬ。|综合ʡ {Ɯ}/M|Ȳ率=Ƨ读÷(Ƨ读+普通Ɵ);「̦?」表示Ƨ͹ͶЬ,ǀ为ϴ。ʡ=Ə÷ɥ×1M;̣=ɥ÷Ə。|未分ƒ(НǬ · 按当时Ǯƿ)|本Ɨ {Ƌ}(ȩ)· ƅ ˸ {ǍAmount} · Ȳ {ʘ} · Ɵ {Ƴ} · Ƨ {DŽ} · Dz {Ƹ}|本Ɨ {Ƌ}(ȩ)· ƅ ˸ {ǍAmount}|ƥ ƅ Ʊɲ(每 1% 与Ίɧ)|尚无 ǡ ƅ ƃǬ;д「ƃ」页ɬ并ƞЂ。|Ъ|Nj %|本ʣͺ(ǭDZ)|每 1% ƃ ≈|Ί 100% ≈|Ƚ {ƕ}|˽差分|ǙƱ΁|Фϵ|{ʙ}(基准 {ƕ})|读数΍受限|ƅ Ʊ曲线(按ʯ聚合)|Έ|每周|每月|˽ϵ:至少两次成功ƞ,且ƃ̨Є变化。|{ʗ}:Ί估计 ≈ {Ϧ}(每 1% ≈ {ѡ1})· ͺ {Ɩ} / {ǜ} · {ǝs} 个ʯ|ǀ是目录价˸;ȗ耗ƃ,nj只计 ȩ。ɧ仅含 dsh Ʋ;服务端̨含全Ȼ。短时Ф΍有限;5h ˶,周/月按ǭ日历。|ƿ方式|ƅ ȗ|ƚ|ȩ И|ͬȘ˨|可Ɵ 2 × 0.8|ͩ˨会ƻ到本ƒȎʡ|仅̫ͩ的˨;ˮͯʩ统一˨|请Ɵ非负ʡ或乘法,Ϻ 2 × 0.8|˴ƒ名ƚʠ|ƚ(去后缀 / 前缀 / 家族相似)|仅精确ʠ|˧ɨ˱指定和˵Ǝ,ƚ识别Іƒ及ȴ标签。|Ƥ Ȝ价|ʮ|待ʠ与˱Ș|按˵和ƒͬȘ:ΑƎ表条目、ƬƎ,或标记为ǭƒ。ƬƎ只ΌǙ˵。|Ə|Ʊ|Ɵ|Ƨǯ|Ƨͫ|ǚ时按Ƨǯ价ƿ|Dz|̔ / ̺|˗|ʸ 硅基流动|CommǥCode|˒|SCNet 超算互联网 ƥ ƅ|火山方舟 ʔ Ark ǡ ƅ|ͱ ̼ ƥ ƅ|小米 MiMo ƥ ƅ|百度千帆 ƥ ƅ|Nj / 总ƃ|ȭ ȹ|ƚǯ ȭ ȹ。|̂ (Droid)|ȇ|ȇ ʃ ID|点˦Йƚа(设备码Л,Ȃ批准一次Ѐ),也可按 F12 复制 ʊ Еʥ。ʃ ID ǚ时ƚǯ;Ν ˎ 需填ʃ ID,不˲΂ ȩ ˎ。|一键аƃư|ƃЫ|Stǥard + Core|组织 ID(Ȑ)|Ўȹ|补偿ȹ|ƌ|ƃȵ|ǭɧ|ƪ о|Щ о|о 模式需在 ˍ Ȱʦ @ʂ/ˊ,并Ǐ ι ȋ。|Щ о:在 ˍ Ȱʦ ʿ。ȸЙ会在该ȰЖЛȂ;远程或无ШȰ请Ǐ bl ȋ --ʖ。|Р ǁ ƃ(个人版 Lite 5 万 / У版 50 万,以ȗ页ϸ)|ȗ̪(Ȑ,· Ȋ;ǚʪ)|ǁ ̤˺(Ȑ;每百万 ɥ 抵扣的 ǁ,ǚ用˫表)|ƒ名,如 Ɉ3.8-ˇ|待填齐三项正数后ƚǩ;Ȏ清空ʩ˫表。|ɰ|ǁ ǭɧ,以̥ϸ。ɲ归属ͱЎ的 ƅ Ʋ;ͧИ ȩ。бƒ需设̤。|ǭɧР ǁ ƃ(˰ 60,000 / У 240,000 / 高级 600,000)|ȗ̪(Ȑ,· Ȋ;ǚʪ)|˧用 24 Ǫ内的̥Ϳ,否则按ǭDZ和ƪ ǁ 表ɧ。ϽА和бƒͧ入。|ʬ Ȫ ID|ʬ ϜȪ|AK...|SK...|{h}Ǫ|{h}Ǫ{m}分|{m}ǘ|{ƕ}后țБ|{ƕ}后ț高峰|峰ƾ({Ѥ}):{˥s};΋ȓ:{ƕ}。{ˣ}|未ȼȑƾ。{ˣ}|˴|ljƏ|ȕƏ|ȺƏ|自DZ建立以来 · Ʋ {Dž} 次|͸Ʊ|ˍ + ͸合计|͸Ϳ超过 24 Ǫ未Ȕ|近期ΈǮ|ǀ取ПͿ,Ͷ比ƪе晚几ǘ。Ɩ 含Ɵ、Dz、Ƨ和΂;΂并入Dzƿ。以ǀͻ。|lj/ȕ按宿主΅ {˅},Ȃ为 {Ǿ}。΅不同会;日界和ͻ;可将 dsh 改为ǭ΅。|ljƗ|ȷȴ行可ʨͽƗɮ|Ɨɮˬ中…|该日无Ɨɮ(НǬ或Ɨ˳已清理)|ƗɮˬƼ|按Ɨɲ(Ȏǒ)|跨天合并,̢按Д归并。仅列选定Т,ȺƏϾȎ对话。|ɯƗǬ|Ɨʫ中…|ƗʫƼ|ƉТ|ǀ含 ƅ ΀|ɬ后所有ǀ按含 ƅ ȗ˸的总Ə展示;˪(Ȝ)仅计真金白银 ȩ ˵|Ⱦ̧Əɮϼ|ȾƟ框˦Əɮϼ|Ⱦ每轮回复Ј本轮Ə|排序|Ə 高→低|Ə 低→高|ȓ 新→旧|ȓ 旧→新|实时顺序|ǒǮ|ƥ Ʊɲ|Ⱥ {Ɩ} Ɩ · Ɵ {Ƴ} · Ƨ {DŽ} · Dz {Ƹ} · {Dž} 次Ʋ|{ʗ}:共 {Ɩ} Ɩ(Ɵ {Ƴ} · Ƨ {DŽ} · Dz {Ƹ})· {Dž} 次Ʋ · {ǜ}|ɯǒǬ,ɊΈƱ会ɋ|概览|ƃ|Ʊ|Ǝ|Ɖ|ǒǬ|ƗƏƉǨ|Ɵ区˦|Ɨ̧|˪|ʅnjNj%|ʅ Go ƃ|ʅ ǡ ƅ ƃ|Βǯ超时,请ȷк。|ƌ已Ⱦ|ȷɪȾ或Ɖƌ;ȷǀƞ|ȷ立即ƞ|ȷǠƌ或 ǡ ƅ ʤЀƞ;ƞ时ʤ闪烁,Ƽ时ͨ原值并在悬停Ȓ中说明Ѓ。|̩|ͽƏƉ|ǠГ|货币单位|Ή(1 ˹ = ? 目标ǫ)|小数位数|ƌƉǨ|主ΒǠ|ȃ|两者都Ɖ|ƌƞɳ(ǘ)|ǻ Ƥ ȑƾƎ|ƽ(Ǡnj框/ljƏ;ȃȑ面板内ʰ)|已З的Ǝ表|ƪƎǫ|˹(Яƪ页)|ȱ(Ϸƪ页)|决定ƻƎ所用的ƪ页г;ƻЈƎΌʢƲ。|ї 与 ʴ ͬ按ƪʡƿ,旧 ʴ ɪ按 ʴ 价结算。工作日Ͱȓ 09–12、14–18 为峰ƾ,ɫ及ƺ。改价ΌʢƲ,已Ǯǀͨ;修正旧Ə请ɱ后ɨǒ重算。Ƨͫ按Ȳ价。|˼ƉǙ适用Ǝ。ЕΎ会ˮ此条ʢ预定调价,已Є的ǒƎ仍ͨ。|ȜƎ|新ƒ ID(如 ɇ)|ɰƒ|Ǭ与ƻ|ǩ中…|ƚǩƼ:{ƨ}|已ƚǩ {ƕ}|ȼͩ后ƚǩ|ɱ用ƪ΃Ǝ˺Ǝ表?|В|ˮ|从ƪ΃ƻƎ|ƪƻ只Ȕ Ƥ Ǝ(含ȑ);z-ai/Υ/̼/ʔ 等第三方Ǝ随版本Ȕ,ЅƎ表ʨЏЂΎ,或用ƒ名ʠ调整。|ɱȶȎǒ?|ɉǒ|ɱʧ?将ЉȎƗ˳,只补DZЬ的ȴ与Ɨ,不;已有Ǯ。|ɉǒƼ:{ƨ}|首次启动ƚʧ旧Ǯ;拷入˳Ї重跑。按ǙƎ回推;已ͮ˳无法Љ,跨ʦ时刻的Ɨͧ此前Ʊ。|ɱȶ|ȶȎǒ|Пƻ:{ƕ}|从未(ɨ˫Ǝ)|;ȵ:{ƹ}|ƪ΃|˫Ȝ|Шг|з ˍ(ƚ)|{ʙ} ƲƼ|ƻƲƼ|ƌƞƲƼ'],["en",`ʹ Ƃ {Ƌ} · л {ʘ} · ɕ {Ƴ} · ǵ {DŽ} · Ȭ {Ƹ}|ʹ Ƃ {Ƌ}|ʑ Ƌ ɠ|̘|п Ȇs ͣ ф Ɯs × {ʛ}. To Ѧpˏ Ơ п bills, ϱ п, ƭn ̞ Ɯs; ̞ing affects ɠ ў Dž.|ƀ ό ǧ: {ƨ}|̆ error|ƀ|Ƥ Ɓ|Above ƭ Ƴ м|ǂ ǥ ˋ|ǂ ǥ Ƴ м|Ǒ ǥ Ƴ м|Γ locations|σ ǧ|Cross-check Ơ Ɓ ή against ƭ ɂ Ǻ (warn μ ƭy diverge)|΢ {ɏ} · ̗ {ɦ}|ʓ {ƕ}|LJ ({Ʈ})|˙ {ȯ} / {Ƌ}|ʹ dz {dz} · Γ ƕ {Ȇ}|LJ|Ǜ's ǜ (calculated using ǿ ȅ)|Ǜ's ɥ ƴ|Ɩ|C̙s {Dž} · ɕ {Ƴ} · ǵ {DŽ} · Ȭ {Ƹ}|ʹ dz {Ƌ}|Γ ƕ {Ƌ}|Ǜ|ǂ Ʉ Ʃ|Ǵ|ƥ ƴ|Ǜ|ʹ dz|Γ ƕ|ȫ ̎|No Ɲ і. Once you ͟ chatting, ǜs ˏ ˚ ϧ ѡ щ.|ϑ|C̙s|In ѓ|ǵ ѓ|Out ѓ|Ǵ|No Ƃs ͘ Ʉ.|ȡ|ǣ Ʒ|LJ Ƌ (in Ʃ dž)|LJ Ʈ|χ ʗ|End ʗ (Ɂ = Ʉ)|Range: {̎}|ǣ a Ʒ to see ѧ ͓, ȯ Ƌ ǥ ˢ in ƭ Ʃ dž. Choose Ʉ, dz, ̙ ƕ or a Ɗ ̎.|{Ʈ} Ʒ {Ƌ} · ˙ {ȯ} · {э}%| (Ѡ ͓)| (near ͓)|˔|ʋ f̙ќ|ɗ|Ζ|Δ-Ɛ|ƶ|ƀ ȩ ϋ|ƀ ƹ|̒ (Ƙ ϋ ͏)|ˍ Ǥ w̙et|̀ Ǥs or dedicated ϋs ɷ.|ȿ {Ȇ} · ΢ {ɏ} · ̗ {ɦ} · ʓ {ƕ}|ƀ ό ǧ: {ƨ}|ƀ Ƀ|˾ Ɓ|Ƣing…|Ƣ Ɓ|ȫ ˉ Ɓ|̭ ϊ|̭ ƥ ˘ Ɓ|ʑs available п Ɓ ˂ ƭ Ơ Ǥ ˡ. Sign in at ɥrhythm.ϲ. In Ǿ ̳, copy ƭ Ǥ ɣ ˂ Netѕ, or ƭ tr_Ƃ ώ ˂ Storage / Application. Ϊ it beѨ ǥ ɜ ɤ ͇. ʊs ѐ in ƭ ˍ Ƈ ͠; λ ƭm μ expired.|̭ Qianwen / ɴ Ɓ|ʑs ɴ China funds. RAM Ȫ needs bss:Ǣ. The ͏ two ͎ ˏ required; ̿ ƥ is β STS. Ϝs ѐ in ƭ Ƈ ͠.|ѥ paths, numbers, nested add/͡/͔/Ϥ/ѩ/max/sum, or Ȍ βmulas. Example ǟ: {"Ȍ":"(Ɇ.Ȇ - Ɇ.ȯ) / 500000"}. ʶ ͎ ǥ unѧ to ϳ endpoint; put ȯ Ƌs in ͞.|Ɍ ζ|Ξ ζ|Ω URL|SupϮs ̷, ɂ Σ ǥ /θ/… paths ё ͐ ƭ ǿ ˍ Ϯ.|Γow non-loopќ Σ (plaintext Ƈs; ͚ ƭ exact ˅:Ϯ in ̙owed ˅s)|+ Ǘ Ǧ|The Ǘ p͛ ͗ ǟ Ǧ across ϟ Ǥs using an adѩ X-Adѩ-ƥ, ϫ a Ƙ ȩ ϋ. Set ƭ ̈́ ̈ ǥ Ϯ; λ ƭ Ƈ μ it expires.|Σ ʙ|̃ (ʌ)|Ω body (ʌ)|Blank sends no body; ʌ text is я ǥ sent as entered. ʉ ȣs to ʽ/json; ̋ can ɢ it.|Ο rules (ʌ)|ȫ Ɓ Ʃ|Ƣ ǝ (Ȁ)|Ɠ dž|́ ф Ɓ to Ʃ dž|ѥs ƭ Ʃ ʛ ǥ ̛. Keep ƭ ƹ dž; oƭr currencies ǥ Ǧ ѐ unϣd.|ƀ {Ƌ}|Ǜ {Ƌ}|φ {Ƌ}|їgress ш direction|ǐ (Ϧ → Ɂ)|˙ (Ɂ → Ϧ)|LJ cap (Ǟ)|̄ ʌ|{{ц_NAME}} ͗ a Ƈ or ˁ variable. <τ>_ȩ_с ͣs an upѡcase ɖ ID ͤ underscores, such as Ϭ→ϖ_ȩ_с. Names can shˏ a ϋ.|˿ ˅s (Ʌ)|ч ̋ carry Ƈs ɠ listed ˅s ˏ ̙owed; leave Ɂ to ̙ow ͤ a warning. їtects ϋs μ ͑ing someone else's config.|ɓ Ƴ|Store ƭ ϋ β ѝ {{ц}} placehџer above (write-ɠ: ͠d in ƭ ˍ Ƈ ͠, ȥ):|No {{ц}} placehџers in ƭ ̋ і — add e.g. "ɵ": "Beˏr {{MY_ȩ_с}}" ǥ a Ƈ Ƴ є appear ϧ.|ǣ|ǐ {ǟ} · φ {͞} / LJ {maxLJ} · ʓ {ƕ}|ǐ {Ƌ}|Ƣ Ɗ Ɓ|ǃ ʞ ƈ|Go|ʐ 5h|Ȉ|Ǖ|ɻs: {ƕ}|ɻ ƕ rѝed|{d}d {h}h ы|{h}h {m}m ы|{m}m ы|ɻs in {h}h {m}m|ɻs in {m}m|ɻs {ƕ}|At ɤ ˥’s average pace, ͓ expected {ƕ}|{э}% ȯ|{э}% ǟ|{η}%|ʓ {ƕ}|Go ƈ Ʃ Ʀ|Go ƈ ƙ ǝ (Ȁ)|ǃ ȩ ϋ (Ǟ; Ɂ = ʾ)|Go ƈ primary ˥|Go м ǖ|ɒ (ƹ: {ƹ})|ϕ ɛ|Ϊ|љ Ƈ|ʱ|̾…|The ϋ is written to ƭ ˍ Ƈ ͠ ɠ — it is never я in ƭ Ǻ ǥ ȥ.|These Ƈs ϰ in ƭ ɂ Ǻ. ExϮ ƭ ˆ ˁ variables ǥ re͟:|LJ м ǖ|Ƣ ƈ|ƛ Ƀ|ɸ (ˑ/Max)|Z.ai / Zhipu GLM ǡ ƅ|ʏ M ƅ / ƥ ƅ|ʏ ƅ|ƛ ϭ (̷)|ɹ: Ơ sites. Oƭrwise ƭ ˎ is sent ɠ to ɤ ϭ. ѥ a trusted ̈ ͤout a path.|5h|7d|њ Ƥ top-up ˡ (͖.͋.Ѧ/ƴ)|Λ (Ƕ) ƈ|Ƕ ƈ is disabled · ̉ to ɜ|5h ƈ|Ȉ ƈ|͛s {ƕ}|ƛ ˌ. ǣ ǥ sign in to ƭ ϱed ƹ; ̉ to retry.|ʑ Ƕ ƈ (͚ a signed-in Ƕ plugin)|ʑ Ƕ ƈ in Ư|ʑ Ƕ ƈ above ˀ|Τ ̝ in Ƃ ǜ|No ƈ Ɇ|ǔ Ʀ|ȩ ϋ (Ǟ; Ɂ = ʾ)|Ƣ ǝ (Ȁ)|Ƣ|ρ|Signing in…|ƛ Ƀ|оїxyȩ Ɣ ƈs|̭ ƹ|Ɠ label|̮|ǔ|Ƣ ǝ (Ȁ)|ɓ ̙owlist (˅:Ϯ, Ʌ)|˕ ϋ (write-ɠ)|́|ʻ ˉs|̆|No Ǥs|fetched {ƕ}|ϝ Ǥ (ǿ: {Ǥ})|̶ ƈ ɠ|Ƣ|ǣ ɤ item ͏|ǣ ǥ Ѣ a Ʃ Ʀ to ƙ|ɗ|ǣd items move to ƭ top; ̉ a ζ to expǥ ѧ own ˋ. Up to 8 Ɗ Ɓs ǥ 4 Ɣ ƹs.|ǣ ǃ rolling 5h, weekly ǥ dzly ƈs in ƭ Ư, Ǒ ǥ bottom-right Ȯ. Missing ɶ ѣ a ϯ.|ʇ (ΰ) Ʃ|ʐ-5h ƈ|Ȉ ƈ|Ǖ ƈ|LJ ȯ %|5h|Wk|Mo|̱|LJ|̸ ю ǧ: {ƨ}|Reading Ǻ…|̸ ˌ|͂ ǧ: {ƨ}|Ǽ cleˏd.|ʱ ǧ: {ƨ}|ƶ/ь-Ɛ ǎ is ь; base Ɯs ˏ ȯ|ϕ і ɿ (ɿ at {ƕ}); base Ɯs ˏ ǿly ȯ|ƶ hour now; Ɛ Ɯs ɽ|Ƥ Ɛ-hour ǎ is ϟ; ǿ Dž ˏ ˛ at Ɛ Ɯs|Δ-Ɛ now; ь-Ɛ Ɯs ɽ|̇ — ̙ ь-Ɛ (Sat & Sun ˛ at ь-Ɛ Ɯs ̙ щ)|̇ — ̙ ь-Ɛ|̇|Ɍ public ɐ — ь-Ɛ ̙ щ|ϙ ɐ — ̙ ь-Ɛ|Holiщ|ϙ ɐs (Η ʗs, Ѧma sepaʛd)|Since Aug 23, 2026 (Η ƕ), ơ ь-Ɛ ̙ щ, ʁ ѕ-shift ʟs.|ƶ|Δ-Ɛ|ƶ Ʈ strip style|ɍ (one-line)|̯ic (segments & chip)|Popup ω beβe Ɛ/ь-Ɛ switch|Lead ƕ (Ȁ, 1-30)|ƣ type|ɔ Ɛ|ɔ ь-Ɛ|Ι|ɔ Ɛ ˞|ɔ ь-Ɛ ˞|Θ switches to {phase} ǎ in about {ƕ}; ѩd ϳ c̙ ǜs in ɤ ˥.|Ɛ|ь-Ɛ|Got it|ƶ ω|Δ-Ɛ ω|Popup Ʀ|ʇ|Screen center|Also send a system ʚ|ч ɜd, ̙ow ʚ ѡmission in ƭ Ǿ ̈ ш so you get ωed even μ ƭ ˡ is ѩimized or ќgrounded.|ǽ ƭ popup|ǽ ͌ Ɛ|ǽ ͌ ь-Ɛ| (preview)|ƶ/ь-Ɛ ǎ & ͕|˖ Ϩ: ɜ Ɛ/ь-Ɛ ǎ ǥ ƭ “proѩent ͕” toggle.|Ρ|Money & dž|ǂ Ʃ|Simplify ƭ Ư|Dismiss guide|Re͠ ͙d Ɔ ({͊})|ɗ ͈s ƭ ɢ ǥ ϩs ƭ row until ̐d. ʼ ʜ ˏ kept; ϡmatic Ɯ ˆ ά.|̰ chips|Box ǖ|Unmount|UnƜd|ȫ|You edited ɤ Ɯ manu̙y; ̚ є ϫ Ѡwrite it.|Resume ̚|Per-Ƙ statistics (Ɩ & ǜ)|ǂ Ƙ ǜs|{n} Ɔ|Oƭr|ʑ Ƙ ǜ ͇|Expǥ by ȣ|Remember expansion|ʑ Ɩ|ʑ ǜ shˏs|ћ Ƙ in Ȯ ΰ|ʋ Ʈ|Collapsed ̑|Card Ʀ|ɺ rows (1–10)|Ƣ ǝ (10–60 seconds)|Ϙ Ȇ ǥ Ƙ ͊|ћ Ƙ ǥ ǜ|ћ|After Ɓs|Bottom|Ǜ|т 90 щs|Ǵ ̏|ƥ ƴ|ǵ hit ʛ|unreϮed?|Zero DŽ hѧ on long Dž may mean a relay ͙d DŽ ͎. Γ-miss ǜ Ȥ; check ͤ ƭ direct ȩ.|Value · Ɩ ѡ ф|ɕ|ǵ|Ȭ|No ƴ Ɇ ɟ Ʈ.|blended {Ɯ}/M|л ʛ = DŽ ͗ ÷ (͗ + unDŽd Ƴ). “ɘ?” means DŽ Ɇ may be ε, so ǜ Ȥ. х Ɯ = ǜ ÷ Ɩ × 1M; ώ = Ɩ ÷ ǜ.|Unattributed (early Ɇ · ˛ as ͘)|ʹ Ƃ {Ƌ} (ȩ) · ƅ equiv. {ǍAmount} · л {ʘ} · ɕ {Ƴ} · ǵ {DŽ} · Ȭ {Ƹ}|ʹ Ƃ {Ƌ} (ȩ) · ƅ equiv. {ǍAmount}|ƥ ƅ ƴ stats (ѡ-1% & ˃ ʀ)|No ǡ ƅ ƈ Ɇ і. ǣ ǥ ƙ a ˉ under ƛs.|ȉ|˙ %|ʹ Ʈ ̈́ (ɂ Ǻ)|Per 1% ƈ ≈|Full ˥ (100%) ≈|͛s {ƕ}|͜ delta|ǿ ƴ ratio|ϫ ɝ|{ʙ} (as of {ƕ})|Ѩ κ ̛|ƅ ƴ curves (˚ ˂ ͜ ǝs)|̱|Ȉ|Ǖ|ϕ ɝ: ƙ successϦy twice ͤ a ƈ ˢ ϣ.|{ʗ}: ˃ est. ≈ {Ϧ} (ѡ 1% ≈ {ѡ1}) · ̈́ {Ɩ} / {ǜ} · {ǝs} ͜ ǝ(s)|Ε ˏ έ-Ɯ ˜s. ƅs ͣ ƈ; Ʒs ͊ ȩ ɠ. Estimates cѠ dsh Dž, while server ˢs cѠ ƭ Ǥ. Ȣ ͜s ˏ less precise. 5h rolls; week/dz ͣ ɂ ʗs.|Θ class|ƅ ʞ|̒|ȩ ƴ|Sepaʛ ˠs|Try 2 × 0.8|Changing ƭ ˠ ά to ̙ ȅ ɟ Ƙ|Change ɤ ʛ ɠ; uncheck ˤ ƭ shˏd ˠ|Enter a non-negative ʛ or multiplication, e.g. 2 × 0.8|ː ɑ Ƙ ζs|̒ (strip suffix / prefix / family similarity)|Exact match ɠ|Manual assignments ǥ ˉ Ɯs ɷ. ː recognizes ˜ ζs ǥ ʗ tags.|Ƥ ȣ Ɯ|ɗ|Unmatched ǥ manu̙y ɛ Ɔ|Set ѝ ί ǥ Ƙ sepaʛly: ϱ a έ ϊ, ͣ a Ɗ Ɯ, or mark as ɂ. ȫ Ɯs ɽ ɠ to ё ί.|Ǵ|ʼ|ɕ|ǵ ю|ǵ write|Leave ͅ ͣ ƭ DŽ-ю Ɯ|Ȭ|̔ / ̺|˗|ʸ|CommǥCode|˒|SCNet ƥ ƅ|ʔ Ark ǡ ƅ|̼ ƥ ƅ (ʂ.Ѧ)|Xiaomi MiMo ƥ ƅ|Baidu Qianfan ƥ ƅ|˙ / Ȇ|ȭ|Reads ȭ Ǧ Ȅ.|̂ (Droid)|ȇ|ȇ Ȧ|Press ƭ button beѨ to get ƭ Ƈ Ȅ (approve once in ƭ Ǿ), or paste a ɣ copied ˂ ̳. Leave ƭ Ȧ ͅ ю ƭ ǿ one; Ν ˎs need an explicit Ȧ ǥ inference ȩ ϋs do ϫ ѕ.|Get ƈ Ƈ|ƛ pool|Stǥard + Core|Organization ID (Ǟ)|ƅ Ǧ|ʈ|ƀ|ƛ ƹ|ʵ ͍|Ƞ о|̀ о|Inst̙ @ʂ/ˊ on ƭ ˍ ˅ ǥ run ι ȋ as ƭ ʝ.|Inst̙ ʿ on ƭ ˍ ˅. ρ opens ё ˅’s Ǿ; β a remote or headless ˅, run bl ȋ --ʖ as ƭ ʝ.|Ǖ Ǧ ƈ (ѡsonal Lite 50K / Stǥard 500K; see ϳ Ǎ ˡ)|ƅ ͟ ʗ (Ǟ, Ȋ; Ɂ = ͆ dz)|ǁ ʛ ɢs (Ǟ; Ǧ deducted ѡ 1M Ɩ; Ɂ = ɚ)|ɺ ζ, e.g. Ɉ3.8-ˇ|Enter ̙ three positive ȅ to Ѣ Ȅ; ͈ ̙ ˤ ƭ ɚ.|̭|ʵ ǁ ͍; ʖ is authoritative. Counts ƅ Dž assigned to ̼. Excludes pay-as-you-go ȩ. ̭ ȅ β oƭr Ɔ.|Ǖ Ǧ ƈ β ɂ ʀ (Basic 60,000 / Stǥard 240,000 / ї 600,000)|ƅ ͟ ʗ (Ǟ, Ȋ; Ɂ = ͆ dz)|ѥs ʖ ͝s ўer than 24h, ƭn ʀ ˂ ɂ ʜ ǥ Ơ ǁ ȅ. Oƭr tools ǥ unlisted Ɔ ˏ excluded.|ə Ȫ ID|ə ϜȪ|AK...|SK...|{h}h|{h}h {m}m|{m}m|Δ-Ɛ in {ƕ}|ƶ in {ƕ}|ƶ ̌ ({Ѥ}): {˥s}; ɿ: {ƕ}. {ˣ}|No Ɛ ˥s ɛ. {ˣ}|ɑ|Ǜ|ʹ dz|Γ ƕ|Since ƭ Ǻ was created · C̙s {Dž}|̵ ƴ|ˍ + ɞ Ȇ|̵ ͝ has ϫ been upʗd β 24 ̌|̽ daily ʜ|Ε ͣ ƭ latest ͝ ǥ may lag ƭ Ơ bill by Ȁ. ƥs ̍ Ƴ, Ƹ, DŽ ǥ ̜; ̜ is ˛ ͤ Ƹ. Reconcile by Ƌ.|Ǜ/dz ͣ ˅ ƕѤ {˅}; ɤ Ǿ ͣs {Ǿ}. Different щ boundaries affect reconciliation. Set dsh to ϳ ɂ ƕѤ to align.|Ǜ's Ƃs|ʲ a ʗ row to expǥ ѧ Ƃ ǖ|ʍ Ƃ ǖ…|No Ƃ ǖ ɟ щ (early Ɇ or Ƃ Ϫ cleaned)|Ƶ to load Ƃ ǖ|By Ƃ (̙ Ɲ)|Days ͉; ̝ ͐ ˋ. ̀ rows ѣn; cumulative ǜs ̍ every conversation.|No Ƃ Ɇ і|ʍ Ƃ ̏…|Ƶ to load Ƃ ̏|Rows|Τ Ǎ Ȇs|ч on, every Ƌ ѣs Ȇ ˜ ǜ ʁ Ǎ ɶ; ь (ȣ) ͊s real-money ȩ ίs ɠ|р header ǜ ǖ|р ˀ ǜ ǖ|р turn ǜ summaries|̖|Ǵ high→Ѩ|Ǵ Ѩ→high|Ϟ ў→џ|Ϟ џ→ў|̽ order|Ǽ|ƥ ƴ stats|Γ-ƕ {Ɩ} Ɩ · Ƴ {Ƴ} · DŽ {DŽ} · Ƹ {Ƹ} · {Dž} Dž|{ʗ}: {Ɩ} Ɩ (Ƴ {Ƴ} · DŽ {DŽ} · Ƹ {Ƹ}) · {Dž} Dž · {ǜ}|No Ɲ і — daily ƴ є accumulate ϧ|̻|ƛs|ʼ|Ψ|ǔ|Ǽ Ɇ|ȡ ǜ Ʃ Ʀ|BeѨ ƭ ˀ|ȡ title ш|Δ|ǹ Ʒ ȯ %|ǹ ƭ Go ƈ|ǹ Ƒ Ǎ ƈs|Page γ ƕd out. Please retry.|ƀ Ϩ|ʲ ƭ ζ to ϩ/ѣ; ̉ ƭ Ƌ to ƙ|ʲ to ƙ now|ʲ a Ư Ɓ or Ǎ м to ƙ. It pulses while γ; on failure it keeps ƭ џ ώ ǥ ѣs ƭ ϯ on hѠ.|Got it|Ǜ ǜ Ʃ|ǂ footer|ȝ|Exϣ ʛ (1 ф = ? target dž)|Decimal places|ƀ Ʃ Ʀ|Main Ư|Ǒ ˡ|Ι|ƀ ƙ ǝ (Ȁ)|ѥ Ƥ Ɛ-hour Ɯs|їѩent ͕ during Ɛ ̌ (Ư Ʒ м, Ʉ's ǜ; previewed in ƭ Ǒ Ɛ panel)|Mounted Ɯ ͢s|Ƞ Ɯ dž|ф (Ξ Ơ ˡ)|п (Ɍ Ơ ˡ)|Selects ƭ Ơ ǎ-ˡ ͒. ͂ed Ɯs ɽ to subsequent Dž.|ї ǥ ʴ ͣ sepaʛ Ơ ȅ; ˟ ʴ ζs ͣ ʴ ȅ. Weekщ Ɛs ˏ 01–04 ǥ 06–10 UTC; ơ ь-Ɛ. Rate ή ɽ to later Dž. Recorded Ƌs ϰ until you Ɏ ˝ recalculation. ǵ writes ͣ hit ȅ.|Current ȅ ˏ ѣn ϧ. љing Ϣs any future scheduled ϣ ɟ ϊ; α ˝ ȅ ˏ retained.|ʋ Ɯ|New Ƙ ID (e.g. ɇ)|̭ Ƙ|Data & ̞|̾…|̒-Ѣ ǧ: {ƨ}|̒-я {ƕ}|Ǒ ˏ ϡ-я|Overwrite ƭ Ɯ ͢ ͤ Ɯs ˂ ƭ Ơ ъ?|Apply|Cancel|͂ Ɯs ˂ Ơ ъ|Ƞ ̞ upʗs Ƥ Ɯs (ʁ Ɛ ȅ). Third-party Ɯs (z-ai/Υ/̼/ʔ) ͐ releases; expǥ a vendor ˄ in ƭ Ɯ ͢ or ͣ Ƙ ˆ.|ʱ ̙ Ɲ?|˓ ˈ Ɲ|Μ ͑? Replays ̙ Ƃ Ϫ ǥ ɠ fills ʗs/Ƃs ε ˂ ƭ Ǻ; existing ʜ ˏ untouched.|Ƶ to ͑ ˈ Ɲ: {ƨ}|Pre-inst̙ Ɲ ͑s at ͏ launch; rerun after copying џ Ϫ. Ǵs ͣ ǿ Ɯs. Deleted Ϫ canϫ replay; Ƃs spanning inst̙ation exclude α ƴ.|Μ ͈|ʱ ̙ Ɲ|т ̞: {ƕ}|Never (bundled Ɯs)|; Ɠ: {ƹ}|Ƞ ъ|Κ|Language|FolѨ ˍ (ϡ)|{ʙ} c̙ ǧ|͂ c̙ ǧ|ƀ ƙ c̙ ǧ`]].map(([e,t])=>{const n=Qa(t).split("|");return[e,Object.fromEntries(us.map((a,o)=>[a,n[o]]).filter(([,a])=>a!=="\0"))]}));function Ha(){return(typeof navigator<"u"&&typeof navigator.language=="string"?navigator.language:"").toLowerCase().startsWith("zh")?"zh":"en"}function nt(e){const t=typeof e=="string"?e.toLowerCase().split(/[-_]/)[0]:"";return t==="zh"||t==="en"?t:null}function j(e){const t=typeof e=="string"?e:e?.locale;return t==="zh"||t==="en"?t:nt(e?.activeLocale)||Ha()}function V(e){const t=e==="zh"?_e.zh:_e.en;return(n,a)=>{let o=t[n]??_e.en[n]??n;if(a)for(const l of Object.keys(a))o=o.split("{"+l+"}").join(String(a[l]));return o}}const st={day:"periodDay",month:"periodMonth",all:"periodAll",custom:"periodCustomRange"};function te(e,t){throw new Error("dsh-cost-meter: 服务端数据非法 ("+e+": "+t+")")}function me(e,t){return(e===null||typeof e!="object"||Array.isArray(e))&&te(t,"object"),e}function Y(e,t){return(typeof e!="number"||!Number.isFinite(e))&&te(t,"number"),e}function X(e,t){return typeof e!="string"&&te(t,"string"),e}const Qe=(e,t,n)=>typeof e=="string"&&t.includes(e)?e:n;function Ua(e,t=!1){return e===null||typeof e!="object"||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(([n,a])=>t?n.length>0&&["plan","api"].includes(a):["auto","plan","api"].includes(a)))}function Ce(e,t){return typeof e!="boolean"&&te(t,"boolean"),e}const We=(e,t,n)=>Object.fromEntries(t.map(a=>[a,n(e[a])]));function qa(e,t){const n={};if(e!==null&&typeof e=="object"&&!Array.isArray(e))for(const a of Object.keys(e)){const o=e[a];if(o===null||typeof o!="object"||Array.isArray(o))continue;const l=r=>typeof r=="number"&&Number.isFinite(r)&&r>=0?r:0;n[a]={...Kt(o),...We(o,["input","output","cacheRead","cacheWrite","reasoning","cost"],l),apiCost:o.apiCost===void 0?l(o.cost):l(o.apiCost)}}return n}const St=["costCny","apiCostCny","costEur","apiCostEur"],Kt=e=>Object.fromEntries(St.filter(t=>Number.isFinite(e?.[t])).map(t=>[t,e[t]]));function Wa(e,t){me(e,t);const n={...Kt(e),reasoning:e.reasoning===void 0?0:Y(e.reasoning,t+".reasoning"),apiCost:e.apiCost===void 0?void 0:Y(e.apiCost,t+".apiCost"),byModel:qa(e.byModel,t+".byModel"),byProviderModel:qa(e.byProviderModel,t+".byProviderModel")};for(const a of["input","output","cacheRead","cacheWrite","calls","cost"])n[a]=Y(e[a],t+"."+a);return n}function ds(e){return e==null?void 0:{source:X(e.source,"source"),requestId:X(e.requestId,"requestId"),attempt:Y(e.attempt,"attempt"),complete:Ce(e.complete,"complete"),status:X(e.status,"status"),upstream:X(e.upstream,"upstream")}}function $a(e){return(Array.isArray(e)?e:te("rows","array")).map(t=>({provider:X(t.provider,"provider"),model:X(t.model,"model"),bucket:X(t.bucket,"bucket"),tokens:Y(t.tokens,"tokens"),...t.requests===void 0?{}:{requests:Y(t.requests,"requests")},rate:Y(t.rate,"rate"),cost:Y(t.cost,"cost"),priced:Ce(t.priced,"priced"),plan:Ce(t.plan,"plan")}))}function zt(e,t){return{...Wa(e,t),id:X(e.id,t+".id"),provider:typeof e.provider=="string"?e.provider:"",model:typeof e.model=="string"?e.model:""}}function ve(e,t){const n={...Wa(e,t),date:X(e.date,t+".date"),sessions:[]};return e.sessions!==void 0&&(Array.isArray(e.sessions)||te(t+".sessions","array"),n.sessions=e.sessions.map((a,o)=>zt(a,t+".sessions["+o+"]"))),n}function Gt(e,t,n=["cacheWrite","reasoning"]){const a={};for(const o of["cacheHit","cacheMiss","output"])a[o]=Y(e[o],t+"."+o);for(const o of n)e[o]!==void 0&&(a[o]=Y(e[o],t+"."+o));return a}function Vt(e,t){me(e,t);const n={...Gt(e,t),...vt(e)};for(const a of["offPeak","peak","legacyBase","longContext"])e[a]!==void 0&&(n[a]=Gt(e[a],t+"."+a,["cacheWrite","reasoning","aboveInputTokens"]));e.cny!==void 0&&(n.cny=Gt(e.cny,t+".cny")),e.legacy!==void 0&&(n.legacy=Ce(e.legacy,t+".legacy")),e.rateHistory!==void 0&&((!Array.isArray(e.rateHistory)||e.rateHistory.length>16)&&te(t+".rateHistory","price history"),n.rateHistory=e.rateHistory.map((a,o)=>((!a||typeof a.before!="string"||!Number.isFinite(Date.parse(a.before)))&&te(t+".rateHistory","dated price"),{...Vt({...a,rateHistory:void 0},t+".rateHistory."+o),before:a.before}))),Object.assign(n,Ct(e));for(const a of["billingMode","sourceUrl","checkedAt","notes"])typeof e[a]=="string"&&(n[a]=e[a]);return n}function ms(e,t){const n=o=>o==null?void 0:{...["aliyun","tokenrhythm"].includes(o.adapter)?{adapter:o.adapter}:{},enabled:o.enabled===!0,label:typeof o.label=="string"?o.label:"",labelEn:typeof o.labelEn=="string"?o.labelEn:"",dashboardUrl:typeof o.dashboardUrl=="string"?o.dashboardUrl:"",display:Qe(o.display,["sidebar","settings","off"],"both"),unit:o.adapter==="tokenrhythm"?"CNY":["CNY","EUR","CREDITS"].includes(o.unit)?o.unit:"USD",convertToDisplayCurrency:o.convertToDisplayCurrency===!0,allowInsecureHttp:o.allowInsecureHttp===!0,refreshMinutes:typeof o.refreshMinutes=="number"&&Number.isFinite(o.refreshMinutes)?o.refreshMinutes:15,request:o.request&&typeof o.request=="object"?o.request:{url:""},extract:o.extract&&typeof o.extract=="object"?o.extract:{},allowedHosts:Array.isArray(o?.allowedHosts)?o.allowedHosts.filter(l=>typeof l=="string"):[]};me(e,t);const a={};if(e.prices!==null&&typeof e.prices=="object"&&e.prices.models!==null&&typeof e.prices.models=="object")for(const o of Object.keys(e.prices.models))a[o]=Vt(e.prices.models[o],t+".prices.models."+o);return{queryAccounts:e.queryAccounts&&typeof e.queryAccounts=="object"?e.queryAccounts:{},locale:e.locale==="zh"||e.locale==="en"||e.locale==="auto"?e.locale:"auto",position:e.position==="header"||e.position==="off"?e.position:"dock",sidebar:e.sidebar!==!1,showSessionId:e.showSessionId===!0,hideOfficialBalance:e.hideOfficialBalance===!0,hideTodayCost:e.hideTodayCost===!0,sessionListCostPeriod:e.sessionListCostPeriod==="today"?"today":"total",modelStatistics:e.modelStatistics??{},...We(e,["hideSessionCostHeader","hideSessionCostDock","hideTurnCost","followSkinTransparency","sidebarTodayBalanceInline","sessionListCosts","hideBudget","sessionCostCompact","contextCostsEnabled","contextCostsPromptSeen","showTotalWithPlan","sidebarSimple","codexQuotaEnabled","codexCompatPromptDismissed","includeSubagentCost","peakEnabled","peakAlertWebNotify"],o=>o===!0),sidebarTodayMetric:["tokens","both"].includes(e.sidebarTodayMetric)?e.sidebarTodayMetric:"cost",sidebarTextOnly:e.sidebarTextOnly===!0,localSavings:e.localSavings,...Object.hasOwn(e,"sidebarOrder")?{sidebarOrder:Array.isArray(e.sidebarOrder)?e.sidebarOrder:[]}:{},statisticsBasis:e.statisticsBasis,sidebarModels:Object.fromEntries(Object.entries(qn).map(([o,l])=>[o,e.sidebarModels?.[o]??l])),codexQuotaSidebar:e.codexQuotaSidebar!==!1,codexQuotaStrip:e.codexQuotaStrip!==!1,codexQuotaSource:["connect","subscription","chatgpt","pi-ai","chatgpt-sub"].includes(e.codexQuotaSource)?e.codexQuotaSource:"auto",codexCompatHistoryAppliedAt:fe(e.codexCompatHistoryAppliedAt),sidebarStyle:Qe(e.sidebarStyle,["standard","compact","summary","icons"],"standard"),planQuotaStyle:e.planQuotaStyle==="gauge"?"gauge":"bars",...We(e,["sidebarSimplePromptSeen","sidebarSummaryPromptSeen","peakProgressPromptSeen"].filter(o=>Object.hasOwn(e,o)),o=>o===!0),billionContextNoticeEnabled:e.billionContextNoticeEnabled!==!1,billionContextNoticesSeen:Array.isArray(e.billionContextNoticesSeen)?e.billionContextNoticesSeen.filter(o=>typeof o=="string").slice(-32):[],priceMatchDismissed:Array.isArray(e.priceMatchDismissed)?e.priceMatchDismissed.filter(o=>typeof o=="string"):[],pricingCurrency:e.pricingCurrency==="CNY"?"CNY":"USD",currency:typeof e.currency=="string"?e.currency:"CNY",symbol:typeof e.symbol=="string"?e.symbol:"¥",decimals:Y(e.decimals,t+".decimals"),exchangeRate:Y(e.exchangeRate,t+".exchangeRate"),exchangeRateAuto:e.exchangeRateAuto!==!1,fxRates:e.fxRates,exchangeRateDate:e.exchangeRateDate??"",exchangeRateCheckedAt:e.exchangeRateCheckedAt??0,peakEffectiveAt:typeof e.peakEffectiveAt=="string"?e.peakEffectiveAt:"",peakWindows:Array.isArray(e.peakWindows)?e.peakWindows.map((o,l)=>({start:Y(o.start,t+".peakWindows["+l+"].start"),end:Y(o.end,t+".peakWindows["+l+"].end")})):[],peakHolidays:Array.isArray(e.peakHolidays)?e.peakHolidays.filter(o=>typeof o=="string"):[],peakNotice:e.peakNotice!==!1,peakAlertEnabled:e.peakAlertEnabled!==!1,peakAlertAhead:Number.isFinite(e.peakAlertAhead)&&e.peakAlertAhead>=1&&e.peakAlertAhead<=30?e.peakAlertAhead:2,peakAlertTarget:e.peakAlertTarget==="peak"||e.peakAlertTarget==="offpeak"?e.peakAlertTarget:"both",peakAlertPosition:e.peakAlertPosition==="center"?"center":"corner",peakStyle:["classic","progress"].includes(e.peakStyle)?e.peakStyle:"compact",peakTimeZone:typeof e.peakTimeZone=="string"?e.peakTimeZone:"auto",peakTimeDisplay:["countdown","switch"].includes(e.peakTimeDisplay)?e.peakTimeDisplay:"both",priceMatch:e.priceMatch==="exact"?"exact":"auto",priceOverrides:(()=>{const o={};if(e.priceOverrides!==null&&typeof e.priceOverrides=="object"&&!Array.isArray(e.priceOverrides))for(const[l,r]of Object.entries(e.priceOverrides))typeof l=="string"&&typeof r=="string"&&(o[l]=r);return o})(),priceTableDisplay:(()=>{const o={};if(e.priceTableDisplay!==null&&typeof e.priceTableDisplay=="object"&&!Array.isArray(e.priceTableDisplay))for(const[l,r]of Object.entries(e.priceTableDisplay))typeof l=="string"&&(o[l]=r===!0);return o})(),codingPlans:(()=>{const o={};if(e.codingPlans!==null&&typeof e.codingPlans=="object"&&!Array.isArray(e.codingPlans))for(const l of Object.keys(e.codingPlans)){const r=e.codingPlans[l];r===null||typeof r!="object"||Array.isArray(r)||(o[l]={enabled:r.enabled===!0,display:r.display==="sidebar"||r.display==="both"||r.display==="off"?r.display:"settings",...typeof r.showInComposer=="boolean"?{showInComposer:r.showInComposer}:{},refreshMinutes:typeof r.refreshMinutes=="number"&&Number.isFinite(r.refreshMinutes)?r.refreshMinutes:15,apiKey:typeof r.apiKey=="string"?r.apiKey:"",...l==="minimax"?{baseUrl:typeof r.baseUrl=="string"?r.baseUrl:""}:{},...l==="factory"?{orgId:typeof r.orgId=="string"?r.orgId:"",factoryPool:["core","both"].includes(r.factoryPool)?r.factoryPool:"standard"}:{},...l==="workbuddy"?{accountScope:r.accountScope??"current",accountIds:Array.isArray(r.accountIds)?r.accountIds:[],...typeof r.accountSource=="string"?{accountSource:r.accountSource}:{}}:{},...l==="opendesign"?{workspaceId:typeof r.workspaceId=="string"?r.workspaceId:""}:{},...l==="qwen"?{quotaSource:["cli","bailian"].includes(r.quotaSource)?r.quotaSource:"local"}:{},...typeof r.planCredits=="number"&&Number.isFinite(r.planCredits)&&r.planCredits>0?{planCredits:r.planCredits}:{},...typeof r.planStart=="string"?{planStart:r.planStart}:{},...r.rates!==null&&typeof r.rates=="object"&&!Array.isArray(r.rates)?{rates:r.rates}:{},...typeof r.accessKeyId=="string"?{accessKeyId:r.accessKeyId}:{},...typeof r.secretAccessKey=="string"?{secretAccessKey:r.secretAccessKey}:{}})}return o})(),prices:{models:a,...e.prices?.custom?{custom:e.prices.custom}:{},default:Vt(e.prices?.default??{cacheHit:0,cacheMiss:0,output:0},t+".prices.default"),providers:e.prices?.providers&&typeof e.prices.providers=="object"?e.prices.providers:{},currency:typeof e.prices?.currency=="string"&&e.prices.currency.length>0?e.prices.currency:void 0},historyDays:Y(e.historyDays,t+".historyDays"),billingStorageRetentionDays:[0,7,30].includes(e.billingStorageRetentionDays)?e.billingStorageRetentionDays:7,fetchedAt:e.fetchedAt===null||e.fetchedAt===void 0?null:X(e.fetchedAt,t+".fetchedAt"),priceSource:typeof e.priceSource=="string"?e.priceSource:"bundled",budget:{enabled:e.budget?.enabled===!0,amount:typeof e.budget?.amount=="number"&&Number.isFinite(e.budget.amount)?e.budget.amount:100,period:e.budget?.period==="day"||e.budget?.period==="all"||e.budget?.period==="custom"?e.budget.period:"month",customStart:typeof e.budget?.customStart=="string"?e.budget.customStart:null,customEnd:typeof e.budget?.customEnd=="string"?e.budget.customEnd:null,detail:e.budget?.detail!==!1},balance:{source:e.balance?.source==="account"?"account":"auto",display:Qe(e.balance?.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof e.balance?.refreshMinutes=="number"&&Number.isFinite(e.balance.refreshMinutes)?e.balance.refreshMinutes:5,showProgressBar:e.balance?.showProgressBar===!0,showSource:e.balance?.showSource===!0,officialChannelOnly:e.balance?.officialChannelOnly===!0,quickHide:e.balance?.quickHide===!0,budgetCap:typeof e.balance?.budgetCap=="number"&&Number.isFinite(e.balance.budgetCap)&&e.balance.budgetCap>0?e.balance.budgetCap:null,currency:e.balance?.currency??"native",...Object.hasOwn(e.balance??{},"clickHintSeen")?{clickHintSeen:e.balance?.clickHintSeen===!0}:{}},goQuota:{enabled:e.goQuota?.enabled!==!1,...typeof e.goQuota?.showInComposer=="boolean"?{showInComposer:e.goQuota.showInComposer}:{},display:Qe(e.goQuota?.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof e.goQuota?.refreshMinutes=="number"&&Number.isFinite(e.goQuota.refreshMinutes)?e.goQuota.refreshMinutes:15,apiKey:typeof e.goQuota?.apiKey=="string"?e.goQuota.apiKey:"",main:e.goQuota?.main==="weekly"||e.goQuota?.main==="monthly"?e.goQuota.main:"rolling",detail:e.goQuota?.detail!==!1},customBalance:n(e.customBalance),gatewayQuotas:(()=>{const o=Array.isArray(e.gatewayQuotas)?e.gatewayQuotas:e.gatewayQuotas?.sources;return{sources:Array.isArray(o)?o.slice(0,4).filter(r=>r!==null&&typeof r=="object"&&!Array.isArray(r)).map(r=>({id:typeof r.id=="string"?r.id.slice(0,48):"",type:"cliproxyapi",label:typeof r.label=="string"?r.label.slice(0,80):"",baseURL:typeof r.baseURL=="string"?r.baseURL:"",enabled:r.enabled!==!1,display:Qe(r.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof r.refreshMinutes=="number"&&Number.isFinite(r.refreshMinutes)?Math.min(1440,Math.max(1,Math.floor(r.refreshMinutes))):15,includeProviders:Array.isArray(r.includeProviders)?[...new Set(r.includeProviders.filter(i=>typeof i=="string").map(i=>i.toLowerCase()).filter(i=>Jt.includes(i)))]:Jt,allowedHosts:Array.isArray(r.allowedHosts)?r.allowedHosts.filter(i=>typeof i=="string").slice(0,16):[],allowInsecureHttp:r.allowInsecureHttp===!0,antigravityOnlyGemini:r.antigravityOnlyGemini===!0,keyVar:typeof r.keyVar=="string"?r.keyVar:""})):[]}})(),customBalances:(()=>{if(Array.isArray(e.customBalances))return e.customBalances.filter(l=>l!==null&&typeof l=="object").slice(0,8).map(n).filter(Boolean);const o=n(e.customBalance);return o?[o]:[]})(),corner:{enabled:e.corner?.enabled===!0,goRolling:e.corner?.goRolling!==!1,goWeekly:e.corner?.goWeekly!==!1,goMonthly:e.corner?.goMonthly!==!1,budget:e.corner?.budget!==!1},quotaStrip:{enabled:e.quotaStrip?.enabled===!0,budget:e.quotaStrip?.budget!==!1,go:e.quotaStrip?.go!==!1,plans:e.quotaStrip?.plans!==!1,planAmounts:e.quotaStrip?.planAmounts!==!1,...Object.hasOwn(e.quotaStrip??{},"promptSeen")?{promptSeen:e.quotaStrip?.promptSeen===!0}:{}},usage:{position:e.usage?.position==="general"||e.usage?.position==="section"?e.usage.position:"cost"},barDirections:(()=>{const o=e.barDirections!==null&&typeof e.barDirections=="object"&&!Array.isArray(e.barDirections)?e.barDirections:{},l=(r,i)=>o[r]==="remaining"||o[r]==="used"?o[r]:i;return{balance:l("balance","remaining"),budget:l("budget","used"),go:l("go","used"),plan:l("plan","used")}})(),planBilling:{...Array.isArray(e.planBilling?.autoProviders)?{autoProviders:e.planBilling.autoProviders.filter(o=>Be.includes(o))}:{},providers:Ua(e.planBilling?.providers),models:Ua(e.planBilling?.models,!0),modelPlans:Object.fromEntries(Object.entries(e.planBilling?.modelPlans??{}).filter(([o,l])=>o.includes(":")&&Be.includes(l)))}}}const ot=e=>typeof e=="number"&&Number.isFinite(e)?e:null,fe=e=>ot(e)??0,ps={status:"off",message:"",fetchedAt:0,currency:"",totalBalance:0,grantedBalance:0,toppedUpBalance:0},fs={status:"off",message:"",fetchedAt:0,rolling:null,weekly:null,monthly:null},Ka=(e=null)=>({status:"off",message:"",fetchedAt:0,label:"",unit:"USD",remaining:0,maxBudget:null,spend:null,index:e});function Yt(e,t){return me(e,t),{status:e.status==="ok"||e.status==="error"?e.status:"off",message:typeof e.message=="string"?e.message:"",fetchedAt:typeof e.fetchedAt=="number"?e.fetchedAt:0}}function za(e,t){return{...Yt(e,t),keyConfigured:e.keyConfigured===!0,keySource:typeof e.keySource=="string"?e.keySource:"",currency:typeof e.currency=="string"?e.currency:"",totalBalance:fe(e.totalBalance),grantedBalance:fe(e.grantedBalance),toppedUpBalance:fe(e.toppedUpBalance)}}function Zt(e,t){return e==null?null:((typeof e!="object"||Array.isArray(e))&&te(t,"object"),{percent:fe(e.percent),resetsAt:typeof e.resetsAt=="string"?e.resetsAt:""})}function bs(e,t){return{...Yt(e,t),rolling:Zt(e.rolling,t+".rolling"),weekly:Zt(e.weekly,t+".weekly"),monthly:Zt(e.monthly,t+".monthly")}}function Ga(e,t){return{...Yt(e,t),label:typeof e.label=="string"?e.label:"",unit:typeof e.unit=="string"?e.unit:"USD",remaining:fe(e.remaining),maxBudget:ot(e.maxBudget),spend:ot(e.spend),index:typeof e.index=="number"&&Number.isFinite(e.index)&&e.index>=0?Math.floor(e.index):null}}const gs=new Set(["ok","partial","unknown","error","stale","unsupported","capability_missing"]),ys=new Set(["off","loading","ok","partial","stale","error"]),Jt=["antigravity","claude","codex","kimi","xai","workbuddy"],Va={antigravity:"Antigravity",claude:"Claude",codex:"Codex",kimi:"Kimi",xai:"xAI",workbuddy:"WorkBuddy"};function hs(e,t){me(e,t);const n=(r,i="")=>typeof r=="string"?r:i,a=r=>ot(r),o=r=>r!==null&&typeof r=="object"&&!Array.isArray(r)?{id:n(r.id),label:n(r.label),...a(r.percent)===null?{}:{percent:a(r.percent)},resetsAt:n(r.resetsAt),periodHours:a(r.periodHours),scope:n(r.scope)}:null,l=r=>r!==null&&typeof r=="object"&&!Array.isArray(r)?{unit:n(r.unit,"credits"),used:a(r.used),remaining:a(r.remaining),limit:a(r.limit),fetchedAt:n(r.fetchedAt),packages:Array.isArray(r.packages)?r.packages.filter(i=>i!==null&&typeof i=="object"&&!Array.isArray(i)).map(i=>({id:n(i.id),label:n(i.label),used:a(i.used),remaining:a(i.remaining),limit:a(i.limit),startsAt:n(i.startsAt),resetsAt:n(i.resetsAt)})):[]}:void 0;return{id:n(e.id),type:"cliproxyapi",label:n(e.label),status:ys.has(e.status)?e.status:"error",message:n(e.message),fetchedAt:a(e.fetchedAt)??0,attemptedAt:a(e.attemptedAt)??0,serverVersion:n(e.serverVersion),keyConfigured:e.keyConfigured===!0,keySource:n(e.keySource,"none"),accounts:Array.isArray(e.accounts)?e.accounts.filter(r=>r!==null&&typeof r=="object"&&!Array.isArray(r)).slice(0,16).map(r=>({id:n(r.id),provider:n(r.provider,"unknown"),label:n(r.label,"unknown"),status:gs.has(r.status)?r.status:"unknown",message:n(r.message),plan:n(r.plan),windows:Array.isArray(r.windows)?r.windows.map(o).filter(Boolean):[],credits:l(r.credits)})):[],unsupportedProviders:Array.isArray(e.unsupportedProviders)?e.unsupportedProviders.filter(r=>typeof r=="string").slice(0,32):[]}}function ks(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;const t={};if(e.providers!==null&&typeof e.providers=="object"&&!Array.isArray(e.providers))for(const[n,a]of Object.entries(e.providers)){if(a===null||typeof a!="object"||Array.isArray(a))continue;const o={},l={};if(a.windows!==null&&typeof a.windows=="object"&&!Array.isArray(a.windows))for(const[r,i]of Object.entries(a.windows))i===null||typeof i!="object"||Array.isArray(i)||(o[r]={...We(i,["percent","localTokens","localCost","sampleCount"],fe),...We(i,["sampleAt","per1Tokens","per1Cost","fullTokens","fullCost"],ot),resetsAt:typeof i.resetsAt=="string"?i.resetsAt:"",method:i.method==="sample"||i.method==="live"?i.method:"none",confidence:i.confidence==="high"||i.confidence==="low"?i.confidence:null});if(a.intervals!==null&&typeof a.intervals=="object"&&!Array.isArray(a.intervals))for(const[r,i]of Object.entries(a.intervals))Array.isArray(i)&&(l[r]=i.filter(c=>c!==null&&typeof c=="object"&&!Array.isArray(c)).map(c=>We(c,["t0","t1","tokens","cost","pct","per1Tokens","per1Cost"],fe)));t[n]={windows:o,intervals:l}}return{generatedAt:fe(e.generatedAt),providers:t}}function xs(e){if(!e||typeof e!="object"||Array.isArray(e))return;const t=e.usage&&typeof e.usage=="object"?e.usage:{};return{installed:e.installed===!0,enabled:e.enabled===!0,version:typeof e.version=="string"?e.version:"",detection:Qe(e.detection,["package","profile","none"],"none"),planClass:Qe(e.planClass,["auto","plan","api"],"auto"),usage:{calls:fe(t.calls),cost:fe(t.cost),tokens:fe(t.tokens),days:fe(t.days),providers:(Array.isArray(t.providers)?t.providers:[]).filter(n=>typeof n=="string")},historyAppliedAt:fe(e.historyAppliedAt),promptDismissed:e.promptDismissed===!0,promptDue:e.promptDue===!0}}function Ya(e,t){return me(e,t),{today:ve(e.today,t+".today"),month:ve(e.month,t+".month"),total:ve(e.total,t+".total"),budgetUsed:typeof e.budgetUsed=="number"&&Number.isFinite(e.budgetUsed)?e.budgetUsed:void 0,localSavings:e.localSavings,balance:e.balance==null?ps:za(e.balance,t+".balance"),balanceAccounts:Array.isArray(e.balanceAccounts)?e.balanceAccounts.slice(0,11).map(n=>({...za(n,t+".balanceAccounts"),id:X(n.id,t),label:X(n.label,t)})):[],goQuota:e.goQuota==null?fs:bs(e.goQuota,t+".goQuota"),customBalance:e.customBalance==null?Ka():Ga(e.customBalance,t+".customBalance"),customBalances:Array.isArray(e.customBalances)?e.customBalances.filter(n=>n!==null&&typeof n=="object").map((n,a)=>Ga(n,t+".customBalances["+a+"]")):[],gatewayQuotas:Array.isArray(e.gatewayQuotas)?e.gatewayQuotas.filter(n=>n!==null&&typeof n=="object"&&!Array.isArray(n)).map((n,a)=>hs(n,t+".gatewayQuotas["+a+"]")):[],customVarStatus:e.customVarStatus!==null&&typeof e.customVarStatus=="object"&&!Array.isArray(e.customVarStatus)?Object.fromEntries(Object.entries(e.customVarStatus).filter(([,n])=>n!==null&&typeof n=="object").map(([n,a])=>[n,{configured:a.configured===!0,source:typeof a.source=="string"?a.source:""}])):{},codingPlans:e.codingPlans!==null&&typeof e.codingPlans=="object"&&!Array.isArray(e.codingPlans)?e.codingPlans:{},planStats:ks(e.planStats),codexCompat:xs(e.codexCompat),ourFreeModel:e.ourFreeModel?.enabled===!0?{enabled:!0,version:typeof e.ourFreeModel.version=="string"?e.ourFreeModel.version:""}:void 0,history:Array.isArray(e.history)?e.history.map((n,a)=>ve(n,t+".history["+a+"]")):[],billionContext:e.billionContext?.protocol===1?{protocol:1,connected:e.billionContext.connected===!0,failed:e.billionContext.failed===!0,requests:Number(e.billionContext.requests)||0,unreported:Number(e.billionContext.unreported)||0,partial:Number(e.billionContext.partial)||0,uncovered:Number(e.billionContext.uncovered)||0,unresolved:Number(e.billionContext.unresolved)||0,detected:e.billionContext.detected===!0,version:typeof e.billionContext.version=="string"?e.billionContext.version.slice(0,100):"",compatibility:["needs_update","changed","bridge_missing","ready"].includes(e.billionContext.compatibility)?e.billionContext.compatibility:"unknown",noticeId:typeof e.billionContext.noticeId=="string"?e.billionContext.noticeId.slice(0,240):""}:void 0,externalUsage:e.externalUsage&&Array.isArray(e.externalUsage.sources)?{fetchedAt:Number(e.externalUsage.fetchedAt)||0,stale:e.externalUsage.stale===!0,sources:e.externalUsage.sources.map(n=>({source:String(n.source),today:ve(n.today,t+".external.today"),month:ve(n.month,t+".external.month"),total:ve(n.total,t+".external.total"),history:(n.history??[]).map(a=>ve(a,t+".external.history"))})),combined:Object.fromEntries(["today","month","total","history"].map(n=>[n,n==="history"?(e.externalUsage.combined.history??[]).map(a=>ve(a,t+".external.history")):ve(e.externalUsage.combined[n],t+".external."+n)]))}:null,config:ms(e.config,t+".config"),pricesRev:typeof e.pricesRev=="string"?e.pricesRev:void 0,modelLabels:Object.fromEntries(Object.entries(e.modelLabels??{}).filter(([,n])=>typeof n=="string")),modelDirectory:e.modelDirectory,reconcile:e.reconcile===null||e.reconcile===void 0?void 0:{ok:e.reconcile.ok===!0,message:typeof e.reconcile.message=="string"?e.reconcile.message:""},priceLockIds:Array.isArray(e.priceLockIds)?e.priceLockIds.filter(n=>typeof n=="string"):[],meta:{...nt(e.meta?.locale)?{locale:nt(e.meta.locale)}:{},now:typeof e.meta?.now=="number"?e.meta.now:Date.now(),timezoneOffsetMinutes:typeof e.meta?.timezoneOffsetMinutes=="number"?e.meta.timezoneOffsetMinutes:0,timezone:typeof e.meta?.timezone=="string"?e.meta.timezone:"",...typeof e.meta?.defaultProvider=="string"?{defaultProvider:e.meta.defaultProvider}:{},dayKey:typeof e.meta?.dayKey=="string"?e.meta.dayKey:"",monthKey:typeof e.meta?.monthKey=="string"?e.meta.monthKey:""}}}function ws(e,t){me(e,t);const n={ok:e.ok===!0,message:typeof e.message=="string"?e.message:""};return e.state!==void 0&&e.state!==null&&(n.state=Ya(e.state,t+".state")),n}function ee(e){return{parse:e}}const lt=ee(Ya),Ns=ee(e=>me(e,"patch")),Ss=ee(ws),Xt=ee(e=>X(e,"provider")),Cs=ee(e=>{if(e!=null)return(typeof e!="number"||!Number.isInteger(e)||e<0||e>7)&&te("index","0-7 integer"),e}),vs=ee(e=>X(e,"date")),As=ee(e=>me(e,"day")),Ms=ee(e=>(Number.isFinite(Number(e))||te("limit","number"),Number(e))),Za=ee(e=>X(e,"sort")),Ps=ee(e=>me(e,"topSessions")),Ja=ee(e=>X(e,"target")),Os=ee(e=>X(e,"value")),xe=(e,t)=>({mode:"strict",typeSymbol:"dsh-cost-meter#"+e,schema:t,create:()=>t}),le=(e,t,n,a=!1)=>({name:e,wire:e,source:"json",codec:xe(t,n),...a?{acceptsUndefined:!0}:{}}),Xa=ee(e=>{me(e,"billing storage options"),(Object.keys(e).some(n=>!["retentionDays","apply","streams","groups"].includes(n))||![0,7,30].includes(e.retentionDays))&&te("billing storage options","retentionDays 0/7/30");const t={retentionDays:e.retentionDays};for(const n of["apply","streams","groups"])e[n]!==void 0&&typeof e[n]!="boolean"&&te(n,"boolean"),t[n]=e[n]??n!=="apply";return t}),Ts={package:"dsh-cost-meter",descriptors:[{method:"getStateSince",parameters:[le("pricesRev","PricesRev",ee(e=>(typeof e!="string"&&te("pricesRev","price table revision"),e)))],result:xe("CostState",lt)},...["getState","getLocalState"].map(e=>({method:e,result:xe("CostState",lt)})),{method:"billingStorage",parameters:[le("options","BillingStorageOptions",Xa)],result:xe("BillingStorage",ee(e=>{me(e,"billing storage");const t={};for(const n of["retentionDays","scannedAt","sessions","reclaimableBytes","archivedStreams","removedFiles","releasedBytes","archiveBytes","skipped"])t[n]=Y(e[n],n);for(const n of["applied","limited"])typeof e[n]!="boolean"&&te(n,"boolean"),t[n]=e[n];for(const n of["streams","groups","archives"]){const a=me(e[n],n),o={};for(const l of["files","bytes","eligibleFiles","eligibleBytes"])o[l]=Y(a[l],n+"."+l);for(const l of["oldestAt","newestAt"])o[l]=a[l]===null?null:Y(a[l],n+"."+l);t[n]=o}return t}))},{method:"updateConfig",parameters:[le("patch","ConfigPatch",Ns)],result:xe("CostState",lt)},{method:"fetchPrices"},{method:"releasePriceLock",parameters:[le("id","PriceLockId",ee(e=>((typeof e!="string"||e.length===0)&&te("id","OpenRouter model id"),e)))]},{method:"refreshBalance"},{method:"refreshGoQuota"},...["getPiAiCodexQuota","getChatgptSubQuota"].map(e=>({method:e,result:xe("PiAiCodexQuota",ee(t=>{me(t,"pi-ai quota"),["off","ok","error"].includes(t.status)||te("pi-ai quota status","off/ok/error");const n={},a=me(t.windows,"pi-ai windows");for(const o of["five","weekly"])if(a[o]!==void 0){const l=Y(a[o].percent,o);(l<0||l>100)&&te(o,"0-100 percent"),n[o]={percent:l,resetsAt:X(a[o].resetsAt,"resetsAt")}}return{status:t.status,windows:n,message:X(t.message,"message")}}))})),{method:"refreshCustomBalance",parameters:[le("index","CustomBalanceIndex",Cs,!0)]},{method:"refreshCodingPlan",parameters:[le("provider","CodingPlanProvider",Xt)]},{method:"loginCodingPlan",parameters:[le("provider","CodingPlanProvider",Xt)]},{method:"loginOpenDesign"},{method:"refreshGatewayQuota",parameters:[le("sourceId","GatewayQuotaSourceId",ee(e=>{if(e!=null)return(typeof e!="string"||e.length>48||!/^[a-z0-9][a-z0-9_-]*$/.test(e))&&te("sourceId","gateway source id"),e}),!0)]},{method:"resetHistory",result:xe("CostState",lt)},{method:"importLegacyHistory"},{method:"getDaySessions",parameters:[le("date","DayKey",vs)],result:xe("DayRecord",As)},{method:"getSessionCost",parameters:[le("sessionId","SessionId",Xt)],result:xe("SessionCost",ee(e=>({own:zt(e.own,"own"),subagents:zt(e.subagents,"subagents"),found:Ce(e.found,"found"),subagentCount:Y(e.subagentCount,"subagentCount")})))},{id:"dsh-cost-meter#costMeter/getTurnCost",service:"costMeter",namespace:"costMeter",method:"getTurnCost",invocation:{kind:"direct"},parameters:[le("sessionId","SessionId",ee(e=>X(e,"sessionId"))),...["startSeq","endSeq"].map(e=>le(e,"TurnSeq",ee(t=>((!Number.isSafeInteger(t)||t<0)&&te(e,"nonnegative integer"),t)))),{...le("displayCurrency","DisplayCurrency",ee(e=>(e!==void 0&&!/^[A-Z]{3}$/.test(e)&&te("displayCurrency","currency"),e))),acceptsUndefined:!0}],result:xe("TurnCost",ee(e=>({...Kt(e),found:Ce(e.found,"found"),...e.inherited===void 0?{}:{inherited:Ce(e.inherited,"inherited")},cost:Y(e.cost,"cost"),apiCost:Y(e.apiCost,"apiCost"),rows:$a(e.rows),calls:(Array.isArray(e.calls)?e.calls:te("calls","array")).map(t=>({kind:X(t.kind,"kind"),provider:X(t.provider,"provider"),model:X(t.model,"model"),atMs:Y(t.atMs,"atMs"),cost:Y(t.cost,"cost"),apiCost:Y(t.apiCost,"apiCost"),plan:Ce(t.plan,"plan"),priced:Ce(t.priced,"priced"),longContext:Ce(t.longContext,"longContext"),rows:$a(t.rows),...t.metering?{metering:ds(t.metering)}:{}}))})))},{method:"getTopSessions",parameters:[le("limit","SessionLimit",Ms),le("sort","SessionSort",Za,!0),le("dir","SessionSortDir",Za,!0)],result:xe("TopSessions",Ps)},{method:"setCredential",parameters:[le("target","CredentialTarget",Ja),le("value","CredentialValue",Os)]},{method:"clearCredential",parameters:[le("target","CredentialTarget",Ja)]},...["applyCodexCompatHistory","dismissCodexCompat"].map(e=>({method:e,result:xe("CostState",lt)}))].map(e=>({id:"dsh-cost-meter#costMeter/"+e.method,service:"costMeter",namespace:"costMeter",invocation:{kind:"direct"},parameters:[],result:xe("FetchPricesResult",Ss),...e}))};function Rs(e,t){const n=t?.models??{};return typeof e=="string"&&e.length>0&&n[e]!==void 0?n[e]:t?.default??{cacheHit:0,cacheMiss:0,output:0}}const Ds=["peakWindows","peakHolidays","peakSchedule"];function Ct(e){return Object.fromEntries(Ds.filter(t=>e?.[t]!==void 0).map(t=>[t,e[t]]))}function Ml(e){return!(!e||typeof e!="object"||e.peakWindows!==void 0&&(!Array.isArray(e.peakWindows)||e.peakWindows.length>24||e.peakWindows.some(t=>!t||!Number.isFinite(t.start)||!Number.isFinite(t.end)||t.start<0||t.start>=24||t.end<0||t.end>24||t.start===t.end))||e.peakSchedule!==void 0&&!["deepseek","volcengine","ollama","daily","utc-weekdays"].includes(e.peakSchedule)||e.peakHolidays!==void 0&&e.peakHolidays!==null&&(!Array.isArray(e.peakHolidays)||e.peakHolidays.length>366||e.peakHolidays.some(t=>typeof t!="string"||!/^\d{4}-\d{2}-\d{2}$/.test(t)||!Number.isFinite(Date.parse(t+"T00:00:00Z"))||new Date(t+"T00:00:00Z").toISOString().slice(0,10)!==t)))}function Bs(e,t,n){if(!e?.entry)return e;const a=n?.providers?.[t]??(["deepseek-official","deepseek-account",""].includes(t)?n?.providers?.deepseek:void 0),o={...Ct(a),...e.entry};return{...e,entry:o,billingMode:(o.peak||o.offPeak)&&Object.keys(Ct(o)).length&&o.billingMode!=="flat"?"deepseek-peak":e.billingMode}}function $e(e,t,n){if(!(e.peakWindows!==void 0||e.peakHolidays!==void 0||["daily","utc-weekdays","deepseek"].includes(e.peakSchedule)))return null;if(n?.enabled!==!0||!Number.isFinite(t)||Number.isFinite(n.effectiveAtMs)&&t<n.effectiveAtMs)return"base";const o=e.peakSchedule??(e.billingMode==="utc-peak"?"utc-weekdays":"deepseek"),l=e.peakWindows??(o==="ollama"?[{start:12,end:18}]:n.windows??[]),r=e.peakHolidays===null?[]:e.peakHolidays??(["ollama","volcengine","utc-weekdays","daily"].includes(o)?[]:n.holidays??[]),i=new Date(t+8*36e5),c=new Date(t),u=["ollama","utc-weekdays"].includes(o)?c.getUTCDay():i.getUTCDay();if(o!=="daily"&&(u===0||u===6)||r.includes(i.toISOString().slice(0,10)))return"offPeak";const d=c.getUTCHours()+c.getUTCMinutes()/60+c.getUTCSeconds()/3600+c.getUTCMilliseconds()/36e5;return l.some(m=>m.start<m.end?d>=m.start&&d<m.end:d>=m.start||d<m.end)?"peak":"offPeak"}function Ls(e,t,n){const a=$e(e,t,n);if(a===null||a==="base")return null;const o=e.peakWindows??(e.peakSchedule==="ollama"?[{start:12,end:18}]:n.windows??[]),l=Math.floor(t/864e5)*864e5,r=new Set,i=Math.max(9,Math.min(380,(e.peakHolidays??n.holidays??[]).length+8));for(let d=-i;d<=i;d++){const m=l+d*864e5;for(const g of[0,16,...o.flatMap(b=>[b.start,b.end])])r.add(m+g*36e5)}let c=null,u=null;for(const d of r)$e(e,d-1,n)!==$e(e,d,n)&&(d<=t&&(c===null||d>c)&&(c=d),d>t&&(u===null||d<u)&&(u=d));return c===null||u===null?null:{inPeak:a==="peak",weekend:!1,prevAtMs:c,nextAtMs:u,nextIntoPeak:$e(e,u,n)==="peak"}}function vt(e){return Object.fromEntries(["multiplier","separateMultipliers","multipliers"].filter(t=>e?.[t]!==void 0).map(t=>[t,e[t]]))}function At(e,t){return(e.separateMultipliers?e.multipliers?.[t]:void 0)??e.multiplier??1}function en(e,t,n="base"){const a={};for(const o of["cacheHit","cacheMiss","cacheWrite","output","reasoning"])e[o]!==void 0&&(a[o]=e[o]*At(t,n+"."+o));return e.longContext&&(a.longContext={...en(e.longContext,t,"longContext"),aboveInputTokens:e.longContext.aboveInputTokens}),a}function Es(e){const t=vt(e);return t.multipliers&&(t.multipliers=Object.fromEntries(Object.entries(t.multipliers).filter(([n])=>n.startsWith("cny.")).map(([n,a])=>[n.replace("cny.","base."),a]))),{...e.cny,...t}}function Ke(e){if(e===null||typeof e!="object")return;const t=r=>{const i=e[r];return typeof i=="number"&&Number.isFinite(i)&&i>=0?i:void 0},n=t("cacheMiss")??t("input")??0,o={cacheHit:t("cacheHit")??t("cachedInput")??t("cacheRead")??n,cacheMiss:n,output:t("output")??0},l=t("reasoning");return l!==void 0&&(o.reasoning=l),t("cacheWrite")!==void 0&&(o.cacheWrite=t("cacheWrite")),o}function Is(e){const t=Ke(e);if(t===void 0)return null;Object.assign(t,vt(e),Ct(e)),e.billingMode==="utc-peak"&&(t.billingMode="utc-peak"),e.peakSchedule==="volcengine"&&(t.peakSchedule="volcengine");for(const n of["offPeak","peak","legacyBase"]){const a=Ke(e[n]);a!==void 0&&(t[n]=a)}return Number.isFinite(e.longContext?.aboveInputTokens)&&e.longContext.aboveInputTokens>0&&(t.longContext={...Ke(e.longContext),aboveInputTokens:e.longContext.aboveInputTokens}),Array.isArray(e.rateHistory)&&(t.rateHistory=e.rateHistory.slice(0,16).map(n=>{const a={...Ke(n),before:n.before};for(const o of["offPeak","peak"]){const l=Ke(n[o]);l!==void 0&&(a[o]=l)}return a})),t}function rt(e,t=Date.now()){if(!e||!Number.isFinite(t)||!Array.isArray(e.rateHistory))return e;let n=null,a=1/0;for(const r of e.rateHistory){const i=Date.parse(r.before);t<i&&i<a&&(n=r,a=i)}if(!n)return e;const{before:o,...l}=n;return{...e,...l}}const ea=Date.parse("2026-08-22T16:00:00Z");function tn(e){if(!Number.isFinite(e)||e<ea)return null;const t=Math.floor((e+8*36e5)/864e5),n=(t+4)%7;if(n!==6&&n!==0)return null;const a=n===6?t:t-1;return{start:Math.max(a*864e5-8*36e5,ea),end:(a+2)*864e5-8*36e5}}function an(e,t){if(!Number.isFinite(e)||e<ea||!Array.isArray(t))return null;const n=Math.floor((e+8*36e5)/864e5);return t.includes(new Date(n*864e5).toISOString().slice(0,10))?{start:n*864e5-8*36e5,end:(n+1)*864e5-8*36e5}:null}const js=(e,t)=>an(e,t)??tn(e);function Mt(e,t,n,a){if(!Array.isArray(n)||n.length===0||js(e,a)!==null||Number.isFinite(t)&&e<t)return!1;const o=new Date(e).getUTCHours();return n.some(l=>{const r=Number(l.start),i=Number(l.end);return!Number.isFinite(r)||!Number.isFinite(i)?!1:r<i?o>=r&&o<i:o>=r||o<i})}const Fs=Date.parse("2026-08-16T16:00:00Z"),_s=17881344e5;function nn(e,t,n){const a=rt(e,t)??{cacheHit:0,cacheMiss:0,output:0},o=(c,u="base")=>({reasoning:0,...en(c,a,u)}),l=$e(a,t,n);if(l!==null)return l==="base"||!a[l]?o(a):o(a[l],l);const r=a.peakSchedule==="ollama";if(r||a.billingMode==="utc-peak"){if(n?.enabled!==!0||!Number.isFinite(t)||r&&t<_s)return o(a);const c=new Date(t),u=c.getUTCDay(),d=c.getUTCHours(),m=u>0&&u<6&&(r?d>=12&&d<18:d>=1&&d<4||d>=6&&d<10);return o((m?a.peak:a.offPeak)??a,(m?a.peak:a.offPeak)?m?"peak":"offPeak":"base")}if(Number.isFinite(t)&&t<Fs){const c=a.legacyBase;return c===void 0?o(a):o(c,"legacyBase")}if(n?.enabled!==!0)return o(a);const i=typeof n.effectiveAtMs=="number"&&Number.isFinite(n.effectiveAtMs)?n.effectiveAtMs:void 0;if(Mt(t,i,n.windows,a.peakSchedule==="volcengine"?[]:n.holidays)){const c=a.peak;return c===void 0?o(a):o(c,"peak")}if(i!==void 0&&t>=i){const c=a.offPeak;return c===void 0?o(a):o(c,"offPeak")}return o(a)}function sn(e,t){const n=Math.max(0,Number(e.input)||0),a=Math.max(0,Number(e.output)||0),o=Math.max(0,Number(e.cacheRead)||0),l=Math.max(0,Number(e.cacheWrite)||0),r=Math.max(0,Number(e.reasoning)||0);return t.longContext&&n+o+l>t.longContext.aboveInputTokens&&(t=t.longContext),(n*t.cacheMiss+a*t.output+o*t.cacheHit+l*(t.cacheWrite??t.cacheHit)+r*(t.reasoning??0))/1e6}function on(e,t,n){const a=Number(e);if(!Number.isFinite(a)||a<0||a===0)return 0;if(t!=="CNY")return a;const o=Number(n);return!Number.isFinite(o)||o<=0?a:a/o}function ce(e,t){const n=e?.barDirections,a=t==="balance"?"remaining":"used";if(n===null||typeof n!="object"||Array.isArray(n))return a;const o=n[t];return o==="remaining"||o==="used"?o:a}function we(e,t){if(e==null||!Number.isFinite(Number(e)))return{width:0,label:null};const n=Math.max(0,Math.min(100,Number(e))),a=t==="remaining"?Math.round((100-n)*10)/10:Math.round(n*10)/10;return{width:a,label:a}}const ln=(e,t)=>e.toFixed(t).replace(/(\.\d*?[1-9])0+$|\.0+$/,"$1");function ue(e,t){const n=typeof t?.symbol=="string"&&t.symbol.length>0?t.symbol:"$",a=Number(t?.decimals),o=Math.max(0,Math.min(10,Number.isFinite(a)?Math.floor(a):2));let l=o;return e>0&&e<Math.pow(10,-o)&&(l=o+2),n+ln(e,l)}function K(e,t){const n=Number(t?.exchangeRate),a=e*(Number.isFinite(n)&&n>0?n:1);return ue(a,t)}function I(e){const t=Math.max(0,Number(e)||0),n=a=>a>=100?String(Math.round(a)):String(Math.round(a*10)/10);return t<1e3?String(Math.round(t)):t>=999500?n(t/1e6)+"M":t<1e6?n(t/1e3)+"K":n(t/1e6)+"M"}function it(e){return String(e??"").normalize("NFKC").toLowerCase().replace(/[((]\s*(?:go|zen)\s*[))]/g," ").trim()}function ze(e){return it(e).replace(/[\s._\-\u2010-\u2015\u2212]+/gu,"")}function Qs(e,t=!0,n=!0){const a=it(e),o=a.match(/[-_./:@](\d{4}-\d{2}-\d{2}|\d{8}|\d{6}|\d{4})$/);if(o){const l=o[1].replaceAll("-","");if(l.length===4&&!t||l.length===6&&(!t||!n))return a;const r=l.length===4?2e3:l.length===6?2e3+Number(l.slice(0,2)):Number(l.slice(0,4)),i=Number(l.slice(-4,-2)),c=Number(l.slice(-2)),u=new Date(Date.UTC(r,i-1,c));return r>=2e3&&u.getUTCFullYear()===r&&u.getUTCMonth()===i-1&&u.getUTCDate()===c?a.slice(0,o.index):a}return a.replace(/[-_./:@]latest$/,"")}function rn(e,t,n=e,a=!0,o=!0){if(typeof e!="string"||e.length===0)return null;const l=Array.isArray(t)?t.filter(u=>typeof u=="string"&&u.length>0):[],r=l.find(u=>u===n);if(r!==void 0)return{id:r,rank:3};let i=e.normalize("NFKC").trim(),c=2;for(;;){const u=ze(i);if(u.length===0)return null;const d=l.filter(g=>ze(g)===u);if(d.length>0)return{id:d.length===1?d[0]:null,rank:c};if(/[:((]\s*(?:free|online)\b/i.test(i))return null;const m=Qs(i,a,o);if(m===i.toLowerCase())return null;i=m,c=1}}function Pt(e,t,n=e,a=!0,o=!0){return rn(e,t,n,a,o)?.id??null}const ta=["opendesign","open-design","open-design-api","amr-link.open-design.ai"],cn=["vercel","copilot","cline","qoder","qoder-cn","qoder-global","trae","trae-cn","trae-global","zcode","mimo-app","commandcode-plan","cursor","windsurf","augment","roo","codebuddy"],Ge=new Set(["openrouter","opencode-zen","opencode-go","opencode-go-plus","zen","opencode",...ta]),De={openai:/^(?:gpt|o\d|codex)/i,anthropic:/^claude/i,google:/^gemini/i,stepfun:/^step-/i,deepseek:/^deepseek/i,moonshot:/^kimi/i,"z-ai":/^glm/i,xai:/^grok/i,alibaba:/^qwen/i,minimax:/^minimax/i,tencent:/^(?:hunyuan|hy\d)/i,xiaomi:/^mimo/i,upstage:/^solar/i,nvidia:/^nemotron/i,mistral:/^mistral/i,meta:/^(?:muse|llama)/i,meituan:/^longcat/i};function aa(e){return["deepseek-peak","utc-peak"].includes(e?.billingMode)?e.billingMode:"flat"}function Ve(e,t,n,a,o){if(typeof e!="string")return null;if(Object.hasOwn(t,e))return{id:e,rank:3};if(a!=="auto")return null;let l=e.normalize("NFKC").trim().replace(/^models\/(?=gemini)/i,"google/");const r=l.search(/[/:]/);if(r>0){const i=l.slice(0,r).trim().toLowerCase(),c=i==="deepseek-ai"?"deepseek":i,u=l.slice(r+1).trim();if(Object.hasOwn(De,c)&&(c===n||["opencode-zen","opencode-go","zen","opencode","opencode-go-plus"].includes(n)&&(De[c].test(u)||Pt(u,Object.keys(c==="deepseek"?o?.models??{}:o?.providers?.[c]?.models??{}),u,o?.snapshotTags!==!1,o?.shortSnapshotTags!==!1)!==null)))l=u;else if(Object.hasOwn(De,c))return null}return rn(l,Object.keys(t),e,o?.snapshotTags!==!1,o?.shortSnapshotTags!==!1)}function Hs(e,t,n,a,o){return Ve(e,t,n,a,o)?.id??null}const Us=new Set(["local","lmstudio","ollama","jan","gpt4all","koboldcpp","llamacpp","llama-cpp","localai","vllm","sglang","tabbyapi","lmdeploy","oobabooga","text-generation-webui","llama-server"]),qs=["lmstudio:","lmstudio/","ollama:","ollama/","jan:","jan/","gpt4all:","gpt4all/","koboldcpp:","koboldcpp/","llamacpp:","llamacpp/","llama-cpp:","llama-cpp/","localai:","localai/","vllm:","vllm/","sglang:","sglang/","tabbyapi:","tabbyapi/","lmdeploy:","oobabooga/","text-generation-webui/","llama-server:","gguf:","local:"];function Pe(e,t){if(typeof e=="string"&&Us.has(e))return!0;const n=typeof t=="string"?it(t):"";return qs.some(a=>n.startsWith(a))}function un(e,t,n,a){if(!["deepseek","deepseek-official"].includes(e)&&typeof t=="string"&&t.length>0&&t!=="__local__"&&!t.includes(":")){const o=n.models??{},l=Object.hasOwn(o,t)?t:a==="auto"?Pt(t,Object.keys(o),t,n?.snapshotTags!==!1,n?.shortSnapshotTags!==!1):null;if(l!==null&&o[l]?.unpriced!==!0)return{entry:o[l],priced:!0,billingMode:"deepseek-peak",matched:!0}}return null}function na(e,t,n){const a=n?.prices??{},o=n?.priceMatch==="exact"?"exact":"auto",l=n?.priceOverrides&&typeof n.priceOverrides=="object"?n.priceOverrides:{};let r=String(e??"").trim().toLowerCase();if(r.startsWith("llm-")&&(r=r.slice(4)),r===""&&(r="deepseek"),["our-free-model","our-free-model-region"].includes(r)&&l[r+":*"]==="__free__")return{entry:{cacheHit:0,cacheMiss:0,cacheWrite:0,output:0,reasoning:0},priced:!0,currency:"USD",billingMode:"flat",matched:!0};let i=r,c=t;const u=l[r+":"+t];if(u==="__custom__"){const m=a.custom?.[r+":"+t];return{entry:m??null,priced:!!m,billingMode:m?.billingMode??"flat",matched:!0,currency:m?.currency??"USD"}}if(u==="__local__")return{entry:{cacheHit:0,cacheMiss:0,cacheWrite:0,output:0,reasoning:0},billingMode:"flat",priced:!0,local:!0,currency:"USD",matched:!0};if(typeof u=="string"&&u.length>0){const m=u.indexOf(":");if(m>0&&u.slice(m+1).length>0?(i=u.slice(0,m).trim().toLowerCase(),c=u.slice(m+1)):c=u,i==="deepseek"&&c==="__default__")return{entry:a.default??{cacheHit:0,cacheMiss:0,output:0},priced:a.default?.unpriced!==!0,billingMode:"deepseek-peak",matched:!1}}if(!Pe(i,c)&&i!=="openrouter"){const m=a.providers?.[i]?.models??{},g=Ve(c,m,i,o,a);if(g){const b=g.id===null?null:m[g.id];return{entry:b,priced:b!=null&&b.unpriced!==!0,billingMode:aa(b),matched:!0}}}if(/(?:^|[-_])free(?:$|[-_])/.test(i)&&!["our-free-model","our-free-model-region"].includes(i))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(i!=="opencode-go"&&He.go.includes(i))return na("opencode-go",c,{...n,priceOverrides:{}});if(ta.includes(i)&&i!=="opendesign")return na("opendesign",c,{...n,priceOverrides:{}});if(Pe(i,c))return un(r,u,a,o)??{entry:{cacheHit:0,cacheMiss:0,cacheWrite:0,output:0,reasoning:0},billingMode:"flat",priced:!0,local:!0,currency:"USD",matched:!0};if(i==="openrouter"){const m=a.providers?.openrouter?.models??{},g=Object.hasOwn(m,c)?m[c]:null;return{entry:g,priced:g!==null&&g.unpriced!==!0,billingMode:"flat",matched:g!==null}}if(["deepseek","deepseek-official"].includes(i)){const m=a.models??{},g=Ve(c,m,"deepseek",o,a);if(g)return g.id===null||m[g.id]?.unpriced===!0?{entry:null,priced:!1,billingMode:"flat",matched:!0}:{entry:m[g.id],priced:!0,billingMode:"deepseek-peak",matched:!0};if(o==="auto"){let b=null,f=-1,k=!1,h="flat";for(const[A,x]of Object.entries(a.providers??{})){if(Ge.has(A))continue;const y=x?.models??{},p=Ve(c,y,A,o,a);if(!p)continue;const N=p.id===null?null:y[p.id],w=p.rank;w>f?(b=N,f=w,k=p.id===null||N==null,h=aa(N)):w===f&&(k=!0)}if(k)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(b!==null)return{entry:b,priced:b.unpriced!==!0,billingMode:h,matched:!0}}return{entry:null,priced:!1,billingMode:"flat",matched:!1}}if(Ge.has(i))return{entry:null,priced:!1,billingMode:"flat",matched:!1};const d=o==="auto"&&!u&&/^deepseek/i.test(it(c).replace(/^deepseek(?:-ai)?[/:]\s*/,""));if(Object.hasOwn(De,i)&&!d)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(o==="auto"){let m=null,g=-1,b=!1,f="flat";for(const[k,h]of[["deepseek",{models:a.models??{}}],...Object.entries(a.providers??{})]){if(k===i||Ge.has(k))continue;const A=h?.models??{},x=Ve(c,A,k,o,a);if(!x)continue;const y=x.id,p=y===null?null:A[y];if(k==="mistral"&&y?.startsWith("deepseek-")&&y!==c&&!i.includes("mistral")&&!/^mistral[/:]/i.test(String(c).trim()))continue;const N=x.rank;N>g?(m=p,g=N,b=y===null||p==null,f=k==="deepseek"?"deepseek-peak":aa(p)):N===g&&(b=!0)}if(b)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(m!==null)return{entry:m,priced:m.unpriced!==!0,billingMode:f,matched:!0}}return{entry:null,priced:!1,billingMode:"flat",matched:!1}}function Ws(e,t,n,a,o){const l=o?.[(e||"deepseek")+":"+t];if(!e||a==="exact"||typeof t!="string"||Pe(e,t)||/(?:^|[-_])free(?:$|[-_])/.test(e)||typeof l=="string"&&l.length>0||Ve(t,n?.providers?.[e]?.models??{},e,"auto",n))return null;const r=t.normalize("NFKC").trim(),i=r.indexOf("/");if(i<=0||i===r.length-1)return null;const c=r.slice(0,i).trim().toLowerCase().replace(/^llm-/,""),u=r.slice(i+1).trim(),d={codex:"openai",claude:"anthropic",gemini:"google","deepseek-ai":"deepseek","deepseek-official":"deepseek","ollama-cloud":"ollama-cloud",volcengine:"volcengine",ark:"ark"},m=/^(?:dsh-)?magpie(?:$|-)/.test(e),g=["our-free-model","our-free-model-region"].includes(c),b=Object.hasOwn(d,c)||Ge.has(c)||Object.hasOwn(n?.providers??{},c)||Object.values(He).some(k=>k.includes(c))||cn.includes(c)||g;if(!m&&(!b||Ge.has(e)||He.go.includes(e))||/(?:^|[-_])free(?:$|[-_])/.test(c)&&!g)return null;const f=Object.hasOwn(d,c)?d[c]:He.go.includes(c)?"opencode-go":c;return!m&&Object.hasOwn(De,e)&&Object.hasOwn(De,f)&&f!==e&&(f!=="deepseek"||!/^deepseek/i.test(it(u)))||Object.hasOwn(De,f)&&Hs(u,f==="deepseek"?n?.models??{}:n?.providers?.[f]?.models??{},f,"auto",n)===null?null:{provider:b||Object.hasOwn(d,c)||Ge.has(f)||Object.hasOwn(De,f)||Object.hasOwn(n?.providers??{},f)||Pe(f,u)?f:e,model:u}}function dn(e,t,n){let a=String(e??"").trim().toLowerCase().replace(/^llm-/,"")||"deepseek";const o=Object.fromEntries(["our-free-model:*","our-free-model-region:*"].filter(i=>n?.priceOverrides?.[i]==="__free__").map(i=>[i,"__free__"]));for(let i=0;i<8;i++){const c=Ws(a,t,n?.prices,n?.priceMatch,n?.priceOverrides);if(!c)break;e=c.provider,a=c.provider,t=c.model,n={...n,priceOverrides:o}}let l=na(e,t,n);const r=String(e??"").trim().toLowerCase().replace(/^llm-/,"")||"deepseek";return!l.currency&&!l.priced&&(l=un(r,n?.priceOverrides?.[r+":"+t],n?.prices??{},n?.priceMatch==="exact"?"exact":"auto")??l),l.currency||(l=l.priced&&n?.prices?.currency==="CNY"&&l.entry?.cny?{...l,entry:Es(l.entry),currency:"CNY"}:{...l,currency:l.priced&&l.billingMode==="deepseek-peak"&&n?.prices?.currency==="CNY"?"CNY":"USD"}),l=Bs(l,r,n?.prices),r==="ollama-cloud"&&n?.prices?.ollamaPeak!==!1&&l.entry&&l.billingMode==="deepseek-peak"&&(n?.prices?.ollamaTaggedPeak===!1?["deepseek-v4.1-flash","deepseek-v4-pro"].includes(String(t).trim().toLowerCase()):Pt(t,["deepseek-v4.1-flash","deepseek-v4-pro"])!==null)&&(l={...l,entry:{...l.entry,peakSchedule:l.entry.peakSchedule??"ollama"}}),["volcengine","ark"].includes(r)&&n?.prices?.volcenginePeak!==!1&&l.entry&&l.billingMode==="deepseek-peak"?{...l,entry:{...l.entry,peakSchedule:l.entry.peakSchedule??"volcengine"}}:l}function $s(e){const t=Number(e?.calls)||0,n=Number(e?.input)||0,a=Number(e?.cacheRead)||0;return t>=3&&n>=1e5&&a===0}function Ot(e,t){return!e||!t?0:typeof e.cost=="number"&&Number.isFinite(e.cost)?e.cost:fn(e,t).total}function ct(e){if(e===null||typeof e!="object")return 0;const t=Number(e.cost)||0,n=e.apiCost===void 0||e.apiCost===null?t:Number(e.apiCost);return Number.isFinite(n)&&n>=0?Math.min(n,t):t}function _(e,t){const n={CNY:"Cny",EUR:"Eur"}[t?.currency],a=t?.showTotalWithPlan===!0,o=n&&e?.[(a?"cost":"apiCost")+n],l=a?Number(e?.cost)||0:ct(e);return!Number.isFinite(o)||o===0&&l>0?l:o/(t.exchangeRate||1)}const He={opendesign:ta,go:["go","zen","opencode","opencode-go","opencode-go-plus","dsh-opencode-go"],codex:["codex","openai-codex","dsh-openai-codex","codex-chatgpt"],anthropic:["anthropic","claude-subscription"],zai:["zai","glm-coding-plan"],minimax:["minimax","minimax-code","minimax-m-plan","minimax-mplan","minimax-token-plan"],kimi:["kimi","kimi-code","kimi-coding","kimi-coding-plan"],commandcode:["commandcode","command-code"],clinepass:["clinepass","cline-pass"],workbuddy:["workbuddy","workbuddy-subscription","workbuddy-ai","workbuddy-global","xdpool","xdpool-global"],antigravity:["antigravity"],stepfun:["stepfun","step-code"],"volcengine-agent":["volcengine-agent","ark-agent-plan","volcengine-agent-plan"],"tencent-coding":["tencent-coding","tencent-coding-plan","tokenhub-coding-plan"],"tencent-token":["tencent-token","tencent-token-plan","tokenhub-token-plan","tencent-hy-token-plan","tokenhub-hy-token-plan"],"baidu-coding":["baidu-coding-plan","qianfan-coding-plan","baidu-token-plan","qianfan-token-plan","baidu-tokenplan","qianfan-tokenplan"],qwen:["qwen","qwen-tokenplan","qianwen-tokenplan","qwen-token-plan","qianwen-token-plan"],scnet:["scnet","scnet-tokenplan","scnet-token-plan"],mimo:["mimo","xiaomimimo","mimo-token-plan","xiaomi-token-plan","xiaomi-token-plan-cn","xiaomi-token-plan-sgp","xiaomi-token-plan-ams"],factory:["factory","droid","factory-a","factory-g","factory-o"]},Be=["opendesign","anthropic","zai","minimax","kimi","openrouter","siliconflow","commandcode","clinepass","scnet","volcengine","qwen","mimo","factory","go","codex","volcengine-agent","tencent-coding","tencent-token","baidu-coding","workbuddy","antigravity","stepfun"],Ks=Object.entries({opendesign:"opendesign|open[._-]?design",codex:"codex|chatgpt","baidu-coding":"baidu|qianfan|百度|千帆","tencent-coding":"tencent|tokenhub|腾讯",anthropic:"anthropic|claude",zai:"z[._-]?ai|zhipu|glm|智谱",minimax:"minimax|海螺",kimi:"kimi|moonshot|moonshotai|月之暗面",openrouter:"openrouter",siliconflow:"siliconflow|硅基",commandcode:"commandcode",clinepass:"cline[._-]?pass|clinepass",scnet:"scnet|sugon|超算",volcengine:"volcengine|volcano|volc|ark|火山|方舟",qwen:"qwen|qianwen|千问|通义",mimo:"mimo|xiaomi|小米",factory:"factory|droid",go:"opencode(?:[-_\\s]?go)?|zen|go"}).map(([e,t])=>[e,new RegExp("(?:^|[^a-z0-9])(?:"+t+")(?=$|[^a-z0-9])")]);function sa(e,t){for(const n of[e,t]){const a=String(n??"").normalize("NFKC").replace(/([a-zA-Z0-9\u3400-\u9fff])(?=(?:MPlan|Coding|Token|Agent|Plan|Subscription))/g,"$1-").replace(/([a-z0-9])((?:coding|token|agent|m)?plan|subscription)$/i,"$1-$2").toLowerCase();if(!/(?:^|[^a-z0-9])(?:(?:coding|token|agent|m)[-_\s]*)?plan(?:$|[^a-z0-9])|(?:^|[^a-z0-9])subscription(?:$|[^a-z0-9])|套餐|订阅/.test(a))continue;const o=Ks.filter(([,l])=>l.test(a));if(o.length){if(o.length!==1)return null;const l=o[0][0];if(l==="volcengine"&&/agent[-_\s]*plan|智能体.*套餐/.test(a))return"volcengine-agent";if(l==="tencent-coding"){const r=/token[-_\s]*plan|令牌.*套餐/.test(a),i=/coding[-_\s]*plan|编程.*套餐/.test(a);return r===i?null:r?"tencent-token":l}return l}}return null}function mn(e,t){const n=String(e??"").normalize("NFKC").trim().toLowerCase().replace(/^llm-/,"");if(!n||typeof t!="string"||Pe(n,t)||/(?:^|[-_])free(?:$|[-_])/.test(n)||n==="opencode-zen"||Be.includes(n)||Object.values(He).some(i=>i.includes(n))||sa(e)!==null)return null;const a=t.normalize("NFKC").trim().split("/").map(i=>i.trim());if(a.some(i=>!i)||a.slice(0,-1).some(i=>/(?:^|[-_])free(?:$|[-_])/.test(i.toLowerCase())||Pe(i.toLowerCase().replace(/^llm-/,""),""))||Pe("",a.at(-1)))return null;const o=/^(?:dsh-)?magpie(?:$|-)/.test(n),l=["openai","google","deepseek","deepseek-ai","deepseek-official","moonshot","z-ai","xai","alibaba","tencent","xiaomi","upstage","nvidia","mistral","meta","meituan","gemini","claude","ollama-cloud","ark"],r={anthropic:{vendor:"anthropic",model:/^claude/i},minimax:{vendor:"minimax",model:/^minimax/i},stepfun:{vendor:"stepfun",model:/^step-/i},codex:{vendor:"openai",model:/^(?:gpt|o\d|codex)/i}};for(let i=0;i<Math.min(a.length-1,8);i++){const c=a[i].toLowerCase().replace(/^llm-/,"");if(c==="openrouter"||c==="opencode-zen"||l.includes(c)||/(?:^|[-_])free(?:$|[-_])/.test(c)||Pe(c,a.slice(i+1).join("/")))return null;const u=Object.hasOwn(r,c)?r[c]:null;if(u){const d=a.slice(i+1);if(d[0].toLowerCase()===u.vendor&&d.shift(),d.length!==1||!u.model.test(d[0]))return null}for(const[d,m]of Object.entries(He))if(m.includes(c)||d===c)return{id:d,provider:c};if(Be.includes(c))return{id:c,provider:c};if(!o&&!cn.includes(c))return null}return null}function pn(e,t,n){const a=String(e??"").trim().toLowerCase().replace(/^llm-/,""),o=t?.planBilling?.modelPlans?.[e+":"+n]??t?.planBilling?.modelPlans?.[a+":"+n];if(Be.includes(o))return o;if(a.length===0)return null;for(const[r,i]of Object.entries(He))if(i.includes(a))return r;if(Be.includes(a))return a;const l=sa(e);return l!==null?l:Pe(a,n)||/(?:^|[-_])free(?:$|[-_])/.test(a)||a==="opencode-zen"?null:typeof n=="string"&&n.normalize("NFKC").includes("/")?mn(e,n)?.id??null:sa(e,n)}function zs(e){if(Array.isArray(e?.planBilling?.autoProviders))return new Set(e.planBilling.autoProviders);const t=new Set,n=e?.codingPlans;if(n!==null&&typeof n=="object")for(const a of Be)a!=="go"&&n[a]?.enabled===!0&&t.add(a);return e?.goQuota?.enabled===!0&&t.add("go"),e?.codexQuotaEnabled===!0&&t.add("codex"),t}const Gs=new Set(["grok-4.5","glm-5.3","glm-5.3-flash","glm-5.2","glm-5.1","gpt-5.6-luna","kimi-k3","kimi-k2.7-code","kimi-k2.6","mimo-v2.6-flash","mimo-v2.6-pro","mimo-v2.5","mimo-v2.5-pro","minimax-m3","minimax-m2.7","qwen3.8-max","qwen3.7-max","qwen3.7-plus","qwen3.6-plus","hy3","longcat-2.0","muse-spark-1.2-contributor"].map(ze));function Vs(e,t,n){const a=String(e??"").trim().toLowerCase();if(a.length>0&&a!=="deepseek"&&!a.includes("deepseek"))return!1;const o=ze(t);if(o.length===0||!Gs.has(o))return!1;const l=n?.prices,r=l?.models??{};for(const i of Object.keys(r))if(ze(i)===o)return!1;for(const i of Object.keys(l?.providers?.["opencode-go"]?.models??{}))if(ze(i)===o)return!0;return!1}function ut(e,t,n){if(e==="deepseek-official"&&/^deepseek-(web-(search|fetch)|(search|fetch)-api|search-server)$/.test(t))return"api";let a=pn(e,n,t);a===null&&Vs(e,t,n)&&(a="go");const o=n?.planBilling?.models;if(o!==null&&typeof o=="object"){const i=o[e+":"+t];if(i==="plan"||i==="api")return i;if(a!==null){const c=o[a+":"+t];if(c==="plan"||c==="api")return c}}for(const i of[e,a]){if(i==null)continue;const c=n?.planBilling?.providers?.[i];if(c==="plan"||c==="api")return c}if(a===null)return"api";const l=mn(e,t),r=l?.id===a?l.provider:e;return a==="go"&&/^(?:llm-)?(?:dsh-opencode-go|opencode-go(?:-plus)?)$/i.test(String(r).trim())||a==="kimi"&&/^(?:llm-)?kimi-coding(?:-plan)?$/i.test(String(r).trim())||a==="minimax"&&/^(?:llm-)?minimax-(?:m-?plan|token-plan)$/i.test(String(r).trim())||zs(n).has(a)?"plan":"api"}function fn(e,t){if(!e||!t)return{total:0,api:0};const n=Ys(t),a={enabled:t.peakEnabled===!0,effectiveAtMs:Date.parse(t.peakEffectiveAt||""),windows:t.peakWindows,holidays:t.peakHolidays},o=Date.now(),l=e.byProviderModel??e.byModel??{};let r=0,i=0;for(const g of Object.keys(l)){const b=g.indexOf(":"),f=b>0?g.slice(0,b):"deepseek",k=b>0?g.slice(b+1):g,h=dn(f,k,t);if(h.priced){const A=Is(h.entry);A&&h.billingMode==="deepseek-peak"&&t.prices?.ollamaPeak!==!1&&f.trim().toLowerCase().replace(/^llm-/,"")==="ollama-cloud"&&(t.prices?.ollamaTaggedPeak===!1?["deepseek-v4.1-flash","deepseek-v4-pro"].includes(k.trim().toLowerCase()):Pt(k,["deepseek-v4.1-flash","deepseek-v4-pro"])!==null)&&(A.peakSchedule??="ollama");const x=sn(l[g],nn(A,o,{...a,enabled:["deepseek-peak","utc-peak"].includes(h.billingMode)&&a.enabled})),y=on(x,h.currency,n);r+=y,ut(f,k,t)==="api"&&(i+=y)}}const c={input:0,output:0,cacheRead:0,cacheWrite:0,reasoning:0};for(const g of Object.keys(l))c.input+=l[g].input??0,c.output+=l[g].output??0,c.cacheRead+=l[g].cacheRead??0,c.cacheWrite+=l[g].cacheWrite??0,c.reasoning+=l[g].reasoning??0;const u={input:Math.max(0,(e.input??0)-c.input),output:Math.max(0,(e.output??0)-c.output),cacheRead:Math.max(0,(e.cacheRead??0)-c.cacheRead),cacheWrite:Math.max(0,(e.cacheWrite??0)-c.cacheWrite),reasoning:Math.max(0,(e.reasoning??0)-c.reasoning)},d=sn(u,nn(Rs("default",t.prices),o,a)),m=on(d,t.prices?.currency==="CNY"?"CNY":"USD",n);return r+=m,i+=m,{total:r,api:i}}function Ys(e){const t=n=>typeof n=="number"&&Number.isFinite(n)&&n>0&&n<1e6;return e.currency==="CNY"&&t(e.exchangeRate)?e.exchangeRate:t(e.fxRates?.CNY)?e.fxRates.CNY:7.2}function bn(e,t){if(!e||!t)return!1;const n=e.byProviderModel??{};for(const a of Object.keys(n)){const o=a.indexOf(":"),l=o>0?a.slice(0,o):"deepseek",r=o>0?a.slice(o+1):a;if(ut(l,r,t)==="plan")return!0}return!1}function gn(e){return(e?.input??0)+(e?.cacheRead??0)+(e?.cacheWrite??0)}function yn(e,t){if(e?.apiCost!==void 0)return ct(e);if(!bn(e,t))return Ot(e,t);let n=0;for(const[a,o]of Object.entries(e.byProviderModel??{})){if(!Number.isFinite(o.cost))return fn(e,t).api;const l=a.indexOf(":");ut(a.slice(0,l),a.slice(l+1),t)==="plan"&&(n+=o.cost)}return Math.max(0,Ot(e,t)-n)}function oa(e){const t=Math.abs(Math.round(Number(e)||0)),n=Math.floor(t/60),a=t%60;return"UTC"+(Number(e)<0?"-":"+")+n+(a>0?":"+String(a).padStart(2,"0"):"")}function Zs(e){const t=e?.meta,n=Number(t?.timezoneOffsetMinutes);if(!Number.isFinite(n))return null;const a=-new Date().getTimezoneOffset();if(a===n)return null;const o=typeof t?.timezone=="string"&&t.timezone.length>0?t.timezone:"";return{hostLabel:o?o+" ("+oa(n)+")":oa(n),browserLabel:oa(a)}}function hn(e,t=n=>n){let n=t(e);const a=new Set;return{getSnapshot:()=>n,subscribe:o=>(a.add(o),()=>{a.delete(o)}),set:o=>{if(o=t(o),o!==n){n=o;for(const l of[...a])l()}}}}const{createElement:s,Fragment:D,useState:L,useEffect:J,useRef:Se}=ke;function Tt({target:e,configured:t,source:n,t:a,api:o,placeholder:l,disabled:r}){const[i,c]=L(""),[u,d]=L(!1),[m,g]=L(!1),[b,f]=L(null),k=Se(!1),h=r===!0||m,A=async()=>{const p=i.trim();if(!(p.length===0||h||k.current)){k.current=!0,g(!0),f(null);try{const N=await o.setCredential(e,p);c(""),d(!1),f({kind:"ok",text:N?.message??a("credentialSave")})}catch(N){f({kind:"err",text:String(N?.message??N)})}finally{k.current=!1,g(!1)}}},x=async()=>{if(!(h||k.current)){k.current=!0,g(!0),f(null);try{const p=await o.clearCredential(e);c(""),d(!1),f({kind:"ok",text:p?.message??a("credentialClear")})}catch(p){f({kind:"err",text:String(p?.message??p)})}finally{k.current=!1,g(!1)}}},y=()=>{c(""),d(!1)};return s("div",{className:"cm-field"},u?s("form",{className:"cm-field",autoComplete:"off",onSubmit:p=>{p.preventDefault(),A()}},s("input",{className:"cm-input",type:"password",name:"cm-credential-"+e,autoFocus:!0,value:i,placeholder:typeof l=="string"?l:"",disabled:h,autoComplete:"new-password","data-lpignore":"true","data-1p-ignore":"true","data-bwignore":"true","aria-label":a("credentialInputHint"),onChange:p=>c(p.target.value)}),s("div",{className:"cm-buttons"},s("button",{className:"cm-btn small",type:"submit",disabled:h||i.trim().length===0},a(m?"credentialSaving":"credentialSave")),s("button",{className:"cm-btn small",type:"button",onClick:y,disabled:m},a("cancel")))):s("button",{className:"cm-btn small",type:"button",onClick:()=>d(!0),disabled:h},a("credentialEdit")),t===!0?s("button",{className:"cm-btn small",type:"button",onClick:x,disabled:h},a("credentialClear")):null,s("span",{className:"cm-hint"},t===!0?a("credentialConfiguredOf",{source:typeof n=="string"&&n.length>0?n:"unknown"}):a("credentialNotConfigured")),s("span",{className:"cm-hint"},a("credentialInputHint")),Ba(b))}function Js({pending:e,t}){return!Array.isArray(e)||e.length===0?null:s("div",{className:"cm-msg err"},s("div",null,t("secretMigrationPending")),s("div",null,e.join("、")))}function Rt({size:e=16,className:t}){return s("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M4 4H12A2 2 0 0 1 14 6V11.5A2 2 0 0 1 12 13.5H4A2 2 0 0 1 2 11.5V6A2 2 0 0 1 4 4ZM4 5.3H12A0.7 0.7 0 0 1 12.7 6V11.5A0.7 0.7 0 0 1 12 12.2H4A0.7 0.7 0 0 1 3.3 11.5V6A0.7 0.7 0 0 1 4 5.3Z",fill:"currentColor",fillRule:"evenodd"}),s("path",{d:"M3.3 5.3H12.7V7.1H3.3Z",fill:"currentColor"}),s("path",{d:"M8 2.8A1.3 1.3 0 1 0 8 5.4A1.3 1.3 0 1 0 8 2.8Z",fill:"currentColor"}))}function la(e){return e?"Conversation cost details":"本会话费用明细"}function kn(e,t){const n=Se(!1),a=Se(""),o=t!==null&&typeof t=="object"?[t.input,t.cacheRead,t.cacheWrite,t.output,t.reasoning,t.cost].map(l=>String(l??0)).join("|"):"";J(()=>{if(!n.current){n.current=!0,a.current=o;return}if(o===""||o===a.current)return;a.current=o;const l=setTimeout(()=>{e.api?.reload?.()},800);return()=>clearTimeout(l)},[o])}function Xs(e,t,n,a){const o=t?t.own:e;if(!n||!t?.subagentCount)return o;const l=t.subagents,r={...o};for(const i of["input","output","cacheRead","cacheWrite","reasoning","calls","cost",...St])r[i]=(o?.[i]??0)+(l?.[i]??0);r.apiCost=yn(o,a)+ct(l);for(const i of["byModel","byProviderModel"]){r[i]={...o?.[i]};for(const[c,u]of Object.entries(l?.[i]??{})){const d={...r[i][c]};d.apiCost=ct(d)+ct(u);for(const m of["input","output","cacheRead","cacheWrite","reasoning","calls","cost",...St])d[m]=(d[m]??0)+(u[m]??0);r[i][c]=d}}return r}function eo(e){const t=e.useProjection?e.useProjection("costUsage"):void 0,n=e.useCost?.(u=>u)?.state,a=n?.config,[o,l]=L(null);kn(e,t);const r=["input","output","cacheRead","cacheWrite","reasoning","calls","cost","apiCost"].map(u=>t?.[u]??"").join(":");J(()=>{if(!e.sessionId||!e.api?.getSessionCost)return;let u=!0,d=!1;const m=async()=>{if(!(d||typeof document<"u"&&document.hidden)){d=!0;try{const f=await e.api.getSessionCost(e.sessionId);u&&l({id:e.sessionId,include:a?.includeSubagentCost===!0,value:f})}catch{u&&l(f=>f?.id===e.sessionId&&f.include===(a?.includeSubagentCost===!0)?f:{id:e.sessionId,include:a?.includeSubagentCost===!0,value:null})}finally{d=!1}}};m();const g=a?.includeSubagentCost===!0?setInterval(m,1e4):null,b=()=>{document.hidden||m()};return typeof document<"u"&&document.addEventListener?.("visibilitychange",b),()=>{u=!1,g!==null&&clearInterval(g),typeof document<"u"&&document.removeEventListener?.("visibilitychange",b)}},[e.sessionId,n?.meta?.now,r,a?.includeSubagentCost]);const i=o&&o.id===e.sessionId&&o.include===(a?.includeSubagentCost===!0)?o:null,c=i?.value;return{usage:Xs(t,c,a?.includeSubagentCost||c&&c.subagentCount>0,a),config:a,pending:!!e.sessionId&&!!e.api?.getSessionCost&&!i,unrecorded:!!c&&!c.found&&!c.subagentCount}}function to(e){const t=j(e.config)==="en";return e.pending?t?"Loading session cost…":"正在读取本会话费用…":e.unrecorded?t?"Session cost: no ledger records":"本会话暂无账本记录":e.usage?"":t?"Session cost unavailable":"本会话费用暂不可用"}function ao(e,t){if(Number.isFinite(e?.costCny)||Number.isFinite(e?.costEur)){const o=_(e,{...t,showTotalWithPlan:!0}),l=_(e,{...t,showTotalWithPlan:!1});return{cost:t.showTotalWithPlan?o:l,planPart:t.showTotalWithPlan?0:Math.max(0,o-l)}}let n=0,a=Ot(e,t);if(t.showTotalWithPlan!==!0&&(e.apiCost!==void 0||bn(e,t))){const o={total:Ot(e,t),api:yn(e,t)};n=Math.max(0,o.total-o.api),n>0&&(a=o.api)}return{cost:a,planPart:n}}function no(e,t){return Object.entries(e?.byProviderModel??{}).filter(([,n])=>n.input||n.output||n.cacheRead||n.cacheWrite||n.reasoning).map(([n,a])=>ht(n)+" "+K(_(a,{...t,showTotalWithPlan:!0}),t)).join("; ")}function so(e){const t=e.useCost?.(h=>h)?.state?.config,[n,a]=L(null),[o,l]=L(""),r=e.turn?.start?.seq,i=e.turn?.end?.seq,c=e.sessionId,u=JSON.stringify([t?.prices,t?.priceOverrides,t?.priceMatch,t?.planBilling,t?.codingPlans,t?.goQuota?.enabled,t?.peakEnabled,t?.peakEffectiveAt,t?.peakWindows,t?.peakHolidays,t?.exchangeRate]);if(J(()=>{let h=!0;if(a(null),l(""),!(t?.hideTurnCost||!c||r==null||i==null))return e.api.getTurnCost(c,r,i).then(A=>{h&&a(A)},A=>{h&&l(String(A.message??A))}),()=>{h=!1}},[c,r,i,u,t?.hideTurnCost]),!t||t.hideTurnCost||r==null||i==null)return null;const d=j(t)==="en",m=d?{input:"Input",output:"Output",cacheRead:"Cache read",cacheWrite:"Cache write",reasoning:"Reasoning"}:{input:"输入",output:"输出",cacheRead:"缓存读取",cacheWrite:"缓存写入",reasoning:"推理"},g=h=>{const A=Number(t.exchangeRate),x=h*(Number.isFinite(A)&&A>0?A:1),y=t.decimals??2;return K(h,x>0&&x<10**-(y+2)?{...t,decimals:Math.max(8,y)}:t)},b=h=>K(h,{...t,decimals:Math.max(8,t.decimals??2)}),f=d?{model:"Model call",compaction:"Context compaction",search:"Native search",fetch:"Web fetch"}:{model:"模型调用",compaction:"上下文压缩",search:"原生搜索",fetch:"网页抓取"},k=(h,A)=>s("div",{key:A,style:{marginBottom:4,overflowWrap:"anywhere"}},ht(h.provider+":"+h.model)+" · "+(m[h.bucket]||(h.bucket==="fetchRequests"?d?"Fetch requests":"抓取请求":d?"Search requests":"搜索请求"))+(h.plan?" (Plan)":"")+": "+(h.requests?h.requests+(d?" requests":" 次"):h.tokens.toLocaleString())+" × "+(h.priced?b(h.rate):"?")+(h.requests?" ≈ ":" / 1,000,000 ≈ ")+(h.priced?g(h.cost):"?"),h.priced?h.bucket==="reasoning"&&h.rate===0?d?" (no separate charge)":"(不单独收费)":"":d?" (price unavailable)":"(未配置价格)");return s("details",{className:"cm-note",style:{fontSize:12,marginTop:6}},s("summary",{style:{cursor:"pointer"},title:d?"Log estimate at configured prices; session cost uses recorded ledger amounts.":"本轮按日志和配置价格估算,本会话按账本已入账金额汇总。"},d?"Turn cost":"本轮费用",n?.found?" ≈ "+g(_(n,t))+(n.rows.some(h=>!h.priced)?d?" + unpriced usage":" + 未定价用量":""):n?.inherited?d?" · inherited history":" · 继承历史":o?" ⚠":""),o?s("div",{role:"alert"},o):n?n.found?s(D,null,s("p",null,d?"Estimated from recorded usage and configured prices; rates per 1M tokens.":"按已记录用量和配置价格估算;单价单位为每百万 Token。"),s("p",null,"API ≈ "+g(_(n,{...t,showTotalWithPlan:!1}))+" · Plan ≈ "+g(_(n,{...t,showTotalWithPlan:!0})-_(n,{...t,showTotalWithPlan:!1}))+(d?" (equivalent)":"(等值)")),n.rows.map(k),s("details",null,s("summary",{style:{cursor:"pointer"}},(d?"Individual calls":"逐次调用明细")+" ("+n.calls.length+")"),n.calls.map((h,A)=>s("details",{key:A,style:{margin:"6px 0"}},s("summary",{title:h.provider+":"+h.model,style:{cursor:"pointer",overflowWrap:"anywhere"}},"#"+(A+1)+" "+f[h.kind]+" · "+ht(h.provider+":"+h.model)+" · "+new Date(h.atMs).toLocaleTimeString()+" · "+(h.plan?"Plan ":"API ")+(h.priced?"≈ "+g(h.cost):d?"price unavailable":"未配置价格")+(h.longContext?d?" · long context":" · 长上下文价格":"")),h.metering?s("p",null,"billion-context · "+h.metering.upstream+(h.metering.attempt>1?(d?" · Retry ":" · 重试 ")+h.metering.attempt:"")+(h.metering.complete?"":d?" · partial usage":" · 用量回执不完整")):null,h.rows.map(k))))):n.inherited?d?"Inherited usage is not billed again in this conversation.":"继承的历史用量不在本会话重复计费。":d?"Complete usage records unavailable":"没有完整用量记录":d?"Loading…":"加载中…")}function oo(e){const t=e.useCost?.(v=>v),n=eo(e),{usage:a,config:o}=n,[l,r]=L(null),i=e.entryPosition!=="header"&&o?.hideSessionCostDock===!0,c=!i&&!!e.sessionId&&l===e.sessionId;if(J(()=>{r(null)},[e.sessionId,i]),i||!e.sessionId)return null;const u=j(o)==="en",d=V(j(o)),m=o?to(n):t?.error||(u?"Loading…":"加载中…"),g=s(zn,{open:c,onClose:()=>r(null),sessionId:e.sessionId,state:t?.state,error:t?.error,api:e.api});if(o&&m)return s(D,null,s("span",{className:"cm-dp-status",role:"status",title:m},m),g);const{cost:b,planPart:f}=a&&o?ao(a,o):{cost:0,planPart:0},k={amount:K(b,o),planAmount:K(f,o),hitRate:gn(a)>0?((a?.cacheRead??0)/gn(a)*100).toFixed(1)+"%":"—",input:I(a?.input??0),cache:I((a?.cacheRead??0)+(a?.cacheWrite??0)),output:I(a?.output??0)},h=o?d(f>0?"sessionLineSplit":"sessionLine",k):m,A=o?no(a,o):"",x=la(u),p=e.entryPosition==="header"||o?.sessionCostCompact===!0?f>0?"sessionLineSplitCompact":"sessionLineCompact":f>0?"sessionLineSplit":"sessionLine",N=m||d(p,k),w=()=>Aa(e.api?.loadStatistics,{state:t?.state,sessionId:e.sessionId});return s(D,null,s(z,{portal:!0,label:[h,o?.includeSubagentCost?u?"Includes subagents":"含子代理":u?"Main session only":"仅主会话",A].filter(Boolean).join("; "),side:"top"},s("button",{type:"button",className:"cm-dp"+(e.entryPosition==="header"?" cm-dp-header":""),"aria-label":x,"aria-haspopup":"dialog","aria-expanded":c,onMouseEnter:w,onFocus:w,onClick:()=>r(e.sessionId)},s("span",{className:"cm-dl"},N))),g)}const lo={CNY:"¥",USD:"$",EUR:"€",GBP:"£",JPY:"JP¥",KRW:"₩",INR:"₹",HKD:"HK$",SGD:"S$",AUD:"A$",CAD:"C$",CHF:"CHF",NZD:"NZ$",BRL:"R$",MXN:"MX$",ZAR:"R",TRY:"₺",SEK:"kr",NOK:"NKr",DKK:"Dkr",PLN:"zł",THB:"฿",IDR:"Rp",MYR:"RM",PHP:"₱",ILS:"₪"};function xn(e,t){const n=e?.symbol||"$";return!t||t===e?.currency?n:lo[t]??t+" "}function wn(e,t,n){const a=t?.balance?.currency,o=(a==="display"?t?.currency:a)??n,l=t?.fxRates;return o!==n&&l?.[n]>0&&l?.[o]>0?[e/l[n]*l[o],o]:[e,n]}function Le(e,t,n){const a=typeof n=="string"?n.toUpperCase():"",[o,l]=wn(e,t,a);return ue(o,{symbol:xn(t,l),decimals:Math.max(2,Math.min(10,Math.floor(Number(t?.decimals)||2)))})}function Nn(e,t){const n=Number(e?.balance?.budgetCap);if(Number.isFinite(n)&&n>0)return n;const a=Number(t?.maxBudget);return Number.isFinite(a)&&a>0?a:null}function ro(e){const t=e.today,n=t?.byProviderModel;if(n===null||typeof n!="object"||Object.keys(n).length===0)return Number(t?.cost)||0;let a=0;for(const[o,l]of Object.entries(n)){const r=o.indexOf(":");let i=r>=0?o.slice(0,r):o;i.startsWith("llm-")&&(i=i.slice(4)),/^deepseek(?:-official|-account)?$/.test(i)&&(a+=Number(l?.cost)||0)}return a}function Sn(e,t,n,a,o=null){const l=n==="official"?ro(e):Number(e.today?.cost)||0,r=n==="custom"?mt(t,a,o):e.balance?.currency;if(r==="USD")return l;if(r==="CREDITS")return 0;const i=Number(t?.fxRates?.[r]??t?.exchangeRate);return l*(Number.isFinite(i)&&i>0?i:1)}function ra({remaining:e,spend:t,todayUsed:n,cap:a}){if(a===null||a<=0)return{remainingPct:100,todayPct:0,spentPct:0,hasCap:!1,pastSpend:0,today:0};const o=Math.max(0,Number(e)||0),l=Math.max(0,Number(t)||0),r=Math.max(0,Math.min(l,Number(n)||0)),i=Math.max(0,l-r),c=Math.max(0,Math.min(100,o/a*100)),u=Math.max(0,Math.min(100-c,r/a*100)),d=Math.max(0,Math.min(100-c-u,i/a*100));return{remainingPct:c,todayPct:u,spentPct:d,hasCap:!0,pastSpend:i,today:r}}function ia(e,t,n=null,a=null){const o=n??e.customBalance;if((a??t?.customBalance)?.adapter==="tokenrhythm")return{cap:null,...ra({remaining:o?.remaining,cap:null})};const l=Nn(mt(t,o,a)==="CREDITS"?null:t,o),r=Number(o?.remaining)||0,i=Number(o?.spend)||0,c=Sn(e,t,"custom",o,a);return{cap:l,...ra({remaining:r,spend:i,todayUsed:c,cap:l})}}function io(e,t){const n=e.balance,a=Nn(t,null),o=Number(n?.totalBalance)||0,l=Sn(e,t,"official",null),r=a!==null?Math.max(0,a-o):0;return{cap:a,...ra({remaining:o,spend:r,todayUsed:l,cap:a})}}function ca(e){const{segments:t,direction:n="remaining"}=e,{remainingPct:a,todayPct:o,spentPct:l}=t,r=[];a>0&&r.push(s("div",{className:"cm-bbox-fill",style:{width:a+"%"}})),o>0&&r.push(s("div",{className:"cm-bbox-seg-today",style:{width:o+"%"}})),l>0&&r.push(s("div",{className:"cm-bbox-seg-spent",style:{width:l+"%"}})),r.length===0&&r.push(s("div",{className:"cm-bbox-fill",style:{width:"100%"}}));const i=n==="used"?[...r].reverse():r;return s("div",{className:"cm-bbox-bar segments"+(n==="used"?" rev":"")},...i)}function co(e,t,n,a,o){const l=[e("balanceBarRemaining",{amount:a})];return n.today>0&&l.push(e("balanceBarToday",{amount:t(n.today)})),n.pastSpend>0&&l.push(e("balanceBarSpent",{amount:t(n.pastSpend)})),o!==null&&o>0&&l.push(e("balanceBudgetCapLabel")+": "+t(o)),l.join(" · ")}function Ee(e){const[t,n]=L(!1),[a,o]=L(null);return{busy:t,err:a,run:()=>{t||typeof e!="function"||(n(!0),o(null),Promise.resolve().then(e).catch(r=>{o(r?.message??String(r))}).finally(()=>{n(!1)}))}}}const be=(e,t)=>({role:"button",tabIndex:0,"aria-busy":e?"true":"false",onClick:t,onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),t())}});function Ae(e,t){const n=[e("clickToRefresh")];return t.busy&&n.push(e("refreshing")),t.err&&n.push("⚠ "+e("queryFailed")+": "+t.err),n}const uo="https://platform.deepseek.com/usage";function dt(e,t=uo,n=e("balanceRechargeLink")){if(!t)return null;try{const a=new URL(t);if(!["http:","https:"].includes(a.protocol)||a.username||a.password)return null}catch{return null}return s("a",{className:"cm-bal-link",href:t,target:"_blank",rel:"noreferrer noopener",title:n,"aria-label":n,onClick:a=>a.stopPropagation(),onKeyDown:a=>a.stopPropagation()},s("svg",{width:14,height:14,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0},s("path",{d:"M8 4H4a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-4M11 3h6v6M9 11l8-8"})))}const Dt=hn({});function Bt(e,t,n){const a=()=>{const u=Dt.getSnapshot()[t];if(u!==void 0)return u;try{return window.localStorage?.getItem("cm.balance.hidden."+t)==="1"}catch{return!1}},[o,l]=L(a);J(()=>{const u=()=>l(a()),d=Dt.subscribe(u);return u(),d},[t]);const r=e.balance?.quickHide===!0,i=r&&o,c=u=>{u.stopPropagation();const d=!a();try{window.localStorage?.setItem("cm.balance.hidden."+t,d?"1":"0")}catch{}Dt.set({...Dt.getSnapshot(),[t]:d}),l(d)};return{hidden:i,label:u=>r?s("span",{role:"button",tabIndex:0,"aria-pressed":i,title:n("balanceToggle"),onClick:c,onKeyDown:d=>{d.stopPropagation(),(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),c(d))}},u):u,tip:[n("balanceHidden"),n("balanceToggle")].join(" · ")}}function ua(e){const{state:t,wide:n,api:a}=e,o=t.balance,l=V(j(t.config)),r=Ee(a?()=>a.refreshBalance():null),i=Bt(t.config,e.accountId??"official",l),c=e.label??Cn(l,t.config);if(!o||o.status==="off")return null;if(o.status==="error")return s(z,{portal:!0,label:[l("balanceQueryFailed",{message:o.message||l("unknownError")}),...Ae(l,r)].join("; "),side:"right",delayMs:300},s("div",{"data-cm-display":"balance",className:"cm-foot clickable"+(n?"":" cm-foot-rail")+" cm-bal-err"+(r.busy?" busy":""),...be(r.busy,r.run)},n?s(D,null,c," ",s("span",{className:"cm-num"},l("queryFailed"))):"⚠"));const u=i.hidden?i.tip:vn(l,o,t.config,t.reconcile,r);return s(z,{portal:!0,label:e.label?s(D,null,s("strong",null,e.label),u):u,side:"right",delayMs:300},s("div",{"data-cm-display":"balance",className:"cm-foot clickable"+(n?"":" cm-foot-rail")+(r.busy?" busy":""),...be(r.busy,r.run)},n?s(D,null,s("span",{className:"cm-balance-name"},i.label(c),dt(l)),s("span",{className:"cm-num cm-bal-amt"},i.hidden?"••••":Le(o.totalBalance,t.config,o.currency)),t.reconcile?.ok===!1?" ⚠":""):s(Rt,{size:16})))}function mo(e,t,n){if(n||e.config?.balance?.officialChannelOnly!==!0)return!0;const a=o=>/^(?:llm-)?deepseek(?:-official|-account)?$/.test(String(o).trim().toLowerCase());return typeof t=="string"&&t.trim()?a(t):Object.keys(e.today?.byProviderModel??{}).some(o=>a(o.split(":")[0]))}function Cn(e,t){return e(t?.balance?.showSource===!0?"officialBalance":"balance")}function vn(e,t,n,a,o){const l=[e("officialBalance")+" "+Le(t.totalBalance,n,t.currency),e("grantedToppedUp",{granted:Le(t.grantedBalance,n,t.currency),toppedUp:Le(t.toppedUpBalance,n,t.currency)}),...a?.ok===!1?["⚠ "+a.message]:[],...Ae(e,o)];return s("div",{style:{maxWidth:"min(280px, 70vw)",whiteSpace:"normal"}},...l.map((r,i)=>s("div",{key:i},r)))}function po(e){const{state:t,wide:n,api:a}=e,o=t.config,l=t.balance,r=V(j(o)),i=Ee(a?()=>a.refreshBalance():null),c=Bt(o,"official",r);if(!l||l.status!=="ok")return null;const u=io(t,o),d=c.hidden?"••••":Le(l.totalBalance,o,l.currency),m=c.hidden?c.tip:vn(r,l,o,t.reconcile,i),g=s(D,null,s("div",{className:"cm-bbox-head"},s("span",{className:"cm-balance-name"},s("span",{className:"cm-bbox-label"},c.label(Cn(r,o))),dt(r)),s("span",{className:"cm-bbox-pct cm-num cm-bal-amt"},d)),c.hidden?null:s(ca,{segments:u,direction:ce(o,"balance")}));return s(z,{portal:!0,label:m,side:"right",delayMs:300},s("div",{"data-cm-display":"balance",className:"cm-bbox clickable"+(n?"":" rail")+(i.busy?" busy":""),...be(i.busy,i.run)},n?g:s("div",{className:"cm-bbox-rail cm-num"},c.hidden?"••••":Math.round(u.remainingPct)+"%")))}function da(e,t){const n=typeof e?.label=="string"?e.label:"",a=typeof e?.labelEn=="string"?e.labelEn:"";return t==="en"?a||n||"Custom balance":n||a||"自定义余额"}function mt(e,t,n){if((n??e?.customBalance)?.adapter==="tokenrhythm")return"CNY";if((n??e?.customBalance)?.adapter==="aliyun"&&["CNY","USD","EUR"].includes(t?.unit))return t.unit;const a=n?.unit??e?.customBalance?.unit;return["CNY","EUR","USD","CREDITS"].includes(a)?a:["CNY","EUR","CREDITS"].includes(t?.unit)?t.unit:"USD"}function Ye(e,t,n,a){const o=mt(t,n,a),l=Number(e);if(!Number.isFinite(l))return"—";const r=Math.max(2,Math.min(6,Math.floor(Number(t?.decimals)||4)));if(o==="CREDITS")return ln(l,r)+" Credits";const i=t?.currency==="USD"?1:Number(t?.exchangeRate);if((a??t?.customBalance)?.convertToDisplayCurrency===!0&&o==="USD"&&(t?.balance?.currency??"native")==="native"&&i>0&&Number.isFinite(i)){const m=l*i;return Number.isFinite(m)?ue(m,t):"—"}const[u,d]=wn(l,t,o);return Number.isFinite(u)?ue(u,{symbol:xn(t,d),decimals:r}):"—"}function ma(e,t,n,a,o=null){const l=Ye(e.remaining,t,e,o);if((o??t?.customBalance)?.adapter==="tokenrhythm")return n("customBalanceRemaining",{amount:l});const r=g=>Ye(g,t,e,o);if(a&&t.balance?.showProgressBar===!0){const g=ia(a,t,e,o);return[co(n,r,g,l,g.cap),n("updatedAt",{time:e.fetchedAt>0?new Date(e.fetchedAt).toLocaleTimeString():"—"})].join(" · ")}const i=e.spend!==null?r(e.spend):"—",c=e.maxBudget!==null?r(e.maxBudget):"—",u=mt(t,e,o)==="CREDITS"?NaN:Number(t?.balance?.budgetCap),d=Number.isFinite(u)&&u>0?n("balanceBudgetCapLabel")+": "+r(u):"",m=e.maxBudget!==null&&e.spend!==null?n("customBalanceLine",{remaining:l,spend:i,maxBudget:c,time:e.fetchedAt>0?new Date(e.fetchedAt).toLocaleTimeString():"—"}):n("customBalanceRemaining",{amount:l});return d?m+" · "+d:m}function fo(e,t,n,a,o,l){const r=da(o??t.customBalance??{},j(t)),i=l?.hidden?"••••":Ye(a.remaining,t,a,o),c=ia(e,t,a,o);return{level:"ok",rail:l?.hidden?"••••":Math.round(c.remainingPct)+"%",body:s(D,null,s("div",{className:"cm-bbox-head"},s("span",{className:"cm-balance-name"},s("span",{className:"cm-bbox-label"},l?l.label(r):r),dt(n,o?.dashboardUrl||"",r)),s("span",{className:"cm-bbox-pct cm-num cm-bal-amt"},i)),l?.hidden?null:s(ca,{segments:c,direction:ce(t,"balance")}))}}function Lt(e,t){const n=t?.customBalances??[],a=Array.isArray(e?.customBalances)?e.customBalances:[],o=[];return n.forEach((l,r)=>{if(l?.enabled!==!0||l.display!=="sidebar"&&l.display!=="both")return;const i=a.find(c=>c.index===r)??(a.length===1&&n.length===1?a[0]:null);o.push({index:r,entry:l,snapshot:i})}),o.length===0&&a.length===0&&t?.customBalance?.enabled===!0&&(t.customBalance.display==="sidebar"||t.customBalance.display==="both")&&e?.customBalance?.status&&e.customBalance.status!=="off"&&o.push({index:null,entry:t.customBalance,snapshot:e.customBalance}),o}function bo(e){const{state:t,wide:n,api:a}=e,o=t.config,l=V(j(o)),r=Lt(t,o);return r.length===0?null:s(D,null,r.map(({index:i,entry:c,snapshot:u})=>s(c.adapter==="tokenrhythm"?An:go,{key:"cb-"+i,state:t,wide:n,api:a,t:l,index:i,entry:c,snapshot:u})))}function go(e){const{state:t,wide:n,api:a,t:o,index:l,entry:r,snapshot:i}=e,c=t.config,u=Bt(c,"custom-"+l,o),d=Ee(a?()=>a.refreshCustomBalance(l):null);if(i==null||i.status!=="ok")return null;const m=fo(t,c,o,i,r,u),g=u.hidden?u.tip:[ma(i,c,o,t,r),...Ae(o,d)].join(" · ");return s(z,{portal:!0,label:g,side:"right",delayMs:300},s("div",{"data-cm-display":"customBalance",className:"cm-bbox clickable"+(m.level==="ok"?"":" "+m.level)+(n?"":" rail")+(d.busy?" busy":""),...be(d.busy,d.run)},n?m.body:s("div",{className:"cm-bbox-rail cm-num"},m.rail)))}function yo(e){const{state:t,wide:n,api:a}=e,o=t.config,l=V(j(o)),r=Lt(t,o);return r.length===0?null:s(D,null,r.map(({index:i,entry:c,snapshot:u})=>s(An,{key:"cbr-"+i,state:t,wide:n,api:a,t:l,index:i,entry:c,snapshot:u})))}function An(e){const{state:t,wide:n,api:a,t:o,index:l,entry:r,snapshot:i}=e,c=t.config,u=Bt(c,"custom-"+l,o),d=i??Ka(l),m=Ee(a?()=>a.refreshCustomBalance(l):null);if(d.status==="off")return null;const g=da(r??c.customBalance??{},j(c));if(d.status==="error")return s(z,{portal:!0,label:[d.message||o("unknownError"),...Ae(o,m)].join("; "),side:"right",delayMs:300},s("div",{"data-cm-display":"customBalance",className:"cm-foot clickable"+(n?"":" cm-foot-rail")+" cm-bal-err"+(m.busy?" busy":""),...be(m.busy,m.run)},n?s(D,null,s("span",{className:"cm-balance-name"},s("span",{className:"cm-bal-label",title:g},g),dt(o,r?.dashboardUrl||"",g)),s("span",{className:"cm-num cm-bal-amt"},o("queryFailed"))):"⚠"));const b=u.hidden?"••••":Ye(d.remaining,c,d,r),f=u.hidden?u.tip:[ma(d,c,o,t,r),...Ae(o,m)].join(" · ");return s(z,{portal:!0,label:f,side:"right",delayMs:300},s("div",{"data-cm-display":"customBalance",className:"cm-foot clickable"+(n?"":" cm-foot-rail")+(m.busy?" busy":""),...be(m.busy,m.run)},n?s(D,null,s("span",{className:"cm-balance-name"},s("span",{className:"cm-bal-label",title:g},u.label(g)),dt(o,r?.dashboardUrl||"",g)),s("span",{className:"cm-num cm-bal-amt"},b)):s(Rt,{size:16})))}function Mn(e){const n=(e.useCost?e.useCost(f=>f):void 0)?.state;if(!n)return null;const a=n.config,o=V(j(a)),l=a.corner??{enabled:!1,goRolling:!0,goWeekly:!0,goMonthly:!0,budget:!0},r=n.goQuota,i=a?.goQuota?.enabled!==!1&&r?.status==="ok",c=f=>f!==null&&typeof f?.percent=="number"?Math.round(Math.max(0,Math.min(100,f.percent))):null,u=[];if(a.sidebarModels?.dock){const f=$n(n,a.sidebarModels.period,o);f.length&&u.push({key:"model-top",text:s(D,null,s("span",{className:"cm-bal-label"},f[0].label),s("span",{className:"cm-bal-amt"},K(f[0].cost,a))),tip:f[0].label+" "+K(f[0].cost,a),level:"ok"})}const d=(f,k,h,A)=>{if(!l.enabled||!f||!i)return;const x=c(k);if(x===null)return;const y=typeof k.resetsAt=="string"&&k.resetsAt.length>0?o("goResetAt",{time:new Date(k.resetsAt).toLocaleString()}):"";u.push({key:h,text:o(h)+" "+x+"%",tip:o(A)+": "+x+"%"+(y?" · "+y:""),level:x>=100?"over":x>=80?"warn":"ok"})},m=a?.goQuota?.main==="weekly"||a?.goQuota?.main==="monthly"?a.goQuota.main:"rolling",g=[m,...["rolling","weekly","monthly"].filter(f=>f!==m)],b=f=>f==="rolling"?["goRolling",r?.rolling,"goShortRolling","cornerGoRolling"]:f==="weekly"?["goWeekly",r?.weekly,"goShortWeekly","cornerGoWeekly"]:["goMonthly",r?.monthly,"goShortMonthly","cornerGoMonthly"];for(const f of g){const[k,h,A,x]=b(f);d(l[k]===!0,h,A,x)}if(l.enabled&&l.budget===!0){const f=a.budget??{enabled:!1,amount:100,period:"month"};if(f.enabled===!0){const k=Number(a.exchangeRate),A=(n.budgetUsed??(f.period==="day"?_(n.today,a):f.period==="all"?_(n.total,a):_(n.month,a)))*(Number.isFinite(k)&&k>0?k:1),x=Math.max(0,Number(f.amount)||0),y=x>0?Math.min(999,A/x*100):null;if(y!==null){const p=y>=100?"over":y>=80?"warn":"ok";u.push({key:"budget",text:o("budgetShort")+" "+y.toFixed(1)+"%",tip:o("budgetOf",{period:o(st[f.period]??"periodMonth")})+" · "+o("usedOf",{used:ue(A,a),amount:ue(x,a)}),level:p})}}}return u.length===0?null:s("div",{className:"cm-corner"},u.map(f=>s(z,{portal:!0,key:f.key,label:f.tip,side:"top",delayMs:500},s("span",{className:"cm-corner-chip"+(f.key==="model-top"?" cm-model-top":"")+(f.level==="ok"?"":" "+f.level)},f.text))))}function pa(e,t,n,a){if(a==="volcengine"&&(n=[]),!Array.isArray(t)||t.length===0||!Number.isFinite(e))return null;const o=(b,f)=>{const k=new Date(e);return k.setUTCDate(k.getUTCDate()+b),k.setUTCHours(f,0,0,0),k.getTime()},l=new Set,r=Math.max(12,Math.min(380,(Array.isArray(n)?n.length:0)+7));for(let b=-r;b<=r;b+=1){l.add(o(b,16));for(const f of t){const k=Number(f?.start),h=Number(f?.end);!Number.isFinite(k)||!Number.isFinite(h)||(l.add(o(b,k)),l.add(o(h<=k?b+1:b,h)))}}const i=[...l].sort((b,f)=>b-f).flatMap(b=>{const f=Mt(b-1,void 0,t,n),k=Mt(b,void 0,t,n);return f===k?[]:[{at:b,intoPeak:k}]});let c=null,u=null;for(const b of i)b.at<=e&&(c===null||b.at>c.at)&&(c=b),b.at>e&&(u===null||b.at<u.at)&&(u=b);const d=an(e,n),m=d??tn(e);return m!==null?u===null?null:{inPeak:!1,weekend:d===null,...d?{holiday:!0}:{},prevAtMs:m.start,nextAtMs:u.at,nextIntoPeak:u.intoPeak}:c===null||u===null?null:{inPeak:Mt(e,void 0,t,n),weekend:!1,prevAtMs:c.at,nextAtMs:u.at,nextIntoPeak:u.intoPeak}}function Ie(e,t){if(!e||e.peakNotice===!1||e.peakEnabled!==!0)return null;const n=Date.parse(e.peakEffectiveAt||"");return Number.isFinite(n)&&t<n?null:fa(e,t)}function fa(e,t){const n=String(e?.peakProvider??"").trim().toLowerCase().replace(/^llm-/,""),a=e?.prices?.providers?.[n]??(["deepseek-official","deepseek-account",""].includes(n)?e?.prices?.providers?.deepseek:void 0),o=a&&{peakSchedule:n==="ollama-cloud"&&e.prices.ollamaPeak!==!1?"ollama":["volcengine","ark"].includes(n)&&e.prices.volcenginePeak!==!1?"volcengine":void 0,...a},l={enabled:e?.peakEnabled===!0,effectiveAtMs:Date.parse(e?.peakEffectiveAt),windows:e?.peakWindows,holidays:e?.peakHolidays};return o&&$e(o,t,l)!==null?Ls(o,t,l):pa(t,e?.peakWindows??[],e?.peakHolidays,["volcengine","ark"].includes(n)?"volcengine":void 0)}function ba(e,t){const n=e?.config,a=t??n?.peakProvider??e?.meta?.defaultProvider;return n&&a?{...n,peakProvider:a}:n}function Pn(e,t,n){let a=t.prevAtMs;for(let o=0;o<16;o++){const l=fa(e,a-1);if(!l||l.inPeak!==t.inPeak||l.prevAtMs>=a)break;a=l.prevAtMs}return{start:a,progress:Math.max(0,Math.min(100,(n-a)/Math.max(1,t.nextAtMs-a)*100))}}function Et(e,t,n){const{progress:a}=Pn(e,t,n);return(t.weekend||t.holiday?a:(t.inPeak?0:50)+a/2)+"%"}function Ze(e,t){const[n,a]=L(Date.now());return J(()=>{if(t!==void 0)return;let o;const l=()=>{if(window.clearTimeout(o),document.hidden)return;const r=Date.now(),i=Ie(e,r);a(r),o=window.setTimeout(l,Math.max(100,Math.min(3e4,(i?.nextAtMs??r+3e4)-r)))};return l(),document.addEventListener("visibilitychange",l),()=>{window.clearTimeout(o),document.removeEventListener("visibilitychange",l)}},[t,e.peakWindows,e.peakHolidays,e.peakProvider]),t??n}function Je(e){return e.holiday===!0?{short:"holidayShort",chip:"holidayChip",notice:"holidayAllOffPeak"}:e.weekend===!0?{short:"weekendShort",chip:"weekendChip",notice:"weekendAllOffPeak"}:e.inPeak?{short:"peakShort",chip:"peakShort",notice:"peakNotice"}:{short:"offPeakShort",chip:"offPeakShort",notice:"offPeakActive"}}function Me(e,t,n){const a=Math.max(0,e.nextAtMs-t),o=Math.max(1,Math.ceil(a/6e4)),l=Math.floor(o/60),r=o%60;return l>0?r>0?n("countdownHourMinute",{h:l,m:r}):n("countdownHoursOnly",{h:l}):n("countdownMinute",{m:o})}function On(e){const t=Se(null),n=Se(e.actions);n.current=e.actions,J(()=>{const c=t.current;if(!c)return;try{typeof c.showPopover=="function"?c.showPopover():c.removeAttribute("popover")}catch{c.removeAttribute("popover")}let u=!1;const d=f=>{c.contains(f.target)&&(u=!0,f.stopPropagation())},m=f=>{u&&(u=!1,f.stopPropagation())},b=[["pointerdown",d],["pointerup",m],["pointercancel",m],["touchstart",d],["click",f=>{if(!c.contains(f.target))return;f.stopPropagation();const k=f.target.closest?.("[data-cm-action]");k&&!k.disabled&&n.current[k.dataset.cmAction]?.()}]];for(const[f,k]of b)window.addEventListener?.(f,k,{capture:!0,passive:!0});return()=>{for(const[f,k]of b)window.removeEventListener?.(f,k,!0);try{c.hidePopover()}catch{}}},[]);const{actions:a,children:o,...l}=e,r=s("div",{...l,ref:t,popover:"manual"},o);let i;try{i=he("react-dom")?.createPortal}catch{}return typeof i=="function"?i(r,document.body):r}const ho="cm-peak-alert-preview";function ko(e){return e.useCost?.(n=>n)?.state?.config?.peakEnabled===!0?s(pt,{...e,view:"alert"}):null}function xo(e){const{config:t,t:n}=e,a=Ze(t,e.now),o=Ie(t,a);if(o===null)return null;const l=Je(o),r=o.nextIntoPeak?n("nextPeakIn",{time:Me(o,a,n)}):n("nextOffPeakIn",{time:Me(o,a,n)});return s(z,{portal:!0,label:n(l.notice),side:"right",delayMs:300},s("div",{"data-cm-display":"peak",className:"cm-peak-strip "+(o.weekend||o.holiday?"weekend":o.inPeak?"peak":"off")},s("div",{className:"cm-peak-track"},s("div",{className:"cm-peak-segment cm-peak-high"}),s("div",{className:"cm-peak-segment cm-peak-low"}),s("div",{className:"cm-peak-marker",style:{left:Et(t,o,a)}})),s("span",{className:"cm-peak-chip"},n(l.chip)+" · "+r)))}function wo(e){const{config:t,t:n}=e,a=Ze(t,e.now),o=Ie(t,a);if(o===null)return null;const l=Je(o),r=o.nextIntoPeak?n("nextPeakIn",{time:Me(o,a,n)}):n("nextOffPeakIn",{time:Me(o,a,n)});return s(z,{portal:!0,label:n(l.notice),side:"right",delayMs:300},s("div",{"data-cm-display":"peak",className:"cm-peak-classic "+(o.weekend||o.holiday?"weekend":o.inPeak?"peak":"off")},s("div",{className:"cm-peak-classic-marker",style:{left:"clamp(6px, "+Et(t,o,a)+", calc(100% - 6px))"}}),s("div",{className:"cm-peak-track"},s("div",{className:"cm-peak-segment cm-peak-high"}),s("div",{className:"cm-peak-segment cm-peak-low"})),s("span",{className:"cm-peak-classic-chip"},n(l.chip)+" · "+r)))}let Tn;function No(){return Tn??=he.async("./client.peak.js").then(e=>e.mount({peakView:Ie,peakPhaseAt:pa,peakPhaseForConfig:fa,peakConfigForState:ba,peakPeriodProgress:Pn,usePeakClock:Ze,phaseLabelKeys:Je,countdownText:Me,resolveLocale:j,makeT:V,Tooltip:z,FloatingCard:On})).catch(e=>{throw Tn=null,e})}function pt(e){return s(ae,{...e,load:No,quiet:!0})}function Rn(e,t,n){return t.sidebarTextOnly===!0?s(pt,{config:t,t:n}):s(t?.peakStyle==="progress"?pt:t?.peakStyle==="classic"?wo:xo,{config:t,t:n})}function So(e){const{config:t,t:n}=e,a=Ze(t,e.now),o=Ie(t,a);if(o===null)return null;const l=Je(o),r=o.nextIntoPeak?n("nextPeakIn",{time:Me(o,a,n)}):n("nextOffPeakIn",{time:Me(o,a,n)}),i=[n(l.notice),r];return s(z,{portal:!0,label:i,side:"right",delayMs:300},s("div",{className:"cm-peak-rail "+(o.weekend||o.holiday?"weekend":o.inPeak?"peak":"off"),"aria-label":i.join("; ")},s("div",{className:"cm-peak-rail-track"},s("div",{className:"cm-peak-rail-segment cm-peak-rail-high"}),s("div",{className:"cm-peak-rail-segment cm-peak-rail-low"}),s("div",{className:"cm-peak-rail-marker",style:{top:Et(t,o,a)}})),s("span",{className:"cm-peak-rail-label"},n(l.short))))}function Co(e){const{config:t,t:n}=e,a=Ze(t,e.now),o=Ie(t,a);if(o===null)return null;const l=Je(o),r=o.nextIntoPeak?n("nextPeakIn",{time:Me(o,a,n)}):n("nextOffPeakIn",{time:Me(o,a,n)}),i=[n(l.notice),r];return s(z,{portal:!0,label:i,side:"right",delayMs:300},s("div",{className:"cm-peak-rail-classic "+(o.weekend||o.holiday?"weekend":o.inPeak?"peak":"off"),"aria-label":i.join("; ")},s("div",{className:"cm-peak-rail-classic-track"},s("div",{className:"cm-peak-rail-classic-segment peak"}),s("div",{className:"cm-peak-rail-classic-segment off"}),s("div",{className:"cm-peak-rail-classic-marker",style:{top:Et(t,o,a)}})),s("span",{className:"cm-peak-rail-classic-label"},n(l.short))))}function vo(e,t,n){return t.sidebarTextOnly===!0?s(pt,{config:t,t:n,rail:!0}):s(t?.peakStyle==="progress"?pt:t?.peakStyle==="classic"?Co:So,{config:t,t:n,rail:!0})}function Ao(e,t,n){const a=t.budget??{enabled:!1,amount:100,period:"month"},o=Number(t.exchangeRate),r=(e.budgetUsed??(a.period==="day"?_(e.today,t):a.period==="all"?_(e.total,t):_(e.month,t)))*(Number.isFinite(o)&&o>0?o:1),i=Math.max(0,Number(a.amount)||0),c=i>0?Math.min(999,r/i*100):null,u=we(c===null?null:Math.min(100,c),ce(t,"budget")),d=a.detail!==!1;return{level:c===null?"ok":c>=100?"over":c>=80?"warn":"ok",rail:u.label===null?"—":Math.round(u.label)+"%",body:s(D,null,s("div",{className:"cm-bbox-head"},s("span",{className:"cm-bbox-label"},n("budget")),s("span",{className:"cm-bbox-pct cm-num"},u.label===null?"—":u.label.toFixed(1)+"%")),s("div",{className:"cm-bbox-bar"},s("div",{className:"cm-bbox-fill",style:{width:u.width+"%"}})),d?s(D,null,s("div",{className:"cm-bbox-line cm-num"},n("usedOf",{used:ue(r,t),amount:ue(i,t)}))):null)}}function Mo(e,t,n){const a=e.goQuota,o=t?.goQuota?.main==="weekly"||t?.goQuota?.main==="monthly"?t.goQuota.main:"rolling",l=a[o],r=l!==null&&typeof l?.percent=="number"?Math.max(0,Math.min(100,Number(l.percent)||0)):0,i=b=>b!==null&&typeof b?.percent=="number"?Math.round(we(b.percent,ce(t,"go")).label)+"%":"—",c=b=>n(b==="rolling"?"goShortRolling":b==="weekly"?"goShortWeekly":"goShortMonthly"),u=["rolling","weekly","monthly"].filter(b=>b!==o),d=l!==null&&typeof l?.resetsAt=="string"&&l.resetsAt.length>0?n("goResetAt",{time:new Date(l.resetsAt).toLocaleString()}):"",m=t?.goQuota?.detail!==!1,g=we(r,ce(t,"go"));return{level:r>=100?"over":r>=80?"warn":"ok",rail:g.label===null?"—":Math.round(g.label)+"%",body:s(D,null,s("div",{className:"cm-bbox-head"},s("span",{className:"cm-bbox-label"},n("goQuotaRowLabel")+" "+c(o)),s("span",{className:"cm-bbox-pct cm-num"},g.label===null?"—":Math.round(g.label)+"%")),s("div",{className:"cm-bbox-bar"},s("div",{className:"cm-bbox-fill",style:{width:g.width+"%"}})),m?s(D,null,s("div",{className:"cm-bbox-line cm-num"},u.map(b=>c(b)+" "+i(a[b])).join(" · ")),d?s("div",{className:"cm-bbox-line"},d):null):null)}}function Dn(e,t,n){const a=ce(t,"go");return["rolling","weekly","monthly"].map((o,l)=>{const r=e?.[o],i=typeof r?.percent=="number"&&Number.isFinite(r.percent)?Math.max(0,Math.min(100,r.percent)):null,c=r?.resetsAt&&Number.isFinite(Date.parse(r.resetsAt))?" · "+n("goResetAt",{time:new Date(r.resetsAt).toLocaleString()}):"";return n(["goWindowRolling","goWindowWeekly","goWindowMonthly"][l])+": "+(i===null?"—":Ue(we(i,a).label,a,n))+c}).concat(e?.fetchedAt>0?n("goQuotaFetchedAt",{time:new Date(e.fetchedAt).toLocaleTimeString()}):[]).join(`
2
+ ;(function(at){const Re=window.__ModuleLoader__,ke=Re[Symbol.for("@dsh-plugin/dsh-loader:load-wrap")];return(at.id==="dsh-cost-meter"&&Re.load===ke?.ours&&typeof ke.original=="function"?ke.original:Re.load).call(Re,at)})({id:"dsh-cost-meter",factory:he=>{var at={exports:{}},Re=at.exports;Object.defineProperty(Re,Symbol.toStringTag,{value:"Module"});const ke=he("react"),{Tooltip:z}=he("@deepseek-ai/dsh-client-ui-primitives"),Nt=!1,is="var(--dsw-alias-~.cm-~background:~align-items:center~font-size:~border-radius:~display:flex;~color:~width:~flex-direction:column;~white-space:nowrap~height:~padding:~font-weight:600~overflow:hidden~text-overflow:ellipsis~font-variant-numeric:tabular-nums~justify-content:~box-sizing:border-box~1px solid ~grid-template-columns:~display:~cursor:pointer~gap:~border:~flex-wrap:wrap~margin-top:~flex:none~transform:~padding-bottom:~position:~margin:~overflow-wrap:anywhere~text-align:~var(--dsh-frame-top-clearance,0px)~box-shadow:~overscroll-behavior:contain~border-bottom:~grid-column:~flex:~font:inherit;~font-weight:~overflow:auto;~z-index:~transition:~user-select:none~5px solid ~text-only:~left:~opacity:~outline:~-webkit-app-region:~flex-shrink:0~flex-wrap:nowrap;~border-top:~flex-direction:~outline-offset:~pointer-events:~grid-area:1/1;~var(--cm-opaque-base,#fff)~grid-auto-flow:column;~bottom:~align-self:~var(--cm-dialog-top)~var(--cm-guide-top)~2px solid ~clickable:~right:~--cm-opaque-base:~text-decoration:~--cm-guide-top:~overflow-x:auto~inset:~top:50%;~content:~align-items:~cursor:~3px solid ~6px solid ~animation:~top:0;~action:~order:".split("~"),Fa='|section |tabs>|tab{ƕinline-flex;&;Ƒcenter;ƒ;min-Ƌ32px;ƌ6px 10px;Ɵ0;ƨ?13px;line-Ƌ20px;vertical-align:middle}|peak-alert{ƫ2147483647;max-Ƌcalc(100dvh - 32px);ƪƤ}|peak-alert,|peak-alert *{Ƴno-drag}|peak-alert |peak-alert-actions{ƞrelative;ƛ}|peak-alert |peak-alert-actions button{ƹauto}@property --cm-dialog-top{syntax:"<length>";inherits:true;initial-value:0px}|stat-dialog{--cm-dialog-top:var(--dsh-frame-chrome-top,Ƣ);Ljƿ 0 0 0;Ɵauto;ƈmin(1000px,94vw);max-ƈcalc(100vw - 32px);max-Ƌcalc(100vh - ƿ - 32px);Ǝ;ƒ;ƌ0;ƅ16px;ƘƓ`border-l1);Ƈ`label-primary);$`bg-layer-2,`bg-base,#fff))}|stat-dialog[open]{ƆƷcolumn}|loading{ƌ24px;min-Ƌ160px;ƕgrid;Ɨ18px}|loading i{Ƌ18px;ƅ5px;$`bg-layer-1,#f2f3f5)}|loading i:first-child{ƈ35%}|loading i:last-child{ƈ65%}|stat-dialog-head{Ɔ&;Ƒspace-between;Ɨ16px;ƌ16px 24px;ƥƓ`border-l3);ƛ}|stat-dialog-head strong{?15px;Ʃ500}|stat-dialog-body{ƪmin-Ƌ0;ƌ20px 24px;Ƥ}|stat-dialog::backdrop{Ljvar(--dsh-frame-chrome-top,Ƣ) 0 0;$#0005}|dp{ƒ;min-ƈ0;ƨ?calc(var(--dsh-content-font-size-secondary,13px) - 1px);line-Ƌcalc(20px + var(--dsh-content-font-delta-secondary,0px));ƅvar(--dsw-radius-sm);max-ƈ100%;Ƈ`label-tertiary);Ɛ;Ɗ;$0 0;Ƙnone;&;Ɨ6px;ƌ1px 8px;ƕinline-flex;Ɩ}|dp:hover,|dp[aria-expanded=true]{$`interactive-bg-hover);Ƈ`label-secondary)}|dp-header{max-ƈ180px}|dl{Ə;min-ƈ0;Ǝ}|dp-status{max-ƈ100%;?12px;line-Ƌ20px;Ƈ`label-tertiary);Ɗ;Ǝ;Ə}|foot{Ɔ&;Ɨ6px;Ƌ32px;ƌ0 8px;ƅ8px;?12px;Ƈ`label-secondary);Ɗ;Ǝ}|foot:hover,|foot-rail:hover,|corner-chip:hover,|qchip:hover,|tab:hover,|btn:hover{$`interactive-bg-hover)}|foot-rail{ƈ100%;Ƒcenter;ƌ0;?13px;ƍ;Ƈ`label-primary)}|num{Ɛ}|go-rail{?11px;Ʃ700;Ƈ`label-primary)}|go-list{ƆƉƗ10px}|go-row{Ɔ&;Ɨ8px;?12px}|go-label{ƛ;ƈ88px;Ƈ`label-secondary)}|go-bar{Ƨ1;Ƌ6px;ƅ3px;$`interactive-bg-hover);Ǝ}|go-fill{Ƌ100%;ƅ3px;$`brand-primary)}|go-num{ƛ;min-ƈ44px;ơright;ƍ;Ɛ}|go-reset{ƛ;max-ƈ230px;?11px;Ƈ`label-tertiary);Ɗ;Ǝ;Ə}|go-time{?11px;Ƈ`label-tertiary)}|go-row.main |go-label{ƍ;Ƈ`label-primary)}|corner{ƕinline-flex;Ƨ0 1 auto;ƙ;Ƒcenter;&;Ɨ6px;min-ƈ0;max-ƈ100%}|corner-chip{ƕinline-flex;&;Ƌ20px;ƌ0 8px;ƅ6px;$`bg-layer-2);?11px;line-Ƌ20px;Ƈ`label-secondary);Ɗ;Ɛ}|qstrip{Ɔƙ;Ƒcenter;&;Ɨ6px;ƈ100%;max-ƈvar(--dsh-chat-content-width,720px);Ɵ0 auto;ƒ;ƌ0 calc(var(--dsh-composer-side-clearance,0px) + 16px)}|qchip{ƕinline-flex;&;Ɨ6px;Ƌ22px;ƌ0 8px;ƅ6px;$transparent;?11px;line-Ƌ22px;Ƈ`label-secondary);Ɗ;Ɛ;njdefault}|quota-details{ƞrelative;min-ƈ0}|quota-details>summary{list-style:none;Ɩ}|quota-details>summary::-webkit-details-marker{ƕnone}|quota-detail{white-space:normal;ƒ;ƌ10px;ƘƓ`border-l1);ƅ8px;$`bg-layer-1,#fff);Ƈ`label-primary);?12px;line-Ƌ1.6}|qstrip |quota-detail{ƞabsolute;ƽcalc(100% + 6px);ư0;ƈmin(320px,calc(100vw - 32px));ƫ100}|quota-detail button{ƚ8px}|qchip |qlabel{Ƈ`label-primary);ƍ}|qchip |qbar{ƕblock;ƈ44px;Ƌ4px;ƅ2px;$`border-l1);Ǝ;ƛ}|qchip |qfill{ƕblock;Ƌ100%;ƅ2px;$`state-ok-primary,#3ba272)}|qchip |qseg{ƕinline-flex;&;Ɨ4px}|qchip |qsep{ƈ1px;Ƌ12px;$`border-l1);ƛ}|qchip |qtext{Ƈ`label-secondary)}|qchip.warn |qfill{$`state-warn-primary)}|qchip.over |qfill{$`state-error-primary)}|qchip.action{Ɩ;ƭ;Ʋnone}|qchip.Ǒfocus-visible{ƣ0 0 0 2px `brand-primary)}|qchip.Ǒactive{ƜtranslateY(.5px)}|plan-provider{ƆƉƗ8px}|plan-provider+|plan-provider{ƚ14px}|plan-provider-name{Ɔ&;Ɨ8px;?13px;ƍ}|plan-updated{?11px;Ʃ400;Ƈ`label-tertiary)}|plan-tag{ƛ;margin-ư6px;ƌ0 6px;ƅ999px;ƘƓ`border-l1);?10px;line-Ƌ16px;Ƈ`state-warn-primary)}|plan-reset,|plan-method{?11px;Ƈ`label-tertiary)}|qguide{džvar(--dsh-frame-overlay-top,calc(var(--dsh-frame-chrome-top,Ƣ) + 18px));ƞfixed;Ljauto;Ɵ0;top:max(ǀ,env(safe-area-inset-top,0px));ƹauto;Ƴno-drag;ư50%;Ɯtranslate(-50%);ƫ9999;max-ƈ440px;ƈcalc(100% - 32px);ƘƓ`border-l1);ƅ12px;$`bg-layer-2);ƣ0 8px 28px #0000002e;ƌ14px 16px;?13px;Ƈ`label-primary);ƆƉƗ8px}|qguide[data-cm-onboarding]{ƒ;max-Ƌcalc(100dvh - max(ǀ,env(safe-area-inset-top,0px)) - 16px);ƪƤ}|qguide h4{Ɵ0;?13px;ƍ}|qguide p{Ɵ0;?12px;line-Ƌ1.6;Ƈ`label-secondary)}|qguide |buttons{ƆƗ8px;Ƒflex-end}|section{ƆƉƗ20px;ƌ4px 2px 24px;?13px;Ƈ`label-primary)}|cards{ƕgrid;Ɣrepeat(auto-fit,minmax(min(220px,100%),1fr));Ɨ12px}|overview-grid{container:cm-overview / inline-size;min-ƈ0}|overview-grid>|cards{Ɣrepeat(var(--cm-overview-count,3),minmax(0,1fr))}|overview-grid |card{min-ƈ0;ƆƉƗ6px;ƌ12px 14px}|overview-grid :is(|card-title,|card-sub){Ɵ0}|overview-grid |card-value{line-Ƌ1.35;Ɛ;Ơ}|overview-grid |card-sub{line-Ƌ1.5;Ơ}@container cm-overview (max-ƈ460px){|overview-grid>|cards{Ɣ1fr}}|cards-toggle{Ɔ&;Ɨ6px;Ɵ-6px 2px 0 auto;ƈfit-content;?12px;Ƈ`label-tertiary);Ɩ;ƭ}|cards-toggle:hover{Ƈ`label-primary)}|cards-toggle input{Ɵ0;Ɩ}|card,|budget{ƘƓ`border-l1);ƅ12px;ƌ14px 16px;$`bg-layer-1)}|card-title{?12px;Ƈ`label-tertiary);Ɵ0 0 8px}|card-value{?20px;line-Ƌ28px;ƍ}|card-sub{?12px;Ƈ`label-tertiary);ƚ4px}|h{?13px;ƍ;Ɵ0}|collapse-h{Ɔ&;Ɨ8px;$none;Ƙnone;ƌ0;Ɵ0;Ɩ;Ƈinherit;ƨơleft}|collapse-h:hover |h{Ƈ`interactive-text-hover,`label-primary))}|caret{ƛ;ƈ0;Ƌ0;border-ưƮtransparent;border-ǃƮtransparent;ƶǎ`label-secondary);Ɯrotate(-90deg);Ƭtransform .15s ease}|caret.open{Ɯrotate(0)}|collapse-body{ƆƉƗ12px;ƚ12px}|toolbar{ƆƑflex-end;&;Ɨ10px}|toolbar |field{Ʒrow;&;Ɨ8px}|toolbar |field label{Ɵ0;?12px;Ƈ`label-tertiary)}|toolbar |input{min-ƈ150px;ƌ4px 10px}|tabs-row{Ɔ&;Ƒspace-between;Ɨ12px;ƙ;ƥƓvar(--dsh-alias-border-l1);Ɲ10px}|tabs{Ɔ&;Ɨ4px;ƙ}|tab{ƨ?13px;Ƈ`label-secondary);$transparent;Ƙnone;ƅ8px;ƌ6px 14px;Ɩ;Ɗ}|tab.active{$`state-business-primary);Ƈ`label-primary-inverted);ƍ}|tabs-row |msg{ƌ2px 10px}|tabs-row>|hint,|tabs-row>|msg{margin-inline-start:auto}|note{?12px;Ƈ`label-tertiary);Ɵ0}|table{ƈ100%;border-collapse:collapse;?12px}|table th,|table td{ơleft;ƌ7px 10px;ƥƓ`border-l1);Ɗ}|table th{Ƈ`label-tertiary);Ʃ500}|table td.num,|table th.num{ơright;Ɛ}|table tr:last-child td{ƥnone}|table tr|row-click{Ɩ}|table tr|row-click:hover td{$`bg-hover,rgba(127,127,127,.08))}|sess-title{max-ƈ260px;Ǝ;Ə;Ɗ}|sess-id{?11px;font-family:ui-monospace,Consolas,monospace;Ƈ`label-tertiary)}|empty{?12px;Ƈ`label-tertiary);ƌ8px 0}|scroll{max-Ƌ320px;ƪƘƓ`border-l1);ƅ10px}|grid{ƕgrid;Ɣrepeat(auto-fit,minmax(min(220px,100%),1fr));Ɨ12px}|field{ƆƉƗ6px;min-ƈ0}|field label{?12px;Ƈ`label-secondary)}|input,|input option,|input optgroup{Ƈ`label-primary);$`bg-base)}|input{ƨ?13px;ƘƓ`border-l1);ƅ8px;ƌ6px 10px;Ʋnone}|input:is(select){color-scheme:light dark}|input:is(select) :is(option,optgroup){Ƈ`label-primary)!important;$`bg-base)!important;$rgb(from `bg-base) r g b / 1)!important}|input:focus{border-Ƈ`state-business-primary)}|input.narrow{max-ƈ120px}|range-row{Ɔ&;Ɨ10px}|range{Ƨ1;min-ƈ0;accent-Ƈ`state-business-primary)}|range-value{ƛ;min-ƈ44px;?12px;Ƈ`label-tertiary);ơright}|check{Ɔ&;Ɨ8px;?13px;Ƈ`label-primary);Ɩ}|pricing-page,|pricing-content{ƕgrid;Ɨ20px;min-ƈ0}|pricing-heading{Ɔ&;Ƒspace-between;Ɨ12px}|pricing-heading |h{?16px;margin-ƽ6px}|pricing-heading |note{line-Ƌ1.6}|pricing-unit{ƴ;Ƈ`label-tertiary);?11px}|pricing-nav{ƆƗ4px;ƌ4px;ƅ10px;$`bg-layer-1);ƘƓ`border-l1)}|pricing-nav-item{Ƨ1;min-ƈ0;ƨƇ`label-secondary);$transparent;Ƙ0;ƅ7px;ƌ8px 10px;Ɩ}|pricing-nav-item.active{Ƈ`state-business-primary);$`bg-base);ƣ0 1px 3px #0000000d;ƍ}|pricing-nav-item:focus-visible{Ʋǁ`state-business-primary)}|pricing-tools{ƕgrid;Ɨ16px}|pricing-tool{ƆƉƗ12px;ƌ16px;ƘƓ`border-l1);ƅ12px;min-ƈ0}|pricing-tool>|peak-panel{ƌ0;Ƙ0;$none}|pricing-tool p{line-Ƌ1.65}@media(max-ƈ480px){|pricing-heading{Njflex-start;ƉƗ4px}|pricing-nav-item{ƌ8px 4px;?12px}|pricing-tool{ƌ12px}}|price-card{ƘƓ`border-l1);ƅ10px;ƌ12px 14px;ƆƉƗ10px;$`bg-layer-1)}|price-head{Ɔ&;Ɨ8px;ƙ}|price-name{ƍ;?13px;Ơ;min-ƈ0;Ƨ1 1 180px}|price-legacy{?11px;Ƈ`label-tertiary);ƘƓ`border-l1);ƅ999px;ƌ1px 8px}|price-locked{?11px;Ƈ`state-business-primary);ƘƓ`state-business-primary);ƅ999px;ƌ1px 8px;njhelp}|price-row{ƕgrid;Ɣ52px repeat(4,minmax(0,1fr));Ɨ8px;&}|price-row span{?12px;Ƈ`label-tertiary)}|price-row input{ƈ100%;min-ƈ0;ƒ;ƌ6px 5px}|price-multiplier{Ɔ&;Ƒspace-between;Ɨ6px 12px;ƙ;?12px;Ƈ`label-tertiary)}|price-multiplier label{ƕinline-flex;&;Ɨ5px;Ɩ}|price-multiplier input{Ɵ0;accent-Ƈ`brand-primary,#4d6bfe)}|price-row input[aria-invalid=true]{border-Ƈ#d64c4c}|buttons{Ɔƙ;Ɨ10px;&}|btn{ƨ?13px;Ƈ`label-primary);$`button-elevated-fill);ƘƓ`border-l1);ƅ8px;ƌ6px 14px;Ɩ}|btn|stat-entry{?12px;line-Ƌ20px;ƌ0 6px;min-ƈ0;max-ƈ100%;Ɗ;Ǝ;Ə;ƴ}@media(max-ƈ640px){|stat-header{ƕnone}}|btn.primary{$`state-business-primary);border-Ƈtransparent;Ƈ`label-primary-inverted)}|btn.primary:hover{Ʊ.88;$`state-business-primary)}|btn.danger,|msg.err,|bal-line.err,|bal-err{Ƈ`state-error-primary)}|btn.small{ƌ3px 10px;?12px}|msg{?12px;line-Ƌ18px;ƌ8px 12px;ƅ8px;ƘƓ`border-l1)}|msg.ok{Ƈ`state-success-primary)}|hint{?12px;Ƈ`label-tertiary)}|budget{ƆƉƗ10px}|peak-alert{ƞfixed;Ljauto;Ɵ0;ƒ;ƹauto;Ƴno-drag;Ƈ`label-primary);ƫ9999;ƈ340px;max-ƈcalc(100vw - 32px);ƌ16px;ƅ14px;$`bg-layer-2);ƘƓ`border-l2);ƣ0 14px 36px #00000038;ƆƉƗ8px;?12px;Ǐcm-peak-alert-in .22s cubic-bezier(.2,.8,.2,1)}|peak-alert|peak-alert-corner{ǃ20px;ƽ20px}|peak-alert|peak-alert-center{ljư50%;Ɯtranslate(-50%,-50%);animation-name:cm-peak-alert-in-center}|peak-alert-peak{ƶǍ`state-warn-primary)}|peak-alert-offpeak{ƶǍ`state-info-primary,#3b82f6)}|peak-alert-badge{ƕinline-flex;&;Ɨ6px;?11px;ƍ;letter-spacing:.4px;text-Ɯuppercase}|peak-alert-badge:before{NJ"";ƈ8px;Ƌ8px;ƅ50%;$currentColor;ƣ0 0 0 4px color-mix(in srgb,currentColor 16%,transparent)}|peak-alert-peak |peak-alert-badge{Ƈ`state-warn-primary)}|peak-alert-offpeak |peak-alert-badge{Ƈ`state-info-primary,#3b82f6)}|peak-alert-title{?14px;ƍ;Ƈ`label-primary)}|peak-alert-body{Ƈ`label-secondary);line-Ƌ1.55}|peak-alert-actions{ƆƑflex-end;Ɨ8px;ƚ2px}|row{ƆƗ8px;&;ƙ}@keyframes cm-peak-alert-in{0%{Ʊ0;ƜtranslateY(10px) scale(.98)}to{Ʊ1;ƜtranslateY(0) scale(1)}}@keyframes cm-peak-alert-in-center{0%{Ʊ0;Ɯtranslate(-50%,calc(-50% + 10px))}to{Ʊ1;Ɯtranslate(-50%,-50%)}}|budget-head{Ɔ&;Ƒspace-between;Ɨ8px}|quota-name{Ƨ1;min-ƈ0}|budget-bar{Ƌ8px;ƅ999px;$`bg-layer-3);Ǝ}|budget-fill{Ƌ100%;ƅ999px;$`state-business-primary);Ƭwidth .3s ease}|ug{ƆƉƗ12px}|ug-total{?13px;Ƈ`label-primary)}|ug-grid{ƕgrid;Ƽgrid-template-rows:repeat(7,auto);Ɨ3px;ƈ100%}|ug-cell{ƈ100%;aspect-ratio:1/1;ƅ3px;ƒ;$color-mix(in srgb,`label-primary) 8%,transparent);ƘƓ`border-l1)}|ug-cell.l1,|ug-cell.l2,|ug-cell.l3,|ug-cell.l4{border-Ƈtransparent}|ug-cell.l1{$color-mix(in srgb,`state-business-primary) 25%,`bg-layer-3))}|ug-cell.l2{$color-mix(in srgb,`state-business-primary) 50%,`bg-layer-3))}|ug-cell.l3{$color-mix(in srgb,`state-business-primary) 75%,`bg-layer-3))}|ug-cell.l4{$`state-business-primary)}|ug-cell.today{ƲƓ`label-secondary);Ƹ1px}|ug-months{ƕgrid;ƼƗ3px;ƈ100%;?10px;Ƈ`label-tertiary);ƚ4px}|ug-monthc{Ɗ}|budget-line{?13px;Ƈ`label-secondary)}|budget-line.over{Ƈ`state-error-primary)}|peak-strip{Ɔ&;Ɨ6px;ƚ4px;min-ƈ0}|peak-track{ƞrelative;ƆƧ1;Ƌ6px;min-ƈ0;ƅ999px;Ǝ;ƘƓ`border-l1);$`bg-layer-3)}|peak-segment{Ƌ100%;Ƨ1}|peak-high{$#ff9800}|peak-low{$`state-business-primary)}|peak-marker{ƞabsolute;ǐư50%;ƈ2px;Ƌ100%;$`bg-base);ƣ0 0 0 1px `label-tertiary);Ɯtranslate(-50%);Ƭleft .4s ease;ƫ2}|peak-chip{?11px;ƍ;line-Ƌ1.2;Ɗ;Ƈ`label-secondary)}|peak-classic{ƞrelative;ƆƉƗ5px;ƚ6px;min-ƈ0}|peak-classic |peak-track{ƛ;Ƌ8px}|peak-classic-marker{ƞabsolute;ǐư50%;ƈ4px;Ƌ12px;$`bg-base);Ƙ1.Ʈ#ff9800;ƣ0 0 0 1px `bg-base),0 0 0 2px `label-tertiary);Ɯtranslate(-50%);Ƭleft .4s ease;ƫ2;ƅ2px}|peak-classic-marker:after{NJ"";ƞabsolute;top:-7px;ư50%;Ɯtranslate(-50%);border-ưƮtransparent;border-ǃƮtransparent;ƶǎ#ff9800}|peak-classic.off |peak-classic-marker{border-Ƈ`state-business-primary)}|peak-classic.off |peak-classic-marker:after{border-top-Ƈ`state-business-primary)}|peak-classic-chip{ƾflex-start;?11px;ƍ;line-Ƌ1.4;$`bg-layer-2);ƘƓ`border-l1);ƅ999px;ƌ2px 8px;Ɗ;Ƈ`label-secondary)}|peak-strip.peak |peak-chip,|peak-classic.peak |peak-classic-chip,|peak-rail.peak |peak-rail-label,|peak-rail-classic.peak |peak-rail-classic-label{Ƈ#ff9800}|peak-strip.off |peak-chip,|peak-classic.off |peak-classic-chip,|peak-rail.off |peak-rail-label,|peak-rail-classic.off |peak-rail-classic-label{Ƈ`state-business-primary)}|peak-strip.weekend |peak-chip,|peak-classic.weekend |peak-classic-chip,|peak-rail.weekend |peak-rail-label,|peak-rail-classic.weekend |peak-rail-classic-label{Ƈ#34a853}|peak-classic.weekend |peak-classic-marker{border-Ƈ#34a853}|peak-classic.weekend |peak-classic-marker:after{border-top-Ƈ#34a853}|peak-rail{ƆƉ&;Ɨ3px;ƈ40px;ƒ}|peak-rail-track{ƞrelative;ƆƉƈ6px;Ƌ56px;ƅ999px;Ǝ;ƘƓ`border-l1);$`bg-layer-3)}|peak-rail-segment{ƈ100%;Ƨ1}|peak-rail-high{$#ff9800}|peak-rail-low{$`state-business-primary)}|peak-rail-marker{ƞabsolute;ư0;ljƈ100%;Ƌ2px;$`bg-base);ƣ0 0 0 1px `label-tertiary);ƜtranslateY(-50%);Ƭtop .4s ease;ƫ2}|peak-rail-label{?10px;ƍ;line-Ƌ1.2;Ɗ;Ƈ`label-secondary)}|peak-rail-classic{ƆƉ&;Ɨ3px;ƈ40px;ƒ}|peak-rail-classic-track{ƞrelative;ƆƉƈ14px;Ƌ56px;ƅ999px;ƘƓ`border-l1);$`bg-layer-3)}|peak-rail-classic-segment{ƞrelative;ƈ100%;Ƨ1;Ǝ}|peak-rail-classic-segment.peak{$#ff9800;ƅ999px 999px 0 0}|peak-rail-classic-segment.off{$`state-business-primary);ƅ0 0 999px 999px}|peak-rail-classic-marker{ƞabsolute;ư50%;ljƈ12px;Ƌ4px;$`bg-base);Ƙ1.Ʈ#ff9800;ƣ0 0 0 1px `bg-base),0 0 0 2px `label-tertiary);Ɯtranslate(-50%,-50%);Ƭtop .4s ease;ƫ2;ƅ2px}|peak-rail-classic.off |peak-rail-classic-marker{border-Ƈ`state-business-primary)}|peak-rail-classic-label{?10px;ƍ;line-Ƌ1.2;Ɗ}|peak-rail-classic.weekend |peak-rail-classic-marker{border-Ƈ#34a853}|grid-group{Ʀ1 / -1;ƚ8px;?12px;ƍ;Ƈ`label-tertiary);ƥƓ`border-l1);Ɲ4px}|grid-group:first-child{ƚ0}|peak-preview{ƚ8px}|toggle-btn{$none;Ƙnone;ƌ0;?12px;ƍ;Ƈ`state-business-primary);Ɩ}|toggle-btn:hover{Džunderline}|collapsed-note{ƚ4px}|catalog-vendor{ƚ10px;?12px;ƍ;Ƈ`label-tertiary);ƥƓ`border-l1);Ɲ2px;Ɔ&;Ƒspace-between;Ɨ8px}|vendor-toggle{Ɩ;ƭ}|vendor-toggle:hover{Ƈ`label-secondary)}|vendor-display{ƕinline-flex;&;Ɨ4px;Ʃ400;?11px;Ƈ`label-tertiary);Ɗ}|mstats-tabs{ƆƗ8px;margin-ƽ8px}|mstats-tab{$none;ƘƓ`border-l1);ƅ999px;ƌ2px 12px;?12px;Ƈ`label-secondary);Ɩ}|model-costs |mstats-tab.active{$color-mix(in srgb,`state-business-primary) 14%,`bg-base));border-Ƈ`state-business-primary);Ƈ`label-primary);ƍ}|mstats-h{Ɵ10px 0 4px;?12px;ƍ;Ƈ`label-secondary)}|mstats-row{ƕgrid;Ɣminmax(90px,170px) 1fr auto;Ɨ8px;&;?11px;line-Ƌ1.7}|mstats-name{Ǝ;Ə;Ɗ;Ƈ`label-secondary)}|mstats-label{Ʀ1/-1;Ɔƙ;&;Ɨ6px;ƚ6px}|mstats-label |mstats-name{Ƨ1;min-ƈ90px}|mstats-label~|mstats-barbg{Ʀ1/3}|mstats-label select{max-ƈ100%;min-ƈ0}|mstats-barbg{ƞrelative;Ƌ10px;ƅ999px;$`bg-layer-3);Ǝ;ƕflex}|mstats-bar{Ƌ100%;min-ƈ0;ƅ999px}|mstats-bar.cost{$#ff9800}|mstats-bar.hit{$#34a853}|mstats-bar.value{$#a142f4}|mstats-seg{Ƌ100%;min-ƈ0}|mstats-seg.in{$`state-business-primary)}|mstats-seg.cache{$#ff9800}|mstats-seg.out{$#34a853}|mstats-val{Ɗ;Ƈ`label-secondary)}|mstats-legend{ƆƗ12px;?10px;Ƈ`label-tertiary);Ɵ2px 0 4px}|mstats-dot{ƕinline-block;ƈ8px;Ƌ8px;ƅ2px;margin-ǃ3px}|mstats-note{ƚ10px;?10px;line-Ƌ1.6;Ƈ`label-tertiary)}|match-row{Ɔ&;Ɨ8px;ƌ3px 0;?12px;ƙ}|match-row |input{Ƨ1;min-ƈ160px}|budget-controls{ƕgrid;Ɣrepeat(auto-fit,minmax(min(180px,100%),1fr));Ɨ12px}|bbox{ƘƓ`border-l1);ƅ12px;ƌ8px 10px;$`bg-layer-1);ƆƉƗ6px;min-ƈ148px;ƒ}|bbox.rail{ƌ6px;min-ƈ0;ƈ40px;&;Ƒcenter;ƅ10px}|bbox.warn{border-Ƈ`state-warn-primary)}|bbox.over{border-Ƈ`state-error-primary)}|bbox-head{Ɔ&;Ƒspace-between;Ɨ8px}|bbox-label,|bbox-pct{?12px;ƍ;Ƈ`label-primary)}|bbox.warn |bbox-pct{Ƈ`state-warn-primary)}|bbox.over |bbox-pct{Ƈ`state-error-primary)}|bbox-bar{Ƌ6px;ƅ999px;$`bg-layer-3);Ǝ}|bbox-bar.segments{ƆƋ8px}|bbox-bar.segments |bbox-fill{ƛ;ƅ0;Ƌ100%}|bbox-bar.segments |bbox-fill:first-child{ƅ999px 0 0 999px}|bbox-bar.segments |bbox-seg-today{ƛ;Ƌ100%;$#ff9800}|bbox-bar.segments |bbox-seg-spent{ƛ;Ƌ100%;$`interactive-bg-hover);ƅ0 999px 999px 0}|bbox-bar.segments.rev |bbox-fill:first-child,|bbox-bar.segments.rev |bbox-seg-today:first-child{ƅ999px 0 0 999px}|bbox-bar.segments.rev |bbox-fill,|bbox-bar.segments.rev |bbox-fill:last-child,|bbox-bar.segments.rev |bbox-seg-today:last-child,|bbox-bar.segments.rev |bbox-seg-spent:last-child{ƅ0 999px 999px 0}|bbox-bar.segments.rev |bbox-seg-spent{ƅ0}|dir-row{Ɔ&;Ɨ8px;ƚ6px}|dir-label{Ƨ1 1 40%;?12px;Ƈ`label-secondary)}|dir-row |input{Ƨ1 1 60%;ƈauto}|bbox-fill{Ƌ100%;ƅ999px;$`state-business-primary)}|balance-name{ƕinline-flex;&;Ɨ4px;min-ƈ0;Ơ}|model-costs{?12px}|model-costs |bal-label{Ɗ}|model-top{Ɨ4px;max-ƈ180px;Ǝ;Ə}|model-costs |collapse-h{min-ƈ0;ƈ100%;Ɗ}|model-costs |bbox-bar{ƚ3px}|bal-label{min-ƈ0;Ǝ;Ə}|bal-amt{margin-ưauto;ơright;ƴ}|bbox-pct|bal-amt{Ƈ`state-business-primary)}|bal-link{ƛ;ƕinline-flex;&;Ƒcenter;ƌ2px;ƅ4px;?12px;line-Ƌ16px;Ƈ`label-tertiary);Džnone;Ʋnone}|bal-link:hover{Ƈ`brand-primary);$`interactive-bg-hover)}|bal-link:focus-visible{ƣ0 0 0 2px `brand-primary)}|bbox.warn |bbox-fill,|bbox |bbox-section.warn |bbox-fill,|bbox |mm-row.warn |bbox-fill,|budget-fill.warn{$`state-warn-primary)}|bbox.over |bbox-fill,|bbox-section.over |bbox-fill,|mm-row.over |bbox-fill,|budget-fill.over{$`state-error-primary)}|bbox-line{?12px;Ƈ`label-tertiary)}|bbox-rail{?11px;ƍ;Ƈ`label-primary)}|bbox.warn |bbox-pct,|bbox.warn |bbox-rail,|bbox |bbox-section.warn |bbox-pct,|bbox |mm-row.warn |bbox-pct,|mm-row.warn |bbox-label,|corner-chip.warn,|qchip.warn,|simple-summary.warn{Ƈ`state-warn-primary)}|bbox.over |bbox-pct,|bbox.over |bbox-rail,|bbox-section.over |bbox-pct,|mm-row.over |bbox-pct,|mm-row.over |bbox-label,|corner-chip.over,|qchip.over,|simple-summary.over{Ƈ`state-error-primary)}|bbox-pair{ƆƉƗ0;ƌ2px 10px}|bbox-pair |bbox-section{ƆƉƗ4px;ƌ4px 0}|bbox-pair |bbox-bar{Ƌ4px}|bbox-divider{Ƌ1px;$`border-l1);Ɵ0}|bbox.clickable,|foot.clickable{Ɩ}|bbox.ǂhover{border-Ƈ`state-business-primary)}|bbox.ǂfocus-visible,|foot.ǂfocus-visible{Ʋǁ`state-business-primary);Ƹ1px}@keyframes cm-click-refresh-pulse{0%,to{Ʊ.55}50%{Ʊ1}}|bbox.clickable.busy,|foot.clickable.busy{Ǐcm-click-refresh-pulse 1.1s ease-in-out 2;njprogress}|mm{ƌ8px 10px;Ɨ4px}|mm-title{?12px;ƍ;Ƈ`label-primary)}|mm-reset{?11px;Ƈ`label-tertiary);Ʀ1/-1}|codex-head>|mm-title{min-ƈ0;Ǝ;Ə;Ɗ}|codex-resets{ƛ;ơright}|codex-resets>span{ƕblock}|footer-stack.compact |bbox[data-cm-display=codex]{grid:auto/1fr}|bbox.rail[data-cm-display=codex] |bbox-rail{max-ƈ100%;Ơ;ơcenter;?10px}|gw-switcher{Ɩ;ƭ;?11px;ƌ1px 6px;ƅ999px;ƘƓ`border-l1);$`bg-layer-2);Ƈ`label-secondary)}|gw-switcher:hover{$`interactive-bg-hover);Ƈ`label-primary)}|gw-sub{?11px;Ƈ`label-tertiary);Ǝ;Ə;Ɗ}|mm-row{Ɔ&;Ɨ8px;ƌ2px 0}|mm-sub{?11px;line-Ƌ16px;Ɲ4px;Ƈ`label-tertiary)}|mm-sub.warn{Ɲ0;Ƈ`state-warn-primary)}|mm-row |bbox-label{ƛ;ƈauto;min-ƈ22px;max-ƈ115px;Ʃ400;Ƈ`label-secondary);Ɛ;Ɗ;Ǝ;Ə;word-break:keep-all}|mm-row |bbox-bar{Ƨ1;min-ƈ40px;Ƌ6px}|mm-row |bbox-pct{ƛ;min-ƈ2.4em;ơright;Ɛ}|mm-row.wide |bbox-label{ƈauto;max-ƈ64px;Ƨ0 1 auto;Ɗ;Ǝ;Ə}|mm-row.wide |mm-text{Ƨ1;min-ƈ0;?12px;Ƈ`label-secondary);ơright;Ɛ;Ɗ;Ǝ;Ə}|bal-line{?13px;Ƈ`label-secondary)}|bal-line.warn{Ƈ`state-warn-primary,#b45309)}:has(>|footer-stack),:has(>[data-slot="sidebar.footer.action"]>|footer-stack){ƙ;Ƨ0 0 auto;Ƌauto;min-Ƌ0;align-NJflex-start}:has(>div>[data-slot="sidebar.footer.action"]>|footer-stack){Ƨ0 0 auto;Ƌauto;min-Ƌ0}:has(>|footer-stack.rail),:has(>[data-slot="sidebar.footer.action"]>|footer-stack.rail){ƉƵ&;Ɨ6px}|footer-stack{Ɔƛ;ǒ-1;ƉƗ6px;ƈ100%;min-ƈ0;max-ƈ100%;Njstretch;ƒ}|footer-stack.rail{&;ǒ1}|footer-stack |bbox{ƈ100%;min-ƈ0}|footer-stack |foot{ƈ100%;ƒ}|footer-stack |foot:not(|foot-rail){Ƒspace-between}|model-costs |collapse-h{ƈ100%}|model-costs |collapse-h>|bal-amt{margin-ưauto}|footer-stack.compact |bbox{ƕgrid;Ɣrepeat(2,minmax(0,1fr));column-Ɨ12px;row-Ɨ2px;&}|footer-stack.compact |bbox>*{Ʀ1/-1}|footer-stack.compact |bbox>|mm-row:not(|mm-title){Ʀauto}|footer-stack.compact |mm-row{min-ƈ0;Ɨ4px;flex-wrap:nowrap}|footer-stack.compact |mm-row |bbox-label{Ƨ0 1 auto;min-ƈ0;max-ƈ45%;ƈauto}|footer-stack.compact |mm-row |bbox-bar{min-ƈ0;Ƨ1 1 0}|footer-stack.simple{Ɨ0;max-Ƌ38vh;max-Ƌmin(38dvh,320px);ƪƤ;scrollbar-ƈthin;ƘƓ`border-l1);ƅ10px;$`bg-layer-1)}|footer-stack.simple>*{ƴ}|footer-stack.simple:focus-visible{Ʋǁ`state-business-primary);Ƹ2px}|footer-stack.simple |bbox{Ƙ0;ƅ0;ƌ4px 8px;Ɨ2px;$transparent;ƣinset 0 -1px `border-l1)}|footer-stack.simple |mm-title{?11px;line-Ƌ16px;Ɵ0}|footer-stack.simple |mm-row{Ɨ6px;min-Ƌ16px;line-Ƌ16px;Ɵ0;ƌ0}|footer-stack.simple |mm-text{?11px}|footer-stack.simple>|peak-strip,|footer-stack.simple>|peak-classic{Ɵ0;ƌ4px 8px}|simple-summary>span{min-ƈ0;Ɗ;Ǝ;Ə}|footer-stack.simple |bbox-pct{?12px;line-Ƌ18px}|footer-stack.simple |bbox-bar{Ƌ4px}|footer-stack.simple |bbox-line{ƕnone}|footer-stack.simple |foot{Ƌ26px;ƌ0 8px}|footer-stack.simple |peak-classic{ƚ2px;Ɨ2px}|footer-stack.simple |peak-classic-chip{ƌ0 4px;Ƙ0;$transparent}|simple-summary{ƞsticky;ǐƫ1;$`bg-layer-1);ƆƑspace-between;&;Ɨ8px;ƌ5px 8px;?12px;ƍ;ƥƓ`border-l1)}|footer-stack.simple.rail{Ƙ0;$transparent}|footer-stack.simple.rail |bbox{ƌ4px 2px}|footer-stack.simple |peak-rail-track,|footer-stack.simple |peak-rail-classic-track{Ƌ28px}|footer-stack.text-only |bbox-bar{ƕnone}|footer-stack.Ưnot(.rail) |bbox{ƌ4px 8px;Ɨ2px}|footer-stack.Ưnot(.rail) |mm{ƆƷrow;ƙ;Ɨ2px 12px;&}|footer-stack.Ưnot(.rail) |mm>|mm-title,|footer-stack.Ưnot(.rail) |codex-head,|footer-stack.Ưnot(.rail) |mm-reset{Ƨ1 0 100%;min-ƈ0}|footer-stack.Ưnot(.rail) |mm-row:not(|mm-title){Ɨ4px;ƌ0;min-ƈ0;max-ƈ100%}|footer-stack.text-only |mm-row |bbox-label{max-ƈ115px;Ƨ0 1 auto}|footer-stack.text-only |mm-row |bbox-pct{min-ƈ0}@media(max-ƈ640px){|cards,|grid,|budget-controls{Ɣ1fr}}@media(max-ƈ1023px){|section{Ɲcalc(16px + env(safe-area-inset-bottom))}|cards,|overview-grid>|cards,|grid,|budget-controls{Ɣ1fr;Ɨ8px}|card{ƌ10px 12px}|card-value{?17px}|card-sub,|bal-line,|bal-amt{Ơ}|buttons,|toolbar,|row,|budget-head{ƙ}|btn,|tab,|foot,|corner-chip{min-Ƌ36px;Ƌauto}|tabs{ƵLJ}|tab{ƛ}|qstrip{ƌ0 8px}|qguide{max-ƈcalc(100vw - 24px);džvar(--dsh-frame-overlay-top,calc(var(--dsh-frame-chrome-top,Ƣ) + 10px + env(safe-area-inset-top)))}|peak-alert{max-ƈcalc(100vw - 24px)}|peak-alert|peak-alert-corner{ǃ12px;ư12px;ƽcalc(12px + env(safe-area-inset-bottom));ƈauto}|footer-stack{Ɲenv(safe-area-inset-bottom)}|stat-dialog-body{ƌ14px;Ɲcalc(14px + env(safe-area-inset-bottom))}}body[data-dsh-pocket-layout=mobile] :is(|cards,|overview-grid>|cards,|grid,|budget-controls){Ɣ1fr;Ɨ8px}body[data-dsh-pocket-layout=mobile] |tabs{ƵLJ}body[data-dsh-pocket-layout=mobile] |footer-stack{Ɲenv(safe-area-inset-bottom)}body[data-dsh-pocket-layout=mobile] :is(|peak-alert,|qguide){max-ƈcalc(100vw - 24px)}body{DŽ#fff}body[data-ds-dark-theme],body[data-theme=dark],html[data-theme=dark] body{DŽ#151517}|section,|stat-dialog,|qguide,|peak-alert,|footer-stack.simple{$ƻ;$rgb(from `bg-layer-2,`bg-base,#fff)) r g b / 1)}|today-values{ƕinline-flex;ƙ;Ƒflex-end;Ɨ2px 8px;min-ƈ0;max-ƈ100%}|today-values>span{Ɗ}|today-values[data-both=true]>[data-cm-today=tokens]{?11px;Ƈ`label-secondary)}|simple-summary{$ƻ;$rgb(from `bg-layer-1,`bg-base,#fff)) r g b / 1)}|plan-gauges{Ʀ1/-1;ƕgrid;Ɣrepeat(auto-fit,minmax(52px,1fr));Ɨ6px}|plan-gauges |mm-row{ƕgrid;Ɣ1fr;Ɨ0;justify-items:center;Ɵ0;ƌ0;Ƈ`state-business-primary,#4b7ff5)}|plan-gauges svg{ƺƈ100%;max-ƈ64px}|plan-gauges |bbox-pct{ƺƾcenter;ơcenter;ƜtranslateY(-3px);?12px}|plan-gauges |bbox-label{ƺƾend;Ɲ8%;max-ƈ100%;ơcenter;Ǝ;Ə}|plan-gauges |mm-row:not(:has(svg)){Ʀ1/-1;ƕflex}|plan-gauges .warn{Ƈ`state-warn-primary,#d97706)}|plan-gauges .over{Ƈ`state-error-primary,#dc2626)}'.replace(/[`|$&?ƀ-ǿ]/g,e=>is[e.charCodeAt(0)>=384?e.charCodeAt(0)-384:"`|$&?".indexOf(e)]),_a="dsh-cost-meter/client.css";if(typeof document<"u"&&document.head!==void 0){const e=document.querySelector("style[data-plugin-css="+JSON.stringify(_a)+"]");if(e?.textContent!==Fa){const t=e??document.createElement("style");t.dataset.plugin="dsh-cost-meter",t.dataset.pluginCss=_a,t.textContent=Fa,e===null&&document.head.appendChild(t)}}const cs="Balance|balance|session|额度|Label|Plan|models|credential|quota|显示|custom|amount|余额|Stats|价格|费用|peak|coding|模型|Source|gateway|time|tokens|会话|model|refresh|自动|Quota|price|history|刷新|输入|official|weekends and Chinese public holidays are|Refresh|Alert|DeepSeek|Token|position|缓存|message|display|官方|Title|自定义|the|period|sidebar|凭据|用量|调用|input|usage|Failed|Peak|budget|output|source|中国公众假期全天谷价|同步|失败|峰时高价时段显著提示|时段|计费|金额|Credits|Sidebar|OpenCode Go|cache|calls|currency|Budget|Note|今日|峰时|已用|预算|plan|pricing|以同一系统账号运行|Remaining|Settings|历史|图框详细信息|Display|Monthly|details|WorkBuddy2API|分钟|当前|留空|Today|cost|interval|optional|remaining|侧边栏|Coding|DescribeBillingAccount|Enable|account|and|credits|failed|位置|保存|小时|币种|数据|本地|记录|读取|谷时|账本|输出|month|Cost|Cache|Codex|Hint|Placeholder|Strip includes|ledger|启用|History|Preview|browser|current|minutes|右下角|浏览器|设置页|automatically|rates|total|OpenDesign|Weekly|Window|YYYY-MM-DD|auth login|expression|volcengine|全部|剩余|可选|峰谷|提示|时间|更新|本月|查询|订阅|设置|请求|谷价|进入|默认|Currency|Interval|Multiply|Official|Session|Short|default|is an upper bound|never echoed back|workspace ID|法定假日|逗号分隔|API|AccessKey|Custom|Output|WorkBuddy|corner|used|主机|人民币|命中|密钥|日期|来源|清除|点击|登录|积分|累计|账号|配置|重置|隐藏|Total|codex|empty|local|not queried|today|comma-separated|data|deepseek-v4-pro|qwen|导入安装前|开始对话后|汇总在这里|Chinese|Compact|confirm|granted|holiday|unknown|Configured|Credential|Entering|Input|Provider|Remove|Unreported|Volcengine|built-in table|configured|enable|enough samples|external|for this|only|opendesign|override|request Cookie|this|token|toppedUp|估算|使用|侧栏|名称|周末|开启|提醒|明细|暂无|添加|确认|统计|间隔|Alibaba Cloud|Authorization|subscriptions|take priority|Anthropic|Empty|Model|Reset|Strip|apply|countdown|effective|estimates|including|qianwenai|工作区|框上方|横条含|白名单|Bottom-right|Compensation|Content-Type|Cookie|Default|JSON|Loading|Method|MiniMax|Rolling|Show|Target|Updated|Volcano|billing|console|date|hitRate|method|notification|rate|records|same OS user|subscription|weekend|匹配|单价|后续|周期|图框|填写|安装|导入|展开|恢复|按自然月|排行加载|火山引擎|环境变量|移除|采样区间|预览|Clear|Click|Composer|Flash|Local|Match|Position|SiliconFlow|This|Unavailable|Unsupported|Usage|application|auto-detect|bailian-cli|composer|environment|from|full-window|group|host|matching|max-preview|pre-install|provider|qianwen-cli|settings|unavailable|DSH|Key|are|Auto-match|Claude Pro|Cline Pass|Import|Legacy|Management|Notice|OpenRouter|Rhythm|Used|aggregated|billed|equivalent|historical|hours soon|legacy|multiplier|page|percentage|status|to restore|window|下方|优先|倍率|全天|关闭|内置|加载|区间|取消|后重|基础|手动|支持|日志|未知|渠道|滚动|端口|等值|美元|覆盖|计价|这里|采样|Account|Allowed|Bailian|Convert|Factory|Headers|Invalid|Queried|Unknown|Weekend|address|click|factory|headers|hours|include|range|ranking|restore|summary|Auto|Direction|Kimi Code|Rank|Sort|Topped-up|Unlimited|all|auto-sync|precision|reasoning|subagents|sync|unmatched|中复制|占位符|子代理|性价比|抵扣率|控制台|未上报|标题栏|百分比|知道了|起始日|这一项|阿里云|Add|Base URL|Class|Corner|Daily|Detail|DevTools|Disabled|External|Gemini|HTTPS|Ledger|Line|Moonshot|Overview|Qwen|Recent|Saving|Security|Selected|Status|Sync|Toggle|actual|blank to|calendar|card|clear|combined|count|deepseek|entering|estimate|fields|first|follow|import|language|limit|multiply|notice|platform|reads|recorded|remove|requires|reset|sample|snapshot|spend|start|store|subtract|table|use|with|上限|不会|不计|保留|修改|充值|写入|分别|切换|删除|勾选|北京|千问|发现|发送|只写|可用|可能|地址|外部|字段|实际|对账|弹窗|当日|影响|快照|总额|折算|推理|文档|方向|时区|本周|格式|每日|汇率|满窗|生效|用于|精度|编辑|账户|路径|选择|页面|All|Off|Amounts|Base|Beijing|Billing|Both|Bundled|ChatGPT|Confirm|Control|English|Extract|Fetched|General|Granted|HTTP|Include|Kimi|Minimax|Percent|Pricing|Request|Save|Section|applies|catalog|changes|channel|dock|earlier|for|loading|minimax|missing|name|percent|plugins|qianwen|reading|replace|when|Badge|Error|Guide|Limit|Login|Price|Query|ROUTE|Rates|Spent|Start|Style|alert|entry|key|query|scnet|value|Active|Body|Date|Header|Hidden|Minute|Not|OPENAI|Origin|Period|Public|Remain|Sample|Secret|Switch|Time|active|aliyun|auto|cancel|change|divide|flat|full|here|hidden|hide|logs|not|openai|origin|port|reason|remain|select|studio|your|上界|不足|专用|中文|为准|以及|例如|允许|入口|其他|包含|卡片|即可|即将|厂商|原因|发生|可在|同名|后可|后的|回放|回显|域名|填入|处于|套餐|对应|工具|平价|应用|底部|开关|手工|打开|挂载|按量|按钮|换算|授权|放行|早期|最多|最近|月度|权限|条数|标准|样本|档位|比例|状态|界面|百炼|窗口|类型|缺失|网关|花费|英文|获取|表外|规则|语言|请在|账单|赠送|跟随|过期|通知|重试|Hit|box|col|CLI|CNY|Hide|KEY|Last|Lock|USD|Unit|VAR|When|bar|day|docs|left|off|pct|read|saved|stay|that|tier|tok|will|work|yet|Pro|tab|Edit|Open|Top|back|each|new|old|over|per|save|show|zone|Use|com|its|low|min".split("|"),Qa=e=>e.replace(/[ƀ-߿]/g,t=>cs[t.charCodeAt(0)-384]),us=Qa("Ƃ̹|Ƃ̹ɍ|ƂǴɍ|ƈ̘|ǎCnyǷ|ƁσƵ|ɑξ|Ɓ|Ơƀ|ƈʳ|ƈǂǑ|ƈǂʳ|ƈǑʳ|ƈΓʷs|όƵ|reconcileƄ|ɏћpedUp|upʗdAt|ƷOf|ȯOf|dzȿ|Ʒ|ɄǴƫ|Ʉƥsƫ|Ɩх|Džƥs|dzǴ|ȆǴ|Ʉ|ƯǛMetric|ƯǛǴ|ƯǛƥs|ƮDay|ƮMonth|ƮΓ|ƮȫRange|noǼ|нϑ|нC̙s|нInTok|нǵTok|нOutTok|нǴ|noȡsǛ|нȡ|ɜLJ|ƷAmountƄ|ƷϘƄ|͟ϑ|endϑ|̎Text|Ʒ̴Lj|Ʒ́|Ѡπ|nearπ|˟ɺ|ȣF̙ќ|͙|ђΖ|ђΔƶ|ђƶ|ƁApiˎ|ƁƓChoice|ƁƓ̒|ƁƓ˾|ƁƓǷ|Ɓ̹|ƁσƵǷ|Ɓϕ̅|Ǥƀ|ƙing|ƙƀ|Ɗƀƫ|Ɗƀ̭|ɥ˘ƀ̭|ɥ˘ƀLj|Ϡƀ̭|ϠƀLj|ƊƀConfigLj|ƊƀƄZh|ƊƀƄEn|ƊƀUrl|ƊƀUrlǷ|ƊƀHttp|ѕBuddyƀ̭|ѕBuddyƀLj|Ɗƀʎ|Ɗƀ̃|Ɗƀϐ|ƊƀϐLj|ƊƀΟ|ƊƀǔƄ|ƊƀƢȞ|ƊƀхƄ|Ɗƀ́|Ɗƀ́Lj|ƁBarǐ|ƁBarǛ|ƁBarφ|ш̓sƫ|ш̓ǐ|ш̓˙|ƁLJCapƄ|Ɗƀ̄Json|Ɗƀ̃VarLj|Ɗƀ˿Hosts|Ɗƀ˿HostsǷ|Ɗƀɓsƫ|ƊƀɓsǷ|ƊƀNoǸs|ɜ|Ɗƀ̹|Ɗƀǐ|ƙȫƀ|goƛƫ|goƛRowƄ|goȉʐ|goȉȈ|goȉǕ|goɻAt|͛Rѝed|͛Days|͛Hours|͛ϔs|ƈɻInHm|ƈɻInM|ƈɻAt|ƈForecastл|ƈ˙|ƈǐ|goƛΧ|goƛΠAt|goƛǔƄ|goƛƢȞƄ|goƛˎƄ|goMainƄ|go̲Ƅ|ƇɒOf|Ƈϕɒ|ƇΪ|Ƈљ|Ƈʱ|Ƈ̾|ƇɕǷ|secretMigrationPending|Ʒ̲Ƅ|ƙGoƛ|goƛϕ̅|Ƒƅɸ|ƑƅZai|ƑƅΦ|ƑƅΦƫ|δϗ|δϗLj|ƑƅϚ5h|ƑƅϚ7d|ƁRechargeLink|ɀƛƫ|ɀƛǣ|ɀƛFive|ɀƛWeek|ɀƛɻ|ɀƛʺ|ɀƛǣd|ɀƛǂ|ɀƛɼ|̍SubagentǴ|Ɣƛɹ|ƑƅǔƄ|ƑƅˎƄ|ƑƅƢȞƄ|ƙǡƅ|loginǡƅ|loggingIn|Ƒƅϕ̅|Ɣƛƫ|ƔƓ̭|ƔƓƄ|ƔƓΖURL|ƔƓǔ|ƔƓƢȞ|ƔƓΓowlist|ƔƓɓ|ƔƓ́|ƔƓʻ|ƔƓ̆|ƔƓNo˾s|ƔƓΠAt|Ɣϝ˾|ƔOnly̶|ƙ|ƈǣFirst|ƈƢReady|ƈɗ|ƈΫLj|goƛ̴Lj|ȮƄ|ȮGoʐ|ȮGoȈ|ȮGoǕ|ȮLJ|goȢʐ|goȢȈ|goȢǕ|goȢ̱|ƷȢ|ǺReadƵ|κ̸|Ǻʺ|̞Ƶ|Ɲʱed|͈Ƶ|ƐΔ|ƐϕEffective|ƐϏ|Ɛ˖|ьƶϏ|ʟΓΔƶ|ʟChip|ʟȢ|ɐΓΔƶ|ɐChip|ɐȢ|ƐHoliщsƄ|ʟRuleLj|ƐȢ|ьƶȢ|ƐψƄ|Ɛψɍ|Ɛψ̯ic|ƐƣƄ|ƐƣAheadƄ|ƐƣʒƄ|Ɛƣʒƶ|ƐƣʒΔƶ|ƐƣʒΙ|Ɛƣƫƶ|ƐƣƫΔƶ|Ɛƣϐ|ƐƣPhaseƶ|ƐƣPhaseΔƶ|ƐƣBtn|Ɛƣνƶ|ƐƣνΔƶ|ƐƣʷƄ|Ɛƣʷ̰|ƐƣʷCenter|ƐƣWebϕifyƄ|ƐƣWebϕifyǷ|ƐƣǽƄ|Ɛƣǽƶ|ƐƣǽΔƶ|ƐƣǽTag|ƐPanelƫ|Ɛ˖ϓǷ|˄Ρ|˄Money|˄ǂ|ƯSimple|closeο|̐ςʶes|͙ςʶǷ|˄̰|˄̲|unmountBtn|έUnƜd|Ɯуν|ƜуǷ|ƜуRelease|Ƙƍƫ|Ɔƫ|ƆCount|ƆOƭr|Ɔ_ɜd|Ɔ_ȣњ|Ɔ_remember|Ɔ_Ɩ|Ɔ_shˏs|Ɔ_ΰ|Ɔ_Ʈ|Ɔ_̑|Ɔ_Ʀ|Ɔ_topN|Ɔ_ƙSeconds|Ɔȿ|Ɔћ|ƆFirst|ƆAfter|Ɔт|ƘƍǛ|ƘƍǼ|ƘƍǴH|ƘƍƥsH|ƘƍлH|Ƙƍлɘ|ƘƍлɘTip|ƘƍValueH|Ƙƍɕ|Ƙƍǵ|ƘƍȬ|Ƙƍɹ|ƘƍBlended|ƘƍLj|Ƙƍ˔|Ƃ̹Split|Ƃ̹Splitɍ|Ǎƍƫ|Ǎƍɹ|Ǎƍȉ|ǍƍΧ|Ǎƍʵ|ǍƍPer1|ǍƍFull|Ǎƍɻs|Ǎƍʎϛ|ǍƍʎLive|ǍƍʎNone|ǍƍʎϛAt|ǍƍConfidenceLow|ǍƍCurveƫ|Ǎƍ̱|ǍƍȈ|ǍƍǕ|ǍƍCurveɹ|ǍƍBarTip|ǍƍLj|ʕ̯Ƅ|ʕ̯ƅ|ʕ̯̒|ʕ̯Api|ƜȟSepaʛ|ƜȟǷ|ƜȟΓ|ƜȟSingle|Ɯȟ̄|ƜʶƄ|Ɯʶ̒|ƜʶExact|ƜʶLj|ɢʒʋ|ɢɗ|̟ƫ|̟Ƿ|sectionƄ|ƴΫƄ|ϥɕ|ϥǵd|ϥǵWrite|DŽWriteF̙ќ|ϥȬ|ƑƅΥ|Ƒƅњrouter|ƑƅSiliconfѨ|ƑƅCommǥcode|ƑƅClinepass|ƑƅScnet|Ƒƅə|Ƒƅ̼|ƑƅMimo|ƑƅBaidu|ƈ˙ȿ|wbT|wbH|Ƒƅ̂|Ƒƅњdesign|ɡWorkspace|ɡLj|ɡρ|̊Pool|̊PoolΙ|̊Org|mimoȉƅ|mimoȉʈ|Ƒƅȉƀ|ɈƓ|ɈƓʵ|ɈƓCli|ɈƓ̀|ɈCliLj|Ɉ̀Lj|ɈƅǁƄ|ɈƅχƄ|ɈυƄ|ɈυɺǸ|ɈRateDraftLj|Ɉυ̭|ɈʵLj|ύƅǁƄ|ύƅχƄ|ύʵLj|ȍȪIdƄ|ȍϜȪƄ|ȍȪǸ|ȍϜǸ|ɾHoursOnly|ɾHourϔ|ɾϔ|nextΔƶIn|nextƶIn|ƐSummary|noƶȉs|ɑ|͇Ǜ|͇Month|͇ȿ|͇ȿSub|ɞʼ|͉ʼ|ɞStale|ɞǼ|͇sFootϫe|ƕѤǷ|Ʉȡs|ƝExpǥǷ|Ɲȡsʍ|ƝNoȡs|Ɲȡsξ|Ƃ̕ƫ|Ƃ̕Ƿ|Ƃ̕ɹ|Ƃ̕ʍ|Ƃ̕ξ|Ƃ̕π|͇s̓ƅȿ|͇s̓ƅȿǷ|ϩȡǴϒ|ϩȡǴDock|ϩTurnǴ|Ƃ̖̕|Ƃ̖ǴDesc|Ƃ̖ǴAsc|Ƃ̖ϞDesc|Ƃ̖ϞAsc|Ƃ̖̽|Ɲ|ƴƫ|ƴȿ|ƴDay|ƴɹ|ј̻|јƛs|јʼ|јΨ|јǔ|ƝDataƫ|ƦƄ|ƦDock|Ʀϒ|ь|ƈɼʑLJ|ƈɼʑGo|ƈɼʑƅs|ˡLoadϞout|Ɓϓ|Ɓ̓|̉ToƢ|Ɓʲοϐ|ƁʲοOk|ƯƄ|ƯOn|džƄ|ʛƄ|decimalsƄ|ƁǔƄ|Ɓǂ|ƁǑ|ƁΙ|ƙȞƄ|ƐǣdƄ|Ɛ˖Ƅ|ƜTableƫ|ǎȝƄ|ǎȝUsd|ǎȝCny|ǎȝLj|ƜTableLj|ʗdςLj|ȣɺId|ўɺǸ|addɺ|Ɇ͂|saving|ϡΪƵ|ϡΪdAt|ϡΪǷ|ɎFetch|ɽ|Ϣ|̞FromDocs|̞ScopeLj|Ɏɻ|͑˔|Ɏ˓˔|˟˓Ƶ|˟˓Lj|Ɏʱ|͈ΓǼ|last͂|never͂ed|ƹ|ƹȠ|ƹΚ|͒Ƅ|ɂe̒|rpcƵ|rpc͂Ƶ|rpcƀƵ").split("|"),_e=Object.fromEntries([["zh",'本Ɨ {Ƌ} · Ȳ {ʘ} · Ɵ {Ƴ} · Ƨ {DŽ} · Dz {Ƹ}|本Ɨ {Ƌ}|仅Ɖǀ|无限制|Ǚȱǀ来自˹Ǝ × Ή {ʛ}。对照ƪȱе,请Α п,再ƻƎ;ƻ仅;ʢƲ。|ƌȖƼ:{ƨ}|˴错误|ƌ|Ƥ ƌ|Ɵʄ|ɩ和ȃ|ɩ和Ɵʄ|ȃ和Ɵʄ|ȎǨ|ȖƼ|ƪƌ变动与ǭDZ交叉ͻ(偏差超阈时Ȓ)|ж {ɏ} · ͪ {ɦ}|Ȕȓ {ƕ}|nj({Ʈ})|Nj {ȯ} / {Ƌ}|ȕ {dz} · Ⱥ {Ȇ}|nj|ljƏ(按Ǚ价表计算)|lj ƥ Ʊ|Ɩ|Ʋ {Dž} 次 · Ɵ {Ƴ} · Ƨ {DŽ} · Dz {Ƹ}|ȕ {Ƌ}|Ⱥ {Ƌ}|lj|ǠljƉ|Ə|ƥ Ʊ|lj|ȕ|Ⱥ|Ƭ˭|ɯǒǮ。Ɋ,Ə将按天ɋ。|ȴ|Ʋ|Ɵ ѓ|Ƨ ѓ|Dz ѓ|Ə|ljɯƗǮ。|Ɨ|ǻnj|njƃ(按Ɖǫ)|njʣ|开始ȴ|结束ȴ(ǚ = lj)|ɲ˭:{̎}|ǻnj后Ɖƃ、Njǀ及Ц(按ƉǫК);Ȑlj、ȕ、Ⱥ或Ƭʣ。|{Ʈ}nj {Ƌ} · Nj {ȯ} · {э}%|(已超出)|(接近ͥ)|旧ƒ|Ȝ回退|ʮ|˰|ǰ|NJ|ƌ϶ ȩ ˎ|ƌȵ|ƚ(ƒ ˎ ˧)|ˍ ȸ钱包|手选Ȼ或϶ ˎ ˧。|总ƌ {Ȇ} · ж {ɏ} · ͪ {ɦ} · Ȕ于 {ƕ}|ƌȖƼ:{ƨ}|未Ȗƌ|ƪΏƌ|ƞ中…|ƞƌ|Ƭ ɖ ƌ|ɰȼ|ɰ ƥ ˘ ƌ|Ɖ官网Ώ页的ȱ͵ƌ。ȸ ɥrhythm.ϲ,在Ȃ开发者А → 网络̠Ώș的 ʊ,或在存储 / В̠ tr_Ƃ 值,Ќ˦ư并ǻ。ʊ 仅存 ˍ ư库;и˯新ʥ。|ɰͱ / ̬ƌ|Ȗ̬中国站͵金。RAM Ȫ 需 bss:Ǣ С。前两项必填;STS 才需 ̿ ƥ。ȳ存ư库。|extract ˲点ΐ、数值、嵌套 add/͡/͔/Ϥ/ѩ/max/sum,Ϲ Ȍ 算式。Ϻ ǟ: {"Ȍ":"(Ɇ.Ȇ - Ɇ.ȯ) / 500000"}。͹名和КЦ按接口ʥ;已Ʊ应填 ͞。|Ϸɪ|Яɪ|ș URL|˲ ̷、本机 Σ,Ϲ /θ/… 相对ΐ(ƚз ˍ ˷)。|ϻ非回环 Σ(ư明文传输;须将准确的 Ȱ:˷ 加入ʆ)|+ Ǘ ȹ|Ǘ 预设ǯ活跃Ȼ池ȏȹ,ɨ管理后台 X-Adѩ-ƥ(不是ƒ ȩ ˎ)。请ʥͺͷ与˷;令牌и后Ȕư。|ș方法|ș头 (ʌ)|ș体 (ʌ)|ǚ不ͳ;ʌ 原文ǩ并ͳ。Ȝ ʉ 为 ʽ/json,Ѕș头˺。|解析в (ʌ)|ƬƌƉǨ|ƞɳ (ǘ)|ƌ原ǫ|按Ɖǫ΁(ф ƌ)|ɨƉΉ与΍;ƌǫ保持端点原ǫ。Ͻǫ及ȹ不΁。|ƌ {Ƌ}|ͽNj {Ƌ}|Nj {Ƌ}|进度条΄|ȏ΄(满 → 空)|Nj΄(空 → 满)|ƃͥ (Ȑ)|ʌ ·无效|{{ц_NAME}} 从ư库或ʭǯ。<τ>_ȩ_с 中 τ 为大写 ɖ ID,符号改下划线,如 Ϭ→ϖ_ȩ_с。І共用ȳ。|ưʆ (Ȩ)|ș头带ȳ时仅М列表内Ȱ,ǚ则М并警告,防ʧ他人ȼ外带ȳ。|ưƟ|为上方 {{ц}} ̡存入ȳ(write-ɠ,ʹư库,不Њ):|ș头还没有 {{ц}} ̡:Ќ如 "ɵ": "Beˏr {{MY_ȩ_с}}" 后˼会出现ưƟ框。|ǻ|ȏ {ǟ} · Nj {͞} / ƃ {maxLJ} · Ȕ于 {ƕ}|ȏ {Ƌ}|ƞƬƌ|ǃ ȗƃ|Go|˶ 5 Ǫ|Ά|ȕ|Ƚ:{ƕ}|已到Ƚȓ|ȏ {d}天{h}Ǫ|ȏ {h}Ǫ{m}分|ȏ {m}ǘ|{h} Ǫ {m} ǘ后Ƚ|{m} ǘ后Ƚ|{ƕ} Ƚ|按本Ъ平均Ʊ,预计 {ƕ} 达到ͥ|Nj {э}%|ȏ {э}%|{η}%|Ȕ于 {ƕ}|Go ƃƉǨ|Go ƃƞɳ(ǘ)|ǃ ȩ ˎ(Ȑ,ǚƚͲ)|Go ƃ主Х|Go Ǔ|已ȼ(ȵ:{ƹ})|未ȼ|ǩ|Ύư|ȶ|ǩ中…|ȳ只ͫ ˍ ư库,不ǩ在DZ里,也ͦЊ。|以下ȳ仍在ǭDZ,未迁入ư库。请导出Џʭ˯启:|njǓ|ƞƃ|未Ȗƃ|ɸ(ˑ/Max)|Z.ai / 智谱 GLM ǡ ƅ|ʏ M ƅ / ƥ ƅ|ʏ ƅ|ȖЋ(̷)|ǚƚΑƪ站点。ʥ后 ˎ 仅发往该Ћ;ɨ可信ͷ,不含ΐ。|5h|7d|Ж Ƥ ͪ页(͖.͋.Ѧ/ƴ)|Λ (Ƕ) ƃ|Ƕ ƃ未ɬ · 点此ɬ|5h ƃ|周ƃ|{ƕ} Ƚ|未取得ƃ,请ɱ所选Ǭ源已ȸ;ȷк|Ɖ Ƕ ƃ(需ȸ Ƕ 插件)|在ɩƉ Ƕ ƃ|在Ɵ区Ɖ Ƕ ƃ|本ƗƏϾ̢|ɯƃǬ|ƉǨ|ȩ ˎ(Ȑ,ǚƚͲ)|ƞɳ(ǘ)|ƞ|ȸ|ȸ中…|未Ȗƃ|оїxyȩ Эƃ|ɰȵ|ȵɪ|̮|ƉǨ|ƞɳ(ǘ)|ưʆ(Ȱ:˷,Ȩ)|˕ ˎ(ʹ)|Ч|不˲的 ɖ|˴|未ͲȻ|抓取于 {ƕ}|ͭȻ (Ǚ: {Ǥ})|只Ɖ ̶ ƃ|ƞ|先ͯǻ̫|ǻ并ǩƉǨЇƞ|ͮ|ͯǻ后会排到最上面;点ɪ可ʨ该项自己的ȼ。ƬƌО 8 条,ЭȵО 4 条。|ɬ后ǯ ǃ 的˶ 5 Ǫ、周、月ƃ,Ɖ在ɩ、ȃ及ȁ;无ȗ时ȒЃ。|ȁƉ(ΰ)|˶ 5 Ǫƃ|Άƃ|ȕƃ|njNj%|5h|周|月|日|nj|DZǯƼ:{ƨ}|正在ǯDZ…|DZ不͵|ƻƼ:{ƨ}|ǒǮ已ȶ。|ȶƼ:{ƨ}|ȑ˻已˪,按˰Ǝƿ|尚未΋(΋ȓ:{ƕ}),Ǚ按˰Ǝƿ|ǙЍ峰ƾ,按NJ价ƿ|Ǚ为 Ƥ NJ高价ƾ,按NJ价ƿ|ǙЍ谷ƾ,按ǰ价ƿ|ɫƾ——全Ț(周六及周日˩按ǰ价ƿ)|ɫƾ——全Ț|ɫ全谷|ȧ——˩Ț|ȧ——全Ț|假日|ȧ(Ͱȴ,Ȩ)|自 2026-08-23 Ͱȓ 00:00 起,ɫ和ƺ;调休上班的ɫ仍按Ț。|NJ|Б|ȑƾ条样式|简洁(单行紧凑)|经典(分段与胶囊芯片)|峰/谷ͭ前ͼɭ|提前ɭ(ǘ,1-30)|ɭЫ|țNJ|țǰ|峰和谷|ЁțNJ|Ёțǰ|约 {ƕ} 后ƿХͭ为{phase}价,请注意本ƾƲ成本。|NJ|ǰ|̩|峰价ɭ|Țɭ|ͼǨ|ȁ|屏幕中心|ƻͳ系统й|Д后дȂͷ栏ϻйС,才能在Β最小化/切走时收到ɭ。|ʰͼ|ʰ ț峰|ʰ ț谷|(ʰ)|ȑ˻与Ȓ|Ȓ已Ⱦ:需ǻȑ˻并ɬ「ƽ」。|常规|ǀ与ǫ|ǠƉ|简化ɩƉ|˪Ȓ|ʩ已ʮ的ƒ ({͊})|ʮ会ȶ˱映射并Ⱦ此行,可ʩ;ͦͮƱǮ,ʢ按ƚʠв˻。|ȁ角标|Ǔ|ˮЗ|未核价|已Ƭ|这个Ǝ是你˱改过的,ƚƻͦ˺它。|ʩƚƻ|按ƒɲ(ɥ 与Ə)|ɩƒЮ|{n} ƒ|其它|ƉƒЮϿ|Ȝʨ|记住ʨЧ|Ɖ ƥ|ƉƏ占比条|ȁƉ ћ-1 ƒ|Ȝʣ|收起摘要|ϿǨ|ƒ行数(1–10)|ƞɳ(10–60 秒)|ʣ΀与ƒ数|ћ-1 ƒ与ǀ|顶部|ƌ之后|Г|lj|近 90 天|Ə排行|ƥ 消耗|ƧȲ率|̦?|长Ʋ无ƧȲ:代理ͶʮƧ͹。ǀ按全未Ȳ计,是ϴ;可直连核对。|̣ · 每˹ ɥ 数|Ɵ|Ƨ|Dz|该ƾɯƱǬ。|综合ʡ {Ɯ}/M|Ȳ率=Ƨ读÷(Ƨ读+普通Ɵ);「̦?」表示Ƨ͹ͶЬ,ǀ为ϴ。ʡ=Ə÷ɥ×1M;̣=ɥ÷Ə。|未分ƒ(НǬ · 按当时Ǯƿ)|本Ɨ {Ƌ}(ȩ)· ƅ ˸ {ǍAmount} · Ȳ {ʘ} · Ɵ {Ƴ} · Ƨ {DŽ} · Dz {Ƹ}|本Ɨ {Ƌ}(ȩ)· ƅ ˸ {ǍAmount}|ƥ ƅ Ʊɲ(每 1% 与Ίɧ)|尚无 ǡ ƅ ƃǬ;д「ƃ」页ɬ并ƞЂ。|Ъ|Nj %|本ʣͺ(ǭDZ)|每 1% ƃ ≈|Ί 100% ≈|Ƚ {ƕ}|˽差分|ǙƱ΁|Фϵ|{ʙ}(基准 {ƕ})|读数΍受限|ƅ Ʊ曲线(按ʯ聚合)|Έ|每周|每月|˽ϵ:至少两次成功ƞ,且ƃ̨Є变化。|{ʗ}:Ί估计 ≈ {Ϧ}(每 1% ≈ {ѡ1})· ͺ {Ɩ} / {ǜ} · {ǝs} 个ʯ|ǀ是目录价˸;ȗ耗ƃ,nj只计 ȩ。ɧ仅含 dsh Ʋ;服务端̨含全Ȼ。短时Ф΍有限;5h ˶,周/月按ǭ日历。|ƿ方式|ƅ ȗ|ƚ|ȩ И|ͬȘ˨|可Ɵ 2 × 0.8|ͩ˨会ƻ到本ƒȎʡ|仅̫ͩ的˨;ˮͯʩ统一˨|请Ɵ非负ʡ或乘法,Ϻ 2 × 0.8|˴ƒ名ƚʠ|ƚ(去后缀 / 前缀 / 家族相似)|仅精确ʠ|˧ɨ˱指定和˵Ǝ,ƚ识别Іƒ及ȴ标签。|Ƥ Ȝ价|ʮ|待ʠ与˱Ș|按˵和ƒͬȘ:ΑƎ表条目、ƬƎ,或标记为ǭƒ。ƬƎ只ΌǙ˵。|Ə|Ʊ|Ɵ|Ƨǯ|Ƨͫ|ǚ时按Ƨǯ价ƿ|Dz|̔ / ̺|˗|ʸ 硅基流动|CommǥCode|˒|SCNet 超算互联网 ƥ ƅ|火山方舟 ʔ Ark ǡ ƅ|ͱ ̼ ƥ ƅ|小米 MiMo ƥ ƅ|百度千帆 ƥ ƅ|Nj / 总ƃ|ȭ ȹ|ƚǯ ȭ ȹ。|̂ (Droid)|ȇ|ȇ ʃ ID|点˦Йƚа(设备码Л,Ȃ批准一次Ѐ),也可按 F12 复制 ʊ Еʥ。ʃ ID ǚ时ƚǯ;Ν ˎ 需填ʃ ID,不˲΂ ȩ ˎ。|一键аƃư|ƃЫ|Stǥard + Core|组织 ID(Ȑ)|Ўȹ|补偿ȹ|ƌ|ƃȵ|ǭɧ|ƪ о|Щ о|о 模式需在 ˍ Ȱʦ @ʂ/ˊ,并Ǐ ι ȋ。|Щ о:在 ˍ Ȱʦ ʿ。ȸЙ会在该ȰЖЛȂ;远程或无ШȰ请Ǐ bl ȋ --ʖ。|Р ǁ ƃ(个人版 Lite 5 万 / У版 50 万,以ȗ页ϸ)|ȗ̪(Ȑ,· Ȋ;ǚʪ)|ǁ ̤˺(Ȑ;每百万 ɥ 抵扣的 ǁ,ǚ用˫表)|ƒ名,如 Ɉ3.8-ˇ|待填齐三项正数后ƚǩ;Ȏ清空ʩ˫表。|ɰ|ǁ ǭɧ,以̥ϸ。ɲ归属ͱЎ的 ƅ Ʋ;ͧИ ȩ。бƒ需设̤。|ǭɧР ǁ ƃ(˰ 60,000 / У 240,000 / 高级 600,000)|ȗ̪(Ȑ,· Ȋ;ǚʪ)|˧用 24 Ǫ内的̥Ϳ,否则按ǭDZ和ƪ ǁ 表ɧ。ϽА和бƒͧ入。|ʬ Ȫ ID|ʬ ϜȪ|AK...|SK...|{h}Ǫ|{h}Ǫ{m}分|{m}ǘ|{ƕ}后țБ|{ƕ}后ț高峰|峰ƾ({Ѥ}):{˥s};΋ȓ:{ƕ}。{ˣ}|未ȼȑƾ。{ˣ}|˴|ljƏ|ȕƏ|ȺƏ|自DZ建立以来 · Ʋ {Dž} 次|͸Ʊ|ˍ + ͸合计|͸Ϳ超过 24 Ǫ未Ȕ|近期ΈǮ|ǀ取ПͿ,Ͷ比ƪе晚几ǘ。Ɩ 含Ɵ、Dz、Ƨ和΂;΂并入Dzƿ。以ǀͻ。|lj/ȕ按宿主΅ {˅},Ȃ为 {Ǿ}。΅不同会;日界和ͻ;可将 dsh 改为ǭ΅。|ljƗ|ȷȴ行可ʨͽƗɮ|Ɨɮˬ中…|该日无Ɨɮ(НǬ或Ɨ˳已清理)|ƗɮˬƼ|按Ɨɲ(Ȏǒ)|跨天合并,̢按Д归并。仅列选定Т,ȺƏϾȎ对话。|ɯƗǬ|Ɨʫ中…|ƗʫƼ|ƉТ|ǀ含 ƅ ΀|ɬ后所有ǀ按含 ƅ ȗ˸的总Ə展示;˪(Ȝ)仅计真金白银 ȩ ˵|Ⱦ̧Əɮϼ|ȾƟ框˦Əɮϼ|Ⱦ每轮回复Ј本轮Ə|排序|Ə 高→低|Ə 低→高|ȓ 新→旧|ȓ 旧→新|实时顺序|ǒǮ|ƥ Ʊɲ|Ⱥ {Ɩ} Ɩ · Ɵ {Ƴ} · Ƨ {DŽ} · Dz {Ƹ} · {Dž} 次Ʋ|{ʗ}:共 {Ɩ} Ɩ(Ɵ {Ƴ} · Ƨ {DŽ} · Dz {Ƹ})· {Dž} 次Ʋ · {ǜ}|ɯǒǬ,ɊΈƱ会ɋ|概览|ƃ|Ʊ|Ǝ|Ɖ|ǒǬ|ƗƏƉǨ|Ɵ区˦|Ɨ̧|˪|ʅnjNj%|ʅ Go ƃ|ʅ ǡ ƅ ƃ|Βǯ超时,请ȷк。|ƌ已Ⱦ|ȷɪȾ或Ɖƌ;ȷǀƞ|ȷ立即ƞ|ȷǠƌ或 ǡ ƅ ʤЀƞ;ƞ时ʤ闪烁,Ƽ时ͨ原值并在悬停Ȓ中说明Ѓ。|̩|ͽƏƉ|ǠГ|货币单位|Ή(1 ˹ = ? 目标ǫ)|小数位数|ƌƉǨ|主ΒǠ|ȃ|两者都Ɖ|ƌƞɳ(ǘ)|ǻ Ƥ ȑƾƎ|ƽ(Ǡnj框/ljƏ;ȃȑ面板内ʰ)|已З的Ǝ表|ƪƎǫ|˹(Яƪ页)|ȱ(Ϸƪ页)|决定ƻƎ所用的ƪ页г;ƻЈƎΌʢƲ。|ї 与 ʴ ͬ按ƪʡƿ,旧 ʴ ɪ按 ʴ 价结算。工作日Ͱȓ 09–12、14–18 为峰ƾ,ɫ及ƺ。改价ΌʢƲ,已Ǯǀͨ;修正旧Ə请ɱ后ɨǒ重算。Ƨͫ按Ȳ价。|˼ƉǙ适用Ǝ。ЕΎ会ˮ此条ʢ预定调价,已Є的ǒƎ仍ͨ。|ȜƎ|新ƒ ID(如 ɇ)|ɰƒ|Ǭ与ƻ|ǩ中…|ƚǩƼ:{ƨ}|已ƚǩ {ƕ}|ȼͩ后ƚǩ|ɱ用ƪ΃Ǝ˺Ǝ表?|В|ˮ|从ƪ΃ƻƎ|ƪƻ只Ȕ Ƥ Ǝ(含ȑ);z-ai/Υ/̼/ʔ 等第三方Ǝ随版本Ȕ,ЅƎ表ʨЏЂΎ,或用ƒ名ʠ调整。|ɱȶȎǒ?|ɉǒ|ɱʧ?将ЉȎƗ˳,只补DZЬ的ȴ与Ɨ,不;已有Ǯ。|ɉǒƼ:{ƨ}|首次启动ƚʧ旧Ǯ;拷入˳Ї重跑。按ǙƎ回推;已ͮ˳无法Љ,跨ʦ时刻的Ɨͧ此前Ʊ。|ɱȶ|ȶȎǒ|Пƻ:{ƕ}|从未(ɨ˫Ǝ)|;ȵ:{ƹ}|ƪ΃|˫Ȝ|Шг|з ˍ(ƚ)|{ʙ} ƲƼ|ƻƲƼ|ƌƞƲƼ'],["en",`ʹ Ƃ {Ƌ} · л {ʘ} · ɕ {Ƴ} · ǵ {DŽ} · Ȭ {Ƹ}|ʹ Ƃ {Ƌ}|ʑ Ƌ ɠ|̘|п Ȇs ͣ ф Ɯs × {ʛ}. To Ѧpˏ Ơ п bills, ϱ п, ƭn ̞ Ɯs; ̞ing affects ɠ ў Dž.|ƀ ό ǧ: {ƨ}|̆ error|ƀ|Ƥ Ɓ|Above ƭ Ƴ м|ǂ ǥ ˋ|ǂ ǥ Ƴ м|Ǒ ǥ Ƴ м|Γ locations|σ ǧ|Cross-check Ơ Ɓ ή against ƭ ɂ Ǻ (warn μ ƭy diverge)|΢ {ɏ} · ̗ {ɦ}|ʓ {ƕ}|LJ ({Ʈ})|˙ {ȯ} / {Ƌ}|ʹ dz {dz} · Γ ƕ {Ȇ}|LJ|Ǜ's ǜ (calculated using ǿ ȅ)|Ǜ's ɥ ƴ|Ɩ|C̙s {Dž} · ɕ {Ƴ} · ǵ {DŽ} · Ȭ {Ƹ}|ʹ dz {Ƌ}|Γ ƕ {Ƌ}|Ǜ|ǂ Ʉ Ʃ|Ǵ|ƥ ƴ|Ǜ|ʹ dz|Γ ƕ|ȫ ̎|No Ɲ і. Once you ͟ chatting, ǜs ˏ ˚ ϧ ѡ щ.|ϑ|C̙s|In ѓ|ǵ ѓ|Out ѓ|Ǵ|No Ƃs ͘ Ʉ.|ȡ|ǣ Ʒ|LJ Ƌ (in Ʃ dž)|LJ Ʈ|χ ʗ|End ʗ (Ɂ = Ʉ)|Range: {̎}|ǣ a Ʒ to see ѧ ͓, ȯ Ƌ ǥ ˢ in ƭ Ʃ dž. Choose Ʉ, dz, ̙ ƕ or a Ɗ ̎.|{Ʈ} Ʒ {Ƌ} · ˙ {ȯ} · {э}%| (Ѡ ͓)| (near ͓)|˔|ʋ f̙ќ|ɗ|Ζ|Δ-Ɛ|ƶ|ƀ ȩ ϋ|ƀ ƹ|̒ (Ƙ ϋ ͏)|ˍ Ǥ w̙et|̀ Ǥs or dedicated ϋs ɷ.|ȿ {Ȇ} · ΢ {ɏ} · ̗ {ɦ} · ʓ {ƕ}|ƀ ό ǧ: {ƨ}|ƀ Ƀ|˾ Ɓ|Ƣing…|Ƣ Ɓ|ȫ ˉ Ɓ|̭ ϊ|̭ ƥ ˘ Ɓ|ʑs available п Ɓ ˂ ƭ Ơ Ǥ ˡ. Sign in at ɥrhythm.ϲ. In Ǿ ̳, copy ƭ Ǥ ɣ ˂ Netѕ, or ƭ tr_Ƃ ώ ˂ Storage / Application. Ϊ it beѨ ǥ ɜ ɤ ͇. ʊs ѐ in ƭ ˍ Ƈ ͠; λ ƭm μ expired.|̭ Qianwen / ɴ Ɓ|ʑs ɴ China funds. RAM Ȫ needs bss:Ǣ. The ͏ two ͎ ˏ required; ̿ ƥ is β STS. Ϝs ѐ in ƭ Ƈ ͠.|ѥ paths, numbers, nested add/͡/͔/Ϥ/ѩ/max/sum, or Ȍ βmulas. Example ǟ: {"Ȍ":"(Ɇ.Ȇ - Ɇ.ȯ) / 500000"}. ʶ ͎ ǥ unѧ to ϳ endpoint; put ȯ Ƌs in ͞.|Ɍ ζ|Ξ ζ|Ω URL|SupϮs ̷, ɂ Σ ǥ /θ/… paths ё ͐ ƭ ǿ ˍ Ϯ.|Γow non-loopќ Σ (plaintext Ƈs; ͚ ƭ exact ˅:Ϯ in ̙owed ˅s)|+ Ǘ Ǧ|The Ǘ p͛ ͗ ǟ Ǧ across ϟ Ǥs using an adѩ X-Adѩ-ƥ, ϫ a Ƙ ȩ ϋ. Set ƭ ̈́ ̈ ǥ Ϯ; λ ƭ Ƈ μ it expires.|Σ ʙ|̃ (ʌ)|Ω body (ʌ)|Blank sends no body; ʌ text is я ǥ sent as entered. ʉ ȣs to ʽ/json; ̋ can ɢ it.|Ο rules (ʌ)|ȫ Ɓ Ʃ|Ƣ ǝ (Ȁ)|Ɠ dž|́ ф Ɓ to Ʃ dž|ѥs ƭ Ʃ ʛ ǥ ̛. Keep ƭ ƹ dž; oƭr currencies ǥ Ǧ ѐ unϣd.|ƀ {Ƌ}|Ǜ {Ƌ}|φ {Ƌ}|їgress ш direction|ǐ (Ϧ → Ɂ)|˙ (Ɂ → Ϧ)|LJ cap (Ǟ)|̄ ʌ|{{ц_NAME}} ͗ a Ƈ or ˁ variable. <τ>_ȩ_с ͣs an upѡcase ɖ ID ͤ underscores, such as Ϭ→ϖ_ȩ_с. Names can shˏ a ϋ.|˿ ˅s (Ʌ)|ч ̋ carry Ƈs ɠ listed ˅s ˏ ̙owed; leave Ɂ to ̙ow ͤ a warning. їtects ϋs μ ͑ing someone else's config.|ɓ Ƴ|Store ƭ ϋ β ѝ {{ц}} placehџer above (write-ɠ: ͠d in ƭ ˍ Ƈ ͠, ȥ):|No {{ц}} placehџers in ƭ ̋ і — add e.g. "ɵ": "Beˏr {{MY_ȩ_с}}" ǥ a Ƈ Ƴ є appear ϧ.|ǣ|ǐ {ǟ} · φ {͞} / LJ {maxLJ} · ʓ {ƕ}|ǐ {Ƌ}|Ƣ Ɗ Ɓ|ǃ ʞ ƈ|Go|ʐ 5h|Ȉ|Ǖ|ɻs: {ƕ}|ɻ ƕ rѝed|{d}d {h}h ы|{h}h {m}m ы|{m}m ы|ɻs in {h}h {m}m|ɻs in {m}m|ɻs {ƕ}|At ɤ ˥’s average pace, ͓ expected {ƕ}|{э}% ȯ|{э}% ǟ|{η}%|ʓ {ƕ}|Go ƈ Ʃ Ʀ|Go ƈ ƙ ǝ (Ȁ)|ǃ ȩ ϋ (Ǟ; Ɂ = ʾ)|Go ƈ primary ˥|Go м ǖ|ɒ (ƹ: {ƹ})|ϕ ɛ|Ϊ|љ Ƈ|ʱ|̾…|The ϋ is written to ƭ ˍ Ƈ ͠ ɠ — it is never я in ƭ Ǻ ǥ ȥ.|These Ƈs ϰ in ƭ ɂ Ǻ. ExϮ ƭ ˆ ˁ variables ǥ re͟:|LJ м ǖ|Ƣ ƈ|ƛ Ƀ|ɸ (ˑ/Max)|Z.ai / Zhipu GLM ǡ ƅ|ʏ M ƅ / ƥ ƅ|ʏ ƅ|ƛ ϭ (̷)|ɹ: Ơ sites. Oƭrwise ƭ ˎ is sent ɠ to ɤ ϭ. ѥ a trusted ̈ ͤout a path.|5h|7d|њ Ƥ top-up ˡ (͖.͋.Ѧ/ƴ)|Λ (Ƕ) ƈ|Ƕ ƈ is disabled · ̉ to ɜ|5h ƈ|Ȉ ƈ|͛s {ƕ}|ƛ ˌ. ǣ ǥ sign in to ƭ ϱed ƹ; ̉ to retry.|ʑ Ƕ ƈ (͚ a signed-in Ƕ plugin)|ʑ Ƕ ƈ in Ư|ʑ Ƕ ƈ above ˀ|Τ ̝ in Ƃ ǜ|No ƈ Ɇ|ǔ Ʀ|ȩ ϋ (Ǟ; Ɂ = ʾ)|Ƣ ǝ (Ȁ)|Ƣ|ρ|Signing in…|ƛ Ƀ|оїxyȩ Ɣ ƈs|̭ ƹ|Ɠ label|̮|ǔ|Ƣ ǝ (Ȁ)|ɓ ̙owlist (˅:Ϯ, Ʌ)|˕ ϋ (write-ɠ)|́|ʻ ˉs|̆|No Ǥs|fetched {ƕ}|ϝ Ǥ (ǿ: {Ǥ})|̶ ƈ ɠ|Ƣ|ǣ ɤ item ͏|ǣ ǥ Ѣ a Ʃ Ʀ to ƙ|ɗ|ǣd items move to ƭ top; ̉ a ζ to expǥ ѧ own ˋ. Up to 8 Ɗ Ɓs ǥ 4 Ɣ ƹs.|ǣ ǃ rolling 5h, weekly ǥ dzly ƈs in ƭ Ư, Ǒ ǥ bottom-right Ȯ. Missing ɶ ѣ a ϯ.|ʇ (ΰ) Ʃ|ʐ-5h ƈ|Ȉ ƈ|Ǖ ƈ|LJ ȯ %|5h|Wk|Mo|̱|LJ|̸ ю ǧ: {ƨ}|Reading Ǻ…|̸ ˌ|͂ ǧ: {ƨ}|Ǽ cleˏd.|ʱ ǧ: {ƨ}|ƶ/ь-Ɛ ǎ is ь; base Ɯs ˏ ȯ|ϕ і ɿ (ɿ at {ƕ}); base Ɯs ˏ ǿly ȯ|ƶ hour now; Ɛ Ɯs ɽ|Ƥ Ɛ-hour ǎ is ϟ; ǿ Dž ˏ ˛ at Ɛ Ɯs|Δ-Ɛ now; ь-Ɛ Ɯs ɽ|̇ — ̙ ь-Ɛ (Sat & Sun ˛ at ь-Ɛ Ɯs ̙ щ)|̇ — ̙ ь-Ɛ|̇|Ɍ public ɐ — ь-Ɛ ̙ щ|ϙ ɐ — ̙ ь-Ɛ|Holiщ|ϙ ɐs (Η ʗs, Ѧma sepaʛd)|Since Aug 23, 2026 (Η ƕ), ơ ь-Ɛ ̙ щ, ʁ ѕ-shift ʟs.|ƶ|Δ-Ɛ|ƶ Ʈ strip style|ɍ (one-line)|̯ic (segments & chip)|Popup ω beβe Ɛ/ь-Ɛ switch|Lead ƕ (Ȁ, 1-30)|ƣ type|ɔ Ɛ|ɔ ь-Ɛ|Ι|ɔ Ɛ ˞|ɔ ь-Ɛ ˞|Θ switches to {phase} ǎ in about {ƕ}; ѩd ϳ c̙ ǜs in ɤ ˥.|Ɛ|ь-Ɛ|Got it|ƶ ω|Δ-Ɛ ω|Popup Ʀ|ʇ|Screen center|Also send a system ʚ|ч ɜd, ̙ow ʚ ѡmission in ƭ Ǿ ̈ ш so you get ωed even μ ƭ ˡ is ѩimized or ќgrounded.|ǽ ƭ popup|ǽ ͌ Ɛ|ǽ ͌ ь-Ɛ| (preview)|ƶ/ь-Ɛ ǎ & ͕|˖ Ϩ: ɜ Ɛ/ь-Ɛ ǎ ǥ ƭ “proѩent ͕” toggle.|Ρ|Money & dž|ǂ Ʃ|Simplify ƭ Ư|Dismiss guide|Re͠ ͙d Ɔ ({͊})|ɗ ͈s ƭ ɢ ǥ ϩs ƭ row until ̐d. ʼ ʜ ˏ kept; ϡmatic Ɯ ˆ ά.|̰ chips|Box ǖ|Unmount|UnƜd|ȫ|You edited ɤ Ɯ manu̙y; ̚ є ϫ Ѡwrite it.|Resume ̚|Per-Ƙ statistics (Ɩ & ǜ)|ǂ Ƙ ǜs|{n} Ɔ|Oƭr|ʑ Ƙ ǜ ͇|Expǥ by ȣ|Remember expansion|ʑ Ɩ|ʑ ǜ shˏs|ћ Ƙ in Ȯ ΰ|ʋ Ʈ|Collapsed ̑|Card Ʀ|ɺ rows (1–10)|Ƣ ǝ (10–60 seconds)|Ϙ Ȇ ǥ Ƙ ͊|ћ Ƙ ǥ ǜ|ћ|After Ɓs|Bottom|Ǜ|т 90 щs|Ǵ ̏|ƥ ƴ|ǵ hit ʛ|unreϮed?|Zero DŽ hѧ on long Dž may mean a relay ͙d DŽ ͎. Γ-miss ǜ Ȥ; check ͤ ƭ direct ȩ.|Value · Ɩ ѡ ф|ɕ|ǵ|Ȭ|No ƴ Ɇ ɟ Ʈ.|blended {Ɯ}/M|л ʛ = DŽ ͗ ÷ (͗ + unDŽd Ƴ). “ɘ?” means DŽ Ɇ may be ε, so ǜ Ȥ. х Ɯ = ǜ ÷ Ɩ × 1M; ώ = Ɩ ÷ ǜ.|Unattributed (early Ɇ · ˛ as ͘)|ʹ Ƃ {Ƌ} (ȩ) · ƅ equiv. {ǍAmount} · л {ʘ} · ɕ {Ƴ} · ǵ {DŽ} · Ȭ {Ƹ}|ʹ Ƃ {Ƌ} (ȩ) · ƅ equiv. {ǍAmount}|ƥ ƅ ƴ stats (ѡ-1% & ˃ ʀ)|No ǡ ƅ ƈ Ɇ і. ǣ ǥ ƙ a ˉ under ƛs.|ȉ|˙ %|ʹ Ʈ ̈́ (ɂ Ǻ)|Per 1% ƈ ≈|Full ˥ (100%) ≈|͛s {ƕ}|͜ delta|ǿ ƴ ratio|ϫ ɝ|{ʙ} (as of {ƕ})|Ѩ κ ̛|ƅ ƴ curves (˚ ˂ ͜ ǝs)|̱|Ȉ|Ǖ|ϕ ɝ: ƙ successϦy twice ͤ a ƈ ˢ ϣ.|{ʗ}: ˃ est. ≈ {Ϧ} (ѡ 1% ≈ {ѡ1}) · ̈́ {Ɩ} / {ǜ} · {ǝs} ͜ ǝ(s)|Ε ˏ έ-Ɯ ˜s. ƅs ͣ ƈ; Ʒs ͊ ȩ ɠ. Estimates cѠ dsh Dž, while server ˢs cѠ ƭ Ǥ. Ȣ ͜s ˏ less precise. 5h rolls; week/dz ͣ ɂ ʗs.|Θ class|ƅ ʞ|̒|ȩ ƴ|Sepaʛ ˠs|Try 2 × 0.8|Changing ƭ ˠ ά to ̙ ȅ ɟ Ƙ|Change ɤ ʛ ɠ; uncheck ˤ ƭ shˏd ˠ|Enter a non-negative ʛ or multiplication, e.g. 2 × 0.8|ː ɑ Ƙ ζs|̒ (strip suffix / prefix / family similarity)|Exact match ɠ|Manual assignments ǥ ˉ Ɯs ɷ. ː recognizes ˜ ζs ǥ ʗ tags.|Ƥ ȣ Ɯ|ɗ|Unmatched ǥ manu̙y ɛ Ɔ|Set ѝ ί ǥ Ƙ sepaʛly: ϱ a έ ϊ, ͣ a Ɗ Ɯ, or mark as ɂ. ȫ Ɯs ɽ ɠ to ё ί.|Ǵ|ʼ|ɕ|ǵ ю|ǵ write|Leave ͅ ͣ ƭ DŽ-ю Ɯ|Ȭ|̔ / ̺|˗|ʸ|CommǥCode|˒|SCNet ƥ ƅ|ʔ Ark ǡ ƅ|̼ ƥ ƅ (ʂ.Ѧ)|Xiaomi MiMo ƥ ƅ|Baidu Qianfan ƥ ƅ|˙ / Ȇ|ȭ|Reads ȭ Ǧ Ȅ.|̂ (Droid)|ȇ|ȇ Ȧ|Press ƭ button beѨ to get ƭ Ƈ Ȅ (approve once in ƭ Ǿ), or paste a ɣ copied ˂ ̳. Leave ƭ Ȧ ͅ ю ƭ ǿ one; Ν ˎs need an explicit Ȧ ǥ inference ȩ ϋs do ϫ ѕ.|Get ƈ Ƈ|ƛ pool|Stǥard + Core|Organization ID (Ǟ)|ƅ Ǧ|ʈ|ƀ|ƛ ƹ|ʵ ͍|Ƞ о|̀ о|Inst̙ @ʂ/ˊ on ƭ ˍ ˅ ǥ run ι ȋ as ƭ ʝ.|Inst̙ ʿ on ƭ ˍ ˅. ρ opens ё ˅’s Ǿ; β a remote or headless ˅, run bl ȋ --ʖ as ƭ ʝ.|Ǖ Ǧ ƈ (ѡsonal Lite 50K / Stǥard 500K; see ϳ Ǎ ˡ)|ƅ ͟ ʗ (Ǟ, Ȋ; Ɂ = ͆ dz)|ǁ ʛ ɢs (Ǟ; Ǧ deducted ѡ 1M Ɩ; Ɂ = ɚ)|ɺ ζ, e.g. Ɉ3.8-ˇ|Enter ̙ three positive ȅ to Ѣ Ȅ; ͈ ̙ ˤ ƭ ɚ.|̭|ʵ ǁ ͍; ʖ is authoritative. Counts ƅ Dž assigned to ̼. Excludes pay-as-you-go ȩ. ̭ ȅ β oƭr Ɔ.|Ǖ Ǧ ƈ β ɂ ʀ (Basic 60,000 / Stǥard 240,000 / ї 600,000)|ƅ ͟ ʗ (Ǟ, Ȋ; Ɂ = ͆ dz)|ѥs ʖ ͝s ўer than 24h, ƭn ʀ ˂ ɂ ʜ ǥ Ơ ǁ ȅ. Oƭr tools ǥ unlisted Ɔ ˏ excluded.|ə Ȫ ID|ə ϜȪ|AK...|SK...|{h}h|{h}h {m}m|{m}m|Δ-Ɛ in {ƕ}|ƶ in {ƕ}|ƶ ̌ ({Ѥ}): {˥s}; ɿ: {ƕ}. {ˣ}|No Ɛ ˥s ɛ. {ˣ}|ɑ|Ǜ|ʹ dz|Γ ƕ|Since ƭ Ǻ was created · C̙s {Dž}|̵ ƴ|ˍ + ɞ Ȇ|̵ ͝ has ϫ been upʗd β 24 ̌|̽ daily ʜ|Ε ͣ ƭ latest ͝ ǥ may lag ƭ Ơ bill by Ȁ. ƥs ̍ Ƴ, Ƹ, DŽ ǥ ̜; ̜ is ˛ ͤ Ƹ. Reconcile by Ƌ.|Ǜ/dz ͣ ˅ ƕѤ {˅}; ɤ Ǿ ͣs {Ǿ}. Different щ boundaries affect reconciliation. Set dsh to ϳ ɂ ƕѤ to align.|Ǜ's Ƃs|ʲ a ʗ row to expǥ ѧ Ƃ ǖ|ʍ Ƃ ǖ…|No Ƃ ǖ ɟ щ (early Ɇ or Ƃ Ϫ cleaned)|Ƶ to load Ƃ ǖ|By Ƃ (̙ Ɲ)|Days ͉; ̝ ͐ ˋ. ̀ rows ѣn; cumulative ǜs ̍ every conversation.|No Ƃ Ɇ і|ʍ Ƃ ̏…|Ƶ to load Ƃ ̏|Rows|Τ Ǎ Ȇs|ч on, every Ƌ ѣs Ȇ ˜ ǜ ʁ Ǎ ɶ; ь (ȣ) ͊s real-money ȩ ίs ɠ|р header ǜ ǖ|р ˀ ǜ ǖ|р turn ǜ summaries|̖|Ǵ high→Ѩ|Ǵ Ѩ→high|Ϟ ў→џ|Ϟ џ→ў|̽ order|Ǽ|ƥ ƴ stats|Γ-ƕ {Ɩ} Ɩ · Ƴ {Ƴ} · DŽ {DŽ} · Ƹ {Ƹ} · {Dž} Dž|{ʗ}: {Ɩ} Ɩ (Ƴ {Ƴ} · DŽ {DŽ} · Ƹ {Ƹ}) · {Dž} Dž · {ǜ}|No Ɲ і — daily ƴ є accumulate ϧ|̻|ƛs|ʼ|Ψ|ǔ|Ǽ Ɇ|ȡ ǜ Ʃ Ʀ|BeѨ ƭ ˀ|ȡ title ш|Δ|ǹ Ʒ ȯ %|ǹ ƭ Go ƈ|ǹ Ƒ Ǎ ƈs|Page γ ƕd out. Please retry.|ƀ Ϩ|ʲ ƭ ζ to ϩ/ѣ; ̉ ƭ Ƌ to ƙ|ʲ to ƙ now|ʲ a Ư Ɓ or Ǎ м to ƙ. It pulses while γ; on failure it keeps ƭ џ ώ ǥ ѣs ƭ ϯ on hѠ.|Got it|Ǜ ǜ Ʃ|ǂ footer|ȝ|Exϣ ʛ (1 ф = ? target dž)|Decimal places|ƀ Ʃ Ʀ|Main Ư|Ǒ ˡ|Ι|ƀ ƙ ǝ (Ȁ)|ѥ Ƥ Ɛ-hour Ɯs|їѩent ͕ during Ɛ ̌ (Ư Ʒ м, Ʉ's ǜ; previewed in ƭ Ǒ Ɛ panel)|Mounted Ɯ ͢s|Ƞ Ɯ dž|ф (Ξ Ơ ˡ)|п (Ɍ Ơ ˡ)|Selects ƭ Ơ ǎ-ˡ ͒. ͂ed Ɯs ɽ to subsequent Dž.|ї ǥ ʴ ͣ sepaʛ Ơ ȅ; ˟ ʴ ζs ͣ ʴ ȅ. Weekщ Ɛs ˏ 01–04 ǥ 06–10 UTC; ơ ь-Ɛ. Rate ή ɽ to later Dž. Recorded Ƌs ϰ until you Ɏ ˝ recalculation. ǵ writes ͣ hit ȅ.|Current ȅ ˏ ѣn ϧ. љing Ϣs any future scheduled ϣ ɟ ϊ; α ˝ ȅ ˏ retained.|ʋ Ɯ|New Ƙ ID (e.g. ɇ)|̭ Ƙ|Data & ̞|̾…|̒-Ѣ ǧ: {ƨ}|̒-я {ƕ}|Ǒ ˏ ϡ-я|Overwrite ƭ Ɯ ͢ ͤ Ɯs ˂ ƭ Ơ ъ?|Apply|Cancel|͂ Ɯs ˂ Ơ ъ|Ƞ ̞ upʗs Ƥ Ɯs (ʁ Ɛ ȅ). Third-party Ɯs (z-ai/Υ/̼/ʔ) ͐ releases; expǥ a vendor ˄ in ƭ Ɯ ͢ or ͣ Ƙ ˆ.|ʱ ̙ Ɲ?|˓ ˈ Ɲ|Μ ͑? Replays ̙ Ƃ Ϫ ǥ ɠ fills ʗs/Ƃs ε ˂ ƭ Ǻ; existing ʜ ˏ untouched.|Ƶ to ͑ ˈ Ɲ: {ƨ}|Pre-inst̙ Ɲ ͑s at ͏ launch; rerun after copying џ Ϫ. Ǵs ͣ ǿ Ɯs. Deleted Ϫ canϫ replay; Ƃs spanning inst̙ation exclude α ƴ.|Μ ͈|ʱ ̙ Ɲ|т ̞: {ƕ}|Never (bundled Ɯs)|; Ɠ: {ƹ}|Ƞ ъ|Κ|Language|FolѨ ˍ (ϡ)|{ʙ} c̙ ǧ|͂ c̙ ǧ|ƀ ƙ c̙ ǧ`]].map(([e,t])=>{const n=Qa(t).split("|");return[e,Object.fromEntries(us.map((a,o)=>[a,n[o]]).filter(([,a])=>a!=="\0"))]}));function Ha(){return(typeof navigator<"u"&&typeof navigator.language=="string"?navigator.language:"").toLowerCase().startsWith("zh")?"zh":"en"}function nt(e){const t=typeof e=="string"?e.toLowerCase().split(/[-_]/)[0]:"";return t==="zh"||t==="en"?t:null}function j(e){const t=typeof e=="string"?e:e?.locale;return t==="zh"||t==="en"?t:nt(e?.activeLocale)||Ha()}function V(e){const t=e==="zh"?_e.zh:_e.en;return(n,a)=>{let o=t[n]??_e.en[n]??n;if(a)for(const l of Object.keys(a))o=o.split("{"+l+"}").join(String(a[l]));return o}}const st={day:"periodDay",month:"periodMonth",all:"periodAll",custom:"periodCustomRange"};function te(e,t){throw new Error("dsh-cost-meter: 服务端数据非法 ("+e+": "+t+")")}function me(e,t){return(e===null||typeof e!="object"||Array.isArray(e))&&te(t,"object"),e}function Y(e,t){return(typeof e!="number"||!Number.isFinite(e))&&te(t,"number"),e}function X(e,t){return typeof e!="string"&&te(t,"string"),e}const Qe=(e,t,n)=>typeof e=="string"&&t.includes(e)?e:n;function Ua(e,t=!1){return e===null||typeof e!="object"||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(([n,a])=>t?n.length>0&&["plan","api"].includes(a):["auto","plan","api"].includes(a)))}function Ce(e,t){return typeof e!="boolean"&&te(t,"boolean"),e}const We=(e,t,n)=>Object.fromEntries(t.map(a=>[a,n(e[a])]));function qa(e,t){const n={};if(e!==null&&typeof e=="object"&&!Array.isArray(e))for(const a of Object.keys(e)){const o=e[a];if(o===null||typeof o!="object"||Array.isArray(o))continue;const l=r=>typeof r=="number"&&Number.isFinite(r)&&r>=0?r:0;n[a]={...Kt(o),...We(o,["input","output","cacheRead","cacheWrite","reasoning","cost"],l),apiCost:o.apiCost===void 0?l(o.cost):l(o.apiCost)}}return n}const St=["costCny","apiCostCny","costEur","apiCostEur"],Kt=e=>Object.fromEntries(St.filter(t=>Number.isFinite(e?.[t])).map(t=>[t,e[t]]));function Wa(e,t){me(e,t);const n={...Kt(e),reasoning:e.reasoning===void 0?0:Y(e.reasoning,t+".reasoning"),apiCost:e.apiCost===void 0?void 0:Y(e.apiCost,t+".apiCost"),byModel:qa(e.byModel,t+".byModel"),byProviderModel:qa(e.byProviderModel,t+".byProviderModel")};for(const a of["input","output","cacheRead","cacheWrite","calls","cost"])n[a]=Y(e[a],t+"."+a);return n}function ds(e){return e==null?void 0:{source:X(e.source,"source"),requestId:X(e.requestId,"requestId"),attempt:Y(e.attempt,"attempt"),complete:Ce(e.complete,"complete"),status:X(e.status,"status"),upstream:X(e.upstream,"upstream")}}function $a(e){return(Array.isArray(e)?e:te("rows","array")).map(t=>({provider:X(t.provider,"provider"),model:X(t.model,"model"),bucket:X(t.bucket,"bucket"),tokens:Y(t.tokens,"tokens"),...t.requests===void 0?{}:{requests:Y(t.requests,"requests")},rate:Y(t.rate,"rate"),cost:Y(t.cost,"cost"),priced:Ce(t.priced,"priced"),plan:Ce(t.plan,"plan")}))}function zt(e,t){return{...Wa(e,t),id:X(e.id,t+".id"),provider:typeof e.provider=="string"?e.provider:"",model:typeof e.model=="string"?e.model:""}}function ve(e,t){const n={...Wa(e,t),date:X(e.date,t+".date"),sessions:[]};return e.sessions!==void 0&&(Array.isArray(e.sessions)||te(t+".sessions","array"),n.sessions=e.sessions.map((a,o)=>zt(a,t+".sessions["+o+"]"))),n}function Gt(e,t,n=["cacheWrite","reasoning"]){const a={};for(const o of["cacheHit","cacheMiss","output"])a[o]=Y(e[o],t+"."+o);for(const o of n)e[o]!==void 0&&(a[o]=Y(e[o],t+"."+o));return a}function Vt(e,t){me(e,t);const n={...Gt(e,t),...vt(e)};for(const a of["offPeak","peak","legacyBase","longContext"])e[a]!==void 0&&(n[a]=Gt(e[a],t+"."+a,["cacheWrite","reasoning","aboveInputTokens"]));e.cny!==void 0&&(n.cny=Gt(e.cny,t+".cny")),e.legacy!==void 0&&(n.legacy=Ce(e.legacy,t+".legacy")),e.rateHistory!==void 0&&((!Array.isArray(e.rateHistory)||e.rateHistory.length>16)&&te(t+".rateHistory","price history"),n.rateHistory=e.rateHistory.map((a,o)=>((!a||typeof a.before!="string"||!Number.isFinite(Date.parse(a.before)))&&te(t+".rateHistory","dated price"),{...Vt({...a,rateHistory:void 0},t+".rateHistory."+o),before:a.before}))),Object.assign(n,Ct(e));for(const a of["billingMode","sourceUrl","checkedAt","notes"])typeof e[a]=="string"&&(n[a]=e[a]);return n}function ms(e,t){const n=o=>o==null?void 0:{...["aliyun","tokenrhythm"].includes(o.adapter)?{adapter:o.adapter}:{},enabled:o.enabled===!0,label:typeof o.label=="string"?o.label:"",labelEn:typeof o.labelEn=="string"?o.labelEn:"",dashboardUrl:typeof o.dashboardUrl=="string"?o.dashboardUrl:"",display:Qe(o.display,["sidebar","settings","off"],"both"),unit:o.adapter==="tokenrhythm"?"CNY":["CNY","EUR","CREDITS"].includes(o.unit)?o.unit:"USD",convertToDisplayCurrency:o.convertToDisplayCurrency===!0,allowInsecureHttp:o.allowInsecureHttp===!0,refreshMinutes:typeof o.refreshMinutes=="number"&&Number.isFinite(o.refreshMinutes)?o.refreshMinutes:15,request:o.request&&typeof o.request=="object"?o.request:{url:""},extract:o.extract&&typeof o.extract=="object"?o.extract:{},allowedHosts:Array.isArray(o?.allowedHosts)?o.allowedHosts.filter(l=>typeof l=="string"):[]};me(e,t);const a={};if(e.prices!==null&&typeof e.prices=="object"&&e.prices.models!==null&&typeof e.prices.models=="object")for(const o of Object.keys(e.prices.models))a[o]=Vt(e.prices.models[o],t+".prices.models."+o);return{queryAccounts:e.queryAccounts&&typeof e.queryAccounts=="object"?e.queryAccounts:{},locale:e.locale==="zh"||e.locale==="en"||e.locale==="auto"?e.locale:"auto",position:e.position==="header"||e.position==="off"?e.position:"dock",sidebar:e.sidebar!==!1,showSessionId:e.showSessionId===!0,hideOfficialBalance:e.hideOfficialBalance===!0,hideTodayCost:e.hideTodayCost===!0,sessionListCostPeriod:e.sessionListCostPeriod==="today"?"today":"total",modelStatistics:e.modelStatistics??{},...We(e,["hideSessionCostHeader","hideSessionCostDock","hideTurnCost","followSkinTransparency","sidebarTodayBalanceInline","sessionListCosts","hideBudget","sessionCostCompact","contextCostsEnabled","contextCostsPromptSeen","showTotalWithPlan","sidebarSimple","codexQuotaEnabled","codexCompatPromptDismissed","includeSubagentCost","peakEnabled","peakAlertWebNotify"],o=>o===!0),sidebarTodayMetric:["tokens","both"].includes(e.sidebarTodayMetric)?e.sidebarTodayMetric:"cost",sidebarTextOnly:e.sidebarTextOnly===!0,localSavings:e.localSavings,...Object.hasOwn(e,"sidebarOrder")?{sidebarOrder:Array.isArray(e.sidebarOrder)?e.sidebarOrder:[]}:{},statisticsBasis:e.statisticsBasis,sidebarModels:Object.fromEntries(Object.entries(qn).map(([o,l])=>[o,e.sidebarModels?.[o]??l])),codexQuotaSidebar:e.codexQuotaSidebar!==!1,codexQuotaStrip:e.codexQuotaStrip!==!1,codexQuotaSource:["connect","subscription","chatgpt","pi-ai","chatgpt-sub"].includes(e.codexQuotaSource)?e.codexQuotaSource:"auto",codexCompatHistoryAppliedAt:fe(e.codexCompatHistoryAppliedAt),sidebarStyle:Qe(e.sidebarStyle,["standard","compact","summary","icons"],"standard"),planQuotaStyle:e.planQuotaStyle==="gauge"?"gauge":"bars",...We(e,["sidebarSimplePromptSeen","sidebarSummaryPromptSeen","peakProgressPromptSeen"].filter(o=>Object.hasOwn(e,o)),o=>o===!0),billionContextNoticeEnabled:e.billionContextNoticeEnabled!==!1,billionContextNoticesSeen:Array.isArray(e.billionContextNoticesSeen)?e.billionContextNoticesSeen.filter(o=>typeof o=="string").slice(-32):[],priceMatchDismissed:Array.isArray(e.priceMatchDismissed)?e.priceMatchDismissed.filter(o=>typeof o=="string"):[],pricingCurrency:e.pricingCurrency==="CNY"?"CNY":"USD",currency:typeof e.currency=="string"?e.currency:"CNY",symbol:typeof e.symbol=="string"?e.symbol:"¥",decimals:Y(e.decimals,t+".decimals"),exchangeRate:Y(e.exchangeRate,t+".exchangeRate"),exchangeRateAuto:e.exchangeRateAuto!==!1,fxRates:e.fxRates,exchangeRateDate:e.exchangeRateDate??"",exchangeRateCheckedAt:e.exchangeRateCheckedAt??0,peakEffectiveAt:typeof e.peakEffectiveAt=="string"?e.peakEffectiveAt:"",peakWindows:Array.isArray(e.peakWindows)?e.peakWindows.map((o,l)=>({start:Y(o.start,t+".peakWindows["+l+"].start"),end:Y(o.end,t+".peakWindows["+l+"].end")})):[],peakHolidays:Array.isArray(e.peakHolidays)?e.peakHolidays.filter(o=>typeof o=="string"):[],peakNotice:e.peakNotice!==!1,peakAlertEnabled:e.peakAlertEnabled!==!1,peakAlertAhead:Number.isFinite(e.peakAlertAhead)&&e.peakAlertAhead>=1&&e.peakAlertAhead<=30?e.peakAlertAhead:2,peakAlertTarget:e.peakAlertTarget==="peak"||e.peakAlertTarget==="offpeak"?e.peakAlertTarget:"both",peakAlertPosition:e.peakAlertPosition==="center"?"center":"corner",peakStyle:["classic","progress"].includes(e.peakStyle)?e.peakStyle:"compact",peakTimeZone:typeof e.peakTimeZone=="string"?e.peakTimeZone:"auto",peakTimeDisplay:["countdown","switch"].includes(e.peakTimeDisplay)?e.peakTimeDisplay:"both",priceMatch:e.priceMatch==="exact"?"exact":"auto",priceOverrides:(()=>{const o={};if(e.priceOverrides!==null&&typeof e.priceOverrides=="object"&&!Array.isArray(e.priceOverrides))for(const[l,r]of Object.entries(e.priceOverrides))typeof l=="string"&&typeof r=="string"&&(o[l]=r);return o})(),priceTableDisplay:(()=>{const o={};if(e.priceTableDisplay!==null&&typeof e.priceTableDisplay=="object"&&!Array.isArray(e.priceTableDisplay))for(const[l,r]of Object.entries(e.priceTableDisplay))typeof l=="string"&&(o[l]=r===!0);return o})(),codingPlans:(()=>{const o={};if(e.codingPlans!==null&&typeof e.codingPlans=="object"&&!Array.isArray(e.codingPlans))for(const l of Object.keys(e.codingPlans)){const r=e.codingPlans[l];r===null||typeof r!="object"||Array.isArray(r)||(o[l]={enabled:r.enabled===!0,display:r.display==="sidebar"||r.display==="both"||r.display==="off"?r.display:"settings",...typeof r.showInComposer=="boolean"?{showInComposer:r.showInComposer}:{},refreshMinutes:typeof r.refreshMinutes=="number"&&Number.isFinite(r.refreshMinutes)?r.refreshMinutes:15,apiKey:typeof r.apiKey=="string"?r.apiKey:"",...l==="minimax"?{baseUrl:typeof r.baseUrl=="string"?r.baseUrl:""}:{},...l==="factory"?{orgId:typeof r.orgId=="string"?r.orgId:"",factoryPool:["core","both"].includes(r.factoryPool)?r.factoryPool:"standard"}:{},...l==="workbuddy"?{accountScope:r.accountScope??"current",accountIds:Array.isArray(r.accountIds)?r.accountIds:[],...typeof r.accountSource=="string"?{accountSource:r.accountSource}:{}}:{},...l==="opendesign"?{workspaceId:typeof r.workspaceId=="string"?r.workspaceId:""}:{},...l==="qwen"?{quotaSource:["cli","bailian"].includes(r.quotaSource)?r.quotaSource:"local"}:{},...typeof r.planCredits=="number"&&Number.isFinite(r.planCredits)&&r.planCredits>0?{planCredits:r.planCredits}:{},...typeof r.planStart=="string"?{planStart:r.planStart}:{},...r.rates!==null&&typeof r.rates=="object"&&!Array.isArray(r.rates)?{rates:r.rates}:{},...typeof r.accessKeyId=="string"?{accessKeyId:r.accessKeyId}:{},...typeof r.secretAccessKey=="string"?{secretAccessKey:r.secretAccessKey}:{}})}return o})(),prices:{models:a,...e.prices?.custom?{custom:e.prices.custom}:{},default:Vt(e.prices?.default??{cacheHit:0,cacheMiss:0,output:0},t+".prices.default"),providers:e.prices?.providers&&typeof e.prices.providers=="object"?e.prices.providers:{},currency:typeof e.prices?.currency=="string"&&e.prices.currency.length>0?e.prices.currency:void 0},historyDays:Y(e.historyDays,t+".historyDays"),billingStorageRetentionDays:[0,7,30].includes(e.billingStorageRetentionDays)?e.billingStorageRetentionDays:7,fetchedAt:e.fetchedAt===null||e.fetchedAt===void 0?null:X(e.fetchedAt,t+".fetchedAt"),priceSource:typeof e.priceSource=="string"?e.priceSource:"bundled",budget:{enabled:e.budget?.enabled===!0,amount:typeof e.budget?.amount=="number"&&Number.isFinite(e.budget.amount)?e.budget.amount:100,period:e.budget?.period==="day"||e.budget?.period==="all"||e.budget?.period==="custom"?e.budget.period:"month",customStart:typeof e.budget?.customStart=="string"?e.budget.customStart:null,customEnd:typeof e.budget?.customEnd=="string"?e.budget.customEnd:null,detail:e.budget?.detail!==!1},balance:{source:e.balance?.source==="account"?"account":"auto",display:Qe(e.balance?.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof e.balance?.refreshMinutes=="number"&&Number.isFinite(e.balance.refreshMinutes)?e.balance.refreshMinutes:5,showProgressBar:e.balance?.showProgressBar===!0,showSource:e.balance?.showSource===!0,officialChannelOnly:e.balance?.officialChannelOnly===!0,quickHide:e.balance?.quickHide===!0,budgetCap:typeof e.balance?.budgetCap=="number"&&Number.isFinite(e.balance.budgetCap)&&e.balance.budgetCap>0?e.balance.budgetCap:null,currency:e.balance?.currency??"native",...Object.hasOwn(e.balance??{},"clickHintSeen")?{clickHintSeen:e.balance?.clickHintSeen===!0}:{}},goQuota:{enabled:e.goQuota?.enabled!==!1,...typeof e.goQuota?.showInComposer=="boolean"?{showInComposer:e.goQuota.showInComposer}:{},display:Qe(e.goQuota?.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof e.goQuota?.refreshMinutes=="number"&&Number.isFinite(e.goQuota.refreshMinutes)?e.goQuota.refreshMinutes:15,apiKey:typeof e.goQuota?.apiKey=="string"?e.goQuota.apiKey:"",main:e.goQuota?.main==="weekly"||e.goQuota?.main==="monthly"?e.goQuota.main:"rolling",detail:e.goQuota?.detail!==!1},customBalance:n(e.customBalance),gatewayQuotas:(()=>{const o=Array.isArray(e.gatewayQuotas)?e.gatewayQuotas:e.gatewayQuotas?.sources;return{sources:Array.isArray(o)?o.slice(0,4).filter(r=>r!==null&&typeof r=="object"&&!Array.isArray(r)).map(r=>({id:typeof r.id=="string"?r.id.slice(0,48):"",type:"cliproxyapi",label:typeof r.label=="string"?r.label.slice(0,80):"",baseURL:typeof r.baseURL=="string"?r.baseURL:"",enabled:r.enabled!==!1,display:Qe(r.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof r.refreshMinutes=="number"&&Number.isFinite(r.refreshMinutes)?Math.min(1440,Math.max(1,Math.floor(r.refreshMinutes))):15,includeProviders:Array.isArray(r.includeProviders)?[...new Set(r.includeProviders.filter(i=>typeof i=="string").map(i=>i.toLowerCase()).filter(i=>Jt.includes(i)))]:Jt,allowedHosts:Array.isArray(r.allowedHosts)?r.allowedHosts.filter(i=>typeof i=="string").slice(0,16):[],allowInsecureHttp:r.allowInsecureHttp===!0,antigravityOnlyGemini:r.antigravityOnlyGemini===!0,keyVar:typeof r.keyVar=="string"?r.keyVar:""})):[]}})(),customBalances:(()=>{if(Array.isArray(e.customBalances))return e.customBalances.filter(l=>l!==null&&typeof l=="object").slice(0,8).map(n).filter(Boolean);const o=n(e.customBalance);return o?[o]:[]})(),corner:{enabled:e.corner?.enabled===!0,goRolling:e.corner?.goRolling!==!1,goWeekly:e.corner?.goWeekly!==!1,goMonthly:e.corner?.goMonthly!==!1,budget:e.corner?.budget!==!1},quotaStrip:{enabled:e.quotaStrip?.enabled===!0,budget:e.quotaStrip?.budget!==!1,go:e.quotaStrip?.go!==!1,plans:e.quotaStrip?.plans!==!1,planAmounts:e.quotaStrip?.planAmounts!==!1,...Object.hasOwn(e.quotaStrip??{},"promptSeen")?{promptSeen:e.quotaStrip?.promptSeen===!0}:{}},usage:{position:e.usage?.position==="general"||e.usage?.position==="section"?e.usage.position:"cost"},barDirections:(()=>{const o=e.barDirections!==null&&typeof e.barDirections=="object"&&!Array.isArray(e.barDirections)?e.barDirections:{},l=(r,i)=>o[r]==="remaining"||o[r]==="used"?o[r]:i;return{balance:l("balance","remaining"),budget:l("budget","used"),go:l("go","used"),plan:l("plan","used")}})(),planBilling:{...Array.isArray(e.planBilling?.autoProviders)?{autoProviders:e.planBilling.autoProviders.filter(o=>Be.includes(o))}:{},providers:Ua(e.planBilling?.providers),models:Ua(e.planBilling?.models,!0),modelPlans:Object.fromEntries(Object.entries(e.planBilling?.modelPlans??{}).filter(([o,l])=>o.includes(":")&&Be.includes(l)))}}}const ot=e=>typeof e=="number"&&Number.isFinite(e)?e:null,fe=e=>ot(e)??0,ps={status:"off",message:"",fetchedAt:0,currency:"",totalBalance:0,grantedBalance:0,toppedUpBalance:0},fs={status:"off",message:"",fetchedAt:0,rolling:null,weekly:null,monthly:null},Ka=(e=null)=>({status:"off",message:"",fetchedAt:0,label:"",unit:"USD",remaining:0,maxBudget:null,spend:null,index:e});function Yt(e,t){return me(e,t),{status:e.status==="ok"||e.status==="error"?e.status:"off",message:typeof e.message=="string"?e.message:"",fetchedAt:typeof e.fetchedAt=="number"?e.fetchedAt:0}}function za(e,t){return{...Yt(e,t),keyConfigured:e.keyConfigured===!0,keySource:typeof e.keySource=="string"?e.keySource:"",currency:typeof e.currency=="string"?e.currency:"",totalBalance:fe(e.totalBalance),grantedBalance:fe(e.grantedBalance),toppedUpBalance:fe(e.toppedUpBalance)}}function Zt(e,t){return e==null?null:((typeof e!="object"||Array.isArray(e))&&te(t,"object"),{percent:fe(e.percent),resetsAt:typeof e.resetsAt=="string"?e.resetsAt:""})}function bs(e,t){return{...Yt(e,t),rolling:Zt(e.rolling,t+".rolling"),weekly:Zt(e.weekly,t+".weekly"),monthly:Zt(e.monthly,t+".monthly")}}function Ga(e,t){return{...Yt(e,t),label:typeof e.label=="string"?e.label:"",unit:typeof e.unit=="string"?e.unit:"USD",remaining:fe(e.remaining),maxBudget:ot(e.maxBudget),spend:ot(e.spend),index:typeof e.index=="number"&&Number.isFinite(e.index)&&e.index>=0?Math.floor(e.index):null}}const gs=new Set(["ok","partial","unknown","error","stale","unsupported","capability_missing"]),ys=new Set(["off","loading","ok","partial","stale","error"]),Jt=["antigravity","claude","codex","kimi","xai","workbuddy"],Va={antigravity:"Antigravity",claude:"Claude",codex:"Codex",kimi:"Kimi",xai:"xAI",workbuddy:"WorkBuddy"};function hs(e,t){me(e,t);const n=(r,i="")=>typeof r=="string"?r:i,a=r=>ot(r),o=r=>r!==null&&typeof r=="object"&&!Array.isArray(r)?{id:n(r.id),label:n(r.label),...a(r.percent)===null?{}:{percent:a(r.percent)},resetsAt:n(r.resetsAt),periodHours:a(r.periodHours),scope:n(r.scope)}:null,l=r=>r!==null&&typeof r=="object"&&!Array.isArray(r)?{unit:n(r.unit,"credits"),used:a(r.used),remaining:a(r.remaining),limit:a(r.limit),fetchedAt:n(r.fetchedAt),packages:Array.isArray(r.packages)?r.packages.filter(i=>i!==null&&typeof i=="object"&&!Array.isArray(i)).map(i=>({id:n(i.id),label:n(i.label),used:a(i.used),remaining:a(i.remaining),limit:a(i.limit),startsAt:n(i.startsAt),resetsAt:n(i.resetsAt)})):[]}:void 0;return{id:n(e.id),type:"cliproxyapi",label:n(e.label),status:ys.has(e.status)?e.status:"error",message:n(e.message),fetchedAt:a(e.fetchedAt)??0,attemptedAt:a(e.attemptedAt)??0,serverVersion:n(e.serverVersion),keyConfigured:e.keyConfigured===!0,keySource:n(e.keySource,"none"),accounts:Array.isArray(e.accounts)?e.accounts.filter(r=>r!==null&&typeof r=="object"&&!Array.isArray(r)).slice(0,16).map(r=>({id:n(r.id),provider:n(r.provider,"unknown"),label:n(r.label,"unknown"),status:gs.has(r.status)?r.status:"unknown",message:n(r.message),plan:n(r.plan),windows:Array.isArray(r.windows)?r.windows.map(o).filter(Boolean):[],credits:l(r.credits)})):[],unsupportedProviders:Array.isArray(e.unsupportedProviders)?e.unsupportedProviders.filter(r=>typeof r=="string").slice(0,32):[]}}function ks(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;const t={};if(e.providers!==null&&typeof e.providers=="object"&&!Array.isArray(e.providers))for(const[n,a]of Object.entries(e.providers)){if(a===null||typeof a!="object"||Array.isArray(a))continue;const o={},l={};if(a.windows!==null&&typeof a.windows=="object"&&!Array.isArray(a.windows))for(const[r,i]of Object.entries(a.windows))i===null||typeof i!="object"||Array.isArray(i)||(o[r]={...We(i,["percent","localTokens","localCost","sampleCount"],fe),...We(i,["sampleAt","per1Tokens","per1Cost","fullTokens","fullCost"],ot),resetsAt:typeof i.resetsAt=="string"?i.resetsAt:"",method:i.method==="sample"||i.method==="live"?i.method:"none",confidence:i.confidence==="high"||i.confidence==="low"?i.confidence:null});if(a.intervals!==null&&typeof a.intervals=="object"&&!Array.isArray(a.intervals))for(const[r,i]of Object.entries(a.intervals))Array.isArray(i)&&(l[r]=i.filter(c=>c!==null&&typeof c=="object"&&!Array.isArray(c)).map(c=>We(c,["t0","t1","tokens","cost","pct","per1Tokens","per1Cost"],fe)));t[n]={windows:o,intervals:l}}return{generatedAt:fe(e.generatedAt),providers:t}}function xs(e){if(!e||typeof e!="object"||Array.isArray(e))return;const t=e.usage&&typeof e.usage=="object"?e.usage:{};return{installed:e.installed===!0,enabled:e.enabled===!0,version:typeof e.version=="string"?e.version:"",detection:Qe(e.detection,["package","profile","none"],"none"),planClass:Qe(e.planClass,["auto","plan","api"],"auto"),usage:{calls:fe(t.calls),cost:fe(t.cost),tokens:fe(t.tokens),days:fe(t.days),providers:(Array.isArray(t.providers)?t.providers:[]).filter(n=>typeof n=="string")},historyAppliedAt:fe(e.historyAppliedAt),promptDismissed:e.promptDismissed===!0,promptDue:e.promptDue===!0}}function Ya(e,t){return me(e,t),{today:ve(e.today,t+".today"),month:ve(e.month,t+".month"),total:ve(e.total,t+".total"),budgetUsed:typeof e.budgetUsed=="number"&&Number.isFinite(e.budgetUsed)?e.budgetUsed:void 0,localSavings:e.localSavings,balance:e.balance==null?ps:za(e.balance,t+".balance"),balanceAccounts:Array.isArray(e.balanceAccounts)?e.balanceAccounts.slice(0,11).map(n=>({...za(n,t+".balanceAccounts"),id:X(n.id,t),label:X(n.label,t)})):[],goQuota:e.goQuota==null?fs:bs(e.goQuota,t+".goQuota"),customBalance:e.customBalance==null?Ka():Ga(e.customBalance,t+".customBalance"),customBalances:Array.isArray(e.customBalances)?e.customBalances.filter(n=>n!==null&&typeof n=="object").map((n,a)=>Ga(n,t+".customBalances["+a+"]")):[],gatewayQuotas:Array.isArray(e.gatewayQuotas)?e.gatewayQuotas.filter(n=>n!==null&&typeof n=="object"&&!Array.isArray(n)).map((n,a)=>hs(n,t+".gatewayQuotas["+a+"]")):[],customVarStatus:e.customVarStatus!==null&&typeof e.customVarStatus=="object"&&!Array.isArray(e.customVarStatus)?Object.fromEntries(Object.entries(e.customVarStatus).filter(([,n])=>n!==null&&typeof n=="object").map(([n,a])=>[n,{configured:a.configured===!0,source:typeof a.source=="string"?a.source:""}])):{},codingPlans:e.codingPlans!==null&&typeof e.codingPlans=="object"&&!Array.isArray(e.codingPlans)?e.codingPlans:{},planStats:ks(e.planStats),codexCompat:xs(e.codexCompat),ourFreeModel:e.ourFreeModel?.enabled===!0?{enabled:!0,version:typeof e.ourFreeModel.version=="string"?e.ourFreeModel.version:""}:void 0,history:Array.isArray(e.history)?e.history.map((n,a)=>ve(n,t+".history["+a+"]")):[],billionContext:e.billionContext?.protocol===1?{protocol:1,connected:e.billionContext.connected===!0,failed:e.billionContext.failed===!0,requests:Number(e.billionContext.requests)||0,unreported:Number(e.billionContext.unreported)||0,partial:Number(e.billionContext.partial)||0,uncovered:Number(e.billionContext.uncovered)||0,unresolved:Number(e.billionContext.unresolved)||0,detected:e.billionContext.detected===!0,version:typeof e.billionContext.version=="string"?e.billionContext.version.slice(0,100):"",compatibility:["needs_update","changed","bridge_missing","ready"].includes(e.billionContext.compatibility)?e.billionContext.compatibility:"unknown",noticeId:typeof e.billionContext.noticeId=="string"?e.billionContext.noticeId.slice(0,240):""}:void 0,externalUsage:e.externalUsage&&Array.isArray(e.externalUsage.sources)?{fetchedAt:Number(e.externalUsage.fetchedAt)||0,stale:e.externalUsage.stale===!0,sources:e.externalUsage.sources.map(n=>({source:String(n.source),today:ve(n.today,t+".external.today"),month:ve(n.month,t+".external.month"),total:ve(n.total,t+".external.total"),history:(n.history??[]).map(a=>ve(a,t+".external.history"))})),combined:Object.fromEntries(["today","month","total","history"].map(n=>[n,n==="history"?(e.externalUsage.combined.history??[]).map(a=>ve(a,t+".external.history")):ve(e.externalUsage.combined[n],t+".external."+n)]))}:null,config:ms(e.config,t+".config"),pricesRev:typeof e.pricesRev=="string"?e.pricesRev:void 0,modelLabels:Object.fromEntries(Object.entries(e.modelLabels??{}).filter(([,n])=>typeof n=="string")),modelDirectory:e.modelDirectory,reconcile:e.reconcile===null||e.reconcile===void 0?void 0:{ok:e.reconcile.ok===!0,message:typeof e.reconcile.message=="string"?e.reconcile.message:""},priceLockIds:Array.isArray(e.priceLockIds)?e.priceLockIds.filter(n=>typeof n=="string"):[],meta:{...nt(e.meta?.locale)?{locale:nt(e.meta.locale)}:{},now:typeof e.meta?.now=="number"?e.meta.now:Date.now(),timezoneOffsetMinutes:typeof e.meta?.timezoneOffsetMinutes=="number"?e.meta.timezoneOffsetMinutes:0,timezone:typeof e.meta?.timezone=="string"?e.meta.timezone:"",...typeof e.meta?.defaultProvider=="string"?{defaultProvider:e.meta.defaultProvider}:{},dayKey:typeof e.meta?.dayKey=="string"?e.meta.dayKey:"",monthKey:typeof e.meta?.monthKey=="string"?e.meta.monthKey:""}}}function ws(e,t){me(e,t);const n={ok:e.ok===!0,message:typeof e.message=="string"?e.message:""};return e.state!==void 0&&e.state!==null&&(n.state=Ya(e.state,t+".state")),n}function ee(e){return{parse:e}}const lt=ee(Ya),Ns=ee(e=>me(e,"patch")),Ss=ee(ws),Xt=ee(e=>X(e,"provider")),Cs=ee(e=>{if(e!=null)return(typeof e!="number"||!Number.isInteger(e)||e<0||e>7)&&te("index","0-7 integer"),e}),vs=ee(e=>X(e,"date")),As=ee(e=>me(e,"day")),Ms=ee(e=>(Number.isFinite(Number(e))||te("limit","number"),Number(e))),Za=ee(e=>X(e,"sort")),Ps=ee(e=>me(e,"topSessions")),Ja=ee(e=>X(e,"target")),Os=ee(e=>X(e,"value")),xe=(e,t)=>({mode:"strict",typeSymbol:"dsh-cost-meter#"+e,schema:t,create:()=>t}),le=(e,t,n,a=!1)=>({name:e,wire:e,source:"json",codec:xe(t,n),...a?{acceptsUndefined:!0}:{}}),Xa=ee(e=>{me(e,"billing storage options"),(Object.keys(e).some(n=>!["retentionDays","apply","streams","groups"].includes(n))||![0,7,30].includes(e.retentionDays))&&te("billing storage options","retentionDays 0/7/30");const t={retentionDays:e.retentionDays};for(const n of["apply","streams","groups"])e[n]!==void 0&&typeof e[n]!="boolean"&&te(n,"boolean"),t[n]=e[n]??n!=="apply";return t}),Ts={package:"dsh-cost-meter",descriptors:[{method:"getStateSince",parameters:[le("pricesRev","PricesRev",ee(e=>(typeof e!="string"&&te("pricesRev","price table revision"),e)))],result:xe("CostState",lt)},...["getState","getLocalState"].map(e=>({method:e,result:xe("CostState",lt)})),{method:"billingStorage",parameters:[le("options","BillingStorageOptions",Xa)],result:xe("BillingStorage",ee(e=>{me(e,"billing storage");const t={};for(const n of["retentionDays","scannedAt","sessions","reclaimableBytes","archivedStreams","removedFiles","releasedBytes","archiveBytes","skipped"])t[n]=Y(e[n],n);for(const n of["applied","limited"])typeof e[n]!="boolean"&&te(n,"boolean"),t[n]=e[n];for(const n of["streams","groups","archives"]){const a=me(e[n],n),o={};for(const l of["files","bytes","eligibleFiles","eligibleBytes"])o[l]=Y(a[l],n+"."+l);for(const l of["oldestAt","newestAt"])o[l]=a[l]===null?null:Y(a[l],n+"."+l);t[n]=o}return t}))},{method:"updateConfig",parameters:[le("patch","ConfigPatch",Ns)],result:xe("CostState",lt)},{method:"fetchPrices"},{method:"releasePriceLock",parameters:[le("id","PriceLockId",ee(e=>((typeof e!="string"||e.length===0)&&te("id","OpenRouter model id"),e)))]},{method:"refreshBalance"},{method:"refreshGoQuota"},...["getPiAiCodexQuota","getChatgptSubQuota"].map(e=>({method:e,result:xe("PiAiCodexQuota",ee(t=>{me(t,"pi-ai quota"),["off","ok","error"].includes(t.status)||te("pi-ai quota status","off/ok/error");const n={},a=me(t.windows,"pi-ai windows");for(const o of["five","weekly"])if(a[o]!==void 0){const l=Y(a[o].percent,o);(l<0||l>100)&&te(o,"0-100 percent"),n[o]={percent:l,resetsAt:X(a[o].resetsAt,"resetsAt")}}return{status:t.status,windows:n,message:X(t.message,"message")}}))})),{method:"refreshCustomBalance",parameters:[le("index","CustomBalanceIndex",Cs,!0)]},{method:"refreshCodingPlan",parameters:[le("provider","CodingPlanProvider",Xt)]},{method:"loginCodingPlan",parameters:[le("provider","CodingPlanProvider",Xt)]},{method:"loginOpenDesign"},{method:"refreshGatewayQuota",parameters:[le("sourceId","GatewayQuotaSourceId",ee(e=>{if(e!=null)return(typeof e!="string"||e.length>48||!/^[a-z0-9][a-z0-9_-]*$/.test(e))&&te("sourceId","gateway source id"),e}),!0)]},{method:"resetHistory",result:xe("CostState",lt)},{method:"importLegacyHistory"},{method:"getDaySessions",parameters:[le("date","DayKey",vs)],result:xe("DayRecord",As)},{method:"getSessionCost",parameters:[le("sessionId","SessionId",Xt)],result:xe("SessionCost",ee(e=>({own:zt(e.own,"own"),subagents:zt(e.subagents,"subagents"),found:Ce(e.found,"found"),subagentCount:Y(e.subagentCount,"subagentCount")})))},{id:"dsh-cost-meter#costMeter/getTurnCost",service:"costMeter",namespace:"costMeter",method:"getTurnCost",invocation:{kind:"direct"},parameters:[le("sessionId","SessionId",ee(e=>X(e,"sessionId"))),...["startSeq","endSeq"].map(e=>le(e,"TurnSeq",ee(t=>((!Number.isSafeInteger(t)||t<0)&&te(e,"nonnegative integer"),t)))),{...le("displayCurrency","DisplayCurrency",ee(e=>(e!==void 0&&!/^[A-Z]{3}$/.test(e)&&te("displayCurrency","currency"),e))),acceptsUndefined:!0}],result:xe("TurnCost",ee(e=>({...Kt(e),found:Ce(e.found,"found"),...e.inherited===void 0?{}:{inherited:Ce(e.inherited,"inherited")},cost:Y(e.cost,"cost"),apiCost:Y(e.apiCost,"apiCost"),rows:$a(e.rows),calls:(Array.isArray(e.calls)?e.calls:te("calls","array")).map(t=>({kind:X(t.kind,"kind"),provider:X(t.provider,"provider"),model:X(t.model,"model"),atMs:Y(t.atMs,"atMs"),cost:Y(t.cost,"cost"),apiCost:Y(t.apiCost,"apiCost"),plan:Ce(t.plan,"plan"),priced:Ce(t.priced,"priced"),longContext:Ce(t.longContext,"longContext"),rows:$a(t.rows),...t.metering?{metering:ds(t.metering)}:{}}))})))},{method:"getTopSessions",parameters:[le("limit","SessionLimit",Ms),le("sort","SessionSort",Za,!0),le("dir","SessionSortDir",Za,!0)],result:xe("TopSessions",Ps)},{method:"setCredential",parameters:[le("target","CredentialTarget",Ja),le("value","CredentialValue",Os)]},{method:"clearCredential",parameters:[le("target","CredentialTarget",Ja)]},...["applyCodexCompatHistory","dismissCodexCompat"].map(e=>({method:e,result:xe("CostState",lt)}))].map(e=>({id:"dsh-cost-meter#costMeter/"+e.method,service:"costMeter",namespace:"costMeter",invocation:{kind:"direct"},parameters:[],result:xe("FetchPricesResult",Ss),...e}))};function Rs(e,t){const n=t?.models??{};return typeof e=="string"&&e.length>0&&n[e]!==void 0?n[e]:t?.default??{cacheHit:0,cacheMiss:0,output:0}}const Ds=["peakWindows","peakHolidays","peakSchedule"];function Ct(e){return Object.fromEntries(Ds.filter(t=>e?.[t]!==void 0).map(t=>[t,e[t]]))}function Ml(e){return!(!e||typeof e!="object"||e.peakWindows!==void 0&&(!Array.isArray(e.peakWindows)||e.peakWindows.length>24||e.peakWindows.some(t=>!t||!Number.isFinite(t.start)||!Number.isFinite(t.end)||t.start<0||t.start>=24||t.end<0||t.end>24||t.start===t.end))||e.peakSchedule!==void 0&&!["deepseek","volcengine","ollama","daily","utc-weekdays"].includes(e.peakSchedule)||e.peakHolidays!==void 0&&e.peakHolidays!==null&&(!Array.isArray(e.peakHolidays)||e.peakHolidays.length>366||e.peakHolidays.some(t=>typeof t!="string"||!/^\d{4}-\d{2}-\d{2}$/.test(t)||!Number.isFinite(Date.parse(t+"T00:00:00Z"))||new Date(t+"T00:00:00Z").toISOString().slice(0,10)!==t)))}function Bs(e,t,n){if(!e?.entry)return e;const a=n?.providers?.[t]??(["deepseek-official","deepseek-account",""].includes(t)?n?.providers?.deepseek:void 0),o={...Ct(a),...e.entry};return{...e,entry:o,billingMode:(o.peak||o.offPeak)&&Object.keys(Ct(o)).length&&o.billingMode!=="flat"?"deepseek-peak":e.billingMode}}function $e(e,t,n){if(!(e.peakWindows!==void 0||e.peakHolidays!==void 0||["daily","utc-weekdays","deepseek"].includes(e.peakSchedule)))return null;if(n?.enabled!==!0||!Number.isFinite(t)||Number.isFinite(n.effectiveAtMs)&&t<n.effectiveAtMs)return"base";const o=e.peakSchedule??(e.billingMode==="utc-peak"?"utc-weekdays":"deepseek"),l=e.peakWindows??(o==="ollama"?[{start:12,end:18}]:n.windows??[]),r=e.peakHolidays===null?[]:e.peakHolidays??(["ollama","volcengine","utc-weekdays","daily"].includes(o)?[]:n.holidays??[]),i=new Date(t+8*36e5),c=new Date(t),u=["ollama","utc-weekdays"].includes(o)?c.getUTCDay():i.getUTCDay();if(o!=="daily"&&(u===0||u===6)||r.includes(i.toISOString().slice(0,10)))return"offPeak";const d=c.getUTCHours()+c.getUTCMinutes()/60+c.getUTCSeconds()/3600+c.getUTCMilliseconds()/36e5;return l.some(m=>m.start<m.end?d>=m.start&&d<m.end:d>=m.start||d<m.end)?"peak":"offPeak"}function Ls(e,t,n){const a=$e(e,t,n);if(a===null||a==="base")return null;const o=e.peakWindows??(e.peakSchedule==="ollama"?[{start:12,end:18}]:n.windows??[]),l=Math.floor(t/864e5)*864e5,r=new Set,i=Math.max(9,Math.min(380,(e.peakHolidays??n.holidays??[]).length+8));for(let d=-i;d<=i;d++){const m=l+d*864e5;for(const g of[0,16,...o.flatMap(b=>[b.start,b.end])])r.add(m+g*36e5)}let c=null,u=null;for(const d of r)$e(e,d-1,n)!==$e(e,d,n)&&(d<=t&&(c===null||d>c)&&(c=d),d>t&&(u===null||d<u)&&(u=d));return c===null||u===null?null:{inPeak:a==="peak",weekend:!1,prevAtMs:c,nextAtMs:u,nextIntoPeak:$e(e,u,n)==="peak"}}function vt(e){return Object.fromEntries(["multiplier","separateMultipliers","multipliers"].filter(t=>e?.[t]!==void 0).map(t=>[t,e[t]]))}function At(e,t){return(e.separateMultipliers?e.multipliers?.[t]:void 0)??e.multiplier??1}function en(e,t,n="base"){const a={};for(const o of["cacheHit","cacheMiss","cacheWrite","output","reasoning"])e[o]!==void 0&&(a[o]=e[o]*At(t,n+"."+o));return e.longContext&&(a.longContext={...en(e.longContext,t,"longContext"),aboveInputTokens:e.longContext.aboveInputTokens}),a}function Es(e){const t=vt(e);return t.multipliers&&(t.multipliers=Object.fromEntries(Object.entries(t.multipliers).filter(([n])=>n.startsWith("cny.")).map(([n,a])=>[n.replace("cny.","base."),a]))),{...e.cny,...t}}function Ke(e){if(e===null||typeof e!="object")return;const t=r=>{const i=e[r];return typeof i=="number"&&Number.isFinite(i)&&i>=0?i:void 0},n=t("cacheMiss")??t("input")??0,o={cacheHit:t("cacheHit")??t("cachedInput")??t("cacheRead")??n,cacheMiss:n,output:t("output")??0},l=t("reasoning");return l!==void 0&&(o.reasoning=l),t("cacheWrite")!==void 0&&(o.cacheWrite=t("cacheWrite")),o}function Is(e){const t=Ke(e);if(t===void 0)return null;Object.assign(t,vt(e),Ct(e)),e.billingMode==="utc-peak"&&(t.billingMode="utc-peak"),e.peakSchedule==="volcengine"&&(t.peakSchedule="volcengine");for(const n of["offPeak","peak","legacyBase"]){const a=Ke(e[n]);a!==void 0&&(t[n]=a)}return Number.isFinite(e.longContext?.aboveInputTokens)&&e.longContext.aboveInputTokens>0&&(t.longContext={...Ke(e.longContext),aboveInputTokens:e.longContext.aboveInputTokens}),Array.isArray(e.rateHistory)&&(t.rateHistory=e.rateHistory.slice(0,16).map(n=>{const a={...Ke(n),before:n.before};for(const o of["offPeak","peak"]){const l=Ke(n[o]);l!==void 0&&(a[o]=l)}return a})),t}function rt(e,t=Date.now()){if(!e||!Number.isFinite(t)||!Array.isArray(e.rateHistory))return e;let n=null,a=1/0;for(const r of e.rateHistory){const i=Date.parse(r.before);t<i&&i<a&&(n=r,a=i)}if(!n)return e;const{before:o,...l}=n;return{...e,...l}}const ea=Date.parse("2026-08-22T16:00:00Z");function tn(e){if(!Number.isFinite(e)||e<ea)return null;const t=Math.floor((e+8*36e5)/864e5),n=(t+4)%7;if(n!==6&&n!==0)return null;const a=n===6?t:t-1;return{start:Math.max(a*864e5-8*36e5,ea),end:(a+2)*864e5-8*36e5}}function an(e,t){if(!Number.isFinite(e)||e<ea||!Array.isArray(t))return null;const n=Math.floor((e+8*36e5)/864e5);return t.includes(new Date(n*864e5).toISOString().slice(0,10))?{start:n*864e5-8*36e5,end:(n+1)*864e5-8*36e5}:null}const js=(e,t)=>an(e,t)??tn(e);function Mt(e,t,n,a){if(!Array.isArray(n)||n.length===0||js(e,a)!==null||Number.isFinite(t)&&e<t)return!1;const o=new Date(e).getUTCHours();return n.some(l=>{const r=Number(l.start),i=Number(l.end);return!Number.isFinite(r)||!Number.isFinite(i)?!1:r<i?o>=r&&o<i:o>=r||o<i})}const Fs=Date.parse("2026-08-16T16:00:00Z"),_s=17881344e5;function nn(e,t,n){const a=rt(e,t)??{cacheHit:0,cacheMiss:0,output:0},o=(c,u="base")=>({reasoning:0,...en(c,a,u)}),l=$e(a,t,n);if(l!==null)return l==="base"||!a[l]?o(a):o(a[l],l);const r=a.peakSchedule==="ollama";if(r||a.billingMode==="utc-peak"){if(n?.enabled!==!0||!Number.isFinite(t)||r&&t<_s)return o(a);const c=new Date(t),u=c.getUTCDay(),d=c.getUTCHours(),m=u>0&&u<6&&(r?d>=12&&d<18:d>=1&&d<4||d>=6&&d<10);return o((m?a.peak:a.offPeak)??a,(m?a.peak:a.offPeak)?m?"peak":"offPeak":"base")}if(Number.isFinite(t)&&t<Fs){const c=a.legacyBase;return c===void 0?o(a):o(c,"legacyBase")}if(n?.enabled!==!0)return o(a);const i=typeof n.effectiveAtMs=="number"&&Number.isFinite(n.effectiveAtMs)?n.effectiveAtMs:void 0;if(Mt(t,i,n.windows,a.peakSchedule==="volcengine"?[]:n.holidays)){const c=a.peak;return c===void 0?o(a):o(c,"peak")}if(i!==void 0&&t>=i){const c=a.offPeak;return c===void 0?o(a):o(c,"offPeak")}return o(a)}function sn(e,t){const n=Math.max(0,Number(e.input)||0),a=Math.max(0,Number(e.output)||0),o=Math.max(0,Number(e.cacheRead)||0),l=Math.max(0,Number(e.cacheWrite)||0),r=Math.max(0,Number(e.reasoning)||0);return t.longContext&&n+o+l>t.longContext.aboveInputTokens&&(t=t.longContext),(n*t.cacheMiss+a*t.output+o*t.cacheHit+l*(t.cacheWrite??t.cacheHit)+r*(t.reasoning??0))/1e6}function on(e,t,n){const a=Number(e);if(!Number.isFinite(a)||a<0||a===0)return 0;if(t!=="CNY")return a;const o=Number(n);return!Number.isFinite(o)||o<=0?a:a/o}function ce(e,t){const n=e?.barDirections,a=t==="balance"?"remaining":"used";if(n===null||typeof n!="object"||Array.isArray(n))return a;const o=n[t];return o==="remaining"||o==="used"?o:a}function we(e,t){if(e==null||!Number.isFinite(Number(e)))return{width:0,label:null};const n=Math.max(0,Math.min(100,Number(e))),a=t==="remaining"?Math.round((100-n)*10)/10:Math.round(n*10)/10;return{width:a,label:a}}const ln=(e,t)=>e.toFixed(t).replace(/(\.\d*?[1-9])0+$|\.0+$/,"$1");function ue(e,t){const n=typeof t?.symbol=="string"&&t.symbol.length>0?t.symbol:"$",a=Number(t?.decimals),o=Math.max(0,Math.min(10,Number.isFinite(a)?Math.floor(a):2));let l=o;return e>0&&e<Math.pow(10,-o)&&(l=o+2),n+ln(e,l)}function K(e,t){const n=Number(t?.exchangeRate),a=e*(Number.isFinite(n)&&n>0?n:1);return ue(a,t)}function I(e){const t=Math.max(0,Number(e)||0),n=a=>a>=100?String(Math.round(a)):String(Math.round(a*10)/10);return t<1e3?String(Math.round(t)):t>=999500?n(t/1e6)+"M":t<1e6?n(t/1e3)+"K":n(t/1e6)+"M"}function it(e){return String(e??"").normalize("NFKC").toLowerCase().replace(/[((]\s*(?:go|zen)\s*[))]/g," ").trim()}function ze(e){return it(e).replace(/[\s._\-\u2010-\u2015\u2212]+/gu,"")}function Qs(e,t=!0,n=!0){const a=it(e),o=a.match(/[-_./:@](\d{4}-\d{2}-\d{2}|\d{8}|\d{6}|\d{4})$/);if(o){const l=o[1].replaceAll("-","");if(l.length===4&&!t||l.length===6&&(!t||!n))return a;const r=l.length===4?2e3:l.length===6?2e3+Number(l.slice(0,2)):Number(l.slice(0,4)),i=Number(l.slice(-4,-2)),c=Number(l.slice(-2)),u=new Date(Date.UTC(r,i-1,c));return r>=2e3&&u.getUTCFullYear()===r&&u.getUTCMonth()===i-1&&u.getUTCDate()===c?a.slice(0,o.index):a}return a.replace(/[-_./:@]latest$/,"")}function rn(e,t,n=e,a=!0,o=!0){if(typeof e!="string"||e.length===0)return null;const l=Array.isArray(t)?t.filter(u=>typeof u=="string"&&u.length>0):[],r=l.find(u=>u===n);if(r!==void 0)return{id:r,rank:3};let i=e.normalize("NFKC").trim(),c=2;for(;;){const u=ze(i);if(u.length===0)return null;const d=l.filter(g=>ze(g)===u);if(d.length>0)return{id:d.length===1?d[0]:null,rank:c};if(/[:((]\s*(?:free|online)\b/i.test(i))return null;const m=Qs(i,a,o);if(m===i.toLowerCase())return null;i=m,c=1}}function Pt(e,t,n=e,a=!0,o=!0){return rn(e,t,n,a,o)?.id??null}const ta=["opendesign","open-design","open-design-api","amr-link.open-design.ai"],cn=["vercel","copilot","cline","qoder","qoder-cn","qoder-global","trae","trae-cn","trae-global","zcode","mimo-app","commandcode-plan","cursor","windsurf","augment","roo","codebuddy"],Ge=new Set(["openrouter","opencode-zen","opencode-go","opencode-go-plus","zen","opencode",...ta]),De={openai:/^(?:gpt|o\d|codex)/i,anthropic:/^claude/i,google:/^gemini/i,stepfun:/^step-/i,deepseek:/^deepseek/i,moonshot:/^kimi/i,"z-ai":/^glm/i,xai:/^grok/i,alibaba:/^qwen/i,minimax:/^minimax/i,tencent:/^(?:hunyuan|hy\d)/i,xiaomi:/^mimo/i,upstage:/^solar/i,nvidia:/^nemotron/i,mistral:/^mistral/i,meta:/^(?:muse|llama)/i,meituan:/^longcat/i};function aa(e){return["deepseek-peak","utc-peak"].includes(e?.billingMode)?e.billingMode:"flat"}function Ve(e,t,n,a,o){if(typeof e!="string")return null;if(Object.hasOwn(t,e))return{id:e,rank:3};if(a!=="auto")return null;let l=e.normalize("NFKC").trim().replace(/^models\/(?=gemini)/i,"google/");const r=l.search(/[/:]/);if(r>0){const i=l.slice(0,r).trim().toLowerCase(),c=i==="deepseek-ai"?"deepseek":i,u=l.slice(r+1).trim();if(Object.hasOwn(De,c)&&(c===n||["opencode-zen","opencode-go","zen","opencode","opencode-go-plus"].includes(n)&&(De[c].test(u)||Pt(u,Object.keys(c==="deepseek"?o?.models??{}:o?.providers?.[c]?.models??{}),u,o?.snapshotTags!==!1,o?.shortSnapshotTags!==!1)!==null)))l=u;else if(Object.hasOwn(De,c))return null}return rn(l,Object.keys(t),e,o?.snapshotTags!==!1,o?.shortSnapshotTags!==!1)}function Hs(e,t,n,a,o){return Ve(e,t,n,a,o)?.id??null}const Us=new Set(["local","lmstudio","ollama","jan","gpt4all","koboldcpp","llamacpp","llama-cpp","localai","vllm","sglang","tabbyapi","lmdeploy","oobabooga","text-generation-webui","llama-server"]),qs=["lmstudio:","lmstudio/","ollama:","ollama/","jan:","jan/","gpt4all:","gpt4all/","koboldcpp:","koboldcpp/","llamacpp:","llamacpp/","llama-cpp:","llama-cpp/","localai:","localai/","vllm:","vllm/","sglang:","sglang/","tabbyapi:","tabbyapi/","lmdeploy:","oobabooga/","text-generation-webui/","llama-server:","gguf:","local:"];function Pe(e,t){if(typeof e=="string"&&Us.has(e))return!0;const n=typeof t=="string"?it(t):"";return qs.some(a=>n.startsWith(a))}function un(e,t,n,a){if(!["deepseek","deepseek-official","deepseek-account"].includes(e)&&typeof t=="string"&&t.length>0&&t!=="__local__"&&!t.includes(":")){const o=n.models??{},l=Object.hasOwn(o,t)?t:a==="auto"?Pt(t,Object.keys(o),t,n?.snapshotTags!==!1,n?.shortSnapshotTags!==!1):null;if(l!==null&&o[l]?.unpriced!==!0)return{entry:o[l],priced:!0,billingMode:"deepseek-peak",matched:!0}}return null}function na(e,t,n){const a=n?.prices??{},o=n?.priceMatch==="exact"?"exact":"auto",l=n?.priceOverrides&&typeof n.priceOverrides=="object"?n.priceOverrides:{};let r=String(e??"").trim().toLowerCase();if(r.startsWith("llm-")&&(r=r.slice(4)),r===""&&(r="deepseek"),["our-free-model","our-free-model-region"].includes(r)&&l[r+":*"]==="__free__")return{entry:{cacheHit:0,cacheMiss:0,cacheWrite:0,output:0,reasoning:0},priced:!0,currency:"USD",billingMode:"flat",matched:!0};let i=r,c=t;const u=l[r+":"+t];if(u==="__custom__"){const m=a.custom?.[r+":"+t];return{entry:m??null,priced:!!m,billingMode:m?.billingMode??"flat",matched:!0,currency:m?.currency??"USD"}}if(u==="__local__")return{entry:{cacheHit:0,cacheMiss:0,cacheWrite:0,output:0,reasoning:0},billingMode:"flat",priced:!0,local:!0,currency:"USD",matched:!0};if(typeof u=="string"&&u.length>0){const m=u.indexOf(":");if(m>0&&u.slice(m+1).length>0?(i=u.slice(0,m).trim().toLowerCase(),c=u.slice(m+1)):c=u,i==="deepseek"&&c==="__default__")return{entry:a.default??{cacheHit:0,cacheMiss:0,output:0},priced:a.default?.unpriced!==!0,billingMode:"deepseek-peak",matched:!1}}if(!Pe(i,c)&&i!=="openrouter"){const m=a.providers?.[i]?.models??{},g=Ve(c,m,i,o,a);if(g){const b=g.id===null?null:m[g.id];return{entry:b,priced:b!=null&&b.unpriced!==!0,billingMode:aa(b),matched:!0}}}if(/(?:^|[-_])free(?:$|[-_])/.test(i)&&!["our-free-model","our-free-model-region"].includes(i))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(i!=="opencode-go"&&He.go.includes(i))return na("opencode-go",c,{...n,priceOverrides:{}});if(ta.includes(i)&&i!=="opendesign")return na("opendesign",c,{...n,priceOverrides:{}});if(Pe(i,c))return un(r,u,a,o)??{entry:{cacheHit:0,cacheMiss:0,cacheWrite:0,output:0,reasoning:0},billingMode:"flat",priced:!0,local:!0,currency:"USD",matched:!0};if(i==="openrouter"){const m=a.providers?.openrouter?.models??{},g=Object.hasOwn(m,c)?m[c]:null;return{entry:g,priced:g!==null&&g.unpriced!==!0,billingMode:"flat",matched:g!==null}}if(["deepseek","deepseek-official","deepseek-account"].includes(i)){const m=a.models??{},g=Ve(c,m,"deepseek",o,a);if(g)return g.id===null||m[g.id]?.unpriced===!0?{entry:null,priced:!1,billingMode:"flat",matched:!0}:{entry:m[g.id],priced:!0,billingMode:"deepseek-peak",matched:!0};if(o==="auto"){let b=null,f=-1,k=!1,h="flat";for(const[A,x]of Object.entries(a.providers??{})){if(Ge.has(A))continue;const y=x?.models??{},p=Ve(c,y,A,o,a);if(!p)continue;const N=p.id===null?null:y[p.id],w=p.rank;w>f?(b=N,f=w,k=p.id===null||N==null,h=aa(N)):w===f&&(k=!0)}if(k)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(b!==null)return{entry:b,priced:b.unpriced!==!0,billingMode:h,matched:!0}}return{entry:null,priced:!1,billingMode:"flat",matched:!1}}if(Ge.has(i))return{entry:null,priced:!1,billingMode:"flat",matched:!1};const d=o==="auto"&&!u&&/^deepseek/i.test(it(c).replace(/^deepseek(?:-ai)?[/:]\s*/,""));if(Object.hasOwn(De,i)&&!d)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(o==="auto"){let m=null,g=-1,b=!1,f="flat";for(const[k,h]of[["deepseek",{models:a.models??{}}],...Object.entries(a.providers??{})]){if(k===i||Ge.has(k))continue;const A=h?.models??{},x=Ve(c,A,k,o,a);if(!x)continue;const y=x.id,p=y===null?null:A[y];if(k==="mistral"&&y?.startsWith("deepseek-")&&y!==c&&!i.includes("mistral")&&!/^mistral[/:]/i.test(String(c).trim()))continue;const N=x.rank;N>g?(m=p,g=N,b=y===null||p==null,f=k==="deepseek"?"deepseek-peak":aa(p)):N===g&&(b=!0)}if(b)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(m!==null)return{entry:m,priced:m.unpriced!==!0,billingMode:f,matched:!0}}return{entry:null,priced:!1,billingMode:"flat",matched:!1}}function Ws(e,t,n,a,o){const l=o?.[(e||"deepseek")+":"+t];if(!e||a==="exact"||typeof t!="string"||Pe(e,t)||/(?:^|[-_])free(?:$|[-_])/.test(e)||typeof l=="string"&&l.length>0||Ve(t,n?.providers?.[e]?.models??{},e,"auto",n))return null;const r=t.normalize("NFKC").trim(),i=r.indexOf("/");if(i<=0||i===r.length-1)return null;const c=r.slice(0,i).trim().toLowerCase().replace(/^llm-/,""),u=r.slice(i+1).trim(),d={codex:"openai",claude:"anthropic",gemini:"google","deepseek-ai":"deepseek","deepseek-official":"deepseek","ollama-cloud":"ollama-cloud",volcengine:"volcengine",ark:"ark"},m=/^(?:dsh-)?magpie(?:$|-)/.test(e),g=["our-free-model","our-free-model-region"].includes(c),b=Object.hasOwn(d,c)||Ge.has(c)||Object.hasOwn(n?.providers??{},c)||Object.values(He).some(k=>k.includes(c))||cn.includes(c)||g;if(!m&&(!b||Ge.has(e)||He.go.includes(e))||/(?:^|[-_])free(?:$|[-_])/.test(c)&&!g)return null;const f=Object.hasOwn(d,c)?d[c]:He.go.includes(c)?"opencode-go":c;return!m&&Object.hasOwn(De,e)&&Object.hasOwn(De,f)&&f!==e&&(f!=="deepseek"||!/^deepseek/i.test(it(u)))||Object.hasOwn(De,f)&&Hs(u,f==="deepseek"?n?.models??{}:n?.providers?.[f]?.models??{},f,"auto",n)===null?null:{provider:b||Object.hasOwn(d,c)||Ge.has(f)||Object.hasOwn(De,f)||Object.hasOwn(n?.providers??{},f)||Pe(f,u)?f:e,model:u}}function dn(e,t,n){let a=String(e??"").trim().toLowerCase().replace(/^llm-/,"")||"deepseek";const o=Object.fromEntries(["our-free-model:*","our-free-model-region:*"].filter(i=>n?.priceOverrides?.[i]==="__free__").map(i=>[i,"__free__"]));for(let i=0;i<8;i++){const c=Ws(a,t,n?.prices,n?.priceMatch,n?.priceOverrides);if(!c)break;e=c.provider,a=c.provider,t=c.model,n={...n,priceOverrides:o}}let l=na(e,t,n);const r=String(e??"").trim().toLowerCase().replace(/^llm-/,"")||"deepseek";return!l.currency&&!l.priced&&(l=un(r,n?.priceOverrides?.[r+":"+t],n?.prices??{},n?.priceMatch==="exact"?"exact":"auto")??l),l.currency||(l=l.priced&&n?.prices?.currency==="CNY"&&l.entry?.cny?{...l,entry:Es(l.entry),currency:"CNY"}:{...l,currency:l.priced&&l.billingMode==="deepseek-peak"&&n?.prices?.currency==="CNY"?"CNY":"USD"}),l=Bs(l,r,n?.prices),r==="ollama-cloud"&&n?.prices?.ollamaPeak!==!1&&l.entry&&l.billingMode==="deepseek-peak"&&(n?.prices?.ollamaTaggedPeak===!1?["deepseek-v4.1-flash","deepseek-v4-pro"].includes(String(t).trim().toLowerCase()):Pt(t,["deepseek-v4.1-flash","deepseek-v4-pro"])!==null)&&(l={...l,entry:{...l.entry,peakSchedule:l.entry.peakSchedule??"ollama"}}),["volcengine","ark"].includes(r)&&n?.prices?.volcenginePeak!==!1&&l.entry&&l.billingMode==="deepseek-peak"?{...l,entry:{...l.entry,peakSchedule:l.entry.peakSchedule??"volcengine"}}:l}function $s(e){const t=Number(e?.calls)||0,n=Number(e?.input)||0,a=Number(e?.cacheRead)||0;return t>=3&&n>=1e5&&a===0}function Ot(e,t){return!e||!t?0:typeof e.cost=="number"&&Number.isFinite(e.cost)?e.cost:fn(e,t).total}function ct(e){if(e===null||typeof e!="object")return 0;const t=Number(e.cost)||0,n=e.apiCost===void 0||e.apiCost===null?t:Number(e.apiCost);return Number.isFinite(n)&&n>=0?Math.min(n,t):t}function _(e,t){const n={CNY:"Cny",EUR:"Eur"}[t?.currency],a=t?.showTotalWithPlan===!0,o=n&&e?.[(a?"cost":"apiCost")+n],l=a?Number(e?.cost)||0:ct(e);return!Number.isFinite(o)||o===0&&l>0?l:o/(t.exchangeRate||1)}const He={opendesign:ta,go:["go","zen","opencode","opencode-go","opencode-go-plus","dsh-opencode-go"],codex:["codex","openai-codex","dsh-openai-codex","codex-chatgpt"],anthropic:["anthropic","claude-subscription"],zai:["zai","glm-coding-plan"],minimax:["minimax","minimax-code","minimax-m-plan","minimax-mplan","minimax-token-plan"],kimi:["kimi","kimi-code","kimi-coding","kimi-coding-plan"],commandcode:["commandcode","command-code"],clinepass:["clinepass","cline-pass"],workbuddy:["workbuddy","workbuddy-subscription","workbuddy-ai","workbuddy-global","xdpool","xdpool-global"],antigravity:["antigravity"],stepfun:["stepfun","step-code"],"volcengine-agent":["volcengine-agent","ark-agent-plan","volcengine-agent-plan"],"tencent-coding":["tencent-coding","tencent-coding-plan","tokenhub-coding-plan"],"tencent-token":["tencent-token","tencent-token-plan","tokenhub-token-plan","tencent-hy-token-plan","tokenhub-hy-token-plan"],"baidu-coding":["baidu-coding-plan","qianfan-coding-plan","baidu-token-plan","qianfan-token-plan","baidu-tokenplan","qianfan-tokenplan"],qwen:["qwen","qwen-tokenplan","qianwen-tokenplan","qwen-token-plan","qianwen-token-plan"],scnet:["scnet","scnet-tokenplan","scnet-token-plan"],mimo:["mimo","xiaomimimo","mimo-token-plan","xiaomi-token-plan","xiaomi-token-plan-cn","xiaomi-token-plan-sgp","xiaomi-token-plan-ams"],factory:["factory","droid","factory-a","factory-g","factory-o"]},Be=["opendesign","anthropic","zai","minimax","kimi","openrouter","siliconflow","commandcode","clinepass","scnet","volcengine","qwen","mimo","factory","go","codex","volcengine-agent","tencent-coding","tencent-token","baidu-coding","workbuddy","antigravity","stepfun"],Ks=Object.entries({opendesign:"opendesign|open[._-]?design",codex:"codex|chatgpt","baidu-coding":"baidu|qianfan|百度|千帆","tencent-coding":"tencent|tokenhub|腾讯",anthropic:"anthropic|claude",zai:"z[._-]?ai|zhipu|glm|智谱",minimax:"minimax|海螺",kimi:"kimi|moonshot|moonshotai|月之暗面",openrouter:"openrouter",siliconflow:"siliconflow|硅基",commandcode:"commandcode",clinepass:"cline[._-]?pass|clinepass",scnet:"scnet|sugon|超算",volcengine:"volcengine|volcano|volc|ark|火山|方舟",qwen:"qwen|qianwen|千问|通义",mimo:"mimo|xiaomi|小米",factory:"factory|droid",go:"opencode(?:[-_\\s]?go)?|zen|go"}).map(([e,t])=>[e,new RegExp("(?:^|[^a-z0-9])(?:"+t+")(?=$|[^a-z0-9])")]);function sa(e,t){for(const n of[e,t]){const a=String(n??"").normalize("NFKC").replace(/([a-zA-Z0-9\u3400-\u9fff])(?=(?:MPlan|Coding|Token|Agent|Plan|Subscription))/g,"$1-").replace(/([a-z0-9])((?:coding|token|agent|m)?plan|subscription)$/i,"$1-$2").toLowerCase();if(!/(?:^|[^a-z0-9])(?:(?:coding|token|agent|m)[-_\s]*)?plan(?:$|[^a-z0-9])|(?:^|[^a-z0-9])subscription(?:$|[^a-z0-9])|套餐|订阅/.test(a))continue;const o=Ks.filter(([,l])=>l.test(a));if(o.length){if(o.length!==1)return null;const l=o[0][0];if(l==="volcengine"&&/agent[-_\s]*plan|智能体.*套餐/.test(a))return"volcengine-agent";if(l==="tencent-coding"){const r=/token[-_\s]*plan|令牌.*套餐/.test(a),i=/coding[-_\s]*plan|编程.*套餐/.test(a);return r===i?null:r?"tencent-token":l}return l}}return null}function mn(e,t){const n=String(e??"").normalize("NFKC").trim().toLowerCase().replace(/^llm-/,"");if(!n||typeof t!="string"||Pe(n,t)||/(?:^|[-_])free(?:$|[-_])/.test(n)||n==="opencode-zen"||Be.includes(n)||Object.values(He).some(i=>i.includes(n))||sa(e)!==null)return null;const a=t.normalize("NFKC").trim().split("/").map(i=>i.trim());if(a.some(i=>!i)||a.slice(0,-1).some(i=>/(?:^|[-_])free(?:$|[-_])/.test(i.toLowerCase())||Pe(i.toLowerCase().replace(/^llm-/,""),""))||Pe("",a.at(-1)))return null;const o=/^(?:dsh-)?magpie(?:$|-)/.test(n),l=["openai","google","deepseek","deepseek-ai","deepseek-official","moonshot","z-ai","xai","alibaba","tencent","xiaomi","upstage","nvidia","mistral","meta","meituan","gemini","claude","ollama-cloud","ark"],r={anthropic:{vendor:"anthropic",model:/^claude/i},minimax:{vendor:"minimax",model:/^minimax/i},stepfun:{vendor:"stepfun",model:/^step-/i},codex:{vendor:"openai",model:/^(?:gpt|o\d|codex)/i}};for(let i=0;i<Math.min(a.length-1,8);i++){const c=a[i].toLowerCase().replace(/^llm-/,"");if(c==="openrouter"||c==="opencode-zen"||l.includes(c)||/(?:^|[-_])free(?:$|[-_])/.test(c)||Pe(c,a.slice(i+1).join("/")))return null;const u=Object.hasOwn(r,c)?r[c]:null;if(u){const d=a.slice(i+1);if(d[0].toLowerCase()===u.vendor&&d.shift(),d.length!==1||!u.model.test(d[0]))return null}for(const[d,m]of Object.entries(He))if(m.includes(c)||d===c)return{id:d,provider:c};if(Be.includes(c))return{id:c,provider:c};if(!o&&!cn.includes(c))return null}return null}function pn(e,t,n){const a=String(e??"").trim().toLowerCase().replace(/^llm-/,""),o=t?.planBilling?.modelPlans?.[e+":"+n]??t?.planBilling?.modelPlans?.[a+":"+n];if(Be.includes(o))return o;if(a.length===0)return null;for(const[r,i]of Object.entries(He))if(i.includes(a))return r;if(Be.includes(a))return a;const l=sa(e);return l!==null?l:Pe(a,n)||/(?:^|[-_])free(?:$|[-_])/.test(a)||a==="opencode-zen"?null:typeof n=="string"&&n.normalize("NFKC").includes("/")?mn(e,n)?.id??null:sa(e,n)}function zs(e){if(Array.isArray(e?.planBilling?.autoProviders))return new Set(e.planBilling.autoProviders);const t=new Set,n=e?.codingPlans;if(n!==null&&typeof n=="object")for(const a of Be)a!=="go"&&n[a]?.enabled===!0&&t.add(a);return e?.goQuota?.enabled===!0&&t.add("go"),e?.codexQuotaEnabled===!0&&t.add("codex"),t}const Gs=new Set(["grok-4.5","glm-5.3","glm-5.3-flash","glm-5.2","glm-5.1","gpt-5.6-luna","kimi-k3","kimi-k2.7-code","kimi-k2.6","mimo-v2.6-flash","mimo-v2.6-pro","mimo-v2.5","mimo-v2.5-pro","minimax-m3","minimax-m2.7","qwen3.8-max","qwen3.7-max","qwen3.7-plus","qwen3.6-plus","hy3","longcat-2.0","muse-spark-1.2-contributor"].map(ze));function Vs(e,t,n){const a=String(e??"").trim().toLowerCase();if(a.length>0&&a!=="deepseek"&&!a.includes("deepseek"))return!1;const o=ze(t);if(o.length===0||!Gs.has(o))return!1;const l=n?.prices,r=l?.models??{};for(const i of Object.keys(r))if(ze(i)===o)return!1;for(const i of Object.keys(l?.providers?.["opencode-go"]?.models??{}))if(ze(i)===o)return!0;return!1}function ut(e,t,n){if(e==="deepseek-official"&&/^deepseek-(web-(search|fetch)|(search|fetch)-api|search-server)$/.test(t))return"api";let a=pn(e,n,t);a===null&&Vs(e,t,n)&&(a="go");const o=n?.planBilling?.models;if(o!==null&&typeof o=="object"){const i=o[e+":"+t];if(i==="plan"||i==="api")return i;if(a!==null){const c=o[a+":"+t];if(c==="plan"||c==="api")return c}}for(const i of[e,a]){if(i==null)continue;const c=n?.planBilling?.providers?.[i];if(c==="plan"||c==="api")return c}if(a===null)return"api";const l=mn(e,t),r=l?.id===a?l.provider:e;return a==="go"&&/^(?:llm-)?(?:dsh-opencode-go|opencode-go(?:-plus)?)$/i.test(String(r).trim())||a==="kimi"&&/^(?:llm-)?kimi-coding(?:-plan)?$/i.test(String(r).trim())||a==="minimax"&&/^(?:llm-)?minimax-(?:m-?plan|token-plan)$/i.test(String(r).trim())||zs(n).has(a)?"plan":"api"}function fn(e,t){if(!e||!t)return{total:0,api:0};const n=Ys(t),a={enabled:t.peakEnabled===!0,effectiveAtMs:Date.parse(t.peakEffectiveAt||""),windows:t.peakWindows,holidays:t.peakHolidays},o=Date.now(),l=e.byProviderModel??e.byModel??{};let r=0,i=0;for(const g of Object.keys(l)){const b=g.indexOf(":"),f=b>0?g.slice(0,b):"deepseek",k=b>0?g.slice(b+1):g,h=dn(f,k,t);if(h.priced){const A=Is(h.entry);A&&h.billingMode==="deepseek-peak"&&t.prices?.ollamaPeak!==!1&&f.trim().toLowerCase().replace(/^llm-/,"")==="ollama-cloud"&&(t.prices?.ollamaTaggedPeak===!1?["deepseek-v4.1-flash","deepseek-v4-pro"].includes(k.trim().toLowerCase()):Pt(k,["deepseek-v4.1-flash","deepseek-v4-pro"])!==null)&&(A.peakSchedule??="ollama");const x=sn(l[g],nn(A,o,{...a,enabled:["deepseek-peak","utc-peak"].includes(h.billingMode)&&a.enabled})),y=on(x,h.currency,n);r+=y,ut(f,k,t)==="api"&&(i+=y)}}const c={input:0,output:0,cacheRead:0,cacheWrite:0,reasoning:0};for(const g of Object.keys(l))c.input+=l[g].input??0,c.output+=l[g].output??0,c.cacheRead+=l[g].cacheRead??0,c.cacheWrite+=l[g].cacheWrite??0,c.reasoning+=l[g].reasoning??0;const u={input:Math.max(0,(e.input??0)-c.input),output:Math.max(0,(e.output??0)-c.output),cacheRead:Math.max(0,(e.cacheRead??0)-c.cacheRead),cacheWrite:Math.max(0,(e.cacheWrite??0)-c.cacheWrite),reasoning:Math.max(0,(e.reasoning??0)-c.reasoning)},d=sn(u,nn(Rs("default",t.prices),o,a)),m=on(d,t.prices?.currency==="CNY"?"CNY":"USD",n);return r+=m,i+=m,{total:r,api:i}}function Ys(e){const t=n=>typeof n=="number"&&Number.isFinite(n)&&n>0&&n<1e6;return e.currency==="CNY"&&t(e.exchangeRate)?e.exchangeRate:t(e.fxRates?.CNY)?e.fxRates.CNY:7.2}function bn(e,t){if(!e||!t)return!1;const n=e.byProviderModel??{};for(const a of Object.keys(n)){const o=a.indexOf(":"),l=o>0?a.slice(0,o):"deepseek",r=o>0?a.slice(o+1):a;if(ut(l,r,t)==="plan")return!0}return!1}function gn(e){return(e?.input??0)+(e?.cacheRead??0)+(e?.cacheWrite??0)}function yn(e,t){if(e?.apiCost!==void 0)return ct(e);if(!bn(e,t))return Ot(e,t);let n=0;for(const[a,o]of Object.entries(e.byProviderModel??{})){if(!Number.isFinite(o.cost))return fn(e,t).api;const l=a.indexOf(":");ut(a.slice(0,l),a.slice(l+1),t)==="plan"&&(n+=o.cost)}return Math.max(0,Ot(e,t)-n)}function oa(e){const t=Math.abs(Math.round(Number(e)||0)),n=Math.floor(t/60),a=t%60;return"UTC"+(Number(e)<0?"-":"+")+n+(a>0?":"+String(a).padStart(2,"0"):"")}function Zs(e){const t=e?.meta,n=Number(t?.timezoneOffsetMinutes);if(!Number.isFinite(n))return null;const a=-new Date().getTimezoneOffset();if(a===n)return null;const o=typeof t?.timezone=="string"&&t.timezone.length>0?t.timezone:"";return{hostLabel:o?o+" ("+oa(n)+")":oa(n),browserLabel:oa(a)}}function hn(e,t=n=>n){let n=t(e);const a=new Set;return{getSnapshot:()=>n,subscribe:o=>(a.add(o),()=>{a.delete(o)}),set:o=>{if(o=t(o),o!==n){n=o;for(const l of[...a])l()}}}}const{createElement:s,Fragment:D,useState:L,useEffect:J,useRef:Se}=ke;function Tt({target:e,configured:t,source:n,t:a,api:o,placeholder:l,disabled:r}){const[i,c]=L(""),[u,d]=L(!1),[m,g]=L(!1),[b,f]=L(null),k=Se(!1),h=r===!0||m,A=async()=>{const p=i.trim();if(!(p.length===0||h||k.current)){k.current=!0,g(!0),f(null);try{const N=await o.setCredential(e,p);c(""),d(!1),f({kind:"ok",text:N?.message??a("credentialSave")})}catch(N){f({kind:"err",text:String(N?.message??N)})}finally{k.current=!1,g(!1)}}},x=async()=>{if(!(h||k.current)){k.current=!0,g(!0),f(null);try{const p=await o.clearCredential(e);c(""),d(!1),f({kind:"ok",text:p?.message??a("credentialClear")})}catch(p){f({kind:"err",text:String(p?.message??p)})}finally{k.current=!1,g(!1)}}},y=()=>{c(""),d(!1)};return s("div",{className:"cm-field"},u?s("form",{className:"cm-field",autoComplete:"off",onSubmit:p=>{p.preventDefault(),A()}},s("input",{className:"cm-input",type:"password",name:"cm-credential-"+e,autoFocus:!0,value:i,placeholder:typeof l=="string"?l:"",disabled:h,autoComplete:"new-password","data-lpignore":"true","data-1p-ignore":"true","data-bwignore":"true","aria-label":a("credentialInputHint"),onChange:p=>c(p.target.value)}),s("div",{className:"cm-buttons"},s("button",{className:"cm-btn small",type:"submit",disabled:h||i.trim().length===0},a(m?"credentialSaving":"credentialSave")),s("button",{className:"cm-btn small",type:"button",onClick:y,disabled:m},a("cancel")))):s("button",{className:"cm-btn small",type:"button",onClick:()=>d(!0),disabled:h},a("credentialEdit")),t===!0?s("button",{className:"cm-btn small",type:"button",onClick:x,disabled:h},a("credentialClear")):null,s("span",{className:"cm-hint"},t===!0?a("credentialConfiguredOf",{source:typeof n=="string"&&n.length>0?n:"unknown"}):a("credentialNotConfigured")),s("span",{className:"cm-hint"},a("credentialInputHint")),Ba(b))}function Js({pending:e,t}){return!Array.isArray(e)||e.length===0?null:s("div",{className:"cm-msg err"},s("div",null,t("secretMigrationPending")),s("div",null,e.join("、")))}function Rt({size:e=16,className:t}){return s("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M4 4H12A2 2 0 0 1 14 6V11.5A2 2 0 0 1 12 13.5H4A2 2 0 0 1 2 11.5V6A2 2 0 0 1 4 4ZM4 5.3H12A0.7 0.7 0 0 1 12.7 6V11.5A0.7 0.7 0 0 1 12 12.2H4A0.7 0.7 0 0 1 3.3 11.5V6A0.7 0.7 0 0 1 4 5.3Z",fill:"currentColor",fillRule:"evenodd"}),s("path",{d:"M3.3 5.3H12.7V7.1H3.3Z",fill:"currentColor"}),s("path",{d:"M8 2.8A1.3 1.3 0 1 0 8 5.4A1.3 1.3 0 1 0 8 2.8Z",fill:"currentColor"}))}function la(e){return e?"Conversation cost details":"本会话费用明细"}function kn(e,t){const n=Se(!1),a=Se(""),o=t!==null&&typeof t=="object"?[t.input,t.cacheRead,t.cacheWrite,t.output,t.reasoning,t.cost].map(l=>String(l??0)).join("|"):"";J(()=>{if(!n.current){n.current=!0,a.current=o;return}if(o===""||o===a.current)return;a.current=o;const l=setTimeout(()=>{e.api?.reload?.()},800);return()=>clearTimeout(l)},[o])}function Xs(e,t,n,a){const o=t?t.own:e;if(!n||!t?.subagentCount)return o;const l=t.subagents,r={...o};for(const i of["input","output","cacheRead","cacheWrite","reasoning","calls","cost",...St])r[i]=(o?.[i]??0)+(l?.[i]??0);r.apiCost=yn(o,a)+ct(l);for(const i of["byModel","byProviderModel"]){r[i]={...o?.[i]};for(const[c,u]of Object.entries(l?.[i]??{})){const d={...r[i][c]};d.apiCost=ct(d)+ct(u);for(const m of["input","output","cacheRead","cacheWrite","reasoning","calls","cost",...St])d[m]=(d[m]??0)+(u[m]??0);r[i][c]=d}}return r}function eo(e){const t=e.useProjection?e.useProjection("costUsage"):void 0,n=e.useCost?.(u=>u)?.state,a=n?.config,[o,l]=L(null);kn(e,t);const r=["input","output","cacheRead","cacheWrite","reasoning","calls","cost","apiCost"].map(u=>t?.[u]??"").join(":");J(()=>{if(!e.sessionId||!e.api?.getSessionCost)return;let u=!0,d=!1;const m=async()=>{if(!(d||typeof document<"u"&&document.hidden)){d=!0;try{const f=await e.api.getSessionCost(e.sessionId);u&&l({id:e.sessionId,include:a?.includeSubagentCost===!0,value:f})}catch{u&&l(f=>f?.id===e.sessionId&&f.include===(a?.includeSubagentCost===!0)?f:{id:e.sessionId,include:a?.includeSubagentCost===!0,value:null})}finally{d=!1}}};m();const g=a?.includeSubagentCost===!0?setInterval(m,1e4):null,b=()=>{document.hidden||m()};return typeof document<"u"&&document.addEventListener?.("visibilitychange",b),()=>{u=!1,g!==null&&clearInterval(g),typeof document<"u"&&document.removeEventListener?.("visibilitychange",b)}},[e.sessionId,n?.meta?.now,r,a?.includeSubagentCost]);const i=o&&o.id===e.sessionId&&o.include===(a?.includeSubagentCost===!0)?o:null,c=i?.value;return{usage:Xs(t,c,a?.includeSubagentCost||c&&c.subagentCount>0,a),config:a,pending:!!e.sessionId&&!!e.api?.getSessionCost&&!i,unrecorded:!!c&&!c.found&&!c.subagentCount}}function to(e){const t=j(e.config)==="en";return e.pending?t?"Loading session cost…":"正在读取本会话费用…":e.unrecorded?t?"Session cost: no ledger records":"本会话暂无账本记录":e.usage?"":t?"Session cost unavailable":"本会话费用暂不可用"}function ao(e,t){if(Number.isFinite(e?.costCny)||Number.isFinite(e?.costEur)){const o=_(e,{...t,showTotalWithPlan:!0}),l=_(e,{...t,showTotalWithPlan:!1});return{cost:t.showTotalWithPlan?o:l,planPart:t.showTotalWithPlan?0:Math.max(0,o-l)}}let n=0,a=Ot(e,t);if(t.showTotalWithPlan!==!0&&(e.apiCost!==void 0||bn(e,t))){const o={total:Ot(e,t),api:yn(e,t)};n=Math.max(0,o.total-o.api),n>0&&(a=o.api)}return{cost:a,planPart:n}}function no(e,t){return Object.entries(e?.byProviderModel??{}).filter(([,n])=>n.input||n.output||n.cacheRead||n.cacheWrite||n.reasoning).map(([n,a])=>ht(n)+" "+K(_(a,{...t,showTotalWithPlan:!0}),t)).join("; ")}function so(e){const t=e.useCost?.(h=>h)?.state?.config,[n,a]=L(null),[o,l]=L(""),r=e.turn?.start?.seq,i=e.turn?.end?.seq,c=e.sessionId,u=JSON.stringify([t?.prices,t?.priceOverrides,t?.priceMatch,t?.planBilling,t?.codingPlans,t?.goQuota?.enabled,t?.peakEnabled,t?.peakEffectiveAt,t?.peakWindows,t?.peakHolidays,t?.exchangeRate]);if(J(()=>{let h=!0;if(a(null),l(""),!(t?.hideTurnCost||!c||r==null||i==null))return e.api.getTurnCost(c,r,i).then(A=>{h&&a(A)},A=>{h&&l(String(A.message??A))}),()=>{h=!1}},[c,r,i,u,t?.hideTurnCost]),!t||t.hideTurnCost||r==null||i==null)return null;const d=j(t)==="en",m=d?{input:"Input",output:"Output",cacheRead:"Cache read",cacheWrite:"Cache write",reasoning:"Reasoning"}:{input:"输入",output:"输出",cacheRead:"缓存读取",cacheWrite:"缓存写入",reasoning:"推理"},g=h=>{const A=Number(t.exchangeRate),x=h*(Number.isFinite(A)&&A>0?A:1),y=t.decimals??2;return K(h,x>0&&x<10**-(y+2)?{...t,decimals:Math.max(8,y)}:t)},b=h=>K(h,{...t,decimals:Math.max(8,t.decimals??2)}),f=d?{model:"Model call",compaction:"Context compaction",search:"Native search",fetch:"Web fetch"}:{model:"模型调用",compaction:"上下文压缩",search:"原生搜索",fetch:"网页抓取"},k=(h,A)=>s("div",{key:A,style:{marginBottom:4,overflowWrap:"anywhere"}},ht(h.provider+":"+h.model)+" · "+(m[h.bucket]||(h.bucket==="fetchRequests"?d?"Fetch requests":"抓取请求":d?"Search requests":"搜索请求"))+(h.plan?" (Plan)":"")+": "+(h.requests?h.requests+(d?" requests":" 次"):h.tokens.toLocaleString())+" × "+(h.priced?b(h.rate):"?")+(h.requests?" ≈ ":" / 1,000,000 ≈ ")+(h.priced?g(h.cost):"?"),h.priced?h.bucket==="reasoning"&&h.rate===0?d?" (no separate charge)":"(不单独收费)":"":d?" (price unavailable)":"(未配置价格)");return s("details",{className:"cm-note",style:{fontSize:12,marginTop:6}},s("summary",{style:{cursor:"pointer"},title:d?"Log estimate at configured prices; session cost uses recorded ledger amounts.":"本轮按日志和配置价格估算,本会话按账本已入账金额汇总。"},d?"Turn cost":"本轮费用",n?.found?" ≈ "+g(_(n,t))+(n.rows.some(h=>!h.priced)?d?" + unpriced usage":" + 未定价用量":""):n?.inherited?d?" · inherited history":" · 继承历史":o?" ⚠":""),o?s("div",{role:"alert"},o):n?n.found?s(D,null,s("p",null,d?"Estimated from recorded usage and configured prices; rates per 1M tokens.":"按已记录用量和配置价格估算;单价单位为每百万 Token。"),s("p",null,"API ≈ "+g(_(n,{...t,showTotalWithPlan:!1}))+" · Plan ≈ "+g(_(n,{...t,showTotalWithPlan:!0})-_(n,{...t,showTotalWithPlan:!1}))+(d?" (equivalent)":"(等值)")),n.rows.map(k),s("details",null,s("summary",{style:{cursor:"pointer"}},(d?"Individual calls":"逐次调用明细")+" ("+n.calls.length+")"),n.calls.map((h,A)=>s("details",{key:A,style:{margin:"6px 0"}},s("summary",{title:h.provider+":"+h.model,style:{cursor:"pointer",overflowWrap:"anywhere"}},"#"+(A+1)+" "+f[h.kind]+" · "+ht(h.provider+":"+h.model)+" · "+new Date(h.atMs).toLocaleTimeString()+" · "+(h.plan?"Plan ":"API ")+(h.priced?"≈ "+g(h.cost):d?"price unavailable":"未配置价格")+(h.longContext?d?" · long context":" · 长上下文价格":"")),h.metering?s("p",null,"billion-context · "+h.metering.upstream+(h.metering.attempt>1?(d?" · Retry ":" · 重试 ")+h.metering.attempt:"")+(h.metering.complete?"":d?" · partial usage":" · 用量回执不完整")):null,h.rows.map(k))))):n.inherited?d?"Inherited usage is not billed again in this conversation.":"继承的历史用量不在本会话重复计费。":d?"Complete usage records unavailable":"没有完整用量记录":d?"Loading…":"加载中…")}function oo(e){const t=e.useCost?.(v=>v),n=eo(e),{usage:a,config:o}=n,[l,r]=L(null),i=e.entryPosition!=="header"&&o?.hideSessionCostDock===!0,c=!i&&!!e.sessionId&&l===e.sessionId;if(J(()=>{r(null)},[e.sessionId,i]),i||!e.sessionId)return null;const u=j(o)==="en",d=V(j(o)),m=o?to(n):t?.error||(u?"Loading…":"加载中…"),g=s(zn,{open:c,onClose:()=>r(null),sessionId:e.sessionId,state:t?.state,error:t?.error,api:e.api});if(o&&m)return s(D,null,s("span",{className:"cm-dp-status",role:"status",title:m},m),g);const{cost:b,planPart:f}=a&&o?ao(a,o):{cost:0,planPart:0},k={amount:K(b,o),planAmount:K(f,o),hitRate:gn(a)>0?((a?.cacheRead??0)/gn(a)*100).toFixed(1)+"%":"—",input:I(a?.input??0),cache:I((a?.cacheRead??0)+(a?.cacheWrite??0)),output:I(a?.output??0)},h=o?d(f>0?"sessionLineSplit":"sessionLine",k):m,A=o?no(a,o):"",x=la(u),p=e.entryPosition==="header"||o?.sessionCostCompact===!0?f>0?"sessionLineSplitCompact":"sessionLineCompact":f>0?"sessionLineSplit":"sessionLine",N=m||d(p,k),w=()=>Aa(e.api?.loadStatistics,{state:t?.state,sessionId:e.sessionId});return s(D,null,s(z,{portal:!0,label:[h,o?.includeSubagentCost?u?"Includes subagents":"含子代理":u?"Main session only":"仅主会话",A].filter(Boolean).join("; "),side:"top"},s("button",{type:"button",className:"cm-dp"+(e.entryPosition==="header"?" cm-dp-header":""),"aria-label":x,"aria-haspopup":"dialog","aria-expanded":c,onMouseEnter:w,onFocus:w,onClick:()=>r(e.sessionId)},s("span",{className:"cm-dl"},N))),g)}const lo={CNY:"¥",USD:"$",EUR:"€",GBP:"£",JPY:"JP¥",KRW:"₩",INR:"₹",HKD:"HK$",SGD:"S$",AUD:"A$",CAD:"C$",CHF:"CHF",NZD:"NZ$",BRL:"R$",MXN:"MX$",ZAR:"R",TRY:"₺",SEK:"kr",NOK:"NKr",DKK:"Dkr",PLN:"zł",THB:"฿",IDR:"Rp",MYR:"RM",PHP:"₱",ILS:"₪"};function xn(e,t){const n=e?.symbol||"$";return!t||t===e?.currency?n:lo[t]??t+" "}function wn(e,t,n){const a=t?.balance?.currency,o=(a==="display"?t?.currency:a)??n,l=t?.fxRates;return o!==n&&l?.[n]>0&&l?.[o]>0?[e/l[n]*l[o],o]:[e,n]}function Le(e,t,n){const a=typeof n=="string"?n.toUpperCase():"",[o,l]=wn(e,t,a);return ue(o,{symbol:xn(t,l),decimals:Math.max(2,Math.min(10,Math.floor(Number(t?.decimals)||2)))})}function Nn(e,t){const n=Number(e?.balance?.budgetCap);if(Number.isFinite(n)&&n>0)return n;const a=Number(t?.maxBudget);return Number.isFinite(a)&&a>0?a:null}function ro(e){const t=e.today,n=t?.byProviderModel;if(n===null||typeof n!="object"||Object.keys(n).length===0)return Number(t?.cost)||0;let a=0;for(const[o,l]of Object.entries(n)){const r=o.indexOf(":");let i=r>=0?o.slice(0,r):o;i.startsWith("llm-")&&(i=i.slice(4)),/^deepseek(?:-official|-account)?$/.test(i)&&(a+=Number(l?.cost)||0)}return a}function Sn(e,t,n,a,o=null){const l=n==="official"?ro(e):Number(e.today?.cost)||0,r=n==="custom"?mt(t,a,o):e.balance?.currency;if(r==="USD")return l;if(r==="CREDITS")return 0;const i=Number(t?.fxRates?.[r]??t?.exchangeRate);return l*(Number.isFinite(i)&&i>0?i:1)}function ra({remaining:e,spend:t,todayUsed:n,cap:a}){if(a===null||a<=0)return{remainingPct:100,todayPct:0,spentPct:0,hasCap:!1,pastSpend:0,today:0};const o=Math.max(0,Number(e)||0),l=Math.max(0,Number(t)||0),r=Math.max(0,Math.min(l,Number(n)||0)),i=Math.max(0,l-r),c=Math.max(0,Math.min(100,o/a*100)),u=Math.max(0,Math.min(100-c,r/a*100)),d=Math.max(0,Math.min(100-c-u,i/a*100));return{remainingPct:c,todayPct:u,spentPct:d,hasCap:!0,pastSpend:i,today:r}}function ia(e,t,n=null,a=null){const o=n??e.customBalance;if((a??t?.customBalance)?.adapter==="tokenrhythm")return{cap:null,...ra({remaining:o?.remaining,cap:null})};const l=Nn(mt(t,o,a)==="CREDITS"?null:t,o),r=Number(o?.remaining)||0,i=Number(o?.spend)||0,c=Sn(e,t,"custom",o,a);return{cap:l,...ra({remaining:r,spend:i,todayUsed:c,cap:l})}}function io(e,t){const n=e.balance,a=Nn(t,null),o=Number(n?.totalBalance)||0,l=Sn(e,t,"official",null),r=a!==null?Math.max(0,a-o):0;return{cap:a,...ra({remaining:o,spend:r,todayUsed:l,cap:a})}}function ca(e){const{segments:t,direction:n="remaining"}=e,{remainingPct:a,todayPct:o,spentPct:l}=t,r=[];a>0&&r.push(s("div",{className:"cm-bbox-fill",style:{width:a+"%"}})),o>0&&r.push(s("div",{className:"cm-bbox-seg-today",style:{width:o+"%"}})),l>0&&r.push(s("div",{className:"cm-bbox-seg-spent",style:{width:l+"%"}})),r.length===0&&r.push(s("div",{className:"cm-bbox-fill",style:{width:"100%"}}));const i=n==="used"?[...r].reverse():r;return s("div",{className:"cm-bbox-bar segments"+(n==="used"?" rev":"")},...i)}function co(e,t,n,a,o){const l=[e("balanceBarRemaining",{amount:a})];return n.today>0&&l.push(e("balanceBarToday",{amount:t(n.today)})),n.pastSpend>0&&l.push(e("balanceBarSpent",{amount:t(n.pastSpend)})),o!==null&&o>0&&l.push(e("balanceBudgetCapLabel")+": "+t(o)),l.join(" · ")}function Ee(e){const[t,n]=L(!1),[a,o]=L(null);return{busy:t,err:a,run:()=>{t||typeof e!="function"||(n(!0),o(null),Promise.resolve().then(e).catch(r=>{o(r?.message??String(r))}).finally(()=>{n(!1)}))}}}const be=(e,t)=>({role:"button",tabIndex:0,"aria-busy":e?"true":"false",onClick:t,onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),t())}});function Ae(e,t){const n=[e("clickToRefresh")];return t.busy&&n.push(e("refreshing")),t.err&&n.push("⚠ "+e("queryFailed")+": "+t.err),n}const uo="https://platform.deepseek.com/usage";function dt(e,t=uo,n=e("balanceRechargeLink")){if(!t)return null;try{const a=new URL(t);if(!["http:","https:"].includes(a.protocol)||a.username||a.password)return null}catch{return null}return s("a",{className:"cm-bal-link",href:t,target:"_blank",rel:"noreferrer noopener",title:n,"aria-label":n,onClick:a=>a.stopPropagation(),onKeyDown:a=>a.stopPropagation()},s("svg",{width:14,height:14,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0},s("path",{d:"M8 4H4a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-4M11 3h6v6M9 11l8-8"})))}const Dt=hn({});function Bt(e,t,n){const a=()=>{const u=Dt.getSnapshot()[t];if(u!==void 0)return u;try{return window.localStorage?.getItem("cm.balance.hidden."+t)==="1"}catch{return!1}},[o,l]=L(a);J(()=>{const u=()=>l(a()),d=Dt.subscribe(u);return u(),d},[t]);const r=e.balance?.quickHide===!0,i=r&&o,c=u=>{u.stopPropagation();const d=!a();try{window.localStorage?.setItem("cm.balance.hidden."+t,d?"1":"0")}catch{}Dt.set({...Dt.getSnapshot(),[t]:d}),l(d)};return{hidden:i,label:u=>r?s("span",{role:"button",tabIndex:0,"aria-pressed":i,title:n("balanceToggle"),onClick:c,onKeyDown:d=>{d.stopPropagation(),(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),c(d))}},u):u,tip:[n("balanceHidden"),n("balanceToggle")].join(" · ")}}function ua(e){const{state:t,wide:n,api:a}=e,o=t.balance,l=V(j(t.config)),r=Ee(a?()=>a.refreshBalance():null),i=Bt(t.config,e.accountId??"official",l),c=e.label??Cn(l,t.config);if(!o||o.status==="off")return null;if(o.status==="error")return s(z,{portal:!0,label:[l("balanceQueryFailed",{message:o.message||l("unknownError")}),...Ae(l,r)].join("; "),side:"right",delayMs:300},s("div",{"data-cm-display":"balance",className:"cm-foot clickable"+(n?"":" cm-foot-rail")+" cm-bal-err"+(r.busy?" busy":""),...be(r.busy,r.run)},n?s(D,null,c," ",s("span",{className:"cm-num"},l("queryFailed"))):"⚠"));const u=i.hidden?i.tip:vn(l,o,t.config,t.reconcile,r);return s(z,{portal:!0,label:e.label?s(D,null,s("strong",null,e.label),u):u,side:"right",delayMs:300},s("div",{"data-cm-display":"balance",className:"cm-foot clickable"+(n?"":" cm-foot-rail")+(r.busy?" busy":""),...be(r.busy,r.run)},n?s(D,null,s("span",{className:"cm-balance-name"},i.label(c),dt(l)),s("span",{className:"cm-num cm-bal-amt"},i.hidden?"••••":Le(o.totalBalance,t.config,o.currency)),t.reconcile?.ok===!1?" ⚠":""):s(Rt,{size:16})))}function mo(e,t,n){if(n||e.config?.balance?.officialChannelOnly!==!0)return!0;const a=o=>/^(?:llm-)?deepseek(?:-official|-account)?$/.test(String(o).trim().toLowerCase());return typeof t=="string"&&t.trim()?a(t):Object.keys(e.today?.byProviderModel??{}).some(o=>a(o.split(":")[0]))}function Cn(e,t){return e(t?.balance?.showSource===!0?"officialBalance":"balance")}function vn(e,t,n,a,o){const l=[e("officialBalance")+" "+Le(t.totalBalance,n,t.currency),e("grantedToppedUp",{granted:Le(t.grantedBalance,n,t.currency),toppedUp:Le(t.toppedUpBalance,n,t.currency)}),...a?.ok===!1?["⚠ "+a.message]:[],...Ae(e,o)];return s("div",{style:{maxWidth:"min(280px, 70vw)",whiteSpace:"normal"}},...l.map((r,i)=>s("div",{key:i},r)))}function po(e){const{state:t,wide:n,api:a}=e,o=t.config,l=t.balance,r=V(j(o)),i=Ee(a?()=>a.refreshBalance():null),c=Bt(o,"official",r);if(!l||l.status!=="ok")return null;const u=io(t,o),d=c.hidden?"••••":Le(l.totalBalance,o,l.currency),m=c.hidden?c.tip:vn(r,l,o,t.reconcile,i),g=s(D,null,s("div",{className:"cm-bbox-head"},s("span",{className:"cm-balance-name"},s("span",{className:"cm-bbox-label"},c.label(Cn(r,o))),dt(r)),s("span",{className:"cm-bbox-pct cm-num cm-bal-amt"},d)),c.hidden?null:s(ca,{segments:u,direction:ce(o,"balance")}));return s(z,{portal:!0,label:m,side:"right",delayMs:300},s("div",{"data-cm-display":"balance",className:"cm-bbox clickable"+(n?"":" rail")+(i.busy?" busy":""),...be(i.busy,i.run)},n?g:s("div",{className:"cm-bbox-rail cm-num"},c.hidden?"••••":Math.round(u.remainingPct)+"%")))}function da(e,t){const n=typeof e?.label=="string"?e.label:"",a=typeof e?.labelEn=="string"?e.labelEn:"";return t==="en"?a||n||"Custom balance":n||a||"自定义余额"}function mt(e,t,n){if((n??e?.customBalance)?.adapter==="tokenrhythm")return"CNY";if((n??e?.customBalance)?.adapter==="aliyun"&&["CNY","USD","EUR"].includes(t?.unit))return t.unit;const a=n?.unit??e?.customBalance?.unit;return["CNY","EUR","USD","CREDITS"].includes(a)?a:["CNY","EUR","CREDITS"].includes(t?.unit)?t.unit:"USD"}function Ye(e,t,n,a){const o=mt(t,n,a),l=Number(e);if(!Number.isFinite(l))return"—";const r=Math.max(2,Math.min(6,Math.floor(Number(t?.decimals)||4)));if(o==="CREDITS")return ln(l,r)+" Credits";const i=t?.currency==="USD"?1:Number(t?.exchangeRate);if((a??t?.customBalance)?.convertToDisplayCurrency===!0&&o==="USD"&&(t?.balance?.currency??"native")==="native"&&i>0&&Number.isFinite(i)){const m=l*i;return Number.isFinite(m)?ue(m,t):"—"}const[u,d]=wn(l,t,o);return Number.isFinite(u)?ue(u,{symbol:xn(t,d),decimals:r}):"—"}function ma(e,t,n,a,o=null){const l=Ye(e.remaining,t,e,o);if((o??t?.customBalance)?.adapter==="tokenrhythm")return n("customBalanceRemaining",{amount:l});const r=g=>Ye(g,t,e,o);if(a&&t.balance?.showProgressBar===!0){const g=ia(a,t,e,o);return[co(n,r,g,l,g.cap),n("updatedAt",{time:e.fetchedAt>0?new Date(e.fetchedAt).toLocaleTimeString():"—"})].join(" · ")}const i=e.spend!==null?r(e.spend):"—",c=e.maxBudget!==null?r(e.maxBudget):"—",u=mt(t,e,o)==="CREDITS"?NaN:Number(t?.balance?.budgetCap),d=Number.isFinite(u)&&u>0?n("balanceBudgetCapLabel")+": "+r(u):"",m=e.maxBudget!==null&&e.spend!==null?n("customBalanceLine",{remaining:l,spend:i,maxBudget:c,time:e.fetchedAt>0?new Date(e.fetchedAt).toLocaleTimeString():"—"}):n("customBalanceRemaining",{amount:l});return d?m+" · "+d:m}function fo(e,t,n,a,o,l){const r=da(o??t.customBalance??{},j(t)),i=l?.hidden?"••••":Ye(a.remaining,t,a,o),c=ia(e,t,a,o);return{level:"ok",rail:l?.hidden?"••••":Math.round(c.remainingPct)+"%",body:s(D,null,s("div",{className:"cm-bbox-head"},s("span",{className:"cm-balance-name"},s("span",{className:"cm-bbox-label"},l?l.label(r):r),dt(n,o?.dashboardUrl||"",r)),s("span",{className:"cm-bbox-pct cm-num cm-bal-amt"},i)),l?.hidden?null:s(ca,{segments:c,direction:ce(t,"balance")}))}}function Lt(e,t){const n=t?.customBalances??[],a=Array.isArray(e?.customBalances)?e.customBalances:[],o=[];return n.forEach((l,r)=>{if(l?.enabled!==!0||l.display!=="sidebar"&&l.display!=="both")return;const i=a.find(c=>c.index===r)??(a.length===1&&n.length===1?a[0]:null);o.push({index:r,entry:l,snapshot:i})}),o.length===0&&a.length===0&&t?.customBalance?.enabled===!0&&(t.customBalance.display==="sidebar"||t.customBalance.display==="both")&&e?.customBalance?.status&&e.customBalance.status!=="off"&&o.push({index:null,entry:t.customBalance,snapshot:e.customBalance}),o}function bo(e){const{state:t,wide:n,api:a}=e,o=t.config,l=V(j(o)),r=Lt(t,o);return r.length===0?null:s(D,null,r.map(({index:i,entry:c,snapshot:u})=>s(c.adapter==="tokenrhythm"?An:go,{key:"cb-"+i,state:t,wide:n,api:a,t:l,index:i,entry:c,snapshot:u})))}function go(e){const{state:t,wide:n,api:a,t:o,index:l,entry:r,snapshot:i}=e,c=t.config,u=Bt(c,"custom-"+l,o),d=Ee(a?()=>a.refreshCustomBalance(l):null);if(i==null||i.status!=="ok")return null;const m=fo(t,c,o,i,r,u),g=u.hidden?u.tip:[ma(i,c,o,t,r),...Ae(o,d)].join(" · ");return s(z,{portal:!0,label:g,side:"right",delayMs:300},s("div",{"data-cm-display":"customBalance",className:"cm-bbox clickable"+(m.level==="ok"?"":" "+m.level)+(n?"":" rail")+(d.busy?" busy":""),...be(d.busy,d.run)},n?m.body:s("div",{className:"cm-bbox-rail cm-num"},m.rail)))}function yo(e){const{state:t,wide:n,api:a}=e,o=t.config,l=V(j(o)),r=Lt(t,o);return r.length===0?null:s(D,null,r.map(({index:i,entry:c,snapshot:u})=>s(An,{key:"cbr-"+i,state:t,wide:n,api:a,t:l,index:i,entry:c,snapshot:u})))}function An(e){const{state:t,wide:n,api:a,t:o,index:l,entry:r,snapshot:i}=e,c=t.config,u=Bt(c,"custom-"+l,o),d=i??Ka(l),m=Ee(a?()=>a.refreshCustomBalance(l):null);if(d.status==="off")return null;const g=da(r??c.customBalance??{},j(c));if(d.status==="error")return s(z,{portal:!0,label:[d.message||o("unknownError"),...Ae(o,m)].join("; "),side:"right",delayMs:300},s("div",{"data-cm-display":"customBalance",className:"cm-foot clickable"+(n?"":" cm-foot-rail")+" cm-bal-err"+(m.busy?" busy":""),...be(m.busy,m.run)},n?s(D,null,s("span",{className:"cm-balance-name"},s("span",{className:"cm-bal-label",title:g},g),dt(o,r?.dashboardUrl||"",g)),s("span",{className:"cm-num cm-bal-amt"},o("queryFailed"))):"⚠"));const b=u.hidden?"••••":Ye(d.remaining,c,d,r),f=u.hidden?u.tip:[ma(d,c,o,t,r),...Ae(o,m)].join(" · ");return s(z,{portal:!0,label:f,side:"right",delayMs:300},s("div",{"data-cm-display":"customBalance",className:"cm-foot clickable"+(n?"":" cm-foot-rail")+(m.busy?" busy":""),...be(m.busy,m.run)},n?s(D,null,s("span",{className:"cm-balance-name"},s("span",{className:"cm-bal-label",title:g},u.label(g)),dt(o,r?.dashboardUrl||"",g)),s("span",{className:"cm-num cm-bal-amt"},b)):s(Rt,{size:16})))}function Mn(e){const n=(e.useCost?e.useCost(f=>f):void 0)?.state;if(!n)return null;const a=n.config,o=V(j(a)),l=a.corner??{enabled:!1,goRolling:!0,goWeekly:!0,goMonthly:!0,budget:!0},r=n.goQuota,i=a?.goQuota?.enabled!==!1&&r?.status==="ok",c=f=>f!==null&&typeof f?.percent=="number"?Math.round(Math.max(0,Math.min(100,f.percent))):null,u=[];if(a.sidebarModels?.dock){const f=$n(n,a.sidebarModels.period,o);f.length&&u.push({key:"model-top",text:s(D,null,s("span",{className:"cm-bal-label"},f[0].label),s("span",{className:"cm-bal-amt"},K(f[0].cost,a))),tip:f[0].label+" "+K(f[0].cost,a),level:"ok"})}const d=(f,k,h,A)=>{if(!l.enabled||!f||!i)return;const x=c(k);if(x===null)return;const y=typeof k.resetsAt=="string"&&k.resetsAt.length>0?o("goResetAt",{time:new Date(k.resetsAt).toLocaleString()}):"";u.push({key:h,text:o(h)+" "+x+"%",tip:o(A)+": "+x+"%"+(y?" · "+y:""),level:x>=100?"over":x>=80?"warn":"ok"})},m=a?.goQuota?.main==="weekly"||a?.goQuota?.main==="monthly"?a.goQuota.main:"rolling",g=[m,...["rolling","weekly","monthly"].filter(f=>f!==m)],b=f=>f==="rolling"?["goRolling",r?.rolling,"goShortRolling","cornerGoRolling"]:f==="weekly"?["goWeekly",r?.weekly,"goShortWeekly","cornerGoWeekly"]:["goMonthly",r?.monthly,"goShortMonthly","cornerGoMonthly"];for(const f of g){const[k,h,A,x]=b(f);d(l[k]===!0,h,A,x)}if(l.enabled&&l.budget===!0){const f=a.budget??{enabled:!1,amount:100,period:"month"};if(f.enabled===!0){const k=Number(a.exchangeRate),A=(n.budgetUsed??(f.period==="day"?_(n.today,a):f.period==="all"?_(n.total,a):_(n.month,a)))*(Number.isFinite(k)&&k>0?k:1),x=Math.max(0,Number(f.amount)||0),y=x>0?Math.min(999,A/x*100):null;if(y!==null){const p=y>=100?"over":y>=80?"warn":"ok";u.push({key:"budget",text:o("budgetShort")+" "+y.toFixed(1)+"%",tip:o("budgetOf",{period:o(st[f.period]??"periodMonth")})+" · "+o("usedOf",{used:ue(A,a),amount:ue(x,a)}),level:p})}}}return u.length===0?null:s("div",{className:"cm-corner"},u.map(f=>s(z,{portal:!0,key:f.key,label:f.tip,side:"top",delayMs:500},s("span",{className:"cm-corner-chip"+(f.key==="model-top"?" cm-model-top":"")+(f.level==="ok"?"":" "+f.level)},f.text))))}function pa(e,t,n,a){if(a==="volcengine"&&(n=[]),!Array.isArray(t)||t.length===0||!Number.isFinite(e))return null;const o=(b,f)=>{const k=new Date(e);return k.setUTCDate(k.getUTCDate()+b),k.setUTCHours(f,0,0,0),k.getTime()},l=new Set,r=Math.max(12,Math.min(380,(Array.isArray(n)?n.length:0)+7));for(let b=-r;b<=r;b+=1){l.add(o(b,16));for(const f of t){const k=Number(f?.start),h=Number(f?.end);!Number.isFinite(k)||!Number.isFinite(h)||(l.add(o(b,k)),l.add(o(h<=k?b+1:b,h)))}}const i=[...l].sort((b,f)=>b-f).flatMap(b=>{const f=Mt(b-1,void 0,t,n),k=Mt(b,void 0,t,n);return f===k?[]:[{at:b,intoPeak:k}]});let c=null,u=null;for(const b of i)b.at<=e&&(c===null||b.at>c.at)&&(c=b),b.at>e&&(u===null||b.at<u.at)&&(u=b);const d=an(e,n),m=d??tn(e);return m!==null?u===null?null:{inPeak:!1,weekend:d===null,...d?{holiday:!0}:{},prevAtMs:m.start,nextAtMs:u.at,nextIntoPeak:u.intoPeak}:c===null||u===null?null:{inPeak:Mt(e,void 0,t,n),weekend:!1,prevAtMs:c.at,nextAtMs:u.at,nextIntoPeak:u.intoPeak}}function Ie(e,t){if(!e||e.peakNotice===!1||e.peakEnabled!==!0)return null;const n=Date.parse(e.peakEffectiveAt||"");return Number.isFinite(n)&&t<n?null:fa(e,t)}function fa(e,t){const n=String(e?.peakProvider??"").trim().toLowerCase().replace(/^llm-/,""),a=e?.prices?.providers?.[n]??(["deepseek-official","deepseek-account",""].includes(n)?e?.prices?.providers?.deepseek:void 0),o=a&&{peakSchedule:n==="ollama-cloud"&&e.prices.ollamaPeak!==!1?"ollama":["volcengine","ark"].includes(n)&&e.prices.volcenginePeak!==!1?"volcengine":void 0,...a},l={enabled:e?.peakEnabled===!0,effectiveAtMs:Date.parse(e?.peakEffectiveAt),windows:e?.peakWindows,holidays:e?.peakHolidays};return o&&$e(o,t,l)!==null?Ls(o,t,l):pa(t,e?.peakWindows??[],e?.peakHolidays,["volcengine","ark"].includes(n)?"volcengine":void 0)}function ba(e,t){const n=e?.config,a=t??n?.peakProvider??e?.meta?.defaultProvider;return n&&a?{...n,peakProvider:a}:n}function Pn(e,t,n){let a=t.prevAtMs;for(let o=0;o<16;o++){const l=fa(e,a-1);if(!l||l.inPeak!==t.inPeak||l.prevAtMs>=a)break;a=l.prevAtMs}return{start:a,progress:Math.max(0,Math.min(100,(n-a)/Math.max(1,t.nextAtMs-a)*100))}}function Et(e,t,n){const{progress:a}=Pn(e,t,n);return(t.weekend||t.holiday?a:(t.inPeak?0:50)+a/2)+"%"}function Ze(e,t){const[n,a]=L(Date.now());return J(()=>{if(t!==void 0)return;let o;const l=()=>{if(window.clearTimeout(o),document.hidden)return;const r=Date.now(),i=Ie(e,r);a(r),o=window.setTimeout(l,Math.max(100,Math.min(3e4,(i?.nextAtMs??r+3e4)-r)))};return l(),document.addEventListener("visibilitychange",l),()=>{window.clearTimeout(o),document.removeEventListener("visibilitychange",l)}},[t,e.peakWindows,e.peakHolidays,e.peakProvider]),t??n}function Je(e){return e.holiday===!0?{short:"holidayShort",chip:"holidayChip",notice:"holidayAllOffPeak"}:e.weekend===!0?{short:"weekendShort",chip:"weekendChip",notice:"weekendAllOffPeak"}:e.inPeak?{short:"peakShort",chip:"peakShort",notice:"peakNotice"}:{short:"offPeakShort",chip:"offPeakShort",notice:"offPeakActive"}}function Me(e,t,n){const a=Math.max(0,e.nextAtMs-t),o=Math.max(1,Math.ceil(a/6e4)),l=Math.floor(o/60),r=o%60;return l>0?r>0?n("countdownHourMinute",{h:l,m:r}):n("countdownHoursOnly",{h:l}):n("countdownMinute",{m:o})}function On(e){const t=Se(null),n=Se(e.actions);n.current=e.actions,J(()=>{const c=t.current;if(!c)return;try{typeof c.showPopover=="function"?c.showPopover():c.removeAttribute("popover")}catch{c.removeAttribute("popover")}let u=!1;const d=f=>{c.contains(f.target)&&(u=!0,f.stopPropagation())},m=f=>{u&&(u=!1,f.stopPropagation())},b=[["pointerdown",d],["pointerup",m],["pointercancel",m],["touchstart",d],["click",f=>{if(!c.contains(f.target))return;f.stopPropagation();const k=f.target.closest?.("[data-cm-action]");k&&!k.disabled&&n.current[k.dataset.cmAction]?.()}]];for(const[f,k]of b)window.addEventListener?.(f,k,{capture:!0,passive:!0});return()=>{for(const[f,k]of b)window.removeEventListener?.(f,k,!0);try{c.hidePopover()}catch{}}},[]);const{actions:a,children:o,...l}=e,r=s("div",{...l,ref:t,popover:"manual"},o);let i;try{i=he("react-dom")?.createPortal}catch{}return typeof i=="function"?i(r,document.body):r}const ho="cm-peak-alert-preview";function ko(e){return e.useCost?.(n=>n)?.state?.config?.peakEnabled===!0?s(pt,{...e,view:"alert"}):null}function xo(e){const{config:t,t:n}=e,a=Ze(t,e.now),o=Ie(t,a);if(o===null)return null;const l=Je(o),r=o.nextIntoPeak?n("nextPeakIn",{time:Me(o,a,n)}):n("nextOffPeakIn",{time:Me(o,a,n)});return s(z,{portal:!0,label:n(l.notice),side:"right",delayMs:300},s("div",{"data-cm-display":"peak",className:"cm-peak-strip "+(o.weekend||o.holiday?"weekend":o.inPeak?"peak":"off")},s("div",{className:"cm-peak-track"},s("div",{className:"cm-peak-segment cm-peak-high"}),s("div",{className:"cm-peak-segment cm-peak-low"}),s("div",{className:"cm-peak-marker",style:{left:Et(t,o,a)}})),s("span",{className:"cm-peak-chip"},n(l.chip)+" · "+r)))}function wo(e){const{config:t,t:n}=e,a=Ze(t,e.now),o=Ie(t,a);if(o===null)return null;const l=Je(o),r=o.nextIntoPeak?n("nextPeakIn",{time:Me(o,a,n)}):n("nextOffPeakIn",{time:Me(o,a,n)});return s(z,{portal:!0,label:n(l.notice),side:"right",delayMs:300},s("div",{"data-cm-display":"peak",className:"cm-peak-classic "+(o.weekend||o.holiday?"weekend":o.inPeak?"peak":"off")},s("div",{className:"cm-peak-classic-marker",style:{left:"clamp(6px, "+Et(t,o,a)+", calc(100% - 6px))"}}),s("div",{className:"cm-peak-track"},s("div",{className:"cm-peak-segment cm-peak-high"}),s("div",{className:"cm-peak-segment cm-peak-low"})),s("span",{className:"cm-peak-classic-chip"},n(l.chip)+" · "+r)))}let Tn;function No(){return Tn??=he.async("./client.peak.js").then(e=>e.mount({peakView:Ie,peakPhaseAt:pa,peakPhaseForConfig:fa,peakConfigForState:ba,peakPeriodProgress:Pn,usePeakClock:Ze,phaseLabelKeys:Je,countdownText:Me,resolveLocale:j,makeT:V,Tooltip:z,FloatingCard:On})).catch(e=>{throw Tn=null,e})}function pt(e){return s(ae,{...e,load:No,quiet:!0})}function Rn(e,t,n){return t.sidebarTextOnly===!0?s(pt,{config:t,t:n}):s(t?.peakStyle==="progress"?pt:t?.peakStyle==="classic"?wo:xo,{config:t,t:n})}function So(e){const{config:t,t:n}=e,a=Ze(t,e.now),o=Ie(t,a);if(o===null)return null;const l=Je(o),r=o.nextIntoPeak?n("nextPeakIn",{time:Me(o,a,n)}):n("nextOffPeakIn",{time:Me(o,a,n)}),i=[n(l.notice),r];return s(z,{portal:!0,label:i,side:"right",delayMs:300},s("div",{className:"cm-peak-rail "+(o.weekend||o.holiday?"weekend":o.inPeak?"peak":"off"),"aria-label":i.join("; ")},s("div",{className:"cm-peak-rail-track"},s("div",{className:"cm-peak-rail-segment cm-peak-rail-high"}),s("div",{className:"cm-peak-rail-segment cm-peak-rail-low"}),s("div",{className:"cm-peak-rail-marker",style:{top:Et(t,o,a)}})),s("span",{className:"cm-peak-rail-label"},n(l.short))))}function Co(e){const{config:t,t:n}=e,a=Ze(t,e.now),o=Ie(t,a);if(o===null)return null;const l=Je(o),r=o.nextIntoPeak?n("nextPeakIn",{time:Me(o,a,n)}):n("nextOffPeakIn",{time:Me(o,a,n)}),i=[n(l.notice),r];return s(z,{portal:!0,label:i,side:"right",delayMs:300},s("div",{className:"cm-peak-rail-classic "+(o.weekend||o.holiday?"weekend":o.inPeak?"peak":"off"),"aria-label":i.join("; ")},s("div",{className:"cm-peak-rail-classic-track"},s("div",{className:"cm-peak-rail-classic-segment peak"}),s("div",{className:"cm-peak-rail-classic-segment off"}),s("div",{className:"cm-peak-rail-classic-marker",style:{top:Et(t,o,a)}})),s("span",{className:"cm-peak-rail-classic-label"},n(l.short))))}function vo(e,t,n){return t.sidebarTextOnly===!0?s(pt,{config:t,t:n,rail:!0}):s(t?.peakStyle==="progress"?pt:t?.peakStyle==="classic"?Co:So,{config:t,t:n,rail:!0})}function Ao(e,t,n){const a=t.budget??{enabled:!1,amount:100,period:"month"},o=Number(t.exchangeRate),r=(e.budgetUsed??(a.period==="day"?_(e.today,t):a.period==="all"?_(e.total,t):_(e.month,t)))*(Number.isFinite(o)&&o>0?o:1),i=Math.max(0,Number(a.amount)||0),c=i>0?Math.min(999,r/i*100):null,u=we(c===null?null:Math.min(100,c),ce(t,"budget")),d=a.detail!==!1;return{level:c===null?"ok":c>=100?"over":c>=80?"warn":"ok",rail:u.label===null?"—":Math.round(u.label)+"%",body:s(D,null,s("div",{className:"cm-bbox-head"},s("span",{className:"cm-bbox-label"},n("budget")),s("span",{className:"cm-bbox-pct cm-num"},u.label===null?"—":u.label.toFixed(1)+"%")),s("div",{className:"cm-bbox-bar"},s("div",{className:"cm-bbox-fill",style:{width:u.width+"%"}})),d?s(D,null,s("div",{className:"cm-bbox-line cm-num"},n("usedOf",{used:ue(r,t),amount:ue(i,t)}))):null)}}function Mo(e,t,n){const a=e.goQuota,o=t?.goQuota?.main==="weekly"||t?.goQuota?.main==="monthly"?t.goQuota.main:"rolling",l=a[o],r=l!==null&&typeof l?.percent=="number"?Math.max(0,Math.min(100,Number(l.percent)||0)):0,i=b=>b!==null&&typeof b?.percent=="number"?Math.round(we(b.percent,ce(t,"go")).label)+"%":"—",c=b=>n(b==="rolling"?"goShortRolling":b==="weekly"?"goShortWeekly":"goShortMonthly"),u=["rolling","weekly","monthly"].filter(b=>b!==o),d=l!==null&&typeof l?.resetsAt=="string"&&l.resetsAt.length>0?n("goResetAt",{time:new Date(l.resetsAt).toLocaleString()}):"",m=t?.goQuota?.detail!==!1,g=we(r,ce(t,"go"));return{level:r>=100?"over":r>=80?"warn":"ok",rail:g.label===null?"—":Math.round(g.label)+"%",body:s(D,null,s("div",{className:"cm-bbox-head"},s("span",{className:"cm-bbox-label"},n("goQuotaRowLabel")+" "+c(o)),s("span",{className:"cm-bbox-pct cm-num"},g.label===null?"—":Math.round(g.label)+"%")),s("div",{className:"cm-bbox-bar"},s("div",{className:"cm-bbox-fill",style:{width:g.width+"%"}})),m?s(D,null,s("div",{className:"cm-bbox-line cm-num"},u.map(b=>c(b)+" "+i(a[b])).join(" · ")),d?s("div",{className:"cm-bbox-line"},d):null):null)}}function Dn(e,t,n){const a=ce(t,"go");return["rolling","weekly","monthly"].map((o,l)=>{const r=e?.[o],i=typeof r?.percent=="number"&&Number.isFinite(r.percent)?Math.max(0,Math.min(100,r.percent)):null,c=r?.resetsAt&&Number.isFinite(Date.parse(r.resetsAt))?" · "+n("goResetAt",{time:new Date(r.resetsAt).toLocaleString()}):"";return n(["goWindowRolling","goWindowWeekly","goWindowMonthly"][l])+": "+(i===null?"—":Ue(we(i,a).label,a,n))+c}).concat(e?.fetchedAt>0?n("goQuotaFetchedAt",{time:new Date(e.fetchedAt).toLocaleTimeString()}):[]).join(`
3
3
  `)}function Bn({trigger:e,detail:t,refresh:n,busy:a,t:o,...l}){const r=e.props["data-cm-display"];return s("details",{...l,"data-cm-display":r,className:"cm-quota-details"+(r?" "+e.props.className:""),onKeyDown:i=>{i.key==="Escape"&&(i.currentTarget.open=!1,i.currentTarget.querySelector("summary")?.focus(),i.stopPropagation())}},s("summary",{...e.props,...r?{className:void 0,"data-cm-display":void 0}:{},"aria-label":e.props["aria-label"]||o("goQuotaRowLabel")},e.props.children),s("div",{className:"cm-quota-detail",role:"region","aria-label":o("goQuotaRowLabel")},s("div",{style:{whiteSpace:"pre-line"}},t),n?s("button",{type:"button",className:"cm-btn small",disabled:a,onClick:n},o(a?"refreshing":"refresh")):null))}function Po(e){const{state:t,wide:n}=e,a=t.goQuota,o=V(j(t.config));if(!a||a.status!=="ok")return null;const l=t.config?.goQuota?.main==="weekly"||t.config?.goQuota?.main==="monthly"?t.config.goQuota.main:"rolling";if(a[l]===null||typeof a[l]?.percent!="number")return null;const r=Mo(t,t.config,o),i=Dn(a,t.config,o);return s(z,{portal:!0,label:s("span",{style:{whiteSpace:"pre-line"}},i),side:"right",delayMs:300},s(Bn,{detail:i,t:o,trigger:s("summary",{"data-cm-display":"go",className:"cm-bbox"+(r.level==="ok"?"":" "+r.level)+(n?"":" rail")},n?r.body:s("div",{className:"cm-bbox-rail cm-num"},r.rail))}))}function Oo(e){return e===null||typeof e!="object"||e.unlimited||typeof e.percent!="number"?null:Math.max(0,Math.min(100,Math.round(Number(e.percent)||0)))}function ga(e){const t=e!==null&&typeof e=="object"?e:{};return{five:t["5h"]??null,seven:t["7d"]??t.week??t.weekly??null}}function Ln(e,t,n=Date.now()){if(typeof e!="string"||!e)return"";const a=Date.parse(e);if(!Number.isFinite(a))return"";const o=a-n;if(o<=0)return t("resetReached");const l=Math.ceil(o/6e4),r=Math.floor(l/1440),i=Math.floor(l%1440/60),c=l%60;return r>0?t("resetDays",{d:r,h:i}):i>0?t("resetHours",{h:i,m:c}):t("resetMinutes",{m:c})}function ft(e,t,n=Date.now()){const a=Ln(e?.resetsAt,t,n);return a?t("goResetAt",{time:new Date(e.resetsAt).toLocaleString()})+" ("+a+")":""}function Ue(e,t,n){return e===null?"—":n(t==="remaining"?"quotaRemaining":"quotaUsed",{pct:e})}function It(e){const[,t]=L(0),n=()=>t(Date.now());return J(()=>{if(!e)return;const a=setInterval(n,6e4);return()=>clearInterval(a)},[e]),{onMouseEnter:n,onFocus:n}}function En(e,t){if(!t)return s("div",{className:"cm-bbox-bar"},s("div",{className:"cm-bbox-fill",style:{width:e+"%"}}));const n={d:"M22 78 A40 40 0 1 1 78 78",pathLength:100,fill:"none",strokeWidth:8,strokeLinecap:"round"};return s("svg",{viewBox:"0 0 100 100","aria-hidden":!0},s("path",{...n,stroke:"currentColor",opacity:.18}),s("path",{...n,stroke:"currentColor",strokeDasharray:e+" 100",opacity:e>0?1:0}))}function bt(e,t,n,a,o,l){const r=Oo(t),i=r===null?"ok":r>=100?"over":r>=80?"warn":"ok",c=we(r,n),u=t?.unlimited?"∞":o?Ue(c.label,n,a):c.label===null?"—":c.label+"%";return{level:i,pct:r,text:u,label:c.label,row:s("div",{key:e,className:"cm-mm-row"+(i==="ok"?"":" "+i)},s("span",{className:"cm-bbox-label"},e),En(c.width,l),s("span",{className:"cm-bbox-pct cm-num"},u))}}function ya(e){const{five:t,seven:n,fetchedAt:a,t:o,wide:l,refresh:r,direction:i="used",gauge:c}=e,u=It(t?.resetsAt),d=Ln(t?.resetsAt,o),m=bt(o("codingPlanRemain5h"),t,i,o,!1,c),g=bt(o("codingPlanRemain7d"),n,i,o,!1,c),b=m.level==="over"||g.level==="over"?"over":m.level==="warn"||g.level==="warn"?"warn":"ok",f=(x,y,p)=>{const N=y?.unlimited?o("quotaUnlimited"):Ue(p.label,i,o),w=ft(y,o);return x+" "+N+(w?" · "+w:"")},k=[o("codingPlanMinimaxTitle"),f(o("codingPlanRemain5h"),t,m),f(o("codingPlanRemain7d"),n,g),a>0?o("goQuotaFetchedAt",{time:new Date(a).toLocaleTimeString()}):null,...r?Ae(o,r):[]].filter(Boolean).join(`
4
4
  `),h=s(D,null,s("div",{className:"cm-mm-title"},o("codingPlanMinimaxTitle")),s(c?"div":D,c?{className:"cm-plan-gauges"}:null,m.row,g.row),d?s("div",{className:"cm-mm-reset"},"5h · "+d):null),A=s(D,null,s("div",{className:"cm-bbox-rail cm-num"},m.text),s("div",{className:"cm-bbox-rail cm-num"},g.text));return s(z,{portal:!0,label:s("span",{style:{whiteSpace:"pre-line"}},k),side:"right",delayMs:300},s("div",{...u,"data-cm-display":"plan","data-cm-plan":"minimax",className:"cm-bbox cm-mm"+(b==="ok"?"":" "+b)+(l===!1?" rail":"")+(r?" clickable"+(r.busy?" busy":""):""),...r?be(r.busy,r.run):{}},l===!1?A:h))}function In(e,t,n,a,o,l){const r=l.busy||n?.status==="loading"?a("refreshing"):l.err||n?.status==="error"?a("queryFailed"):n?.status==="ok"?a("gatewayQuotaEmpty"):a("codingPlanNotQueried"),i=[t,r,n?.message,...Ae(a,l)].filter(Boolean).join(`
5
5
  `);return s(z,{portal:!0,label:s("span",{style:{whiteSpace:"pre-line"}},i),side:"right",delayMs:300},s("div",{"data-cm-display":"plan","data-cm-plan":e,"aria-label":i,className:"cm-bbox cm-mm clickable"+(o===!1?" rail":"")+(l.busy?" busy":""),...be(l.busy,l.run)},o===!1?s("div",{className:"cm-bbox-rail"},"—"):s(D,null,s("div",{className:"cm-mm-title"},t),s("span",{className:"cm-hint"},r))))}function To(e){const{state:t,wide:n,api:a}=e,o=t.codingPlans?.minimax,l=V(j(t.config)),r=Ee(a?()=>a.refreshCodingPlan("minimax"):null),{five:i,seven:c}=ga(o?.windows);return o?.status!=="ok"||i==null&&c==null?In("minimax",l("codingPlanMinimaxTitle"),o,l,n,r):s(ya,{five:i,seven:c,fetchedAt:o.fetchedAt,t:l,wide:n,refresh:r,direction:ce(t.config,"plan"),gauge:n!==!1&&t.config.planQuotaStyle==="gauge"&&!t.config.sidebarTextOnly})}const Ro="/plugins/dsh-openai-codex/auth/status",Do={18e3:"five",604800:"weekly"};function jn(e){if(!Array.isArray(e))return null;const t=e.find(a=>a!==null&&typeof a=="object"&&a.id==="codex");if(!t||!Array.isArray(t.windows))return null;const n={};for(const a of t.windows){const o=a!==null&&typeof a=="object"?Do[Number(a.windowSeconds)]:null;if(!o||typeof a.remainingPercent!="number"||!Number.isFinite(Number(a.remainingPercent)))continue;const l=Number(a.resetAt??a.resetsAt);n[o]={percent:Math.max(0,Math.min(100,Math.round((100-Number(a.remainingPercent))*10)/10)),resetsAt:Number.isFinite(l)&&l>0?new Date(l*1e3).toISOString():""}}return n}function Bo(e){return e===null||typeof e!="object"||e.status!=="signed-in"?null:jn(e.usage?.rateLimits)}async function ha(e){const t=AbortSignal.timeout(8e3);let n;const a=new Promise((o,l)=>{n=()=>l(t.reason),t.addEventListener("abort",n,{once:!0})});try{return await Promise.race([Promise.resolve().then(()=>e(t)),a])}finally{t.removeEventListener("abort",n)}}async function Lo(e){try{const t=await ha(n=>H.rpc?.call("/api","codex-subscription/usage",{force:e},n));return t?.ok?jn(t.value?.rateLimits):null}catch{return null}}const H={source:"auto",listeners:[]},ka=(e,t=null,n=null)=>Object.assign(H,{rpc:e,readPiAi:t,readChatgptSub:n,request:null,inFlight:null,fetchedAt:0,status:"idle",windows:{},message:""});ka(null);const jt=()=>{const{rpc:e,readPiAi:t,readChatgptSub:n,request:a,inFlight:o,listeners:l,...r}=H;return r},Eo=e=>(H.listeners.push(e),()=>{H.listeners=H.listeners.filter(t=>t!==e)}),Ft=()=>{for(const e of H.listeners)try{e()}catch{}};async function _t(e=!1,t=!1,n="auto"){if(!t)return;if(H.inFlight!==null&&H.source===n)return H.inFlight;if(!e&&H.source===n&&H.fetchedAt>0&&Date.now()-H.fetchedAt<(H.status==="ok"?5:1)*6e4)return;const a={};H.request=a,H.source!==n&&Object.assign(H,{status:"idle",windows:{},fetchedAt:0,source:n}),Ft();const o=Promise.resolve().then(async()=>{let l={},r="";try{if((n==="auto"||n==="subscription")&&(l=await Lo(e)??{}),Object.keys(l).length===0&&(n==="auto"||n==="pi-ai"))try{const i=await ha(()=>H.readPiAi?.());i?.ok===!0&&i.value?.status==="ok"?l=i.value.windows:i?.ok===!0&&i.value?.status==="error"&&(r=i.value.message)}catch{}if(Object.keys(l).length===0&&(n==="auto"||n==="chatgpt-sub"))try{const i=await ha(()=>he.async("./client.codex.js").then(c=>c.readChatgptSubQuota(H.readChatgptSub)));i?.status==="ok"?l=i.windows:i?.status==="error"&&(r=i.message)}catch{}if(Object.keys(l).length===0&&(n==="auto"||n==="chatgpt"))try{l=await(await he.async("./client.codex.js")).readChatgptQuota(e)??{}}catch{}if(Object.keys(l).length===0&&(n==="auto"||n==="connect")){const i=await fetch(Ro,{credentials:"same-origin",headers:{accept:"application/json"},signal:AbortSignal.timeout(8e3)});i.ok&&(l=Bo(await i.json().catch(()=>null))??{})}}catch{}finally{if(H.request!==a)return;H.status=Object.keys(l).length>0?"ok":"unavailable",H.windows=l,H.message=Object.keys(l).length?"":r,H.fetchedAt=Date.now(),H.inFlight=null,Ft()}});return H.inFlight=o,o}function Qt(e,t="auto"){const[n,a]=L(jt);return J(()=>{if(!e)return;let o=!0;const l=()=>{o&&a(jt())},r=Eo(l);l(),_t(!1,!0,t);const i=setInterval(()=>{_t(!1,!0,t)},6e4);return()=>{o=!1,clearInterval(i),r()}},[e,t,H.rpc]),n.source===t?n:{status:"idle",windows:{},fetchedAt:0}}function Io(e){const t=It(),{state:n,wide:a}=e,o=V(j(n.config)),l=n.config?.codexQuotaEnabled===!0&&n.config?.codexQuotaSidebar!==!1,r=n.config?.codexQuotaSource??"auto",i=Qt(l&&!e.preview,r),c=e.preview?n.displayPreviewCodex??(H.source===r?H:{status:"idle"}):i,u=Ee(e.preview?null:l?()=>_t(!0,l,r):()=>e.api.updateConfig({codexQuotaEnabled:!0,codexQuotaSidebar:!0}));if(!l&&(n.config?.codexQuotaSidebar===!1||n.codexCompat?.enabled!==!0))return null;if(!l)return s("div",{"data-cm-display":"codex",className:"cm-bbox cm-mm clickable"+(a===!1?" rail":""),...be(u.busy,u.run)},u.err||(a===!1?"Codex":o("codexQuotaEnable")));if(c.status!=="ok")return s("div",{"data-cm-display":"codex",className:"cm-bbox cm-mm clickable"+(a===!1?" rail":""),title:c.message||o("codexQuotaUnavailable"),...be(u.busy,u.run)},s("div",{className:"cm-mm-title"},a===!1?"Codex":o("codexQuotaTitle")),s("span",{className:"cm-hint"},a===!1?"—":c.status==="idle"||u.busy?o("refreshing"):c.message||o("codexQuotaUnavailable")));const d=[["five","codexQuotaFive","5h"],["weekly","codexQuotaWeek","7d"]].flatMap(([k,h,A])=>{const x=c.windows[k];if(!x)return[];const y=bt(A,x,"remaining",o,!0),p=new Date(typeof x.resetsAt=="string"?x.resetsAt:NaN),N=Number.isFinite(p.getTime())?o("codexQuotaReset",{time:p.toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1})}):"";return[{...y,key:k,short:A,name:o(h),reset:N,win:x}]});if(!d.length)return null;const m=d.some(k=>k.pct>=100)?"over":d.some(k=>k.pct>=80)?"warn":"ok",g=[o("codexQuotaTitle"),...d.map(k=>k.name+" · "+k.text+(k.reset?" · "+ft(k.win,o):"")),c.fetchedAt>0?o("goQuotaFetchedAt",{time:new Date(c.fetchedAt).toLocaleTimeString()}):null,...Ae(o,u)].filter(Boolean).join(`