PageSourceSearch

https://cin-model-kotaemon.hf.space/app/assets/Blocks-BPGBf-rO.js

js cin-model-kotaemon.hf.space collected 2026-10-03 08:20:55 UTC 125,972 bytes, 99 lines download raw bytes

1const __vite__fileDeps=["./Index-D95eisYC.js","./Button-6TkjCjn0.js","./Index-p668Ffoz.js","./index-BKm0EBOh.js","./index-BLavTiqJ.css","./Index-fAI50i_f.css","./Button-CTZL5Nos.css","./Index-7lbRtq1n.js","./Index-CptIZeFZ.css","./Index-C5NYahSl.css","./Index-DIEQNSrx.js","./BlockLabel-CeTEM5TI.js","./Empty-tho4TGhF.js","./Image-Bsh8Umrh.js","./file-url-DJfnsB4M.js","./Index-Cr62iXTg.css","./StaticAudio-BTlfLZqT.js","./ShareButton-lGFMmkjf.js","./Download-DVtk-Jv3.js","./Music-CDm0RGMk.js","./Trim-UKwaW4UI.js","./Undo-CpmTQw3B.js","./DownloadLink-CFyuUXrs.js","./StaticAudio-CCdGW_0q.css","./Example-BQyGztrG.js","./Example-D7K5RtQ2.css","./index-D66fxdwU.js","./Upload-ClF7T3gH.js","./ModifyUpload-RL_SHQmd.css","./ModifyUpload-CL3TxdEx.js","./SelectSource-iVejN69G.js","./Upload-Cp8Go_XF.js","./UploadText-D7ZOvnsx.js","./index-h4xPCdhH.css","./Index-CEsnM_vu.js","./Index-BelkbGy-.js","./Index-2MwOU3iH.js","./index-CnqicUFC.js","./Image-CSX6hYj2.js","./Image-B8dFOee4.css","./Index.svelte_svelte_type_style_lang-DjPMZ0Dl.js","./Check-Ck0iADAu.js","./Copy-ZPOKSMtK.js","./Example.
1svelte_svelte_type_style_lang-D2tM2lJV.js","./prism-python-DWgfoCWZ.js","./Example-Bh-miMRI.css","./Index-Xv8ZQETB.css","./Index-CwugL6i8.css","./ImagePreview-DZfRAfzG.css","./Example-CZ-iEz1g.js","./Index-BOpwRcQT.js","./Info-DpYOu-hg.js","./Index-BTCbxfal.css","./Example-CRm1Pmw_.js","./Index-MfcOB0ys.js","./BlockTitle-yhl9OFRY.js","./Index-D8o7u_T6.css","./Example-Wp-_4AVX.js","./Example-oomIF0ca.css","./Index-Dv3FZRu-.js","./Index-BrtrebwU.css","./Example-BaLyJYAe.js","./Example-Bw8Q_3wB.css","./Index-DbRx2X46.js","./Index-B6tpubC5.css","./Example-BT2jlY4j.js","./Example-CX34aPix.css","./Index-D5ISYdhs.js","./dsv-DB8NKgIY.js","./Index-BhDD_Y03.css","./Index-C6ePbGea.js","./Example-C7XUkkid.js","./Example-Cj3ii62O.css","./Index-D3f6Hf9S.css","./Textbox-D8IAzrZj.css","./Index-CLdoFUZW.js","./Example-BBLMS951.js","./Index-DjIb8LtA.css","./Index-CDgvOad9.js","./Index-tcNSQSor.css","./Example-CUwox43B.js","./Index-BwXb1GqD.js","./DropdownArrow-Do0TGVBT.js","./Index-BAQumg2K.css","./Example-DrmWnoSo.js","./Example-DpWs9cEC.css","./Index-BTgSn1SX.js","./FileUpload-DnMRRjqW.js","./File-BQ_9P3Ye.js","./FileUpload-2TE7T7kD.css","./Example-CIFMxn5c.js","./Example-DfhEULNF.css","./Index-BDgpoq4v.js","./Index-YPTlsVjp.css","./Index-DDCF2BFd.js","./Index-B0JJ6p9c.css","./Gallery-C1M4Z8W4.js","./Gallery-SLxopFpk.css","./Index-CqaAosTI.js","./Index-CS2xVf8J.js","./Index-C-7D3Y3j.css","./Index-DbCDT_dn.js","./color-C3VsIsbp.js","./Index-Dwy3Ni24.css","./Index-CNQBA2Zk.js","./Index-BGmqBTg_.css","./Example-C2a4WxRl.js","./Example-CSw4pLi5.css","./ImagePreview-BAk4yEaP.js","./utils-Gtzs_Zla.js","./Example-cCKgVtvP.js","./Example-DikqVAPo.css","./Index-t9mRMbxq.js","./ImageUploader-CsJu7UsH.js","./ImageUploader-Nf7XEzjl.css","./Example-Dkb1_1XB.js","./Example-6rv12T44.css","./Index-SrvqZrcn.js","./__vite-browser-external-DFe-p4yY.js","./Index-C1YC3Cxb.css","./Index-3KX3XGNT.js","./Index-729KAuZc.css","./Index-Do0jM5tM.js","./LineChart-CKh1Fdep.js","./Index-BM4_tjMk.css","./Example-DLiWhgPj.js","./Index-BEQy5fU9.js","./Example-uQ8MuYg6.js","./Index-RLLDhaVY.js","./Index-Pyhmzacd.css","./Example-BBlTgamo.js","./Example-Bp9LC6ux.css","./Index-BPj32ev2.js","./Video-fsmLZWjA.js","./Index-BpekRhna.css","./Index-R-dKKBwU.js","./vega-embed.module-DVf_KWTG.js","./Index-DvmFt2zS.css","./Example-CqL1e7EB.js","./Index-BaKK-Sed.js","./Index-BUublr_b.css","./Example-C9__vDgN.js","./Index-CqtNClQw.js","./Index-DFRCBgTL.css","./Plot-CW5iQI5a.js","./Index-DqfgPPGc.js","./Example-BoMLuz1A.js","./Index-CQCdPKM-.js","./Index-BSqct-uf.css","./Index-B6i2s_A-.js","./Index-C43SQM_O.css","./Example-DxdiEFS_.js","./Index-Dr3FmLug.js","./Index-CJeiS5ET.css","./index-D62_Z24P.js","./Index-Drifnnnf.js","./Tabs-C64pPP1g.js","./Tabs-DX5TEub2.css","./Index-thdqX2vf.css","./Index-B2clx4W4.js","./Index-DToBeiFY.js","./Textbox-OklDBmQP.js","./Index-CUFPsjEL.js","./Index-DYDmCduo.css","./VideoPreview-BEZOTiC6.js","./Video-CSQLb9ub.js","./Video-DJw86Ppo.css","./VideoPreview-Dvitrirr.css","./Example-DTpZUBSH.js","./Example-B5CSTz0f.css","./index-CBiGokOW.js","./index-CFBZQE_H.css","./Example-BrizabXh.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2import{d as As,p as zl,L as Ro,e as Ls,$ as So,w as bn,f as Ts}from"./Index-p668Ffoz.js";import{_ as T}from"./index-BKm0EBOh.js";import{c as qs,f as Fl,a as On,B as sn}from"./Button-6TkjCjn0.js";const{SvelteComponent:Ps,append:Os,attr:Oe,detach:Is,init:Ds,insert:Rs,noop:Zn,safe_not_equal:Ss,svg_element:Ul}=window.__gradio__svelte__internal;function Vs(l){let e,t;return{c(){e=Ul("svg"),t=Ul("path"),Oe(t,"stroke-linecap","round"),Oe(t,"stroke-linejoin","round"),Oe(t,"d","M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"),Oe(e,"fill","none"),Oe(e,"stroke","currentColor"),Oe(e,"viewBox","0 0 24 24"),Oe(e,"width","100%"),Oe(e,"height","100%"),Oe(e,"xmlns","http://www.w3.org/2000/svg"),Oe(e,"aria-hidden","true"),Oe(e,"stroke-width","2"),Oe(e,"stroke-linecap","round"),Oe(e,"stroke-linejoin","round")},m(n,i){Rs(n,e,i),Os(e,t)},p:Zn,i:Zn,o:Zn,d(n){n&&Is(e)}}}let Ms=class extends Ps{constructor(e){super(),Ds(this,e,null,Vs,Ss,{})}};const{SvelteComponent:Ns,append:zs,attr:Ie,detach:Fs,init:Us,insert:Bs,noop:Wn,safe_not_equal:Hs,svg_element:Bl}=window.__gradio__svelte__internal;function Gs(l){let e,t;return{c(){e=Bl("svg"),t=Bl("path"),Ie(t,"stroke-linecap","round"),Ie(t,"stroke-linejoin","round"),Ie(t,"d","M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"),Ie(e,"fill","none"),Ie(e,"stroke","currentColor"),Ie(e,"viewBox","0 0 24 24"),Ie(e,"width","100%"),Ie(e,"height","100%"),Ie(e,"xmlns","http://www.w3.org/2000/svg"),Ie(e,"aria-hidden","true"),Ie(e,"stroke-width","2"),Ie(e,"stroke-linecap","round"),Ie(e,"stroke-linejoin","round")},m(n,i){Bs(n,e,i),zs(e,t)},p:Wn,i:Wn,o:Wn,d(n){n&&Fs(e)}}}class Zs extends Ns{constructor(e){super(),Us(this,e,null,Gs,Hs,{})}}const{SvelteComponent:Ws,append:Qs,attr:De,detach:Js,init:Xs,insert:Ys,noop:Qn,safe_not_equal:Ks,svg_element:Hl}=window.__gradio__svelte__internal;function xs(l){let e,t;return{c(){e=Hl("svg"),t=Hl("path"),De(t,"stroke-linecap","round"),De(t,"stroke-linejoin","round"),De(t,"d","M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"),De(e,"fill","none"),De(e,"stroke","currentColor"),De(e,"stroke-width","2"),De(e,"viewBox","0 0 24 24"),De(e,"width","100%"),De(e,"height","100%"),De(e,"xmlns","http://www.w3.org/2000/svg"),De(e,"aria-hidden","true"),De(e,"stroke-linecap","round"),De(e,"stroke-linejoin","round")},m(n,i){Ys(n,e,i),Qs(e,t)},p:Qn,i:Qn,o:Qn,d(n){n&&Js(e)}}}class er extends Ws{constructor(e){super(),Xs(this,e,null,xs,Ks,{})}}
2class Jn extends Error{constructor(e){super(e),this.name="ShareError"}}async function Cf(l,e){if(window.__gradio_space__==null)throw new Jn("Must be on Spaces to share.");let t,n,i;{let _;if(typeof l=="object"&&l.url)_=l.url;else if(typeof l=="string")_=l;else throw new Error("Invalid data format for URL type");const r=await fetch(_);t=await r.blob(),n=r.headers.get("content-type")||"",i=r.headers.get("content-disposition")||""}const o=new File([t],i,{type:n}),s=await fetch("https://huggingface.co/uploads",{method:"POST",body:o,headers:{"Content-Type":o.type,"X-Requested-With":"XMLHttpRequest"}});if(!s.ok){if(s.headers.get("content-type")?.includes("application/json")){const _=await s.json();throw new Jn(`Upload failed: ${_.error}`)}throw new Jn("Upload failed.")}return await s.text()}function Af(l){l.addEventListener("click",e);async function e(t){const n=t.composedPath(),[i]=n.filter(o=>o?.tagName==="BUTTON"&&o.classList.contains("copy_code_button"));if(i){let o=function(r){r.style.opacity="1",setTimeout(()=>{r.style.opacity="0"},2e3)};t.stopImmediatePropagation();const s=i.parentElement.innerText.trim(),a=Array.from(i.children)[1];await tr(s)&&o(a)}}return{destroy(){l.removeEventListener("click",e)}}}async function tr(l){let e=!1;if("clipboard"in navigator)await navigator.clipboard.writeText(l),e=!0;else{const t=document.createElement("textarea");t.value=l,t.style.position="absolute",t.style.left="-999999px",document.body.prepend(t),t.select();try{document.execCommand("copy"),e=!0}catch(n){console.error(n),e=!1}finally{t.remove()}}return e}const Lf=l=>{const e=Math.floor(l/3600),t=Math.floor(l%3600/60),n=Math.round(l)%60,i=`${t<10?"0":""}${t}`,o=`${n<10?"0":""}${n}`;return e>0?`${e}:${i}:${o}`:`${t}:${o}`};let Xn=null;class nr{constructor(e,t,n,i,o,s,a,_=c=>c,r){this._load_component=null,this.load_component=lr.bind(this),this.#e=e,this.theme=n,this.version=i,this.#t=t,this.max_file_size=a,this.i18n=_,this.root=o,this.autoscroll=s,this.client=r,Xn?this._load_component=Xn:T(()=>Promise.resolve().then(()=>Kr),void 0,import.meta.url).then(c=>{this._load_component=c.load_component,Xn=c.load_component})}#e;#t;dispatch(e,t){const n=new CustomEvent("gradio",{bubbles:!0,detail:{data:t,id:this.#e,event:e}});this.#t.dispatchEvent(n)}}function lr(l,e="component"){return this._load_component({name:l,api_url:this.client.config?.root,variant:e})}function ir(l,{from:e,to:t},n={}){const i=getComputedStyle(l),o=i.transform==="none"?"":i.transform,[s,a]=i.transformOrigin.split(" ").map(parseFloat),_=e.left+e.width*s/t.width-(t.left+s),r=e.top+e.height*a/t.height-(t.top+a),{delay:c=0,duration:u=m=>Math.sqrt(m)*120,easing:f=qs}=n;return{delay:c,duration:As(u)?u(Math.sqrt(_*_+r*r)):u,easing:f,css:(m,g)=>{const d=g*_,v=g*r,p=m+g*e.width/t.width,j=m+g*e.height/t.height;return`transform: ${o} translate(${d}px, ${v}px) scale(${p}, ${j});`}}}const{SvelteComponent:or,add_render_callback:sr,append:ze,attr:ie,bubble:Gl,check_outros:rr,create_component:bl,create_in_transition:ar,create_out_transition:_r,destroy_component:kl,detach:cr,element:_t,flush:Xt,group_outros:ur,init:fr,insert:pr,listen:Yn,mount_component:wl,run_all:dr,safe_not_equal:mr,set_data:hr,space:cn,stop_propagation:Zl,text:gr,toggle_class:Wl,transition_in:nn,transition_out:ln}=window.__gradio__svelte__internal,{createEventDispatcher:vr,onMount:$r}=window.__gradio__svelte__internal;function br(l){let e,t;return e=new Ms({}),{c(){bl(e.$$.fragment)},m(n,i){wl(e,n,i),t=!0},i(n){t||(nn(e.$$.fragment,n),t=!0)},o(n){ln(e.$$.fragment,n),t=!1},d(n){kl(e,n)}}}function kr(l){let e,t;return e=new Zs({}),{c(){bl(e.$$.fragment)},m(n,i){wl(e,n,i),t=!0},i(n){t||(nn(e.$$.fragment,n),t=!0)},o(n){ln(e.$$.fragment,n),t=!1},d(n){kl(e,n)}}}function wr(l){let e,t;return e=new er({}),{c(){bl(e.$$.fragment)},m(n,i){wl(e,n,i),t=!0},i(n){t||(nn(e.$$.fragment,n),t=!0)},o(n){ln(e.$$.fragment,n),t=!1},d(n){kl(e,n)}}}function yr(l){let e,t,n,i,o,s,a,_,r,c,u,f,m,g,d,v,p,j,w,b,C,h,k,L,y,$,E,P;const D=[wr,kr,br],U=[];function O(V,M){return V[1]==="warning"?0:V[1]==="info"?1:V[1]==="error"?2:-1}return~(n=O(l))&&(i=U[n]=D[n](l)),{c(){e=_t("div"),t=_t("div"),i&&i.c(),s=cn(),a=_t("div"),_=_t("div"),r=gr(l[1]),u=cn(),f=_t("div"),d=cn(),v=_t("button"),p=_t("span"),p.textContent="×",w=cn(),b=_t("div"),ie(t,"class",o="toast-icon "+l[1]+" svelte-re9qbj"),ie(_,"class",c="toast-title "+l[1]+" svelte-re9qbj"),ie(f,"class",m="toast-text "+l[1]+" svelte-re9qbj"),ie(a,"class",g="toast-details "+l[1]+" svelte-re9qbj"),ie(p,"aria-hidden","true"),ie(v,"class",j="toast-close "+l[1]+" svelte-re9qbj"),ie(v,"type","button"),ie(v,"aria-label","Close"),ie(v,"data-testid","toast-close"),ie(b,"class",C="timer "+l[1]+" svelte-re9qbj"),ie(b,"style",h=`animation-duration: ${l[2]};`),ie(e,"class",k="toast-body "+l[1]+" svelte-re9qbj"),ie(e,"role","alert"),ie(e,"data-testid","toast-body"),Wl(e,"hidden",!l[3])},m(V,M){pr(V,e,M),ze(e,t),~n&&U[n].m(t,null),ze(e,s),ze(e,a),ze(a,_),ze(_,r),ze(a,u),ze(a,f),f.innerHTML=l[0],ze(e,d),ze(e,v),ze(v,p),ze(e,w),ze(e,b),$=!0,E||(P=[Yn(v,"click",l[4]),Yn(e,"click",Zl(l[8])),Yn(e,"keydown",Zl(l[9]))],E=!0)},p(V,[M]){let R=n;n=O(V),n!==R&&(i&&(ur(),ln(U[R],1,1,()=>{U[R]=null}),rr()),~n?(i=U[n],i||(i=U[n]=D[n](V),i.c()),nn(i,1),i.m(t,null)):i=null),(!$||M&2&&o!==(o="toast-icon "+V[1]+" svelte-re9qbj"))&&ie(t,"class",o),(!$||M&2)&&hr(r,V[1]),(!$||M&2&&c!==(c="toast-title "+V[1]+" svelte-re9qbj"))&&ie(_,"class",c),(!$||M&1)&&(f.innerHTML=V[0]),(!$||M&2&&m!==(m="toast-text "+V[1]+" svelte-re9qbj"))&&ie(f,"class",m),(!$||M&2&&g!==(g="toast-details "+V[1]+" svelte-re9qbj"))&&ie(a,"class",g),(!$||M&2&&j!==(j="toast-close "+V[1]+" svelte-re9qbj"))&&ie(v,"class",j),(!$||M&2&&C!==(C="timer "+V[1]+" svelte-re9qbj"))&&ie(b,"class",C),(!$||M&4&&h!==(h=`animation-duration: ${V[2]};`))&&ie(b,"style",h),(!$||M&2&&k!==(k="toast-body "+V[1]+" svelte-re9qbj"))&&ie(e,"class",k),(!$||M&10)&&Wl(e,"hidden",!V[3])},i(V){$||(nn(i),V&&sr(()=>{$&&(y&&y.end(1),L=ar(e,Fl,{duration:200,delay:100}),L.start())}),$=!0)},o(V){ln(i),L&&L.invalidate(),V&&(y=_r(e,Fl,{duration:200})),$=!1},d(V){V&&cr(e),~n&&U[n].d(),V&&y&&y.end(),E=!1,dr(P)}}}function Er(l,e,t){let n,i,{message:o=""}=e,{type:s}=e,{id:a}=e,{duration:_=10}=e,{visible:r=!0}=e;const c=d=>{try{return!!d&&new URL(d,location.href).origin!==location.origin}catch{return!1}};zl.addHook("afterSanitizeAttributes",function(d){"target"in d&&c(d.getAttribute("href"))&&(d.setAttribute("target","_blank"),d.setAttribute("rel","noopener noreferrer"))});const u=vr();function f(){u("close",a)}$r(()=>{_!==null&&setTimeout(()=>{f()},_*1e3)});function m(d){Gl.call(this,l,d)}function g(d){Gl.call(this,l,d)}return l.$$set=d=>{"message"in d&&t(0,o=d.message),"type"in d&&t(1,s=d.type),"id"in d&&t(6,a=d.id),"duration"in d&&t(5,_=d.duration),"visible"in d&&t(7,r=d.visible)},l.$$.update=()=>{l.$$.dirty&1&&t(0,o=zl.sanitize(o)),l.$$.dirty&128&&t(3,n=r),l.$$.dirty&32&&t(5,_=_||null),l.$$.dirty&32&&t(2,i=`${_||0}s`)},[o,s,i,n,f,_,a,r,m,g]}class jr extends or{constructor(e){super(),fr(this,e,Er,yr,mr,{message:0,type:1,id:6,duration:5,visible:7})}get message(){return this.$$.ctx[0]}set message(e){this.$$set({message:e}),Xt()}get type(){return this.$$.ctx[1]}set type(e){this.$$set({type:e}),Xt()}get id(){return this.$$.ctx[6]}set id(e){this.$$set({id:e}),Xt()}get duration(){return this.$$.ctx[5]}set duration(e){this.$$set({duration:e}),Xt()}get visible(){return this.$$.ctx[7]}set visible(e){this.$$set({visible:e}),Xt()}}const{SvelteComponent:Cr,append:Ar,attr:Lr,bubble:Tr,check_outros:qr,create_animation:Pr,create_component:Or,destroy_component:Ir,detach:Vo,element:Mo,ensure_array_like:Ql,fix_and_outro_and_destroy_block:Dr,fix_position:Rr,flush:Sr,group_outros:Vr,init:Mr,insert:No,mount_component:Nr,noop:zr,safe_not_equal:Fr,set_style:Ur,space:Br,transition_in:zo,transition_out:Fo,update_keyed_each:Hr}=window.__gradio__svelte__internal;function Jl(l,e,t){const n=l.slice();return n[2]=e[t].type,n[3]=e[t].message,n[4]=e[t].id,n[5]=e[t].duration,n[6]=e[t].visible,n}function Xl(l,e){let t,n,i,o,s=zr,a;return n=new jr({props:{type:e[2],message:e[3],duration:e[5],visible:e[6],id:e[4]}}),n.$on("close",e[1]),{key:l,first:null,c(){t=Mo("div"),Or(n.$$.fragment),i=Br(),Ur(t,"width","100%"),this.first=t},m(_,r){No(_,t,r),Nr(n,t,null),Ar(t,i),a=!0},p(_,r){e=_;const c={};r&1&&(c.type=e[2]),r&1&&(c.message=e[3]),r&1&&(c.duration=e[5]),r&1&&(c.visible=e[6]),r&1&&(c.id=e[4]),n.$set(c)},r(){o=t.getBoundingClientRect()},f(){Rr(t),s()},a(){s(),s=Pr(t,o,ir,{duration:300})},i(_){a||(zo(n.$$.fragment,_),a=!0)},o(_){Fo(n.$$.fragment,_),a=!1},d(_){_&&Vo(t),Ir(n)}}}function Gr(l){let e,t=[],n=new Map,i,o=Ql(l[0]);const s=a=>a[4];for(let a=0;a<o.length;a+=1){let _=Jl(l,o,a),r=s(_);n.set(r,t[a]=Xl(r,_))}return{c(){e=Mo("div");for(let a=0;a<t.length;a+=1)t[a].c();Lr(e,"class","toast-wrap svelte-pu0yf1")},m(a,_){No(a,e,_);for(let r=0;r<t.length;r+=1)t[r]&&t[r].m(e,null);i=!0},p(a,[_]){if(_&1){o=Ql(a[0]),Vr();for(let r=0;r<t.length;r+=1)t[r].r();t=Hr(t,_,s,1,a,o,n,e,Dr,Xl,null,Jl);for(let r=0;r<t.length;r+=1)t[r].a();qr()}},i(a){if(!i){for(let _=0;_<o.length;_+=1)zo(t[_]);i=!0}},o(a){for(let _=0;_<t.length;_+=1)Fo(t[_]);i=!1},d(a){a&&Vo(e);for(let _=0;_<t.length;_+=1)t[_].d()}}}function Zr(l){l.length>0&&"parentIFrame"in window&&window.parentIFrame?.scrollTo(0,0)}function Wr(l,e,t){let{messages:n=[]}=e;function i(o){Tr.call(this,l,o)}return l.$$set=o=>{"messages"in o&&t(0,n=o.messages)},l.$$.update=()=>{l.$$.dirty&1&&Zr(n)},[n,i]}class Qr extends Cr{constructor(e){super(),Mr(this,e,Wr,Gr,Fr,{messages:0})}get messages(){return this.$$.ctx[0]}set messages(e){this.$$set({messages:e}),Sr()}}const Jr={accordion:{component:()=>T(()=>import("./Index-D95eisYC.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)},annotatedimage:{component:()=>T(()=>import("./Index-DIEQNSrx.js"),__vite__mapDeps([10,1,2,3,4,5,6,11,12,13,14,15]),import.meta.url)},audio:{base:()=>T(()=>import("./StaticAudio-BTlfLZqT.js").then(l=>l.b),__vite__mapDeps([16,2,3,4,5,11,12,17,18,19,20,21,14,22,23]),import.meta.url),example:()=>T(()=>import("./Example-BQyGztrG.js"),__vite__mapDeps([24,25]),import.meta.url),component:()=>T(()=>import("./index-D66fxdwU.js"),__vite__mapDeps([26,16,2,3,4,5,11,12,17,18,19,20,21,14,22,23,27,28,29,30,31,1,6,32,24,25,33]),import.meta.url)},box:{component:()=>T(()=>import("./Index-CEsnM_vu.js"),__vite__mapDeps([34,1,2,3,4,5,6]),import.meta.url)},button:{component:()=>T(()=>import("./Index-BelkbGy-.js"),__vite__mapDeps([35,3,4,1,2,5,6]),import.meta.url)},chatbot:{component:()=>T(()=>import("./Index-2MwOU3iH.js"),__vite__mapDeps([36,2,3,4,5,37,17,38,14,39,40,41,42,43,44,45,1,6,46,22,11,47,48]),import.meta.url)},checkbox:{example:()=>T(()=>import("./Example-CZ-iEz1g.js"),__vite__mapDeps([49,25]),import.meta.url),component:()=>T(()=>import("./Index-BOpwRcQT.js"),__vite__mapDeps([50,1,2,3,4,5,6,51,52]),import.meta.url)},checkboxgroup:{example:()=>T(()=>import("./Example-CRm1Pmw_.js"),__vite__mapDeps([53,25]),import.meta.url),component:()=>T(()=>import("./Index-MfcOB0ys.js"),__vite__mapDeps([54,1,2,3,4,5,6,55,51,56]),import.meta.url)},code:{example:()=>T(()=>import("./Example-Wp-_4AVX.js"),__vite__mapDeps([57,58]),import.meta.url),component:()=>T(()=>import("./Index-Dv3FZRu-.js").then(l=>l.F),__vite__mapDeps([59,3,4,2,5,1,6,41,42,18,22,14,11,12,57,58,60]),import.meta.url)},colorpicker:{example:()=>T(()=>import("./Example-BaLyJYAe.js"),__vite__mapDeps([61,62]),import.meta.url),component:()=>T(()=>import("./Index-DbRx2X46.js"),__vite__mapDeps([63,2,3,4,5,55,51,1,6,61,62,64]),import.meta.url)},column:{component:()=>T(()=>import("./Index-7lbRtq1n.js"),__vite__mapDeps([7,2,3,4,5,8]),import.meta.url)},dataframe:{example:()=>T(()=>import("./Example-BT2jlY4j.js"),__vite__mapDeps([65,66]),import.meta.url),component:()=>T(()=>import("./Index-D5ISYdhs.js"),__vite__mapDeps([67,1,2,3,4,5,6,37,27,28,40,41,42,43,44,45,46,68,65,66,69]),import.meta.url)},dataset:{component:()=>T(()=>import("./Index-C6ePbGea.js"),__vite__mapDeps([70,1,2,3,4,5,6,71,72,73,74]),import.meta.url)},datetime:{example:()=>T(()=>import("./Example-BBLMS951.js"),[],import.meta.url),component:()=>T(()=>import("./Index-CLdoFUZW.js"),__vite__mapDeps([75,1,2,3,4,5,6,55,51,76,77]),import.meta.url)},downloadbutton:{component:()=>T(()=>import("./Index-CDgvOad9.js"),__vite__mapDeps([78,3,4,1,2,5,6,79]),import.meta.url)},dropdown:{example:()=>T(()=>import("./Example-CUwox43B.js"),__vite__mapDeps([80,25]),import.meta.url),component:()=>T(()=>import("./Index-BwXb1GqD.js"),__vite__mapDeps([81,2,3,4,5,55,51,82,1,6,80,25,83]),import.meta.url)},file:{example:()=>T(()=>import("./Example-DrmWnoSo.js"),__vite__mapDeps([84,85]),import.meta.url),component:()=>T(()=>import("./Index-BTgSn1SX.js"),__vite__mapDeps([86,87,2,3,4,5,11,12,88,27,28,29,18,21,22,14,89,1,6,32,31,84,85]),import.meta.url)},fileexplorer:{example:()=>T(()=>import("./Example-CIFMxn5c.js"),__vite__mapDeps([90,91]),import.meta.url),component:()=>T(()=>import("./Index-BDgpoq4v.js"),__vite__mapDeps([92,2,3,4,5,88,1,6,11,93]),import.meta.url)},form:{component:()=>T(()=>import("./Index-DDCF2BFd.js"),__vite__mapDeps([94,95]),import.meta.url)},gallery:{base:()=>T(()=>import("./Gallery-C1M4Z8W4.js"),__vite__mapDeps([96,2,3,4,5,11,12,17,18,13,29,21,22,14,28,38,39,1,6,97,48]),import.meta.url),component:()=>T(()=>import("./Index-CqaAosTI.js"),__vite__mapDeps([98,1,2,3,4,5,6,32,31,96,11,12,17,18,13,29,21,22,14,28,38,39,97,48,87,88,27,89,85]),import.meta.url)},group:{component:()=>T(()=>import("./Index-CS2xVf8J.js"),__vite__mapDeps([99,100]),import.meta.url)},highlightedtext:{component:()=>T(()=>import("./Index-DbCDT_dn.js"),__vite__mapDeps([101,102,2,3,4,5,1,6,11,12,103]),import.meta.url)},html:{base:()=>T(()=>import("./Index-CNQBA2Zk.js"),__vite__mapDeps([104,2,3,4,5,1,6,105]),import.meta.url),example:()=>T(()=>import("./Example-C2a4WxRl.js"),__vite__mapDeps([106,107]),import.meta.url),component:()=>T(()=>import("./Index-CNQBA2Zk.js"),__vite__mapDeps([104,2,3,4,5,1,6,105]),import.meta.url)},image:{base:()=>T(()=>import("./ImagePreview-BAk4yEaP.js"),__vite__mapDeps([108,2,3,4,5,11,12,17,18,13,109,38,14,39,22,1,6,48]),import.meta.url),example:()=>T(()=>import("./Example-cCKgVtvP.js"),__vite__mapDeps([110,38,14,2,3,4,5,39,111]),import.meta.url),component:()=>T(()=>import("./Index-t9mRMbxq.js"),__vite__mapDeps([112,108,2,3,4,5,11,12,17,18,13,109,38,14,39,22,1,6,48,113,30,31,82,27,28,114,32,110,111]),import.meta.url)},imageeditor:{example:()=>T(()=>import("./Example-Dkb1_1XB.js"),__vite__mapDeps([115,2,3,4,5,38,14,39,113,11,13,30,31,109,82,1,6,27,28,114,116,48,111]),import.meta.url),component:()=>T(()=>import("./Index-SrvqZrcn.js"),__vite__mapDeps([117,108,2,3,4,5,11,12,17,18,13,109,38,14,39,22,1,6,48,113,30,31,82,27,28,114,118,41,21,119,111]),import.meta.url)},json:{component:()=>T(()=>import("./Index-3KX3XGNT.js"),__vite__mapDeps([120,1,2,3,4,5,6,41,42,12,11,121]),import.meta.url)},label:{component:()=>T(()=>import("./Index-Do0jM5tM.js"),__vite__mapDeps([122,2,3,4,5,123,1,6,11,12,124]),import.meta.url)},markdown:{example:()=>T(()=>import("./Example-DLiWhgPj.js"),__vite__mapDeps([125,43,2,3,4,5,44,45]),import.meta.url),component:()=>T(()=>import("./Index-BEQy5fU9.js"),__vite__mapDeps([126,40,2,3,4,5,41,42,43,44,45,1,6,46,125]),import.meta.url)},model3d:{example:()=>T(()=>import("./Example-uQ8MuYg6.js"),__vite__mapDeps([127,25]),import.meta.url),component:()=>T(()=>import("./Index-RLLDhaVY.js"),__vite__mapDeps([128,3,4,2,5,11,18,88,21,27,28,29,22,14,1,6,12,32,31,127,25,129]),import.meta.url)},multimodaltextbox:{example:()=>T(()=>import("./Example-BBlTgamo.js"),__vite__mapDeps([130,38,14,2,3,4,5,39,131,48]),import.meta.url),component:()=>T(()=>import("./Index-BPj32ev2.js"),__vite__mapDeps([132,2,3,4,5,55,51,88,19,133,27,28,38,14,39,1,6,130,131,48,134]),import.meta.url)},nativeplot:{example:()=>T(()=>import("./Example-Creifpe8.js"),[],import.meta.url),component:()=>T(()=>import("./Index-R-dKKBwU.js"),__vite__mapDeps([135,1,2,3,4,5,6,55,51,12,123,136,68,137]),import.meta.url)},number:{example:()=>T(()=>import("./Example-CqL1e7EB.js"),__vite__mapDeps([138,25]),import.meta.url),component:()=>T(()=>import("./Index-BaKK-Sed.js"),__vite__mapDeps([139,1,2,3,4,5,6,55,51,140]),import.meta.url)},paramviewer:{example:()=>T(()=>import("./Example-C9__vDgN.js"),__vite__mapDeps([141,25]),import.meta.url),component:()=>T(()=>import("./Ind
2ex-CqtNClQw.js"),__vite__mapDeps([142,44,2,3,4,5,143]),import.meta.url)},plot:{base:()=>T(()=>import("./Plot-CW5iQI5a.js").then(l=>l.b),__vite__mapDeps([144,3,4,2,5,12]),import.meta.url),component:()=>T(()=>import("./Index-DqfgPPGc.js"),__vite__mapDeps([145,144,3,4,2,5,12,1,6,11]),import.meta.url)},radio:{example:()=>T(()=>import("./Example-BoMLuz1A.js"),__vite__mapDeps([146,25]),import.meta.url),component:()=>T(()=>import("./Index-CQCdPKM-.js"),__vite__mapDeps([147,1,2,3,4,5,6,55,51,146,25,148]),import.meta.url)},row:{component:()=>T(()=>import("./Index-B6i2s_A-.js"),__vite__mapDeps([149,2,3,4,5,150]),import.meta.url)},slider:{example:()=>T(()=>import("./Example-DxdiEFS_.js"),__vite__mapDeps([151,25]),import.meta.url),component:()=>T(()=>import("./Index-Dr3FmLug.js"),__vite__mapDeps([152,1,2,3,4,5,6,55,51,153]),import.meta.url)},state:{component:()=>T(()=>import("./Index-uRgjJb4U.js"),[],import.meta.url)},statustracker:{component:()=>T(()=>import("./index-D62_Z24P.js"),__vite__mapDeps([154,2,3,4,5,1,6]),import.meta.url)},tabitem:{component:()=>T(()=>import("./Index-Drifnnnf.js"),__vite__mapDeps([155,156,2,3,4,5,157,7,8,158]),import.meta.url)},tabs:{component:()=>T(()=>import("./Index-B2clx4W4.js"),__vite__mapDeps([159,156,2,3,4,5,157]),import.meta.url)},textbox:{example:()=>T(()=>import("./Example-C7XUkkid.js"),__vite__mapDeps([71,72]),import.meta.url),component:()=>T(()=>import("./Index-DToBeiFY.js"),__vite__mapDeps([160,161,2,3,4,5,55,51,41,42,1,6,74,71,72]),import.meta.url)},timer:{component:()=>T(()=>import("./Index-BMLc4VxK.js"),[],import.meta.url)},uploadbutton:{component:()=>T(()=>import("./Index-CUFPsjEL.js"),__vite__mapDeps([162,3,4,1,2,5,6,163]),import.meta.url)},video:{base:()=>T(()=>import("./VideoPreview-BEZOTiC6.js").then(l=>l.a),__vite__mapDeps([164,2,3,4,5,11,12,17,18,133,22,14,20,21,165,166,167]),import.meta.url),example:()=>T(()=>import("./Example-DTpZUBSH.js"),__vite__mapDeps([168,165,14,2,3,4,5,166,169]),import.meta.url),component:()=>T(()=>import("./index-CBiGokOW.js"),__vite__mapDeps([170,27,3,4,2,5,28,29,18,21,22,14,11,133,30,31,38,39,113,13,109,82,1,6,114,165,166,164,12,17,20,167,168,169,32,171,48,111]),import.meta.url)}},ct={};function _l({api_url:l,name:e,id:t,variant:n}){const i=window.__GRADIO__CC__,o={...Jr,...i||{}};let s=t||e;if(ct[`${s}-${n}`])return{component:ct[`${s}-${n}`],name:e};try{if(!o?.[s]?.[n]&&!o?.[e]?.[n])throw new Error;return ct[`${s}-${n}`]=(o?.[s]?.[n]||o?.[e]?.[n])(),{name:e,component:ct[`${s}-${n}`]}}catch{if(!s)throw new Error(`Component not found: ${e}`);try{return ct[`${s}-${n}`]=Yr(l,s,n),{name:e,component:ct[`${s}-${n}`]}}catch(_){if(n==="example")return ct[`${s}-${n}`]=T(()=>import("./Example-BrizabXh.js"),__vite__mapDeps([172,25]),import.meta.url),{name:e,component:ct[`${s}-${n}`]};throw console.error(`failed to load: ${e}`),console.error(_),_}}}function Xr(l){return new Promise((e,t)=>{const n=document.createElement("link");n.rel="stylesheet",n.href=l,document.head.appendChild(n),n.onload=()=>e(),n.onerror=()=>t()})}function Yr(l,e,t){return Promise.all([Xr(`${l}/custom_component/${e}/${t}/style.css`),T(()=>import(`${l}/custom_component/${e}/${t}/index.js`),[],import.meta.url)]).then(([n,i])=>i)}const Kr=Object.freeze(Object.defineProperty({__proto__:null,load_component:_l},Symbol.toStringTag,{value:"Module"})),{SvelteComponent:xr,append:Kn,attr:nt,detach:ea,init:ta,insert:na,noop:xn,safe_not_equal:la,set_style:Yt,svg_element:un}=window.__gradio__svelte__internal;function ia(l){let e,t,n,i;return{c(){e=un("svg"),t=un("g"),n=un("path"),i=un("path"),nt(n,"d","M3.789,0.09C3.903,-0.024 4.088,-0.024 4.202,0.09L4.817,0.705C4.931,0.819 4.931,1.004 4.817,1.118L1.118,4.817C1.004,4.931 0.819,4.931 0.705,4.817L0.09,4.202C-0.024,4.088 -0.024,3.903 0.09,3.789L3.789,0.09Z"),nt(i,"d","M4.825,3.797C4.934,3.907 4.934,4.084 4.825,4.193L4.193,4.825C4.084,4.934 3.907,4.934 3.797,4.825L0.082,1.11C-0.027,1.001 -0.027,0.823 0.082,0.714L0.714,0.082C0.823,-0.027 1.001,-0.027 1.11,0.082L4.825,3.797Z"),nt(e,"width","100%"),nt(e,"height","100%"),nt(e,"viewBox","0 0 5 5"),nt(e,"version","1.1"),nt(e,"xmlns","http://www.w3.org/2000/svg"),nt(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),nt(e,"xml:space","preserve"),Yt(e,"fill","currentColor"),Yt(e,"fill-rule","evenodd"),Yt(e,"clip-rule","evenodd"),Yt(e,"stroke-linejoin","round"),Yt(e,"stroke-miterlimit","2")},m(o,s){na(o,e,s),Kn(e,t),Kn(t,n),Kn(t,i)},p:xn,i:xn,o:xn,d(o){o&&ea(e)}}}class Uo extends xr{constructor(e){super(),ta(this,e,null,ia,la,{})}}const{SvelteComponent:oa,append:ut,attr:fn,create_component:sa,destroy_component:ra,detach:el,element:Rt,flush:aa,init:_a,insert:tl,listen:ca,mount_component:ua,safe_not_equal:fa,set_data:pa,space:nl,text:Yl,transition_in:da,transition_out:ma}=window.__gradio__svelte__internal,{createEventDispatcher:ha}=window.__gradio__svelte__internal;function ga(l){let e,t,n,i,o,s,a,_,r,c,u,f,m,g,d;return f=new Uo({}),{c(){e=Rt("div"),t=Rt("h1"),t.textContent="API Docs",n=nl(),i=Rt("p"),o=Yl(`No API Routes found for
3		`),s=Rt("code"),a=Yl(l[0]),_=nl(),r=Rt("p"),r.innerHTML=`To expose an API endpoint of your app in this page, set the <code>api_name</code>
4		parameter of the event listener.
5		<br/>
6		For more information, visit the
7		<a href="https://gradio.app/sharing_your_app/#api-page" target="_blank">API Page guide</a>
8		. To hide the API documentation button and this page, set
9		<code>show_api=False</code>
10		in the
11		<code>Blocks.launch()</code>
12		method.`,c=nl(),u=Rt("button"),sa(f.$$.fragment),fn(s,"class","svelte-e1ha0f"),fn(i,"class","attention svelte-e1ha0f"),fn(e,"class","wrap prose svelte-e1ha0f"),fn(u,"class","svelte-e1ha0f")},m(v,p){tl(v,e,p),ut(e,t),ut(e,n),ut(e,i),ut(i,o),ut(i,s),ut(s,a),ut(e,_),ut(e,r),tl(v,c,p),tl(v,u,p),ua(f,u,null),m=!0,g||(d=ca(u,"click",l[2]),g=!0)},p(v,[p]){(!m||p&1)&&pa(a,v[0])},i(v){m||(da(f.$$.fragment,v),m=!0)},o(v){ma(f.$$.fragment,v),m=!1},d(v){v&&(el(e),el(c),el(u)),ra(f),g=!1,d()}}}function va(l,e,t){const n=ha();let{root:i}=e;const o=()=>n("close");return l.$$set=s=>{"root"in s&&t(0,i=s.root)},[i,n,o]}class $a extends oa{constructor(e){super(),_a(this,e,va,ga,fa,{root:0})}get root(){return this.$$.ctx[0]}set root(e){this.$$set({root:e}),aa()}}const Bo="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M26.9425%202.94265C27.4632%202.42195%2027.4632%201.57773%2026.9425%201.05703C26.4218%200.536329%2025.5776%200.536329%2025.0569%201.05703L22.5713%203.54256C21.1213%202.59333%2019.5367%202.43378%2018.1753%202.64006C16.5495%202.88638%2015.1127%203.66838%2014.3905%204.39053L12.3905%206.39053C12.1405%206.64058%2012%206.97972%2012%207.33334C12%207.68697%2012.1405%208.0261%2012.3905%208.27615L19.7239%2015.6095C20.2446%2016.1302%2021.0888%2016.1302%2021.6095%2015.6095L23.6095%2013.6095C24.3316%2012.8873%2025.1136%2011.4505%2025.36%209.82475C25.5663%208.46312%2025.4066%206.87827%2024.4571%205.42807L26.9425%202.94265Z'%20fill='%233c4555'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.276%2012.9426C12.7967%2012.4219%2012.7967%2011.5777%2012.276%2011.057C11.7553%2010.5363%2010.9111%2010.5363%2010.3904%2011.057L8.66651%2012.7809L8.27615%2012.3905C8.0261%2012.1405%207.68697%2012%207.33334%2012C6.97972%2012%206.64058%2012.1405%206.39053%2012.3905L4.39053%2014.3905C3.66838%2015.1127%202.88638%2016.5495%202.64006%2018.1753C2.43377%2019.5367%202.59333%2021.1214%203.54262%2022.5714L1.05703%2025.057C0.536329%2025.5777%200.536329%2026.4219%201.05703%2026.9426C1.57773%2027.4633%202.42195%2027.4633%202.94265%2026.9426L5.42817%2024.4571C6.87835%2025.4066%208.46315%2025.5663%209.82475%2025.36C11.4505%2025.1136%2012.8873%2024.3316%2013.6095%2023.6095L15.6095%2021.6095C16.1302%2021.0888%2016.1302%2020.2446%2015.6095%2019.7239L15.2188%2019.3332L16.9426%2017.6093C17.4633%2017.0886%2017.4633%2016.2444%2016.9426%2015.7237C16.4219%2015.203%2015.5777%2015.203%2015.057%2015.7237L13.3332%2017.4475L10.5521%2014.6665L12.276%2012.9426Z'%20fill='%23FF7C00'/%3e%3c/svg%3e",{SvelteComponent:ba,append:qe,attr:Qe,create_component:Kl,destroy_component:xl,detach:Tt,element:Je,flush:ei,init:ka,insert:qt,listen:wa,mount_component:ti,noop:ya,safe_not_equal:Ea,set_data:ni,space:xt,src_url_equal:ja,text:en,transition_in:li,transition_out:ii}=window.__gradio__svelte__internal,{createEventDispatcher:Ca}=window.__gradio__svelte__internal;function Aa(l){let e,t,n;return{c(){e=Je("div"),t=xt(),n=Je("p"),n.textContent="API Recorder",Qe(e,"class","loading-dot self-baseline svelte-1i1gjw2"),Qe(n,"class","self-baseline btn-text svelte-1i1gjw2")},m(i,o){qt(i,e,o),qt(i,t,o),qt(i,n,o)},p:ya,d(i){i&&(Tt(e),Tt(t),Tt(n))}}}function oi(l){let e;return{c(){e=en("s")},m(t,n){qt(t,e,n)},d(t){t&&Tt(e)}}}function La(l){let e,t,n,i,o,s,a,_,r,c,u,f,m,g,d,v,p,j,w,b,C,h,k;u=new On({props:{size:"sm",variant:"secondary",elem_id:"start-api-recorder",$$slots:{default:[Aa]},$$scope:{ctx:l}}}),u.$on("click",l[3]);let L=l[1]>1&&oi();return b=new Uo({}),{c(){e=Je("h2"),t=Je("img"),i=xt(),o=Je("div"),s=en(`API documentation
13		`),a=Je("div"),_=en(l[0]),r=xt(),c=Je("span"),Kl(u.$$.fragment),f=xt(),m=Je("p"),g=Je("span"),d=en(l[1]),v=en(" API endpoint"),L&&L.c(),p=Je("br"),j=xt(),w=Je("button"),Kl(b.$$.fragment),ja(t.src,n=Bo)||Qe(t,"src",n),Qe(t,"alt",""),Qe(t,"class","svelte-1i1gjw2"),Qe(a,"class","url svelte-1i1gjw2"),Qe(o,"class","title svelte-1i1gjw2"),Qe(g,"class","url svelte-1i1gjw2"),Qe(c,"class","counts svelte-1i1gjw2"),Qe(e,"class","svelte-1i1gjw2"),Qe(w,"class","svelte-1i1gjw2")},m(y,$){qt(y,e,$),qe(e,t),qe(e,i),qe(e,o),qe(o,s),qe(o,a),qe(a,_),qe(e,r),qe(e,c),ti(u,c,null),qe(c,f),qe(c,m),qe(m,g),qe(g,d),qe(m,v),L&&L.m(m,null),qe(m,p),qt(y,j,$),qt(y,w,$),ti(b,w,null),C=!0,h||(k=wa(w,"click",l[4]),h=!0)},p(y,[$]){(!C||$&1)&&ni(_,y[0]);const E={};$&32&&(E.$$scope={dirty:$,ctx:y}),u.$set(E),(!C||$&2)&&ni(d,y[1]),y[1]>1?L||(L=oi(),L.c(),L.m(m,p)):L&&(L.d(1),L=null)},i(y){C||(li(u.$$.fragment,y),li(b.$$.fragment,y),C=!0)},o(y){ii(u.$$.fragment,y),ii(b.$$.fragment,y),C=!1},d(y){y&&(Tt(e),Tt(j),Tt(w)),xl(u),L&&L.d(),xl(b),h=!1,k()}}}function Ta(l,e,t){let{root:n}=e,{api_count:i}=e;const o=Ca(),s=()=>o("close",{api_recorder_visible:!0}),a=()=>o("close");return l.$$set=_=>{"root"in _&&t(0,n=_.root),"api_count"in _&&t(1,i=_.api_count)},[n,i,o,s,a]}class qa extends ba{constructor(e){super(),ka(this,e,Ta,La,Ea,{root:0,api_count:1})}get root(){return this.$$.ctx[0]}set root(e){this.$$set({root:e}),ei()}get api_count(){return this.$$.ctx[1]}set api_count(e){this.$$set({api_count:e}),ei()}}function Be(l,e,t=null){return e===void 0?t==="py"?"None":null:l===null&&t==="py"?"None":e==="string"||e==="str"?t===null?l:'"'+l+'"':e==="number"?t===null?parseFloat(l):l:e==="boolean"||e=="bool"?t==="py"?(l=String(l),l==="true"?"True":"False"):t==="js"||t==="bash"?l:l==="true":e==="List[str]"?(l=JSON.stringify(l),l):e.startsWith("Literal['")?'"'+l+'"':t===null?l===""?null:JSON.parse(l):typeof l=="string"?l===""?t==="py"?"None":"null":l:(t==="bash"&&(l=cl(l)),t==="py"&&(l=ul(l)),Pa(l))}function Ho(l){if(typeof l=="object"&&l!==null&&l.hasOwnProperty("url")&&l.hasOwnProperty("meta")&&typeof l.meta=="object"&&l.meta!==null&&l.meta._type==="gradio.FileData")return!0;
vendor: 9,848 bytes, lines 13-16
13if(typeof l=="object"&&l!==null){for(let e in l)if(typeof l[e]=="object"&&Ho(l[e]))return!0}return!1}function cl(l){return typeof l=="object"&&l!==null&&!Array.isArray(l)&&"url"in l&&l.url&&"meta"in l&&l.meta?._type==="gradio.FileData"?{path:l.url}:(Array.isArray(l)?l.forEach((e,t)=>{typeof e=="object"&&e!==null&&(l[t]=cl(e))}):typeof l=="object"&&l!==null&&Object.keys(l).forEach(e=>{l[e]=cl(l[e])}),l)}function ul(l){return typeof l=="object"&&l!==null&&!Array.isArray(l)&&"url"in l&&l.url&&"meta"in l&&l.meta?._type==="gradio.FileData"?`handle_file('${l.url}')`:(Array.isArray(l)?l.forEach((e,t)=>{typeof e=="object"&&e!==null&&(l[t]=ul(e))}):typeof l=="object"&&l!==null&&Object.keys(l).forEach(e=>{l[e]=ul(l[e])}),l)}function Pa(l){let e=JSON.stringify(l,(i,o)=>o===null?"UNQUOTEDNone":typeof o=="string"&&o.startsWith("handle_file(")&&o.endsWith(")")?`UNQUOTED${o}`:o);const t=/"UNQUOTEDhandle_file\(([^)]*)\)"/g;e=e.replace(t,(i,o)=>`handle_file(${o})`);const n=/"UNQUOTEDNone"/g;return e.replace(n,"None")}const{SvelteComponent:Oa,append:pe,attr:dt,check_outros:Ia,create_component:Da,destroy_component:Ra,destroy_each:Sa,detach:ke,element:Ve,empty:Go,ensure_array_like:si,flush:pn,group_outros:Va,init:Ma,insert:we,mount_component:Na,noop:za,safe_not_equal:Fa,set_data:Pt,set_style:Et,space:jt,text:Le,toggle_class:ri,transition_in:kn,transition_out:fl}=window.__gradio__svelte__internal;function ai(l,e,t){const n=l.slice();return n[4]=e[t].label,n[5]=e[t].python_type,n[6]=e[t].component,n[7]=e[t].parameter_name,n[8]=e[t].parameter_has_default,n[9]=e[t].parameter_default,n[11]=t,n}function _i(l){let e;return{c(){e=Le("s")},m(t,n){we(t,e,n)},d(t){t&&ke(e)}}}function Ua(l){let e=(l[2][l[11]].type||"any")+"",t;return{c(){t=Le(e)},m(n,i){we(n,t,i)},p(n,i){i&4&&e!==(e=(n[2][n[11]].type||"any")+"")&&Pt(t,e)},d(n){n&&ke(t)}}}function Ba(l){let e=l[5].type+"",t,n,i=l[8]&&l[9]===null&&ci();return{c(){t=Le(e),i&&i.c(),n=Go()},m(o,s){we(o,t,s),i&&i.m(o,s),we(o,n,s)},p(o,s){s&2&&e!==(e=o[5].type+"")&&Pt(t,e),o[8]&&o[9]===null?i||(i=ci(),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(o){o&&(ke(t),ke(n)),i&&i.d(o)}}}function ci(l){let e;return{c(){e=Le(` |
14							None`)},m(t,n){we(t,e,n)},d(t){t&&ke(e)}}}function Ha(l){let e,t,n=Be(l[9],l[5].type,"py")+"",i;return{c(){e=Ve("span"),e.textContent="Default: ",t=Ve("span"),i=Le(n),dt(t,"class","code svelte-1yt946s"),Et(t,"font-size","var(--text-sm)")},m(o,s){we(o,e,s),we(o,t,s),pe(t,i)},p(o,s){s&2&&n!==(n=Be(o[9],o[5].type,"py")+"")&&Pt(i,n)},d(o){o&&(ke(e),ke(t))}}}function Ga(l){let e;return{c(){e=Ve("span"),e.textContent="Required",Et(e,"font-weight","bold")},m(t,n){we(t,e,n)},p:za,d(t){t&&ke(e)}}}function ui(l){let e,t,n,i,o,s=(l[3]!=="bash"&&l[7]?l[7]:"["+l[11]+"]")+"",a,_,r,c,u,f,m,g=l[4]+"",d,v,p=l[6]+"",j,w,b;function C(E,P){return E[3]==="python"?Ba:Ua}let h=C(l),k=h(l);function L(E,P){return!E[8]||E[3]=="bash"?Ga:Ha}let y=L(l),$=y(l);return{c(){e=Ve("hr"),t=jt(),n=Ve("div"),i=Ve("p"),o=Ve("span"),a=Le(s),_=jt(),r=Ve("span"),k.c(),c=jt(),$.c(),u=jt(),f=Ve("p"),m=Le('The input value that is provided in the "'),d=Le(g),v=Le('" '),j=Le(p),w=Le(`
15				component.`),b=jt(),dt(e,"class","hr svelte-1yt946s"),dt(o,"class","code svelte-1yt946s"),Et(o,"margin-right","10px"),dt(r,"class","code highlight svelte-1yt946s"),Et(r,"margin-right","10px"),Et(i,"white-space","nowrap"),Et(i,"overflow-x","auto"),dt(f,"class","desc svelte-1yt946s"),Et(n,"margin","10px")},m(E,P){we(E,e,P),we(E,t,P),we(E,n,P),pe(n,i),pe(i,o),pe(o,a),pe(i,_),pe(i,r),k.m(r,null),pe(i,c),$.m(i,null),pe(n,u),pe(n,f),pe(f,m),pe(f,d),pe(f,v),pe(f,j),pe(f,w),pe(n,b)},p(E,P){P&10&&s!==(s=(E[3]!=="bash"&&E[7]?E[7]:"["+E[11]+"]")+"")&&Pt(a,s),h===(h=C(E))&&k?k.p(E,P):(k.d(1),k=h(E),k&&(k.c(),k.m(r,null))),y===(y=L(E))&&$?$.p(E,P):($.d(1),$=y(E),$&&($.c(),$.m(i,null))),P&2&&g!==(g=E[4]+"")&&Pt(d,g),P&2&&p!==(p=E[6]+"")&&Pt(j,p)},d(E){E&&(ke(e),ke(t),ke(n)),k.d(),$.d()}}}function fi(l){let e,t,n;return t=new Ro({props:{margin:!1}}),{c(){e=Ve("div"),Da(t.$$.fragment),dt(e,"class","load-wrap")},m(i,o){we(i,e,o),Na(t,e,null),n=!0},i(i){n||(kn(t.$$.fragment,i),n=!0)},o(i){fl(t.$$.fragment,i),n=!1},d(i){i&&ke(e),Ra(t)}}}function Za(l){let e,t,n,i=l[1].length+"",o,s,a,_,r,c,u,f,m=l[1].length!=1&&_i(),g=si(l[1]),d=[];for(let p=0;p<g.length;p+=1)d[p]=ui(ai(l,g,p));let v=l[0]&&fi();return{c(){e=Ve("h4"),t=Ve("div"),t.innerHTML='<div class="toggle-dot svelte-1yt946s"></div>',n=Le(`
16	Accepts `),o=Le(i),s=Le(" parameter"),m&&m.c(),a=Le(":"),_=jt(),r=Ve("div");for(let p=0;p<d.length;p+=1)d[p].c();c=jt(),v&&v.c(),u=Go(),dt(t,"class","toggle-icon svelte-1yt946s"),dt(e,"class","svelte-1yt946s"),ri(r,"hide",l[0])},m(p,j){we(p,e,j),pe(e,t),pe(e,n),pe(e,o),pe(e,s),m&&m.m(e,null),pe(e,a),we(p,_,j),we(p,r,j);for(let w=0;w<d.length;w+=1)d[w]&&d[w].m(r,null);we(p,c,j),v&&v.m(p,j),we(p,u,j),f=!0},p(p,[j]){if((!f||j&2)&&i!==(i=p[1].length+"")&&Pt(o,i),p[1].length!=1?m||(m=_i(),m.c(),m.m(e,a)):m&&(m.d(1),m=null),j&14){g=si(p[1]);let w;for(w=0;w<g.length;w+=1){const b=ai(p,g,w);d[w]?d[w].p(b,j):(d[w]=ui(b),d[w].c(),d[w].m(r,null))}for(;w<d.length;w+=1)d[w].d(1);d.length=g.length}(!f||j&1)&&ri(r,"hide",p[0]),p[0]?v?j&1&&kn(v,1):(v=fi(),v.c(),kn(v,1),v.m(u.parentNode,u)):v&&(Va(),fl(v,1,1,()=>{v=null}),Ia())},i(p){f||(kn(v),f=!0)},o(p){fl(v),f=!1},d(p){p&&(ke(e),ke(_),ke(r),ke(c),ke(u)),m&&m.d(),Sa(d,p),v&&v.d(p)}}}function Wa(l,e,t){let{is_running:n}=e,{endpoint_returns:i}=e,{js_returns:o}=e,{current_language:s}=e;return l.$$set=a=>{"is_running"in a&&t(0,n=a.is_running),"endpoint_returns"in a&&t(1,i=a.endpoint_returns),"js_returns"in a&&t(2,o=a.js_returns),"current_language"in a&&t(3,s=a.current_language)},[n,i,o,s]}class Qa extends Oa{constructor(e){super(),Ma(this,e,Wa,Za,Fa,{is_running:0,endpoint_returns:1,js_returns:2,current_language:3})}get is_running(){return this.$$.ctx[0]}set is_running(e){this.$$set({is_running:e}),pn()}get endpoint_returns(){return this.$$.ctx[1]}set endpoint_returns(e){this.$$set({endpoint_returns:e}),pn()}get js_returns(){return this.$$.ctx[2]}set js_returns(e){this.$$set({js_returns:e}),pn()}get current_language(){return this.$$.ctx[3]}set current_language(e){this.$$set({current_language:e}),pn()}}const{SvelteComponent:Ja,create_component:Xa,destroy_component:Ya,detach:Ka,flush:xa,init:e_,insert:t_,mount_component:n_,safe_not_equal:l_,set_data:i_,text:o_,transition_in:s_,transition_out:r_}=window.__gradio__svelte__internal;function a_(l){let e;return{c(){e=o_(l[0])},m(t,n){t_(t,e,n)},p(t,n){n&1&&i_(e,t[0])},d(t){t&&Ka(e)}}}function __(l){let e,t;return e=new On({props:{size:"sm",$$slots:{default:[a_]},$$scope:{ctx:l}}}),e.$on("click",l[1]),{c(){Xa(e.$$.fragment)},m(n,i){n_(e,n,i),t=!0},p(n,[i]){const o={};i&9&&(o.$$scope={dirty:i,ctx:n}),e.$set(o)},i(n){t||(s_(e.$$.fragment,n),t=!0)},o(n){r_(e.$$.fragment,n),t=!1},d(n){Ya(e,n)}}}function c_(l,e,t){let{code:n}=e,i="copy";function o(){navigator.clipboard.writeText(n),t(0,i="copied!"),setTimeout(()=>{t(0,i="copy")},1500)}return l.$$set=s=>{"code"in s&&t(2,n=s.code)},[i,o,n]}class it extends Ja{constructor(e){super(),e_(this,e,c_,__,l_,{code:2})}get code(){return this.$$.ctx[2]}set code(e){this.$$set({code:e}),xa()}}const{SvelteComponent:u_,append:yl,attr:It,check_outros:f_,create_component:In,destroy_component:Dn,detach:xe,element:et,flush:p_,group_outros:d_,init:m_,insert:tt,mount_component:Rn,noop:El,safe_not_equal:h_,space:jl,transition_in:Bt,transition_out:Ht}=window.__gradio__svelte__internal;function g_(l){let e,t,n,i,o,s;return t=new it({props:{code:mi}}),{c(){e=et("div"),In(t.$$.fragment),n=jl(),i=et("div"),o=et("pre"),o.textContent=`$ ${mi}`,It(e,"class","copy svelte-hq8ezf"),It(o,"class","svelte-hq8ezf")},m(a,_){tt(a,e,_),Rn(t,e,null),tt(a,n,_),tt(a,i,_),yl(i,o),s=!0},p:El,i(a){s||(Bt(t.$$.fragment,a),s=!0)},o(a){Ht(t.$$.fragment,a),s=!1},d(a){a&&(xe(e),xe(n),xe(i)),Dn(t)}}}function v_(l){let e,t,n,i,o,s;return t=new it({props:{code:di}}),{c(){e=et("div"),In(t.$$.fragment),n=jl(),i=et("div"),o=et("pre"),o.textContent=`$ ${di}`,It(e,"class","copy svelte-hq8ezf"),It(o,"class","svelte-hq8ezf")},m(a,_){tt(a,e,_),Rn(t,e,null),tt(a,n,_),tt(a,i,_),yl(i,o),s=!0},p:El,i(a){s||(Bt(t.$$.fragment,a),s=!0)},o(a){Ht(t.$$.fragment,a),s=!1},d(a){a&&(xe(e),xe(n),xe(i)),Dn(t)}}}function $_(l){let e,t,n,i,o,s;return t=new it({props:{code:pi}}),{c(){e=et("div"),In(t.$$.fragment),n=jl(),i=et("div"),o=et("pre"),o.textContent=`$ ${pi}`,It(e,"class","copy svelte-hq8ezf"),It(o,"class","svelte-hq8ezf")},m(a,_){tt(a,e,_),Rn(t,e,null),tt(a,n,_),tt(a,i,_),yl(i,o),s=!0},p:El,i(a){s||(Bt(t.$$.fragment,a),s=!0)},o(a){Ht(t.$$.fragment,a),s=!1},d(a){a&&(xe(e),xe(n),xe(i)),Dn(t)}}}function b_(l){let e,t,n,i;const o=[$_,v_,g_],s=[];function a(_,r){return _[0]==="python"?0:_[0]==="javascript"?1:_[0]==="bash"?2:-1}return~(t=a(l))&&(n=s[t]=o[t](l)),{c(){e=et("code"),n&&n.c(),It(e,"class","svelte-hq8ezf")},m(_,r){tt(_,e,r),~t&&s[t].m(e,null),i=!0},p(_,r){let c=t;t=a(_),t===c?~t&&s[t].p(_,r):(n&&(d_(),Ht(s[c],1,1,()=>{s[c]=null}),f_()),~t?(n=s[t],n?n.p(_,r):(n=s[t]=o[t](_),n.c()),Bt(n,1),n.m(e,null)):n=null)},i(_){i||(Bt(n),i=!0)},o(_){Ht(n),i=!1},d(_){_&&xe(e),~t&&s[t].d()}}}function k_(l){let e,t;return e=new sn({props:{border_mode:"contrast",$$slots:{default:[b_]},$$scope:{ctx:l}}}),{c(){In(e.$$.fragment)},m(n,i){Rn(e,n,i),t=!0},p(n,[i]){const o={};i&3&&(o.$$scope={dirty:i,ctx:n}),e.$set(o)},i(n){t||(Bt(e.$$.fragment,n),t=!0)},o(n){Ht(e.$$.fragment,n),t=!1},d(n){Dn(e,n)}}}let pi="pip install gradio_client",di="npm i -D @gradio/client",mi="curl --version";function w_(l,e,t){let{current_language:n}=e;return l.$$set=i=>{"current_language"in i&&t(0,n=i.current_language)},[n]}class y_ extends u_{constructor(e){super(),m_(this,e,w_,k_,h_,{current_language:0})}get current_language(){return this.$$.ctx[0]}set current_language(e){this.$$set({current_language:e}),p_()}}
16const{SvelteComponent:E_,append:Ft,attr:yn,detach:Cl,element:En,empty:j_,flush:ll,init:C_,insert:Al,noop:hi,safe_not_equal:A_,set_data:Zo,text:jn}=window.__gradio__svelte__internal;function L_(l){let e,t,n,i;return{c(){e=En("h3"),t=jn(`fn_index:
17		`),n=En("span"),i=jn(l[1]),yn(n,"class","post svelte-41kcm6"),yn(e,"class","svelte-41kcm6")},m(o,s){Al(o,e,s),Ft(e,t),Ft(e,n),Ft(n,i)},p(o,s){s&2&&Zo(i,o[1])},d(o){o&&Cl(e)}}}function T_(l){let e,t,n,i="/"+l[0],o;return{c(){e=En("h3"),t=jn(`api_name:
18		`),n=En("span"),o=jn(i),yn(n,"class","post svelte-41kcm6"),yn(e,"class","svelte-41kcm6")},m(s,a){Al(s,e,a),Ft(e,t),Ft(e,n),Ft(n,o)},p(s,a){a&1&&i!==(i="/"+s[0])&&Zo(o,i)},d(s){s&&Cl(e)}}}function q_(l){let e;function t(o,s){return o[2]?T_:L_}let n=t(l),i=n(l);return{c(){i.c(),e=j_()},m(o,s){i.m(o,s),Al(o,e,s)},p(o,[s]){n===(n=t(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(e.parentNode,e)))},i:hi,o:hi,d(o){o&&Cl(e),i.d(o)}}}function P_(l,e,t){let{api_name:n=null}=e,{fn_index:i=null}=e,{named:o}=e;return l.$$set=s=>{"api_name"in s&&t(0,n=s.api_name),"fn_index"in s&&t(1,i=s.fn_index),"named"in s&&t(2,o=s.named)},[n,i,o]}class Wo extends E_{constructor(e){super(),C_(this,e,P_,q_,A_,{api_name:0,fn_index:1,named:2})}get api_name(){return this.$$.ctx[0]}set api_name(e){this.$$set({api_name:e}),ll()}get fn_index(){return this.$$.ctx[1]}set fn_index(e){this.$$set({fn_index:e}),ll()}get named(){return this.$$.ctx[2]}set named(e){this.$$set({named:e}),ll()}}const{SvelteComponent:O_,append:I,attr:ae,binding_callbacks:il,check_outros:gi,create_component:$t,destroy_component:bt,destroy_each:Cn,detach:H,element:te,empty:Qo,ensure_array_like:mt,flush:ft,group_outros:vi,init:I_,insert:G,mount_component:kt,noop:D_,safe_not_equal:R_,set_data:ge,space:Sn,text:q,transition_in:He,transition_out:Ge}=window.__gradio__svelte__internal;function $i(l,e,t){const n=l.slice();return n[25]=e[t].label,n[20]=e[t].parameter_name,n[26]=e[t].type,n[18]=e[t].python_type,n[27]=e[t].component,n[19]=e[t].example_input,n[28]=e[t].serializer,n[24]=t,n}function bi(l,e,t){const n=l.slice();return n[25]=e[t].label,n[20]=e[t].parameter_name,n[26]=e[t].type,n[18]=e[t].python_type,n[27]=e[t].component,n[19]=e[t].example_input,n[28]=e[t].serializer,n[24]=t,n}function ki(l,e,t){const n=l.slice();return n[27]=e[t].component,n[19]=e[t].example_input,n[24]=t,n}function wi(l,e,t){const n=l.slice();return n[18]=e[t].python_type,n[19]=e[t].example_input,n[20]=e[t].parameter_name,n[21]=e[t].parameter_has_default,n[22]=e[t].parameter_default,n[24]=t,n}function S_(l){let e,t;return e=new Wo({props:{named:l[5],fn_index:l[1]}}),{c(){$t(e.$$.fragment)},m(n,i){kt(e,n,i),t=!0},p(n,i){const o={};i[0]&32&&(o.named=n[5]),i[0]&2&&(o.fn_index=n[1]),e.$set(o)},i(n){t||(He(e.$$.fragment,n),t=!0)},o(n){Ge(e.$$.fragment,n),t=!1},d(n){bt(e,n)}}}function V_(l){let e,t;return e=new Wo({props:{named:l[5],api_name:l[0].api_name}}),{c(){$t(e.$$.fragment)},m(n,i){kt(e,n,i),t=!0},p(n,i){const o={};i[0]&32&&(o.named=n[5]),i[0]&1&&(o.api_name=n[0].api_name),e.$set(o)},i(n){t||(He(e.$$.fragment,n),t=!0)},o(n){Ge(e.$$.fragment,n),t=!1},d(n){bt(e,n)}}}function M_(l){let e,t;return e=new sn({props:{$$slots:{default:[F_]},$$scope:{ctx:l}}}),{c(){$t(e.$$.fragment)},m(n,i){kt(e,n,i),t=!0},p(n,i){const o={};i[0]&1045|i[1]&2&&(o.$$scope={dirty:i,ctx:n}),e.$set(o)},i(n){t||(He(e.$$.fragment,n),t=!0)},o(n){Ge(e.$$.fragment,n),t=!1},d(n){bt(e,n)}}}function N_(l){let e,t;return e=new sn({props:{$$slots:{default:[Z_]},$$scope:{ctx:l}}}),{c(){$t(e.$$.fragment)},m(n,i){kt(e,n,i),t=!0},p(n,i){const o={};i[0]&639|i[1]&2&&(o.$$scope={dirty:i,ctx:n}),e.$set(o)},i(n){t||(He(e.$$.fragment,n),t=!0)},o(n){Ge(e.$$.fragment,n),t=!1},d(n){bt(e,n)}}}function z_(l){let e,t;return e=new sn({props:{$$slots:{default:[Q_]},$$scope:{ctx:l}}}),{c(){$t(e.$$.fragment)},m(n,i){kt(e,n,i),t=!0},p(n,i){const o={};i[0]&349|i[1]&2&&(o.$$scope={dirty:i,ctx:n}),e.$set(o)},i(n){t||(He(e.$$.fragment,n),t=!0)},o(n){Ge(e.$$.fragment,n),t=!1},d(n){bt(e,n)}}}function yi(l){let e;return{c(){e=q(",")},m(t,n){G(t,e,n)},d(t){t&&H(e)}}}function Ei(l){let e,t=Be(l[19],l[18].type,"bash")+"",n,i,o=l[24]<l[4].length-1&&yi();return{c(){e=q(`
19    `),n=q(t),o&&o.c(),i=Qo()},m(s,a){G(s,e,a),G(s,n,a),o&&o.m(s,a),G(s,i,a)},p(s,a){a[0]&16&&t!==(t=Be(s[19],s[18].type,"bash")+"")&&ge(n,t),s[24]<s[4].length-1?o||(o=yi(),o.c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)}
vendor: 18,887 bytes, lines 19-65
19,d(s){s&&(H(e),H(n),H(i)),o&&o.d(s)}}}function F_(l){let e,t,n,i,o,s,a,_,r,c=l[0].api_name+"",u,f,m="{",g,d,v,p="}",j,w,b="{",C,h,k="}",L,y,$,E,P=l[0].api_name+"",D,U,O;n=new it({props:{code:l[10]?.innerText}});let V=mt(l[4]),M=[];for(let R=0;R<V.length;R+=1)M[R]=Ei($i(l,V,R));return{c(){e=te("code"),t=te("div"),$t(n.$$.fragment),i=Sn(),o=te("div"),s=te("pre"),a=q("curl -X POST "),_=q(l[2]),r=q("call/"),u=q(c),f=q(` -s -H "Content-Type: application/json" -d '`),g=q(m),d=q(`
20  "data": [`);for(let R=0;R<M.length;R+=1)M[R].c();v=q(`
21]`),j=q(p),w=q(`' \\
22  | awk -F'"' '`),C=q(b),h=q(" print $4"),L=q(k),y=q(`'  \\
23  | read EVENT_ID; curl -N `),$=q(l[2]),E=q("call/"),D=q(P),U=q("/$EVENT_ID"),ae(t,"class","copy svelte-114qcyq"),ae(s,"class","svelte-114qcyq"),ae(e,"class","svelte-114qcyq")},m(R,se){G(R,e,se),I(e,t),kt(n,t,null),I(e,i),I(e,o),I(o,s),I(s,a),I(s,_),I(s,r),I(s,u),I(s,f),I(s,g),I(s,d);for(let me=0;me<M.length;me+=1)M[me]&&M[me].m(s,null);I(s,v),I(s,j),I(s,w),I(s,C),I(s,h),I(s,L),I(s,y),I(s,$),I(s,E),I(s,D),I(s,U),l[16](o),O=!0},p(R,se){const me={};if(se[0]&1024&&(me.code=R[10]?.innerText),n.$set(me),(!O||se[0]&4)&&ge(_,R[2]),(!O||se[0]&1)&&c!==(c=R[0].api_name+"")&&ge(u,c),se[0]&16){V=mt(R[4]);let K;for(K=0;K<V.length;K+=1){const We=$i(R,V,K);M[K]?M[K].p(We,se):(M[K]=Ei(We),M[K].c(),M[K].m(s,v))}for(;K<M.length;K+=1)M[K].d(1);M.length=V.length}(!O||se[0]&4)&&ge($,R[2]),(!O||se[0]&1)&&P!==(P=R[0].api_name+"")&&ge(D,P)},i(R){O||(He(n.$$.fragment,R),O=!0)},o(R){Ge(n.$$.fragment,R),O=!1},d(R){R&&H(e),bt(n),Cn(M,R),l[16](null)}}}function ji(l){let e,t,n,i=l[19].url+"",o,s,a=l[27]+"",_,r,c,u;return{c(){e=q(`
24const response_`),t=q(l[24]),n=q(' = await fetch("'),o=q(i),s=q(`");
25const example`),_=q(a),r=q(" = await response_"),c=q(l[24]),u=q(`.blob();
26						`)},m(f,m){G(f,e,m),G(f,t,m),G(f,n,m),G(f,o,m),G(f,s,m),G(f,_,m),G(f,r,m),G(f,c,m),G(f,u,m)},p:D_,d(f){f&&(H(e),H(t),H(n),H(o),H(s),H(_),H(r),H(c),H(u))}}}function Ci(l){let e,t,n;return{c(){e=q(', {auth: ["'),t=q(l[6]),n=q('", **password**]}')},m(i,o){G(i,e,o),G(i,t,o),G(i,n,o)},p(i,o){o[0]&64&&ge(t,i[6])},d(i){i&&(H(e),H(t),H(n))}}}function U_(l){let e;return{c(){e=q(l[1])},m(t,n){G(t,e,n)},p(t,n){n[0]&2&&ge(e,t[1])},d(t){t&&H(e)}}}function B_(l){let e,t,n=l[0].api_name+"",i,o;return{c(){e=te("span"),t=q('"/'),i=q(n),o=q('"'),ae(e,"class","api-name svelte-114qcyq")},m(s,a){G(s,e,a),I(e,t),I(e,i),I(e,o)},p(s,a){a[0]&1&&n!==(n=s[0].api_name+"")&&ge(i,n)},d(s){s&&H(e)}}}function H_(l){let e,t,n=l[20]+"",i,o,s=Be(l[19],l[18].type,"js")+"",a,_;return{c(){e=q(`		
27		`),t=te("span"),i=q(n),o=q(": "),a=q(s),_=q(", "),ae(t,"class","example-inputs")},m(r,c){G(r,e,c),G(r,t,c),I(t,i),I(t,o),I(t,a),G(r,_,c)},p(r,c){c[0]&16&&n!==(n=r[20]+"")&&ge(i,n),c[0]&16&&s!==(s=Be(r[19],r[18].type,"js")+"")&&ge(a,s)},d(r){r&&(H(e),H(t),H(_))}}}function G_(l){let e,t,n=l[20]+"",i,o,s=l[27]+"",a,_,r;return{c(){e=q(`
28				`),t=te("span"),i=q(n),o=q(": example"),a=q(s),_=q(", "),r=te("span"),r.innerHTML="",ae(t,"class","example-inputs"),ae(r,"class","desc svelte-114qcyq")},m(c,u){G(c,e,u),G(c,t,u),I(t,i),I(t,o),I(t,a),G(c,_,u),G(c,r,u)},p(c,u){u[0]&16&&n!==(n=c[20]+"")&&ge(i,n),u[0]&16&&s!==(s=c[27]+"")&&ge(a,s)},d(c){c&&(H(e),H(t),H(_),H(r))}}}function Ai(l){let e,t;function n(s,a){return a[0]&16&&(e=null),e==null&&(e=!!s[12].includes(s[27])),e?G_:H_}let i=n(l,[-1,-1]),o=i(l);return{c(){o.c(),t=Qo()},m(s,a){o.m(s,a),G(s,t,a)},p(s,a){i===(i=n(s,a))&&o?o.p(s,a):(o.d(1),o=i(s),o&&(o.c(),o.m(t.parentNode,t)))},d(s){s&&H(t),o.d(s)}}}function Z_(l){let e,t,n,i,o,s,a,_,r,c,u=(l[3]||l[2])+"",f,m,g,d,v,p;n=new it({props:{code:l[9]?.innerText}});let j=mt(l[13]),w=[];for(let $=0;$<j.length;$+=1)w[$]=ji(ki(l,j,$));let b=l[6]!==null&&Ci(l);function C($,E){return $[5]?B_:U_}let h=C(l),k=h(l),L=mt(l[4]),y=[];for(let $=0;$<L.length;$+=1)y[$]=Ai(bi(l,L,$));return{c(){e=te("code"),t=te("div"),$t(n.$$.fragment),i=Sn(),o=te("div"),s=te("pre"),a=q(`import { Client } from "@gradio/client";
29`);for(let $=0;$<w.length;$+=1)w[$].c();_=q(`
30const client = await Client.connect(`),r=te("span"),c=q('"'),f=q(u),m=q('"'),b&&b.c(),g=q(`);
31const result = await client.predict(`),k.c(),d=q(", { ");for(let $=0;$<y.length;$+=1)y[$].c();v=q(`
32});
33
34console.log(result.data);
35`),ae(t,"class","copy svelte-114qcyq"),ae(r,"class","token string svelte-114qcyq"),ae(s,"class","svelte-114qcyq"),ae(e,"class","svelte-114qcyq")},m($,E){G($,e,E),I(e,t),kt(n,t,null),I(e,i),I(e,o),I(o,s),I(s,a);for(let P=0;P<w.length;P+=1)w[P]&&w[P].m(s,null);I(s,_),I(s,r),I(r,c),I(r,f),I(r,m),b&&b.m(s,null),I(s,g),k.m(s,null),I(s,d);for(let P=0;P<y.length;P+=1)y[P]&&y[P].m(s,null);I(s,v),l[15](o),p=!0},p($,E){const P={};if(E[0]&512&&(P.code=$[9]?.innerText),n.$set(P),E[0]&8192){j=mt($[13]);let D;for(D=0;D<j.length;D+=1){const U=ki($,j,D);w[D]?w[D].p(U,E):(w[D]=ji(U),w[D].c(),w[D].m(s,_))}for(;D<w.length;D+=1)w[D].d(1);w.length=j.length}if((!p||E[0]&12)&&u!==(u=($[3]||$[2])+"")&&ge(f,u),$[6]!==null?b?b.p($,E):(b=Ci($),b.c(),b.m(s,g)):b&&(b.d(1),b=null),h===(h=C($))&&k?k.p($,E):(k.d(1),k=h($),k&&(k.c(),k.m(s,d))),E[0]&4112){L=mt($[4]);let D;for(D=0;D<L.length;D+=1){const U=bi($,L,D);y[D]?y[D].p(U,E):(y[D]=Ai(U),y[D].c(),y[D].m(s,v))}for(;D<y.length;D+=1)y[D].d(1);y.length=L.length}},i($){p||(He(n.$$.fragment,$),p=!0)},o($){Ge(n.$$.fragment,$),p=!1},d($){$&&H(e),bt(n),Cn(w,$),b&&b.d(),k.d(),Cn(y,$),l[15](null)}}}function W_(l){let e;return{c(){e=q(", handle_file")},m(t,n){G(t,e,n)},d(t){t&&H(e)}}}function Li(l){let e,t,n;return{c(){e=q(', auth=("'),t=q(l[6]),n=q('", **password**)')},m(i,o){G(i,e,o),G(i,t,o),G(i,n,o)},p(i,o){o[0]&64&&ge(t,i[6])},d(i){i&&(H(e),H(t),H(n))}}}function Ti(l){let e,t=l[20]?l[20]+"=":"",n,i,o=Be(l[21]?l[22]:l[19],l[18].type,"py")+"",s,a;return{c(){e=q(`
36		`),n=q(t),i=te("span"),s=q(o),a=q(",")},m(_,r){G(_,e,r),G(_,n,r),G(_,i,r),I(i,s),G(_,a,r)},p(_,r){r[0]&16&&t!==(t=_[20]?_[20]+"=":"")&&ge(n,t),r[0]&16&&o!==(o=Be(_[21]?_[22]:_[19],_[18].type,"py")+"")&&ge(s,o)},d(_){_&&(H(e),H(n),H(i),H(a))}}}function Q_(l){let e,t,n,i,o,s,a,_,r,c,u,f,m,g=(l[3]||l[2])+"",d,v,p,j,w,b,C,h,k=l[0].api_name+"",L,y,$,E,P,D;n=new it({props:{code:l[8]?.innerText}});let U=l[11]&&W_(),O=l[6]!==null&&Li(l),V=mt(l[4]),M=[];for(let R=0;R<V.length;R+=1)M[R]=Ti(wi(l,V,R));return{c(){e=te("code"),t=te("div"),$t(n.$$.fragment),i=Sn(),o=te("div"),s=te("pre"),a=te("span"),a.textContent="from",_=q(" gradio_client "),r=te("span"),r.textContent="import",c=q(" Client"),U&&U.c(),u=q(`
37
38client = Client(`),f=te("span"),m=q('"'),d=q(g),v=q('"'),O&&O.c(),p=q(`)
39result = client.`),j=te("span"),j.textContent="predict",w=q("(");for(let R=0;R<M.length;R+=1)M[R].c();b=q(`
40		api_name=`),C=te("span"),h=q('"/'),L=q(k),y=q('"'),$=q(`
41)
42`),E=te("span"),E.textContent="print",P=q("(result)"),ae(t,"class","copy svelte-114qcyq"),ae(a,"class","highlight"),ae(r,"class","highlight"),ae(f,"class","token string svelte-114qcyq"),ae(j,"class","highlight"),ae(C,"class","api-name svelte-114qcyq"),ae(E,"class","highlight"),ae(s,"class","svelte-114qcyq"),ae(e,"class","svelte-114qcyq")},m(R,se){G(R,e,se),I(e,t),kt(n,t,null),I(e,i),I(e,o),I(o,s),I(s,a),I(s,_),I(s,r),I(s,c),U&&U.m(s,null),I(s,u),I(s,f),I(f,m),I(f,d),I(f,v),O&&O.m(s,null),I(s,p),I(s,j),I(s,w);for(let me=0;me<M.length;me+=1)M[me]&&M[me].m(s,null);I(s,b),I(s,C),I(C,h),I(C,L),I(C,y),I(s,$),I(s,E),I(s,P),l[14](o),D=!0},p(R,se){const me={};if(se[0]&256&&(me.code=R[8]?.innerText),n.$set(me),(!D||se[0]&12)&&g!==(g=(R[3]||R[2])+"")&&ge(d,g),R[6]!==null?O?O.p(R,se):(O=Li(R),O.c(),O.m(s,p)):O&&(O.d(1),O=null),se[0]&16){V=mt(R[4]);let K;for(K=0;K<V.length;K+=1){const We=wi(R,V,K);M[K]?M[K].p(We,se):(M[K]=Ti(We),M[K].c(),M[K].m(s,b))}for(;K<M.length;K+=1)M[K].d(1);M.length=V.length}(!D||se[0]&1)&&k!==(k=R[0].api_name+"")&&ge(L,k)},i(R){D||(He(n.$$.fragment,R),D=!0)},o(R){Ge(n.$$.fragment,R),D=!1},d(R){R&&H(e),bt(n),U&&U.d(),O&&O.d(),Cn(M,R),l[14](null)}}}function J_(l){let e,t,n,i,o,s,a;const _=[V_,S_],r=[];function c(g,d){return g[5]?0:1}t=c(l),n=r[t]=_[t](l);const u=[z_,N_,M_],f=[];function m(g,d){return g[7]==="python"?0:g[7]==="javascript"?1:g[7]==="bash"?2:-1}return~(o=m(l))&&(s=f[o]=u[o](l)),{c(){e=te("div"),n.c(),i=Sn(),s&&s.c(),ae(e,"class","container svelte-114qcyq")},m(g,d){G(g,e,d),r[t].m(e,null),I(e,i),~o&&f[o].m(e,null),a=!0},p(g,d){let v=t;t=c(g),t===v?r[t].p(g,d):(vi(),Ge(r[v],1,1,()=>{r[v]=null}),gi(),n=r[t],n?n.p(g,d):(n=r[t]=_[t](g),n.c()),He(n,1),n.m(e,i));let p=o;o=m(g),o===p?~o&&f[o].p(g,d):(s&&(vi(),Ge(f[p],1,1,()=>{f[p]=null}),gi()),~o?(s=f[o],s?s.p(g,d):(s=f[o]=u[o](g),s.c()),He(s,1),s.m(e,null)):s=null)},i(g){a||(He(n),He(s),a=!0)},o(g){Ge(n),Ge(s),a=!1},d(g){g&&H(e),r[t].d(),~o&&f[o].d()}}}function X_(l,e,t){let{dependency:n}=e,{dependency_index:i}=e,{root:o}=e,{space_id:s}=e,{endpoint_parameters:a}=e,{named:_}=e,{username:r}=e,{current_language:c}=e,u,f,m,g=a.some(b=>Ho(b.example_input)),d=["Audio","File","Image","Video"],v=a.filter(b=>d.includes(b.component));function p(b){il[b?"unshift":"push"](()=>{u=b,t(8,u)})}function j(b){il[b?"unshift":"push"](()=>{f=b,t(9,f)})}function w(b){il[b?"unshift":"push"](()=>{m=b,t(10,m)})}return l.$$set=b=>{"dependency"in b&&t(0,n=b.dependency),"dependency_index"in b&&t(1,i=b.dependency_index),"root"in b&&t(2,o=b.root),"space_id"in b&&t(3,s=b.space_id),"endpoint_parameters"in b&&t(4,a=b.endpoint_parameters),"named"in b&&t(5,_=b.named),"username"in b&&t(6,r=b.username),"current_language"in b&&t(7,c=b.current_language)},[n,i,o,s,a,_,r,c,u,f,m,g,d,v,p,j,w]}class Y_ extends O_{constructor(e){super(),I_(this,e,X_,J_,R_,{dependency:0,dependency_index:1,root:2,space_id:3,endpoint_parameters:4,named:5,username:6,current_language:7},null,[-1,-1])}get dependency(){return this.$$.ctx[0]}set dependency(e){this.$$set({dependency:e}),ft()}get dependency_index(){return this.$$.ctx[1]}set dependency_index(e){this.$$set({dependency_index:e}),ft()}get root(){return this.$$.ctx[2]}set root(e){this.$$set({root:e}),ft()}get space_id(){return this.$$.ctx[3]}set space_id(e){this.$$set({space_id:e}),ft()}get endpoint_parameters(){return this.$$.ctx[4]}set endpoint_parameters(e){this.$$set({endpoint_parameters:e}),ft()}get named(){return this.$$.ctx[5]}set named(e){this.$$set({named:e}),ft()}get username(){return this.$$.ctx[6]}set username(e){this.$$set({username:e}),ft()}get current_language(){return this.$$.ctx[7]}set current_language(e){this.$$set({current_language:e}),ft()}}const{SvelteComponent:K_,append:S,attr:be,binding_callbacks:ol,check_outros:x_,create_component:Vn,destroy_component:Mn,destroy_each:Ll,detach:ce,element:_e,empty:ec,ensure_array_like:Gt,flush:St,group_outros:tc,init:nc,insert:ue,mount_component:Nn,safe_not_equal:lc,set_data:Me,space:zn,text:F,transition_in:Zt,transition_out:Wt}=window.__gradio__svelte__internal,{onMount:ic,tick:oc}=window.__gradio__svelte__internal;function qi(l,e,t){const n=l.slice();return n[19]=e[t].call,n[20]=e[t].api_name,n}function Pi(l,e,t){const n=l.slice();return n[19]=e[t].call,n[20]=e[t].api_name,n}function Oi(l,e,t){const n=l.slice();return n[19]=e[t].call,n[20]=e[t].api_name,n}function sc(l){let e,t,n,i,o,s;n=new it({props:{code:l[6]?.innerText}});let a=Gt(l[9]),_=[];for(let r=0;r<a.length;r+=1)_[r]=Ii(qi(l,a,r));return{c(){e=_e("code"),t=_e("div"),Vn(n.$$.fragment),i=zn(),o=_e("div");for(let r=0;r<_.length;r+=1)_[r].c();be(t,"class","copy svelte-j71ub0"),be(e,"class","svelte-j71ub0")},m(r,c){ue(r,e,c),S(e,t),Nn(n,t,null),S(e,i),S(e,o);for(let u=0;u<_.length;u+=1)_[u]&&_[u].m(o,null);l[15](o),s=!0},p(r,c){const u={};if(c&64&&(u.code=r[6]?.innerText),n.$set(u),c&513){a=Gt(r[9]);let f;for(f=0;f<a.length;f+=1){const m=qi(r,a,f);_[f]?_[f].p(m,c):(_[f]=Ii(m),_[f].c(),_[f].m(o,null))}for(;f<_.length;f+=1)_[f].d(1);_.length=a.length}},i(r){s||(Zt(n.$$.fragment,r),s=!0)},o(r){Wt(n.$$.fragment,r),s=!1},d(r){r&&ce(e),Mn(n),Ll(_,r),l[15](null)}}}function rc(l){let e,t,n,i,o,s,a,_,r,c,u,f,m;n=new it({props:{code:l[5]?.innerText}});let g=l[2]!==null&&Di(l),d=Gt(l[8]),v=[];for(let p=0;p<d.length;p+=1)v[p]=Si(Pi(l,d,p));return{c(){e=_e("code"),t=_e("div"),Vn(n.$$.fragment),i=zn(),o=_e("div"),s=_e("pre"),a=F(`import { Client } from "@gradio/client";
43
44const app = await Client.connect(`),_=_e("span"),r=F('"'),c=F(l[0]),u=F('"'),g&&g.c(),f=F(`);
45					`);for(let p=0;p<v.length;p+=1)v[p].c();be(t,"class","copy svelte-j71ub0"),be(_,"class","token string svelte-j71ub0"),be(s,"class","svelte-j71ub0"),be(e,"class","svelte-j71ub0")},m(p,j){ue(p,e,j),S(e,t),Nn(n,t,null),S(e,i),S(e,o),S(o,s),S(s,a),S(s,_),S(_,r),S(_,c),S(_,u),g&&g.m(s,null),S(s,f);for(let w=0;w<v.length;w+=1)v[w]&&v[w].m(s,null);l[14](o),m=!0},p(p,j){const w={};if(j&32&&(w.code=p[5]?.innerText),n.$set(w),(!m||j&1)&&Me(c,p[0]),p[2]!==null?g?g.p(p,j):(g=Di(p),g.c(),g.m(s,f)):g&&(g.d(1),g=null),j&256){d=Gt(p[8]);let b;for(b=0;b<d.length;b+=1){const C=Pi(p,d,b);v[b]?v[b].p(C,j):(v[b]=Si(C),v[b].c(),v[b].m(s,null))}for(;b<v.length;b+=1)v[b].d(1);v.length=d.length}},i(p){m||(Zt(n.$$.fragment,p),m=!0)},o(p){Wt(n.$$.fragment,p),m=!1},d(p){p&&ce(e),Mn(n),g&&g.d(),Ll(v,p),l[14](null)}}}function ac(l){let e,t,n,i,o,s,a,_,r,c,u,f,m,g,d,v;n=new it({props:{code:l[4]}});let p=l[2]!==null&&Vi(l),j=Gt(l[7]),w=[];for(let b=0;b<j.length;b+=1)w[b]=Mi(Oi(l,j,b));return{c(){e=_e("code"),t=_e("div"),Vn(n.$$.fragment),i=zn(),o=_e("div"),s=_e("pre"),a=_e("span"),a.textContent="from",_=F(" gradio_client "),r=_e("span"),r.textContent="import",c=F(` Client, file
46
47client = Client(`),u=_e("span"),f=F('"'),m=F(l[0]),g=F('"'),p&&p.c(),d=F(`)
48`);for(let b=0;b<w.length;b+=1)w[b].c();be(t,"class","copy svelte-j71ub0"),be(a,"class","highlight"),be(r,"class","highlight"),be(u,"class","token string svelte-j71ub0"),be(s,"class","svelte-j71ub0"),be(e,"class","svelte-j71ub0")},m(b,C){ue(b,e,C),S(e,t),Nn(n,t,null),S(e,i),S(e,o),S(o,s),S(s,a),S(s,_),S(s,r),S(s,c),S(s,u),S(u,f),S(u,m),S(u,g),p&&p.m(s,null),S(s,d);for(let h=0;h<w.length;h+=1)w[h]&&w[h].m(s,null);l[13](o),v=!0},p(b,C){const h={};if(C&16&&(h.code=b[4]),n.$set(h),(!v||C&1)&&Me(m,b[0]),b[2]!==null?p?p.p(b,C):(p=Vi(b),p.c(),p.m(s,d)):p&&(p.d(1),p=null),C&128){j=Gt(b[7]);let k;for(k=0;k<j.length;k+=1){const L=Oi(b,j,k);w[k]?w[k].p(L,C):(w[k]=Mi(L),w[k].c(),w[k].m(s,null))}for(;k<w.length;k+=1)w[k].d(1);w.length=j.length}},i(b){v||(Zt(n.$$.fragment,b),v=!0)},o(b){Wt(n.$$.fragment,b),v=!1},d(b){b&&ce(e),Mn(n),p&&p.d(),Ll(w,b),l[13](null)}}}function Ii(l){let e,t,n,i,o=l[20]+"",s,a,_="{",r,c,u=l[19]+"",f,m,g="}",d,v,p="{",j,w,b="}",C,h,k,L,y=l[20]+"",$,E,P,D;return{c(){e=_e("pre"),t=F("curl -X POST "),n=F(l[0]),i=F("call/"),s=F(o),a=F(` -s -H "Content-Type: application/json" -d '`),r=F(_),c=F(` 
49	"data": [`),f=F(u),m=F("]"),d=F(g),v=F(`' \\
50  | awk -F'"' '`),j=F(p),w=F(" print $4"),C=F(b),h=F(`' \\
51  | read EVENT_ID; curl -N `),k=F(l[0]),L=F("call/"),$=F(y),E=F("/$EVENT_ID"),P=zn(),D=_e("br"),be(e,"class","svelte-j71ub0")},m(U,O){ue(U,e,O),S(e,t),S(e,n),S(e,i),S(e,s),S(e,a),S(e,r),S(e,c),S(e,f),S(e,m),S(e,d),S(e,v),S(e,j),S(e,w),S(e,C),S(e,h),S(e,k),S(e,L),S(e,$),S(e,E),ue(U,P,O),ue(U,D,O)},p(U,O){O&1&&Me(n,U[0]),O&512&&o!==(o=U[20]+"")&&Me(s,o),O&512&&u!==(u=U[19]+"")&&Me(f,u),O&1&&Me(k,U[0]),O&512&&y!==(y=U[20]+"")&&Me($,y)},d(U){U&&(ce(e),ce(P),ce(D))}}}function Di(l){let e,t,n;return{c(){e=F(', {auth: ["'),t=F(l[2]),n=F('", **password**]}')},m(i,o){ue(i,e,o),ue(i,t,o),ue(i,n,o)},p(i,o){o&4&&Me(t,i[2])},d(i){i&&(ce(e),ce(t),ce(n))}}}function Ri(l){let e;return{c(){e=F(", ")},m(t,n){ue(t,e,n)},d(t){t&&ce(e)}}}function Si(l){let e,t,n,i=l[20]+"",o,s,a=l[19]+"",_,r,c=l[19]&&Ri();return{c(){e=F(`
52await client.predict(`),t=_e("span"),n=F(`
53  "/`),o=F(i),s=F('"'),c&&c.c(),_=F(a),r=F(`);
54						`),be(t,"class","api-name svelte-j71ub0")},m(u,f){ue(u,e,f),ue(u,t,f),S(t,n),S(t,o),S(t,s),c&&c.m(u,f),ue(u,_,f),ue(u,r,f)},p(u,f){f&256&&i!==(i=u[20]+"")&&Me(o,i),u[19]?c||(c=Ri(),c.c(),c.m(_.parentNode,_)):c&&(c.d(1),c=null),f&256&&a!==(a=u[19]+"")&&Me(_,a)},d(u){u&&(ce(e),ce(t),ce(_),ce(r)),c&&c.d(u)}}}function Vi(l){let e,t,n;return{c(){e=F(', auth=("'),t=F(l[2]),n=F('", **password**)')},m(i,o){ue(i,e,o),ue(i,t,o),ue(i,n,o)},p(i,o){o&4&&Me(t,i[2])},d(i){i&&(ce(e),ce(t),ce(n))}}}function Mi(l){let e,t,n,i=l[19]+"",o,s,a,_,r=l[20]+"",c,u,f;return{c(){e=F(`
55client.`),t=_e("span"),n=F(`predict(
56`),o=F(i),s=F("  api_name="),a=_e("span"),_=F('"/'),c=F(r),u=F('"'),f=F(`
57)
58`),be(a,"class","api-name svelte-j71ub0"),be(t,"class","highlight")},m(m,g){ue(m,e,g),ue(m,t,g),S(t,n),S(t,o),S(t,s),S(t,a),S(a,_),S(a,c),S(a,u),S(t,f)},p(m,g){g&128&&i!==(i=m[19]+"")&&Me(o,i),g&128&&r!==(r=m[20]+"")&&Me(c,r)},d(m){m&&(ce(e),ce(t))}}}function _c(l){let e,t,n,i;const o=[ac,rc,sc],s=[];function a(_,r){return _[1]==="python"?0:_[1]==="javascript"?1:_[1]==="bash"?2:-1}return~(e=a(l))&&(t=s[e]=o[e](l)),{c(){t&&t.c(),n=ec()},m(_,r){~e&&s[e].m(_,r),ue(_,n,r),i=!0},p(_,r){let c=e;e=a(_),e===c?~e&&s[e].p(_,r):(t&&(tc(),Wt(s[c],1,1,()=>{s[c]=null}),x_()),~e?(t=s[e],t?t.p(_,r):(t=s[e]=o[e](_),t.c()),Zt(t,1),t.m(n.parentNode,n)):t=null)},i(_){i||(Zt(t),i=!0)},o(_){Wt(t),i=!1},d(_){_&&ce(n),~e&&s[e].d(_)}}}function cc(l){let e,t,n;return t=new sn({props:{border_mode:"focus",$$slots:{default:[_c]},$$scope:{ctx:l}}}),{c(){e=_e("div"),Vn(t.$$.fragment),be(e,"class","container svelte-j71ub0")},m(i,o){ue(i,e,o),Nn(t,e,null),n=!0},p(i,[o]){const s={};o&134218751&&(s.$$scope={dirty:o,ctx:i}),t.$set(s)},i(i){n||(Zt(t.$$.fragment,i),n=!0)},o(i){Wt(t.$$.fragment,i),n=!1},d(i){i&&ce(e),Mn(t)}}}function uc(l,e,t){let{dependencies:n}=e,{short_root:i}=e,{root:o}=e,{current_language:s}=e,{username:a}=e,_,r,c,u,{api_calls:f=[]}=e;async function m(){return await(await fetch(o+"info/?all_endpoints=true")).json()}let g,d=[],v=[],p=[];function j(h,k){const L=`/${n[h.fn_index].api_name}`,$=h.data.filter(E=>typeof E<"u").map((E,P)=>{if(g[L]){const D=g[L].parameters[P];if(!D)return;const U=D.parameter_name,O=D.python_type.type;if(k==="py")return`  ${U}=${Be(E,O,"py")}`;if(k==="js")return`    ${U}: ${Be(E,O,"js")}`;if(k==="bash")return`    ${Be(E,O,"bash")}`}return`  ${Be(E,void 0,k)}`}).filter(E=>typeof E<"u").join(`,
59`);if($){if(k==="py")return`${$},
60`;if(k==="js")return`{
61${$},
62}`;if(k==="bash")return`
63${$}
64`}return k==="py"?"":`
65`}ic(async()=>{g=(await m()).named_endpoints;let k=f.map(E=>j(E,"py")),L=f.map(E=>j(E,"js")),y=f.map(E=>j(E,"bash")),$=f.map(E=>n[E.fn_index].api_name||"");t(7,d=k.map((E,P)=>({call:E,api_name:$[P]}))),t(8,v=L.map((E,P)=>({call:E,api_name:$[P]}))),t(9,p=y.map((E,P)=>({call:E,api_name:$[P]}))),await oc(),t(4,r=_.innerText)});function w(h){ol[h?"unshift":"push"](()=>{_=h,t(3,_)})}function b(h){ol[h?"unshift":"push"](()=>{c=h,t(5,c)})}function C(h){ol[h?"unshift":"push"](()=>{u=h,t(6,u)})}return l.$$set=h=>{"dependencies"in h&&t(10,n=h.dependencies),"short_root"in h&&t(0,i=h.short_root),"root"in h&&t(11,o=h.root),"current_language"in h&&t(1,s=h.current_language),"username"in h&&t(2,a=h.username),"api_calls"in h&&t(12,f=h.api_calls)},[i,s,a,_,r,c,u,d,v,p,n,o,f,w,b,C]}
65class fc extends K_{constructor(e){super(),nc(this,e,uc,cc,lc,{dependencies:10,short_root:0,root:11,current_language:1,username:2,api_calls:12})}get dependencies(){return this.$$.ctx[10]}set dependencies(e){this.$$set({dependencies:e}),St()}get short_root(){return this.$$.ctx[0]}set short_root(e){this.$$set({short_root:e}),St()}get root(){return this.$$.ctx[11]}set root(e){this.$$set({root:e}),St()}get current_language(){return this.$$.ctx[1]}set current_language(e){this.$$set({current_language:e}),St()}get username(){return this.$$.ctx[2]}set username(e){this.$$set({username:e}),St()}get api_calls(){return this.$$.ctx[12]}set api_calls(e){this.$$set({api_calls:e}),St()}}const pc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20focusable='false'%20role='img'%20width='1em'%20height='1em'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%2032%2032'%20%3e%3cpath%20d='M15.84.5a16.4,16.4,0,0,0-3.57.32C9.1,1.39,8.53,2.53,8.53,4.64V7.48H16v1H5.77a4.73,4.73,0,0,0-4.7,3.74,14.82,14.82,0,0,0,0,7.54c.57,2.28,1.86,3.82,4,3.82h2.6V20.14a4.73,4.73,0,0,1,4.63-4.63h7.38a3.72,3.72,0,0,0,3.73-3.73V4.64A4.16,4.16,0,0,0,19.65.82,20.49,20.49,0,0,0,15.84.5ZM11.78,2.77a1.39,1.39,0,0,1,1.38,1.46,1.37,1.37,0,0,1-1.38,1.38A1.42,1.42,0,0,1,10.4,4.23,1.44,1.44,0,0,1,11.78,2.77Z'%20fill='%235a9fd4'%20%3e%3c/path%3e%3cpath%20d='M16.16,31.5a16.4,16.4,0,0,0,3.57-.32c3.17-.57,3.74-1.71,3.74-3.82V24.52H16v-1H26.23a4.73,4.73,0,0,0,4.7-3.74,14.82,14.82,0,0,0,0-7.54c-.57-2.28-1.86-3.82-4-3.82h-2.6v3.41a4.73,4.73,0,0,1-4.63,4.63H12.35a3.72,3.72,0,0,0-3.73,3.73v7.14a4.16,4.16,0,0,0,3.73,3.82A20.49,20.49,0,0,0,16.16,31.5Zm4.06-2.27a1.39,1.39,0,0,1-1.38-1.46,1.37,1.37,0,0,1,1.38-1.38,1.42,1.42,0,0,1,1.38,1.38A1.44,1.44,0,0,1,20.22,29.23Z'%20fill='%23ffd43b'%20%3e%3c/path%3e%3c/svg%3e",dc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20focusable='false'%20role='img'%20width='1em'%20height='1em'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%2032%2032'%20%3e%3crect%20width='32'%20height='32'%20fill='%23f7df1e'%3e%3c/rect%3e%3cpath%20d='M21.5,25a3.27,3.27,0,0,0,3,1.83c1.25,0,2-.63,2-1.49,0-1-.81-1.39-2.19-2L23.56,23C21.39,22.1,20,20.94,20,18.49c0-2.25,1.72-4,4.41-4a4.44,4.44,0,0,1,4.27,2.41l-2.34,1.5a2,2,0,0,0-1.93-1.29,1.31,1.31,0,0,0-1.44,1.29c0,.9.56,1.27,1.85,1.83l.75.32c2.55,1.1,4,2.21,4,4.72,0,2.71-2.12,4.19-5,4.19a5.78,5.78,0,0,1-5.48-3.07Zm-10.63.26c.48.84.91,1.55,1.94,1.55s1.61-.39,1.61-1.89V14.69h3V25c0,3.11-1.83,4.53-4.49,4.53a4.66,4.66,0,0,1-4.51-2.75Z'%20%3e%3c/path%3e%3c/svg%3e",mc="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20id='Layer_1'%20x='0px'%20y='0px'%20viewBox='0%200%20150%20150'%20style='enable-background:new%200%200%20150%20150;%20background-color:%20%2372a824;'%20xml:space='preserve'%3e%3cscript%20xmlns=''/%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FFFFFF;}%20%3c/style%3e%3cg%3e%3cpath%20class='st0'%20d='M118.9,40.3L81.7,18.2c-2.2-1.3-4.7-2-7.2-2s-5,0.7-7.2,2L30.1,40.3c-4.4,2.6-7.2,7.5-7.2,12.8v44.2%20c0,5.3,2.7,10.1,7.2,12.8l37.2,22.1c2.2,1.3,4.7,2,7.2,2c2.5,0,5-0.7,7.2-2l37.2-22.1c4.4-2.6,7.2-7.5,7.2-12.8V53%20C126.1,47.8,123.4,42.9,118.9,40.3z%20M90.1,109.3l0.1,3.2c0,0.4-0.2,0.8-0.5,1l-1.9,1.1c-0.3,0.2-0.5,0-0.6-0.4l0-3.1%20c-1.6,0.7-3.2,0.8-4.3,0.4c-0.2-0.1-0.3-0.4-0.2-0.7l0.7-2.9c0.1-0.2,0.2-0.5,0.3-0.6c0.1-0.1,0.1-0.1,0.2-0.1%20c0.1-0.1,0.2-0.1,0.3,0c1.1,0.4,2.6,0.2,3.9-0.5c1.8-0.9,2.9-2.7,2.9-4.5c0-1.6-0.9-2.3-3-2.3c-2.7,0-5.2-0.5-5.3-4.5%20c0-3.3,1.7-6.7,4.4-8.8l0-3.2c0-0.4,0.2-0.8,0.5-1l1.8-1.2c0.3-0.2,0.5,0,0.6,0.4l0,3.2c1.3-0.5,2.5-0.7,3.6-0.4%20c0.2,0.1,0.3,0.4,0.2,0.7l-0.7,2.8c-0.1,0.2-0.2,0.4-0.3,0.6c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.2,0.1-0.3,0%20c-0.5-0.1-1.6-0.4-3.4,0.6c-1.9,1-2.6,2.6-2.5,3.8c0,1.5,0.8,1.9,3.3,1.9c3.4,0.1,4.9,1.6,5,5C94.7,103.4,92.9,107,90.1,109.3z%20M109.6,103.9c0,0.3,0,0.6-0.3,0.7l-9.4,5.7c-0.2,0.1-0.4,0-0.4-0.3v-2.4c0-0.3,0.2-0.5,0.4-0.6l9.3-5.5c0.2-0.1,0.4,0,0.4,0.3%20V103.9z%20M116.1,49.6L80.9,71.3c-4.4,2.6-7.6,5.4-7.6,10.7v43.4c0,3.2,1.3,5.2,3.2,5.8c-0.6,0.1-1.3,0.2-2,0.2%20c-2.1,0-4.1-0.6-5.9-1.6l-37.2-22.1c-3.6-2.2-5.9-6.2-5.9-10.5V53c0-4.3,2.3-8.4,5.9-10.5l37.2-22.1c1.8-1.1,3.8-1.6,5.9-1.6%20s4.1,0.6,5.9,1.6l37.2,22.1c3.1,1.8,5.1,5,5.7,8.5C122.1,48.4,119.3,47.7,116.1,49.6z'/%3e%3c/g%3e%3c/svg%3e",{SvelteComponent:hc,append:Re,attr:Ot,check_outros:gc,create_component:vc,destroy_component:$c,destroy_each:bc,detach:ye,element:Ye,empty:kc,ensure_array_like:Ni,flush:dn,group_outros:wc,init:yc,insert:Ee,mount_component:Ec,noop:jc,safe_not_equal:Cc,set_data:Qt,set_style:Ac,space:Mt,text:Ne,toggle_class:zi,transition_in:wn,transition_out:pl}=window.__gradio__svelte__internal;function Fi(l,e,t){const n=l.slice();return n[4]=e[t].label,n[5]=e[t].type,n[6]=e[t].python_type,n[7]=e[t].component,n[8]=e[t].seri
vendor: 14,347 bytes, lines 65-95
65alizer,n[10]=t,n}function Lc(l){let e;return{c(){e=Ne("1 element")},m(t,n){Ee(t,e,n)},p:jc,d(t){t&&ye(e)}}}function Tc(l){let e=l[3]=="python"?"tuple":"list",t,n,i=l[1].length+"",o,s;return{c(){t=Ne(e),n=Ne(" of "),o=Ne(i),s=Ne(`
66		elements`)},m(a,_){Ee(a,t,_),Ee(a,n,_),Ee(a,o,_),Ee(a,s,_)},p(a,_){_&8&&e!==(e=a[3]=="python"?"tuple":"list")&&Qt(t,e),_&2&&i!==(i=a[1].length+"")&&Qt(o,i)},d(a){a&&(ye(t),ye(n),ye(o),ye(s))}}}function Ui(l){let e;return{c(){e=Ye("span"),e.textContent=`[${l[10]}]`,Ot(e,"class","code svelte-16h224k")},m(t,n){Ee(t,e,n)},d(t){t&&ye(e)}}}function qc(l){let e=l[2][l[10]].type+"",t;return{c(){t=Ne(e)},m(n,i){Ee(n,t,i)},p(n,i){i&4&&e!==(e=n[2][n[10]].type+"")&&Qt(t,e)},d(n){n&&ye(t)}}}function Pc(l){let e=l[6].type+"",t;return{c(){t=Ne(e)},m(n,i){Ee(n,t,i)},p(n,i){i&2&&e!==(e=n[6].type+"")&&Qt(t,e)},d(n){n&&ye(t)}}}function Bi(l){let e,t,n,i,o,s,a,_,r,c=l[4]+"",u,f,m=l[7]+"",g,d,v,p=l[1].length>1&&Ui(l);function j(C,h){return C[3]==="python"?Pc:qc}let w=j(l),b=w(l);return{c(){e=Ye("hr"),t=Mt(),n=Ye("div"),i=Ye("p"),p&&p.c(),o=Mt(),s=Ye("span"),b.c(),a=Mt(),_=Ye("p"),r=Ne('The output value that appears in the "'),u=Ne(c),f=Ne('" '),g=Ne(m),d=Ne(`
67				component.`),v=Mt(),Ot(e,"class","hr svelte-16h224k"),Ot(s,"class","code highlight svelte-16h224k"),Ot(_,"class","desc svelte-16h224k"),Ac(n,"margin","10px")},m(C,h){Ee(C,e,h),Ee(C,t,h),Ee(C,n,h),Re(n,i),p&&p.m(i,null),Re(i,o),Re(i,s),b.m(s,null),Re(n,a),Re(n,_),Re(_,r),Re(_,u),Re(_,f),Re(_,g),Re(_,d),Re(n,v)},p(C,h){C[1].length>1?p||(p=Ui(C),p.c(),p.m(i,o)):p&&(p.d(1),p=null),w===(w=j(C))&&b?b.p(C,h):(b.d(1),b=w(C),b&&(b.c(),b.m(s,null))),h&2&&c!==(c=C[4]+"")&&Qt(u,c),h&2&&m!==(m=C[7]+"")&&Qt(g,m)},d(C){C&&(ye(e),ye(t),ye(n)),p&&p.d(),b.d()}}}function Hi(l){let e,t,n;return t=new Ro({props:{margin:!1}}),{c(){e=Ye("div"),vc(t.$$.fragment),Ot(e,"class","load-wrap")},m(i,o){Ee(i,e,o),Ec(t,e,null),n=!0},i(i){n||(wn(t.$$.fragment,i),n=!0)},o(i){pl(t.$$.fragment,i),n=!1},d(i){i&&ye(e),$c(t)}}}function Oc(l){let e,t,n,i,o,s,a,_;function r(d,v){return d[1].length>1?Tc:Lc}let c=r(l),u=c(l),f=Ni(l[1]),m=[];for(let d=0;d<f.length;d+=1)m[d]=Bi(Fi(l,f,d));let g=l[0]&&Hi();return{c(){e=Ye("h4"),t=Ye("div"),t.innerHTML='<div class="toggle-dot toggle-right svelte-16h224k"></div>',n=Ne(`
68	Returns `),u.c(),i=Mt(),o=Ye("div");for(let d=0;d<m.length;d+=1)m[d].c();s=Mt(),g&&g.c(),a=kc(),Ot(t,"class","toggle-icon svelte-16h224k"),Ot(e,"class","svelte-16h224k"),zi(o,"hide",l[0])},m(d,v){Ee(d,e,v),Re(e,t),Re(e,n),u.m(e,null),Ee(d,i,v),Ee(d,o,v);for(let p=0;p<m.length;p+=1)m[p]&&m[p].m(o,null);Ee(d,s,v),g&&g.m(d,v),Ee(d,a,v),_=!0},p(d,[v]){if(c===(c=r(d))&&u?u.p(d,v):(u.d(1),u=c(d),u&&(u.c(),u.m(e,null))),v&14){f=Ni(d[1]);let p;for(p=0;p<f.length;p+=1){const j=Fi(d,f,p);m[p]?m[p].p(j,v):(m[p]=Bi(j),m[p].c(),m[p].m(o,null))}for(;p<m.length;p+=1)m[p].d(1);m.length=f.length}(!_||v&1)&&zi(o,"hide",d[0]),d[0]?g?v&1&&wn(g,1):(g=Hi(),g.c(),wn(g,1),g.m(a.parentNode,a)):g&&(wc(),pl(g,1,1,()=>{g=null}),gc())},i(d){_||(wn(g),_=!0)},o(d){pl(g),_=!1},d(d){d&&(ye(e),ye(i),ye(o),ye(s),ye(a)),u.d(),bc(m,d),g&&g.d(d)}}}function Ic(l,e,t){let{is_running:n}=e,{endpoint_returns:i}=e,{js_returns:o}=e,{current_language:s}=e;return l.$$set=a=>{"is_running"in a&&t(0,n=a.is_running),"endpoint_returns"in a&&t(1,i=a.endpoint_returns),"js_returns"in a&&t(2,o=a.js_returns),"current_language"in a&&t(3,s=a.current_language)},[n,i,o,s]}class Dc extends hc{constructor(e){super(),yc(this,e,Ic,Oc,Cc,{is_running:0,endpoint_returns:1,js_returns:2,current_language:3})}get is_running(){return this.$$.ctx[0]}set is_running(e){this.$$set({is_running:e}),dn()}get endpoint_returns(){return this.$$.ctx[1]}set endpoint_returns(e){this.$$set({endpoint_returns:e}),dn()}get js_returns(){return this.$$.ctx[2]}set js_returns(e){this.$$set({js_returns:e}),dn()}get current_language(){return this.$$.ctx[3]}set current_language(e){this.$$set({current_language:e}),dn()}}const{SvelteComponent:Rc,append:Q,attr:Z,bubble:Gi,check_outros:An,create_component:ht,destroy_component:gt,destroy_each:Zi,detach:N,element:Y,empty:Tl,ensure_array_like:mn,flush:wt,group_outros:Ln,init:Sc,insert:z,listen:Vc,mount_component:vt,noop:Jo,safe_not_equal:Mc,set_data:dl,set_style:yt,space:Ae,src_url_equal:Nc,text:J,transition_in:de,transition_out:je}=window.__gradio__svelte__internal,{onMount:zc,createEventDispatcher:Fc}=window.__gradio__svelte__internal;function Wi(l,e,t){const n=l.slice();return n[19]=e[t],n[21]=t,n}function Qi(l,e,t){const n=l.slice();return n[22]=e[t][0],n[23]=e[t][1],n}function Ji(l){let e,t,n,i;const o=[Bc,Uc],s=[];function a(_,r){return _[8]?0:1}return e=a(l),t=s[e]=o[e](l),{c(){t.c(),n=Tl()},m(_,r){s[e].m(_,r),z(_,n,r),i=!0},p(_,r){t.p(_,r)},i(_){i||(de(t),i=!0)},o(_){je(t),i=!1},d(_){_&&N(n),s[e].d(_)}}}function Uc(l){let e,t;return e=new $a({props:{root:l[0]}}),e.$on("close",l[16]),{c(){ht(e.$$.fragment)},m(n,i){vt(e,n,i),t=!0},p(n,i){const o={};i&1&&(o.root=n[0]),e.$set(o)},i(n){t||(de(e.$$.fragment,n),t=!0)},o(n){je(e.$$.fragment,n),t=!1},d(n){gt(e,n)}}}function Bc(l){let e,t,n,i,o,s,a,_,r,c,u,f,m;t=new qa({props:{root:l[2]||l[0],api_count:l[8]}}),t.$on("close",l[13]);let g=mn(l[9]),d=[];for(let h=0;h<g.length;h+=1)d[h]=Xi(Qi(l,g,h));const v=[Gc,Hc],p=[];function j(h,k){return h[4].length?0:1}c=j(l),u=p[c]=v[c](l);let w=mn(l[1]),b=[];for(let h=0;h<w.length;h+=1)b[h]=to(Wi(l,w,h));const C=h=>je(b[h],1,1,()=>{b[h]=null});return{c(){e=Y("div"),ht(t.$$.fragment),n=Ae(),i=Y("div"),o=Y("div"),o.innerHTML=`<p style="font-size: var(--text-lg);">Choose a language to see the code snippets for interacting with the
69					API.</p>`,s=Ae(),a=Y("div"),_=Y("div");for(let h=0;h<d.length;h+=1)d[h].c();r=Ae(),u.c(),f=Ae();for(let h=0;h<b.length;h+=1)b[h].c();Z(e,"class","banner-wrap svelte-v3jjme"),Z(o,"class","client-doc svelte-v3jjme"),Z(_,"class","snippets svelte-v3jjme"),Z(a,"class","endpoint svelte-v3jjme"),Z(i,"class","docs-wrap svelte-v3jjme")},m(h,k){z(h,e,k),vt(t,e,null),z(h,n,k),z(h,i,k),Q(i,o),Q(i,s),Q(i,a),Q(a,_);for(let L=0;L<d.length;L+=1)d[L]&&d[L].m(_,null);Q(a,r),p[c].m(a,null),Q(a,f);for(let L=0;L<b.length;L+=1)b[L]&&b[L].m(a,null);m=!0},p(h,k){const L={};if(k&5&&(L.root=h[2]||h[0]),t.$set(L),k&544){g=mn(h[9]);let $;for($=0;$<g.length;$+=1){const E=Qi(h,g,$);d[$]?d[$].p(E,k):(d[$]=Xi(E),d[$].c(),d[$].m(_,null))}for(;$<d.length;$+=1)d[$].d(1);d.length=g.length}let y=c;if(c=j(h),c===y?p[c].p(h,k):(Ln(),je(p[y],1,1,()=>{p[y]=null}),An(),u=p[c],u?u.p(h,k):(u=p[c]=v[c](h),u.c()),de(u,1),u.m(a,f)),k&239){w=mn(h[1]);let $;for($=0;$<w.length;$+=1){const E=Wi(h,w,$);b[$]?(b[$].p(E,k),de(b[$],1)):(b[$]=to(E),b[$].c(),de(b[$],1),b[$].m(a,null))}for(Ln(),$=w.length;$<b.length;$+=1)C($);An()}},i(h){if(!m){de(t.$$.fragment,h),de(u);for(let k=0;k<w.length;k+=1)de(b[k]);m=!0}},o(h){je(t.$$.fragment,h),je(u),b=b.filter(Boolean);for(let k=0;k<b.length;k+=1)je(b[k]);m=!1},d(h){h&&(N(e),N(n),N(i)),gt(t),Zi(d,h),p[c].d(),Zi(b,h)}}}function Xi(l){let e,t,n,i,o=l[22]+"",s,a,_,r,c;function u(){return l[14](l[22])}return{c(){e=Y("li"),t=Y("img"),i=Ae(),s=J(o),a=Ae(),Nc(t.src,n=l[23])||Z(t,"src",n),Z(t,"alt",""),Z(t,"class","svelte-v3jjme"),Z(e,"class",_="snippet "+(l[5]===l[22]?"current-lang":"inactive-lang")+" svelte-v3jjme")},m(f,m){z(f,e,m),Q(e,t),Q(e,i),Q(e,s),Q(e,a),r||(c=Vc(e,"click",u),r=!0)},p(f,m){l=f,m&32&&_!==(_="snippet "+(l[5]===l[22]?"current-lang":"inactive-lang")+" svelte-v3jjme")&&Z(e,"class",_)},d(f){f&&N(e),r=!1,c()}}}function Hc(l){let e,t,n,i,o,s,a,_,r,c;function u(v,p){return v[5]=="python"||v[5]=="javascript"?Wc:Zc}let f=u(l),m=f(l);n=new y_({props:{current_language:l[5]}});let g=l[2]&&Yi(l);_=new On({props:{size:"sm",variant:"secondary",$$slots:{default:[Qc]},$$scope:{ctx:l}}}),_.$on("click",l[15]);let d=l[5]=="bash"&&Ki(l);return{c(){e=Y("p"),m.c(),t=Ae(),ht(n.$$.fragment),i=Ae(),o=Y("p"),s=J(`2. Find the API endpoint below corresponding to your desired
70						function in the app. Copy the code snippet, replacing the
71						placeholder values with your own input data.
72						`),g&&g.c(),a=J(`
73
74						Or use the
75						`),ht(_.$$.fragment),r=J(`
76						to automatically generate your API requests.
77						`),d&&d.c(),Z(e,"class","padded svelte-v3jjme"),Z(o,"class","padded svelte-v3jjme")},m(v,p){z(v,e,p),m.m(e,null),z(v,t,p),vt(n,v,p),z(v,i,p),z(v,o,p),Q(o,s),g&&g.m(o,null),Q(o,a),vt(_,o,null),Q(o,r),d&&d.m(o,null),c=!0},p(v,p){f===(f=u(v))&&m?m.p(v,p):(m.d(1),m=f(v),m&&(m.c(),m.m(e,null)));const j={};p&32&&(j.current_language=v[5]),n.$set(j),v[2]?g?g.p(v,p):(g=Yi(v),g.c(),g.m(o,a)):g&&(g.d(1),g=null);const w={};p&67108864&&(w.$$scope={dirty:p,ctx:v}),_.$set(w),v[5]=="bash"?d?d.p(v,p):(d=Ki(v),d.c(),d.m(o,null)):d&&(d.d(1),d=null)},i(v){c||(de(n.$$.fragment,v),de(_.$$.fragment,v),c=!0)},o(v){je(n.$$.fragment,v),je(_.$$.fragment,v),c=!1},d(v){v&&(N(e),N(t),N(i),N(o)),m.d(),gt(n,v),g&&g.d(),gt(_),d&&d.d()}}}function Gc(l){let e,t,n,i,o,s=l[4].length+"",a,_,r,c,u,f,m,g,d,v,p,j,w,b;return d=new fc({props:{current_language:l[5],api_calls:l[4],dependencies:l[1],root:l[0],short_root:l[2]||l[0],username:l[3]}}),{c(){e=Y("div"),t=Y("p"),n=J("🪄 Recorded API Calls "),i=Y("span"),o=J("["),a=J(s),_=J("]"),r=Ae(),c=Y("p"),u=J(`Here is the code snippet to replay the most recently recorded API
78							calls using the `),f=J(l[5]),m=J(`
79							client.`),g=Ae(),ht(d.$$.fragment),v=Ae(),p=Y("p"),p.textContent=`Note: Some API calls only affect the UI, so when using the
80							clients, the desired result may be achieved with only a subset of
81							the recorded calls.`,j=Ae(),w=Y("p"),w.textContent="API Documentation",Z(i,"class","api-count svelte-v3jjme"),Z(t,"id","num-recorded-api-calls"),yt(t,"font-size","var(--text-lg)"),yt(t,"font-weight","bold"),yt(t,"margin","10px 0px"),yt(w,"font-size","var(--text-lg)"),yt(w,"font-weight","bold"),yt(w,"margin","30px 0px 10px")},m(C,h){z(C,e,h),Q(e,t),Q(t,n),Q(t,i),Q(i,o),Q(i,a),Q(i,_),Q(e,r),Q(e,c),Q(c,u),Q(c,f),Q(c,m),Q(e,g),vt(d,e,null),Q(e,v),Q(e,p),z(C,j,h),z(C,w,h),b=!0},p(C,h){(!b||h&16)&&s!==(s=C[4].length+"")&&dl(a,s),(!b||h&32)&&dl(f,C[5]);const k={};h&32&&(k.current_language=C[5]),h&16&&(k.api_calls=C[4]),h&2&&(k.dependencies=C[1]),h&1&&(k.root=C[0]),h&5&&(k.short_root=C[2]||C[0]),h&8&&(k.username=C[3]),d.$set(k)},i(C){b||(de(d.$$.fragment,C),b=!0)},o(C){je(d.$$.fragment,C),b=!1},d(C){C&&(N(e),N(j),N(w)),gt(d)}}}function Zc(l){let e;return{c(){e=J("1. Confirm that you have cURL installed on your system.")},m(t,n){z(t,e,n)},p:Jo,d(t){t&&N(e)}}}function Wc(l){let e,t,n,i,o,s,a,_;return{c(){e=J(`1. Install the
82							`),t=Y("span"),n=J(l[5]),i=J(`
83							client (`),o=Y("a"),s=J("docs"),_=J(") if you don't already have it installed."),yt(t,"text-transform","capitalize"),Z(o,"href",a=l[5]=="python"?qn:Tn),Z(o,"target","_blank"),Z(o,"class","svelte-v3jjme")},m(r,c){z(r,e,c),z(r,t,c),Q(t,n),z(r,i,c),z(r,o,c),Q(o,s),z(r,_,c)},p(r,c){c&32&&dl(n,r[5]),c&32&&a!==(a=r[5]=="python"?qn:Tn)&&Z(o,"href",a)},d(r){r&&(N(e),N(t),N(i),N(o),N(_))}}}function Yi(l){let e,t,n,i,o;return{c(){e=J(`If this is a private Space, you may need to pass your
84							Hugging Face token as well (`),t=Y("a"),n=J("read more"),o=J(")."),Z(t,"href",i=l[5]=="python"?qn+hn:l[5]=="javascript"?Tn+hn:ml),Z(t,"class","underline svelte-v3jjme"),Z(t,"target","_blank")},m(s,a){z(s,e,a),z(s,t,a),Q(t,n),z(s,o,a)},p(s,a){a&32&&i!==(i=s[5]=="python"?qn+hn:s[5]=="javascript"?Tn+hn:ml)&&Z(t,"href",i)},d(s){s&&(N(e),N(t),N(o))}}}function Qc(l){let e,t,n;return{c(){e=Y("div"),t=Ae(),n=Y("p"),n.textContent="API Recorder",Z(e,"class","loading-dot svelte-v3jjme"),Z(n,"class","self-baseline svelte-v3jjme")},m(i,o){z(i,e,o),z(i,t,o),z(i,n,o)},p:Jo,d(i){i&&(N(e),N(t),N(n))}}}function Ki(l){let e,t,n,i,o,s,a,_,r,c,u,f,m,g,d,v,p,j,w,b,C,h,k,L,y=l[3]!==null&&xi();return{c(){e=Y("br"),t=J(" "),n=Y("br"),i=J(`Making a
85							prediction and getting a result requires
86							`),o=Y("strong"),o.textContent="2 requests",s=J(`: a
87							`),a=Y("code"),a.textContent="POST",_=J(`
88							and a `),r=Y("code"),r.textContent="GET",c=J(" request. The "),u=Y("code"),u.textContent="POST",f=J(` request
89							returns an `),m=Y("code"),m.textContent="EVENT_ID",g=J(`, which is used in the second
90							`),d=Y("code"),d.textContent="GET",v=J(` request to fetch the results. In these snippets,
91							we've used `),p=Y("code"),p.textContent="awk",j=J(" and "),w=Y("code"),w.textContent="read",b=J(` to parse the
92							results, combining these two requests into one command for ease of
93							use. `),y&&y.c(),C=J(` See
94							`),h=Y("a"),k=J("curl docs"),L=J("."),Z(a,"class","svelte-v3jjme"),Z(r,"class","svelte-v3jjme"),Z(u,"class","svelte-v3jjme"),Z(m,"class","svelte-v3jjme"),Z(d,"class","svelte-v3jjme"),Z(p,"class","svelte-v3jjme"),Z(w,"class","svelte-v3jjme"),Z(h,"href",ml),Z(h,"target","_blank"),Z(h,"class","svelte-v3jjme")},m($,E){z($,e,E),z($,t,E),z($,n,E),z($,i,E),z($,o,E),z($,s,E),z($,a,E),z($,_,E),z($,r,E),z($,c,E),z($,u,E),z($,f,E),z($,m,E),z($,g,E),z($,d,E),z($,v,E),z($,p,E),z($,j,E),z($,w,E),z($,b,E),y&&y.m($,E),z($,C,E),z($,h,E),Q(h,k),z($,L,E)},p($,E){$[3]!==null?y||(y=xi(),y.c(),y.m(C.parentNode,C)):y&&(y.d(1),y=null)},d($){$&&(N(e),N(t),N(n),N(i),N(o),N(s),N(a),N(_),N(r),N(c),N(u),N(f),N(m),N(g),N(d),N(v),N(p),N(j),N(w),N(b),N(C),N(h),N(L)),y&&y.d($)}}}function xi(l){let e;return{c(){e=J(`Note: connecting to an authenticated app requires an additional
95								request.`)},m(t,n){z(t,e,n)},d(t){t&&N(e)}}}function eo(l){let e,t,n,i,o,s,a,_;return t=new Y_({props:{named:!0,endpoint_parameters:l[6].named_endpoints["/"+l[19].api_name].parameters,dependency:l[19],dependency_index:l[21],current_language:l[5],root:l[0],space_id:l[2],username:l[3]}}),i=new Qa({props:{endpoint_returns:l[6].named_endpoints["/"+l[19].api_name].parameters,js_returns:l[7].named_endpoints["/"+l[19].api_name].parameters,is_running:no,current_language:l[5]}}),s=new Dc({props:{endpoint_returns:l[6].named_endpoints["/"+l[19].api_name].returns,js_returns:l[7].named_endpoints["/"+l[19].api_name].returns,is_running:no,current_language:l[5]}}),{c(){e=Y("div"),ht(t.$$.fragment),n=Ae(),ht(i.$$.fragment),o=Ae(),ht(s.$$.fragment),a=Ae(),Z(e,"class","endpoint-container svelte-v3jjme")},m(r,c){z(r,e,c),vt(t,e,null),Q(e,n),vt(i,e,null),Q(e,o),vt(s,e,null),Q(e,a),_=!0},p(r,c){const u={};c&66&&(u.endpoint_parameters=r[6].named_endpoints["/"+r[19].api_name].parameters),c&2&&(u.depen
95dency=r[19]),c&32&&(u.current_language=r[5]),c&1&&(u.root=r[0]),c&4&&(u.space_id=r[2]),c&8&&(u.username=r[3]),t.$set(u);const f={};c&66&&(f.endpoint_returns=r[6].named_endpoints["/"+r[19].api_name].parameters),c&130&&(f.js_returns=r[7].named_endpoints["/"+r[19].api_name].parameters),c&32&&(f.current_language=r[5]),i.$set(f);const m={};c&66&&(m.endpoint_returns=r[6].named_endpoints["/"+r[19].api_name].returns),c&130&&(m.js_returns=r[7].named_endpoints["/"+r[19].api_name].returns),c&32&&(m.current_language=r[5]),s.$set(m)},i(r){_||(de(t.$$.fragment,r),de(i.$$.fragment,r),de(s.$$.fragment,r),_=!0)},o(r){je(t.$$.fragment,r),je(i.$$.fragment,r),je(s.$$.fragment,r),_=!1},d(r){r&&N(e),gt(t),gt(i),gt(s)}}}function to(l){let e,t,n=l[19].show_api&&l[6].named_endpoints["/"+l[19].api_name]&&eo(l);return{c(){n&&n.c(),e=Tl()},m(i,o){n&&n.m(i,o),z(i,e,o),t=!0},p(i,o){i[19].show_api&&i[6].named_endpoints["/"+i[19].api_name]?n?(n.p(i,o),o&66&&de(n,1)):(n=eo(i),n.c(),de(n,1),n.m(e.parentNode,e)):n&&(Ln(),je(n,1,1,()=>{n=null}),An())},i(i){t||(de(n),t=!0)},o(i){je(n),t=!1},d(i){i&&N(e),n&&n.d(i)}}}function Jc(l){let e,t,n=l[6]&&Ji(l);return{c(){n&&n.c(),e=Tl()},m(i,o){n&&n.m(i,o),z(i,e,o),t=!0},p(i,[o]){i[6]?n?(n.p(i,o),o&64&&de(n,1)):(n=Ji(i),n.c(),de(n,1),n.m(e.parentNode,e)):n&&(Ln(),je(n,1,1,()=>{n=null}),An())},i(i){t||(de(n),t=!0)},o(i){je(n),t=!1},d(i){i&&N(e),n&&n.d(i)}}}const Tn="https://www.gradio.app/guides/getting-started-with-the-js-client",qn="https://www.gradio.app/guides/getting-started-with-the-python-client",ml="https://www.gradio.app/guides/querying-gradio-apps-with-curl",hn="#connecting-to-a-hugging-face-space";let no=!1;function Xc(l,e,t){let{dependencies:n}=e,{root:i}=e,{app:o}=e,{space_id:s}=e,{root_node:a}=e,{username:_}=e,r=n.filter(h=>h.show_api).length;i===""&&(i=location.protocol+"//"+location.host+location.pathname),i.endsWith("/")||(i+="/");let{api_calls:c=[]}=e,u="python";const f=[["python",pc],["javascript",dc],["bash",mc]];async function m(){return await(await fetch(i+"info")).json()}async function g(){return await o.view_api()}let d,v;m().then(h=>{t(6,d=h)}),g().then(h=>{t(7,v=h)});const p=Fc();zc(()=>(document.body.style.overflow="hidden","parentIFrame"in window&&window.parentIFrame?.scrollTo(0,0),()=>{document.body.style.overflow="auto"}));function j(h){Gi.call(this,l,h)}const w=h=>t(5,u=h),b=()=>p("close",{api_recorder_visible:!0});function C(h){Gi.call(this,l,h)}return l.$$set=h=>{"dependencies"in h&&t(1,n=h.dependencies),"root"in h&&t(0,i=h.root),"app"in h&&t(11,o=h.app),"space_id"in h&&t(2,s=h.space_id),"root_node"in h&&t(12,a=h.root_node),"username"in h&&t(3,_=h.username),"api_calls"in h&&t(4,c=h.api_calls)},[i,n,s,_,c,u,d,v,r,f,p,o,a,j,w,b,C]}class Yc extends Rc{constructor(e){super(),Sc(this,e,Xc,Jc,Mc,{dependencies:1,root:0,app:11,space_id:2,root_node:12,username:3,api_calls:4})}get dependencies(){return this.$$.ctx[1]}set dependencies(e){this.$$set({dependencies:e}),wt()}get root(){return this.$$.ctx[0]}set root(e){this.$$set({root:e}),wt()}get app(){return this.$$.ctx[11]}set app(e){this.$$set({app:e}),wt()}get space_id(){return this.$$.ctx[2]}set space_id(e){this.$$set({space_id:e}),wt()}get root_node(){return this.$$.ctx[12]}set root_node(e){this.$$set({root_node:e}),wt()}get username(){return this.$$.ctx[3]}set username(e){this.$$set({username:e}),wt()}get api_calls(){return this.$$.ctx[4]}set api_calls(e){this.$$set({api_calls:e}),wt()}}const{SvelteComponent:Kc,append:Ct,attr:Nt,create_component:xc,destroy_component:eu,detach:At,element:zt,flush:lo,init:tu,insert:Lt,mount_component:nu,safe_not_equal:lu,set_data:Xo,space:sl,text:tn,transition_in:iu,transition_out:ou}=window.__gradio__svelte__internal;function io(l){let e,t,n=l[1][l[0][l[0].length-1].fn_index].api_name+"",i;return{c(){e=zt("span"),t=tn("/"),i=tn(n),Nt(e,"class","api-name svelte-sy28j6")},m(o,s){Lt(o,e,s),Ct(e,t),Ct(e,i)},p(o,s){s&3&&n!==(n=o[1][o[0][o[0].length-1].fn_index].api_name+"")&&Xo(i,n)},d(o){o&&At(e)}}}function su(l){let e,t,n,i,o,s,a,_=l[0].length+"",r,c,u,f=l[0].length>0&&io(l);return{c(){e=zt("div"),t=sl(),n=zt("p"),n.textContent="Recording API Calls:",i=sl(),o=zt("p"),s=zt("span"),a=tn("["),r=tn(_),c=tn("]"),u=sl(),f&&f.c(),Nt(e,"class","loading-dot self-baseline svelte-sy28j6"),Nt(n,"class","self-baseline svelte-sy28j6"),Nt(s,"class","api-count svelte-sy28j6"),Nt(o,"class","self-baseline api-section svelte-sy28j6")},m(m,g){Lt(m,e,g),Lt(m,t,g),Lt(m,n,g),Lt(m,i,g),Lt(m,o,g),Ct(o,s),Ct(s,a),Ct(s,r),Ct(s,c),Ct(o,u),f&&f.m(o,null)},p(m,g){g&1&&_!==(_=m[0].length+"")&&Xo(r,_),m[0].length>0?f?f.p(m,g):(f=io(m),f.c(),f.m(o,null)):f&&(f.d(1),f=null)},d(m){m&&(At(e),At(t),At(n),At(i),At(o)),f&&f.d()}}}function ru(l){let e,t,n;return t=new On({props:{size:"sm",variant:"secondary",$$slots:{default:[su]},$$scope:{ctx:l}}}),{c(){e=zt("div"),xc(t.$$.fragment),Nt(e,"id","api-recorder")},m(i,o){Lt(i,e,o),nu(t,e,null),n=!0},p(i,[o]){const s={};o&7&&(s.$$scope={dirty:o,ctx:i}),t.$set(s)},i(i){n||(iu(t.$$.fragment,i),n=!0)},o(i){ou(t.$$.fragment,i),n=!1},d(i){i&&At(e),eu(t)}}}function au(l,e,t){let{api_calls:n=[]}=e,{dependencies:i}=e;return l.$$set=o=>{"api_calls"in o&&t(0,n=o.api_calls),"dependencies"in o&&t(1,i=o.dependencies)},[n,i]}class _u extends Kc{constructor(e){super(),tu(this,e,au,ru,lu,{api_calls:0,dependencies:1})}get api_calls(){return this.$$.ctx[0]}set api_calls(e){this.$$set({api_calls:e}),lo()}get dependencies(){return this.$$.ctx[1]}set dependencies(e){this.$$set({dependencies:e}),lo()}}const cu=Ls(So),{SvelteComponent:uu,add_flush_callback:fu,assign:Pn,bind:oo,binding_callbacks:hl,bubble:pu,check_outros:du,compute_rest_props:so,construct_svelte_component:ro,create_component:ao,create_slot:mu,destroy_component:_o,detach:hu,empty:gu,exclude_internal_props:vu,flush:Xe,get_all_dirty_from_scope:$u,get_slot_changes:bu,get_spread_object:co,get_spread_update:uo,group_outros:ku,init:wu,insert:yu,mount_component:fo,not_equal:Eu,transition_in:gl,transition_out:vl,update_slot_base:ju}=window.__gradio__svelte__internal,{bind:Cu,binding_callbacks:Au}=window.__gradio__svelte__internal;function Lu(l){let e;const t=l[12].default,n=mu(t,l,l[16],null);return{c(){n&&n.c()},m(i,o){n&&n.m(i,o),e=!0},p(i,o){n&&n.p&&(!e||o&65536)&&ju(n,t,i,i[16],e?bu(t,i[16],o,null):$u(i[16]),null)},i(i){e||(gl(n,i),e=!0)},o(i){vl(n,i),e=!1},d(i){n&&n.d(i)}}}function Tu(l){let e,t,n,i;const o=[{elem_id:l[6]},{elem_classes:l[7]},{target:l[3]},l[9],{theme_mode:l[4]},{root:l[2]},{gradio:l[5]}];function s(r){l[14](r)}var a=l[8];function _(r,c){let u={$$slots:{default:[Lu]},$$scope:{ctx:r}};for(let f=0;f<o.length;f+=1)u=Pn(u,o[f]);return c!==void 0&&c&764&&(u=Pn(u,uo(o,[c&64&&{elem_id:r[6]},c&128&&{elem_classes:r[7]},c&8&&{target:r[3]},c&512&&co(r[9]),c&16&&{theme_mode:r[4]},c&4&&{root:r[2]},c&32&&{gradio:r[5]}]))),r[1]!==void 0&&(u.value=r[1]),{props:u}}return a&&(e=ro(a,_(l)),l[13](e),hl.push(()=>oo(e,"value",s)),e.$on("prop_change",l[15])),{c(){e&&ao(e.$$.fragment),n=gu()},m(r,c){e&&fo(e,r,c),yu(r,n,c),i=!0},p(r,[c]){if(a!==(a=r[8])){if(e){ku();const u=e;vl(u.$$.fragment,1,0,()=>{_o(u,1)}),du()}a?(e=ro(a,_(r,c)),r[13](e),hl.push(()=>oo(e,"value",s)),e.$on("prop_change",r[15]),ao(e.$$.fragment),gl(e.$$.fragment,1),fo(e,n.parentNode,n)):e=null}else if(a){const u=c&764?uo(o,[c&64&&{elem_id:r[6]},c&128&&{elem_classes:r[7]},c&8&&{target:r[3]},c&512&&co(r[9]),c&16&&{theme_mode:r[4]},c&4&&{root:r[2]},c&32&&{gradio:r[5]}]):{};c&65536&&(u.$$scope={dirty:c,ctx:r}),!t&&c&2&&(t=!0,u.value=r[1],fu(()=>t=!1)),e.$set(u)}}
vendor: 8,797 bytes, line 95
95,i(r){i||(e&&gl(e.$$.fragment,r),i=!0)},o(r){e&&vl(e.$$.fragment,r),i=!1},d(r){r&&hu(n),l[13](null),e&&_o(e,r)}}}function qu(l,e,t){const n=["root","component","target","theme_mode","instance","value","gradio","elem_id","elem_classes","_id"];let i=so(e,n),{$$slots:o={},$$scope:s}=e,{root:a}=e,{component:_}=e,{target:r}=e,{theme_mode:c}=e,{instance:u}=e,{value:f}=e,{gradio:m}=e,{elem_id:g}=e,{elem_classes:d}=e,{_id:v}=e;const p=(k,L,y)=>new CustomEvent("prop_change",{detail:{id:k,prop:L,value:y}});function j(k){return new Proxy(k,{construct(y,$){const E=new y(...$),P=Object.keys(E.$$.props);function D(U){return function(O){const V=p(v,U,O);r.dispatchEvent(V)}}return P.forEach(U=>{Au.push(()=>Cu(E,U,D(U)))}),E}})}const w=j(_);function b(k){hl[k?"unshift":"push"](()=>{u=k,t(0,u)})}function C(k){f=k,t(1,f)}function h(k){pu.call(this,l,k)}return l.$$set=k=>{e=Pn(Pn({},e),vu(k)),t(9,i=so(e,n)),"root"in k&&t(2,a=k.root),"component"in k&&t(10,_=k.component),"target"in k&&t(3,r=k.target),"theme_mode"in k&&t(4,c=k.theme_mode),"instance"in k&&t(0,u=k.instance),"value"in k&&t(1,f=k.value),"gradio"in k&&t(5,m=k.gradio),"elem_id"in k&&t(6,g=k.elem_id),"elem_classes"in k&&t(7,d=k.elem_classes),"_id"in k&&t(11,v=k._id),"$$scope"in k&&t(16,s=k.$$scope)},[u,f,a,r,c,m,g,d,w,i,_,v,o,b,C,h,s]}class Pu extends uu{constructor(e){super(),wu(this,e,qu,Tu,Eu,{root:2,component:10,target:3,theme_mode:4,instance:0,value:1,gradio:5,elem_id:6,elem_classes:7,_id:11})}get root(){return this.$$.ctx[2]}set root(e){this.$$set({root:e}),Xe()}get component(){return this.$$.ctx[10]}set component(e){this.$$set({component:e}),Xe()}get target(){return this.$$.ctx[3]}set target(e){this.$$set({target:e}),Xe()}get theme_mode(){return this.$$.ctx[4]}set theme_mode(e){this.$$set({theme_mode:e}),Xe()}get instance(){return this.$$.ctx[0]}set instance(e){this.$$set({instance:e}),Xe()}get value(){return this.$$.ctx[1]}set value(e){this.$$set({value:e}),Xe()}get gradio(){return this.$$.ctx[5]}set gradio(e){this.$$set({gradio:e}),Xe()}get elem_id(){return this.$$.ctx[6]}set elem_id(e){this.$$set({elem_id:e}),Xe()}get elem_classes(){return this.$$.ctx[7]}set elem_classes(e){this.$$set({elem_classes:e}),Xe()}get _id(){return this.$$.ctx[11]}set _id(e){this.$$set({_id:e}),Xe()}}const{SvelteComponent:Ou,add_flush_callback:po,assign:Iu,bind:mo,binding_callbacks:ho,bubble:go,check_outros:Yo,create_component:Ko,destroy_component:xo,detach:ql,empty:Pl,ensure_array_like:vo,flush:lt,get_spread_object:Du,get_spread_update:Ru,group_outros:es,init:Su,insert:Ol,mount_component:ts,outro_and_destroy_block:Vu,safe_not_equal:Mu,transition_in:Ut,transition_out:on,update_keyed_each:Nu}=window.__gradio__svelte__internal,{onMount:zu,createEventDispatcher:Fu,setContext:Uu}=window.__gradio__svelte__internal;function $o(l,e,t){const n=l.slice();return n[16]=e[t],n}function bo(l){let e=[],t=new Map,n,i,o=vo(l[0].children);const s=a=>a[16].id;for(let a=0;a<o.length;a+=1){let _=$o(l,o,a),r=s(_);t.set(r,e[a]=ko(r,_))}return{c(){for(let a=0;a<e.length;a+=1)e[a].c();n=Pl()},m(a,_){for(let r=0;r<e.length;r+=1)e[r]&&e[r].m(a,_);Ol(a,n,_),i=!0},p(a,_){_&63&&(o=vo(a[0].children),es(),e=Nu(e,_,s,1,a,o,t,n.parentNode,Vu,ko,n,$o),Yo())},i(a){if(!i){for(let _=0;_<o.length;_+=1)Ut(e[_]);i=!0}},o(a){for(let _=0;_<e.length;_+=1)on(e[_]);i=!1},d(a){a&&ql(n);for(let _=0;_<e.length;_+=1)e[_].d(a)}}}function ko(l,e){let t,n,i;return n=new ns({props:{node:e[16],component:e[16].component,target:e[2],id:e[16].id,root:e[1],theme_mode:e[3],max_file_size:e[4],client:e[5]}}),n.$on("destroy",e[10]),n.$on("mount",e[11]),{key:l,first:null,c(){t=Pl(),Ko(n.$$.fragment),this.first=t},m(o,s){Ol(o,t,s),ts(n,o,s),i=!0},p(o,s){e=o;const a={};s&1&&(a.node=e[16]),s&1&&(a.component=e[16].component),s&4&&(a.target=e[2]),s&1&&(a.id=e[16].id),s&2&&(a.root=e[1]),s&8&&(a.theme_mode=e[3]),s&16&&(a.max_file_size=e[4]),s&32&&(a.client=e[5]),n.$set(a)},i(o){i||(Ut(n.$$.fragment,o),i=!0)},o(o){on(n.$$.fragment,o),i=!1},d(o){o&&ql(t),xo(n,o)}}}function Bu(l){let e,t,n=l[0].children&&l[0].children.length&&bo(l);return{c(){n&&n.c(),e=Pl()},m(i,o){n&&n.m(i,o),Ol(i,e,o),t=!0},p(i,o){i[0].children&&i[0].children.length?n?(n.p(i,o),o&1&&Ut(n,1)):(n=bo(i),n.c(),Ut(n,1),n.m(e.parentNode,e)):n&&(es(),on(n,1,1,()=>{n=null}),Yo())},i(i){t||(Ut(n),t=!0)},o(i){on(n),t=!1},d(i){i&&ql(e),n&&n.d(i)}}}function Hu(l){let e,t,n,i;const o=[{_id:l[0].id},{component:l[0].component},{elem_id:"elem_id"in l[0].props&&l[0].props.elem_id||`component-${l[0].id}`},{elem_classes:"elem_classes"in l[0].props&&l[0].props.elem_classes||[]},{target:l[2]},l[0].props,{theme_mode:l[3]},{root:l[1]},{gradio:l[6]}];function s(r){l[12](r)}function a(r){l[13](r)}let _={$$slots:{default:[Bu]},$$scope:{ctx:l}};for(let r=0;r<o.length;r+=1)_=Iu(_,o[r]);return l[0].instance!==void 0&&(_.instance=l[0].instance),l[0].props.value!==void 0&&(_.value=l[0].props.value),e=new Pu({props:_}),ho.push(()=>mo(e,"instance",s)),ho.push(()=>mo(e,"value",a)),{c(){Ko(e.$$.fragment)},m(r,c){ts(e,r,c),i=!0},p(r,[c]){const u=c&79?Ru(o,[c&1&&{_id:r[0].id},c&1&&{component:r[0].component},c&1&&{elem_id:"elem_id"in r[0].props&&r[0].props.elem_id||`component-${r[0].id}`},c&1&&{elem_classes:"elem_classes"in r[0].props&&r[0].props.elem_classes||[]},c&4&&{target:r[2]},c&1&&Du(r[0].props),c&8&&{theme_mode:r[3]},c&2&&{root:r[1]},c&64&&{gradio:r[6]}]):{};c&524351&&(u.$$scope={dirty:c,ctx:r}),!t&&c&1&&(t=!0,u.instance=r[0].instance,po(()=>t=!1)),!n&&c&1&&(n=!0,u.value=r[0].props.value,po(()=>n=!1)),e.$set(u)},i(r){i||(Ut(e.$$.fragment,r),i=!0)},o(r){on(e.$$.fragment,r),i=!1},d(r){xo(e,r)}}}function Gu(l,e,t){let n,{root:i}=e,{node:o}=e,{parent:s=null}=e,{target:a}=e,{theme_mode:_}=e,{version:r}=e,{autoscroll:c}=e,{max_file_size:u}=e,{client:f}=e;const m=Fu();let g=[];zu(()=>{m("mount",o.id);for(const w of g)m("mount",w.id);return()=>{m("destroy",o.id);for(const w of g)m("mount",w.id)}}),Uu("BLOCK_KEY",s);function d(w){go.call(this,l,w)}function v(w){go.call(this,l,w)}function p(w){l.$$.not_equal(o.instance,w)&&(o.instance=w,t(0,o),t(15,g))}function j(w){l.$$.not_equal(o.props.value,w)&&(o.props.value=w,t(0,o),t(15,g))}return l.$$set=w=>{"root"in w&&t(1,i=w.root),"node"in w&&t(0,o=w.node),"parent"in w&&t(7,s=w.parent),"target"in w&&t(2,a=w.target),"theme_mode"in w&&t(3,_=w.theme_mode),"version"in w&&t(8,r=w.version),"autoscroll"in w&&t(9,c=w.autoscroll),"max_file_size"in w&&t(4,u=w.max_file_size),"client"in w&&t(5,f=w.client)},l.$$.update=()=>{l.$$.dirty&1&&t(0,o.children=o.children&&o.children.filter(w=>{const b=o.type!=="statustracker";return b||g.push(w),b}),o),l.$$.dirty&1&&o.type==="form"&&(o.children?.every(w=>!w.props.visible)?t(0,o.props.visible=!1,o):t(0,o.props.visible=!0,o)),l.$$.dirty&831&&t(6,n=new nr(o.id,a,_,r,i,c,u,cu,f))},[o,i,a,_,u,f,n,s,r,c,d,v,p,j]}class ns extends Ou{constructor(e){super(),Su(this,e,Gu,Hu,Mu,{root:1,node:0,parent:7,target:2,theme_mode:3,version:8,autoscroll:9,max_file_size:4,client:5})}get root(){return this.$$.ctx[1]}set root(e){this.$$set({root:e}),lt()}get node(){return this.$$.ctx[0]}set node(e){this.$$set({node:e}),lt()}get parent(){return this.$$.ctx[7]}set parent(e){this.$$set({parent:e}),lt()}get target(){return this.$$.ctx[2]}set target(e){this.$$set({target:e}),lt()}get theme_mode(){return this.$$.ctx[3]}set theme_mode(e){this.$$set({theme_mode:e}),lt()}get version(){return this.$$.ctx[8]}set version(e){this.$$set({version:e}),lt()}get autoscroll(){return this.$$.ctx[9]}set autoscroll(e){this.$$set({autoscroll:e}),lt()}get max_file_size(){return this.$$.ctx[4]}set max_file_size(e){this.$$set({max_file_size:e}),lt()}get client(){return this.$$.ctx[5]}set client(e){this.$$set({client:e}),lt()}}const{SvelteComponent:Zu,create_component:Wu,destroy_component:Qu,flush:pt,init:Ju,mount_component:Xu,safe_not_equal:Yu,transition_in:Ku,transition_out:xu}=window.__gradio__svelte__internal,{onMount:ef,createEventDispatcher:tf}=window.__gradio__svelte__internal;function nf(l){let e,t;return e=new ns({props:{node:l[0],root:l[1],target:l[2],theme_mode:l[3],version:l[4],autoscroll:l[5],max_file_size:l[6],client:l[7]}}),{c(){Wu(e.$$.fragment)},m(n,i){Xu(e,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.node=n[0]),i&2&&(o.root=n[1]),i&4&&(o.target=n[2]),i&8&&(o.theme_mode=n[3]),i&16&&(o.version=n[4]),i&32&&(o.autoscroll=n[5]),i&64&&(o.max_file_size=n[6]),i&128&&(o.client=n[7]),e.$set(o)},i(n){t||(Ku(e.$$.fragment,n),t=!0)},o(n){xu(e.$$.fragment,n),t=!1},d(n){Qu(e,n)}}}function lf(l,e,t){let{rootNode:n}=e,{root:i}=e,{target:o}=e,{theme_mode:s}=e,{version:a}=e,{autoscroll:_}=e,{max_file_size:r=null}=e,{client:c}=e;const u=tf();return ef(()=>{u("mount")}),l.$$set=f=>{"rootNode"in f&&t(0,n=f.rootNode),"root"in f&&t(1,i=f.root),"target"in f&&t(2,o=f.target),"theme_mode"in f&&t(3,s=f.theme_mode),"version"in f&&t(4,a=f.ver
95sion),"autoscroll"in f&&t(5,_=f.autoscroll),"max_file_size"in f&&t(6,r=f.max_file_size),"client"in f&&t(7,c=f.client)},[n,i,o,s,a,_,r,c]}class of extends Zu{constructor(e){super(),Ju(this,e,lf,nf,Yu,{rootNode:0,root:1,target:2,theme_mode:3,version:4,autoscroll:5,max_file_size:6,client:7})}get rootNode(){return this.$$.ctx[0]}set rootNode(e){this.$$set({rootNode:e}),pt()}get root(){return this.$$.ctx[1]}set root(e){this.$$set({root:e}),pt()}get target(){return this.$$.ctx[2]}set target(e){this.$$set({target:e}),pt()}get theme_mode(){return this.$$.ctx[3]}set theme_mode(e){this.$$set({theme_mode:e}),pt()}get version(){return this.$$.ctx[4]}set version(e){this.$$set({version:e}),pt()}get autoscroll(){return this.$$.ctx[5]}set autoscroll(e){this.$$set({autoscroll:e}),pt()}get max_file_size(){return this.$$.ctx[6]}set max_file_size(e){this.$$set({max_file_size:e}),pt()}get client(){return this.$$.ctx[7]}set client(e){this.$$set({client:e}),pt()}}const sf="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='576'%20height='576'%20viewBox='0%200%20576%20576'%20fill='none'%3e%3cpath%20d='M287.5%20229L86%20344.5L287.5%20460L489%20344.5L287.5%20229Z'%20stroke='url(%23paint0_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='round'/%3e%3cpath%20d='M287.5%20116L86%20231.5L287.5%20347L489%20231.5L287.5%20116Z'%20stroke='url(%23paint1_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='round'/%3e%3cpath%20d='M86%20344L288%20229'%20stroke='url(%23paint2_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='bevel'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_102_7'%20x1='60'%20y1='341'%20x2='429.5'%20y2='344'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_102_7'%20x1='513.5'%20y1='231'%20x2='143.5'%20y2='231'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_102_7'%20x1='60'%20y1='344'%20x2='428.987'%20y2='341.811'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function rf(){const l=bn({}),e={},t={},n=new Map,i=new Map,o=new Map,s={};function a({fn_index:r,status:c,queue:u=!0,size:f,position:m=null,eta:g=null,message:d=null,progress:v}){const p=t[r],j=e[r],w=s[r],b=p.map(C=>{let h;const k=n.get(C)||0;if(w==="pending"&&c!=="pending"){let L=k-1;n.set(C,L<0?0:L),h=L>0?"pending":c}else w==="pending"&&c==="pending"?h="pending":w!=="pending"&&c==="pending"?(h="pending",n.set(C,k+1)):h=c;return{id:C,queue_position:m,queue_size:f,eta:g,status:h,message:d,progress:v}});j.forEach(C=>{const h=i.get(C)||0;if(w==="pending"&&c!=="pending"){let k=h-1;i.set(C,k<0?0:k),o.set(C,c)}else w!=="pending"&&c==="pending"?(i.set(C,h+1),o.set(C,c)):o.delete(C)}),l.update(C=>(b.forEach(({id:h,queue_position:k,queue_size:L,eta:y,status:$,message:E,progress:P})=>{C[h]={queue:u,queue_size:L,queue_position:k,eta:y,message:E,progress:P,status:$,fn_index:r}}),C)),s[r]=c}function _(r,c,u){e[r]=c,t[r]=u}return{update:a,register:_,subscribe:l.subscribe,get_status_for_fn(r){return s[r]},get_inputs_to_update(){return o}}}let Vt=[];function af(){let l,e=bn({}),t={},n,i,o,s,a=rf();const _=bn();let r=[],c,u={},f;function m({app:h,components:k,layout:L,dependencies:y,root:$,options:E}){c=h,j(r),r=k,n=new Set,i=new Set,Vt=[],o=new Map,l=new Map,s={},f={id:L.id,type:"column",props:{interactive:!1,scale:E.fill_height?1:null},has_modes:!1,instance:null,component:null,component_class_id:"",key:null}
95,k.push(f),y.forEach(P=>{a.register(P.id,P.inputs,P.outputs),P.frontend_fn=wo(P.js,!!P.backend_fn,P.inputs.length,P.outputs.length),yo(P.targets,P.id,t),Eo(P,n,i)}),e.set(t),o=jo(k,$),s=k.reduce((P,D)=>(P[D.id]=D,P),{}),d(L,$).then(()=>{_.set(f)})}function g({render_id:h,components:k,layout:L,root:y,dependencies:$}){jo(k,y).forEach((O,V)=>{o.set(V,O)}),t={},$.forEach(O=>{a.register(O.id,O.inputs,O.outputs),O.frontend_fn=wo(O.js,!!O.backend_fn,O.inputs.length,O.outputs.length),yo(O.targets,O.id,t),Eo(O,n,i)}),e.set(t);let P=s[L.id],D=[];const U=O=>{D.push(O),O.children&&O.children.forEach(V=>{U(V)})};U(P),j(D),Object.entries(s).forEach(([O,V])=>{let M=Number(O);V.rendered_in===h&&(delete s[M],l.has(M)&&l.delete(M))}),k.forEach(O=>{s[O.id]=O,l.set(O.id,O)}),P.parent&&(P.parent.children[P.parent.children.indexOf(P)]=s[L.id]),d(L,y,P.parent).then(()=>{_.set(f)})}async function d(h,k,L){const y=s[h.id];return y.component=(await o.get(y.component_class_id||y.type))?.default,y.parent=L,y.type==="dataset"&&(y.props.component_map=is(y.type,y.component_class_id,k,r,y.props.components).example_components),t[y.id]&&(y.props.attached_events=Object.keys(t[y.id])),y.props.interactive=cf(y.id,y.props.interactive,y.props.value,
95n,i),y.props.server=uf(y.id,y.props.server_fns,c),y.key!=null&&u[y.key]!==void 0&&(y.props.value=u[y.key]),l.set(y.id,y),h.children&&(y.children=await Promise.all(h.children.map($=>d($,k,y)))),y}let v=!1,p=bn(!1);function j(h){h.forEach(k=>{k.key!=null&&(u[k.key]=k.props.value)})}function w(){_.update(h=>{for(let k=0;k<Vt.length;k++)for(let L=0;L<Vt[k].length;L++){const y=Vt[k][L];if(!y)continue;const $=s[y.id];if(!$)continue;let E;y.value instanceof Map?E=new Map(y.value):y.value instanceof Set?E=new Set(y.value):Array.isArray(y.value)?E=[...y.value]:y.value===null?E=null:typeof y.value=="object"?E={...y.value}:E=y.value,$.props[y.prop]=E}return h}),Vt=[],v=!1,p.set(!1)}function b(h){h&&(Vt.push(h),v||(v=!0,p.set(!0),requestAnimationFrame(w)))}function C(h){const k=l.get(h);return k?k.instance.get_value?k.instance.get_value():k.props.value:null}return{layout:_,targets:e,update_value:b,get_data:C,loading_status:a,scheduled_updates:p,create_layout:(...h)=>requestAnimationFrame(()=>m(...h)),rerender_layout:g}}const ls=Object.getPrototypeOf(async function(){}).constructor;function wo(l,e,t,n){if(!l)return null;const i=e?t===1:n===1;try{return new ls("__fn_args",`  let result = await (${l})(...__fn_args);
96  if (typeof result === "undefined") return [];
97  return (${i} && !Array.isArray(result)) ? [result] : result;`)}catch(o){return console.error("Could not parse custom js method."),console.error(o),null}}function yo(l,e,t){return l.forEach(([n,i])=>{t[n]||(t[n]={}),t[n]?.[i]&&!t[n]?.[i].includes(e)?t[n][i].push(e):t[n][i]=[e]}),t}function Eo(l,e,t){return l.inputs.forEach(n=>e.add(n)),l.outputs.forEach(n=>t.add(n)),[e,t]}function _f(l){return Array.isArray(l)&&l.length===0||l===""||l===0||!l}function cf(l,e,t,n,i){return e===!1?!1:e===!0?!0:!!(n.has(l)||!i.has(l)&&_f(t))}function uf(l,e,t){return e?e.reduce((n,i)=>(n[i]=async(...o)=>(o.length===1&&(o=o[0]),await t.component_server(l,i,o)),n),{}):{}}function is(l,e,t,n,i){let o=new Map;l==="dataset"&&i&&i.forEach(a=>{if(o.has(a))return;let _;const r=n.find(c=>c.type===a);r&&(_=_l({api_url:t,name:a,id:r.component_class_id,variant:"example"}),o.set(a,_.component))});const s=_l({api_url:t,name:l,id:e,variant:"component"});return{component:s.component,name:s.name,example_components:o.size>0?o:void 0}}function jo(l,e){let t=new Map;return l.forEach(n=>{const{component:i,example_components:o}=is(n.type,n.component_class_id,e,l);if(t.set(n.component_class_id||n.type,i),o)for(const[s,a]of o)t.set(s,a)}),t}const{SvelteComponent:ff,append:Pe,attr:oe,check_outros:gn,component_subscribe:Kt,create_component:Fn,destroy_component:Un,detach:Se,element:Ze,empty:Co,flush:fe,globals:pf,group_outros:vn,init:df,insert:Ue,listen:Il,mount_component:Bn,noop:rl,safe_not_equal:mf,set_data:os,set_style:$n,space:Ke,src_url_equal:ss,text:rs,transition_in:Ce,transition_out:Fe}=window.__gradio__svelte__internal,{document:$l}=pf,{tick:al}=window.__gradio__svelte__internal;function Ao(l){return $l.title=l[2],{c:rl,m:rl,d:rl}}function Lo(l){let e,t;return e=new of({props:{rootNode:l[14],root:l[0],target:l[3],theme_mode:l[9],version:l[12],autoscroll:l[4],max_file_size:l[10].config.max_file_size,client:l[10]}}),e.$on("mount",l[26]),{c(){Fn(e.$$.fragment)},m(n,i){Bn(e,n,i),t=!0},p(n,i){const o={};i[0]&16384&&(o.rootNode=n[14]),i[0]&1&&(o.root=n[0]),i[0]&8&&(o.target=n[3]),i[0]&512&&(o.theme_mode=n[9]),i[0]&4096&&(o.version=n[12]),i[0]&16&&(o.autoscroll=n[4]),i[0]&1024&&(o.max_file_size=n[10].config.max_file_size),i[0]&1024&&(o.client=n[10]),e.$set(o)},i(n){t||(Ce(e.$$.fragment,n),t=!0)},o(n){Fe(e.$$.fragment,n),t=!1},d(n){Un(e,n)}}}function To(l){let e,t,n,i=l[19]("common.built_with_gradio")+"",o,s,a,_,r,c=l[5]&&qo(l);return{c(){e=Ze("footer"),c&&c.c(),t=Ke(),n=Ze("a"),o=rs(i),s=Ke(),a=Ze("img"),ss(a.src,_=sf)||oe(a,"src",_),oe(a,"alt",r=l[19]("common.logo")),oe(a,"class","svelte-1rjryqp"),oe(n,"href","https://gradio.app"),oe(n,"class","built-with 
97svelte-1rjryqp"),oe(n,"target","_blank"),oe(n,"rel","noreferrer"),oe(e,"class","svelte-1rjryqp")},m(u,f){Ue(u,e,f),c&&c.m(e,null),Pe(e,t),Pe(e,n),Pe(n,o),Pe(n,s),Pe(n,a)},p(u,f){u[5]?c?c.p(u,f):(c=qo(u),c.c(),c.m(e,t)):c&&(c.d(1),c=null),f[0]&524288&&i!==(i=u[19]("common.built_with_gradio")+"")&&os(o,i),f[0]&524288&&r!==(r=u[19]("common.logo"))&&oe(a,"alt",r)},d(u){u&&Se(e),c&&c.d()}}}function qo(l){let e,t=l[19]("errors.use_via_api")+"",n,i,o,s,a,_,r,c,u;return{c(){e=Ze("button"),n=rs(t),i=Ke(),o=Ze("img"),_=Ke(),r=Ze("div"),r.textContent="·",ss(o.src,s=Bo)||oe(o,"src",s),oe(o,"alt",a=l[19]("common.logo")),oe(o,"class","svelte-1rjryqp"),oe(e,"class","show-api svelte-1rjryqp"),oe(r,"class","svelte-1rjryqp")},m(f,m){Ue(f,e,m),Pe(e,n),Pe(e,i),Pe(e,o),Ue(f,_,m),Ue(f,r,m),c||(u=Il(e,"click",l[35]),c=!0)},p(f,m){m[0]&524288&&t!==(t=f[19]("errors.use_via_api")+"")&&os(n,t),m[0]&524288&&a!==(a=f[19]("common.logo"))&&oe(o,"alt",a)},d(f){f&&(Se(e),Se(_),Se(r)),c=!1,u()}}}function Po(l){let e,t,n,i,o;return t=new _u({props:{api_calls:l[17],dependencies:l[1]}}),{c(){e=Ze("div"),Fn(t.$$.fragment),oe(e,"id","api-recorder-container"),oe(e,"class","svelte-1rjryqp")},m(s,a){Ue(s,e,a),Bn(t,e,null),n=!0,i||(o=Il(e,"click",l[36]),i=!0)},p(s,a){const _={};a[0]&131072&&(_.api_calls=s[17]),a[0]&2&&(_.dependencies=s[1]),t.$set(_)},i(s){n||(Ce(t.$$.fragment,s),n=!0)},o(s){Fe(t.$$.fragment,s),n=!1},d(s){s&&Se(e),Un(t),i=!1,o()}}}function Oo(l){let e,t,n,i,o,s,a,_;return o=new Yc({props:{root_node:l[14],dependencies:l[1],root:l[0],app:l[10],space_id:l[11],api_calls:l[17],username:l[13]}}),o.$on("close",l[38]),{c(){e=Ze("div"),t=Ze("div"),n=Ke(),i=Ze("div"),Fn(o.$$.fragment),oe(t,"class","backdrop svelte-1rjryqp"),oe(i,"class","api-docs-wrap svelte-1rjryqp"),oe(e,"class","api-docs svelte-1rjryqp")},m(r,c){Ue(r,e,c),Pe(e,t),Pe(e,n),Pe(e,i),Bn(o,i,null),s=!0,a||(_=Il(t,"click",l[37]),a=!0)},p(r,c){const u={};
97c[0]&16384&&(u.root_node=r[14]),c[0]&2&&(u.dependencies=r[1]),c[0]&1&&(u.root=r[0]),c[0]&1024&&(u.app=r[10]),c[0]&2048&&(u.space_id=r[11]),c[0]&131072&&(u.api_calls=r[17]),c[0]&8192&&(u.username=r[13]),o.$set(u)},i(r){s||(Ce(o.$$.fragment,r),s=!0)},o(r){Fe(o.$$.fragment,r),s=!1},d(r){r&&Se(e),Un(o),a=!1,_()}}}function Io(l){let e,t;return e=new Qr({props:{messages:l[18]}}),e.$on("close",l[25]),{c(){Fn(e.$$.fragment)},m(n,i){Bn(e,n,i),t=!0},p(n,i){const o={};i[0]&262144&&(o.messages=n[18]),e.$set(o)},i(n){t||(Ce(e.$$.fragment,n),t=!0)},o(n){Fe(e.$$.fragment,n),t=!1},d(n){Un(e,n)}}}function hf(l){let e,t,n,i,o,s,a,_,r,c,u=l[7]&&Ao(l),f=l[14]&&l[10].config&&Lo(l),m=l[6]&&To(l),g=l[16]&&Po(l),d=l[15]&&l[14]&&Oo(l),v=l[18]&&Io(l);return{c(){u&&u.c(),e=Co(),t=Ke(),n=Ze("div"),i=Ze("div"),f&&f.c(),o=Ke(),m&&m.c(),s=Ke(),g&&g.c(),a=Ke(),d&&d.c(),_=Ke(),v&&v.c(),r=Co(),oe(i,"class","contain svelte-1rjryqp"),$n(i,"flex-grow",l[8]?"1":"auto"),oe(n,"class","wrap svelte-1rjryqp"),$n(n,"min-height",l[8]?"100%":"auto")},m(p,j){u&&u.m($l.head,null),Pe($l.head,e),Ue(p,t,j),Ue(p,n,j),Pe(n,i),f&&f.m(i,null),Pe(n,o),m&&m.m(n,null),Ue(p,s,j),g&&g.m(p,j),Ue(p,a,j),d&&d.m(p,j),Ue(p,_,j),v&&v.m(p,j),Ue(p,r,j),c=!0},p(p,j){p[7]?u||(u=Ao(p),u.c(),u.m(e.parentNode,e)):u&&(u.d(1),u=null),p[14]&&p[10].config?f?(f.p(p,j),j[0]&17408&&Ce(f,1)):(f=Lo(p),f.c(),Ce(f,1),f.m(i,null)):f&&(vn(),Fe(f,1,1,()=>{f=null}),gn()),j[0]&256&&$n(i,"flex-grow",p[8]?"1":"auto"),p[6]?m?m.p(p,j):(m=To(p),m.c(),m.m(n,null)):m&&(m.d(1),m=null),j[0]&256&&$n(n,"min-height",p[8]?"100%":"auto"),p[16]?g?(g.p(p,j),j[0]&65536&&Ce(g,1)):(g=Po(p),g.c(),Ce(g,1),g.m(a.parentNode,a)):g&&(vn(),Fe(g,1,1,()=>{g=null}),gn()),p[15]&&p[14]?d?(d.p(p,j),j[0]&49152&&Ce(d,1)):(d=Oo(p),d.c(),Ce(d,1),d.m(_.parentNode,_)):d&&(vn(),Fe(d,1,1,()=>{d=null}),gn()),p[18]?v?(v.p(p,j),j[0]&262144&&Ce(v,1)):(v=Io(p),v.c(),Ce(v,1),v.m(r.parentNode,r)):v&&(vn(),Fe(v,1,1,()=>{v=null}),gn())},i(p){c||(Ce(f),Ce(g),Ce(d),Ce(v),c=!0)},o(p){Fe(f),Fe(g),Fe(d),Fe(v),c=!1},d(p){p&&(Se(t),Se(n),Se(s),Se(a),Se(_),Se(r)),u&&u.d(p),Se(e),f&&f.d(),m&&m.d(),g&&g.d(p),d&&d.d(p),v&&v.d(p)}}}const gf=/^'([^]+)'$/,vf=15,$f=10;function Do(l){return"detail"in l}function bf(l,e,t){let n,i,o,s,a;Kt(l,So,A=>t(19,s=A)),Ts();let{root:_}=e,{components:r}=e,{layout:c}=e,{dependencies:u}=e,{title:f="Gradio"}=e,{target:m}=e,{autoscroll:g}=e,{show_api:d=!0}=e,{show_footer:v=!0}=e,{control_page_title:p=!1}=e,{app_mode:j}=e,{theme_mode:w}=e,{app:b}=e,{space_id:C}=e,{version:h}=e,{js:k}=e,{fill_height:L=!1}=e,{ready:y}=e,{username:$}=e;const{layout:E,targets:P,update_value:D,get_data:U,loading_status:O,scheduled_updates:V,create_layout:M,rerender_layout:R}=af();Kt(l,E,A=>t(14,a=A)),Kt(l,P,A=>t(43,i=A)),Kt(l,O,A=>t(34,n=A)),Kt(l,V,A=>t(44,o=A));let se=new URLSearchParams(window.location.search),me=se.get("view")==="api"&&d,K=se.get("view")==="api-recorder"&&d;function We(A){t(16,K=!1),t(15,me=A);let ee=new URLSearchParams(window.location.search);A?ee.set("view","api"):ee.delete("view"),history.replaceState(null,"","?"+ee.toString())}let rn=[],{render_complete:an=!1}=e;async function Dl(A,ee){const W=u.find(X=>X.id==ee).outputs,B=A?.map((X,ve)=>({id:W[ve],prop:"value_is_output",value:!0}));D(B),await al();const ne=[];A?.forEach((X,ve)=>{if(typeof X=="object"&&X!==null&&X.__type__==="update")for(const[x,st]of Object.entries(X))x!=="__type__"&&ne.push({id:W[ve],prop:x,value:st});else ne.push({id:W[ve],prop:"value",value:X})}),D(ne),await al()}let Rl=new Map,re=[];function ot(A,ee,W,B=10,ne=!0){return{message:A,fn_index:ee,type:W,id:++_s,duration:B,visible:ne}}function as(A,ee){t(18,re=[ot(A,-1,ee),...re])}let _s=-1,Hn=!1;document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&(Hn=!0)});const cs=s("blocks.long_requests_queue"),us=s("blocks.connection_can_break"),fs=s("blocks.lost_connection"),Sl=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);let Vl=!1,Ml=!1;function Dt(A,ee=null,W=null){let B=()=>{};function ne(){B()}o?B=V.subscribe(X=>{X||(Nl(A,ee,W),ne())}):Nl(A,ee,W)}async function Nl(A,ee=null,W=null){let B=u.find(x=>x.id===A);const ne=O.get_status_for_fn(A);t(18,re=re.filter(({fn_index:x})=>x!==A)),(ne==="pending"||ne==="generating")&&(B.pending_request=!0);let X={fn_index:A,data:await Promise.all(B.inputs.map(x=>U(x))),event_data:B.collects_event_data?W:null,trigger_id:ee};B.frontend_fn?B.frontend_fn(X.data.concat(await Promise.all(B.outputs.map(x=>U(x))))).then(x=>{B.backend_fn?(X.data=x,ve(X)):Dl(x,A)}):B.types.cancel&&B.cancels?await Promise.all(B.cancels.map(async x=>{const st=Rl.get(x);return st?.cancel(),st})):B.backend_fn&&(B.trigger_mode==="once"?B.pending_request||ve(X):B.trigger_mode==="multiple"?ve(X):B.trigger_mode==="always_last"&&(B.pending_request?B.final_event=X:ve(X)));async function ve(x){K&&t(17,rn=[...rn,JSON.parse(JSON.stringify(x))]);let st;try{st=b.submit(x.fn_index,x.data,x.event_data,x.trigger_id)}catch(he){t(18,re=[ot(String(he),0,"error"),...re]),O.update({status:"error",fn_index:0,eta:0,queue:!1,queue_position:null}),_n(n);return}Rl.set(A,st);for await(const he of st)he.type==="data"?ws(he):he.type==="render"?ys(he):he.type==="status"?js(he):he.type==="log"&&Es(he);function ws(he){const{data:$e,fn_index:le}=he;B.pending_request&&B.final_event&&(B.pending_request=!1,ve(B.final_event)),B.pending_request=!1,Dl($e,le),_n(n)}function ys(he){const{data:$e}=he;let le=$e.components,Te=$e.layout,rt=$e.dependencies,at=$e.render_id,Gn=[];u.forEach((Jt,Cs)=>{Jt.rendered_in===at&&Gn.push(Cs)}
97),Gn.reverse().forEach(Jt=>{u.splice(Jt,1)}),rt.forEach(Jt=>{u.push(Jt)}),R({components:le,layout:Te,root:_,dependencies:u,render_id:at})}function Es(he){const{log:$e,fn_index:le,level:Te,duration:rt,visible:at}=he;t(18,re=[ot($e,le,Te,rt,at),...re])}function js(he){const{fn_index:$e,...le}=he;if(O.update({...le,status:le.stage,progress:le.progress_data,fn_index:$e}),_n(n),!Vl&&C!==null&&le.position!==void 0&&le.position>=2&&le.eta!==void 0&&le.eta>vf&&(Vl=!0,t(18,re=[ot(cs,$e,"warning"),...re])),!Ml&&Sl&&le.eta!==void 0&&le.eta>$f&&(Ml=!0,t(18,re=[ot(us,$e,"warning"),...re])),le.stage==="complete"&&(le.changed_state_ids?.forEach(Te=>{u.filter(rt=>rt.targets.some(([at,Gn])=>at===Te)).forEach(rt=>{Dt(rt.id,x.trigger_id)})}),u.forEach(async Te=>{Te.trigger_after===$e&&Dt(Te.id,x.trigger_id)})),le.broken&&Sl&&Hn)window.setTimeout(()=>{t(18,re=[ot(fs,$e,"error"),...re])},0),Dt(B.id,x.trigger_id,W),Hn=!1;else if(le.stage==="error"){if(le.message){const Te=le.message.replace(gf,(rt,at)=>at);t(18,re=[ot(Te,$e,"error",le.duration,le.visible),...re])}u.map(async Te=>{Te.trigger_after===$e&&!Te.trigger_only_on_success&&Dt(Te.id,x.trigger_id)})}}}}function ps(A,ee){if(C===null)return;const W=new URL(`https://huggingface.co/spaces/${C}/discussions/new`);A!==void 0&&A.length>0&&W.searchParams.set("title",A),W.searchParams.set("description",ee),window.open(W.toString(),"_blank")}function ds(A){const ee=A.detail;t(18,re=re.filter(W=>W.id!==ee))}const ms=A=>!!(A&&new URL(A,location.href).origin!==location.origin);async function hs(){k&&await new ls(`let result = await (${k})();
98					return (!Array.isArray(result)) ? [result] : result;`)(),await al();for(var A=m.getElementsByTagName("a"),ee=0;ee<A.length;ee++){const W=A[ee].getAttribute("target"),B=A[ee].getAttribute("href");ms(B)&&W!=="_blank"&&A[ee].setAttribute("target","_blank")}u.forEach(W=>{W.targets.some(B=>B[1]==="load")&&Dt(W.id)}),!an&&(m.addEventListener("prop_change",W=>{if(!Do(W))throw new Error("not a custom event");const{id:B,prop:ne,value:X}=W.detail;D([{id:B,prop:ne,value:X}])}),m.addEventListener("gradio",W=>{if(!Do(W))throw new Error("not a custom event");const{id:B,event:ne,data:X}=W.detail;if(ne==="share"){const{title:ve,description:x}=X;ps(ve,x)}else ne==="error"||ne==="warning"?t(18,re=[ot(X,-1,ne),...re]):ne=="clear_status"?gs(B,"complete",X):i[B]?.[ne]?.forEach(x=>{requestAnimationFrame(()=>{Dt(x,B,X)})})}),t(28,an=!0))}function gs(A,ee,W){W.status=ee,D([{id:A,prop:"loading_status",value:W}])}function _n(A){let ee=[];Object.entries(A).forEach(([ne,X])=>{let ve=u.find(x=>x.id==X.fn_index);ve!==void 0&&(X.scroll_to_output=ve.scroll_to_output,X.show_progress=ve.show_progress,ee.push({id:parseInt(ne),prop:"loading_status",value:X}))});const W=O.get_inputs_to_update(),B=Array.from(W).map(([ne,X])=>({id:ne,prop:"pending",value:X==="pending"}));D([...ee,...B])}const vs=()=>{We(!me)},$s=()=>{We(!0),t(16,K=!1)},bs=()=>{We(!1)},ks=A=>{We(!1),t(17,rn=[]),t(16,K=A.detail.api_recorder_visible)};return l.$$set=A=>{"root"in A&&t(0,_=A.root),"components"in A&&t(29,r=A.components),"layout"in A&&t(30,c=A.layout),"dependencies"in A&&t(1,u=A.dependencies),"title"in A&&t(2,f=A.title),"target"in A&&t(3,m=A.target),"autoscroll"in A&&t(4,g=A.autoscroll),"show_api"in A&&t(5,d=A.show_api),"show_footer"in A&&t(6,v=A.show_footer),"control_page_title"in A&&t(7,p=A.control_page_title),"app_mode"in A&&t(8,j=A.app_mode),"theme_mode"in A&&t(9,w=A.theme_mode),"app"in A&&t(10,b=A.app),"space_id"in A&&t(11,C=A.space_id),"version"in A&&t(12,h=A.version),"js"in A&&t(31,k=A.js),"fill_height"in A&&t(32,L=A.fill_height),"ready"in A&&t(27,y=A.ready),"username"in A&&t(13,$=A.username),"render_complete"in A&&t(28,an=A.render_complete)},l.$$.update=()=>{l.$$.dirty[0]&1610613763|l.$$.dirty[1]&2&&M({components:r,layout:c,dependencies:u,root:_,app:b,options:{fill_height:L}}),l.$$.dirty[0]&16384&&t(27,y=!!a),l.$$.dirty[1]&8&&_n(n)},[_,u,f,m,g,d,v,p,j,w,b,C,h,$,a,me,K,rn,re,s,E,P,O,V,We,ds,hs,y,an,r,c,k,L,as,n,vs,$s,bs,ks]}class kf extends ff{constructor(e){super(),df(this,e,bf,hf,mf,{root:0,components:29,layout:30,dependencies:1,title:2,target:3,autoscroll:4,show_api:5,show_footer
98:6,control_page_title:7,app_mode:8,theme_mode:9,app:10,space_id:11,version:12,js:31,fill_height:32,ready:27,username:13,render_complete:28,add_new_message:33},null,[-1,-1,-1])}get root(){return this.$$.ctx[0]}set root(e){this.$$set({root:e}),fe()}get components(){return this.$$.ctx[29]}set components(e){this.$$set({components:e}),fe()}get layout(){return this.$$.ctx[30]}set layout(e){this.$$set({layout:e}),fe()}get dependencies(){return this.$$.ctx[1]}set dependencies(e){this.$$set({dependencies:e}),fe()}get title(){return this.$$.ctx[2]}set title(e){this.$$set({title:e}),fe()}get target(){return this.$$.ctx[3]}set target(e){this.$$set({target:e}),fe()}get autoscroll(){return this.$$.ctx[4]}set autoscroll(e){this.$$set({autoscroll:e}),fe()}get show_api(){return this.$$.ctx[5]}set show_api(e){this.$$set({show_api:e}),fe()}get show_footer(){return this.$$.ctx[6]}set show_footer(e){this.$$set({show_footer:e}),fe()}get control_page_title(){return this.$$.ctx[7]}set control_page_title(e){this.$$set({control_page_title:e}),fe()}get app_mode(){return this.$$.ctx[8]}set app_mode(e){this.$$set({app_mode:e}),fe()}get theme_mode(){return this.$$.ctx[9]}set theme_mode(e){this.$$set({theme_mode:e}),fe()}get app(){return this.$$.ctx[10]}set app(e){this.$$set({app:e}),fe()}get space_id(){return this.$$.ctx[11]}set space_id(e){this.$$set({space_id:e}),fe()}get version(){return this.$$.ctx[12]}set version(e){this.$$set({version:e}),fe()}get js(){return this.$$.ctx[31]}set js(e){this.$$set({js:e}),fe()}get fill_height(){return this.$$.ctx[32]}set fill_height(e){this.$$set({fill_height:e}),fe()}get ready(){return this.$$.ctx[27]}set ready(e){this.$$set({ready:e}),fe()}get username(){return this.$$.ctx[13]}set username(e){this.$$set({username:e}),fe()}get render_complete(){return this.$$.ctx[28]}set render_complete(e){this.$$set({render_complete:e}),fe()}get add_new_message(){return this.$$.ctx[33]}}const Tf=Object.freeze(Object.defineProperty({__proto__:null,default:kf},Symbol.toStringTag,{value:"Module"}));export{Tf as B,Jn as S,Qr as T,Af as c,Lf as f,Cf as u};
99//# sourceMappingURL=Blocks-BPGBf-rO.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.