3 lines
8.4 KiB
JavaScript
3 lines
8.4 KiB
JavaScript
|
|
import{Z as V,a3 as ne,aP as te,a9 as D,F as m,af as le,a4 as pe,g as z,K as he,a6 as me,a7 as Ee,a8 as Q,aa as F,a0 as O,ao as oe,aL as _e,av as j,A as we,aQ as b,_ as B,a2 as xe,am as ee,aO as Ae,aJ as X,x as be,aR as Ne,aS as Te,aT as Se,W as ue,Y as ve,aU as Y,q as ce,aF as U,aV as Ce,aI as Ie,X as Le,aW as Me,aX as Oe,aY as Re,aZ as De,a_ as Fe,a$ as He,p as ke,u as Ve,i as Ye,t as ye,e as ze,j as Be}from"./mO2F3zLa.js";import{f as de,a as ge}from"./Bh-96fzJ.js";import"./EiYUD4Mm.js";function ar(e,r){return r}function Ue(e,r,a){for(var f=[],n=r.length,s,t=r.length,c=0;c<n;c++){let g=r[c];ve(g,()=>{if(s){if(s.pending.delete(g),s.done.add(g),s.pending.size===0){var u=e.outrogroups;q(X(s.done)),u.delete(s),u.size===0&&(e.outrogroups=null)}}else t-=1},!1)}if(t===0){var l=f.length===0&&a!==null;if(l){var d=a,o=d.parentNode;Ie(o),o.append(d),e.items.clear()}q(r,!l)}else s={pending:new Set(r),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(s)}function q(e,r=!0){for(var a=0;a<e.length;a++)Le(e[a],r)}var re;function fr(e,r,a,f,n,s=null){var t=e,c=new Map,l=(r&te)!==0;if(l){var d=e;t=m?D(le(d)):d.appendChild(V())}m&&pe();var o=null,g=he(()=>{var v=a();return be(v)?v:v==null?[]:X(v)}),u,p=!0;function w(){i.fallback=o,qe(i,u,t,r,f),o!==null&&(u.length===0?(o.f&b)===0?ue(o):(o.f^=b,R(o,null,t)):ve(o,()=>{o=null}))}var x=ne(()=>{u=z(g);var v=u.length;let C=!1;if(m){var I=me(t)===Ee;I!==(v===0)&&(t=Q(),D(t),F(!1),C=!0)}for(var _=new Set,T=we,L=xe(),h=0;h<v;h+=1){m&&O.nodeType===oe&&O.data===_e&&(t=O,C=!0,F(!1));var S=u[h],M=f(S,h),E=p?null:c.get(M);E?(E.v&&j(E.v,S),E.i&&j(E.i,h),L&&T.skipped_effects.delete(E.e)):(E=Xe(c,p?t:re??(re=V()),S,M,h,n,r,a),p||(E.e.f|=b),c.set(M,E)),_.add(M)}if(v===0&&s&&!o&&(p?o=B(()=>s(t)):(o=B(()=>s(re??(re=V()))),o.f|=b)),m&&v>0&&D(Q()),!p)if(L){for(const[H,k]of c)_.has(H)||T.skipped_effects.add(k.e);T.oncommit(w),T.ondiscard(()=>{})}else w();C&&F(!0),z(g)}),i={effect:x,items:c,outrogroups:null,fallback:o};p=!1,m&&(t=O)}function qe(e,r,a,f,n){var E,H,k,$,G,K,P,W,Z;var s=(f&Ce)!==0,t=r.length,c=e.items,l=e.effect.first,d,o=null,g,u=[],p=[],w,x,i,v;if(s)for(v=0;v<t;v+=1)w=r[v],x=n(w,v),i=c.get(x).e,(i.f&b)===0&&((H=(E=i.nodes)==null?void 0:E.a)==null||H.measure(),(g??(g=new Set)).add(i));for(v=0;v<t;v+=1){if(w=r[v],x=n(w,v),i=c.get(x).e,e.outrogroups!==null)for(const A of e.outrogroups)A.pending.delete(i),A.done.delete(i);if((i.f&b)!==0)if(i.f^=b,i===l)R(i,null,a);else{var C=o?o.next:l;i===e.effect.last&&(e.effect.last=i.prev),i.prev&&(i.prev.next=i.next),i.next&&(i.next.prev=i.prev),N(e,o,i),N(e,i,C),R(i,C,a),o=i,u=[],p=[],l=o.next;continue}if((i.f&Y)!==0&&(ue(i),s&&(($=(k=i.nodes)==null?void 0:k.a)==null||$.unfix(),(g??(g=new Set)).delete(i))),i!==l){if(d!==void 0&&d.has(i)){if(u.length<p.length){var I=p[0],_;o=I.prev;var T=u[0],L=u[u.length-1];for(_=0;_<u.length;_+=1)R(u[_],I,a);for(_=0;_<p.length;_+=1)d.delete(p[_]);N(e,T.prev,L.next),N(e,o,T),N(e,L,I),l=I,o=L,v-=1,u=[],p=[]}else d.delete(i),R(i,l,a),N(e,i.prev,i.next),N(e,i,o===null?e.effect.first:o.next),N(e,o,i),o=i;continue}for(u=[],p=[];l!==null&&l!==i;)(d??(d=new Set)).add(l),p.push(l),l=l.next;if(l===null)continue}(i.f&b)===0&&u.push(i),o=i,l=i.next}if(e.outrogroups!==null){for(const A of e.outrogroups)A.pending.size===0&&(q(X(A.done)),(G=e.outrogroups)==null||G.delete(A));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||d!==void 0){var h=[];if(d!==void 0)for(i of d)(i.f&Y)===0&&h.push(i);for(;l!==null;)(l.f&Y)===0&&l!==e.fallback&&h.push(l),l=l.next;var S=h.length;if(S>0){var M=(f&te)!==0&&t===0?a:null;if(s){for(v=0;v<S;v+=1)(P=(K=h[v].nodes)==null?void 0:K.a)==null||P.measure();for(v=0;v<S;v+=1)(Z=(W=h[v].nodes)==null?void 0:W.a)==null||Z.fix()}Ue(e,h,M)}}s&&ce(()=>{var A,J;if(g!==void 0)for(i of g)(J=(A=i.nodes)==null?void 0:A.a)==null||J.apply()})}function Xe(e,r,a,f,n,s,t,c){var l=(t&Ne)!==0?(t&Te)===0?Ae(a,!1,!1):ee(a):null,d=(t&Se)!==0?ee(n):null;return{v:l,i:d,e:B(()=>(s(r,l??a,d??n,c),()=>{e.delete(f)}))}}function R(e,r,a){if(e.nodes)for(var f=e.nodes.start,n=e.nodes.end,s=r&&(r.f&b)===0?r.nodes.start:a;f!==null;
|
|||
|
|
\r\f \v\uFEFF`];function $e(e,r,a){var f=e==null?"":""+e;if(r&&(f=f?f+" "+r:r),a){for(var n in a)if(a[n])f=f?f+" "+n:n;else if(f.length)for(var s=n.length,t=0;(t=f.indexOf(n,t))>=0;){var c=t+s;(t===0||ae.includes(f[t-1]))&&(c===f.length||ae.includes(f[c]))?f=(t===0?"":f.substring(0,t))+f.substring(c+1):t=c}}return f===""?null:f}function fe(e,r=!1){var a=r?" !important;":";",f="";for(var n in e){var s=e[n];s!=null&&s!==""&&(f+=" "+n+": "+s+a)}return f}function y(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function ir(e,r){if(r){var a="",f,n;if(Array.isArray(r)?(f=r[0],n=r[1]):f=r,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,t=0,c=!1,l=[];f&&l.push(...Object.keys(f).map(y)),n&&l.push(...Object.keys(n).map(y));var d=0,o=-1;const x=e.length;for(var g=0;g<x;g++){var u=e[g];if(c?u==="/"&&e[g-1]==="*"&&(c=!1):s?s===u&&(s=!1):u==="/"&&e[g+1]==="*"?c=!0:u==='"'||u==="'"?s=u:u==="("?t++:u===")"&&t--,!c&&s===!1&&t===0){if(u===":"&&o===-1)o=g;else if(u===";"||g===x-1){if(o!==-1){var p=y(e.substring(d,o).trim());if(!l.includes(p)){u!==";"&&g++;var w=e.substring(d,g).trim();a+=" "+w+";"}}d=g+1,o=-1}}}}return f&&(a+=fe(f)),n&&(a+=fe(n,!0)),a=a.trim(),a===""?null:a}return e==null?null:String(e)}function Ge(e,r,a,f,n,s){var t=e.__className;if(m||t!==a||t===void 0){var c=$e(a,f,s);(!m||c!==e.getAttribute("class"))&&(c==null?e.removeAttribute("class"):e.className=c),e.__className=a}else if(s&&n!==s)for(var l in s){var d=!!s[l];(n==null||d!==!!n[l])&&e.classList.toggle(l,d)}return s}const Ke=Symbol("is custom element"),Pe=Symbol("is html");function nr(e){if(m){var r=!1,a=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var f=e.value;se(e,"value",null),e.value=f}if(e.hasAttribute("checked")){var n=e.checked;se(e,"checked",null),e.checked=n}}};e.__on_r=a,ce(a),Oe()}}function se(e,r,a,f){var n=We(e);m&&(n[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName==="LINK")||n[r]!==(n[r]=a)&&(r==="loading"&&(e[Re]=a),a==null?e.removeAttribute(r):typeof a!="string"&&Ze(e).includes(r)?e[r]=a:e.setAttribute(r,a))}function We(e){return e.__attributes??(e.__attributes={[Ke]:e.nodeName.includes("-"),[Pe]:e.namespaceURI===De})}var ie=new Map;function Ze(e){var r=e.getAttribute("is")||e.nodeName,a=ie.get(r);if(a)return a;ie.set(r,a=[]);for(var f,n=e,s=Element.prototype;s!==n;){f=He(n);for(var t in f)f[t].set&&a.push(t);n=Fe(n)}return a}var Je=de('<nav><div class="max-w-6xl mx-auto px-6 py-4 flex items-center justify-between"><a href="/" class="flex items-center gap-2"><img src="/logo.png" alt="ValueCurve" class="h-8 w-auto"/> <span class="font-semibold text-gray-900">Build ValueCurve</span></a> <div class="flex items-center gap-6"><a href="/guides/" class="text-gray-600 hover:text-gray-900 transition-colors text-sm font-medium">Guides</a> <a href="/tools/" class="text-gray-600 hover:text-gray-900 transition-colors text-sm font-medium">Tools</a> <a href="https://www.valuecurve.ai" target="_blank" rel="noopener" class="text-gray-600 hover:text-gray-900 transition-colors text-sm font-medium">Newsletter</a> <a href="/notebooks/" class="text-gray-600 hover:text-gray-900 transition-colors text-sm font-medium">Notebooks</a></div></div></nav>');function tr(e,r){ke(r,!0);let a=Be(!1);Ve(()=>{const n=()=>{Ye(a,window.scrollY>20)};return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)});var f=Je();ye(()=>Ge(f,1,`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${z(a)?"bg-white/90 backdrop-blur-md shadow-sm":"bg-transparent"}`)),ge(e,f),ze()}var Qe=de('<footer class="bg-gray-50 border-t border-gray-100 py-12"><div class="max-w-6xl mx-auto px-6"><div class="flex flex-col md:flex-row items-center justify-between gap-4"><div class="flex items-center gap-2"><img src="/logo.png" alt="ValueCurve" class="h-6 w-auto"/> <span class="text-sm text-gray-600">Build ValueCurve</span></div> <p class="text-sm text-gray-500">Data science guides and tools for builders.</p></div></div></footer>');function lr(e){var r=Qe();ge(e,r)}export{lr as F,tr as N,se as a,fr as e,sr as h,ar as i,nr as r,Ge as s,ir as
|