@juliantanx/aiusage 1.5.6 → 1.5.8

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.
Files changed (24) hide show
  1. package/dist/index.js +940 -127
  2. package/dist/web/_app/immutable/chunks/{ToolSelector.0iI1cXVj.js → ToolSelector.CO-QGau6.js} +1 -1
  3. package/dist/web/_app/immutable/chunks/{entry.PMcg7HQL.js → entry.DJZO-wBk.js} +1 -1
  4. package/dist/web/_app/immutable/chunks/{stores.BSI_cVy6.js → stores.C6g63Ng7.js} +1 -1
  5. package/dist/web/_app/immutable/chunks/{stores.DE60qEGb.js → stores.CDuvMHgD.js} +1 -1
  6. package/dist/web/_app/immutable/entry/{app.CSiP_kAD.js → app.WQCJU-_e.js} +2 -2
  7. package/dist/web/_app/immutable/entry/start.COue4Eiw.js +1 -0
  8. package/dist/web/_app/immutable/nodes/{0.dH2tW-7d.js → 0.Fq-nYlaS.js} +1 -1
  9. package/dist/web/_app/immutable/nodes/{1.B8yHhyzy.js → 1.DrSfUVzz.js} +1 -1
  10. package/dist/web/_app/immutable/nodes/{10.CnTuhaua.js → 10.CP1F4_ac.js} +1 -1
  11. package/dist/web/_app/immutable/nodes/{11.5p54X4Ps.js → 11.YqYsFEzd.js} +1 -1
  12. package/dist/web/_app/immutable/nodes/{12.BCT8Dv1G.js → 12.RfrZJ-XB.js} +1 -1
  13. package/dist/web/_app/immutable/nodes/{14.u96Ucsue.js → 14.Cbg9FBSP.js} +1 -1
  14. package/dist/web/_app/immutable/nodes/{15.CMhy_NGl.js → 15.CQoUgLeT.js} +1 -1
  15. package/dist/web/_app/immutable/nodes/{2.CJH1Fs0K.js → 2.DLTFcQ9L.js} +1 -1
  16. package/dist/web/_app/immutable/nodes/{3.Chtgl9hh.js → 3.jLX2a-Ic.js} +1 -1
  17. package/dist/web/_app/immutable/nodes/{5.DtYG5yJy.js → 5.CVQN-3_l.js} +1 -1
  18. package/dist/web/_app/immutable/nodes/{6.B-ud4zCO.js → 6.C-WRTBwg.js} +1 -1
  19. package/dist/web/_app/immutable/nodes/{7.7Fm6yzqA.js → 7.DFkuOTpF.js} +1 -1
  20. package/dist/web/_app/immutable/nodes/{8.Chp3dlzK.js → 8.BNiBE_e2.js} +1 -1
  21. package/dist/web/_app/version.json +1 -1
  22. package/dist/web/index.html +6 -6
  23. package/package.json +3 -3
  24. package/dist/web/_app/immutable/entry/start.DnwUvynt.js +0 -1
