PageSourceSearch

https://sub314xxl-musicgen-continuation.hf.space/assets/index-43fc5da7.js

js sub314xxl-musicgen-continuation.hf.space collected 2026-10-03 10:23:04 UTC 7,513 bytes, 2 lines download raw bytes

1import{S as q,i as A,s as D,B as V,C as d,g as p,E as h,F as N,q as y,G as L,I as S,H as M,M as B,D as Z,K as I,r as z,f as O,N as Q,J as U,e as C,m as j,p as g,t as w,n as E,x as W,$ as X,h as x,j as $,l as F,o as G,y as ee}from"./index-ff81f4ae.js";/* empty css                                                    */import{B as le}from"./Button-9b3c2f8e.js";import{B as te}from"./BlockLabel-731be65f.js";import{E as ne}from"./Empty-0fb5ebb1.js";function se(s){let e,t;return{c(){e=V("svg"),t=V("path"),d(t,"fill","currentColor"),d(t,"d","M4 2H2v26a2 2 0 0 0 2 2h26v-2H4v-3h22v-8H4v-4h14V5H4Zm20 17v4H4v-4ZM16 7v4H4V7Z"),d(e,"xmlns","http://www.w3.org/2000/svg"),d(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),d(e,"aria-hidden","true"),d(e,"role","img"),d(e,"class","iconify iconify--carbon"),d(e,"width","100%"),d(e,"height","100%"),d(e,"preserveAspectRatio","xMidYMid meet"),d(e,"viewBox","0 0 32 32")},m(l,n){p(l,e,n),h(e,t)},p:N,i:N,o:N,d(l){l&&y(e)}}}class P extends q{constructor(e){super(),A(this,e,null,se,D,{})}}function J(s,e,t){const l=s.slice();return l[6]=e[t],l[8]=t,l}function K(s){let e,t=s[0].confidences,l=[];for(let n=0;n<t.length;n+=1)l[n]=T(J(s,t,n));return{c(){for(let n=0;n<l.length;n+=1)l[n].c();e=O()},m(n,a){for(let i=0;i<l.length;i+=1)l[i]&&l[i].m(n,a);p(n,e,a)},p(n,a){if(a&25){t=n[0].confidences;let i;for(i=0;i<t.length;i+=1){const o=J(n,t,i);l[i]?l[i].p(o,a):(l[i]=T(o),l[i].c(),l[i].m(e.parentNode,e))}for(;i<l.length;i+=1)l[i].d(1);l.length=t.length}},d(n){Q(l,n),n&&y(e)}}}function R(s){let e,t,l,n=Math.round(s[6].confidence*100)+"",a,i;return{c(){e=L("div"),t=M(),l=L("div"),a=S(n),i=S("%"),d(e,"class","line svelte-1mylvt5"),d(l,"class","confidence svelte-1mylvt5")},m(o,f){p(o,e,f),p(o,t,f),p(o,l,f),h(l,a),h(l,i)},p(o,f){f&1&&n!==(n=Math.round(o[6].confidence*100)+"")&&I(a,n)},d(o){o&&y(e),o&&y(t),o&&y(l)}}}function T(s){let e,t,l,n,a,i,o=s[6].label+"",f,_,r,H,v,m=s[0].confidences&&R(s);function c(){return s[5](s[8],s[6])}return{c(){e=L("div"),t=L("div"),l=L("div"),n=M(),a=L("div"),i=L("div"),f=S(o),_=M(),m&&m.c(),r=M(),d(l,"class","bar svelte-1mylvt5"),Z(l,"width",s[6].confidence*100+"%"),d(i,"class","text svelte-1mylvt5"),d(a,"class","label svelte-1mylvt5"),d(t,"class","inner-wrap svelte-1mylvt5"),d(e,"class","confidence-set group svelte-1mylvt5"),B(e,"selectable",s[3])},m(b,k){p(b,e,k),h(e,t),h(t,l),h(t,n),h(t,a),h(a,i),h(i,f),h(a,_),m&&m.m(a,null),h(e,r),H||(v=U(e,"click",c),H=!0)},p(b,k){s=b,k&1&&Z(l,"width",s[6].confidence*100+"%"),k&1&&o!==(o=s[6].label+"")&&I(f,o),s[0].confidences?m?m.p(s,k):(m=R(s),m.c(),m.m(a,null)):m&&(m.d(1),m=null),k&8&&B(e,"selectable",s[3])},d(b){b&&y(e),m&&m.d(),H=!1,v()}}}function ae(s){let e,t,l=s[0].label+"",n,a,i=typeof s[0]=="object"&&s[0].confidences&&K(s);return{c(){e=L("div"),t=L("div"),n=S(l),a=M(),i&&i.c(),d(t,"class","output-class svelte-1mylvt5"),B(t,"sr-only",!s[1]),B(t,"no-confidence",!("confidences"in s[0])),Z(t,"background-color",s[2]||"transparent")},m(o,f){p(o,e,f),h(e,t),h(t,n),h(e,a),i&&i.m(e,null)},p(o,[f]){f&1&&l!==(l=o[0].label+"")&&I(n,l),f&2&&B(t,"sr-only",!o[1]),f&1&&B(t,"no-confidence",!("confidences"in o[0])),f&4&&Z(t,"background-color",o[2]||"transparent"),typeof o[0]=="object"&&o[0].confidences?i?i.p(o,f):(i=K(o),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},i:N,o:N,d(o){o&&y(e),i&&i.d()}}}function ie(s,e,t){let{value:l}=e;const n=z();let{show_label:a=!0}=e,{color:i=void 0}=e,{selectable:o=!1}=e;const f=(_,r)=>{n("select",{index:_,value:r.label})};return s.$$set=_=>{"value"in _&&t(0,l=_.value),"show_label"in _&&t(1,a=_.show_label),"color"in _&&t(2,i=_.color),"selectable"in _&&t(3,o=_.selectable)},[l,a,i,o,n,f]}class oe extends q{constructor(e){super(),A(this,e,ie,ae,D,{value:0,show_label:1,color:2,selectable:3})}}function Y(s){let e,t;return e=new te({props:{Icon:P,label:s[5],disable:typeof s[6].container=="boolean"&&!s[6].container}}),{c(){C(e.$$.fragment)},m(l,n){j(e,l,n),t=!0},p(l,n){const a={};n&32&&(a.label=l[5]),n&64&&(a.disable=typeof l[6].container=="boolean"&&!l[6].container),e.$set(a)},i(l){t||(g(e.$$.fragment,l),t=!0)},o(l){w(e.$$.fragment,l),t=!1},d(l){E(e,l)}}}function ce(s){let e,t;return e=new ne({props:{$$slots:{default:[re]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},m(l,n){j(e,l,n),t=!0},p(l,n){const a={};n&16384&&(a.$$scope={dirty:n,ctx:l}
1),e.$set(a)},i(l){t||(g(e.$$.fragment,l),t=!0)},o(l){w(e.$$.fragment,l),t=!1},d(l){E(e,l)}}}function fe(s){let e,t;return e=new oe({props:{selectable:s[9],value:s[4],show_label:s[8],color:s[3]}}),e.$on("select",s[12]),{c(){C(e.$$.fragment)},m(l,n){j(e,l,n),t=!0},p(l,n){const a={};n&512&&(a.selectable=l[9]),n&16&&(a.value=l[4]),n&256&&(a.show_label=l[8]),n&8&&(a.color=l[3]),e.$set(a)},i(l){t||(g(e.$$.fragment,l),t=!0)},o(l){w(e.$$.fragment,l),t=!1},d(l){E(e,l)}}}function re(s){let e,t;return e=new P({}),{c(){C(e.$$.fragment)},m(l,n){j(e,l,n),t=!0},i(l){t||(g(e.$$.fragment,l),t=!0)},o(l){w(e.$$.fragment,l),t=!1},d(l){E(e,l)}}}function ue(s){let e,t,l,n,a,i,o;const f=[s[7]];let _={};for(let c=0;c<f.length;c+=1)_=W(_,f[c]);e=new X({props:_});let r=s[8]&&Y(s);const H=[fe,ce],v=[];function m(c,b){return c[10]!==void 0&&c[10]!==null?0:1}return n=m(s),a=v[n]=H[n](s),{c(){C(e.$$.fragment),t=M(),r&&r.c(),l=M(),a.c(),i=O()},m(c,b){j(e,c,b),p(c,t,b),r&&r.m(c,b),p(c,l,b),v[n].m(c,b),p(c,i,b),o=!0},p(c,b){const k=b&128?x(f,[$(c[7])]):{};e.$set(k),c[8]?r?(r.p(c,b),b&256&&g(r,1)):(r=Y(c),r.c(),g(r,1),r.m(l.parentNode,l)):r&&(F(),w(r,1,1,()=>{r=null}),G());let u=n;n=m(c),n===u?v[n].p(c,b):(F(),w(v[u],1,1,()=>{v[u]=null}),G(),a=v[n],a?a.p(c,b):(a=v[n]=H[n](c),a.c()),g(a,1),a.m(i.parentNode,i))},i(c){o||(g(e.$$.fragment,c),g(r),g(a),o=!0)},o(c){w(e.$$.fragment,c),w(r),w(a),o=!1},d(c){E(e,c),c&&y(t),r&&r.d(c),c&&y(l),v[n].d(c),c&&y(i)}}}function _e(s){let e,t;return e=new le({props:{test_id:"label",visible:s[2],elem_id:s[0],elem_classes:s[1],disable:typeof s[6].container=="boolean"&&!s[6].container,$$slots:{default:[ue]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},m(l,n){j(e,l,n),t=!0},p(l,[n]){const a={};n&4&&(a.visible=l[2]),n&1&&(a.elem_id=l[0]),n&2&&(a.elem_classes=l[1]),n&64&&(a.disable=typeof l[6].container=="boolean"&&!l[6].container),n&18424&&(a.$$scope={dirty:n,ctx:l}
1),e.$set(a)},i(l){t||(g(e.$$.fragment,l),t=!0)},o(l){w(e.$$.fragment,l),t=!1},d(l){E(e,l)}}}function be(s,e,t){let l,n,{elem_id:a=""}=e,{elem_classes:i=[]}=e,{visible:o=!0}=e,{color:f=void 0}=e,{value:_={}}=e,{label:r="Label"}=e,{style:H={}}=e,{loading_status:v}=e,{show_label:m}=e,{selectable:c=!1}=e;const b=z();function k(u){ee.call(this,s,u)}return s.$$set=u=>{"elem_id"in u&&t(0,a=u.elem_id),"elem_classes"in u&&t(1,i=u.elem_classes),"visible"in u&&t(2,o=u.visible),"color"in u&&t(3,f=u.color),"value"in u&&t(4,_=u.value),"label"in u&&t(5,r=u.label),"style"in u&&t(6,H=u.style),"loading_status"in u&&t(7,v=u.loading_status),"show_label"in u&&t(8,m=u.show_label),"selectable"in u&&t(9,c=u.selectable)},s.$$.update=()=>{s.$$.dirty&16&&t(11,{confidences:l,label:n}=_,l,(t(10,n),t(4,_))),s.$$.dirty&3072&&b("change")},[a,i,o,f,_,r,H,v,m,c,n,l,k]}class me extends q{constructor(e){super(),A(this,e,be,_e,D,{elem_id:0,elem_classes:1,visible:2,color:3,value:4,label:5,style:6,loading_status:7,show_label:8,selectable:9})}}const we=me,pe=["static"],ye=s=>({type:{payload:"{ label: string; confidences?: Array<{ label: string; confidence: number }>"},description:{payload:"output label and optional set of confidences per label"}});export{we as Component,ye as document,pe as modes};
2//# sourceMappingURL=index-43fc5da7.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.