Buckets:
| import{s as se,n as F,r as Ce,h as De,t as _e,d as be}from"./scheduler.56725da7.js";import{S as le,i as oe,F as A,G as B,f as d,d as c,k as r,m as G,l as i,q as Q,r as X,v as pe,e as C,c as Z,s as R,a as N,g as ee,b as j,n as te,u as K,w as ve,t as O,z as Ne,o as q,y as Ee,p as re,j as Le,B as Ve}from"./index.18a26576.js";import{g as ze}from"./globals.7f7f1b26.js";import{e as xe}from"./each.e59479a4.js";import{aH as Me,aI as Ae}from"./MermaidChart.svelte_svelte_type_style_lang.c122da04.js";function Be(s){let e,a;return{c(){e=A("svg"),a=A("path"),this.h()},l(t){e=B(t,"svg",{class:!0,width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0});var n=d(e);a=B(n,"path",{d:!0,stroke:!0}),d(a).forEach(c),n.forEach(c),this.h()},h(){r(a,"d","M1 1L6 6L11 1"),r(a,"stroke","currentColor"),r(e,"class",s[0]),r(e,"width","1em"),r(e,"height","1em"),r(e,"viewBox","0 0 12 7"),r(e,"fill","none"),r(e,"xmlns","http://www.w3.org/2000/svg")},m(t,n){G(t,e,n),i(e,a)},p(t,[n]){n&1&&r(e,"class",t[0])},i:F,o:F,d(t){t&&c(e)}}}function Te(s,e,a){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&a(0,t=n.classNames)},[t]}class Ue extends le{constructor(e){super(),oe(this,e,Te,Be,se,{classNames:0})}}function Oe(s){let e,a,t,n;return{c(){e=A("svg"),a=A("path"),t=A("path"),n=A("path"),this.h()},l(l){e=B(l,"svg",{class:!0,xmlns:!0,"aria-hidden":!0,fill:!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var o=d(e);a=B(o,"path",{d:!0}),d(a).forEach(c),t=B(o,"path",{d:!0}),d(t).forEach(c),n=B(o,"path",{d:!0}),d(n).forEach(c),o.forEach(c),this.h()},h(){r(a,"d","M31,16l-7,7l-1.41-1.41L28.17,16l-5.58-5.59L24,9l7,7z"),r(t,"d","M1,16l7-7l1.41,1.41L3.83,16l5.58,5.59L8,23l-7-7z"),r(n,"d","M12.419,25.484L17.639,6.552l1.932,0.518L14.351,26.002z"),r(e,"class",s[0]),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"aria-hidden","true"),r(e,"fill","currentColor"),r(e,"focusable","false"),r(e,"role","img"),r(e,"width","1em"),r(e,"height","1em"),r(e,"preserveAspectRatio","xMidYMid meet"),r(e,"viewBox","0 0 32 32")},m(l,o){G(l,e,o),i(e,a),i(e,t),i(e,n)},p(l,[o]){o&1&&r(e,"class",l[0])},i:F,o:F,d(l){l&&c(e)}}}function Pe(s,e,a){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&a(0,t=n.classNames)},[t]}class Se extends le{constructor(e){super(),oe(this,e,Pe,Oe,se,{classNames:0})}}function Re(s){let e,a,t;return{c(){e=A("svg"),a=A("path"),t=A("path"),this.h()},l(n){e=B(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var l=d(e);a=B(l,"path",{d:!0}),d(a).forEach(c),t=B(l,"path",{d:!0}),d(t).forEach(c),l.forEach(c),this.h()},h(){r(a,"d","M7 7h10v10"),r(t,"d","M7 17 17 7"),r(e,"class",s[0]),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","24"),r(e,"height","24"),r(e,"viewBox","0 0 24 24"),r(e,"fill","none"),r(e,"stroke","currentColor"),r(e,"stroke-width","1.75"),r(e,"stroke-linecap","round"),r(e,"stroke-linejoin","round")},m(n,l){G(n,e,l),i(e,a),i(e,t)},p(n,[l]){l&1&&r(e,"class",n[0])},i:F,o:F,d(n){n&&c(e)}}}function je(s,e,a){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&a(0,t=n.classNames)},[t]}class Ie extends le{constructor(e){super(),oe(this,e,je,Re,se,{classNames:0})}}function qe(s){let e,a,t,n;return{c(){e=A("svg"),a=A("title"),t=Q("OpenAI"),n=A("path"),this.h()},l(l){e=B(l,"svg",{class:!0,fill:!0,"fill-rule":!0,height:!0,viewBox:!0,width:!0,xmlns:!0});var o=d(e);a=B(o,"title",{});var f=d(a);t=X(f,"OpenAI"),f.forEach(c),n=B(o,"path",{d:!0}),d(n).forEach(c),o.forEach(c),this.h()},h(){r(n,"d","M21.55 10.004a5.416 5.416 0 00-.478-4.501c-1.217-2.09-3.662-3.166-6.05-2.66A5.59 5.59 0 0010.831 1C8.39.995 6.224 2.546 5.473 4.838A5.553 5.553 0 001.76 7.496a5.487 5.487 0 00.691 6.5 5.416 5.416 0 00.477 4.502c1.217 2.09 3.662 3.165 6.05 2.66A5.586 5.586 0 0013.168 23c2.443.006 4.61-1.546 5.361-3.84a5.553 5.553 0 003.715-2.66 5.488 5.488 0 00-.693-6.497v.001zm-8.381 11.558a4.199 4.199 0 01-2.675-.954c.034-.018.093-.05.132-.074l4.44-2.53a.71.71 0 00.364-.623v-6.176l1.877 1.069c.02.01.033.029.036.05v5.115c-.003 2.274-1.87 4.118-4.174 4.123zM4.192 17.78a4.059 4.059 0 01-.498-2.763c.032.02.09.055.131.078l4.44 2.53c.225.13.504.13.73 0l5.42-3.088v2.138a.068.068 0 01-.027.057L9.9 19.288c-1.999 1.136-4.552.46-5.707-1.51h-.001zM3.023 8.216A4.15 4.15 0 015.198 6.41l-.002.151v5.06a.711.711 0 00.364.624l5.42 3.087-1.876 1.07a.067.067 0 01-.063.005l-4.489-2.559c-1.995-1.14-2.679-3.658-1.53-5.63h.001zm15.417 3.54l-5.42-3.088L14.896 7.6a.067.067 0 01.063-.006l4.489 2.557c1.998 1.14 2.683 3.662 1.529 5.633a4.163 4.163 0 01-2.174 1.807V12.38a.71.71 0 00-.363-.623zm1.867-2.773a6.04 6.04 0 00-.132-.078l-4.44-2.53a.731.731 0 00-.729 0l-5.42 3.088V7.325a.068.068 0 01.027-.057L14.1 4.713c2-1.137 4.555-.46 5.707 1.513.487.833.664 1.809.499 2.757h.001zm-11.741 3.81l-1.877-1.068a.065.065 0 01-.036-.051V6.559c.001-2.277 1.873-4.122 4.181-4.12.976 0 1.92.338 2.671.954-.034.018-.092.05-.131.073l-4.44 2.53a.71.71 0 00-.365.623l-.003 6.173v.002zm1.02-2.168L12 9.25l2.414 1.375v2.75L12 14.75l-2.415-1.375v-2.75z"),r(e,"class",s[0]),r(e,"fill","currentColor"),r(e,"fill-rule","evenodd"),r(e,"height","1em"),r(e,"viewBox","0 0 24 24"),r(e,"width","1em"),r(e,"xmlns","http://www.w3.org/2000/svg")},m(l,o){G(l,e,o),i(e,a),i(a,t),i(e,n)},p(l,[o]){o&1&&r(e,"class",l[0])},i:F,o:F,d(l){l&&c(e)}}}function We(s,e,a){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&a(0,t=n.classNames)},[t]}class Fe extends le{constructor(e){super(),oe(this,e,We,qe,se,{classNames:0})}}function He(s){let e,a,t,n;return{c(){e=A("svg"),a=A("title"),t=Q("Anthropic"),n=A("path"),this.h()},l(l){e=B(l,"svg",{class:!0,fill:!0,height:!0,viewBox:!0,width:!0,xmlns:!0});var o=d(e);a=B(o,"title",{});var f=d(a);t=X(f,"Anthropic"),f.forEach(c),n=B(o,"path",{d:!0}),d(n).forEach(c),o.forEach(c),this.h()},h(){r(n,"d","M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z"),r(e,"class",s[0]),r(e,"fill","currentColor"),r(e,"height","1em"),r(e,"viewBox","0 0 24 24"),r(e,"width","1em"),r(e,"xmlns","http://www.w3.org/2000/svg")},m(l,o){G(l,e,o),i(e,a),i(a,t),i(e,n)},p(l,[o]){o&1&&r(e,"class",l[0])},i:F,o:F,d(l){l&&c(e)}}}function Ge(s,e,a){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&a(0,t=n.classNames)},[t]}class Ke extends le{constructor(e){super(),oe(this,e,Ge,He,se,{classNames:0})}}function Ye(s){let e,a,t,n,l;return{c(){e=A("svg"),a=A("title"),t=Q("ModelContextProtocol"),n=A("path"),l=A("path"),this.h()},l(o){e=B(o,"svg",{xmlns:!0,fill:!0,"fill-rule":!0,height:!0,style:!0,viewBox:!0,width:!0,class:!0});var f=d(e);a=B(f,"title",{});var E=d(a);t=X(E,"ModelContextProtocol"),E.forEach(c),n=B(f,"path",{d:!0}),d(n).forEach(c),l=B(f,"path",{d:!0}),d(l).forEach(c),f.forEach(c),this.h()},h(){r(n,"d","M15.688 2.343a2.588 2.588 0 00-3.61 0l-9.626 9.44a.863.863 0 01-1.203 0 .823.823 0 010-1.18l9.626-9.44a4.313 4.313 0 016.016 0 4.116 4.116 0 011.204 3.54 4.3 4.3 0 013.609 1.18l.05.05a4.115 4.115 0 010 5.9l-8.706 8.537a.274.274 0 000 .393l1.788 1.754a.823.823 0 010 1.18.863.863 0 01-1.203 0l-1.788-1.753a1.92 1.92 0 010-2.754l8.706-8.538a2.47 2.47 0 000-3.54l-.05-.049a2.588 2.588 0 00-3.607-.003l-7.172 7.034-.002.002-.098.097a.863.863 0 01-1.204 0 .823.823 0 010-1.18l7.273-7.133a2.47 2.47 0 00-.003-3.537z"),r(l,"d","M14.485 4.703a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a4.115 4.115 0 000 5.9 4.314 4.314 0 006.016 0l7.12-6.982a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a2.588 2.588 0 01-3.61 0 2.47 2.47 0 010-3.54l7.12-6.982z"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"fill","currentColor"),r(e,"fill-rule","evenodd"),r(e,"height","1em"),pe(e,"flex","none"),pe(e,"line-height","1"),r(e,"viewBox","0 0 24 24"),r(e,"width","1em"),r(e,"class",s[0])},m(o,f){G(o,e,f),i(e,a),i(a,t),i(e,n),i(e,l)},p(o,[f]){f&1&&r(e,"class",o[0])},i:F,o:F,d(o){o&&c(e)}}}function Je(s,e,a){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&a(0,t=n.classNames)},[t]}class Qe extends le{constructor(e){super(),oe(this,e,Je,Ye,se,{classNames:0})}}const{window:fe}=ze;function ke(s,e,a){const t=s.slice();return t[36]=e[a],t}function ye(s){let e,a,t,n,l,o,f,E,T,D,k,y,M,P,p,w,L,U,m,g,$,I,W,v,V="View this page as plain text",z,S,Y,ae;o=new Me({props:{classNames:"w-4 h-4 shrink-0"}}),L=new Se({props:{classNames:"w-4 h-4 shrink-0"}}),I=new Ie({props:{classNames:"w-4 h-4 text-gray-500 dark:text-gray-300 shrink-0"}});let J=xe(s[9]),b=[];for(let h=0;h<J.length;h+=1)b[h]=$e(ke(s,J,h));const he=h=>q(b[h],1,1,()=>{b[h]=null});return{c(){e=C("div"),a=R(),t=C("div"),n=C("button"),l=C("div"),Z(o.$$.fragment),f=R(),E=C("div"),T=C("div"),D=Q(s[0]),k=R(),y=C("div"),M=Q(s[1]),P=R(),p=C("button"),w=C("div"),Z(L.$$.fragment),U=R(),m=C("div"),g=C("div"),$=Q(`View as Markdown | |
| `),Z(I.$$.fragment),W=R(),v=C("div"),v.textContent=V,z=R();for(let h=0;h<b.length;h+=1)b[h].c();this.h()},l(h){e=N(h,"DIV",{class:!0,"aria-hidden":!0,style:!0}),d(e).forEach(c),a=j(h),t=N(h,"DIV",{role:!0,class:!0,style:!0,"aria-label":!0});var x=d(t);n=N(x,"BUTTON",{role:!0,class:!0});var _=d(n);l=N(_,"DIV",{class:!0});var ne=d(l);ee(o.$$.fragment,ne),ne.forEach(c),f=j(_),E=N(_,"DIV",{class:!0});var ie=d(E);T=N(ie,"DIV",{class:!0});var ue=d(T);D=X(ue,s[0]),ue.forEach(c),k=j(ie),y=N(ie,"DIV",{class:!0});var u=d(y);M=X(u,s[1]),u.forEach(c),ie.forEach(c),_.forEach(c),P=j(x),p=N(x,"BUTTON",{role:!0,class:!0});var H=d(p);w=N(H,"DIV",{class:!0});var de=d(w);ee(L.$$.fragment,de),de.forEach(c),U=j(H),m=N(H,"DIV",{class:!0});var ce=d(m);g=N(ce,"DIV",{class:!0});var me=d(g);$=X(me,`View as Markdown | |
| `),ee(I.$$.fragment,me),me.forEach(c),W=j(ce),v=N(ce,"DIV",{class:!0,"data-svelte-h":!0}),Le(v)!=="svelte-8wg9lb"&&(v.textContent=V),ce.forEach(c),H.forEach(c),z=j(x);for(let ge=0;ge<b.length;ge+=1)b[ge].l(x);x.forEach(c),this.h()},h(){r(e,"class","fixed inset-0 z-40"),r(e,"aria-hidden","true"),pe(e,"background","transparent"),r(l,"class","border border-gray-200 dark:border-gray-850 rounded-lg p-1.5"),r(T,"class","text-sm font-medium text-gray-800 dark:text-gray-300 flex items-center gap-1"),r(y,"class","text-xs text-gray-600 dark:text-gray-400"),r(E,"class","flex flex-col px-1"),r(n,"role","menuitem"),r(n,"class",we),r(w,"class","border border-gray-200 dark:border-gray-850 rounded-lg p-1.5"),r(g,"class","text-sm font-medium text-gray-800 dark:text-gray-300 flex items-center gap-1"),r(v,"class","text-xs text-gray-600 dark:text-gray-400"),r(m,"class","flex flex-col px-1"),r(p,"role","menuitem"),r(p,"class",we),r(t,"role","menu"),r(t,"class","fixed z-50 backdrop-blur-xl rounded-xl max-h-[420px] overflow-y-auto p-1 border flex flex-col border-gray-200 bg-white dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200"),r(t,"style",s[8]),r(t,"aria-label","Copy menu")},m(h,x){G(h,e,x),G(h,a,x),G(h,t,x),i(t,n),i(n,l),te(o,l,null),i(n,f),i(n,E),i(E,T),i(T,D),i(E,k),i(E,y),i(y,M),i(t,P),i(t,p),i(p,w),te(L,w,null),i(p,U),i(p,m),i(m,g),i(g,$),te(I,g,null),i(m,W),i(m,v),i(t,z);for(let _=0;_<b.length;_+=1)b[_]&&b[_].m(t,null);s[23](t),S=!0,Y||(ae=[K(e,"click",s[11]),K(n,"click",s[20]),K(p,"click",s[21])],Y=!0)},p(h,x){if((!S||x[0]&1)&&ve(D,h[0]),(!S||x[0]&2)&&ve(M,h[1]),x[0]&16896){J=xe(h[9]);let _;for(_=0;_<J.length;_+=1){const ne=ke(h,J,_);b[_]?(b[_].p(ne,x),O(b[_],1)):(b[_]=$e(ne),b[_].c(),O(b[_],1),b[_].m(t,null))}for(Ne(),_=J.length;_<b.length;_+=1)he(_);Ee()}(!S||x[0]&256)&&r(t,"style",h[8])},i(h){if(!S){O(o.$$.fragment,h),O(L.$$.fragment,h),O(I.$$.fragment,h);for(let x=0;x<J.length;x+=1)O(b[x]);S=!0}},o(h){q(o.$$.fragment,h),q(L.$$.fragment,h),q(I.$$.fragment,h),b=b.filter(Boolean);for(let x=0;x<b.length;x+=1)q(b[x]);S=!1},d(h){h&&(c(e),c(a),c(t)),re(o),re(L),re(I),Ve(b,h),s[23](null),Y=!1,Ce(ae)}}}function Xe(s){let e,a;return e=new Qe({props:{classNames:"w-4 h-4 shrink-0"}}),{c(){Z(e.$$.fragment)},l(t){ee(e.$$.fragment,t)},m(t,n){te(e,t,n),a=!0},i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){q(e.$$.fragment,t),a=!1},d(t){re(e,t)}}}function Ze(s){let e,a;return e=new Ke({props:{classNames:"w-4 h-4 shrink-0"}}),{c(){Z(e.$$.fragment)},l(t){ee(e.$$.fragment,t)},m(t,n){te(e,t,n),a=!0},i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){q(e.$$.fragment,t),a=!1},d(t){re(e,t)}}}function et(s){let e,a;return e=new Fe({props:{classNames:"w-4 h-4 shrink-0"}}),{c(){Z(e.$$.fragment)},l(t){ee(e.$$.fragment,t)},m(t,n){te(e,t,n),a=!0},i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){q(e.$$.fragment,t),a=!1},d(t){re(e,t)}}}function $e(s){let e,a,t,n,l,o,f,E=s[36].label+"",T,D,k,y=s[36].description+"",M,P,p,w,L,U,m;const g=[et,Ze,Xe],$=[];function I(v,V){return v[36].icon==="chatgpt"?0:v[36].icon==="claude"?1:v[36].icon==="mcp"?2:-1}~(t=I(s))&&(n=$[t]=g[t](s)),p=new Ie({props:{classNames:"w-4 h-4 text-gray-500 dark:text-gray-300"}});function W(){return s[22](s[36])}return{c(){e=C("button"),a=C("div"),n&&n.c(),l=R(),o=C("div"),f=C("div"),T=Q(E),D=R(),k=C("div"),M=Q(y),P=R(),Z(p.$$.fragment),w=R(),this.h()},l(v){e=N(v,"BUTTON",{role:!0,class:!0});var V=d(e);a=N(V,"DIV",{class:!0});var z=d(a);n&&n.l(z),z.forEach(c),l=j(V),o=N(V,"DIV",{class:!0});var S=d(o);f=N(S,"DIV",{class:!0});var Y=d(f);T=X(Y,E),Y.forEach(c),D=j(S),k=N(S,"DIV",{class:!0});var ae=d(k);M=X(ae,y),ae.forEach(c),S.forEach(c),P=j(V),ee(p.$$.fragment,V),w=j(V),V.forEach(c),this.h()},h(){r(a,"class","border border-gray-200 dark:border-gray-850 rounded-lg p-1.5"),r(f,"class","text-sm font-medium text-gray-800 dark:text-gray-200 flex items-center gap-1"),r(k,"class","text-xs text-gray-600 dark:text-gray-400"),r(o,"class","flex flex-col px-1"),r(e,"role","menuitem"),r(e,"class",we)},m(v,V){G(v,e,V),i(e,a),~t&&$[t].m(a,null),i(e,l),i(e,o),i(o,f),i(f,T),i(o,D),i(o,k),i(k,M),i(e,P),te(p,e,null),i(e,w),L=!0,U||(m=K(e,"click",W),U=!0)},p(v,V){s=v},i(v){L||(O(n),O(p.$$.fragment,v),L=!0)},o(v){q(n),q(p.$$.fragment,v),L=!1},d(v){v&&c(e),~t&&$[t].d(),re(p),U=!1,m()}}}function tt(s){let e,a,t,n,l,o,f,E=(s[5]?"Copied":s[0])+"",T,D,k,y,M,P,p,w,L,U;l=new Me({props:{classNames:"w-3 h-3 max-sm:w-2.5 max-sm:h-2.5"}}),y=new Ue({props:{classNames:`transition-transform text-gray-400 overflow-visible w-3 h-3 max-sm:w-2.5 max-sm:h-2.5 ${s[4]?"rotate-180":"rotate-0"}`}});let m=s[4]&&ye(s);return{c(){e=C("div"),a=C("div"),t=C("button"),n=C("span"),Z(l.$$.fragment),o=R(),f=C("span"),T=Q(E),D=R(),k=C("button"),Z(y.$$.fragment),P=R(),m&&m.c(),this.h()},l(g){e=N(g,"DIV",{class:!0,style:!0});var $=d(e);a=N($,"DIV",{class:!0});var I=d(a);t=N(I,"BUTTON",{class:!0,"aria-live":!0});var W=d(t);n=N(W,"SPAN",{class:!0});var v=d(n);ee(l.$$.fragment,v),v.forEach(c),o=j(W),f=N(W,"SPAN",{});var V=d(f);T=X(V,E),V.forEach(c),W.forEach(c),D=j(I),k=N(I,"BUTTON",{class:!0,"aria-haspopup":!0,"aria-expanded":!0,"aria-label":!0});var z=d(k);ee(y.$$.fragment,z),z.forEach(c),I.forEach(c),P=j($),m&&m.l($),$.forEach(c),this.h()},h(){r(n,"class","inline-flex items-center justify-center rounded-md p-0.5 max-sm:p-0"),r(t,"class","inline-flex items-center gap-1 max-sm:gap-0.5 h-6 max-sm:h-5 px-2 max-sm:px-1.5 text-[11px] max-sm:text-[9px] font-medium text-gray-800 border border-r-0 rounded-l-md max-sm:rounded-l-sm border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800"),r(t,"aria-live","polite"),r(k,"class","inline-flex items-center justify-center w-6 max-sm:w-5 h-6 max-sm:h-5 disabled:pointer-events-none text-sm text-gray-500 hover:text-gray-700 dark:hover:text-white rounded-r-md max-sm:rounded-r-sm border border-l transition border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800"),r(k,"aria-haspopup","menu"),r(k,"aria-expanded",s[4]),r(k,"aria-label",M=s[4]?"Close copy menu":"Open copy menu"),r(a,"class","inline-flex rounded-md max-sm:rounded-sm"),r(e,"class",p=`items-center shrink-0 min-w-[100px] max-sm:min-w-[50px] justify-end ml-auto flex${s[2]?` ${s[2]}`:""}`),r(e,"style",s[3])},m(g,$){G(g,e,$),i(e,a),i(a,t),i(t,n),te(l,n,null),i(t,o),i(t,f),i(f,T),i(a,D),i(a,k),te(y,k,null),s[19](a),i(e,P),m&&m.m(e,null),w=!0,L||(U=[K(fe,"mousedown",s[15]),K(fe,"keydown",s[16]),K(fe,"resize",s[17]),K(fe,"scroll",s[18]),K(t,"click",s[10]),K(k,"click",s[12])],L=!0)},p(g,$){(!w||$[0]&33)&&E!==(E=(g[5]?"Copied":g[0])+"")&&ve(T,E);const I={};$[0]&16&&(I.classNames=`transition-transform text-gray-400 overflow-visible w-3 h-3 max-sm:w-2.5 max-sm:h-2.5 ${g[4]?"rotate-180":"rotate-0"}`),y.$set(I),(!w||$[0]&16)&&r(k,"aria-expanded",g[4]),(!w||$[0]&16&&M!==(M=g[4]?"Close copy menu":"Open copy menu"))&&r(k,"aria-label",M),g[4]?m?(m.p(g,$),$[0]&16&&O(m,1)):(m=ye(g),m.c(),O(m,1),m.m(e,null)):m&&(Ne(),q(m,1,1,()=>{m=null}),Ee()),(!w||$[0]&4&&p!==(p=`items-center shrink-0 min-w-[100px] max-sm:min-w-[50px] justify-end ml-auto flex${g[2]?` ${g[2]}`:""}`))&&r(e,"class",p),(!w||$[0]&8)&&r(e,"style",g[3])},i(g){w||(O(l.$$.fragment,g),O(y.$$.fragment,g),O(m),w=!0)},o(g){q(l.$$.fragment,g),q(y.$$.fragment,g),q(m),w=!1},d(g){g&&c(e),re(l),re(y),s[19](null),m&&m.d(),L=!1,Ce(U)}}}const we="cursor-pointer text-sm group relative w-full select-none outline-none flex items-center gap-1 px-1.5 py-1.5 rounded-xl text-left transition border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800";function rt(s,e,a){let{label:t="Copy page"}=e,{markdownDescription:n="Copy page as Markdown for LLMs"}=e,{containerClass:l=""}=e,{containerStyle:o=""}=e;const f=typeof window<"u",E=typeof document<"u";function T(){return!f||!window.location?void 0:window.location.href.replace(/#.*$/,"")}const D=T()??"",k=D.endsWith(".md")?D:D+".md";let y=null,M=!1,P=!1,p=null,w=null,L="",U=null,m=null,g=null;const $=[{label:"Open in ChatGPT",description:"Ask questions about this page",icon:"chatgpt",buildUrl:()=>y?`https://chatgpt.com/?hints=search&q=${y}`:"https://chatgpt.com"},{label:"Open in Claude",description:"Ask questions about this page",icon:"claude",buildUrl:()=>y?`https://claude.ai/new?q=${y}`:"https://claude.ai/new"},{label:"Connect to MCP Client",description:"Install MCP server on Cursor, VS Code, etc.",icon:"mcp",buildUrl:()=>"https://huggingface.co/mcp"}];function I(){y||!f||(y=encodeURIComponent(`Read from ${D} so I can ask questions about it.`))}async function W(){return!f||typeof fetch!="function"||!D?"":(I(),m||(g||(g=fetch(D,{headers:{Accept:"text/plain"}}).then(u=>{if(!u.ok)throw new Error(`Failed to fetch source content: ${u.status}`);return u.text()}).then(u=>(m=u,u)).catch(u=>(console.error("Unable to fetch remote markdown",u),m="",""))),g))}async function v(){if(!f){console.warn("Clipboard API unavailable");return}try{const u=await W();if(!u){console.warn("Nothing to copy");return}if(typeof navigator<"u"&&!!navigator.clipboard&&typeof navigator.clipboard.writeText=="function")await navigator.clipboard.writeText(u);else if(E)Ae(u);else{console.warn("Clipboard API unavailable");return}a(5,P=!0),await _e(),U&&clearTimeout(U),U=setTimeout(()=>{a(5,P=!1)},2e3)}catch(u){console.error("Failed to write to clipboard",u)}}function V(){a(4,M=!0),f&&p&&_e().then(()=>{if(!p)return;const u=p.getBoundingClientRect(),H=10,de=Math.max(u.width+80,220),ce=Math.max(window.innerWidth-u.right,H);a(8,L=`top:${u.bottom+H}px;right:${ce}px;min-width:${de}px;`)})}function z(){a(4,M=!1)}function S(){M?z():V()}function Y(){f&&(window.open(k,"_blank","noopener,noreferrer"),z())}function ae(u){I(),f&&window.open(u.buildUrl(),"_blank","noopener,noreferrer"),z()}function J(u){if(!M||!f)return;const H=u.target;w!=null&&w.contains(H)||p!=null&&p.contains(H)||z()}function b(u){u.key==="Escape"&&M&&z()}function he(){M&&z()}function h(){M&&z()}De(()=>{U&&clearTimeout(U)});function x(u){be[u?"unshift":"push"](()=>{p=u,a(6,p)})}const _=()=>{v(),z()},ne=()=>{Y()},ie=u=>ae(u);function ue(u){be[u?"unshift":"push"](()=>{w=u,a(7,w)})}return s.$$set=u=>{"label"in u&&a(0,t=u.label),"markdownDescription"in u&&a(1,n=u.markdownDescription),"containerClass"in u&&a(2,l=u.containerClass),"containerStyle"in u&&a(3,o=u.containerStyle)},[t,n,l,o,M,P,p,w,L,$,v,z,S,Y,ae,J,b,he,h,x,_,ne,ie,ue]}class it extends le{constructor(e){super(),oe(this,e,rt,tt,se,{label:0,markdownDescription:1,containerClass:2,containerStyle:3},null,[-1,-1])}}export{it as C}; | |
Xet Storage Details
- Size:
- 20.3 kB
- Xet hash:
- 01ee19371c0de5450b8478bccf147dee8bbe84970954b8c591c863f0e0542881
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.