@@ -1,4 +1,4 @@
1
- import{s as ot,n as pl,r as vl,c as hl,e as ut,o as ft}from"../chunks/scheduler.DsWd5xup.js";import{S as dt,i as ht,d as c,s as O,z as he,a as Y,b as r,w as oe,o as u,p as pt,g as U,c as _,e as m,f as B,C as sl,r as je,j as L,h as v,t as I,D as He,x as _l,A as Le,v as zl,E as _t}from"../chunks/index.BfJlbjrK.js";import{k as vt,m as ml,n as mt,o as gt,p as bt,q as yt,t as Et,v as kt,e as Ge,h as jl,i as Gl}from"../chunks/api.DVLAklIn.js";import{t as Pt}from"../chunks/i18n.DApJIXOT.js";import{r as Se,e as St,g as Nt}from"../chunks/stores.BSI_cVy6.js";function gl(e,l,t){const s=e.slice();s[101]=l[t],s[104]=t;const i=s[8]===s[101].model;return s[102]=i,s}function bl(e,l,t){const s=e.slice();s[105]=l[t];const i=s[105].model;s[106]=i;const n=s[13][s[106]];s[107]=n;const a=s[14][s[106]]??s[46](s[106]);s[108]=a;const o=s[45](s[107],s[108]);s[109]=o;const p=fl(s[109],s[105]);return s[110]=p,s}function yl(e,l,t){const s=e.slice();return s[113]=l[t],s}function El(e,l,t){const s=e.slice();s[105]=l[t];const i=s[105].model;s[106]=i;const n=s[14][s[106]]??s[46](s[106]);return s[108]=n,s}function kl(e){let l,t;return{c(){l=v("div"),t=I(e[29]),this.h()},l(s){l=_(s,"DIV",{class:!0});var i=m(l);t=B(i,e[29]),i.forEach(c),this.h()},h(){u(l,"class","sync-summary mono svelte-yt12fh")},m(s,i){Y(s,l,i),r(l,t)},p(s,i){i[0]&536870912&&O(t,s[29])},d(s){s&&c(l)}}}function Pl(e){let l,t,s,i,n,a,o,p,y,w,A,g,b,k=e[19]&&Sl(e),R=!e[22]&&(e[4]==="needed"||e[4]==="error")&&Nl(e),S=!e[22]&&Tl(e),E=e[22]&&Al(e);return{c(){l=v("div"),t=v("div"),s=v("div"),i=v("span"),n=L(),a=v("div"),o=v("span"),p=I(e[20]),y=L(),k&&k.c(),w=L(),A=v("div"),R&&R.c(),g=L(),S&&S.c(),b=L(),E&&E.c(),this.h()},l(h){l=_(h,"DIV",{class:!0});var d=m(l);t=_(d,"DIV",{class:!0});var N=m(t);s=_(N,"DIV",{class:!0});var q=m(s);i=_(q,"SPAN",{class:!0,"aria-hidden":!0}),m(i).forEach(c),n=U(q),a=_(q,"DIV",{class:!0});var V=m(a);o=_(V,"SPAN",{class:!0});var T=m(o);p=B(T,e[20]),T.forEach(c),y=U(V),k&&k.l(V),V.forEach(c),q.forEach(c),w=U(N),A=_(N,"DIV",{class:!0});var W=m(A);R&&R.l(W),g=U(W),S&&S.l(W),W.forEach(c),N.forEach(c),b=U(d),E&&E.l(d),d.forEach(c),this.h()},h(){u(i,"class","recalc-dot svelte-yt12fh"),u(i,"aria-hidden","true"),u(o,"class","recalc-label mono svelte-yt12fh"),u(a,"class","recalc-copy svelte-yt12fh"),u(s,"class","recalc-status svelte-yt12fh"),u(A,"class","recalc-actions svelte-yt12fh"),u(t,"class","recalc-head svelte-yt12fh"),u(l,"class","recalc-panel svelte-yt12fh"),he(l,"active",e[22]),he(l,"done",e[4]==="done"),he(l,"error",e[4]==="error")},m(h,d){Y(h,l,d),r(l,t),r(t,s),r(s,i),r(s,n),r(s,a),r(a,o),r(o,p),r(a,y),k&&k.m(a,null),r(t,w),r(t,A),R&&R.m(A,null),r(A,g),S&&S.m(A,null),r(l,b),E&&E.m(l,null)},p(h,d){d[0]&1048576&&O(p,h[20]),h[19]?k?k.p(h,d):(k=Sl(h),k.c(),k.m(a,null)):k&&(k.d(1),k=null),!h[22]&&(h[4]==="needed"||h[4]==="error")?R?R.p(h,d):(R=Nl(h),R.c(),R.m(A,g)):R&&(R.d(1),R=null),h[22]?S&&(S.d(1),S=null):S?S.p(h,d):(S=Tl(h),S.c(),S.m(A,null)),h[22]?E?E.p(h,d):(E=Al(h),E.c(),E.m(l,null)):E&&(E.d(1),E=null),d[0]&4194304&&he(l,"active",h[22]),d[0]&16&&he(l,"done",h[4]==="done"),d[0]&16&&he(l,"error",h[4]==="error")},d(h){h&&c(l),k&&k.d(),R&&R.d(),S&&S.d(),E&&E.d()}}}function Sl(e){let l,t;return{c(){l=v("span"),t=I(e[19]),this.h()},l(s){l=_(s,"SPAN",{class:!0});var i=m(l);t=B(i,e[19]),i.forEach(c),this.h()},h(){u(l,"class","recalc-summary svelte-yt12fh")},m(s,i){Y(s,l,i),r(l,t)},p(s,i){i[0]&524288&&O(t,s[19])},d(s){s&&c(l)}}}function Nl(e){let l,t=e[7]("pricing.recalcNow")+"",s,i,n;return{c(){l=v("button"),s=I(t),this.h()},l(a){l=_(a,"BUTTON",{class:!0,type:!0});var o=m(l);s=B(o,t),o.forEach(c),this.h()},h(){u(l,"class","btn-sm primary svelte-yt12fh"),u(l,"type","button"),l.disabled=e[6]},m(a,o){Y(a,l,o),r(l,s),i||(n=oe(l,"click",e[34]),i=!0)},p(a,o){o[0]&128&&t!==(t=a[7]("pricing.recalcNow")+"")&&O(s,t),o[0]&64&&(l.disabled=a[6])},d(a){a&&c(l),i=!1,n()}}}function Tl(e){let l,t="×",s,i;return{c(){l=v("button"),l.textContent=t,this.h()},l(n){l=_(n,"BUTTON",{class:!0,type:!0,"aria-label":!0,"data-svelte-h":!0}),sl(l)!=="svelte-8p94wv"&&(l.textContent=t),this.h()},h(){u(l,"class","recalc-close svelte-yt12fh"),u(l,"type","button"),u(l,"aria-label","Close")},m(n,a){Y(n,l,a),s||(i=oe(l,"click",e[33]),s=!0)},p:pl,d(n){n&&c(l),s=!1,i()}}}function Al(e){let l,t;return{c(){l=v("div"),t=v("span"),this.h()},l(s){l=_(s,"DIV",{class:!0,"aria-hidden":!0});var i=m(l);t=_(i,"SPAN",{class:!0,style:!0}),m(t).forEach(c),i.forEach(c),this.h()},h(){u(t,"class","recalc-bar svelte-yt12fh"),_l(t,"width",Math.max(4,e[23])+"%"),u(l,"class","recalc-track svelte-yt12fh"),u(l,"aria-hidden","true")},m(s,i){Y(s,l,i),r(l,t)},p(s,i){i[0]&8388608&&_l(t,"width",Math.max(4,s[23])+"%")},d(s){s&&c(l)}}}function Tt(e){let l,t,s,i,n=e[7]("pricing.modelSearch")+"",a,o,p,y,w,A,g,b=e[7]("pricing.modelSearchCount").replace("{shown}",e[25].length).replace("{total}",e[0].length)+"",k,R,S,E,h,d=e[24]&&Bl(e);function N(T,W){return T[25].length===0?Dt:wt}let q=N(e),V=q(e);return{c(){d&&d.c(),l=L(),t=v("div"),s=v("label"),i=v("span"),a=I(n),o=L(),p=v("input"),A=L(),g=v("span"),k=I(b),R=L(),V.c(),S=je(),this.h()},l(T){d&&d.l(T),l=U(T),t=_(T,"DIV",{class:!0});var W=m(t);s=_(W,"LABEL",{class:!0});var K=m(s);i=_(K,"SPAN",{});var x=m(i);a=B(x,n),x.forEach(c),o=U(K),p=_(K,"INPUT",{class:!0,type:!0,placeholder:!0,"aria-label":!0}),K.forEach(c),A=U(W),g=_(W,"SPAN",{class:!0});var F=m(g);k=B(F,b),F.forEach(c),W.forEach(c),R=U(T),V.l(T),S=je(),this.h()},h(){u(p,"class","model-filter-input svelte-yt12fh"),u(p,"type","search"),u(p,"placeholder",y=e[7]("pricing.modelSearchPlaceholder")),u(p,"aria-label",w=e[7]("pricing.modelSearch")),u(s,"class","model-filter svelte-yt12fh"),u(g,"class","pricing-count mono svelte-yt12fh"),u(t,"class","pricing-toolbar svelte-yt12fh")},m(T,W){d&&d.m(T,W),Y(T,l,W),Y(T,t,W),r(t,s),r(s,i),r(i,a),r(s,o),r(s,p),Le(p,e[3]),r(t,A),r(t,g),r(g,k),Y(T,R,W),V.m(T,W),Y(T,S,W),E||(h=oe(p,"input",e[66]),E=!0)},p(T,W){T[24]?d?d.p(T,W):(d=Bl(T),d.c(),d.m(l.parentNode,l)):d&&(d.d(1),d=null),W[0]&128&&n!==(n=T[7]("pricing.modelSearch")+"")&&O(a,n),W[0]&128&&y!==(y=T[7]("pricing.modelSearchPlaceholder"))&&u(p,"placeholder",y),W[0]&128&&w!==(w=T[7]("pricing.modelSearch"))&&u(p,"aria-label",w),W[0]&8&&p.value!==T[3]&&Le(p,T[3]),W[0]&33554561&&b!==(b=T[7]("pricing.modelSearchCount").replace("{shown}",T[25].length).replace("{total}",T[0].length)+"")&&O(k,b),q===(q=N(T))&&V?V.p(T,W):(V.d(1),V=q(T),V&&(V.c(),V.m(S.parentNode,S)))},d(T){T&&(c(l),c(t),c(R),c(S)),d&&d.d(T),V.d(T),E=!1,h()}}}function At(e){let l,t,s,i=e[7]("pricing.emptyTitle")+"",n,a,o,p=e[7]("pricing.emptyBody")+"",y,w,A,g=(e[12]?e[7]("pricing.syncingPrices"):e[7]("pricing.emptySync"))+"",b,k,R;return{c(){l=v("section"),t=v("div"),s=v("h2"),n=I(i),a=L(),o=v("p"),y=I(p),w=L(),A=v("button"),b=I(g),this.h()},l(S){l=_(S,"SECTION",{class:!0});var E=m(l);t=_(E,"DIV",{class:!0});var h=m(t);s=_(h,"H2",{class:!0});var d=m(s);n=B(d,i),d.forEach(c),a=U(h),o=_(h,"P",{class:!0});var N=m(o);y=B(N,p),N.forEach(c),h.forEach(c),w=U(E),A=_(E,"BUTTON",{class:!0});var q=m(A);b=B(q,g),q.forEach(c),E.forEach(c),this.h()},h(){u(s,"class","svelte-yt12fh"),u(o,"class","svelte-yt12fh"),u(t,"class","empty-copy svelte-yt12fh"),u(A,"class","btn-sm primary svelte-yt12fh"),A.disabled=e[12],u(l,"class","empty-pricing svelte-yt12fh")},m(S,E){Y(S,l,E),r(l,t),r(t,s),r(s,n),r(t,a),r(t,o),r(o,y),r(l,w),r(l,A),r(A,b),k||(R=oe(A,"click",e[37]),k=!0)},p(S,E){E[0]&128&&i!==(i=S[7]("pricing.emptyTitle")+"")&&O(n,i),E[0]&128&&p!==(p=S[7]("pricing.emptyBody")+"")&&O(y,p),E[0]&4224&&g!==(g=(S[12]?S[7]("pricing.syncingPrices"):S[7]("pricing.emptySync"))+"")&&O(b,g),E[0]&4096&&(A.disabled=S[12])},d(S){S&&c(l),k=!1,R()}}}function Bt(e){let l,t;return{c(){l=v("div"),t=I(e[2]),this.h()},l(s){l=_(s,"DIV",{class:!0});var i=m(l);t=B(i,e[2]),i.forEach(c),this.h()},h(){u(l,"class","state-msg error svelte-yt12fh")},m(s,i){Y(s,l,i),r(l,t)},p(s,i){i[0]&4&&O(t,s[2])},d(s){s&&c(l)}}}function It(e){let l,t=e[7]("common.loading")+"",s;return{c(){l=v("div"),s=I(t),this.h()},l(i){l=_(i,"DIV",{class:!0});var n=m(l);s=B(n,t),n.forEach(c),this.h()},h(){u(l,"class","state-msg svelte-yt12fh")},m(i,n){Y(i,l,n),r(l,s)},p(i,n){n[0]&128&&t!==(t=i[7]("common.loading")+"")&&O(s,t)},d(i){i&&c(l)}}}function Bl(e){let l,t,s,i,n=e[7]("pricing.bindingsTitle")+"",a,o,p,y=e[7]("pricing.bindingsBody").replace("{count}",e[5].length).replace("{unresolved}",e[28].length)+"",w,A,g,b=(e[15]?e[7]("pricing.collapseUnresolved"):e[7]("pricing.expandUnresolved"))+"",k,R,S,E,h=e[15]&&Il(e);return{c(){l=v("section"),t=v("div"),s=v("div"),i=v("h2"),a=I(n),o=L(),p=v("p"),w=I(y),A=L(),g=v("button"),k=I(b),R=L(),h&&h.c(),this.h()},l(d){l=_(d,"SECTION",{class:!0});var N=m(l);t=_(N,"DIV",{class:!0});var q=m(t);s=_(q,"DIV",{});var V=m(s);i=_(V,"H2",{class:!0});var T=m(i);a=B(T,n),T.forEach(c),o=U(V),p=_(V,"P",{class:!0});var W=m(p);w=B(W,y),W.forEach(c),V.forEach(c),A=U(q),g=_(q,"BUTTON",{class:!0,type:!0,"aria-expanded":!0});var K=m(g);k=B(K,b),K.forEach(c),q.forEach(c),R=U(N),h&&h.l(N),N.forEach(c),this.h()},h(){u(i,"class","svelte-yt12fh"),u(p,"class","svelte-yt12fh"),u(g,"class","btn-sm alias-toggle svelte-yt12fh"),u(g,"type","button"),u(g,"aria-expanded",e[15]),u(t,"class","alias-head svelte-yt12fh"),u(l,"class","alias-panel svelte-yt12fh")},m(d,N){Y(d,l,N),r(l,t),r(t,s),r(s,i),r(i,a),r(s,o),r(s,p),r(p,w),r(t,A),r(t,g),r(g,k),r(l,R),h&&h.m(l,null),S||(E=oe(g,"click",e[41]),S=!0)},p(d,N){N[0]&128&&n!==(n=d[7]("pricing.bindingsTitle")+"")&&O(a,n),N[0]&268435616&&y!==(y=d[7]("pricing.bindingsBody").replace("{count}",d[5].length).replace("{unresolved}",d[28].length)+"")&&O(w,y),N[0]&32896&&b!==(b=(d[15]?d[7]("pricing.collapseUnresolved"):d[7]("pricing.expandUnresolved"))+"")&&O(k,b),N[0]&32768&&u(g,"aria-expanded",d[15]),d[15]?h?h.p(d,N):(h=Il(d),h.c(),h.m(l,null)):h&&(h.d(1),h=null)},d(d){d&&c(l),h&&h.d(),S=!1,E()}}}function Il(e){let l,t,s=e[27].length&&wl(e),i=e[26].length&&Rl(e);return{c(){l=v("div"),s&&s.c(),t=L(),i&&i.c(),this.h()},l(n){l=_(n,"DIV",{class:!0});var a=m(l);s&&s.l(a),t=U(a),i&&i.l(a),a.forEach(c),this.h()},h(){u(l,"class","alias-list svelte-yt12fh")},m(n,a){Y(n,l,a),s&&s.m(l,null),r(l,t),i&&i.m(l,null)},p(n,a){n[27].length?s?s.p(n,a):(s=wl(n),s.c(),s.m(l,t)):s&&(s.d(1),s=null),n[26].length?i?i.p(n,a):(i=Rl(n),i.c(),i.m(l,null)):i&&(i.d(1),i=null)},d(n){n&&c(l),s&&s.d(),i&&i.d()}}}function wl(e){let l,t,s,i,n=e[16]?"−":"+",a,o,p,y=e[7]("pricing.autoBindingsTitle")+"",w,A,g,b=e[27].length+"",k,R,S,E,h=e[16]&&Dl(e);return{c(){l=v("div"),t=v("div"),s=v("button"),i=v("span"),a=I(n),o=L(),p=v("h3"),w=I(y),A=L(),g=v("span"),k=I(b),R=L(),h&&h.c(),this.h()},l(d){l=_(d,"DIV",{class:!0});var N=m(l);t=_(N,"DIV",{class:!0});var q=m(t);s=_(q,"BUTTON",{class:!0,type:!0,"aria-expanded":!0});var V=m(s);i=_(V,"SPAN",{"aria-hidden":!0,class:!0});var T=m(i);a=B(T,n),T.forEach(c),o=U(V),p=_(V,"H3",{class:!0});var W=m(p);w=B(W,y),W.forEach(c),V.forEach(c),A=U(q),g=_(q,"SPAN",{class:!0});var K=m(g);k=B(K,b),K.forEach(c),q.forEach(c),R=U(N),h&&h.l(N),N.forEach(c),this.h()},h(){u(i,"aria-hidden","true"),u(i,"class","svelte-yt12fh"),u(p,"class","svelte-yt12fh"),u(s,"class","section-toggle svelte-yt12fh"),u(s,"type","button"),u(s,"aria-expanded",e[16]),u(g,"class","mono svelte-yt12fh"),u(t,"class","alias-section-head svelte-yt12fh"),u(l,"class","alias-section svelte-yt12fh")},m(d,N){Y(d,l,N),r(l,t),r(t,s),r(s,i),r(i,a),r(s,o),r(s,p),r(p,w),r(t,A),r(t,g),r(g,k),r(l,R),h&&h.m(l,null),S||(E=oe(s,"click",e[42]),S=!0)},p(d,N){N[0]&65536&&n!==(n=d[16]?"−":"+")&&O(a,n),N[0]&128&&y!==(y=d[7]("pricing.autoBindingsTitle")+"")&&O(w,y),N[0]&65536&&u(s,"aria-expanded",d[16]),N[0]&134217728&&b!==(b=d[27].length+"")&&O(k,b),d[16]?h?h.p(d,N):(h=Dl(d),h.c(),h.m(l,null)):h&&(h.d(1),h=null)},d(d){d&&c(l),h&&h.d(),S=!1,E()}}}function Dl(e){let l=[],t=new Map,s,i=Ge(e[27]);const n=a=>a[105].model;for(let a=0;a<i.length;a+=1){let o=El(e,i,a),p=n(o);t.set(p,l[a]=Cl(p,o))}return{c(){for(let a=0;a<l.length;a+=1)l[a].c();s=je()},l(a){for(let o=0;o<l.length;o+=1)l[o].l(a);s=je()},m(a,o){for(let p=0;p<l.length;p+=1)l[p]&&l[p].m(a,o);Y(a,s,o)},p(a,o){o[0]&134234240|o[1]&98304&&(i=Ge(a[27]),l=jl(l,o,n,1,a,i,t,s.parentNode,Gl,Cl,s,El))},d(a){a&&c(s);for(let o=0;o<l.length;o+=1)l[o].d(a)}}}function Cl(e,l){let t,s,i,n=l[106]+"",a,o,p,y=l[47](l[105])+"",w,A,g,b,k,R,S,E;return{key:e,first:null,c(){t=v("div"),s=v("div"),i=v("span"),a=I(n),o=L(),p=v("span"),w=I(y),A=L(),g=v("div"),b=v("input"),E=L(),this.h()},l(h){t=_(h,"DIV",{class:!0});var d=m(t);s=_(d,"DIV",{class:!0});var N=m(s);i=_(N,"SPAN",{class:!0});var q=m(i);a=B(q,n),q.forEach(c),o=U(N),p=_(N,"SPAN",{class:!0});var V=m(p);w=B(V,y),V.forEach(c),N.forEach(c),A=U(d),g=_(d,"DIV",{class:!0});var T=m(g);b=_(T,"INPUT",{class:!0,placeholder:!0,"aria-label":!0}),T.forEach(c),E=U(d),d.forEach(c),this.h()},h(){u(i,"class","alias-model mono svelte-yt12fh"),u(p,"class","alias-state svelte-yt12fh"),u(s,"class","alias-meta svelte-yt12fh"),u(b,"class","alias-search svelte-yt12fh"),b.value=k=l[108],u(b,"placeholder",R=l[7]("pricing.aliasSearch")),u(b,"aria-label",S=l[7]("pricing.aliasTarget")),b.disabled=!0,u(g,"class","alias-combobox svelte-yt12fh"),u(t,"class","alias-row auto svelte-yt12fh"),this.first=t},m(h,d){Y(h,t,d),r(t,s),r(s,i),r(i,a),r(s,o),r(s,p),r(p,w),r(t,A),r(t,g),r(g,b),r(t,E)},p(h,d){l=h,d[0]&134217728&&n!==(n=l[106]+"")&&O(a,n),d[0]&134217728&&y!==(y=l[47](l[105])+"")&&O(w,y),d[0]&134234112&&k!==(k=l[108])&&b.value!==k&&(b.value=k),d[0]&128&&R!==(R=l[7]("pricing.aliasSearch"))&&u(b,"placeholder",R),d[0]&128&&S!==(S=l[7]("pricing.aliasTarget"))&&u(b,"aria-label",S)},d(h){h&&c(t)}}}function Rl(e){let l,t,s,i,n=e[17]?"−":"+",a,o,p,y=e[7]("pricing.manualBindingsTitle")+"",w,A,g,b=e[26].length+"",k,R,S,E,h=e[17]&&Vl(e);return{c(){l=v("div"),t=v("div"),s=v("button"),i=v("span"),a=I(n),o=L(),p=v("h3"),w=I(y),A=L(),g=v("span"),k=I(b),R=L(),h&&h.c(),this.h()},l(d){l=_(d,"DIV",{class:!0});var N=m(l);t=_(N,"DIV",{class:!0});var q=m(t);s=_(q,"BUTTON",{class:!0,type:!0,"aria-expanded":!0});var V=m(s);i=_(V,"SPAN",{"aria-hidden":!0,class:!0});var T=m(i);a=B(T,n),T.forEach(c),o=U(V),p=_(V,"H3",{class:!0});var W=m(p);w=B(W,y),W.forEach(c),V.forEach(c),A=U(q),g=_(q,"SPAN",{class:!0});var K=m(g);k=B(K,b),K.forEach(c),q.forEach(c),R=U(N),h&&h.l(N),N.forEach(c),this.h()},h(){u(i,"aria-hidden","true"),u(i,"class","svelte-yt12fh"),u(p,"class","svelte-yt12fh"),u(s,"class","section-toggle svelte-yt12fh"),u(s,"type","button"),u(s,"aria-expanded",e[17]),u(g,"class","mono svelte-yt12fh"),u(t,"class","alias-section-head svelte-yt12fh"),u(l,"class","alias-section svelte-yt12fh")},m(d,N){Y(d,l,N),r(l,t),r(t,s),r(s,i),r(i,a),r(s,o),r(s,p),r(p,w),r(t,A),r(t,g),r(g,k),r(l,R),h&&h.m(l,null),S||(E=oe(s,"click",e[43]),S=!0)},p(d,N){N[0]&131072&&n!==(n=d[17]?"−":"+")&&O(a,n),N[0]&128&&y!==(y=d[7]("pricing.manualBindingsTitle")+"")&&O(w,y),N[0]&131072&&u(s,"aria-expanded",d[17]),N[0]&67108864&&b!==(b=d[26].length+"")&&O(k,b),d[17]?h?h.p(d,N):(h=Vl(d),h.c(),h.m(l,null)):h&&(h.d(1),h=null)},d(d){d&&c(l),h&&h.d(),S=!1,E()}}}function Vl(e){let l=[],t=new Map,s,i=Ge(e[26]);const n=a=>a[105].model;for(let a=0;a<i.length;a+=1){let o=bl(e,i,a),p=n(o);t.set(p,l[a]=Wl(p,o))}return{c(){for(let a=0;a<l.length;a+=1)l[a].c();s=je()},l(a){for(let o=0;o<l.length;o+=1)l[o].l(a);s=je()},m(a,o){for(let p=0;p<l.length;p+=1)l[p]&&l[p].m(a,o);Y(a,s,o)},p(a,o){o[0]&67395712|o[1]&1041280&&(i=Ge(a[26]),l=jl(l,o,n,1,a,i,t,s.parentNode,Gl,Wl,s,bl))},d(a){a&&c(s);for(let o=0;o<l.length;o+=1)l[o].d(a)}}}function Ml(e){let l,t=Ge(e[38](e[14][e[106]]??"")),s=[];for(let n=0;n<t.length;n+=1)s[n]=Ol(yl(e,t,n));let i=null;return t.length||(i=Ul(e)),{c(){l=v("div");for(let n=0;n<s.length;n+=1)s[n].c();i&&i.c(),this.h()},l(n){l=_(n,"DIV",{class:!0,role:!0});var a=m(l);for(let o=0;o<s.length;o+=1)s[o].l(a);i&&i.l(a),a.forEach(c),this.h()},h(){u(l,"class","alias-options svelte-yt12fh"),u(l,"role","listbox")},m(n,a){Y(n,l,a);for(let o=0;o<s.length;o+=1)s[o]&&s[o].m(l,null);i&&i.m(l,null)},p(n,a){if(a[0]&67125376|a[1]&8320){t=Ge(n[38](n[14][n[106]]??""));let o;for(o=0;o<t.length;o+=1){const p=yl(n,t,o);s[o]?s[o].p(p,a):(s[o]=Ol(p),s[o].c(),s[o].m(l,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=t.length,!t.length&&i?i.p(n,a):t.length?i&&(i.d(1),i=null):(i=Ul(n),i.c(),i.m(l,null))}},d(n){n&&c(l),zl(s,n),i&&i.d()}}}function Ul(e){let l,t=e[7]("pricing.aliasNoResults")+"",s;return{c(){l=v("span"),s=I(t),this.h()},l(i){l=_(i,"SPAN",{class:!0});var n=m(l);s=B(n,t),n.forEach(c),this.h()},h(){u(l,"class","alias-empty svelte-yt12fh")},m(i,n){Y(i,l,n),r(l,s)},p(i,n){n[0]&128&&t!==(t=i[7]("pricing.aliasNoResults")+"")&&O(s,t)},d(i){i&&c(l)}}}function Ll(e){let l,t=e[113].provider+"",s;return{c(){l=v("span"),s=I(t),this.h()},l(i){l=_(i,"SPAN",{class:!0});var n=m(l);s=B(n,t),n.forEach(c),this.h()},h(){u(l,"class","alias-option-provider svelte-yt12fh")},m(i,n){Y(i,l,n),r(l,s)},p(i,n){n[0]&67125248&&t!==(t=i[113].provider+"")&&O(s,t)},d(i){i&&c(l)}}}function Ol(e){let l,t,s=e[113].model+"",i,n,a,o,p,y=e[113].provider&&Ll(e);function w(){return e[64](e[106],e[113])}return{c(){l=v("button"),t=v("span"),i=I(s),n=L(),y&&y.c(),a=L(),this.h()},l(A){l=_(A,"BUTTON",{type:!0,class:!0});var g=m(l);t=_(g,"SPAN",{class:!0});var b=m(t);i=B(b,s),b.forEach(c),n=U(g),y&&y.l(g),a=U(g),g.forEach(c),this.h()},h(){u(t,"class","alias-option-model mono svelte-yt12fh"),u(l,"type","button"),u(l,"class","alias-option svelte-yt12fh")},m(A,g){Y(A,l,g),r(l,t),r(t,i),r(l,n),y&&y.m(l,null),r(l,a),o||(p=oe(l,"mousedown",_t(w)),o=!0)},p(A,g){e=A,g[0]&67125248&&s!==(s=e[113].model+"")&&O(i,s),e[113].provider?y?y.p(e,g):(y=Ll(e),y.c(),y.m(l,a)):y&&(y.d(1),y=null)},d(A){A&&c(l),y&&y.d(),o=!1,p()}}}function ql(e){let l,t,s=e[49](e[106],e[105],e[109])+"",i,n,a,o;function p(){return e[65](e[106],e[105],e[109])}return{c(){l=v("div"),t=v("button"),i=I(s),this.h()},l(y){l=_(y,"DIV",{class:!0});var w=m(l);t=_(w,"BUTTON",{class:!0});var A=m(t);i=B(A,s),A.forEach(c),w.forEach(c),this.h()},h(){u(t,"class","btn-sm svelte-yt12fh"),t.disabled=n=e[48](e[106],e[105],e[109]),he(t,"save",!$e(e[105])||e[110]),he(t,"reset",$e(e[105])&&!e[110]),u(l,"class","alias-actions svelte-yt12fh")},m(y,w){Y(y,l,w),r(l,t),r(t,i),a||(o=oe(t,"click",p),a=!0)},p(y,w){e=y,w[0]&67133440&&s!==(s=e[49](e[106],e[105],e[109])+"")&&O(i,s),w[0]&67133440&&n!==(n=e[48](e[106],e[105],e[109]))&&(t.disabled=n),w[0]&67133440|w[1]&49152&&he(t,"save",!$e(e[105])||e[110]),w[0]&67133440|w[1]&49152&&he(t,"reset",$e(e[105])&&!e[110])},d(y){y&&c(l),a=!1,o()}}}function Wl(e,l){let t,s,i,n=l[106]+"",a,o,p,y=l[47](l[105])+"",w,A,g,b,k,R,S,E,h,d,N=ze(l[105]),q,V,T;function W(){return l[61](l[106])}function K(){return l[62](l[106])}function x(...ie){return l[63](l[106],...ie)}let F=l[18]===l[106]&&Ml(l),X=N&&ql(l);return{key:e,first:null,c(){t=v("div"),s=v("div"),i=v("span"),a=I(n),o=L(),p=v("span"),w=I(y),A=L(),g=v("div"),b=v("input"),h=L(),F&&F.c(),d=L(),X&&X.c(),q=L(),this.h()},l(ie){t=_(ie,"DIV",{class:!0});var M=m(t);s=_(M,"DIV",{class:!0});var z=m(s);i=_(z,"SPAN",{class:!0});var Z=m(i);a=B(Z,n),Z.forEach(c),o=U(z),p=_(z,"SPAN",{class:!0});var ee=m(p);w=B(ee,y),ee.forEach(c),z.forEach(c),A=U(M),g=_(M,"DIV",{class:!0});var Q=m(g);b=_(Q,"INPUT",{class:!0,placeholder:!0,"aria-label":!0}),h=U(Q),F&&F.l(Q),Q.forEach(c),d=U(M),X&&X.l(M),q=U(M),M.forEach(c),this.h()},h(){u(i,"class","alias-model mono svelte-yt12fh"),u(p,"class","alias-state svelte-yt12fh"),he(p,"unresolved",!l[105].hasPrice),u(s,"class","alias-meta svelte-yt12fh"),u(b,"class","alias-search svelte-yt12fh"),b.value=k=l[108],u(b,"placeholder",R=l[7]("pricing.aliasSearch")),u(b,"aria-label",S=l[7]("pricing.aliasTarget")),b.disabled=E=!ze(l[105]),u(g,"class","alias-combobox svelte-yt12fh"),u(t,"class","alias-row svelte-yt12fh"),this.first=t},m(ie,M){Y(ie,t,M),r(t,s),r(s,i),r(i,a),r(s,o),r(s,p),r(p,w),r(t,A),r(t,g),r(g,b),r(g,h),F&&F.m(g,null),r(t,d),X&&X.m(t,null),r(t,q),V||(T=[oe(b,"focus",W),oe(b,"blur",K),oe(b,"input",x)],V=!0)},p(ie,M){l=ie,M[0]&67108864&&n!==(n=l[106]+"")&&O(a,n),M[0]&67108864&&y!==(y=l[47](l[105])+"")&&O(w,y),M[0]&67108864&&he(p,"unresolved",!l[105].hasPrice),M[0]&67125248&&k!==(k=l[108])&&b.value!==k&&(b.value=k),M[0]&128&&R!==(R=l[7]("pricing.aliasSearch"))&&u(b,"placeholder",R),M[0]&128&&S!==(S=l[7]("pricing.aliasTarget"))&&u(b,"aria-label",S),M[0]&67108864&&E!==(E=!ze(l[105]))&&(b.disabled=E),l[18]===l[106]?F?F.p(l,M):(F=Ml(l),F.c(),F.m(g,null)):F&&(F.d(1),F=null),M[0]&67108864&&(N=ze(l[105])),N?X?X.p(l,M):(X=ql(l),X.c(),X.m(t,q)):X&&(X.d(1),X=null)},d(ie){ie&&c(t),F&&F.d(),X&&X.d(),V=!1,vl(T)}}}function wt(e){let l,t=Ge(e[25]),s=[];for(let i=0;i<t.length;i+=1)s[i]=Ql(gl(e,t,i));return{c(){l=v("div");for(let i=0;i<s.length;i+=1)s[i].c();this.h()},l(i){l=_(i,"DIV",{class:!0});var n=m(l);for(let a=0;a<s.length;a+=1)s[a].l(n);n.forEach(c),this.h()},h(){u(l,"class","grid svelte-yt12fh")},m(i,n){Y(i,l,n);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(l,null)},p(i,n){if(n[0]&1107300224|n[1]&51){t=Ge(i[25]);let a;for(a=0;a<t.length;a+=1){const o=gl(i,t,a);s[a]?s[a].p(o,n):(s[a]=Ql(o),s[a].c(),s[a].m(l,null))}for(;a<s.length;a+=1)s[a].d(1);s.length=t.length}},d(i){i&&c(l),zl(s,i)}}}function Dt(e){let l,t=e[7]("pricing.modelSearchEmpty")+"",s;return{c(){l=v("div"),s=I(t),this.h()},l(i){l=_(i,"DIV",{class:!0});var n=m(l);s=B(n,t),n.forEach(c),this.h()},h(){u(l,"class","state-msg svelte-yt12fh")},m(i,n){Y(i,l,n),r(l,s)},p(i,n){n[0]&128&&t!==(t=i[7]("pricing.modelSearchEmpty")+"")&&O(s,t)},d(i){i&&c(l)}}}function Ct(e){var De,Ve;let l,t,s=e[101].model+"",i,n,a,o,p=e[7]("pricing.edit")+"",y,w,A,g,b,k,R=e[7]("pricing.input")+"",S,E,h,d=(e[101].price?e[32](e[101].price.input,e[101].currency,e[11]):"-")+"",N,q,V,T="/",W,K,x,F=e[7]("pricing.output")+"",X,ie,M,z=(e[101].price?e[32](e[101].price.output,e[101].currency,e[11]):"-")+"",Z,ee,Q,C,H,me=e[7]("pricing.cacheRead")+"",ke,te,ge,ne=(((De=e[101].price)==null?void 0:De.cacheRead)!=null?e[32](e[101].price.cacheRead,e[101].currency,e[11]):"-")+"",re,Be,ye,pe,J=e[7]("pricing.cacheWrite")+"",be,_e,le,fe=(((Ve=e[101].price)==null?void 0:Ve.cacheWrite)!=null?e[32](e[101].price.cacheWrite,e[101].currency,e[11]):"-")+"",Ne,Ie,ae,Ue,Te,we=dl(e[101]),Ae,We;function Ye(){return e[72](e[101])}let ve=e[101].isOverride&&Yl(e);function de($,G){return $[101].isOverride?Lt:$[101].isBuiltin||$[101].isDefault?Ut:$[101].matchedBy?Mt:Vt}let j=de(e),Pe=j(e),ue=e[101].currency==="CNY"&&Kl(),se=we&&Fl(e);return{c(){l=v("div"),t=v("span"),i=I(s),n=L(),a=v("div"),o=v("button"),y=I(p),w=L(),ve&&ve.c(),A=L(),g=v("div"),b=v("div"),k=v("span"),S=I(R),E=L(),h=v("span"),N=I(d),q=L(),V=v("span"),V.textContent=T,W=L(),K=v("div"),x=v("span"),X=I(F),ie=L(),M=v("span"),Z=I(z),ee=L(),Q=v("div"),C=v("div"),H=v("span"),ke=I(me),te=L(),ge=v("span"),re=I(ne),Be=L(),ye=v("div"),pe=v("span"),be=I(J),_e=L(),le=v("span"),Ne=I(fe),Ie=L(),ae=v("div"),Pe.c(),Ue=L(),ue&&ue.c(),Te=L(),se&&se.c(),this.h()},l($){l=_($,"DIV",{class:!0});var G=m(l);t=_(G,"SPAN",{class:!0});var Ce=m(t);i=B(Ce,s),Ce.forEach(c),n=U(G),a=_(G,"DIV",{class:!0});var Re=m(a);o=_(Re,"BUTTON",{class:!0});var Ke=m(o);y=B(Ke,p),Ke.forEach(c),w=U(Re),ve&&ve.l(Re),Re.forEach(c),G.forEach(c),A=U($),g=_($,"DIV",{class:!0});var Oe=m(g);b=_(Oe,"DIV",{class:!0});var xe=m(b);k=_(xe,"SPAN",{class:!0});var il=m(k);S=B(il,R),il.forEach(c),E=U(xe),h=_(xe,"SPAN",{class:!0});var nl=m(h);N=B(nl,d),nl.forEach(c),xe.forEach(c),q=U(Oe),V=_(Oe,"SPAN",{class:!0,"data-svelte-h":!0}),sl(V)!=="svelte-ums4yv"&&(V.textContent=T),W=U(Oe),K=_(Oe,"DIV",{class:!0});var Je=m(K);x=_(Je,"SPAN",{class:!0});var tl=m(x);X=B(tl,F),tl.forEach(c),ie=U(Je),M=_(Je,"SPAN",{class:!0});var Fe=m(M);Z=B(Fe,z),Fe.forEach(c),Je.forEach(c),Oe.forEach(c),ee=U($),Q=_($,"DIV",{class:!0});var Xe=m(Q);C=_(Xe,"DIV",{class:!0});var el=m(C);H=_(el,"SPAN",{class:!0});var al=m(H);ke=B(al,me),al.forEach(c),te=U(el),ge=_(el,"SPAN",{class:!0});var rl=m(ge);re=B(rl,ne),rl.forEach(c),el.forEach(c),Be=U(Xe),ye=_(Xe,"DIV",{class:!0});var Ze=m(ye);pe=_(Ze,"SPAN",{class:!0});var cl=m(pe);be=B(cl,J),cl.forEach(c),_e=U(Ze),le=_(Ze,"SPAN",{class:!0});var ol=m(le);Ne=B(ol,fe),ol.forEach(c),Ze.forEach(c),Xe.forEach(c),Ie=U($),ae=_($,"DIV",{class:!0});var Qe=m(ae);Pe.l(Qe),Ue=U(Qe),ue&&ue.l(Qe),Te=U(Qe),se&&se.l(Qe),Qe.forEach(c),this.h()},h(){u(t,"class","model-name mono svelte-yt12fh"),u(o,"class","btn-sm svelte-yt12fh"),u(a,"class","card-btns svelte-yt12fh"),u(l,"class","card-head svelte-yt12fh"),u(k,"class","price-label svelte-yt12fh"),u(h,"class","price-val svelte-yt12fh"),u(b,"class","price-block primary svelte-yt12fh"),u(V,"class","slash svelte-yt12fh"),u(x,"class","price-label svelte-yt12fh"),u(M,"class","price-val svelte-yt12fh"),u(K,"class","price-block primary svelte-yt12fh"),u(g,"class","price-row svelte-yt12fh"),u(H,"class","price-label svelte-yt12fh"),u(ge,"class","price-val sm svelte-yt12fh"),u(C,"class","price-block svelte-yt12fh"),u(pe,"class","price-label svelte-yt12fh"),u(le,"class","price-val sm svelte-yt12fh"),u(ye,"class","price-block svelte-yt12fh"),u(Q,"class","price-row secondary svelte-yt12fh"),u(ae,"class","card-footer svelte-yt12fh")},m($,G){Y($,l,G),r(l,t),r(t,i),r(l,n),r(l,a),r(a,o),r(o,y),r(a,w),ve&&ve.m(a,null),Y($,A,G),Y($,g,G),r(g,b),r(b,k),r(k,S),r(b,E),r(b,h),r(h,N),r(g,q),r(g,V),r(g,W),r(g,K),r(K,x),r(x,X),r(K,ie),r(K,M),r(M,Z),Y($,ee,G),Y($,Q,G),r(Q,C),r(C,H),r(H,ke),r(C,te),r(C,ge),r(ge,re),r(Q,Be),r(Q,ye),r(ye,pe),r(pe,be),r(ye,_e),r(ye,le),r(le,Ne),Y($,Ie,G),Y($,ae,G),Pe.m(ae,null),r(ae,Ue),ue&&ue.m(ae,null),r(ae,Te),se&&se.m(ae,null),Ae||(We=oe(o,"click",Ye),Ae=!0)},p($,G){var Ce,Re;e=$,G[0]&33554432&&s!==(s=e[101].model+"")&&O(i,s),G[0]&128&&p!==(p=e[7]("pricing.edit")+"")&&O(y,p),e[101].isOverride?ve?ve.p(e,G):(ve=Yl(e),ve.c(),ve.m(a,null)):ve&&(ve.d(1),ve=null),G[0]&128&&R!==(R=e[7]("pricing.input")+"")&&O(S,R),G[0]&33556480&&d!==(d=(e[101].price?e[32](e[101].price.input,e[101].currency,e[11]):"-")+"")&&O(N,d),G[0]&128&&F!==(F=e[7]("pricing.output")+"")&&O(X,F),G[0]&33556480&&z!==(z=(e[101].price?e[32](e[101].price.output,e[101].currency,e[11]):"-")+"")&&O(Z,z),G[0]&128&&me!==(me=e[7]("pricing.cacheRead")+"")&&O(ke,me),G[0]&33556480&&ne!==(ne=(((Ce=e[101].price)==null?void 0:Ce.cacheRead)!=null?e[32](e[101].price.cacheRead,e[101].currency,e[11]):"-")+"")&&O(re,ne),G[0]&128&&J!==(J=e[7]("pricing.cacheWrite")+"")&&O(be,J),G[0]&33556480&&fe!==(fe=(((Re=e[101].price)==null?void 0:Re.cacheWrite)!=null?e[32](e[101].price.cacheWrite,e[101].currency,e[11]):"-")+"")&&O(Ne,fe),j===(j=de(e))&&Pe?Pe.p(e,G):(Pe.d(1),Pe=j(e),Pe&&(Pe.c(),Pe.m(ae,Ue))),e[101].currency==="CNY"?ue||(ue=Kl(),ue.c(),ue.m(ae,Te)):ue&&(ue.d(1),ue=null),G[0]&33554432&&(we=dl(e[101])),we?se?se.p(e,G):(se=Fl(e),se.c(),se.m(ae,null)):se&&(se.d(1),se=null)},d($){$&&(c(l),c(A),c(g),c(ee),c(Q),c(Ie),c(ae)),ve&&ve.d(),Pe.d(),ue&&ue.d(),se&&se.d(),Ae=!1,We()}}}function Rt(e){let l,t,s=e[101].model+"",i,n,a,o,p,y=Me(e[9])+"",w,A,g,b,k,R=e[7]("pricing.input")+"",S,E,h=Me(e[9])+"",d,N,q,V,T,W=e[7]("pricing.output")+"",K,x,F=Me(e[9])+"",X,ie,M,z,Z,ee=e[7]("pricing.cacheRead")+"",Q,C,H=Me(e[9])+"",me,ke,te,ge,ne,re=e[7]("pricing.cacheWrite")+"",Be,ye,pe=Me(e[9])+"",J,be,_e,le,fe,Ne,Ie=e[7]("pricing.save")+"",ae,Ue,Te,we=e[7]("pricing.cancel")+"",Ae,We,Ye;function ve(){return e[71](e[101])}return{c(){l=v("div"),t=v("span"),i=I(s),n=L(),a=v("span"),o=I(e[9]),p=I(" ("),w=I(y),A=I(")"),g=L(),b=v("div"),k=v("label"),S=I(R),E=I(" ("),d=I(h),N=I(`/1M)
1
+ import{s as ot,n as pl,r as vl,c as hl,e as ut,o as ft}from"../chunks/scheduler.DsWd5xup.js";import{S as dt,i as ht,d as c,s as O,z as he,a as Y,b as r,w as oe,o as u,p as pt,g as U,c as _,e as m,f as B,C as sl,r as je,j as L,h as v,t as I,D as He,x as _l,A as Le,v as zl,E as _t}from"../chunks/index.BfJlbjrK.js";import{k as vt,m as ml,n as mt,o as gt,p as bt,q as yt,t as Et,v as kt,e as Ge,h as jl,i as Gl}from"../chunks/api.DVLAklIn.js";import{t as Pt}from"../chunks/i18n.DApJIXOT.js";import{r as Se,e as St,g as Nt}from"../chunks/stores.C6g63Ng7.js";function gl(e,l,t){const s=e.slice();s[101]=l[t],s[104]=t;const i=s[8]===s[101].model;return s[102]=i,s}function bl(e,l,t){const s=e.slice();s[105]=l[t];const i=s[105].model;s[106]=i;const n=s[13][s[106]];s[107]=n;const a=s[14][s[106]]??s[46](s[106]);s[108]=a;const o=s[45](s[107],s[108]);s[109]=o;const p=fl(s[109],s[105]);return s[110]=p,s}function yl(e,l,t){const s=e.slice();return s[113]=l[t],s}function El(e,l,t){const s=e.slice();s[105]=l[t];const i=s[105].model;s[106]=i;const n=s[14][s[106]]??s[46](s[106]);return s[108]=n,s}function kl(e){let l,t;return{c(){l=v("div"),t=I(e[29]),this.h()},l(s){l=_(s,"DIV",{class:!0});var i=m(l);t=B(i,e[29]),i.forEach(c),this.h()},h(){u(l,"class","sync-summary mono svelte-yt12fh")},m(s,i){Y(s,l,i),r(l,t)},p(s,i){i[0]&536870912&&O(t,s[29])},d(s){s&&c(l)}}}function Pl(e){let l,t,s,i,n,a,o,p,y,w,A,g,b,k=e[19]&&Sl(e),R=!e[22]&&(e[4]==="needed"||e[4]==="error")&&Nl(e),S=!e[22]&&Tl(e),E=e[22]&&Al(e);return{c(){l=v("div"),t=v("div"),s=v("div"),i=v("span"),n=L(),a=v("div"),o=v("span"),p=I(e[20]),y=L(),k&&k.c(),w=L(),A=v("div"),R&&R.c(),g=L(),S&&S.c(),b=L(),E&&E.c(),this.h()},l(h){l=_(h,"DIV",{class:!0});var d=m(l);t=_(d,"DIV",{class:!0});var N=m(t);s=_(N,"DIV",{class:!0});var q=m(s);i=_(q,"SPAN",{class:!0,"aria-hidden":!0}),m(i).forEach(c),n=U(q),a=_(q,"DIV",{class:!0});var V=m(a);o=_(V,"SPAN",{class:!0});var T=m(o);p=B(T,e[20]),T.forEach(c),y=U(V),k&&k.l(V),V.forEach(c),q.forEach(c),w=U(N),A=_(N,"DIV",{class:!0});var W=m(A);R&&R.l(W),g=U(W),S&&S.l(W),W.forEach(c),N.forEach(c),b=U(d),E&&E.l(d),d.forEach(c),this.h()},h(){u(i,"class","recalc-dot svelte-yt12fh"),u(i,"aria-hidden","true"),u(o,"class","recalc-label mono svelte-yt12fh"),u(a,"class","recalc-copy svelte-yt12fh"),u(s,"class","recalc-status svelte-yt12fh"),u(A,"class","recalc-actions svelte-yt12fh"),u(t,"class","recalc-head svelte-yt12fh"),u(l,"class","recalc-panel svelte-yt12fh"),he(l,"active",e[22]),he(l,"done",e[4]==="done"),he(l,"error",e[4]==="error")},m(h,d){Y(h,l,d),r(l,t),r(t,s),r(s,i),r(s,n),r(s,a),r(a,o),r(o,p),r(a,y),k&&k.m(a,null),r(t,w),r(t,A),R&&R.m(A,null),r(A,g),S&&S.m(A,null),r(l,b),E&&E.m(l,null)},p(h,d){d[0]&1048576&&O(p,h[20]),h[19]?k?k.p(h,d):(k=Sl(h),k.c(),k.m(a,null)):k&&(k.d(1),k=null),!h[22]&&(h[4]==="needed"||h[4]==="error")?R?R.p(h,d):(R=Nl(h),R.c(),R.m(A,g)):R&&(R.d(1),R=null),h[22]?S&&(S.d(1),S=null):S?S.p(h,d):(S=Tl(h),S.c(),S.m(A,null)),h[22]?E?E.p(h,d):(E=Al(h),E.c(),E.m(l,null)):E&&(E.d(1),E=null),d[0]&4194304&&he(l,"active",h[22]),d[0]&16&&he(l,"done",h[4]==="done"),d[0]&16&&he(l,"error",h[4]==="error")},d(h){h&&c(l),k&&k.d(),R&&R.d(),S&&S.d(),E&&E.d()}}}function Sl(e){let l,t;return{c(){l=v("span"),t=I(e[19]),this.h()},l(s){l=_(s,"SPAN",{class:!0});var i=m(l);t=B(i,e[19]),i.forEach(c),this.h()},h(){u(l,"class","recalc-summary svelte-yt12fh")},m(s,i){Y(s,l,i),r(l,t)},p(s,i){i[0]&524288&&O(t,s[19])},d(s){s&&c(l)}}}function Nl(e){let l,t=e[7]("pricing.recalcNow")+"",s,i,n;return{c(){l=v("button"),s=I(t),this.h()},l(a){l=_(a,"BUTTON",{class:!0,type:!0});var o=m(l);s=B(o,t),o.forEach(c),this.h()},h(){u(l,"class","btn-sm primary svelte-yt12fh"),u(l,"type","button"),l.disabled=e[6]},m(a,o){Y(a,l,o),r(l,s),i||(n=oe(l,"click",e[34]),i=!0)},p(a,o){o[0]&128&&t!==(t=a[7]("pricing.recalcNow")+"")&&O(s,t),o[0]&64&&(l.disabled=a[6])},d(a){a&&c(l),i=!1,n()}}}function Tl(e){let l,t="×",s,i;return{c(){l=v("button"),l.textContent=t,this.h()},l(n){l=_(n,"BUTTON",{class:!0,type:!0,"aria-label":!0,"data-svelte-h":!0}),sl(l)!=="svelte-8p94wv"&&(l.textContent=t),this.h()},h(){u(l,"class","recalc-close svelte-yt12fh"),u(l,"type","button"),u(l,"aria-label","Close")},m(n,a){Y(n,l,a),s||(i=oe(l,"click",e[33]),s=!0)},p:pl,d(n){n&&c(l),s=!1,i()}}}function Al(e){let l,t;return{c(){l=v("div"),t=v("span"),this.h()},l(s){l=_(s,"DIV",{class:!0,"aria-hidden":!0});var i=m(l);t=_(i,"SPAN",{class:!0,style:!0}),m(t).forEach(c),i.forEach(c),this.h()},h(){u(t,"class","recalc-bar svelte-yt12fh"),_l(t,"width",Math.max(4,e[23])+"%"),u(l,"class","recalc-track svelte-yt12fh"),u(l,"aria-hidden","true")},m(s,i){Y(s,l,i),r(l,t)},p(s,i){i[0]&8388608&&_l(t,"width",Math.max(4,s[23])+"%")},d(s){s&&c(l)}}}function Tt(e){let l,t,s,i,n=e[7]("pricing.modelSearch")+"",a,o,p,y,w,A,g,b=e[7]("pricing.modelSearchCount").replace("{shown}",e[25].length).replace("{total}",e[0].length)+"",k,R,S,E,h,d=e[24]&&Bl(e);function N(T,W){return T[25].length===0?Dt:wt}let q=N(e),V=q(e);return{c(){d&&d.c(),l=L(),t=v("div"),s=v("label"),i=v("span"),a=I(n),o=L(),p=v("input"),A=L(),g=v("span"),k=I(b),R=L(),V.c(),S=je(),this.h()},l(T){d&&d.l(T),l=U(T),t=_(T,"DIV",{class:!0});var W=m(t);s=_(W,"LABEL",{class:!0});var K=m(s);i=_(K,"SPAN",{});var x=m(i);a=B(x,n),x.forEach(c),o=U(K),p=_(K,"INPUT",{class:!0,type:!0,placeholder:!0,"aria-label":!0}),K.forEach(c),A=U(W),g=_(W,"SPAN",{class:!0});var F=m(g);k=B(F,b),F.forEach(c),W.forEach(c),R=U(T),V.l(T),S=je(),this.h()},h(){u(p,"class","model-filter-input svelte-yt12fh"),u(p,"type","search"),u(p,"placeholder",y=e[7]("pricing.modelSearchPlaceholder")),u(p,"aria-label",w=e[7]("pricing.modelSearch")),u(s,"class","model-filter svelte-yt12fh"),u(g,"class","pricing-count mono svelte-yt12fh"),u(t,"class","pricing-toolbar svelte-yt12fh")},m(T,W){d&&d.m(T,W),Y(T,l,W),Y(T,t,W),r(t,s),r(s,i),r(i,a),r(s,o),r(s,p),Le(p,e[3]),r(t,A),r(t,g),r(g,k),Y(T,R,W),V.m(T,W),Y(T,S,W),E||(h=oe(p,"input",e[66]),E=!0)},p(T,W){T[24]?d?d.p(T,W):(d=Bl(T),d.c(),d.m(l.parentNode,l)):d&&(d.d(1),d=null),W[0]&128&&n!==(n=T[7]("pricing.modelSearch")+"")&&O(a,n),W[0]&128&&y!==(y=T[7]("pricing.modelSearchPlaceholder"))&&u(p,"placeholder",y),W[0]&128&&w!==(w=T[7]("pricing.modelSearch"))&&u(p,"aria-label",w),W[0]&8&&p.value!==T[3]&&Le(p,T[3]),W[0]&33554561&&b!==(b=T[7]("pricing.modelSearchCount").replace("{shown}",T[25].length).replace("{total}",T[0].length)+"")&&O(k,b),q===(q=N(T))&&V?V.p(T,W):(V.d(1),V=q(T),V&&(V.c(),V.m(S.parentNode,S)))},d(T){T&&(c(l),c(t),c(R),c(S)),d&&d.d(T),V.d(T),E=!1,h()}}}function At(e){let l,t,s,i=e[7]("pricing.emptyTitle")+"",n,a,o,p=e[7]("pricing.emptyBody")+"",y,w,A,g=(e[12]?e[7]("pricing.syncingPrices"):e[7]("pricing.emptySync"))+"",b,k,R;return{c(){l=v("section"),t=v("div"),s=v("h2"),n=I(i),a=L(),o=v("p"),y=I(p),w=L(),A=v("button"),b=I(g),this.h()},l(S){l=_(S,"SECTION",{class:!0});var E=m(l);t=_(E,"DIV",{class:!0});var h=m(t);s=_(h,"H2",{class:!0});var d=m(s);n=B(d,i),d.forEach(c),a=U(h),o=_(h,"P",{class:!0});var N=m(o);y=B(N,p),N.forEach(c),h.forEach(c),w=U(E),A=_(E,"BUTTON",{class:!0});var q=m(A);b=B(q,g),q.forEach(c),E.forEach(c),this.h()},h(){u(s,"class","svelte-yt12fh"),u(o,"class","svelte-yt12fh"),u(t,"class","empty-copy svelte-yt12fh"),u(A,"class","btn-sm primary svelte-yt12fh"),A.disabled=e[12],u(l,"class","empty-pricing svelte-yt12fh")},m(S,E){Y(S,l,E),r(l,t),r(t,s),r(s,n),r(t,a),r(t,o),r(o,y),r(l,w),r(l,A),r(A,b),k||(R=oe(A,"click",e[37]),k=!0)},p(S,E){E[0]&128&&i!==(i=S[7]("pricing.emptyTitle")+"")&&O(n,i),E[0]&128&&p!==(p=S[7]("pricing.emptyBody")+"")&&O(y,p),E[0]&4224&&g!==(g=(S[12]?S[7]("pricing.syncingPrices"):S[7]("pricing.emptySync"))+"")&&O(b,g),E[0]&4096&&(A.disabled=S[12])},d(S){S&&c(l),k=!1,R()}}}function Bt(e){let l,t;return{c(){l=v("div"),t=I(e[2]),this.h()},l(s){l=_(s,"DIV",{class:!0});var i=m(l);t=B(i,e[2]),i.forEach(c),this.h()},h(){u(l,"class","state-msg error svelte-yt12fh")},m(s,i){Y(s,l,i),r(l,t)},p(s,i){i[0]&4&&O(t,s[2])},d(s){s&&c(l)}}}function It(e){let l,t=e[7]("common.loading")+"",s;return{c(){l=v("div"),s=I(t),this.h()},l(i){l=_(i,"DIV",{class:!0});var n=m(l);s=B(n,t),n.forEach(c),this.h()},h(){u(l,"class","state-msg svelte-yt12fh")},m(i,n){Y(i,l,n),r(l,s)},p(i,n){n[0]&128&&t!==(t=i[7]("common.loading")+"")&&O(s,t)},d(i){i&&c(l)}}}function Bl(e){let l,t,s,i,n=e[7]("pricing.bindingsTitle")+"",a,o,p,y=e[7]("pricing.bindingsBody").replace("{count}",e[5].length).replace("{unresolved}",e[28].length)+"",w,A,g,b=(e[15]?e[7]("pricing.collapseUnresolved"):e[7]("pricing.expandUnresolved"))+"",k,R,S,E,h=e[15]&&Il(e);return{c(){l=v("section"),t=v("div"),s=v("div"),i=v("h2"),a=I(n),o=L(),p=v("p"),w=I(y),A=L(),g=v("button"),k=I(b),R=L(),h&&h.c(),this.h()},l(d){l=_(d,"SECTION",{class:!0});var N=m(l);t=_(N,"DIV",{class:!0});var q=m(t);s=_(q,"DIV",{});var V=m(s);i=_(V,"H2",{class:!0});var T=m(i);a=B(T,n),T.forEach(c),o=U(V),p=_(V,"P",{class:!0});var W=m(p);w=B(W,y),W.forEach(c),V.forEach(c),A=U(q),g=_(q,"BUTTON",{class:!0,type:!0,"aria-expanded":!0});var K=m(g);k=B(K,b),K.forEach(c),q.forEach(c),R=U(N),h&&h.l(N),N.forEach(c),this.h()},h(){u(i,"class","svelte-yt12fh"),u(p,"class","svelte-yt12fh"),u(g,"class","btn-sm alias-toggle svelte-yt12fh"),u(g,"type","button"),u(g,"aria-expanded",e[15]),u(t,"class","alias-head svelte-yt12fh"),u(l,"class","alias-panel svelte-yt12fh")},m(d,N){Y(d,l,N),r(l,t),r(t,s),r(s,i),r(i,a),r(s,o),r(s,p),r(p,w),r(t,A),r(t,g),r(g,k),r(l,R),h&&h.m(l,null),S||(E=oe(g,"click",e[41]),S=!0)},p(d,N){N[0]&128&&n!==(n=d[7]("pricing.bindingsTitle")+"")&&O(a,n),N[0]&268435616&&y!==(y=d[7]("pricing.bindingsBody").replace("{count}",d[5].length).replace("{unresolved}",d[28].length)+"")&&O(w,y),N[0]&32896&&b!==(b=(d[15]?d[7]("pricing.collapseUnresolved"):d[7]("pricing.expandUnresolved"))+"")&&O(k,b),N[0]&32768&&u(g,"aria-expanded",d[15]),d[15]?h?h.p(d,N):(h=Il(d),h.c(),h.m(l,null)):h&&(h.d(1),h=null)},d(d){d&&c(l),h&&h.d(),S=!1,E()}}}function Il(e){let l,t,s=e[27].length&&wl(e),i=e[26].length&&Rl(e);return{c(){l=v("div"),s&&s.c(),t=L(),i&&i.c(),this.h()},l(n){l=_(n,"DIV",{class:!0});var a=m(l);s&&s.l(a),t=U(a),i&&i.l(a),a.forEach(c),this.h()},h(){u(l,"class","alias-list svelte-yt12fh")},m(n,a){Y(n,l,a),s&&s.m(l,null),r(l,t),i&&i.m(l,null)},p(n,a){n[27].length?s?s.p(n,a):(s=wl(n),s.c(),s.m(l,t)):s&&(s.d(1),s=null),n[26].length?i?i.p(n,a):(i=Rl(n),i.c(),i.m(l,null)):i&&(i.d(1),i=null)},d(n){n&&c(l),s&&s.d(),i&&i.d()}}}function wl(e){let l,t,s,i,n=e[16]?"−":"+",a,o,p,y=e[7]("pricing.autoBindingsTitle")+"",w,A,g,b=e[27].length+"",k,R,S,E,h=e[16]&&Dl(e);return{c(){l=v("div"),t=v("div"),s=v("button"),i=v("span"),a=I(n),o=L(),p=v("h3"),w=I(y),A=L(),g=v("span"),k=I(b),R=L(),h&&h.c(),this.h()},l(d){l=_(d,"DIV",{class:!0});var N=m(l);t=_(N,"DIV",{class:!0});var q=m(t);s=_(q,"BUTTON",{class:!0,type:!0,"aria-expanded":!0});var V=m(s);i=_(V,"SPAN",{"aria-hidden":!0,class:!0});var T=m(i);a=B(T,n),T.forEach(c),o=U(V),p=_(V,"H3",{class:!0});var W=m(p);w=B(W,y),W.forEach(c),V.forEach(c),A=U(q),g=_(q,"SPAN",{class:!0});var K=m(g);k=B(K,b),K.forEach(c),q.forEach(c),R=U(N),h&&h.l(N),N.forEach(c),this.h()},h(){u(i,"aria-hidden","true"),u(i,"class","svelte-yt12fh"),u(p,"class","svelte-yt12fh"),u(s,"class","section-toggle svelte-yt12fh"),u(s,"type","button"),u(s,"aria-expanded",e[16]),u(g,"class","mono svelte-yt12fh"),u(t,"class","alias-section-head svelte-yt12fh"),u(l,"class","alias-section svelte-yt12fh")},m(d,N){Y(d,l,N),r(l,t),r(t,s),r(s,i),r(i,a),r(s,o),r(s,p),r(p,w),r(t,A),r(t,g),r(g,k),r(l,R),h&&h.m(l,null),S||(E=oe(s,"click",e[42]),S=!0)},p(d,N){N[0]&65536&&n!==(n=d[16]?"−":"+")&&O(a,n),N[0]&128&&y!==(y=d[7]("pricing.autoBindingsTitle")+"")&&O(w,y),N[0]&65536&&u(s,"aria-expanded",d[16]),N[0]&134217728&&b!==(b=d[27].length+"")&&O(k,b),d[16]?h?h.p(d,N):(h=Dl(d),h.c(),h.m(l,null)):h&&(h.d(1),h=null)},d(d){d&&c(l),h&&h.d(),S=!1,E()}}}function Dl(e){let l=[],t=new Map,s,i=Ge(e[27]);const n=a=>a[105].model;for(let a=0;a<i.length;a+=1){let o=El(e,i,a),p=n(o);t.set(p,l[a]=Cl(p,o))}return{c(){for(let a=0;a<l.length;a+=1)l[a].c();s=je()},l(a){for(let o=0;o<l.length;o+=1)l[o].l(a);s=je()},m(a,o){for(let p=0;p<l.length;p+=1)l[p]&&l[p].m(a,o);Y(a,s,o)},p(a,o){o[0]&134234240|o[1]&98304&&(i=Ge(a[27]),l=jl(l,o,n,1,a,i,t,s.parentNode,Gl,Cl,s,El))},d(a){a&&c(s);for(let o=0;o<l.length;o+=1)l[o].d(a)}}}function Cl(e,l){let t,s,i,n=l[106]+"",a,o,p,y=l[47](l[105])+"",w,A,g,b,k,R,S,E;return{key:e,first:null,c(){t=v("div"),s=v("div"),i=v("span"),a=I(n),o=L(),p=v("span"),w=I(y),A=L(),g=v("div"),b=v("input"),E=L(),this.h()},l(h){t=_(h,"DIV",{class:!0});var d=m(t);s=_(d,"DIV",{class:!0});var N=m(s);i=_(N,"SPAN",{class:!0});var q=m(i);a=B(q,n),q.forEach(c),o=U(N),p=_(N,"SPAN",{class:!0});var V=m(p);w=B(V,y),V.forEach(c),N.forEach(c),A=U(d),g=_(d,"DIV",{class:!0});var T=m(g);b=_(T,"INPUT",{class:!0,placeholder:!0,"aria-label":!0}),T.forEach(c),E=U(d),d.forEach(c),this.h()},h(){u(i,"class","alias-model mono svelte-yt12fh"),u(p,"class","alias-state svelte-yt12fh"),u(s,"class","alias-meta svelte-yt12fh"),u(b,"class","alias-search svelte-yt12fh"),b.value=k=l[108],u(b,"placeholder",R=l[7]("pricing.aliasSearch")),u(b,"aria-label",S=l[7]("pricing.aliasTarget")),b.disabled=!0,u(g,"class","alias-combobox svelte-yt12fh"),u(t,"class","alias-row auto svelte-yt12fh"),this.first=t},m(h,d){Y(h,t,d),r(t,s),r(s,i),r(i,a),r(s,o),r(s,p),r(p,w),r(t,A),r(t,g),r(g,b),r(t,E)},p(h,d){l=h,d[0]&134217728&&n!==(n=l[106]+"")&&O(a,n),d[0]&134217728&&y!==(y=l[47](l[105])+"")&&O(w,y),d[0]&134234112&&k!==(k=l[108])&&b.value!==k&&(b.value=k),d[0]&128&&R!==(R=l[7]("pricing.aliasSearch"))&&u(b,"placeholder",R),d[0]&128&&S!==(S=l[7]("pricing.aliasTarget"))&&u(b,"aria-label",S)},d(h){h&&c(t)}}}function Rl(e){let l,t,s,i,n=e[17]?"−":"+",a,o,p,y=e[7]("pricing.manualBindingsTitle")+"",w,A,g,b=e[26].length+"",k,R,S,E,h=e[17]&&Vl(e);return{c(){l=v("div"),t=v("div"),s=v("button"),i=v("span"),a=I(n),o=L(),p=v("h3"),w=I(y),A=L(),g=v("span"),k=I(b),R=L(),h&&h.c(),this.h()},l(d){l=_(d,"DIV",{class:!0});var N=m(l);t=_(N,"DIV",{class:!0});var q=m(t);s=_(q,"BUTTON",{class:!0,type:!0,"aria-expanded":!0});var V=m(s);i=_(V,"SPAN",{"aria-hidden":!0,class:!0});var T=m(i);a=B(T,n),T.forEach(c),o=U(V),p=_(V,"H3",{class:!0});var W=m(p);w=B(W,y),W.forEach(c),V.forEach(c),A=U(q),g=_(q,"SPAN",{class:!0});var K=m(g);k=B(K,b),K.forEach(c),q.forEach(c),R=U(N),h&&h.l(N),N.forEach(c),this.h()},h(){u(i,"aria-hidden","true"),u(i,"class","svelte-yt12fh"),u(p,"class","svelte-yt12fh"),u(s,"class","section-toggle svelte-yt12fh"),u(s,"type","button"),u(s,"aria-expanded",e[17]),u(g,"class","mono svelte-yt12fh"),u(t,"class","alias-section-head svelte-yt12fh"),u(l,"class","alias-section svelte-yt12fh")},m(d,N){Y(d,l,N),r(l,t),r(t,s),r(s,i),r(i,a),r(s,o),r(s,p),r(p,w),r(t,A),r(t,g),r(g,k),r(l,R),h&&h.m(l,null),S||(E=oe(s,"click",e[43]),S=!0)},p(d,N){N[0]&131072&&n!==(n=d[17]?"−":"+")&&O(a,n),N[0]&128&&y!==(y=d[7]("pricing.manualBindingsTitle")+"")&&O(w,y),N[0]&131072&&u(s,"aria-expanded",d[17]),N[0]&67108864&&b!==(b=d[26].length+"")&&O(k,b),d[17]?h?h.p(d,N):(h=Vl(d),h.c(),h.m(l,null)):h&&(h.d(1),h=null)},d(d){d&&c(l),h&&h.d(),S=!1,E()}}}function Vl(e){let l=[],t=new Map,s,i=Ge(e[26]);const n=a=>a[105].model;for(let a=0;a<i.length;a+=1){let o=bl(e,i,a),p=n(o);t.set(p,l[a]=Wl(p,o))}return{c(){for(let a=0;a<l.length;a+=1)l[a].c();s=je()},l(a){for(let o=0;o<l.length;o+=1)l[o].l(a);s=je()},m(a,o){for(let p=0;p<l.length;p+=1)l[p]&&l[p].m(a,o);Y(a,s,o)},p(a,o){o[0]&67395712|o[1]&1041280&&(i=Ge(a[26]),l=jl(l,o,n,1,a,i,t,s.parentNode,Gl,Wl,s,bl))},d(a){a&&c(s);for(let o=0;o<l.length;o+=1)l[o].d(a)}}}function Ml(e){let l,t=Ge(e[38](e[14][e[106]]??"")),s=[];for(let n=0;n<t.length;n+=1)s[n]=Ol(yl(e,t,n));let i=null;return t.length||(i=Ul(e)),{c(){l=v("div");for(let n=0;n<s.length;n+=1)s[n].c();i&&i.c(),this.h()},l(n){l=_(n,"DIV",{class:!0,role:!0});var a=m(l);for(let o=0;o<s.length;o+=1)s[o].l(a);i&&i.l(a),a.forEach(c),this.h()},h(){u(l,"class","alias-options svelte-yt12fh"),u(l,"role","listbox")},m(n,a){Y(n,l,a);for(let o=0;o<s.length;o+=1)s[o]&&s[o].m(l,null);i&&i.m(l,null)},p(n,a){if(a[0]&67125376|a[1]&8320){t=Ge(n[38](n[14][n[106]]??""));let o;for(o=0;o<t.length;o+=1){const p=yl(n,t,o);s[o]?s[o].p(p,a):(s[o]=Ol(p),s[o].c(),s[o].m(l,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=t.length,!t.length&&i?i.p(n,a):t.length?i&&(i.d(1),i=null):(i=Ul(n),i.c(),i.m(l,null))}},d(n){n&&c(l),zl(s,n),i&&i.d()}}}function Ul(e){let l,t=e[7]("pricing.aliasNoResults")+"",s;return{c(){l=v("span"),s=I(t),this.h()},l(i){l=_(i,"SPAN",{class:!0});var n=m(l);s=B(n,t),n.forEach(c),this.h()},h(){u(l,"class","alias-empty svelte-yt12fh")},m(i,n){Y(i,l,n),r(l,s)},p(i,n){n[0]&128&&t!==(t=i[7]("pricing.aliasNoResults")+"")&&O(s,t)},d(i){i&&c(l)}}}function Ll(e){let l,t=e[113].provider+"",s;return{c(){l=v("span"),s=I(t),this.h()},l(i){l=_(i,"SPAN",{class:!0});var n=m(l);s=B(n,t),n.forEach(c),this.h()},h(){u(l,"class","alias-option-provider svelte-yt12fh")},m(i,n){Y(i,l,n),r(l,s)},p(i,n){n[0]&67125248&&t!==(t=i[113].provider+"")&&O(s,t)},d(i){i&&c(l)}}}function Ol(e){let l,t,s=e[113].model+"",i,n,a,o,p,y=e[113].provider&&Ll(e);function w(){return e[64](e[106],e[113])}return{c(){l=v("button"),t=v("span"),i=I(s),n=L(),y&&y.c(),a=L(),this.h()},l(A){l=_(A,"BUTTON",{type:!0,class:!0});var g=m(l);t=_(g,"SPAN",{class:!0});var b=m(t);i=B(b,s),b.forEach(c),n=U(g),y&&y.l(g),a=U(g),g.forEach(c),this.h()},h(){u(t,"class","alias-option-model mono svelte-yt12fh"),u(l,"type","button"),u(l,"class","alias-option svelte-yt12fh")},m(A,g){Y(A,l,g),r(l,t),r(t,i),r(l,n),y&&y.m(l,null),r(l,a),o||(p=oe(l,"mousedown",_t(w)),o=!0)},p(A,g){e=A,g[0]&67125248&&s!==(s=e[113].model+"")&&O(i,s),e[113].provider?y?y.p(e,g):(y=Ll(e),y.c(),y.m(l,a)):y&&(y.d(1),y=null)},d(A){A&&c(l),y&&y.d(),o=!1,p()}}}function ql(e){let l,t,s=e[49](e[106],e[105],e[109])+"",i,n,a,o;function p(){return e[65](e[106],e[105],e[109])}return{c(){l=v("div"),t=v("button"),i=I(s),this.h()},l(y){l=_(y,"DIV",{class:!0});var w=m(l);t=_(w,"BUTTON",{class:!0});var A=m(t);i=B(A,s),A.forEach(c),w.forEach(c),this.h()},h(){u(t,"class","btn-sm svelte-yt12fh"),t.disabled=n=e[48](e[106],e[105],e[109]),he(t,"save",!$e(e[105])||e[110]),he(t,"reset",$e(e[105])&&!e[110]),u(l,"class","alias-actions svelte-yt12fh")},m(y,w){Y(y,l,w),r(l,t),r(t,i),a||(o=oe(t,"click",p),a=!0)},p(y,w){e=y,w[0]&67133440&&s!==(s=e[49](e[106],e[105],e[109])+"")&&O(i,s),w[0]&67133440&&n!==(n=e[48](e[106],e[105],e[109]))&&(t.disabled=n),w[0]&67133440|w[1]&49152&&he(t,"save",!$e(e[105])||e[110]),w[0]&67133440|w[1]&49152&&he(t,"reset",$e(e[105])&&!e[110])},d(y){y&&c(l),a=!1,o()}}}function Wl(e,l){let t,s,i,n=l[106]+"",a,o,p,y=l[47](l[105])+"",w,A,g,b,k,R,S,E,h,d,N=ze(l[105]),q,V,T;function W(){return l[61](l[106])}function K(){return l[62](l[106])}function x(...ie){return l[63](l[106],...ie)}let F=l[18]===l[106]&&Ml(l),X=N&&ql(l);return{key:e,first:null,c(){t=v("div"),s=v("div"),i=v("span"),a=I(n),o=L(),p=v("span"),w=I(y),A=L(),g=v("div"),b=v("input"),h=L(),F&&F.c(),d=L(),X&&X.c(),q=L(),this.h()},l(ie){t=_(ie,"DIV",{class:!0});var M=m(t);s=_(M,"DIV",{class:!0});var z=m(s);i=_(z,"SPAN",{class:!0});var Z=m(i);a=B(Z,n),Z.forEach(c),o=U(z),p=_(z,"SPAN",{class:!0});var ee=m(p);w=B(ee,y),ee.forEach(c),z.forEach(c),A=U(M),g=_(M,"DIV",{class:!0});var Q=m(g);b=_(Q,"INPUT",{class:!0,placeholder:!0,"aria-label":!0}),h=U(Q),F&&F.l(Q),Q.forEach(c),d=U(M),X&&X.l(M),q=U(M),M.forEach(c),this.h()},h(){u(i,"class","alias-model mono svelte-yt12fh"),u(p,"class","alias-state svelte-yt12fh"),he(p,"unresolved",!l[105].hasPrice),u(s,"class","alias-meta svelte-yt12fh"),u(b,"class","alias-search svelte-yt12fh"),b.value=k=l[108],u(b,"placeholder",R=l[7]("pricing.aliasSearch")),u(b,"aria-label",S=l[7]("pricing.aliasTarget")),b.disabled=E=!ze(l[105]),u(g,"class","alias-combobox svelte-yt12fh"),u(t,"class","alias-row svelte-yt12fh"),this.first=t},m(ie,M){Y(ie,t,M),r(t,s),r(s,i),r(i,a),r(s,o),r(s,p),r(p,w),r(t,A),r(t,g),r(g,b),r(g,h),F&&F.m(g,null),r(t,d),X&&X.m(t,null),r(t,q),V||(T=[oe(b,"focus",W),oe(b,"blur",K),oe(b,"input",x)],V=!0)},p(ie,M){l=ie,M[0]&67108864&&n!==(n=l[106]+"")&&O(a,n),M[0]&67108864&&y!==(y=l[47](l[105])+"")&&O(w,y),M[0]&67108864&&he(p,"unresolved",!l[105].hasPrice),M[0]&67125248&&k!==(k=l[108])&&b.value!==k&&(b.value=k),M[0]&128&&R!==(R=l[7]("pricing.aliasSearch"))&&u(b,"placeholder",R),M[0]&128&&S!==(S=l[7]("pricing.aliasTarget"))&&u(b,"aria-label",S),M[0]&67108864&&E!==(E=!ze(l[105]))&&(b.disabled=E),l[18]===l[106]?F?F.p(l,M):(F=Ml(l),F.c(),F.m(g,null)):F&&(F.d(1),F=null),M[0]&67108864&&(N=ze(l[105])),N?X?X.p(l,M):(X=ql(l),X.c(),X.m(t,q)):X&&(X.d(1),X=null)},d(ie){ie&&c(t),F&&F.d(),X&&X.d(),V=!1,vl(T)}}}function wt(e){let l,t=Ge(e[25]),s=[];for(let i=0;i<t.length;i+=1)s[i]=Ql(gl(e,t,i));return{c(){l=v("div");for(let i=0;i<s.length;i+=1)s[i].c();this.h()},l(i){l=_(i,"DIV",{class:!0});var n=m(l);for(let a=0;a<s.length;a+=1)s[a].l(n);n.forEach(c),this.h()},h(){u(l,"class","grid svelte-yt12fh")},m(i,n){Y(i,l,n);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(l,null)},p(i,n){if(n[0]&1107300224|n[1]&51){t=Ge(i[25]);let a;for(a=0;a<t.length;a+=1){const o=gl(i,t,a);s[a]?s[a].p(o,n):(s[a]=Ql(o),s[a].c(),s[a].m(l,null))}for(;a<s.length;a+=1)s[a].d(1);s.length=t.length}},d(i){i&&c(l),zl(s,i)}}}function Dt(e){let l,t=e[7]("pricing.modelSearchEmpty")+"",s;return{c(){l=v("div"),s=I(t),this.h()},l(i){l=_(i,"DIV",{class:!0});var n=m(l);s=B(n,t),n.forEach(c),this.h()},h(){u(l,"class","state-msg svelte-yt12fh")},m(i,n){Y(i,l,n),r(l,s)},p(i,n){n[0]&128&&t!==(t=i[7]("pricing.modelSearchEmpty")+"")&&O(s,t)},d(i){i&&c(l)}}}function Ct(e){var De,Ve;let l,t,s=e[101].model+"",i,n,a,o,p=e[7]("pricing.edit")+"",y,w,A,g,b,k,R=e[7]("pricing.input")+"",S,E,h,d=(e[101].price?e[32](e[101].price.input,e[101].currency,e[11]):"-")+"",N,q,V,T="/",W,K,x,F=e[7]("pricing.output")+"",X,ie,M,z=(e[101].price?e[32](e[101].price.output,e[101].currency,e[11]):"-")+"",Z,ee,Q,C,H,me=e[7]("pricing.cacheRead")+"",ke,te,ge,ne=(((De=e[101].price)==null?void 0:De.cacheRead)!=null?e[32](e[101].price.cacheRead,e[101].currency,e[11]):"-")+"",re,Be,ye,pe,J=e[7]("pricing.cacheWrite")+"",be,_e,le,fe=(((Ve=e[101].price)==null?void 0:Ve.cacheWrite)!=null?e[32](e[101].price.cacheWrite,e[101].currency,e[11]):"-")+"",Ne,Ie,ae,Ue,Te,we=dl(e[101]),Ae,We;function Ye(){return e[72](e[101])}let ve=e[101].isOverride&&Yl(e);function de($,G){return $[101].isOverride?Lt:$[101].isBuiltin||$[101].isDefault?Ut:$[101].matchedBy?Mt:Vt}let j=de(e),Pe=j(e),ue=e[101].currency==="CNY"&&Kl(),se=we&&Fl(e);return{c(){l=v("div"),t=v("span"),i=I(s),n=L(),a=v("div"),o=v("button"),y=I(p),w=L(),ve&&ve.c(),A=L(),g=v("div"),b=v("div"),k=v("span"),S=I(R),E=L(),h=v("span"),N=I(d),q=L(),V=v("span"),V.textContent=T,W=L(),K=v("div"),x=v("span"),X=I(F),ie=L(),M=v("span"),Z=I(z),ee=L(),Q=v("div"),C=v("div"),H=v("span"),ke=I(me),te=L(),ge=v("span"),re=I(ne),Be=L(),ye=v("div"),pe=v("span"),be=I(J),_e=L(),le=v("span"),Ne=I(fe),Ie=L(),ae=v("div"),Pe.c(),Ue=L(),ue&&ue.c(),Te=L(),se&&se.c(),this.h()},l($){l=_($,"DIV",{class:!0});var G=m(l);t=_(G,"SPAN",{class:!0});var Ce=m(t);i=B(Ce,s),Ce.forEach(c),n=U(G),a=_(G,"DIV",{class:!0});var Re=m(a);o=_(Re,"BUTTON",{class:!0});var Ke=m(o);y=B(Ke,p),Ke.forEach(c),w=U(Re),ve&&ve.l(Re),Re.forEach(c),G.forEach(c),A=U($),g=_($,"DIV",{class:!0});var Oe=m(g);b=_(Oe,"DIV",{class:!0});var xe=m(b);k=_(xe,"SPAN",{class:!0});var il=m(k);S=B(il,R),il.forEach(c),E=U(xe),h=_(xe,"SPAN",{class:!0});var nl=m(h);N=B(nl,d),nl.forEach(c),xe.forEach(c),q=U(Oe),V=_(Oe,"SPAN",{class:!0,"data-svelte-h":!0}),sl(V)!=="svelte-ums4yv"&&(V.textContent=T),W=U(Oe),K=_(Oe,"DIV",{class:!0});var Je=m(K);x=_(Je,"SPAN",{class:!0});var tl=m(x);X=B(tl,F),tl.forEach(c),ie=U(Je),M=_(Je,"SPAN",{class:!0});var Fe=m(M);Z=B(Fe,z),Fe.forEach(c),Je.forEach(c),Oe.forEach(c),ee=U($),Q=_($,"DIV",{class:!0});var Xe=m(Q);C=_(Xe,"DIV",{class:!0});var el=m(C);H=_(el,"SPAN",{class:!0});var al=m(H);ke=B(al,me),al.forEach(c),te=U(el),ge=_(el,"SPAN",{class:!0});var rl=m(ge);re=B(rl,ne),rl.forEach(c),el.forEach(c),Be=U(Xe),ye=_(Xe,"DIV",{class:!0});var Ze=m(ye);pe=_(Ze,"SPAN",{class:!0});var cl=m(pe);be=B(cl,J),cl.forEach(c),_e=U(Ze),le=_(Ze,"SPAN",{class:!0});var ol=m(le);Ne=B(ol,fe),ol.forEach(c),Ze.forEach(c),Xe.forEach(c),Ie=U($),ae=_($,"DIV",{class:!0});var Qe=m(ae);Pe.l(Qe),Ue=U(Qe),ue&&ue.l(Qe),Te=U(Qe),se&&se.l(Qe),Qe.forEach(c),this.h()},h(){u(t,"class","model-name mono svelte-yt12fh"),u(o,"class","btn-sm svelte-yt12fh"),u(a,"class","card-btns svelte-yt12fh"),u(l,"class","card-head svelte-yt12fh"),u(k,"class","price-label svelte-yt12fh"),u(h,"class","price-val svelte-yt12fh"),u(b,"class","price-block primary svelte-yt12fh"),u(V,"class","slash svelte-yt12fh"),u(x,"class","price-label svelte-yt12fh"),u(M,"class","price-val svelte-yt12fh"),u(K,"class","price-block primary svelte-yt12fh"),u(g,"class","price-row svelte-yt12fh"),u(H,"class","price-label svelte-yt12fh"),u(ge,"class","price-val sm svelte-yt12fh"),u(C,"class","price-block svelte-yt12fh"),u(pe,"class","price-label svelte-yt12fh"),u(le,"class","price-val sm svelte-yt12fh"),u(ye,"class","price-block svelte-yt12fh"),u(Q,"class","price-row secondary svelte-yt12fh"),u(ae,"class","card-footer svelte-yt12fh")},m($,G){Y($,l,G),r(l,t),r(t,i),r(l,n),r(l,a),r(a,o),r(o,y),r(a,w),ve&&ve.m(a,null),Y($,A,G),Y($,g,G),r(g,b),r(b,k),r(k,S),r(b,E),r(b,h),r(h,N),r(g,q),r(g,V),r(g,W),r(g,K),r(K,x),r(x,X),r(K,ie),r(K,M),r(M,Z),Y($,ee,G),Y($,Q,G),r(Q,C),r(C,H),r(H,ke),r(C,te),r(C,ge),r(ge,re),r(Q,Be),r(Q,ye),r(ye,pe),r(pe,be),r(ye,_e),r(ye,le),r(le,Ne),Y($,Ie,G),Y($,ae,G),Pe.m(ae,null),r(ae,Ue),ue&&ue.m(ae,null),r(ae,Te),se&&se.m(ae,null),Ae||(We=oe(o,"click",Ye),Ae=!0)},p($,G){var Ce,Re;e=$,G[0]&33554432&&s!==(s=e[101].model+"")&&O(i,s),G[0]&128&&p!==(p=e[7]("pricing.edit")+"")&&O(y,p),e[101].isOverride?ve?ve.p(e,G):(ve=Yl(e),ve.c(),ve.m(a,null)):ve&&(ve.d(1),ve=null),G[0]&128&&R!==(R=e[7]("pricing.input")+"")&&O(S,R),G[0]&33556480&&d!==(d=(e[101].price?e[32](e[101].price.input,e[101].currency,e[11]):"-")+"")&&O(N,d),G[0]&128&&F!==(F=e[7]("pricing.output")+"")&&O(X,F),G[0]&33556480&&z!==(z=(e[101].price?e[32](e[101].price.output,e[101].currency,e[11]):"-")+"")&&O(Z,z),G[0]&128&&me!==(me=e[7]("pricing.cacheRead")+"")&&O(ke,me),G[0]&33556480&&ne!==(ne=(((Ce=e[101].price)==null?void 0:Ce.cacheRead)!=null?e[32](e[101].price.cacheRead,e[101].currency,e[11]):"-")+"")&&O(re,ne),G[0]&128&&J!==(J=e[7]("pricing.cacheWrite")+"")&&O(be,J),G[0]&33556480&&fe!==(fe=(((Re=e[101].price)==null?void 0:Re.cacheWrite)!=null?e[32](e[101].price.cacheWrite,e[101].currency,e[11]):"-")+"")&&O(Ne,fe),j===(j=de(e))&&Pe?Pe.p(e,G):(Pe.d(1),Pe=j(e),Pe&&(Pe.c(),Pe.m(ae,Ue))),e[101].currency==="CNY"?ue||(ue=Kl(),ue.c(),ue.m(ae,Te)):ue&&(ue.d(1),ue=null),G[0]&33554432&&(we=dl(e[101])),we?se?se.p(e,G):(se=Fl(e),se.c(),se.m(ae,null)):se&&(se.d(1),se=null)},d($){$&&(c(l),c(A),c(g),c(ee),c(Q),c(Ie),c(ae)),ve&&ve.d(),Pe.d(),ue&&ue.d(),se&&se.d(),Ae=!1,We()}}}function Rt(e){let l,t,s=e[101].model+"",i,n,a,o,p,y=Me(e[9])+"",w,A,g,b,k,R=e[7]("pricing.input")+"",S,E,h=Me(e[9])+"",d,N,q,V,T,W=e[7]("pricing.output")+"",K,x,F=Me(e[9])+"",X,ie,M,z,Z,ee=e[7]("pricing.cacheRead")+"",Q,C,H=Me(e[9])+"",me,ke,te,ge,ne,re=e[7]("pricing.cacheWrite")+"",Be,ye,pe=Me(e[9])+"",J,be,_e,le,fe,Ne,Ie=e[7]("pricing.save")+"",ae,Ue,Te,we=e[7]("pricing.cancel")+"",Ae,We,Ye;function ve(){return e[71](e[101])}return{c(){l=v("div"),t=v("span"),i=I(s),n=L(),a=v("span"),o=I(e[9]),p=I(" ("),w=I(y),A=I(")"),g=L(),b=v("div"),k=v("label"),S=I(R),E=I(" ("),d=I(h),N=I(`/1M)
2
2
  `),q=v("input"),V=L(),T=v("label"),K=I(W),x=I(" ("),X=I(F),ie=I(`/1M)
3
3
  `),M=v("input"),z=L(),Z=v("label"),Q=I(ee),C=I(" ("),me=I(H),ke=I(`/1M)
4
4
  `),te=v("input"),ge=L(),ne=v("label"),Be=I(re),ye=I(" ("),J=I(pe),be=I(`/1M)
@@ -1 +1 @@
1
- import{s as he,c as L}from"../chunks/scheduler.DsWd5xup.js";import{S as ue,i as _e,d as i,k as Q,l as W,m as X,s as R,a as y,b as c,n as Y,o as D,p as pe,g as S,c as g,e as E,f as V,q as Z,r as ae,j as A,h as k,t as N,u as x,v as me,x as se}from"../chunks/index.BfJlbjrK.js";import{w as de,e as ne}from"../chunks/api.DVLAklIn.js";import{b as oe,f as re,s as ve,a as ge,d as Ee}from"../chunks/stores.BSI_cVy6.js";import{t as ke}from"../chunks/i18n.DApJIXOT.js";import{D as we,a as be,T as De}from"../chunks/ToolSelector.0iI1cXVj.js";function ce(n,e,a){const t=n.slice();return t[8]=e[a],t[10]=a,t}function Pe(n){let e,a=ne(n[0].projects),t=[];for(let l=0;l<a.length;l+=1)t[l]=fe(ce(n,a,l));return{c(){e=k("div");for(let l=0;l<t.length;l+=1)t[l].c();this.h()},l(l){e=g(l,"DIV",{class:!0});var o=E(e);for(let r=0;r<t.length;r+=1)t[r].l(o);o.forEach(i),this.h()},h(){D(e,"class","ranking svelte-13wlcic")},m(l,o){y(l,e,o);for(let r=0;r<t.length;r+=1)t[r]&&t[r].m(e,null)},p(l,o){if(o&1){a=ne(l[0].projects);let r;for(r=0;r<a.length;r+=1){const f=ce(l,a,r);t[r]?t[r].p(f,o):(t[r]=fe(f),t[r].c(),t[r].m(e,null))}for(;r<t.length;r+=1)t[r].d(1);t.length=a.length}},d(l){l&&i(e),me(t,l)}}}function je(n){let e,a,t=n[3]("projects.noData")+"",l,o,r,f=n[3]("projects.noDataHint")+"",m;return{c(){e=k("div"),a=k("h2"),l=N(t),o=A(),r=k("p"),m=N(f),this.h()},l(h){e=g(h,"DIV",{class:!0});var d=E(e);a=g(d,"H2",{});var u=E(a);l=V(u,t),u.forEach(i),o=S(d),r=g(d,"P",{});var w=E(r);m=V(w,f),w.forEach(i),d.forEach(i),this.h()},h(){D(e,"class","state-msg")},m(h,d){y(h,e,d),c(e,a),c(a,l),c(e,o),c(e,r),c(r,m)},p(h,d){d&8&&t!==(t=h[3]("projects.noData")+"")&&R(l,t),d&8&&f!==(f=h[3]("projects.noDataHint")+"")&&R(m,f)},d(h){h&&i(e)}}}function Ie(n){let e,a;return{c(){e=k("div"),a=N(n[1]),this.h()},l(t){e=g(t,"DIV",{class:!0});var l=E(e);a=V(l,n[1]),l.forEach(i),this.h()},h(){D(e,"class","state-msg error")},m(t,l){y(t,e,l),c(e,a)},p(t,l){l&2&&R(a,t[1])},d(t){t&&i(e)}}}function Se(n){let e,a=n[3]("common.loading")+"",t;return{c(){e=k("div"),t=N(a),this.h()},l(l){e=g(l,"DIV",{class:!0});var o=E(e);t=V(o,a),o.forEach(i),this.h()},h(){D(e,"class","state-msg")},m(l,o){y(l,e,o),c(e,t)},p(l,o){o&8&&a!==(a=l[3]("common.loading")+"")&&R(t,a)},d(l){l&&i(e)}}}function ie(n){let e,a=n[8].fullPath+"",t;return{c(){e=k("span"),t=N(a),this.h()},l(l){e=g(l,"SPAN",{class:!0});var o=E(e);t=V(o,a),o.forEach(i),this.h()},h(){D(e,"class","path svelte-13wlcic")},m(l,o){y(l,e,o),c(e,t)},p(l,o){o&1&&a!==(a=l[8].fullPath+"")&&R(t,a)},d(l){l&&i(e)}}}function fe(n){let e,a,t,l=n[10]+1+"",o,r,f,m=n[8].name+"",h,d,u,w,j,H,F,q,$=oe(n[8].tokens)+"",U,C,I,B=re(n[8].cost)+"",z,P,s,v=n[8].percentage.toFixed(1)+"",T,G,J,_=n[8].fullPath&&n[8].fullPath!==n[8].name&&ie(n);return{c(){e=k("div"),a=k("span"),t=N("#"),o=N(l),r=A(),f=k("span"),h=N(m),d=A(),_&&_.c(),w=A(),j=k("div"),H=k("div"),F=A(),q=k("span"),U=N($),C=A(),I=k("span"),z=N(B),P=A(),s=k("span"),T=N(v),G=N("%"),J=A(),this.h()},l(b){e=g(b,"DIV",{class:!0});var p=E(e);a=g(p,"SPAN",{class:!0});var M=E(a);t=V(M,"#"),o=V(M,l),M.forEach(i),r=S(p),f=g(p,"SPAN",{class:!0,title:!0});var K=E(f);h=V(K,m),d=S(K),_&&_.l(K),K.forEach(i),w=S(p),j=g(p,"DIV",{class:!0});var ee=E(j);H=g(ee,"DIV",{class:!0,style:!0}),E(H).forEach(i),ee.forEach(i),F=S(p),q=g(p,"SPAN",{class:!0});var te=E(q);U=V(te,$),te.forEach(i),C=S(p),I=g(p,"SPAN",{class:!0});var le=E(I);z=V(le,B),le.forEach(i),P=S(p),s=g(p,"SPAN",{class:!0});var O=E(s);T=V(O,v),G=V(O,"%"),O.forEach(i),J=S(p),p.forEach(i),this.h()},h(){D(a,"class","rank mono svelte-13wlcic"),D(f,"class","name mono svelte-13wlcic"),D(f,"title",u=n[8].fullPath||n[8].name),D(H,"class","bar svelte-13wlcic"),se(H,"width",n[8].percentage+"%"),D(j,"class","bar-container svelte-13wlcic"),D(q,"class","tokens mono svelte-13wlcic"),D(I,"class","cost mono accent svelte-13wlcic"),D(s,"class","pct mono svelte-13wlcic"),D(e,"class","row animate-row svelte-13wlcic")},m(b,p){y(b,e,p),c(e,a),c(a,t),c(a,o),c(e,r),c(e,f),c(f,h),c(f,d),_&&_.m(f,null),c(e,w),c(e,j),c(j,H),c(e,F),c(e,q),c(q,U),c(e,C),c(e,I),c(I,z),c(e,P),c(e,s),c(s,T),c(s,G),c(e,J)},p(b,p){p&1&&m!==(m=b[8].name+"")&&R(h,m),b[8].fullPath&&b[8].fullPath!==b[8].name?_?_.p(b,p):(_=ie(b),_.c(),_.m(f,null)):_&&(_.d(1),_=null),p&1&&u!==(u=b[8].fullPath||b[8].name)&&D(f,"title",u),p&1&&se(H,"width",b[8].percentage+"%"),p&1&&$!==($=oe(b[8].tokens)+"")&&R(U,$),p&1&&B!==(B=re(b[8].cost)+"")&&R(z,B),p&1&&v!==(v=b[8].percentage.toFixed(1)+"")&&R(T,v)},d(b){b&&i(e),_&&_.d()}}}function Ve(n){let e,a,t,l,o=n[3]("projects.title")+"",r,f,m,h=n[3]("projects.desc")+"",d,u,w,j,H,F,q,$,U,C,I;document.title=e=n[3]("projects.title")+" — AIUsage",j=new we({}),F=new be({}),$=new De({});function B(s,v){var T;return s[2]?Se:s[1]?Ie:(T=s[0])!=null&&T.projects.length?Pe:je}let z=B(n),P=z(n);return{c(){a=A(),t=k("div"),l=k("h1"),r=N(o),f=A(),m=k("p"),d=N(h),u=A(),w=k("div"),x(j.$$.fragment),H=A(),x(F.$$.fragment),q=A(),x($.$$.fragment),U=A(),P.c(),C=ae(),this.h()},l(s){pe("svelte-11fw4x1",document.head).forEach(i),a=S(s),t=g(s,"DIV",{class:!0});var T=E(t);l=g(T,"H1",{});var G=E(l);r=V(G,o),G.forEach(i),f=S(T),m=g(T,"P",{});var J=E(m);d=V(J,h),J.forEach(i),T.forEach(i),u=S(s),w=g(s,"DIV",{class:!0});var _=E(w);Z(j.$$.fragment,_),H=S(_),Z(F.$$.fragment,_),q=S(_),Z($.$$.fragment,_),_.forEach(i),U=S(s),P.l(s),C=ae(),this.h()},h(){D(t,"class","page-header"),D(w,"class","filter-bar")},m(s,v){y(s,a,v),y(s,t,v),c(t,l),c(l,r),c(t,f),c(t,m),c(m,d),y(s,u,v),y(s,w,v),Y(j,w,null),c(w,H),Y(F,w,null),c(w,q),Y($,w,null),y(s,U,v),P.m(s,v),y(s,C,v),I=!0},p(s,[v]){(!I||v&8)&&e!==(e=s[3]("projects.title")+" — AIUsage")&&(document.title=e),(!I||v&8)&&o!==(o=s[3]("projects.title")+"")&&R(r,o),(!I||v&8)&&h!==(h=s[3]("projects.desc")+"")&&R(d,h),z===(z=B(s))&&P?P.p(s,v):(P.d(1),P=z(s),P&&(P.c(),P.m(C.parentNode,C)))},i(s){I||(X(j.$$.fragment,s),X(F.$$.fragment,s),X($.$$.fragment,s),I=!0)},o(s){W(j.$$.fragment,s),W(F.$$.fragment,s),W($.$$.fragment,s),I=!1},d(s){s&&(i(a),i(t),i(u),i(w),i(U),i(C)),Q(j),Q(F),Q($),P.d(s)}}}function Ae(n,e,a){let t,l,o,r;L(n,ve,u=>a(4,t=u)),L(n,ge,u=>a(5,l=u)),L(n,Ee,u=>a(6,o=u)),L(n,ke,u=>a(3,r=u));let f=null,m=null,h=!0;async function d(){a(2,h=!0),a(1,m=null);try{a(0,f=await de({...o,device:l,tool:t}))}catch(u){a(1,m=u instanceof Error?u.message:"Failed to load data"),a(0,f=null)}finally{a(2,h=!1)}}return n.$$.update=()=>{n.$$.dirty&112&&d()},[f,m,h,r,t,l,o]}class Re extends ue{constructor(e){super(),_e(this,e,Ae,Ve,he,{})}}export{Re as component};
1
+ import{s as he,c as L}from"../chunks/scheduler.DsWd5xup.js";import{S as ue,i as _e,d as i,k as Q,l as W,m as X,s as R,a as y,b as c,n as Y,o as D,p as pe,g as S,c as g,e as E,f as V,q as Z,r as ae,j as A,h as k,t as N,u as x,v as me,x as se}from"../chunks/index.BfJlbjrK.js";import{w as de,e as ne}from"../chunks/api.DVLAklIn.js";import{b as oe,f as re,s as ve,a as ge,d as Ee}from"../chunks/stores.C6g63Ng7.js";import{t as ke}from"../chunks/i18n.DApJIXOT.js";import{D as we,a as be,T as De}from"../chunks/ToolSelector.CO-QGau6.js";function ce(n,e,a){const t=n.slice();return t[8]=e[a],t[10]=a,t}function Pe(n){let e,a=ne(n[0].projects),t=[];for(let l=0;l<a.length;l+=1)t[l]=fe(ce(n,a,l));return{c(){e=k("div");for(let l=0;l<t.length;l+=1)t[l].c();this.h()},l(l){e=g(l,"DIV",{class:!0});var o=E(e);for(let r=0;r<t.length;r+=1)t[r].l(o);o.forEach(i),this.h()},h(){D(e,"class","ranking svelte-13wlcic")},m(l,o){y(l,e,o);for(let r=0;r<t.length;r+=1)t[r]&&t[r].m(e,null)},p(l,o){if(o&1){a=ne(l[0].projects);let r;for(r=0;r<a.length;r+=1){const f=ce(l,a,r);t[r]?t[r].p(f,o):(t[r]=fe(f),t[r].c(),t[r].m(e,null))}for(;r<t.length;r+=1)t[r].d(1);t.length=a.length}},d(l){l&&i(e),me(t,l)}}}function je(n){let e,a,t=n[3]("projects.noData")+"",l,o,r,f=n[3]("projects.noDataHint")+"",m;return{c(){e=k("div"),a=k("h2"),l=N(t),o=A(),r=k("p"),m=N(f),this.h()},l(h){e=g(h,"DIV",{class:!0});var d=E(e);a=g(d,"H2",{});var u=E(a);l=V(u,t),u.forEach(i),o=S(d),r=g(d,"P",{});var w=E(r);m=V(w,f),w.forEach(i),d.forEach(i),this.h()},h(){D(e,"class","state-msg")},m(h,d){y(h,e,d),c(e,a),c(a,l),c(e,o),c(e,r),c(r,m)},p(h,d){d&8&&t!==(t=h[3]("projects.noData")+"")&&R(l,t),d&8&&f!==(f=h[3]("projects.noDataHint")+"")&&R(m,f)},d(h){h&&i(e)}}}function Ie(n){let e,a;return{c(){e=k("div"),a=N(n[1]),this.h()},l(t){e=g(t,"DIV",{class:!0});var l=E(e);a=V(l,n[1]),l.forEach(i),this.h()},h(){D(e,"class","state-msg error")},m(t,l){y(t,e,l),c(e,a)},p(t,l){l&2&&R(a,t[1])},d(t){t&&i(e)}}}function Se(n){let e,a=n[3]("common.loading")+"",t;return{c(){e=k("div"),t=N(a),this.h()},l(l){e=g(l,"DIV",{class:!0});var o=E(e);t=V(o,a),o.forEach(i),this.h()},h(){D(e,"class","state-msg")},m(l,o){y(l,e,o),c(e,t)},p(l,o){o&8&&a!==(a=l[3]("common.loading")+"")&&R(t,a)},d(l){l&&i(e)}}}function ie(n){let e,a=n[8].fullPath+"",t;return{c(){e=k("span"),t=N(a),this.h()},l(l){e=g(l,"SPAN",{class:!0});var o=E(e);t=V(o,a),o.forEach(i),this.h()},h(){D(e,"class","path svelte-13wlcic")},m(l,o){y(l,e,o),c(e,t)},p(l,o){o&1&&a!==(a=l[8].fullPath+"")&&R(t,a)},d(l){l&&i(e)}}}function fe(n){let e,a,t,l=n[10]+1+"",o,r,f,m=n[8].name+"",h,d,u,w,j,H,F,q,$=oe(n[8].tokens)+"",U,C,I,B=re(n[8].cost)+"",z,P,s,v=n[8].percentage.toFixed(1)+"",T,G,J,_=n[8].fullPath&&n[8].fullPath!==n[8].name&&ie(n);return{c(){e=k("div"),a=k("span"),t=N("#"),o=N(l),r=A(),f=k("span"),h=N(m),d=A(),_&&_.c(),w=A(),j=k("div"),H=k("div"),F=A(),q=k("span"),U=N($),C=A(),I=k("span"),z=N(B),P=A(),s=k("span"),T=N(v),G=N("%"),J=A(),this.h()},l(b){e=g(b,"DIV",{class:!0});var p=E(e);a=g(p,"SPAN",{class:!0});var M=E(a);t=V(M,"#"),o=V(M,l),M.forEach(i),r=S(p),f=g(p,"SPAN",{class:!0,title:!0});var K=E(f);h=V(K,m),d=S(K),_&&_.l(K),K.forEach(i),w=S(p),j=g(p,"DIV",{class:!0});var ee=E(j);H=g(ee,"DIV",{class:!0,style:!0}),E(H).forEach(i),ee.forEach(i),F=S(p),q=g(p,"SPAN",{class:!0});var te=E(q);U=V(te,$),te.forEach(i),C=S(p),I=g(p,"SPAN",{class:!0});var le=E(I);z=V(le,B),le.forEach(i),P=S(p),s=g(p,"SPAN",{class:!0});var O=E(s);T=V(O,v),G=V(O,"%"),O.forEach(i),J=S(p),p.forEach(i),this.h()},h(){D(a,"class","rank mono svelte-13wlcic"),D(f,"class","name mono svelte-13wlcic"),D(f,"title",u=n[8].fullPath||n[8].name),D(H,"class","bar svelte-13wlcic"),se(H,"width",n[8].percentage+"%"),D(j,"class","bar-container svelte-13wlcic"),D(q,"class","tokens mono svelte-13wlcic"),D(I,"class","cost mono accent svelte-13wlcic"),D(s,"class","pct mono svelte-13wlcic"),D(e,"class","row animate-row svelte-13wlcic")},m(b,p){y(b,e,p),c(e,a),c(a,t),c(a,o),c(e,r),c(e,f),c(f,h),c(f,d),_&&_.m(f,null),c(e,w),c(e,j),c(j,H),c(e,F),c(e,q),c(q,U),c(e,C),c(e,I),c(I,z),c(e,P),c(e,s),c(s,T),c(s,G),c(e,J)},p(b,p){p&1&&m!==(m=b[8].name+"")&&R(h,m),b[8].fullPath&&b[8].fullPath!==b[8].name?_?_.p(b,p):(_=ie(b),_.c(),_.m(f,null)):_&&(_.d(1),_=null),p&1&&u!==(u=b[8].fullPath||b[8].name)&&D(f,"title",u),p&1&&se(H,"width",b[8].percentage+"%"),p&1&&$!==($=oe(b[8].tokens)+"")&&R(U,$),p&1&&B!==(B=re(b[8].cost)+"")&&R(z,B),p&1&&v!==(v=b[8].percentage.toFixed(1)+"")&&R(T,v)},d(b){b&&i(e),_&&_.d()}}}function Ve(n){let e,a,t,l,o=n[3]("projects.title")+"",r,f,m,h=n[3]("projects.desc")+"",d,u,w,j,H,F,q,$,U,C,I;document.title=e=n[3]("projects.title")+" — AIUsage",j=new we({}),F=new be({}),$=new De({});function B(s,v){var T;return s[2]?Se:s[1]?Ie:(T=s[0])!=null&&T.projects.length?Pe:je}let z=B(n),P=z(n);return{c(){a=A(),t=k("div"),l=k("h1"),r=N(o),f=A(),m=k("p"),d=N(h),u=A(),w=k("div"),x(j.$$.fragment),H=A(),x(F.$$.fragment),q=A(),x($.$$.fragment),U=A(),P.c(),C=ae(),this.h()},l(s){pe("svelte-11fw4x1",document.head).forEach(i),a=S(s),t=g(s,"DIV",{class:!0});var T=E(t);l=g(T,"H1",{});var G=E(l);r=V(G,o),G.forEach(i),f=S(T),m=g(T,"P",{});var J=E(m);d=V(J,h),J.forEach(i),T.forEach(i),u=S(s),w=g(s,"DIV",{class:!0});var _=E(w);Z(j.$$.fragment,_),H=S(_),Z(F.$$.fragment,_),q=S(_),Z($.$$.fragment,_),_.forEach(i),U=S(s),P.l(s),C=ae(),this.h()},h(){D(t,"class","page-header"),D(w,"class","filter-bar")},m(s,v){y(s,a,v),y(s,t,v),c(t,l),c(l,r),c(t,f),c(t,m),c(m,d),y(s,u,v),y(s,w,v),Y(j,w,null),c(w,H),Y(F,w,null),c(w,q),Y($,w,null),y(s,U,v),P.m(s,v),y(s,C,v),I=!0},p(s,[v]){(!I||v&8)&&e!==(e=s[3]("projects.title")+" — AIUsage")&&(document.title=e),(!I||v&8)&&o!==(o=s[3]("projects.title")+"")&&R(r,o),(!I||v&8)&&h!==(h=s[3]("projects.desc")+"")&&R(d,h),z===(z=B(s))&&P?P.p(s,v):(P.d(1),P=z(s),P&&(P.c(),P.m(C.parentNode,C)))},i(s){I||(X(j.$$.fragment,s),X(F.$$.fragment,s),X($.$$.fragment,s),I=!0)},o(s){W(j.$$.fragment,s),W(F.$$.fragment,s),W($.$$.fragment,s),I=!1},d(s){s&&(i(a),i(t),i(u),i(w),i(U),i(C)),Q(j),Q(F),Q($),P.d(s)}}}function Ae(n,e,a){let t,l,o,r;L(n,ve,u=>a(4,t=u)),L(n,ge,u=>a(5,l=u)),L(n,Ee,u=>a(6,o=u)),L(n,ke,u=>a(3,r=u));let f=null,m=null,h=!0;async function d(){a(2,h=!0),a(1,m=null);try{a(0,f=await de({...o,device:l,tool:t}))}catch(u){a(1,m=u instanceof Error?u.message:"Failed to load data"),a(0,f=null)}finally{a(2,h=!1)}}return n.$$.update=()=>{n.$$.dirty&112&&d()},[f,m,h,r,t,l,o]}class Re extends ue{constructor(e){super(),_e(this,e,Ae,Ve,he,{})}}export{Re as component};
@@ -1 +1 @@
1
- {"version":"1781680110786"}
1
+ {"version":"1782893078155"}
@@ -19,26 +19,26 @@
19
19
  })();
20
20
  </script>
21
21
 
22
- <link rel="modulepreload" href="/_app/immutable/entry/start.DnwUvynt.js">
23
- <link rel="modulepreload" href="/_app/immutable/chunks/entry.PMcg7HQL.js">
22
+ <link rel="modulepreload" href="/_app/immutable/entry/start.COue4Eiw.js">
23
+ <link rel="modulepreload" href="/_app/immutable/chunks/entry.DJZO-wBk.js">
24
24
  <link rel="modulepreload" href="/_app/immutable/chunks/scheduler.DsWd5xup.js">
25
25
  <link rel="modulepreload" href="/_app/immutable/chunks/index.m3oCcA6N.js">
26
- <link rel="modulepreload" href="/_app/immutable/entry/app.CSiP_kAD.js">
26
+ <link rel="modulepreload" href="/_app/immutable/entry/app.WQCJU-_e.js">
27
27
  <link rel="modulepreload" href="/_app/immutable/chunks/index.BfJlbjrK.js">
28
28
  </head>
29
29
  <body data-sveltekit-preload-data="hover">
30
30
  <div style="display: contents">
31
31
  <script>
32
32
  {
33
- __sveltekit_11701h9 = {
33
+ __sveltekit_1we9vud = {
34
34
  base: ""
35
35
  };
36
36
 
37
37
  const element = document.currentScript.parentElement;
38
38
 
39
39
  Promise.all([
40
- import("/_app/immutable/entry/start.DnwUvynt.js"),
41
- import("/_app/immutable/entry/app.CSiP_kAD.js")
40
+ import("/_app/immutable/entry/start.COue4Eiw.js"),
41
+ import("/_app/immutable/entry/app.WQCJU-_e.js")
42
42
  ]).then(([kit, app]) => {
43
43
  kit.start(app, element);
44
44
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juliantanx/aiusage",
3
- "version": "1.5.6",
3
+ "version": "1.5.8",
4
4
  "type": "module",
5
5
  "description": "Track and analyze AI coding assistant usage across Claude Code, Codex, and more",
6
6
  "keywords": [
@@ -54,8 +54,8 @@
54
54
  "tsx": "^4.0.0",
55
55
  "typescript": "^5.7.0",
56
56
  "vitest": "^3.0.0",
57
- "@aiusage/core": "1.5.6",
58
- "@aiusage/web": "1.5.6"
57
+ "@aiusage/core": "1.5.8",
58
+ "@aiusage/web": "1.5.8"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "tsup && node scripts/copy-web.js",
@@ -1 +0,0 @@
1
- import{a as t}from"../chunks/entry.PMcg7HQL.js";export{t as start};