@juliantanx/aiusage 1.5.5 → 1.5.7

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 (26) hide show
  1. package/README.md +28 -1
  2. package/dist/index.js +701 -133
  3. package/dist/web/_app/immutable/chunks/{ToolSelector.0iI1cXVj.js → ToolSelector.CO-QGau6.js} +1 -1
  4. package/dist/web/_app/immutable/chunks/entry.NbJb2eQR.js +3 -0
  5. package/dist/web/_app/immutable/chunks/{stores.YDlXfj0w.js → stores.BYZRdBSl.js} +1 -1
  6. package/dist/web/_app/immutable/chunks/{stores.BSI_cVy6.js → stores.C6g63Ng7.js} +1 -1
  7. package/dist/web/_app/immutable/entry/{app.RcQYJvro.js → app.CM2PdbpC.js} +2 -2
  8. package/dist/web/_app/immutable/entry/start.Cj8FkSB_.js +1 -0
  9. package/dist/web/_app/immutable/nodes/{0.DssNB1JP.js → 0.DDrgmg6l.js} +1 -1
  10. package/dist/web/_app/immutable/nodes/{1.D4HMlRNK.js → 1.DTUl4JbV.js} +1 -1
  11. package/dist/web/_app/immutable/nodes/{10.CnTuhaua.js → 10.CP1F4_ac.js} +1 -1
  12. package/dist/web/_app/immutable/nodes/{11.8-cT1ns9.js → 11.DB5iERgm.js} +1 -1
  13. package/dist/web/_app/immutable/nodes/{12.BCT8Dv1G.js → 12.RfrZJ-XB.js} +1 -1
  14. package/dist/web/_app/immutable/nodes/{14.u96Ucsue.js → 14.Cbg9FBSP.js} +1 -1
  15. package/dist/web/_app/immutable/nodes/{15.CMhy_NGl.js → 15.CQoUgLeT.js} +1 -1
  16. package/dist/web/_app/immutable/nodes/{2.CJH1Fs0K.js → 2.DLTFcQ9L.js} +1 -1
  17. package/dist/web/_app/immutable/nodes/{3.Chtgl9hh.js → 3.jLX2a-Ic.js} +1 -1
  18. package/dist/web/_app/immutable/nodes/{5.DtYG5yJy.js → 5.CVQN-3_l.js} +1 -1
  19. package/dist/web/_app/immutable/nodes/{6.B-ud4zCO.js → 6.C-WRTBwg.js} +1 -1
  20. package/dist/web/_app/immutable/nodes/{7.7Fm6yzqA.js → 7.DFkuOTpF.js} +1 -1
  21. package/dist/web/_app/immutable/nodes/{8.Chp3dlzK.js → 8.BNiBE_e2.js} +1 -1
  22. package/dist/web/_app/version.json +1 -1
  23. package/dist/web/index.html +6 -6
  24. package/package.json +3 -3
  25. package/dist/web/_app/immutable/chunks/entry.BtjCrbiQ.js +0 -3
  26. package/dist/web/_app/immutable/entry/start.DAyKzWev.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":"1781662306648"}
1
+ {"version":"1782383319866"}
@@ -19,26 +19,26 @@
19
19
  })();
20
20
  </script>
21
21
 
