1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Index-COwHJ6dx.js","./index-C8Apqm2w.js","./index-CxD0vpZk.css","./src-CbZq-BZS.js","./src-B0AXVWgi.js","./src-BfutoOhM.css","./Index-0ncoyNDb.js","./statustracker-Bt83Jwdr.js","./dist-DDOGaTZn.js","./statustracker-CBq3kTyt.css","./Index-DrCM5gzc.css","./Index-l0AUS9hi.css","./Index-Ceauw4RX.js","./Index-BgJHsyvf.css","./StaticAudio-CFT4cWjG.js","./MinimalAudioPlayer-WSx6CDJd.js","./MinimalAudioPlayer-CzMbAGNO.css","./VolumeLevels-BJHJzsCK.js","./StaticAudio-Dr1JIwK9.css","./Example-BhFJJPO1.js","./Example-PnzFsODt.css","./audio-Bw948UYo.js","./src-CO1zsecs.js","./src-DHR5oziv.css","./record.esm-Res0U6Io.js","./audio-B-0Anr4d.css","./Index-BK9yfz2o.js","./Index-DixNP7d-.js","./__vite-browser-external-ZvYT56mQ.js","./Index-Bw2ZAjfm.js","./Image-DdnCiY67.js","./Image-Da_XA0w6.css","./shared-2-m6eKxh.js","./ImagePreview-DMGyhQ0A.js","./ImagePreview-B2sIO-1d.css","./Index-CcsdfK63.css","./Index-DqmvOMoz.js","./markdown-code-BwFeVCd7.js","./prism-CWNvGpTV.js","./markdown-code-4NCRkS5c.css","./Index-BQy4D5vy.css","./Example-DYDRa8z0.js","./Example-Cpi22WGa.css","./Index-BwEObqZi.js","./Index-nz772N1q.css","./Example-BoEyCFnT.js","./Example-QWdMqwA5.css","./Index-s9rxkkLT.js","./dist-Kll2twSG.js","./Index-Bqii6RB8.css","./Example-DWQGxqam.js","./Example-BK-tWmkG.css","./Index-TJdO0k4g.js","./dist-BcPOWFVN.js","./runtime-18Enru2i.js","./Index-CRgHWhLi.css","./Example-CRutw8iP.js","./Example-bHSd0VUC.css","./Index-DOIvBnMK.js","./tinycolor-PEGdpOg4.js","./Index-DOWWMP04.css","./Example-Cxi_jSVL.js","./Example-qsJQ3Pbm.css","./Index-erlXL6lP.js","./dsv-BSut97vP.js","./Index-By2o18qZ.css","./Index-C849Ua1K.js","./Example-CQDLWc2Y.js","./Example-B1swpn2y.css","./Index-DUI_xza-.js","./Index-Ba0kRe4M.css","./Index-DkaV9IGe.css","./Example-BG2pcwuB.js","./Index-BRv1iXAK.js","./Index-DRCpmDeD.css","./Example-Dyl0sXUA.js","./Example-BUUMH8K0.css","./Index-Be4xm3vN.js","./Index-zuyxRdQi.js","./Example-ChRuMM1n.js","./Example-BeU1J4ps.css","./Index-B2IoSUlF.css","./Index-BARIKWon.css","./Index-lgGS5rqa.js","./Index-3FqI08xq.css","./Index-PoQQvsGz.js","./Index-BEAaBpyn.css","./Example-B_kbx1Ej.js","./Example-Cb41fFYF.css","./Index-Dy_NdkRW.js","./Index-j-xwmL9e.css","./Example-VEo1pXuN.js","./Example-DO-WzQxB.css","./Index-lHboRChq.js","./Index-EcGL5Mc3.css","./Index-DxrsrOYa.js","./Index-C1GyojFs.css","./Gallery-D9IOlAml.js","./Video-D8zryVa_.js","./Video-DyHPMawA.css","./shared-CMs-mPpt.js","./Gallery-mNrXguI2.css","./Example-DKwr-Wyl.js","./Example-ju9UzsGI.css","./Index-CGX5Crvh.js","./Index-BgIeGApR.js","./Example-bop0MTdp.js","./Example-BHd1o9CD.css","./Index-B9HjGbAP.css","./Index-DKIzZVIo.css","./Index-vKtjmPJx.js","./Index-CA1QTtuq.css","./Index-DEhC-JI5.js","./Index-CuBpy66D.css","./HTML-GCn1WLkY.js","./HTML-BuYIBbeV.css","./Example-BZFEq_3n.js","./Example-BG5zdIqX.css","./Index-mv5oy1VG.js","./Index-VzTVYr-q.css","./Example-im7WPKJ_.js","./Example-CqSXPQC0.css","./Index-7BUeI9_P.js","./colorToUniform-C9fQhauo.js","./CanvasTextSystem-6XIdveuX.js","./CanvasPool-CahF2XoK.js","./SharedSystems-cJc8bVs2.js","./Index-O9LU53nH.css","./Example-CvMwa0FP.js","./Example-ClCEvrVq.css","./Index-DIPMX3RE.js","./dispatch-1efKFLvg.js","./select-B91Ub71Z.js","./Index-YfXSgqSc.css","./Example-FdCPKOS2.js","./JSON-BO52Kak-.js","./JSON-4hsSZ3V7.css","./Example-B38sx5Cv.css","./Index-Cq1JvsIM.js","./Index-DjJJueJT.js","./Index-CWf2xCP-.css","./Example-C6hoUbUT.js","./Example-CgIc4GLa.css","./Index-DScHp2AD.js","./Index-BGK55NKF.css","./Model3D-DWft85uQ.js","./Model3D-CAhmGe0p.css","./Example-s8JHym-d.js","./Example-RXDI_Ar6.css","./Index-DAy88T8e.js","./Index-DCRdhmCA.css","./Example-BATDAKTy.js","./Example-DG5wkFQp.css","./Index-BQfkG9aS.js","./Index-CdmNcLYG.css","./Example-Cx3F6M17.js","./Index-BJtm4pjN.js","./Index-DgD8sjzA.css","./Index-BznUjIpa.js","./Example-DcPRKyWM.js","./Example-B8ib44Ko.js","./Example-guFL0Sj1.css","./Index-zrVQBS6j.js","./Index-BHng8pvl.css","./Example-CjaFEmPv.js","./Example-Do5iR6B9.css","./Index-0OeFt3nQ.js","./prism-python-ugCtYTMt.js","./Index-D8gx7UNf.css","./Plot-B8QgYaV_.js","./Index-B6ddhhuk.js","./Example-CSETfNMA2.js","./Example-DWDv4qx4.css","./Index-CVsSfaA92.js","./Index-CvOXDAXN.css","./Index-Dp-wxyH4.js","./Index-LKTY8Jbn.css","./Index-Bt-5H8Hc2.js","./Index-B3LSO2or.css","./Example-D
1dnWmqwv2.js","./Example-DSMNiXnn.css","./Index-BNj0D_uU.js","./Index-Cr_YPqE0.css","./Index-BnN6VfLG.js","./Index-j9HZxrmN.js","./Index-CNQ-QI8_2.js","./Index-D-h_yCjW.css","./Index-BsaKcsdE.css","./Index-BFoT6KsE.js","./Index-DjaPQUII.js","./Index-Xhg3Ucw_.css","./Index-Bw_VZaZg.js","./Index-C6IXUoUa.css","./VideoPreview-jPnvkDHM.js","./VideoPreview-e2li-GXz.css","./Example-B8sZHbZ8.js","./Example-C1Twyudg.css","./video-Dch_dORy.js","./video-W3rk8GZx.css","./Index-DSFNmqgp.js","./Index-D152bojp.css","./Example-Czar8yfn.js","./Example-D2nbjfVb.css","./Index-BFfLWrx5.js","./Index-CstoGNSZ.css"])))=>i.map(i=>d[i]); 2import{$ as e,B as t,Bt as n,Et as r,Ft as i,Jt as a,Lt as o,M as s,Nt as c,Q as l,Tt as u,Wt as d,X as f,Xt as ee,Zt as p,_t as m,a as h,cn as g,ct as _,en as v,f as te,g as ne,gt as y,ht as b,it as x,l as re,m as S,nn as ie,on as ae,ot as C,p as w,rn as T,tn as E,tt as oe,u as se,vt as D,wt as ce,x as le,yt as O,z as ue,zt as k}from"./index-C8Apqm2w.js";import{d as A,i as j,l as M,n as N}from"./src-B0AXVWgi.js";import{t as P}from"./dist-Kll2twSG.js";import{a as F,i as I,n as L,o as R,r as z,t as de}from"./runtime-18Enru2i.js";v(),E();var fe=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='10'%20fill='none'%3e%3cpath%20fill='%23FF3270'%20d='M1.93%206.03v2.04h2.04V6.03H1.93Z'/%3e%3cpath%20fill='%23861FFF'%20d='M6.03%206.03v2.04h2.04V6.03H6.03Z'/%3e%3cpath%20fill='%23097EFF'%20d='M1.93%201.93v2.04h2.04V1.93H1.93Z'/%3e%3cpath%20fill='%23000'%20fill-rule='evenodd'%20d='M.5%201.4c0-.5.4-.9.9-.9h3.1a.9.9%200%200%201%20.87.67A2.44%202.44%200%200%201%209.5%202.95c0%20.65-.25%201.24-.67%201.68.39.1.67.46.67.88v3.08c0%20.5-.4.91-.9.91H1.4a.9.9%200%200%201-.9-.9V1.4Zm1.43.53v2.04h2.04V1.93H1.93Zm0%206.14V6.03h2.04v2.04H1.93Zm4.1%200V6.03h2.04v2.04H6.03Zm0-5.12a1.02%201.02%200%201%201%202.04%200%201.02%201.02%200%200%201-2.04%200Z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23FFD702'%20d='M7.05%201.93a1.02%201.02%200%201%200%200%202.04%201.02%201.02%200%200%200%200-2.04Z'/%3e%3c/svg%3e`,pe=S(null),me=_(`<a data-sveltekit-reload=""> </a>`),he=_(`<div class="nav-holder svelte-99kmwu"><nav></nav></div>`),ge=_(`<div class="info svelte-99kmwu"><span class="svelte-99kmwu"><a class="title svelte-99kmwu"> </a></span> <span class="svelte-99kmwu"> <a class="gradio svelte-99kmwu" href="https://gradio.app">Gradio</a>.</span> <span class="svelte-99kmwu"> <a class="hf svelte-99kmwu" href="https://huggingface.co/spaces"><span class="space-logo svelte-99kmwu"><img alt="Hugging Face Space" class="svelte-99kmwu"/></span> Spaces</a></span></div>`),_e=_(`<div data-iframe-height=""><!> <div><!> <div><!></div></div></div>`);function B(n,m){p(m,!1);let g=()=>se(pe,`$navbar_config`,v),_=()=>se(de,`$_`,v),[v,te]=re(),S=o(),w=o(),E=h(m,`wrapper`,12),D=h(m,`version`,12),A=h(m,`initial_height`,12),j=h(m,`fill_width`,12),M=h(m,`is_embed`,12),N=h(m,`space`,12),P=h(m,`display`,12),F=h(m,`info`,12),I=h(m,`loaded`,12),L=h(m,`pages`,28,()=>[]),R=h(m,`current_page`,12,``),z=h(m,`root`,12),B=h(m,`components`,28,()=>[]),V=B().find(e=>e.type===`navbar`),H=o(V?{visible:V.props.visible,main_page_name:V.props.main_page_name,value:V.props.value}:null);y(H)&&pe.set(y(H));function U(e){let t=e.split(`?`)[0].split(`#`)[0];return t=t.replace(/^\/+|\/+$/g,``),t}function ve(e,t){return e.startsWith(`http://`)||e.startsWith(`https://`)?!1:U(e)===U(t)}ce(()=>g(),()=>{g()&&k(H,{visible:g().visible??!0,main_page_name:g().main_page_name??`Home`,value:g().value??null})}),ce(()=>(b(L()),y(H)),()=>{k(S,L().length>1&&(y(H)===null||y(H).visible!==!1))}),ce(()=>(b(L()),y(H)),()=>{k(w,(()=>{let e=L().filter(([e,t,n],r)=>r===0&&e===``?y(H)?.main_page_name!==!1:n!==!1),t=y(H)&&y(H).main_page_name!==!1&&y(H).main_page_name!==`Home`?e.map(([e,t,n],r)=>r===0&&e===``&&t===`Home`?[e,y(H).main_page_name]:[e,t]):e.map(([e,t])=>[e,t]);if(y(H)?.value&&y(H).value.length>0){let e=new Set(t.map(([e])=>e)),n=y(H).value.map(([e,t])=>[t,e]).filter(([t])=>!e.has(t));return[...t,...n]}return t})())}),u();var W={get wrapper(){return E()},set wrapper(e){E(e),a()},get version(){return D()},set version(e){D(e),a()},get initial_height(){return A()},set initial_height(e){A(e),a()},get fill_width(){return j()},set fill_width(e){j(e),a()},get is_embed(){return M()},set is_embed(e){M(e),a()},get space(){return N()},set space(e){N(e),a()},get display(){return P()},set display(e){P(e),a()},get info(){return F()},set info(e){F(e),a()},get loaded(){return I()},set loaded(e){I(e),a()},get pages(){return L()},set pages(e){L(e),a()},get current_page(){return R()},set current_page(e){R(e),a()},get root(){return z()},set root(e){z(e),a()},get components(){return B()},set components(e){B(e),a()}};ne();var G=_e();let K,q;var J=c(G),ye=n=>{var i=he(),a=c(i);let o;l(a,5,()=>y(w),e,(e,n)=>{var i=d(()=>ae(y(n),2));let a=()=>y(i)[0],o=()=>y(i)[1];var l=me();let u;var f=c(l,!0);T(l),r((e,n,r,i)=>{s(l,`href`,e),s(l,`target`,n),s(l,`rel`,r),u=t(l,1,`svelte-99kmwu`,null,u,i),x(f,o())},[()=>(a(),b(z()),O(()=>a().startsWith(`http://`)||a().startsWith(`https://`)?a():`${z()}/${a()}`)),()=>(a(),O(()=>a().startsWith(`http://`)||a().startsWith(`https://`)?`_blank`:`_self`)),()=>(a(),O(()=>a().startsWith(`http://`)||a().startsWith(`https://`)?`noopener noreferrer`:``)),()=>({active:ve(a(),R())})]),C(e,l)}
2),T(a),T(i),r(()=>o=t(a,1,`fillable svelte-99kmwu`,null,o,{fill_width:j()})),C(n,i)};oe(J,e=>{y(S)&&e(ye)});var Y=i(J,2);let X;var be=c(Y);f(be,m,`default`,{},null);var xe=i(be,2),Se=c(xe),Ce=e=>{var t=ge(),n=c(t),a=c(n),o=c(a,!0);T(a),T(n);var l=i(n,2),u=c(l);ie(2),T(l);var d=i(l,2),f=c(d),ee=i(f),p=c(ee),m=c(p);T(p),ie(),T(ee),T(d),T(t),r((e,t)=>{s(a,`href`,`https://huggingface.co/spaces/${N()??``}`),x(o,N()),x(u,`${e??``} `),x(f,`${t??``} `),s(m,`src`,fe)},[()=>(_(),O(()=>_()(`common.built_with`))),()=>(_(),O(()=>_()(`common.hosted_on`)))]),C(e,t)};oe(Se,e=>{P()&&N()&&F()&&e(Ce)}),T(xe),T(Y),T(G),le(G,e=>E(e),()=>E()),r(()=>{K=t(G,1,`gradio-container gradio-container-${D()??``}`,`svelte-99kmwu`,K,{fill_width:j(),"embed-container":P(),"with-info":F()}),q=ue(G,``,q,{"min-height":I()?`initial`:A(),"flex-grow":P()?`auto`:`1`}),X=t(Y,1,`main fillable svelte-99kmwu`,null,X,{fill_width:j(),app:!P()&&!M()})}),C(n,G);var we=ee(W);return te(),we}var V=!1;typeof window<`u`&&`attachShadow`in Element.prototype&&`adoptedStyleSheets`in Document.prototype&&(V=`adoptedStyleSheets`in document.createElement(`div`).attachShadow({mode:`open`}));function H(e,t){let n=new URL(import.meta.url).origin;var r=e;if(window.location.origin!==n&&(r=new URL(e,n).href),document.querySelector(`link[href='${r}']`))return Promise.resolve();let i=document.createElement(`link`);return i.rel=`stylesheet`,i.href=r,new Promise((e,n)=>{i.addEventListener(`load`,()=>e()),i.addEventListener(`error`,()=>{console.error(`Unable to preload CSS for ${r}`),e()}),t.appendChild(i)})}function U(e,t,n){if(!V)return e;n||=document.createElement(`style`),n.remove();let r=new CSSStyleSheet;r.replaceSync(e);let i=``;e=e.replace(/@import\s+url\((.*?)\);\s*/g,(e,t)=>(i+=`@import url(${t});\n`,``));let a=r.cssRules,o=``,s=`.gradio-container.gradio-container-${t} .contain `;for(let e=0;e<a.length;e++){let t=a[e],n=t.cssText.includes(`.dark`);if(t instanceof CSSStyleRule){let e=t.selectorText;if(e){let r=e.replace(`.dark`,``).split(`,`).map(e=>`${n?`.dark`:``} ${s} ${e.trim()} `).join(`,`);o+=t.cssText,o+=t.cssText.replace(e,r)}}else if(t instanceof CSSMediaRule){let e=`@media ${t.media.mediaText} {`;for(let n=0;n<t.cssRules.length;n++){let r=t.cssRules[n];if(r instanceof CSSStyleRule){let t=r.cssText.includes(`.dark `),n=r.selectorText,i=n.replace(`.dark`,``).split(`,`).map(e=>`${t?`.dark`:``} ${s} ${e.trim()} `).join(`,`);e+=r.cssText.replace(n,i)}}e+=`}`,o+=e}else if(t instanceof CSSKeyframesRule){o+=`@keyframes ${t.name} {`;for(let e=0;e<t.cssRules.length;e++){let n=t.cssRules[e];n instanceof CSSKeyframeRule&&(o+=`${n.keyText} { ${n.style.cssText} }`)}o+=`}`}else t instanceof CSSFontFaceRule&&(o+=`@font-face { ${t.style.cssText} }`)}return i+o}var ve={accordion:{component:()=>g(()=>import(`./Index-COwHJ6dx.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)},annotatedimage:{component:()=>g(()=>import(`./Index-Ceauw4RX.js`),__vite__mapDeps([12,1,2,3,4,5,7,8,9,13]),import.meta.url)},audio:{base:()=>g(()=>import(`./StaticAudio-CFT4cWjG.js`),__vite__mapDeps([14,1,2,3,4,5,15,16,17,18]),import.meta.url),example:()=>g(()=>import(`./Example-BhFJJPO1.js`),__vite__mapDeps([19,1,2,20]),import.meta.url),component:()=>g(()=>import(`./audio-Bw948UYo.js`),__vite__mapDeps([21,1,2,3,4,5,19,20,14,15,16,17,18,7,8,9,22,23,24,25]),import.meta.url)},box:{component:()=>g(()=>import(`./Index-BK9yfz2o.js`),__vite__mapDeps([26,1,2,3,4,5]),import.meta.url)},browserstate:{component:()=>g(()=>import(`./Index-DixNP7d-.js`),__vite__mapDeps([27,1,2,4,28]),import.meta.url)},button:{component:()=>g(()=>import(`./Index-Bw2ZAjfm.js`).then(e=>e.t),__vite__mapDeps([29,1,2,30,31,32,33,3,4,5,34,35]),import.meta.url)},chatbot:{component:()=>g(()=>import(`./Index-DqmvOMoz.js`),__vite__mapDeps([36,1,2,3,4,5,30,31,32,33,34,37,8,38,39,7,9,40]),import.meta.url)},checkbox:{example:()=>g(()=>import(`./Example-DYDRa8z0.js`),__vite__mapDeps([41,1,2,42]),import.meta.url),component:()=>g(()=>import(`./Index-BwEObqZi.js`).then(e=>e.t),__vite__mapDeps([43,1,2,3,4,5,7,8,9,44]),import.meta.url)},checkboxgroup:{example:()=>g(()=>import(`./Example-BoEyCFnT.js`),__vite__mapDeps([45,1,2,46]),import.meta.url),component:()=>g(()=>import(`./Index-s9rxkkLT.js`),__vite__mapDeps([47,1,2,3,4,5,7,8,9,48,49]),import.meta.url)},code:{example:()=>g(()=>import(`./Example-DWQGxqam.js`).then(e=>e.n),__vite__mapDeps([50,1,2,51]),import.meta.url),component:()=>g(()=>import(`./Index-TJdO0k4g.js`),__vite__mapDeps([52,1,2,3,4,5,50,51,7,8,9,53,54,55]),import.meta.url)},colorpicker:{example:()=>g(()=>import(`./Example-CRutw8iP.js`),__vite__mapDeps([56,1,2,57]),import.meta.url),component:()=>g(()=>import(`./Index-DOIvBnMK.js`),__vite__mapDeps([58,1,2,3,4,5,56,57,7,8,9,59,60
2]),import.meta.url)},column:{component:()=>g(()=>import(`./Index-0ncoyNDb.js`).then(e=>e.t),__vite__mapDeps([6,1,2,7,3,4,5,8,9,10]),import.meta.url)},core:{component:()=>g(()=>import(`./core-DA1wzR92.js`),[],import.meta.url)},dataframe:{example:()=>g(()=>import(`./Example-Cxi_jSVL.js`),__vite__mapDeps([61,1,2,62]),import.meta.url),component:()=>g(()=>import(`./Index-erlXL6lP.js`),__vite__mapDeps([63,1,2,3,4,5,43,7,8,9,44,61,62,37,38,39,22,23,64,65]),import.meta.url)},dataset:{component:()=>g(()=>import(`./Index-C849Ua1K.js`),__vite__mapDeps([66,1,2,3,4,5,67,68,69,7,8,9,70,71]),import.meta.url)},datetime:{example:()=>g(()=>import(`./Example-BG2pcwuB.js`),__vite__mapDeps([72,1,2]),import.meta.url),component:()=>g(()=>import(`./Index-BRv1iXAK.js`),__vite__mapDeps([73,1,2,3,4,5,72,74]),import.meta.url)},dialogue:{example:()=>g(()=>import(`./Example-Dyl0sXUA.js`),__vite__mapDeps([75,1,2,76]),import.meta.url),component:()=>g(()=>import(`./Index-Be4xm3vN.js`),__vite__mapDeps([77,1,2,3,4,5,75,76,78,79,80,7,8,9,54,81,82]),import.meta.url)},downloadbutton:{component:()=>g(()=>import(`./Index-lgGS5rqa.js`),__vite__mapDeps([83,1,2,29,30,31,32,33,3,4,5,34,35,84]),import.meta.url)},draggable:{component:()=>g(()=>import(`./Index-PoQQvsGz.js`),__vite__mapDeps([85,1,2,7,3,4,5,8,9,86]),import.meta.url)},dropdown:{example:()=>g(()=>import(`./Example-ChRuMM1n.js`).then(e=>e.n),__vite__mapDeps([79,1,2,80]),import.meta.url),component:()=>g(()=>import(`./Index-zuyxRdQi.js`).then(e=>e.t),__vite__mapDeps([78,1,2,3,4,5,79,80,7,8,9,54,81]),import.meta.url)},file:{example:()=>g(()=>import(`./Example-B_kbx1Ej.js`).then(e=>e.n),__vite__mapDeps([87,1,2,88]),import.meta.url),component:()=>g(()=>import(`./Index-Dy_NdkRW.js`),__vite__mapDeps([89,1,2,3,4,5,87,88,7,8,9,22,23,90]),import.meta.url)},fileexplorer:{example:()=>g(()=>import(`./Example-VEo1pXuN.js`),__vite__mapDeps([91,1,2,92]),import.meta.url),component:()=>g(()=>import(`./Index-lHboRChq.js`),__vite__mapDeps([93,1,2,3,4,5,7,8,9,54,94]),import.meta.url)},form:{component:()=>g(()=>import(`./Index-DxrsrOYa.js`),__vite__mapDeps([95,1,2,4,96]),import.meta.url)},gallery:{base:()=>g(()=>import(`./Gallery-D9IOlAml.js`),__vite__mapDeps([97,1,2,3,4,5,30,31,32,33,34,22,23,98,99,100,48,101]),import.meta.url),example:()=>g(()=>import(`./Example-DKwr-Wyl.js`),__vite__mapDeps([102,1,2,103]),import.meta.url),component:()=>g(()=>import(`./Index-CGX5Crvh.js`),__vite__mapDeps([104,1,2,3,4,5,89,87,88,7,8,9,22,23,90,102,103,97,30,31,32,33,34,98,99,100,48,101,105,106,107,108,109]),import.meta.url)},group:{component:()=>g(()=>import(`./Index-vKtjmPJx.js`),__vite__mapDeps([110,1,2,4,111]),import.meta.url)},highlightedtext:{component:()=>g(()=>import(`./Index-DEhC-JI5.js`),__vite__mapDeps([112,1,2,3,4,5,7,8,9,113]),import.meta.url)},html:{base:()=>g(()=>import(`./HTML-GCn1WLkY.js`),__vite__mapDeps([114,1,2,115]),import.meta.url),example:()=>g(()=>import(`./Example-BZFEq_3n.js`),__vite__mapDeps([116,1,2,117]),import.meta.url),component:()=>g(()=>import(`./Index-mv5oy1VG.js`),__vite__mapDeps([118,1,2,3,4,5,116,117,114,115,7,8,9,119]),import.meta.url)},image:{base:()=>g(()=>import(`./ImagePreview-DMGyhQ0A.js`).then(e=>e.n),__vite__mapDeps([33,1,2,3,4,5,30,31,34]),import.meta.url),example:()=>g(()=>import(`./Example-bop0MTdp.js`).then(e=>e.n),__vite__mapDeps([106,1,2,30,31,107]),import.meta.url),component:()=>g(()=>import(`./Index-BgIeGApR.js`).then(e=>e.t),__vite__mapDeps([105,1,2,3,4,5,106,30,31,107,33,34,7,8,9,22,23,108]),import.meta.url)},imageeditor:{example:()=>g(()=>import(`./Example-im7WPKJ_.js`),__vite__mapDeps([120,1,2,105,3,4,5,106,30,31,107,33,34,7,8,9,22,23,108,121]),import.meta.url),component:()=>g(()=>import(`./Index-7BUeI9_P.js`),__vite__mapDeps([122,1,2,3,4,5,105,106,30,31,107,33,34,7,8,9,22,23,108,123,124,125,126,59,127]),import.meta.url)},imageslider:{example:()=>g(()=>import(`./Example-CvMwa0FP.js`),__vite__mapDeps([128,1,2,129]),import.meta.url),component:()=>g(()=>import(`./Index-DIPMX3RE.js`),__vite__mapDeps([130,1,2,3,4,5,7,8,9,22,23,131,132,133]),import.meta.url)},json:{example:()=>g(()=>import(`./Example-FdCPKOS2.js`),__vite__mapDeps([134,1,2,135,3,4,5,136,137]),import.meta.url),component:()=>g(()=>import(`./Index-Cq1JvsIM.js`),__vite__mapDeps([138,1,2,3,4,5,135,136,7,8,9]),import.meta.url)},label:{component:()=>g(()=>import(`./Index-DjJJueJT.js`),__vite__mapDeps([139,1,2,3,4,5,7,8,9,140]),import.meta.url)},markdown:{example:()=>g(()=>import(`./Example-C6hoUbUT.js`).then(e=>e.n),__vite__mapDeps([141,1,2,37,8,38,39,142]),import.meta.url),component:()=>g(()=>import(`./Index-DScHp2AD.js`),__vite__mapDeps([143,1,2,3,4,5,37,8,38,39,141,142,7,9,144]),import.meta.url)},model3d:{base:()=>g(()=>import(`./Model3D-DWft85uQ.js`),__vite__mapDeps([145,1,2,3,4,5,48,146]),import.meta.url),example:()=>g(()=>import(`./Example-s8JHym-d.js`),__vite__mapDeps([147,1,2,148]),import.meta.url),component:()=>g(()=>import(`./Index-DAy88T8e.js`),__vite__mapDeps([149,1,2,3,4,5,147,148,145,48,146,7,8,9,22,23,150]),import.meta.url)},multimodaltextbox:{example:()=>g(()=>import(`./Example-BATDAKTy.js`),__vite__mapDeps([151,1,2,30,31,32,33,3,4,5,34,98,99,100,152]),import.meta.url),component:()=>g(()=>import(`./Index-BQfkG9aS.js`),__vite__mapDeps([153,1,2,3,4,5,15,16,30,31,32,33,34,151,98,99,100,152,7,8,9,22,23,24,154]),import.meta.url)},nativeplot:{example:()=>g(()=>import(`./Example-Cx3F6M17.js`),__vite__mapDeps([155,1,2]),import.meta.url),component:()=>g(()=>import(`./Index-BJtm4pjN.js`),__vite__mapDeps([156,1,2,3,4,5,7,8,9,157]),import.meta.url)}
2,navbar:{base:()=>g(()=>import(`./Index-BznUjIpa.js`),__vite__mapDeps([158,1,2,4]),import.meta.url),example:()=>g(()=>import(`./Example-DcPRKyWM.js`),__vite__mapDeps([159,1,2]),import.meta.url),component:()=>g(()=>import(`./Index-BznUjIpa.js`),__vite__mapDeps([158,1,2,4]),import.meta.url)},number:{example:()=>g(()=>import(`./Example-B8ib44Ko.js`),__vite__mapDeps([160,1,2,161]),import.meta.url),component:()=>g(()=>import(`./Index-zrVQBS6j.js`),__vite__mapDeps([162,1,2,3,4,5,7,8,9,163]),import.meta.url)},paramviewer:{example:()=>g(()=>import(`./Example-CjaFEmPv.js`),__vite__mapDeps([164,1,2,165]),import.meta.url),component:()=>g(()=>import(`./Index-0OeFt3nQ.js`),__vite__mapDeps([166,1,2,4,167,38,168]),import.meta.url)},plot:{base:()=>g(()=>import(`./Plot-B8QgYaV_.js`),__vite__mapDeps([169,1,2,3,4,5]),import.meta.url),component:()=>g(()=>import(`./Index-B6ddhhuk.js`),__vite__mapDeps([170,1,2,3,4,5,169,7,8,9]),import.meta.url)},radio:{example:()=>g(()=>import(`./Example-CSETfNMA2.js`),__vite__mapDeps([171,1,2,172]),import.meta.url),component:()=>g(()=>import(`./Index-CVsSfaA92.js`),__vite__mapDeps([173,1,2,3,4,5,171,172,7,8,9,174]),import.meta.url)},row:{component:()=>g(()=>import(`./Index-Dp-wxyH4.js`),__vite__mapDeps([175,1,2,7,3,4,5,8,9,176]),import.meta.url)},sidebar:{component:()=>g(()=>import(`./Index-Bt-5H8Hc2.js`),__vite__mapDeps([177,1,2,6,7,3,4,5,8,9,10,178]),import.meta.url)},slider:{example:()=>g(()=>import(`./Example-DdnWmqwv2.js`),__vite__mapDeps([179,1,2,180]),import.meta.url),component:()=>g(()=>import(`./Index-BNj0D_uU.js`),__vite__mapDeps([181,1,2,3,4,5,7,8,9,182]),import.meta.url)},state:{component:()=>g(()=>import(`./Index-BnN6VfLG.js`),__vite__mapDeps([183,1,2,4]),import.meta.url)},statustracker:{component:()=>g(()=>import(`./statustracker-Bt83Jwdr.js`).then(e=>e.t),__vite__mapDeps([7,1,2,3,4,5,8,9]),import.meta.url)},tabitem:{component:()=>g(()=>import(`./Index-j9HZxrmN.js`),__vite__mapDeps([184,1,2,6,7,3,4,5,8,9,10,185,186,187]),import.meta.url)},tabs:{component:()=>g(()=>import(`./Index-CNQ-QI8_2.js`).then(e=>e.t),__vite__mapDeps([185,1,2,4,186]),import.meta.url)},textbox:{example:()=>g(()=>import(`./Example-CQDLWc2Y.js`).then(e=>e.n),__vite__mapDeps([67,1,2,68]),import.meta.url),component:()=>g(()=>import(`./Index-DUI_xza-.js`).then(e=>e.t),__vite__mapDeps([69,1,2,3,4,5,7,8,9,67,68,70]),import.meta.url)},timer:{component:()=>g(()=>import(`./Index-BFoT6KsE.js`),__vite__mapDeps([188,1,2,4]),import.meta.url)},uploadbutton:{component:()=>g(()=>import(`./Index-DjaPQUII.js`),__vite__mapDeps([189,1,2,29,30,31,32,33,3,4,5,34,35,22,23,190]),import.meta.url)},vibeeditor:{component:()=>g(()=>import(`./Index-Bw_VZaZg.js`),__vite__mapDeps([191,1,2,52,3,4,5,50,51,7,8,9,53,54,55,143,37,38,39,141,142,144,192]),import.meta.url)},video:{base:()=>g(()=>import(`./VideoPreview-jPnvkDHM.js`),__vite__mapDeps([193,1,2,3,4,5,17,22,23,98,99,194]),import.meta.url),example:()=>g(()=>import(`./Example-B8sZHbZ8.js`),__vite__mapDeps([195,1,2,98,99,196]),import.meta.url),component:()=>g(()=>import(`./video-Dch_dORy.js`),__vite__mapDeps([197,1,2,3,4,5,105,106,30,31,107,33,34,7,8,9,22,23,108,195,98,99,196,193,17,194,198]),import.meta.url)},workflowcanvas:{component:()=>g(()=>import(`./Index-DSFNmqgp.js`),__vite__mapDeps([199,1,2,105,3,4,5,106,30,31,107,33,34,7,8,9,22,23,108,69,67,68,70,200]),import.meta.url)},walkthrough:{component:()=>g(()=>import(`./Index-CNQ-QI8_2.js`).then(e=>e.t),__vite__mapDeps([185,1,2,4,186]),import.meta.url)},walkthroughstep:{component:()=>g(()=>import(`./Index-j9HZxrmN.js`),__vite__mapDeps([184,1,2,6,7,3,4,5,8,9,10,185,186,187]),import.meta.url)}},W={},G={},K=typeof window<`u`;function q({api_url:e,name:t,id:n,variant:r}){let i=K&&window.__GRADIO__CC__;K&&window.__GRADIO__CC__RUNTIMES__;let a={...ve,...i||{}},o=n||t;if(W[`${o}-${r}`])return{component:W[`${o}-${r}`],name:t,runtime:G[`${o}-${r}`]};try{if(!a?.[o]?.[r]&&!a?.[t]?.[r])throw Error();return W[`${o}-${r}`]=(a?.[o]?.[r]||a?.[t]?.[r])(),G[`${o}-${r}`]=K&&window.__GRADIO__CC__RUNTIMES__?.[n]||!1,{name:t,component:W[`${o}-${r}`],runtime:G[`${o}-${r}`]}}catch{if(!o)throw Error(`Component not found: ${t}`);
2try{let[n,i]=ye(e,o,r);return W[`${o}-${r}`]=n,G[`${o}-${r}`]=i,{name:t,component:W[`${o}-${r}`],runtime:G[`${o}-${r}`]}}catch(e){if(r===`example`)return W[`${o}-${r}`]=g(()=>import(`./Example-Czar8yfn.js`),__vite__mapDeps([201,1,2,202]),import.meta.url),{name:t,component:W[`${o}-${r}`],runtime:G[`${o}-${r}`]};throw console.error(`failed to load: ${t}`),console.error(e),e}}}function J(e){return K?new Promise((t,n)=>{let r=document.createElement(`link`);r.rel=`stylesheet`,r.href=e,document.head.appendChild(r),r.onload=()=>t(),r.onerror=()=>n()}):Promise.resolve()}function ye(e,t,n){let r=K?`client`:`server`;if(r===`server`)return[g(()=>import(`./Index-BFfLWrx5.js`),__vite__mapDeps([203,1,2,3,4,5,7,8,9,204]),import.meta.url),Promise.resolve(!1)];let i=`${e}/custom_component/${t}/${r}/${n}/index.js`;return[Promise.all([J(`${e}/custom_component/${t}/${r}/${n}/style.css`),g(()=>import(i),[],import.meta.url)]).then(([e,t])=>t),g(()=>import(`${e}/custom_component/${t}/${r}/${n}/svelte_runtime_entry.js`),[],import.meta.url)]}function Y(e,t,n,r=`component`){return e===`api`&&(e=`state`),q({api_url:n,name:e,id:t,variant:r})}function X(e){let t=new Set,n=new Set;for(let r of e)r.inputs.forEach(e=>t.add(e)),r.outputs.forEach(e=>n.add(e));return[t,n]}function be(e,t,n,r){let[i,a]=r;return t===!1?!1:t===!0?!0:!!(i.has(e)||!a.has(e)&&xe(n))}function xe(e){return Array.isArray(e)&&e.length===0||e===``||e===0||!e}var Se=Object.getPrototypeOf(async function(){}).constructor;function Ce(e){if(e==null)return``;let t=String(e),n=w(de);if(t.includes(`__i18n__`))return M(t,n);let r=n(t);return typeof r==`string`&&r!==t?r:t}var we=te(de,()=>Ce),Te={walkthrough:`tabs`,walkthroughstep:`tabitem`};function Ee(e,t){let n=e.api_prefix.startsWith(`/`)?e.api_prefix:`/`+e.api_prefix;return A(e.root,n,t).toString()}var De=class{#e;#t;#n;reactive_formatter=e=>e;#r;client;#i=n();get root(){return y(this.#i)}set root(e){k(this.#i,e,!0)}root_untracked;#a=new Set;#o=new Set;#s=new Map;#c=new Map;#l=new Map;#u;component_ids;initial_tabs={};components_to_register=new Set;ready;ready_resolve;resolved=!1;#d=new Set;constructor(e,t,n,r,i,a,o){this.ready=new Promise(e=>{this.ready_resolve=e}),this.reactive_formatter=a;let s=Ee(r);this.#r={...r,api_url:s},this.#e=e,this.#t=t,this.#n=n,this.#u=o,this.root=this.create_node({id:t.id,children:[]},new Map,!0);for(let t of e)t.props.visible!=0&&this.components_to_register.add(t.id);this.client=i,this.prepare();let c=e.reduce((e,t)=>(e.set(t.id,t),e),new Map);this.root.children=this.#t.children.map(e=>this.traverse(e,e=>this.create_node(e,c,!1,this.reactive_formatter))),this.component_ids=e.map(e=>e.id),this.initial_tabs={},Be(this.root,this.initial_tabs),this.postprocess(this.root),this.root_untracked=this.root}reload(e,t,n,r){this.#t=t,this.#e=e;let i=Ee(r);this.#r={...r,api_url:i},this.#n=n,this.root=this.create_node({id:t.id,children:[]},new Map,!0);for(let t of e)t.props.visible!=0&&this.components_to_register.add(t.id);this.prepare();let a=e.reduce((e,t)=>(e.set(t.id,t),e),new Map);this.root.children=this.#t.children.map(e=>this.traverse(e,e=>this.create_node(e,a,!1,this.reactive_formatter))),this.component_ids=e.map(e=>e.id),this.initial_tabs={},Be(this.root,this.initial_tabs),this.postprocess(this.root),this.#f(this.root)}register_component(e,t,n){this.#c.set(e,t),this.#s.set(e,n),this.components_to_register.delete(e);let r=this.#l.get(e);r&&(this.#l.delete(e),m().then(()=>{let t=this.#c.get(e);t&&t(r)})),this.components_to_register.size===0&&!this.resolved&&(this.resolved=!0,this.ready_resolve())}unregister_component(e,t){let n=this.#c.get(e);t&&n!==t||(this.#c.delete(e),this.#s.delete(e))}prepare(){let[e,t]=X(this.#n);this.#a=e,this.#o=t}process(){}postprocess(e){this.root=this.traverse(e,[e=>Pe(e,this.#r.api_url),e=>Fe(e,this.components_to_register),e=>Re(e,this.initial_tabs),e=>this.find_attached_events(e,this.#n),e=>Le(e,this.components_to_register,this.#d)])}find_attached_events(e,t){let n=t.filter(t=>t.targets.find(([t])=>t===e.id)).map(t=>{let n=t.targets.find(([t])=>t===e.id);return n?n[1]:null}).filter(Boolean);return e.props.shared_props.attached_events=n,e}traverse(e,t){function n(e,t,n){let r=t(e);return`children`in e&&e.children.length>0&&(r.children=e.children?.map(e=>n(e,t))||[]),r}if(Array.isArray(t)){let r=e;for(let e of t)r=n(r,e,this.traverse.bind(this));return r}else return n(e,t,this.traverse.bind(this))}create_node(e,t,n=!1,r){let i;if(i=n?{type:`column`,id:e.id,props:{visible:!0,root:``,theme_mode:`light`,scale:this.#r.fill_height?1:null},component_class_id:`column`,key:null}:t.get(e.id),!i)throw Error(`Component with ID ${e.id} not found`);r&&(i.props.i18n=r,i.props.i18n_store=we);let a=Ne(e.id,i.props,[this.#a,this.#o],this.client,this.#r.api_url,{...this.#r,register_component:this.register_component.bind(this),unregister_component:this.unregister_component.bind(this),dispatcher:this.#u.bind(this)}),o=Te[i.type]||i.type,s=a.shared_props.visible===!1?null:Y(i.type,i.component_class_id,this.#r.api_url||``);return{id:e.id,type:o,props:a,children:[],show_progress_on:null,component_class_id:i.component_class_id||i.type,component:a.shared_props.visible===!1?null:s?.component||null,runtime:s?.runtime||!1,key:i.key,rendered_in:i.rendered_in,documentation:i.documentation,original_visibility:a.shared_props.visible}}rerender(e,t){let n=e.reduce((e,t)=>
2(e.set(t.id,t),e),new Map),r=this.traverse(t,e=>this.create_node(e,n,!1,this.reactive_formatter));Be(r,this.initial_tabs);let i=this.traverse(r,e=>Re(e,this.initial_tabs)),a=$(this.root,i.id);if(!a)throw Error(`Rerender failed: root node not found in current tree`);a.children=i.children,this.#f(i)}#f(e){let t={};for(let n in e.props.shared_props){if(n===`loading_status`)continue;let r=e.props.shared_props[n];r!==void 0&&(t[n]=r)}for(let n in e.props.props){let r=e.props.props[n];r!==void 0&&(t[n]=r)}if(Object.keys(t).length>0){let n=this.#c.get(e.id);if(n)n(t);else if(e.props.shared_props.visible!==!1){let n=this.#l.get(e.id)||{};this.#l.set(e.id,{...n,...t})}}if(e.children)for(let t of e.children)this.#f(t)}async update_state(e,t,n=!0){let r=$(this.root,e),i=!1;if(n&&!r?.component){await D();let n=$(this.root,e);n&&`visible`in t&&(n.props.shared_props.visible=t.visible),Z(this.root,this.#r.api_url),await D(),r=$(this.root,e),i=!0}let a=this.#c.get(e);r&&!(`value`in t)&&(await this.#p(e,r),await this.#m(r));let o=r?.props.props.value;if(r&&Me(r,t),a)a&&(a(t),r?.type===`tabitem`&&this.#h(e,r));else{let{loading_status:n,visible:i,...a}=t;if(Object.keys(a).length>0){let t=this.#l.get(e)||{};this.#l.set(e,{...t,...a})}`value`in t&&!P(o,t.value)&&this.#u(e,`change`,null),r?.type===`tabitem`&&this.#h(e,r)}!n||i||(await D(),await this.update_visibility(r,t))}async update_visibility(e,t){for(let n of e.children){let e=this.#c.get(n.id);`value`in t||await this.#p(n.id,n),e&&e(t),await this.update_visibility(n,t)}}async#p(e,t){let n=this.#s.get(e);if(!n)return;let r=await n();r&&`value`in r&&Me(t,{value:r.value})}async#m(e){for(let t of e.children)await this.#p(t.id,t),await this.#m(t)}#h(e,t){let n=Ve(this.root,e);if(!n||n.type!==`tabs`)return;let r=n.props.props.initial_tabs;if(!r)return;let i=r.findIndex(e=>e.component_id===t.id);if(i===-1)return;let a=t.props.props.i18n,o=t.props.shared_props.label,s=t.original_visibility,c=s===void 0?t.props.shared_props.visible:s;r[i]={label:a?a(o):o,id:t.props.props.id,elem_id:t.props.shared_props.elem_id,visible:c===`hidden`?!1:c,interactive:t.props.shared_props.interactive,scale:t.props.shared_props.scale||null,component_id:t.id},n.props.props.initial_tabs=[...r];let l=this.#c.get(n.id);l&&l({initial_tabs:n.props.props.initial_tabs})}async get_state(e){let t=this.#s.get(e),n=$(this.root,e);return!t&&!n?null:t?await t():n?Promise.resolve({value:n.props.props.value}):null}async render_previously_invisible_children(e){let t=$(this.root,e);t&&(!this.#d.has(t.id)&&!ke(t,this.#d)||(Oe(t,this.#d,!0),Z(t,this.#r.api_url),await D(),await m(),await new Promise(e=>requestAnimationFrame(e)),this.#f(t)))}};function Oe(e,t,n=!1){if(t.has(e.id)&&(e.props.shared_props={...e.props.shared_props,visible:!0}),e.type===`tabs`){let n=e.props.props.initial_tabs,r=e.props.props.selected??n?.[0]?.id;e.children.forEach(e=>{e.type===`tabitem`&&(e.props.props.id===r||e.id===r)&&Oe(e,t,!1)})}else e.type===`accordion`&&e.props.props.open===!1&&!n||e.children.forEach(e=>{Oe(e,t,!1)})}function ke(e,t){for(let n of e.children)if(t.has(n.id)||ke(n,t))return!0;return!1}function Z(e,t){if(e.props.shared_props.visible&&!e.component){let n=Y(e.type,e.component_class_id,t);e.component=n.component,e.runtime=n.runtime}e.children.forEach(e=>Z(e,t))}function Ae(e,t,n){return t?t.reduce((t,r)=>(t[r]=async(...t)=>(t.length===1&&(t=t[0]),await n.component_server(e,r,t)),t),{}):{}}function je(e){let t={},n={};for(let r in e)if(r===`id`||r===`autoscroll`)n[r]=e[r];else if(j.includes(r)){let n=r;t[n]=e[r]}else n[r]=e[r];return{shared_props:t,props:n}}function Me(e,t){let n=je(t);for(let t in n.shared_props)e.props.shared_props[t]=n.shared_props[t];for(let t in n.props)e.props.props[t]=n.props[t]}function Ne(e,t,n,r,i,a={}){let{shared_props:o,props:s}=je(t);o.server=Ae(e,t.server_fns,r);for(let e in a)if(j.includes(e)){let t=e;o[t]=a[e]}else s[e]=a[e];return o.client=r,o.id=e,o.interactive=be(e,o.interactive,s.value,n),o.load_component=(e,t,n)=>Y(e,n||``,i,t),o.visible=o.visible===void 0?!0:o.visible,o.loading_status={},{shared_props:o,props:s}}function Pe(e,t){if(e.props.shared_props.visible&&!e.component){let n=Y(e.type,e.component_class_id,t),r={...e,component:n.component,children:[]};return e.children&&(r.children=e.children.map(e=>Pe(e,t))),r}else return e}
2function Q(e,t){t.delete(e.id),e.children&&e.children.forEach(e=>Q(e,t))}function Fe(e,t){return e.props.shared_props.visible!==!0&&Q(e,t),e}function Ie(e,t){return e.props.shared_props.visible===!0&&(t.add(e.id),e.props.shared_props.visible=!1),e.children.forEach(e=>{Ie(e,t)}),e}function Le(e,t,n){return e.type===`accordion`&&e.props.props.open===!1&&(Q(e,t),e.children&&e.children.forEach(e=>{Ie(e,n)})),e.type===`tabs`&&e.children.forEach(r=>{r.type===`tabitem`&&r.props.props.id!==(e.props.props.selected??e.props.props.initial_tabs[0].id)&&(Q(r,t),Ie(r,n))}),e}function Re(e,t){if(e.type===`tabs`&&e.id in t){let n=t[e.id].sort((e,t)=>e.order-t.order);e.props.props.initial_tabs=n}else e.type===`tabitem`&&(e.props.props.component_id=e.id);return e}function ze(e,t,n,r){if(n!==null&&e.type===`tabitem`){n in t||(t[n]=[]),e.props.props.id??(e.props.props.id=e.id);let i=e.props.props.i18n,a=e.props.shared_props.label;t[n].push({label:i?i(a):a,id:e.props.props.id,elem_id:e.props.shared_props.elem_id,visible:e.props.shared_props.visible,interactive:e.props.shared_props.interactive,scale:e.props.shared_props.scale||null,component_id:e.id}),e.props.props.order=r}e.children&&e.children.forEach((n,r)=>{ze(n,t,e.type===`tabs`?e.id:null,e.type===`tabs`?r:null)})}function Be(e,t){function n(e){`children`in e&&e.children.length>0&&e.children?.forEach(n=>ze(n,t,e.type===`tabs`?e.id:null,null))}return n(e)}function $(e,t){if(e.id===t)return e;if(e.children)for(let n of e.children){let e=$(n,t);if(e)return e}return null}function Ve(e,t){if(e.children)for(let n of e.children){if(n.id===t)return e;let r=Ve(n,t);if(r)return r}return null}var He={ar:`Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ`,ca:`S'està carregant`,ckb:`بارکردÙ`,de:`Laden`,en:`Loading`,es:`Cargando`,et:`Laen`,eu:`Kargatzen`,fa:`در ØØ§Ù بارگذارÛ`,fi:`Ladataan`,fr:`Chargement`,he:`×××¢×`,hi:`लà¥à¤¡ हॠरहा हà¥`,ja:`èªã¿è¾¼ã¿ä¸`,ko:`ë¡ë© ì¤`,lt:`Kraunama`,nb:`Laster`,nl:`Laden`,pl:`Åadowanie`,"pt-BR":`Carregando`,pt:`A carregar`,ro:`Se încarcÄ`,ru:`ÐагÑÑзка`,sv:`Laddar`,ta:`à®à®±à¯à®±à¯à®à®¿à®±à®¤à¯`,th:`à¸à¸³à¸¥à¸±à¸à¹à¸«à¸¥à¸`,tr:`Yükleniyor`,uk:`ÐаванÑаженнÑ`,ur:`ÙÙÚ ÛÙ Ø±ÛØ§ ÛÛ`,uz:`Yuklanmoqda`,"zh-CN":`å è½½ä¸`,"zh-TW":`è¼å
¥ä¸`},Ue=`English`,We={annotated_image:`Annotated Image`},Ge={allow_recording_access:`Please allow access to the microphone for recording.`,audio:`Audio`,drop_to_upload:`Drop an audio file here to upload`,record_from_microphone:`Record from microphone`,stop_recording:`Stop recording`,no_device_support:`Media devices could not be accessed. Check that you are running on a secure origin (https) or localhost (or you have passed a valid SSL certificate to ssl_verify), and you have allowed browser access to your device.`,stop:`Stop`,resume:`Resume`,record:`Record`,no_microphone:`No microphone found`,pause:`Pause`,play:`Play`,waiting:`Waiting`},Ke={connection_can_break:`On mobile, the connection can break if this tab is unfocused or the device sleeps, losing your position in queue.`,long_requests_queue:`There is a long queue of requests pending. Duplicate this Space to skip.`,lost_connection:`Lost connection due to leaving page. Rejoining queue...`,waiting_for_inputs:`Waiting for file(s) to finish uploading, please retry.`},qe={edit:`Edit`,retry:`Retry`,undo:`Undo`,submit:`Submit`,cancel:`Cancel`,like:`Like`,dislike:`Dislike`,clear:`Clear`,copy_message:`Copy message`,copied_message:`Copied message`},Je={new_chat:`New chat`,message_placeholder:`Type a message...`,additional_inputs:`Additional inputs`,chatbot:`Chatbot`,conversation:`Conversation`},Ye={checkbox:`Checkbox`,checkbox_group:`Checkbox Group`},Xe={code:`Code`},Ze={color_picker:`Color Picker`},Qe={built_with:`built with`,built_with_gradio:`Built with Gradio`,clear:`Clear`,download:`Download`,download_all:`Download All`,edit:`Edit`,empty:`Empty`,error:`Error`,hosted_on:`Hosted on`,loading:`Loading`,logo:`logo`,or:`or`,remove:`Remove`,settings:`Settings`,share:`Share`,submit:`Submit`,undo:`Undo`,no_devices:`No devices found`,language:`Language`,display_theme:`Display Theme`,pwa:`Progressive Web App`,record:`Record`,stop_recording:`Stop Recording`,screen_studio:`Screen Studio`,share_gradio_tab:`[Sharing] Gradio Tab`,run:`Run`},$e={incorrect_format:`Incorrect format, only CSV and TSV files are supported`,new_column:`Add column`,new_row:`New row`,add_row_above:`Add row above`,add_row_below:`Add row below`,delete_row:`Delete row`,delete_column:`Delete column`,add_column_left:`Add column to the left`,add_column_right:`Add column to the right`,sort_column:`Sort column`,sort_ascending:`Sort ascending`,sort_descending:`Sort descending`,drop_to_upload:`Drop CSV or TSV files here to import data into dataframe`,clear_sort:`Clear sort`,filter:`Filter`,clear_filter:`Clear filters`},et={dropdown:`Dropdown`},tt={build_error:`there is a build error`,config_error:`there is a config error`,contact_page_author:`Please contact the author of the page to let them know.`,no_app_file:`there is no app file`,runtime_error:`there is a runtime error`,space_not_working:`"Space isn't working because" {0}`,space_paused:`the space is paused`,use_via_api:`Use via API`,use_via_api_or_mcp:`Use via API or MCP`},nt={uploading:`Uploading...`},rt={highlighted_text:`Highlighted Text`},it={allow_webcam_access:`Please allow access to the webcam for recording.`,brush_color:`Brush color`,brush_radius:`Brush radius`,image:`Image`,remove_image:`Remove Image`,select_brush_color:`Select brush color`,start_drawing:`Start drawing`,use_brush:`Use brush`,drop_to_upload:`Drop an image file here to upload`},at={label:`Label`},ot={enable_cookies:`If you are visiting a HuggingFace Space in Incognito mode, you must enable third party cookies.`,incorrect_credentials:`Incorrect Credentials`,username:`username`,password:`password`,login:`Login`},st={number:`Number`},ct={plot:`Plot`},lt={radio:`Radio`},ut={slider:`Slider`},dt={click_to_upload:`Click to Upload`,drop_audio:`Drop Audio Here`,drop_csv:`Drop CSV Here`,drop_file:`Drop File Here`,drop_image:`Drop Image Here`,drop_video:`Drop Video Here`,drop_gallery:`Drop Media Here`,paste_clipboard:`Paste from Clipboard`},ft={drop_to_upload:`Drop a video file here to upload`},pt={_name:Ue,"3D_model":{"3d_model":`3D Model`,drop_to_upload:`Drop a 3D model (.obj, .glb, .stl, .gltf, .splat, or .ply) file here to upload`},annotated_image:We,audio:Ge,blocks:Ke,chatbot:qe,chat_interface:Je,checkbox:Ye,code:Xe,color_picker:Ze,common:Qe,dataframe:$e,dropdown:et,errors:tt,file:nt,highlighted_text:rt,image:it,label:at,login:ot,number:st,plot:ct,radio:lt,slider:ut,upload_text:dt,video:ft},mt={ar:`Ø§ÙØ¹Ø±Ø¨ÙØ©`,ca:`Català `,ckb:`Ú©ÙØ±Ø¯Û`,de:`Deutsch`,en:`English`,es:`Español`,et:`eesti keel`,eu:`Euskara`,fa:`ÙØ§Ø±Ø³Û`,fi:`Suomi`,fr:`Français`,he:`×¢×ר×ת`,hi:`हिà¤à¤¦à¥`,ja:`æ¥æ¬èª`,ko:`íêµì´`,lt:`Lietuvių`,nb:`Norsk bokmÃ¥l`,nl:`Nederlands`,pl:`Polski`,"pt-BR":`Português do Brasil`,pt:`Português`,ro:`RomânÄ`,ru:`Ð ÑÑÑкий`,sv:`Svenska`,ta:`தà
2®®à®¿à®´à¯`,th:`ภาษาà¹à¸à¸¢`,tr:`Türkçe`,uk:`УкÑаÑнÑÑка`,ur:`اردÙ`,uz:`O'zbek`,"zh-CN":`ç®ä½ä¸æ`,"zh-TW":`ç¹é«ä¸æ`},ht=Object.assign({
2"./lang/ar.json":()=>g(()=>import(`./ar-GRtlg-rU.js`),[],import.meta.url),
2"./lang/ca.json":()=>g(()=>import(`./ca-qwwHSABo.js`),[],import.meta.url),
2"./lang/ckb.json":()=>g(()=>import(`./ckb-Ba9LpNR1.js`),[],import.meta.url),
2"./lang/de.json":()=>g(()=>import(`./de-WxoFyOBn.js`),[],import.meta.url),
2"./lang/en.json":()=>g(()=>import(`./en-dJd9H16B.js`),[],import.meta.url),
2"./lang/es.json":()=>g(()=>import(`./es-DVIyOL3T.js`),[],import.meta.url),
2"./lang/et.json":()=>g(()=>import(`./et-BmIAZ8qp.js`),[],import.meta.url),
2"./lang/eu.json":()=>g(()=>import(`./eu-XbZ2k4Mn.js`),[],import.meta.url),
2"./lang/fa.json":()=>g(()=>import(`./fa-BLinz7V9.js`),[],import.meta.url),
2"./lang/fi.json":()=>g(()=>import(`./fi-Djxx-JZo.js`),[],import.meta.url),
2"./lang/fr.json":()=>g(()=>import(`./fr-XooMM8yC.js`),[],import.meta.url),
2"./lang/he.json":()=>g(()=>import(`./he-DabUTXed.js`),[],import.meta.url),
2"./lang/hi.json":()=>g(()=>import(`./hi-Dn7yyR-f.js`),[],import.meta.url),
2"./lang/id.json":()=>g(()=>import(`./id-BcMKWFAW.js`),[],import.meta.url),
2"./lang/ja.json":()=>g(()=>import(`./ja-DL9AXTgr.js`),[],import.meta.url),
2"./lang/ko.json":()=>g(()=>import(`./ko-DUUh4EcC.js`),[],import.meta.url),
2"./lang/lt.json":()=>g(()=>import(`./lt-B_PULRJe.js`),[],import.meta.url),
2"./lang/nb.json":()=>g(()=>import(`./nb-DrTJDaav.js`),[],import.meta.url),
2"./lang/nl.json":()=>g(()=>import(`./nl-rV-EppVp.js`),[],import.meta.url),
2"./lang/pl.json":()=>g(()=>import(`./pl--CEk4en_.js`),[],import.meta.url),
2"./lang/pt-BR.json":()=>g(()=>import(`./pt-BR-3kb7iahY.js`),[],import.meta.url),
2"./lang/pt.json":()=>g(()=>import(`./pt-PvFatYFp.js`),[],import.meta.url),
2"./lang/ro.json":()=>g(()=>import(`./ro-Cm85DJU5.js`),[],import.meta.url),
2"./lang/ru.json":()=>g(()=>import(`./ru-Cn9wLuUJ.js`),[],import.meta.url),
2"./lang/sv.json":()=>g(()=>import(`./sv-D965Scw3.js`),[],import.meta.url),
2"./lang/ta.json":()=>g(()=>import(`./ta-BfAsS7an.js`),[],import.meta.url),
2"./lang/th.json":()=>g(()=>import(`./th-DcylpqFZ.js`),[],import.meta.url),
2"./lang/tr.json":()=>g(()=>import(`./tr-Br2NDAtq.js`),[],import.meta.url),
2"./lang/uk.json":()=>g(()=>import(`./uk-C_hG5on_.js`),[],import.meta.url),
2"./lang/ur.json":()=>g(()=>import(`./ur-BYavn8yA.js`),[],import.meta.url),
2"./lang/uz.json":()=>g(()=>import(`./uz-DHCQDivm.js`),[],import.meta.url),
2"./lang/zh-CN.json":()=>g(()=>import(`./zh-CN-CkzKEtHR.js`),[],import.meta.url),
2"./lang/zh-TW.json":()=>g(()=>import(`./zh-TW-vib75kEM.js`),[],import.meta.url)
2});function gt(e){return e&&typeof e==`object`&&e.__type__===`translation_metadata`&&typeof e.key==`string`}function _t(){return{...Object.fromEntries(Object.entries(ht).map(([e,t])=>[e.split(`/`).pop().split(`.`)[0],{type:`lazy`,data:t}])),en:{type:`static`,data:pt}}}var vt=_t(),yt=Object.keys(vt),bt=Object.entries(vt).map(([e])=>[mt[e]||e,e]),xt=!1,St;function Ct(e){let t=e.split(`,`).map(e=>e.includes(`;`)?e.split(`;`).slice(0,2):[e,1]);t.sort((e,t)=>parseFloat(t[1])-parseFloat(e[1]));for(let[e,n]of t)if(yt.includes(e))return e;return null}async function wt(e,t){if(xt&&!(xt&&e!==St))return;let n=e??St??{};e!==void 0&&(St=e),Dt({processed_langs:vt,custom_translations:n});let r=null,i=I();if(r=t?Ct(t):i&&yt.includes(i)?i:null,!r){let e=i?.split(`-`)[0];r=e&&yt.includes(e)?e:`en`}await F({fallbackLocale:`en`,initialLocale:r}),xt=!0}function Tt(e){L.set(e)}function Et(e,t,n=`en`){return e&&t.includes(e)?e:n}function Dt(e){if(e){try{for(let t in e.custom_translations)z(t,e.custom_translations[t]);for(let t in e.processed_langs)t===`en`&&e.processed_langs[t].type===`static`?z(t,pt):e.processed_langs[t].type===`lazy`&&R(t,e.processed_langs[t].data)}catch(e){console.error(`Error loading translations:`,e)}for(let e in He)z(e,{common:{loading:He[e]}})}}export{De as AppTree,ut as C,Se as D,we as E,B as Embed,pe as O,lt as S,ft as T,it as _,Je as a,st as b,Xe as c,Tt as changeLocale,$e as d,et as f,rt as g,Et as get_initial_locale,nt as h,Ke as i,N as i18n_marker,gt as is_translation_metadata,Ze as l,bt as language_choices,Dt as load_translations,tt as m,H as mount_css,We as n,qe as o,pt as p,U as prefix_css,_t as process_langs,Ge as r,A as resolve_current_origin_url,Ye as s,wt as setupi18n,Ue as t,Qe as u,at as v,dt as w,ct as x,ot as y};
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.