import{M as E}from"./Index.svelte_svelte_type_style_lang-DF8PvcSQ.js";import{S as I}from"./Index-IwnOmiU7.js";import{B as A}from"./Button-B93iS7QI.js";import{default as p}from"./Example-BazYAvvV.js";import{M as te}from"./Example.svelte_svelte_type_style_lang-BK-adyHR.js";import"./Blocks-TG5xkcR2.js";import"./index-CFkTeYR6.js";import"./svelte/svelte.js";import"./prism-python-BaFWTAhG.js";const{SvelteComponent:D,assign:F,attr:G,create_component:d,destroy_component:c,detach:B,element:H,flush:u,get_spread_object:J,get_spread_update:K,init:L,insert:S,mount_component:k,safe_not_equal:N,space:O,toggle_class:C,transition_in:b,transition_out:v}=window.__gradio__svelte__internal;function P(s){let e,a,l,r,_;const m=[{autoscroll:s[8].autoscroll},{i18n:s[8].i18n},s[4],{variant:"center"}];let f={};for(let t=0;t<m.length;t+=1)f=F(f,m[t]);return e=new I({props:f}),e.$on("clear_status",s[13]),r=new E({props:{min_height:s[4]&&s[4].status!=="complete",value:s[3],elem_classes:s[1],visible:s[2],rtl:s[5],latex_delimiters:s[9],sanitize_html:s[6],line_breaks:s[7],header_links:s[10],height:s[11]}}),r.$on("change",s[14]),{c(){d(e.$$.fragment),a=O(),l=H("div"),d(r.$$.fragment),G(l,"class","svelte-1ed2p3z"),C(l,"pending",s[4]?.status==="pending")},m(t,n){k(e,t,n),S(t,a,n),S(t,l,n),k(r,l,null),_=!0},p(t,n){const o=n&272?K(m,[n&256&&{autoscroll:t[8].autoscroll},n&256&&{i18n:t[8].i18n},n&16&&J(t[4]),m[3]]):{};e.$set(o);const h={};n&16&&(h.min_height=t[4]&&t[4].status!=="complete"),n&8&&(h.value=t[3]),n&2&&(h.elem_classes=t[1]),n&4&&(h.visible=t[2]),n&32&&(h.rtl=t[5]),n&512&&(h.latex_delimiters=t[9]),n&64&&(h.sanitize_html=t[6]),n&128&&(h.line_breaks=t[7]),n&1024&&(h.header_links=t[10]),n&2048&&(h.height=t[11]),r.$set(h),(!_||n&16)&&C(l,"pending",t[4]?.status==="pending")},i(t){_||(b(e.$$.fragment,t),b(r.$$.fragment,t),_=!0)},o(t){v(e.$$.fragment,t),v(r.$$.fragment,t),_=!1},d(t){t&&(B(a),B(l)),c(e,t),c(r)}}}function Q(s){let e,a;return e=new A({props:{visible:s[2],elem_id:s[0],elem_classes:s[1],container:!1,allow_overflow:!0,$$slots:{default:[P]},$$scope:{ctx:s}}}),{c(){d(e.$$.fragment)},m(l,r){k(e,l,r),a=!0},p(l,[r]){const _={};r&4&&(_.visible=l[2]),r&1&&(_.elem_id=l[0]),r&2&&(_.elem_classes=l[1]),r&36862&&(_.$$scope={dirty:r,ctx:l}),e.$set(_)},i(l){a||(b(e.$$.fragment,l),a=!0)},o(l){v(e.$$.fragment,l),a=!1},d(l){c(e,l)}}}function R(s,e,a){let{label:l}=e,{elem_id:r=""}=e,{elem_classes:_=[]}=e,{visible:m=!0}=e,{value:f=""}=e,{loading_status:t}=e,{rtl:n=!1}=e,{sanitize_html:o=!0}=e,{line_breaks:h=!1}=e,{gradio:g}=e,{latex_delimiters:w}=e,{header_links:z=!1}=e,{height:M=void 0}=e;const j=()=>g.dispatch("clear_status",t),q=()=>g.dispatch("change");return s.$$set=i=>{"label"in i&&a(12,l=i.label),"elem_id"in i&&a(0,r=i.elem_id),"elem_classes"in i&&a(1,_=i.elem_classes),"visible"in i&&a(2,m=i.visible),"value"in i&&a(3,f=i.value),"loading_status"in i&&a(4,t=i.loading_status),"rtl"in i&&a(5,n=i.rtl),"sanitize_html"in i&&a(6,o=i.sanitize_html),"line_breaks"in i&&a(7,h=i.line_breaks),"gradio"in i&&a(8,g=i.gradio),"latex_delimiters"in i&&a(9,w=i.latex_delimiters),"header_links"in i&&a(10,z=i.header_links),"height"in i&&a(11,M=i.height)},s.$$.update=()=>{s.$$.dirty&4352&&g.dispatch("change")},[r,_,m,f,t,n,o,h,g,w,z,M,l,j,q]}class x extends D{constructor(e){super(),L(this,e,R,Q,N,{label:12,elem_id:0,elem_classes:1,visible:2,value:3,loading_status:4,rtl:5,sanitize_html:6,line_breaks:7,gradio:8,latex_delimiters:9,header_links:10,height:11})}get label(){return this.$$.ctx[12]}set label(e){this.$$set({label:e}),u()}get elem_id(){return this.$$.ctx[0]}set elem_id(e){this.$$set({elem_id:e}),u()}get elem_classes(){return this.$$.ctx[1]}set elem_classes(e){this.$$set({elem_classes:e}),u()}get visible(){return this.$$.ctx[2]}set visible(e){this.$$set({visible:e}),u()}get value(){return this.$$.ctx[3]}set value(e){this.$$set({value:e}),u()}get loading_status(){return this.$$.ctx[4]}set loading_status(e){this.$$set({loading_status:e}),u()}get rtl(){return this.$$.ctx[5]}set rtl(e){this.$$set({rtl:e}),u()}get sanitize_html(){return this.$$.ctx[6]}set sanitize_html(e){this.$$set({sanitize_html:e}),u()}get line_breaks(){return this.$$.ctx[7]}set line_breaks(e){this.$$set({line_breaks:e}),u()}get gradio(){return this.$$.ctx[8]}set gradio(e){this.$$set({gradio:e}),u()}get latex_delimiters(){return this.$$.ctx[9]}set latex_delimiters(e){this.$$set({latex_delimiters:e}),u()}get header_links(){return this.$$.ctx[10]}set header_links(e){this.$$set({header_links:e}),u()}get height(){return this.$$.ctx[11]}set height(e){this.$$set({height:e}),u()}}export{p as BaseExample,E as BaseMarkdown,te as MarkdownCode,x as default};
//# sourceMappingURL=Index-BIKdNh36.js.map