22
- <link rel="modulepreload" href="/_app/immutable/entry/start.DAyKzWev.js">
23
- <link rel="modulepreload" href="/_app/immutable/chunks/entry.BtjCrbiQ.js">
22
+ <link rel="modulepreload" href="/_app/immutable/entry/start.Cj8FkSB_.js">
23
+ <link rel="modulepreload" href="/_app/immutable/chunks/entry.NbJb2eQR.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.RcQYJvro.js">
26
+ <link rel="modulepreload" href="/_app/immutable/entry/app.CM2PdbpC.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_1gx35br = {
33
+ __sveltekit_yk5b8y = {
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.DAyKzWev.js"),
41
- import("/_app/immutable/entry/app.RcQYJvro.js")
40
+ import("/_app/immutable/entry/start.Cj8FkSB_.js"),
41
+ import("/_app/immutable/entry/app.CM2PdbpC.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.5",
3
+ "version": "1.5.7",
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.5",
58
- "@aiusage/web": "1.5.5"
57
+ "@aiusage/core": "1.5.7",
58
+ "@aiusage/web": "1.5.7"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "tsup && node scripts/copy-web.js",
@@ -1,3 +0,0 @@
1
- var mt=Object.defineProperty;var wt=(e,n,t)=>n in e?mt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var P=(e,n,t)=>wt(e,typeof n!="symbol"?n+"":n,t);import{o as je,t as yt}from"./scheduler.DsWd5xup.js";import{w as ye}from"./index.m3oCcA6N.js";new URL("sveltekit-internal://");function _t(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function vt(e){return e.split("%25").map(decodeURI).join("%25")}function bt(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ue({href:e}){return e.split("#")[0]}function At(e,n,t,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(o,c){if(c==="get"||c==="getAll"||c==="has")return f=>(t(f),o[c](f));n();const i=Reflect.get(o,c);return typeof i=="function"?i.bind(o):i}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const o of s)Object.defineProperty(a,o,{get(){return n(),e[o]},enumerable:!0,configurable:!0});return a}const Et="/__data.json",kt=".html__data.json";function St(e){return e.endsWith(".html")?e.replace(/\.html$/,kt):e.replace(/\/$/,"")+Et}function Rt(...e){let n=5381;for(const t of e)if(typeof t=="string"){let r=t.length;for(;r;)n=n*33^t.charCodeAt(--r)}else if(ArrayBuffer.isView(t)){const r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);let a=r.length;for(;a;)n=n*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function It(e){const n=atob(e),t=new Uint8Array(n.length);for(let r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t.buffer}const He=window.fetch;window.fetch=(e,n)=>((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&M.delete(_e(e)),He(e,n));const M=new Map;function Ut(e,n){const t=_e(e,n),r=document.querySelector(t);if(r!=null&&r.textContent){let{body:a,...s}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&M.set(t,{body:a,init:s,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=It(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,n)}function Tt(e,n,t){if(M.size>0){const r=_e(e,t),a=M.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(t==null?void 0:t.cache))return new Response(a.body,a.init);M.delete(r)}}return window.fetch(n,t)}function _e(e,n){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(n!=null&&n.headers||n!=null&&n.body){const a=[];n.headers&&a.push([...new Headers(n.headers)].join(",")),n.body&&(typeof n.body=="string"||ArrayBuffer.isView(n.body))&&a.push(n.body),r+=`[data-hash="${Rt(...a)}"]`}return r}const Lt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Pt(e){const n=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${jt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return n.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return n.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((i,f)=>{if(f%2){if(i.startsWith("x+"))return de(String.fromCharCode(parseInt(i.slice(2),16)));if(i.startsWith("u+"))return de(String.fromCharCode(...i.slice(2).split("-").map(l=>parseInt(l,16))));const h=Lt.exec(i),[,u,g,p,d]=h;return n.push({name:p,matcher:d,optional:!!u,rest:!!g,chained:g?f===1&&o[0]==="":!1}),g?"(.*?)":u?"([^/]*)?":"([^/]+?)"}return de(i)}).join("")}).join("")}/?$`),params:n}}function Ot(e){return!/^\([^)]+\)$/.test(e)}function jt(e){return e.slice(1).split("/").filter(Ot)}function Nt(e,n,t){const r={},a=e.slice(1),s=a.filter(c=>c!==void 0);let o=0;for(let c=0;c<n.length;c+=1){const i=n[c];let f=a[c-o];if(i.chained&&i.rest&&o&&(f=a.slice(c-o,c+1).filter(h=>h).join("/"),o=0),f===void 0){i.rest&&(r[i.name]="");continue}if(!i.matcher||t[i.matcher](f)){r[i.name]=f;const h=n[c+1],u=a[c+1];h&&!h.rest&&h.optional&&u&&i.chained&&(o=0),!h&&!u&&Object.keys(r).length===s.length&&(o=0);continue}if(i.optional&&i.chained){o++;continue}return}if(!o)return r}function de(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function xt({nodes:e,server_loads:n,dictionary:t,matchers:r}){const a=new Set(n);return Object.entries(t).map(([c,[i,f,h]])=>{const{pattern:u,params:g}=Pt(c),p={id:c,exec:d=>{const l=u.exec(d);if(l)return Nt(l,g,r)},errors:[1,...h||[]].map(d=>e[d]),layouts:[0,...f||[]].map(o),leaf:s(i)};return p.errors.length=p.layouts.length=Math.max(p.errors.length,p.layouts.length),p});function s(c){const i=c<0;return i&&(c=~c),[i,e[c]]}function o(c){return c===void 0?c:[a.has(c),e[c]]}}function Ke(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Ne(e,n,t=JSON.stringify){const r=t(n);try{sessionStorage[e]=r}catch{}}var Me;const L=((Me=globalThis.__sveltekit_1gx35br)==null?void 0:Me.base)??"";var qe;const $t=((qe=globalThis.__sveltekit_1gx35br)==null?void 0:qe.assets)??L,Ct="1781662306648",We="sveltekit:snapshot",Ye="sveltekit:scroll",Je="sveltekit:states",Dt="sveltekit:pageurl",C="sveltekit:history",H="sveltekit:navigation",z={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},J=location.origin;function ze(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function ve(){return{x:pageXOffset,y:pageYOffset}}function $(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const xe={...z,"":z.hover};function Xe(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function Ze(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Xe(e)}}function ge(e,n,t){let r;try{r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||oe(r,n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(r==null?void 0:r.origin)===J&&e.hasAttribute("download");return{url:r,external:s,target:a,download:o}}function X(e){let n=null,t=null,r=null,a=null,s=null,o=null,c=e;for(;c&&c!==document.documentElement;)r===null&&(r=$(c,"preload-code")),a===null&&(a=$(c,"preload-data")),n===null&&(n=$(c,"keepfocus")),t===null&&(t=$(c,"noscroll")),s===null&&(s=$(c,"reload")),o===null&&(o=$(c,"replacestate")),c=Xe(c);function i(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:xe[r??"off"],preload_data:xe[a??"off"],keepfocus:i(n),noscroll:i(t),reload:i(s),replace_state:i(o)}}function $e(e){const n=ye(e);let t=!0;function r(){t=!0,n.update(o=>o)}function a(o){t=!1,n.set(o)}function s(o){let c;return n.subscribe(i=>{(c===void 0||t&&i!==c)&&o(c=i)})}return{notify:r,set:a,subscribe:s}}const Qe={v:()=>{}};function Bt(){const{set:e,subscribe:n}=ye(!1);let t;async function r(){clearTimeout(t);try{const a=await fetch(`${$t}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==Ct;return o&&(e(!0),Qe.v(),clearTimeout(t)),o}catch{return!1}}return{subscribe:n,check:r}}function oe(e,n,t){return e.origin!==J||!e.pathname.startsWith(n)?!0:t?!(e.pathname===n+"/"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===n):!1}function Ft(e){return Uint8Array.fromBase64(e).buffer}function Vt(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function Mt(e){const n=atob(e),t=n.length,r=new Uint8Array(t);for(let a=0;a<t;a++)r[a]=n.charCodeAt(a);return r.buffer}const qt=typeof Uint8Array.fromBase64=="function";var Ge;const Gt=typeof process=="object"&&((Ge=process.versions)==null?void 0:Ge.node)!==void 0,Ht=qt?Ft:Gt?Vt:Mt,Kt=-1,Wt=-2,Yt=-3,Jt=-4,zt=-5,Xt=-6,Zt=-7;function Qt(e,n){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,r=Array(t.length);let a=null;function s(o,c=!1){if(o===Kt)return;if(o===Yt)return NaN;if(o===Jt)return 1/0;if(o===zt)return-1/0;if(o===Xt)return-0;if(c||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const i=t[o];if(!i||typeof i!="object")r[o]=i;else if(Array.isArray(i))if(typeof i[0]=="string"){const f=i[0],h=n&&Object.hasOwn(n,f)?n[f]:void 0;if(h){let u=i[1];if(typeof u!="number"&&(u=t.push(i[1])-1),a??(a=new Set),a.has(u))throw new Error("Invalid circular reference");return a.add(u),r[o]=h(s(u)),a.delete(u),r[o]}switch(f){case"Date":r[o]=new Date(i[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;d<i.length;d+=1)u.add(s(i[d]));break;case"Map":const g=new Map;r[o]=g;for(let d=1;d<i.length;d+=2)g.set(s(i[d]),s(i[d+1]));break;case"RegExp":r[o]=new RegExp(i[1],i[2]);break;case"Object":{const d=i[1];if(typeof t[d]=="object"&&t[d][0]!=="BigInt")throw new Error("Invalid input");r[o]=Object(s(d));break}case"BigInt":r[o]=BigInt(i[1]);break;case"null":const p=Object.create(null);r[o]=p;for(let d=1;d<i.length;d+=2){if(i[d]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");p[i[d]]=s(i[d+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(t[i[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const d=globalThis[f],l=s(i[1]);r[o]=i[2]!==void 0?new d(l,i[2],i[3]):new d(l);break}case"ArrayBuffer":{const d=i[1];if(typeof d!="string")throw new Error("Invalid ArrayBuffer encoding");const l=Ht(d);r[o]=l;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const d=f.slice(9);r[o]=Temporal[d].from(i[1]);break}case"URL":{const d=new URL(i[1]);r[o]=d;break}case"URLSearchParams":{const d=new URLSearchParams(i[1]);r[o]=d;break}default:throw new Error(`Unknown type ${f}`)}}else if(i[0]===Zt){const f=i[1];if(!Number.isInteger(f)||f<0)throw new Error("Invalid input");const h=new Array(f);r[o]=h;for(let u=2;u<i.length;u+=2){const g=i[u];if(!Number.isInteger(g)||g<0||g>=f)throw new Error("Invalid input");h[g]=s(i[u+1])}}else{const f=new Array(i.length);r[o]=f;for(let h=0;h<i.length;h+=1){const u=i[h];u!==Wt&&(f[h]=s(u))}}else{const f={};r[o]=f;for(const h of Object.keys(i)){if(h==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const u=i[h];f[h]=s(u)}}return r[o]}return s(0)}const et=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...et];const en=new Set([...et]);[...en];function tn(e){return e.filter(n=>n!=null)}class se{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class be{constructor(n,t){this.status=n,this.location=t}}class Ae extends Error{constructor(n,t,r){super(r),this.status=n,this.text=t}}const nn="x-sveltekit-invalidated",rn="x-sveltekit-trailing-slash";function Z(e){return e instanceof se||e instanceof Ae?e.status:500}function an(e){return e instanceof Ae?e.text:"Internal Error"}let I,K,he;const on=je.toString().includes("$$")||/function \w+\(\) \{\}/.test(je.toString());on?(I={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},K={current:null},he={current:!1}):(I=new class{constructor(){P(this,"data",$state.raw({}));P(this,"form",$state.raw(null));P(this,"error",$state.raw(null));P(this,"params",$state.raw({}));P(this,"route",$state.raw({id:null}));P(this,"state",$state.raw({}));P(this,"status",$state.raw(-1));P(this,"url",$state.raw(new URL("https://example.com")))}},K=new class{constructor(){P(this,"current",$state.raw(null))}},he=new class{constructor(){P(this,"current",$state.raw(!1))}},Qe.v=()=>he.current=!0);function sn(e){Object.assign(I,e)}const cn=new Set(["icon","shortcut icon","apple-touch-icon"]),x=Ke(Ye)??{},W=Ke(We)??{},j={url:$e({}),page:$e({}),navigating:ye(null),updated:Bt()};function Ee(e){x[e]=ve()}function ln(e,n){let t=e+1;for(;x[t];)delete x[t],t+=1;for(t=n+1;W[t];)delete W[t],t+=1}function B(e){return location.href=e.href,new Promise(()=>{})}async function tt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}function Ce(){}let ie,me,Q,O,we,A;const nt=[],ee=[];let U=null;const rt=new Set,fn=new Set,q=new Set;let y={branch:[],error:null,url:null},ke=!1,te=!1,De=!0,Y=!1,F=!1,at=!1,Se=!1,ot,R,T,ne;const G=new Set;async function Rn(e,n,t){var a,s,o,c;document.URL!==location.href&&(location.href=location.href),A=e,await((s=(a=e.hooks).init)==null?void 0:s.call(a)),ie=xt(e),O=document.documentElement,we=n,me=e.nodes[0],Q=e.nodes[1],me(),Q(),R=(o=history.state)==null?void 0:o[C],T=(c=history.state)==null?void 0:c[H],R||(R=T=Date.now(),history.replaceState({...history.state,[C]:R,[H]:T},""));const r=x[R];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),t?await yn(we,t):mn(location.href,{replaceState:!0}),wn()}function un(){nt.length=0,Se=!1}function st(e){ee.some(n=>n==null?void 0:n.snapshot)&&(W[e]=ee.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function it(e){var n;(n=W[e])==null||n.forEach((t,r)=>{var a,s;(s=(a=ee[r])==null?void 0:a.snapshot)==null||s.restore(t)})}function Be(){Ee(R),Ne(Ye,x),st(T),Ne(We,W)}async function Re(e,n,t,r){return V({type:"goto",url:ze(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:r,accept:()=>{n.invalidateAll&&(Se=!0)}})}async function dn(e){if(e.id!==(U==null?void 0:U.id)){const n={};G.add(n),U={id:e.id,token:n,promise:lt({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(U=null),t))}}return U.promise}async function pe(e){const n=ie.find(t=>t.exec(ft(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function ct(e,n,t){var s;y=e.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),Object.assign(I,e.props.page),ot=new A.root({target:n,props:{...e.props,stores:j,components:ee},hydrate:t,sync:!1}),it(T);const a={from:null,to:{params:y.params,route:{id:((s=y.route)==null?void 0:s.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};q.forEach(o=>o(a)),te=!0}function re({url:e,params:n,branch:t,status:r,error:a,route:s,form:o}){let c="never";if(L&&(e.pathname===L||e.pathname===L+"/"))c="always";else for(const p of t)(p==null?void 0:p.slash)!==void 0&&(c=p.slash);e.pathname=_t(e.pathname,c),e.search=e.search;const i={type:"loaded",state:{url:e,params:n,branch:t,error:a,route:s},props:{constructors:tn(t).map(p=>p.node.component),page:Le(I)}};o!==void 0&&(i.props.form=o);let f={},h=!I,u=0;for(let p=0;p<Math.max(t.length,y.branch.length);p+=1){const d=t[p],l=y.branch[p];(d==null?void 0:d.data)!==(l==null?void 0:l.data)&&(h=!0),d&&(f={...f,...d.data},h&&(i.props[`data_${u}`]=f),u+=1)}return(!y.url||e.href!==y.url.href||y.error!==a||o!==void 0&&o!==I.form||h)&&(i.props.page={error:a,params:n,route:{id:(s==null?void 0:s.id)??null},state:{},status:r,url:new URL(e),form:o??null,data:h?f:I.data}),i}async function Ie({loader:e,parent:n,url:t,params:r,route:a,server_data_node:s}){var h,u,g;let o=null,c=!0;const i={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},f=await e();if((h=f.universal)!=null&&h.load){let p=function(...l){for(const m of l){const{href:b}=new URL(m,t);i.dependencies.add(b)}};const d={route:new Proxy(a,{get:(l,m)=>(c&&(i.route=!0),l[m])}),params:new Proxy(r,{get:(l,m)=>(c&&i.params.add(m),l[m])}),data:(s==null?void 0:s.data)??null,url:At(t,()=>{c&&(i.url=!0)},l=>{c&&i.search_params.add(l)},A.hash),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:[...l.headers].length?l.headers:void 0,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const k=new URL(b,t);return c&&p(k.href),k.origin===t.origin&&(b=k.href.slice(t.origin.length)),te?Tt(b,k.href,m):Ut(b,m)},setHeaders:()=>{},depends:p,parent(){return c&&(i.parent=!0),n()},untrack(l){c=!1;try{return l()}finally{c=!0}}};o=await f.universal.load.call(null,d)??null}return{node:f,loader:e,server:s,universal:(u=f.universal)!=null&&u.load?{type:"data",data:o,uses:i}:null,data:o??(s==null?void 0:s.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(s==null?void 0:s.slash)}}function Fe(e,n,t,r,a,s){if(Se)return!0;if(!a)return!1;if(a.parent&&e||a.route&&n||a.url&&t)return!0;for(const o of a.search_params)if(r.has(o))return!0;for(const o of a.params)if(s[o]!==y.params[o])return!0;for(const o of a.dependencies)if(nt.some(c=>c(new URL(o))))return!0;return!1}function Ue(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function hn(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const r of t){const a=e.searchParams.getAll(r),s=n.searchParams.getAll(r);a.every(o=>s.includes(o))&&s.every(o=>a.includes(o))&&t.delete(r)}return t}function Ve({error:e,url:n,route:t,params:r}){return{type:"loaded",state:{error:e,url:n,route:t,params:r,branch:[]},props:{page:Le(I),constructors:[]}}}async function lt({id:e,invalidating:n,url:t,params:r,route:a,preload:s}){if((U==null?void 0:U.id)===e)return G.delete(U.token),U.promise;const{errors:o,layouts:c,leaf:i}=a,f=[...c,i];o.forEach(w=>w==null?void 0:w().catch(()=>{})),f.forEach(w=>w==null?void 0:w[1]().catch(()=>{}));let h=null;const u=y.url?e!==ae(y.url):!1,g=y.route?a.id!==y.route.id:!1,p=hn(y.url,t);let d=!1;const l=f.map((w,_)=>{var N;const E=y.branch[_],S=!!(w!=null&&w[0])&&((E==null?void 0:E.loader)!==w[1]||Fe(d,g,u,p,(N=E.server)==null?void 0:N.uses,r));return S&&(d=!0),S});if(l.some(Boolean)){try{h=await ht(t,l)}catch(w){const _=await D(w,{url:t,params:r,route:{id:e}});return G.has(s)?Ve({error:_,url:t,params:r,route:a}):ce({status:Z(w),error:_,url:t,route:a})}if(h.type==="redirect")return h}const m=h==null?void 0:h.nodes;let b=!1;const k=f.map(async(w,_)=>{var le;if(!w)return;const E=y.branch[_],S=m==null?void 0:m[_];if((!S||S.type==="skip")&&w[1]===(E==null?void 0:E.loader)&&!Fe(b,g,u,p,(le=E.universal)==null?void 0:le.uses,r))return E;if(b=!0,(S==null?void 0:S.type)==="error")throw S;return Ie({loader:w[1],url:t,params:r,route:a,parent:async()=>{var Oe;const Pe={};for(let fe=0;fe<_;fe+=1)Object.assign(Pe,(Oe=await k[fe])==null?void 0:Oe.data);return Pe},server_data_node:Ue(S===void 0&&w[0]?{type:"skip"}:S??null,w[0]?E==null?void 0:E.server:void 0)})});for(const w of k)w.catch(()=>{});const v=[];for(let w=0;w<f.length;w+=1)if(f[w])try{v.push(await k[w])}catch(_){if(_ instanceof be)return{type:"redirect",location:_.location};if(G.has(s))return Ve({error:await D(_,{params:r,url:t,route:{id:a.id}}),url:t,params:r,route:a});let E=Z(_),S;if(m!=null&&m.includes(_))E=_.status??E,S=_.error;else if(_ instanceof se)S=_.body;else{if(await j.updated.check())return await tt(),await B(t);S=await D(_,{params:r,url:t,route:{id:a.id}})}const N=await pn(w,v,o);return N?re({url:t,params:r,branch:v.slice(0,N.idx).concat(N.node),status:E,error:S,route:a}):await dt(t,{id:a.id},S,E)}else v.push(void 0);return re({url:t,params:r,branch:v,status:200,error:null,route:a,form:n?void 0:null})}async function pn(e,n,t){for(;e--;)if(t[e]){let r=e;for(;!n[r];)r-=1;try{return{idx:r+1,node:{node:await t[e](),loader:t[e],data:{},server:null,universal:null}}}catch{continue}}}async function ce({status:e,error:n,url:t,route:r}){const a={};let s=null;if(A.server_loads[0]===0)try{const c=await ht(t,[!0]);if(c.type!=="data"||c.nodes[0]&&c.nodes[0].type!=="data")throw 0;s=c.nodes[0]??null}catch{(t.origin!==J||t.pathname!==location.pathname||ke)&&await B(t)}try{const c=await Ie({loader:me,url:t,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Ue(s)}),i={node:await Q(),loader:Q,universal:null,server:null,data:null};return re({url:t,params:a,branch:[c,i],status:e,error:n,route:null})}catch(c){if(c instanceof be)return Re(new URL(c.location,location.href),{},0);throw c}}function Te(e,n){if(!e||oe(e,L,A.hash))return;let t;try{if(t=A.hooks.reroute({url:new URL(e)})??e,typeof t=="string"){const a=new URL(e);A.hash?a.hash=t:a.pathname=t,t=a}}catch{return}const r=ft(t);for(const a of ie){const s=a.exec(r);if(s)return{id:ae(e),invalidating:n,route:a,params:bt(s),url:e}}}function ft(e){return vt(A.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ae(e){return(A.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ut({url:e,type:n,intent:t,delta:r}){let a=!1;const s=gt(y,t,e,n);r!==void 0&&(s.navigation.delta=r);const o={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Y||rt.forEach(c=>c(o)),a?null:s}async function V({type:e,url:n,popped:t,keepfocus:r,noscroll:a,replace_state:s,state:o={},redirect_count:c=0,nav_token:i={},accept:f=Ce,block:h=Ce}){const u=Te(n,!1),g=ut({url:n,type:e,delta:t==null?void 0:t.delta,intent:u});if(!g){h();return}const p=R,d=T;f(),Y=!0,te&&j.navigating.set(K.current=g.navigation),ne=i;let l=u&&await lt(u);if(!l){if(oe(n,L,A.hash))return await B(n);l=await dt(n,{id:null},await D(new Ae(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(u==null?void 0:u.url)||n,ne!==i)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(c>=20)l=await ce({status:500,error:await D(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return Re(new URL(l.location,n).href,{},c+1,i),!1;else l.props.page.status>=400&&await j.updated.check()&&(await tt(),await B(n));if(un(),Ee(p),st(d),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),o=t?t.state:o,!t){const v=s?0:1,w={[C]:R+=v,[H]:T+=v,[Je]:o};(s?history.replaceState:history.pushState).call(history,w,"",n),s||ln(R,T)}if(U=null,l.props.page.state=o,te){y=l.state,l.props.page&&(l.props.page.url=n);const v=(await Promise.all(Array.from(fn,w=>w(g.navigation)))).filter(w=>typeof w=="function");if(v.length>0){let w=function(){v.forEach(_=>{q.delete(_)})};v.push(w),v.forEach(_=>{q.add(_)})}ot.$set(l.props),sn(l.props.page),at=!0}else ct(l,we,!1);const{activeElement:m}=document;await yt();const b=t?t.scroll:a?ve():null;if(De){const v=n.hash&&document.getElementById(decodeURIComponent(A.hash?n.hash.split("#")[2]??"":n.hash.slice(1)));b?scrollTo(b.x,b.y):v?v.scrollIntoView():scrollTo(0,0)}const k=document.activeElement!==m&&document.activeElement!==document.body;!r&&!k&&_n(),De=!0,l.props.page&&Object.assign(I,l.props.page),Y=!1,e==="popstate"&&it(T),g.fulfil(void 0),q.forEach(v=>v(g.navigation)),j.navigating.set(K.current=null)}async function dt(e,n,t,r){return e.origin===J&&e.pathname===location.pathname&&!ke?await ce({status:r,error:t,url:e,route:n}):await B(e)}function gn(){let e;O.addEventListener("mousemove",s=>{const o=s.target;clearTimeout(e),e=setTimeout(()=>{r(o,2)},20)});function n(s){s.defaultPrevented||r(s.composedPath()[0],1)}O.addEventListener("mousedown",n),O.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(s=>{for(const o of s)o.isIntersecting&&(pe(new URL(o.target.href)),t.unobserve(o.target))},{threshold:0});function r(s,o){const c=Ze(s,O);if(!c)return;const{url:i,external:f,download:h}=ge(c,L,A.hash);if(f||h)return;const u=X(c),g=i&&ae(y.url)===ae(i);if(!u.reload&&!g)if(o<=u.preload_data){const p=Te(i,!1);p&&dn(p)}else o<=u.preload_code&&pe(i)}function a(){t.disconnect();for(const s of O.querySelectorAll("a")){const{url:o,external:c,download:i}=ge(s,L,A.hash);if(c||i)continue;const f=X(s);f.reload||(f.preload_code===z.viewport&&t.observe(s),f.preload_code===z.eager&&pe(o))}}q.add(a),a()}function D(e,n){if(e instanceof se)return e.body;const t=Z(e),r=an(e);return A.hooks.handleError({error:e,event:n,status:t,message:r})??{message:r}}function mn(e,n={}){return e=new URL(ze(e)),e.origin!==J?Promise.reject(new Error("goto: invalid URL")):Re(e,n,0)}function wn(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Be(),!Y){const a=gt(y,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};rt.forEach(o=>o(s))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Be()}),(n=navigator.connection)!=null&&n.saveData||gn(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=Ze(t.composedPath()[0],O);if(!r)return;const{url:a,external:s,target:o,download:c}=ge(r,L,A.hash);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const i=X(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||c)return;const[h,u]=(A.hash?a.hash.replace(/^#/,""):a.href).split("#"),g=h===ue(location);if(s||i.reload&&(!g||!u)){ut({url:a,type:"link"})?Y=!0:t.preventDefault();return}if(u!==void 0&&g){const[,p]=y.url.href.split("#");if(p===u){if(t.preventDefault(),u===""||u==="top"&&r.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const d=r.ownerDocument.getElementById(decodeURIComponent(u));d&&(d.scrollIntoView(),d.focus())}return}if(F=!0,Ee(R),e(a),!i.replace_state)return;F=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),V({type:"link",url:a,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??a.href===location.href})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const c=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(oe(c,L,!1))return;const i=t.target,f=X(i);if(f.reload)return;t.preventDefault(),t.stopPropagation();const h=new FormData(i),u=a==null?void 0:a.getAttribute("name");u&&h.append(u,(a==null?void 0:a.getAttribute("value"))??""),c.search=new URLSearchParams(h).toString(),V({type:"form",url:c,keepfocus:f.keepfocus,noscroll:f.noscroll,replace_state:f.replace_state??c.href===location.href})}),addEventListener("popstate",async t=>{var r;if((r=t.state)!=null&&r[C]){const a=t.state[C];if(ne={},a===R)return;const s=x[a],o=t.state[Je]??{},c=new URL(t.state[Dt]??location.href),i=t.state[H],f=y.url?ue(location)===ue(y.url):!1;if(i===T&&(at||f)){o!==I.state&&(I.state=o),e(c),x[R]=ve(),s&&scrollTo(s.x,s.y),R=a;return}const u=a-R;await V({type:"popstate",url:c,popped:{state:o,scroll:s,delta:u},accept:()=>{R=a,T=i},block:()=>{history.go(-u)},nav_token:ne})}else if(!F){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{F?(F=!1,history.replaceState({...history.state,[C]:++R,[H]:T},"",location.href)):A.hash&&y.url.hash===location.hash&&V({type:"goto",url:y.url})});for(const t of document.querySelectorAll("link"))cn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&j.navigating.set(K.current=null)});function e(t){y.url=I.url=t,j.page.set(Le(I)),j.page.notify()}}async function yn(e,{status:n=200,error:t,node_ids:r,params:a,route:s,data:o,form:c}){ke=!0;const i=new URL(location.href);({params:a={},route:s={id:null}}=Te(i,!1)||{});let f,h=!0;try{const u=r.map(async(d,l)=>{const m=o[l];return m!=null&&m.uses&&(m.uses=pt(m.uses)),Ie({loader:A.nodes[d],url:i,params:a,route:s,parent:async()=>{const b={};for(let k=0;k<l;k+=1)Object.assign(b,(await u[k]).data);return b},server_data_node:Ue(m)})}),g=await Promise.all(u),p=ie.find(({id:d})=>d===s.id);if(p){const d=p.layouts;for(let l=0;l<d.length;l++)d[l]||g.splice(l,0,void 0)}f=re({url:i,params:a,branch:g,status:n,error:t,form:c,route:p??null})}catch(u){if(u instanceof be){await B(new URL(u.location,location.href));return}f=await ce({status:Z(u),error:await D(u,{url:i,params:a,route:s}),url:i,route:s}),e.textContent="",h=!1}f.props.page&&(f.props.page.state={}),ct(f,e,h)}async function ht(e,n){var a;const t=new URL(e);t.pathname=St(e.pathname),e.pathname.endsWith("/")&&t.searchParams.append(rn,"1"),t.searchParams.append(nn,n.map(s=>s?"1":"0").join(""));const r=await He(t.href);if(!r.ok){let s;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?s=await r.json():r.status===404?s="Not Found":r.status===500&&(s="Internal Error"),new se(r.status,s)}return new Promise(async s=>{var u;const o=new Map,c=r.body.getReader(),i=new TextDecoder;function f(g){return Qt(g,{...A.decoders,Promise:p=>new Promise((d,l)=>{o.set(p,{fulfil:d,reject:l})})})}let h="";for(;;){const{done:g,value:p}=await c.read();if(g&&!h)break;for(h+=!p&&h?`
2
- `:i.decode(p,{stream:!0});;){const d=h.indexOf(`
3
- `);if(d===-1)break;const l=JSON.parse(h.slice(0,d));if(h=h.slice(d+1),l.type==="redirect")return s(l);if(l.type==="data")(u=l.nodes)==null||u.forEach(m=>{(m==null?void 0:m.type)==="data"&&(m.uses=pt(m.uses),m.data=f(m.data))}),s(l);else if(l.type==="chunk"){const{id:m,data:b,error:k}=l,v=o.get(m);o.delete(m),k?v.reject(f(k)):v.fulfil(f(b))}}}})}function pt(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function _n(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=document.body,t=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),t!==null?n.setAttribute("tabindex",t):n.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const o=a[s],c=r.getRangeAt(s);if(o.commonAncestorContainer!==c.commonAncestorContainer||o.startContainer!==c.startContainer||o.endContainer!==c.endContainer||o.startOffset!==c.startOffset||o.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function gt(e,n,t,r){var i,f;let a,s;const o=new Promise((h,u)=>{a=h,s=u});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((i=e.route)==null?void 0:i.id)??null},url:e.url},to:t&&{params:(n==null?void 0:n.params)??null,route:{id:((f=n==null?void 0:n.route)==null?void 0:f.id)??null},url:t},willUnload:!n,type:r,complete:o},fulfil:a,reject:s}}function Le(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}export{Rn as a,j as s};
@@ -1 +0,0 @@
1
- import{a as t}from"../chunks/entry.BtjCrbiQ.js";export{t as start};