Spaces:
Runtime error
Runtime error
import{$ as G}from"./index-CP09mL-w.js";const L="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='10'%20fill='none'%3e%3cpath%20fill='%23FF3270'%20d='M1.93%206.03v2.04h2.04V6.03H1.93Z'/%3e%3cpath%20fill='%23861FFF'%20d='M6.03%206.03v2.04h2.04V6.03H6.03Z'/%3e%3cpath%20fill='%23097EFF'%20d='M1.93%201.93v2.04h2.04V1.93H1.93Z'/%3e%3cpath%20fill='%23000'%20fill-rule='evenodd'%20d='M.5%201.4c0-.5.4-.9.9-.9h3.1a.9.9%200%200%201%20.87.67A2.44%202.44%200%200%201%209.5%202.95c0%20.65-.25%201.24-.67%201.68.39.1.67.46.67.88v3.08c0%20.5-.4.91-.9.91H1.4a.9.9%200%200%201-.9-.9V1.4Zm1.43.53v2.04h2.04V1.93H1.93Zm0%206.14V6.03h2.04v2.04H1.93Zm4.1%200V6.03h2.04v2.04H6.03Zm0-5.12a1.02%201.02%200%201%201%202.04%200%201.02%201.02%200%200%201-2.04%200Z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23FFD702'%20d='M7.05%201.93a1.02%201.02%200%201%200%200%202.04%201.02%201.02%200%200%200%200-2.04Z'/%3e%3c/svg%3e",{SvelteComponent:T,append:o,attr:_,binding_callbacks:j,component_subscribe:z,create_slot:B,detach:A,element:b,flush:u,get_all_dirty_from_scope:I,get_slot_changes:J,init:K,insert:D,safe_not_equal:N,set_data:E,set_style:M,space:V,text:k,toggle_class:w,transition_in:O,transition_out:P,update_slot_base:Q}=window.__gradio__svelte__internal;function C(l){let e,s,c,g,h,d,n,a=l[9]("common.built_with")+"",t,f,m,F,H,r,p=l[9]("common.hosted_on")+"",i,S,Z;return{c(){e=b("div"),s=b("span"),c=b("a"),g=k(l[5]),d=V(),n=b("span"),t=k(a),f=V(),m=b("a"),m.textContent="Gradio",F=k("."),H=V(),r=b("span"),i=k(p),S=V(),Z=b("a"),Z.innerHTML=`<span class="space-logo svelte-1hbqb21"><img src="${L}" alt="Hugging Face Space" class="svelte-1hbqb21"/></span> Spaces`,_(c,"href",h="https://huggingface.co/spaces/"+l[5]),_(c,"class","title svelte-1hbqb21"),_(s,"class","svelte-1hbqb21"),_(m,"class","gradio svelte-1hbqb21"),_(m,"href","https://gradio.app"),_(n,"class","svelte-1hbqb21"),_(Z,"class","hf svelte-1hbqb21"),_(Z,"href","https://huggingface.co/spaces"),_(r,"class","svelte-1hbqb21"),_(e,"class","info svelte-1hbqb21")},m(v,q){D(v,e,q),o(e,s),o(s,c),o(c,g),o(e,d),o(e,n),o(n,t),o(n,f),o(n,m),o(n,F),o(e,H),o(e,r),o(r,i),o(r,S),o(r,Z)},p(v,q){q&32&&E(g,v[5]),q&32&&h!==(h="https://huggingface.co/spaces/"+v[5])&&_(c,"href",h),q&512&&a!==(a=v[9]("common.built_with")+"")&&E(t,a),q&512&&p!==(p=v[9]("common.hosted_on")+"")&&E(i,p)},d(v){v&&A(e)}}}function R(l){let e,s,c,g,h;const d=l[11].default,n=B(d,l,l[10],null);let a=l[6]&&l[5]&&l[7]&&C(l);return{c(){e=b("div"),s=b("div"),n&&n.c(),c=V(),a&&a.c(),_(s,"class","main svelte-1hbqb21"),_(e,"class",g="gradio-container gradio-container-"+l[1]+" svelte-1hbqb21"),_(e,"data-iframe-height",""),w(e,"app",!l[6]&&!l[4]),w(e,"fill_width",l[3]),w(e,"embed-container",l[6]),w(e,"with-info",l[7]),M(e,"min-height",l[8]?"initial":l[2]),M(e,"flex-grow",l[6]?"auto":"1")},m(t,f){D(t,e,f),o(e,s),n&&n.m(s,null),o(e,c),a&&a.m(e,null),l[12](e),h=!0},p(t,[f]){n&&n.p&&(!h||f&1024)&&Q(n,d,t,t[10],h?J(d,t[10],f,null):I(t[10]),null),t[6]&&t[5]&&t[7]?a?a.p(t,f):(a=C(t),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!h||f&2&&g!==(g="gradio-container gradio-container-"+t[1]+" svelte-1hbqb21"))&&_(e,"class",g),(!h||f&82)&&w(e,"app",!t[6]&&!t[4]),(!h||f&10)&&w(e,"fill_width",t[3]),(!h||f&66)&&w(e,"embed-container",t[6]),(!h||f&130)&&w(e,"with-info",t[7]),f&260&&M(e,"min-height",t[8]?"initial":t[2]),f&64&&M(e,"flex-grow",t[6]?"auto":"1")},i(t){h||(O(n,t),h=!0)},o(t){P(n,t),h=!1},d(t){t&&A(e),n&&n.d(t),a&&a.d(),l[12](null)}}}function U(l,e,s){let c;z(l,G,i=>s(9,c=i));let{$$slots:g={},$$scope:h}=e,{wrapper:d}=e,{version:n}=e,{initial_height:a}=e,{fill_width:t}=e,{is_embed:f}=e,{space:m}=e,{display:F}=e,{info:H}=e,{loaded:r}=e;function p(i){j[i?"unshift":"push"](()=>{d=i,s(0,d)})}return l.$$set=i=>{"wrapper"in i&&s(0,d=i.wrapper),"version"in i&&s(1,n=i.version),"initial_height"in i&&s(2,a=i.initial_height),"fill_width"in i&&s(3,t=i.fill_width),"is_embed"in i&&s(4,f=i.is_embed),"space"in i&&s(5,m=i.space),"display"in i&&s(6,F=i.display),"info"in i&&s(7,H=i.info),"loaded"in i&&s(8,r=i.loaded),"$$scope"in i&&s(10,h=i.$$scope)},[d,n,a,t,f,m,F,H,r,c,h,g,p]}class X extends T{constructor(e){super(),K(this,e,U,R,N,{wrapper:0,version:1,initial_height:2,fill_width:3,is_embed:4,space:5,display:6,info:7,loaded:8})}get wrapper(){return this.$$.ctx[0]}set wrapper(e){this.$$set({wrapper:e}),u()}get version(){return this.$$.ctx[1]}set version(e){this.$$set({version:e}),u()}get initial_height(){return this.$$.ctx[2]}set initial_height(e){this.$$set({initial_height:e}),u()}get fill_width(){return this.$$.ctx[3]}set fill_width(e){this.$$set({fill_width:e}),u()}get is_embed(){return this.$$.ctx[4]}set is_embed(e){this.$$set({is_embed:e}),u()}get space(){return this.$$.ctx[5]}set space(e){this.$$set({space:e}),u()}get display(){return this.$$.ctx[6]}set display(e){this.$$set({display:e}),u()}get info(){return this.$$.ctx[7]}set info(e){this.$$set({info:e}),u()}get loaded(){return this.$$.ctx[8]}set loaded(e){this.$$set({loaded:e}),u()}}export{X as E}; | |
//# sourceMappingURL=Embed-BhQI8DnN.js.map | |