PageSourceSearch

https://vonagam-nemo-forced-aligner.hf.space/assets/index-DffEhDJy.js

js vonagam-nemo-forced-aligner.hf.space collected 2026-10-03 10:25:03 UTC 20,737 bytes, 2 lines download raw bytes

1import{U as De}from"./Upload-B4kDUXWy.js";import{M as Le}from"./ModifyUpload-CtI_rQSz.js";import{S as he}from"./Index-B0pzGNvZ.js";import{B as Te}from"./BlockLabel-BIX1_TXx.js";import{V as Ae}from"./Video-fsmLZWjA.js";import{S as Fe}from"./SelectSource-BdIhvyVR.js";import"./Image-D0PROUKW.js";import"./index-BBXRYz6K.js";/* empty css                                                   */import{W as Ge}from"./ImageUploader-C2wZyYe1.js";/* empty css                                              */import{p as ue,a as He}from"./Video-CO8eUoyD.js";import{l as sl}from"./Video-CO8eUoyD.js";import{P as Ke,V as Qe}from"./VideoPreview-BitAjX2P.js";import{default as il}from"./Example-BJZaV3aw.js";import{B as de}from"./Button-B9ZzokJD.js";import{U as Re}from"./UploadText-DJIW-tPW.js";/* empty css                                                   */import"./Download-DVtk-Jv3.js";import"./Undo-CpmTQw3B.js";import"./DownloadLink-8VIFhju3.js";import"./file-url-MvGfSkSF.js";import"./Upload-Cp8Go_XF.js";import"./svelte/svelte.js";import"./Image-Bsh8Umrh.js";import"./utils-Gtzs_Zla.js";import"./DropdownArrow-GQNEmE1v.js";import"./Empty-DxPQy4lp.js";import"./ShareButton-DY61e3s8.js";import"./Blocks-CbMTi72h.js";import"./Trim-UKwaW4UI.js";const{SvelteComponent:Xe,add_flush_callback:me,append:oe,attr:G,bind:be,binding_callbacks:ge,bubble:J,check_outros:Z,create_component:j,create_slot:Ye,destroy_component:D,detach:N,element:X,empty:we,flush:p,get_all_dirty_from_scope:Ze,get_slot_changes:$e,group_outros:$,init:ye,insert:U,mount_component:L,noop:ie,safe_not_equal:pe,set_data:_e,space:Y,text:fe,transition_in:k,transition_out:v,update_slot_base:xe}=window.__gradio__svelte__internal,{createEventDispatcher:et}=window.__gradio__svelte__internal;function tt(l){let e,n,t,s,o,r,i;e=new Le({props:{i18n:l[11],download:l[5]?l[0].url:null}}),e.$on("clear",l[19]);const a=[st,nt],c=[];function f(h,b){return t==null&&(t=!!He()),t?0:h[0].size?1:-1}return~(s=f(l))&&(o=c[s]=a[s](l)),{c(){j(e.$$.fragment),n=Y(),o&&o.c(),r=we()},m(h,b){L(e,h,b),U(h,n,b),~s&&c[s].m(h,b),U(h,r,b),i=!0},p(h,b){const S={};b[0]&2048&&(S.i18n=h[11]),b[0]&33&&(S.download=h[5]?h[0].url:null),e.$set(S);let z=s;s=f(h),s===z?~s&&c[s].p(h,b):(o&&($(),v(c[z],1,1,()=>{c[z]=null}),Z()),~s?(o=c[s],o?o.p(h,b):(o=c[s]=a[s](h),o.c()),k(o,1),o.m(r.parentNode,r)):o=null)},i(h){i||(k(e.$$.fragment,h),k(o),i=!0)},o(h){v(e.$$.fragment,h),v(o),i=!1},d(h){h&&(N(n),N(r)),D(e,h),~s&&c[s].d(h)}}}function lt(l){let e,n,t,s;const o=[it,ot],r=[];function i(a,c){return a[1]==="upload"?0:a[1]==="webcam"?1:-1}return~(n=i(l))&&(t=r[n]=o[n](l)),{c(){e=X("div"),t&&t.c(),G(e,"class","upload-container svelte-1cs6pot")},m(a,c){U(a,e,c),~n&&r[n].m(e,null),s=!0},p(a,c){let f=n;n=i(a),n===f?~n&&r[n].p(a,c):(t&&($(),v(r[f],1,1,()=>{r[f]=null}),Z()),~n?(t=r[n],t?t.p(a,c):(t=r[n]=o[n](a),t.c()),k(t,1),t.m(e,null)):t=null)},i(a){s||(k(t),s=!0)},o(a){v(t),s=!1},d(a){a&&N(e),~n&&r[n].d()}}}function nt(l){let e,n=(l[0].orig_name||l[0].url)+"",t,s,o,r=ue(l[0].size)+"",i;return{c(){e=X("div"),t=fe(n),s=Y(),o=X("div"),i=fe(r),G(e,"class","file-name svelte-1cs6pot"),G(o,"class","file-size svelte-1cs6pot")},m(a,c){U(a,e,c),oe(e,t),U(a,s,c),U(a,o,c),oe(o,i)},p(a,c){c[0]&1&&n!==(n=(a[0].orig_name||a[0].url)+"")&&_e(t,n),c[0]&1&&r!==(r=ue(a[0].size)+"")&&_e(i,r)},i:ie,o:ie,d(a){a&&(N(e),N(s),N(o))}}}function st(l){let e=l[0]?.url,n,t,s=ce(l);return{c(){s.c(),n=we()},m(o,r){s.m(o,r),U(o,n,r),t=!0},p(o,r){r[0]&1&&pe(e,e=o[0]?.url)?($(),v(s,1,1,ie),Z(),s=ce(o),s.c(),k(s,1),s.m(n.parentNode,n)):s.p(o,r)},i(o){t||(k(s),t=!0)},o(o){v(s),t=!1},d(o){o&&N(n),s.d(o)}}}function ce(l){let e,n;return e=new Ke({props:{upload:l[14],root:l[10],interactive:!0,autoplay:l[9],src:l[0].url,subtitle:l[2]?.url,mirror:l[7]&&l[1]==="webcam",label:l[4],handle_change:l[20],handle_reset_value:l[12]}}),e.$on("play",l[28]),e.$on("pause",l[29]),e.$on("stop",l[30]),e.$on("end",l[31]),{c(){j(e.$$.fragment)},m(t,s){L(e,t,s),n=!0},p(t,s){const o={};s[0]&16384&&(o.upload=t[14]),s[0]&1024&&(o.root=t[10]),s[0]&512&&(o.autoplay=t[9]),s[0]&1&&(o.src=t[0].url),s[0]&4&&(o.subtitle=t[2]?.url),s[0]&130&&(o.mirror=t[7]&&t[1]==="webcam"),s[0]&16&&(o.label=t[4]),s[0]&4096&&(o.handle_reset_value=t[12]),e.$set(o)},i(t){n||(k(e.$$.fragment,t),n=!0)},o(t){v(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function ot(l){let e,n;return e=new Ge({props:{root:l[10],mirror_webcam:l[7],include_audio:l[8],mode:"video",i18n:l[11],upload:l[14]}}),e.$on("error",l[25]),e.$on("capture",l[21]),e.$on("start_recording",l[26]),e.$on("stop_recording",l[27]),{c(){j(e.$$.fragment)},m(t,s){L(e,t,s),n=!0},p(t,s){const o={};
vendor: 16,131 bytes, lines 1-2
1s[0]&1024&&(o.root=t[10]),s[0]&128&&(o.mirror_webcam=t[7]),s[0]&256&&(o.include_audio=t[8]),s[0]&2048&&(o.i18n=t[11]),s[0]&16384&&(o.upload=t[14]),e.$set(o)},i(t){n||(k(e.$$.fragment,t),n=!0)},o(t){v(e.$$.fragment,t),n=!1},d(t){D(e,t)}}}function it(l){let e,n,t;function s(r){l[23](r)}let o={filetype:"video/x-m4v,video/*",max_file_size:l[13],root:l[10],upload:l[14],stream_handler:l[15],$$slots:{default:[at]},$$scope:{ctx:l}};return l[16]!==void 0&&(o.dragging=l[16]),e=new De({props:o}),ge.push(()=>be(e,"dragging",s)),e.$on("load",l[18]),e.$on("error",l[24]),{c(){j(e.$$.fragment)},m(r,i){L(e,r,i),t=!0},p(r,i){const a={};i[0]&8192&&(a.max_file_size=r[13]),i[0]&1024&&(a.root=r[10]),i[0]&16384&&(a.upload=r[14]),i[0]&32768&&(a.stream_handler=r[15]),i[1]&4&&(a.$$scope={dirty:i,ctx:r}),!n&&i[0]&65536&&(n=!0,a.dragging=r[16],me(()=>n=!1)),e.$set(a)},i(r){t||(k(e.$$.fragment,r),t=!0)},o(r){v(e.$$.fragment,r),t=!1},d(r){D(e,r)}}}function at(l){let e;const n=l[22].default,t=Ye(n,l,l[33],null);return{c(){t&&t.c()},m(s,o){t&&t.m(s,o),e=!0},p(s,o){t&&t.p&&(!e||o[1]&4)&&xe(t,n,s,s[33],e?$e(n,s[33],o,null):Ze(s[33]),null)},i(s){e||(k(t,s),e=!0)},o(s){v(t,s),e=!1},d(s){t&&t.d(s)}}}function rt(l){let e,n,t,s,o,r,i,a,c;e=new Te({props:{show_label:l[6],Icon:Ae,label:l[4]||"Video"}});const f=[lt,tt],h=[];function b(d,w){return d[0]===null||d[0].url===void 0?0:1}s=b(l),o=h[s]=f[s](l);function S(d){l[32](d)}let z={sources:l[3],handle_clear:l[19]};return l[1]!==void 0&&(z.active_source=l[1]),i=new Fe({props:z}),ge.push(()=>be(i,"active_source",S)),{c(){j(e.$$.fragment),n=Y(),t=X("div"),o.c(),r=Y(),j(i.$$.fragment),G(t,"data-testid","video"),G(t,"class","video-container svelte-1cs6pot")},m(d,w){L(e,d,w),U(d,n,w),U(d,t,w),h[s].m(t,null),oe(t,r),L(i,t,null),c=!0},p(d,w){const V={};w[0]&64&&(V.show_label=d[6]),w[0]&16&&(V.label=d[4]||"Video"),e.$set(V);let B=s;s=b(d),s===B?h[s].p(d,w):($(),v(h[B],1,1,()=>{h[B]=null}),Z(),o=h[s],o?o.p(d,w):(o=h[s]=f[s](d),o.c()),k(o,1),o.m(t,r));const I={};w[0]&8&&(I.sources=d[3]),!a&&w[0]&2&&(a=!0,I.active_source=d[1],me(()=>a=!1)),i.$set(I)},i(d){c||(k(e.$$.fragment,d),k(o),k(i.$$.fragment,d),c=!0)},o(d){v(e.$$.fragment,d),v(o),v(i.$$.fragment,d),c=!1},d(d){d&&(N(n),N(t)),D(e,d),h[s].d(),D(i)}}}function ut(l,e,n){let{$$slots:t={},$$scope:s}=e,{value:o=null}=e,{subtitle:r=null}=e,{sources:i=["webcam","upload"]}=e,{label:a=void 0}=e,{show_download_button:c=!1}=e,{show_label:f=!0}=e,{mirror_webcam:h=!1}=e,{include_audio:b}=e,{autoplay:S}=e,{root:z}=e,{i18n:d}=e,{active_source:w="webcam"}=e,{handle_reset_value:V=()=>{}}=e,{max_file_size:B=null}=e,{upload:I}=e,{stream_handler:T}=e;const m=et();function H({detail:u}){n(0,o=u),m("change",u),m("upload",u)}function K(){n(0,o=null),m("change",null),m("clear")}function Q(u){m("change",u)}function A({detail:u}){m("change",u)}let C=!1;function F(u){C=u,n(16,C)}const E=({detail:u})=>m("error",u);function y(u){J.call(this,l,u)}function R(u){J.call(this,l,u)}function x(u){J.call(this,l,u)}function ee(u){J.call(this,l,u)}function te(u){J.call(this,l,u)}function le(u){J.call(this,l,u)}function ne(u){J.call(this,l,u)}function se(u){w=u,n(1,w)}return l.$$set=u=>{"value"in u&&n(0,o=u.value),"subtitle"in u&&n(2,r=u.subtitle),"sources"in u&&n(3,i=u.sources),"label"in u&&n(4,a=u.label),"show_download_button"in u&&n(5,c=u.show_download_button),"show_label"in u&&n(6,f=u.show_label),"mirror_webcam"in u&&n(7,h=u.mirror_webcam),"include_audio"in u&&n(8,b=u.include_audio),"autoplay"in u&&n(9,S=u.autoplay),"root"in u&&n(10,z=u.root),"i18n"in u&&n(11,d=u.i18n),"active_source"in u&&n(1,w=u.active_source),"handle_reset_value"in u&&n(12,V=u.handle_reset_value),"max_file_size"in u&&n(13,B=u.max_file_size),"upload"in u&&n(14,I=u.upload),"stream_handler"in u&&n(15,T=u.stream_handler),"$$scope"in u&&n(33,s=u.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&65536&&m("drag",C)},[o,w,r,i,a,c,f,h,b,S,z,d,V,B,I,T,C,m,H,K,Q,A,t,F,E,y,R,x,ee,te,le,ne,se,s]}class _t extends Xe{constructor(e){super(),ye(this,e,ut,rt,pe,{value:0,subtitle:2,sources:3,label:4,show_download_button:5,show_label:6,mirror_webcam:7,include_audio:8,autoplay:9,root:10,i18n:11,active_source:1,handle_reset_value:12,max_file_size:13,upload:14,stream_handler:15},null,[-1,-1])}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),p()}get subtitle(){return this.$$.ctx[2]}set subtitle(e){this.$$set({subtitle:e}),p()}get sources(){return this.$$.ctx[3]}set sources(e){this.$$set({sources:e}),p()}get label(){return this.$$.ctx[4]}set label(e){this.$$set({label:e}),p()}get show_download_button(){return this.$$.ctx[5]}set show_download_button(e){this.$$set({show_download_button:e}),p()}get show_label(){return this.$$.ctx[6]}set show_label(e){this.$$set({show_label:e}),p()}get mirror_webcam(){return this.$$.ctx[7]}set mirror_webcam(e){this.$$set({mirror_webcam:e}),p()}get include_audio(){return this.$$.ctx[8]}set include_audio(e){this.$$set({include_audio:e}),p()}get autoplay(){return this.$$.ctx[9]}set autoplay(e){this.$$set({autoplay:e}),p()}get root(){return this.$$.ctx[10]}set root(e){this.$$set({root:e}),p()}get i18n(){return this.$$.ctx[11]}set i18n(e){this.$$set({i18n:e}),p()}get active_source(){return this.$$.ctx[1]}set active_source(e){this.$$set({active_source:e}),p()}get handle_reset_value(){return this.$$.ctx[12]}set handle_reset_value(e){this.$$set({handle_reset_value:e}),p()}get max_file_size(){return this.$$.ctx[13]}set max_file_size(e){this.$$set({max_file_size:e}),p()}get upload(){return this.$$.ctx[14]}set upload(e){this.$$set({upload:e}),p()}get stream_handler(){return this.$$.ctx[15]}set stream_handler(e){this.$$set({stream_handler:e}),p()}}const ft=_t,{SvelteComponent:ct,assign:ke,check_outros:ht,create_component:M,destroy_component:O,detach:ae,empty:dt,flush:g,get_spread_object:ve,get_spread_update:ze,group_outros:mt,init:bt,insert:re,mount_component:W,safe_not_equal:gt,space:Se,transition_in:P,transition_out:q}=window.__gradio__svelte__internal;function wt(l){let e,n;return e=new de({props:{visible:l[4],variant:l[0]===null&&l[21]==="upload"?"dashed":"solid",border_mode:l[24]?"focus":"base",padding:!1,elem_id:l[2],elem_classes:l[3],height:l[9],width:l[10],container:l[11],scale:l[12],min_width:l[13],allow_overflow:!1,$$slots:{default:[vt]},$$scope:{ctx:l}}}),{c(){M(e.$$.fragment)},m(t,s){W(e,t,s),n=!0},p(t,s){const o={};s[0]&16&&(o.visible=t[4]),s[0]&2097153&&(o.variant=t[0]===null&&t[21]==="upload"?"dashed":"solid"),s[0]&16777216&&(o.border_mode=t[24]?"focus":"base"),s[0]&4&&(o.elem_id=t[2]),s[0]&8&&(o.elem_classes=t[3]),s[0]&512&&(o.height=t[9]),s[0]&1024&&(o.width=t[10]),s[0]&2048&&(o.container=t[11]),s[0]&4096&&(o.scale=t[12]),s[0]&8192&&(o.min_width=t[13]),s[0]&33243618|s[1]&65536&&(o.$$scope={dirty:s,ctx:t}),e.$set(o)},i(t){n||(P(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){O(e,t)}}}function pt(l){let e,n;return e=new de({props:{visible:l[4],variant:l[0]===null&&l[21]==="upload"?"dashed":"solid",border_mode:l[24]?"focus":"base",padding:!1,elem_id:l[2],elem_classes:l[3],height:l[9],width:l[10],container:l[11],scale:l[12],min_width:l[13],allow_overflow:!1,$$slots:{default:[zt]},$$scope:{ctx:l}}}),{c(){M(e.$$.fragment)},m(t,s){W(e,t,s),n=!0},p(t,s){const o={};s[0]&16&&(o.visible=t[4]),s[0]&2097153&&(o.variant=t[0]===null&&t[21]==="upload"?"dashed":"solid"),s[0]&16777216&&(o.border_mode=t[24]?"focus":"base"),s[0]&4&&(o.elem_id=t[2]),s[0]&8&&(o.elem_classes=t[3]),s[0]&512&&(o.height=t[9]),s[0]&1024&&(o.width=t[10]),s[0]&2048&&(o.container=t[11]),s[0]&4096&&(o.scale=t[12]),s[0]&8192&&(o.min_width=t[13]),s[0]&12828962|s[1]&65536&&(o.$$scope={dirty:s,ctx:t}),e.$set(o)},i(t){n||(P(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){O(e,t)}}}function kt(l){let e,n;return e=new Re({props:{i18n:l[17].i18n,type:"video"}}),{c(){M(e.$$.fragment)},m(t,s){W(e,t,s),n=!0},p(t,s){const o={};s[0]&131072&&(o.i18n=t[17].i18n),e.$set(o)},i(t){n||(P(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){O(e,t)}}}function vt(l){let e,n,t,s;const o=[{autoscroll:l[17].autoscroll},{i18n:l[17].i18n},l[1]];let r={};for(let i=0;i<o.length;i+=1)r=ke(r,o[i]);return e=new he({props:r}),e.$on("clear_status",l[37]),t=new ft({props:{value:l[22],subtitle:l[23],label:l[5],show_label:l[8],show_download_button:l[16],sources:l[6],active_source:l[21],mirror_webcam:l[19],include_audio:l[20],autoplay:l[14],root:l[7],handle_reset_value:l[25],i18n:l[17].i18n,max_file_size:l[17].max_file_size,upload:l[17].client.upload,stream_handler:l[17].client.stream,$$slots:{default:[kt]},$$scope:{ctx:l}}}),t.$on("change",l[26]),t.$on("drag",l[38]),t.$on("error",l[27]),t.$on("clear",l[39]),t.$on("play",l[40]),t.$on("pause",l[41]),t.$on("upload",l[42]),t.$on("stop",l[43]),t.$on("end",l[44]),t.$on("start_recording",l[45]),t.$on("stop_recording",l[46]),{c(){M(e.$$.fragment),n=Se(),M(t.$$.fragment)},m(i,a){W(e,i,a),re(i,n,a),W(t,i,a),s=!0},p(i,a){const c=a[0]&131074?ze(o,[a[0]&131072&&{autoscroll:i[17].autoscroll},a[0]&131072&&{i18n:i[17].i18n},a[0]&2&&ve(i[1])]):{};e.$set(c);const f={};a[0]&4194304&&(f.value=i[22]),a[0]&8388608&&(f.subtitle=i[23]),a[0]&32&&(f.label=i[5]),a[0]&256&&(f.show_label=i[8]),a[0]&65536&&(f.show_download_button=i[16]),a[0]&64&&(f.sources=i[6]),a[0]&2097152&&(f.active_source=i[21]),a[0]&524288&&(f.mirror_webcam=i[19]),a[0]&1048576&&(f.include_audio=i[20]),a[0]&16384&&(f.autoplay=i[14]),a[0]&128&&(f.root=i[7]),a[0]&131072&&(f.i18n=i[17].i18n),a[0]&131072&&(f.max_file_size=i[17].max_file_size),a[0]&131072&&(f.upload=i[17].client.upload),a[0]&131072&&(f.stream_handler=i[17].client.stream),a[0]&131072|a[1]&65536&&(f.$$scope={dirty:a,ctx:i}),t.$set(f)},i(i){s||(P(e.$$.fragment,i),P(t.$$.fragment,i),s=!0)},o(i){q(e.$$.fragment,i),q(t.$$.fragment,i),s=!1},d(i){i&&ae(n),O(e,i),O(t,i)}}}function zt(l){let e,n,t,s;const o=[{autoscroll:l[17].autoscroll},{i18n:l[17].i18n},l[1]];let r={};for(let i=0;i<o.length;i+=1)r=ke(r,o[i]);return e=new he({props:r}),e.$on("clear_status",l[30]),t=new Qe({props:{value:l[22],subtitle:l[23],label:l[5],show_label:l[8],autoplay:l[14],show_share_button:l[15],show_download_button:l[16],i18n:l[17].i18n,upload:l[17].client.upload}}),t.$on("play",l[31]),t.$on("pause",l[32]),t.$on("stop",l[33]),t.$on("end",l[34]),t.$on("share",l[35]),t.$on("error",l[36]),{c(){M(e.$$.fragment),n=Se(),M(t.$$.fragment)},m(i,a){W(e,i,a),re(i,n,a),W(t,i,a),s=!0},p(i,a){const c=a[0]&131074?ze(o,[a[0]&131072&&{autoscroll:i[17].autoscroll},a[0]&131072&&{i18n:i[17].i18n},a[0]&2&&ve(i[1])]):{};e.$set(c);const f={};a[0]&4194304&&(f.value=i[22]),a[0]&8388608&&(f.subtitle=i[23]),a[0]&32&&(f.label=i[5]),a[0]&256&&(f.show_label=i[8]),a[0]&16384&&(f.autoplay=i[14]),a[0]&32768&&(f.show_share_button=i[15]),a[0]&65536&&(f.show_download_button=i[16]),a[0]&131072&&(f.i18n=i[17].i18n),a[0]&131072&&(f.upload=i[17].client.upload),t.$set(f)},i(i){s||(P(e.$$.fragment,i),P(t.$$.fragment,i),s=!0)},o(i){q(e.$$.fragment,i),q(t.$$.fragment,i),s=!1},d(i){i&&ae(n),O(e,i),O(t,i)}}}function St(l){let e,n,t,s;const o=[pt,wt],r=[];function i(a,c){return a[18]?1:0}return e=i(l),n=r[e]=o[e](l),{c(){n.c(),t=dt()},m(a,c){r[e].m(a,c),re(a,t,c),s=!0},p(a,c){let f=e;e=i(a),e===f?r[e].p(a,c):(mt(),q(r[f],1,1,()=>{r[f]=null}),ht(),n=r[e],n?n.p(a,c):(n=r[e]=o[e](a),n.c()),P(n,1),n.m(t.parentNode,t))},i(a){s||(P(n),s=!0)},o(a){q(n),s=!1},d(a){a&&ae(t),r[e].d(a)}}}function Vt(l,e,n){let{elem_id:t=""}=e,{elem_classes:s=[]}=e,{visible:o=!0}=e,{value:r=null}=e,i=null,{label:a}=e,{sources:c}=e,{root:f}=e,{show_label:h}=e,{loading_status:b}=e,{height:S}=e,{width:z}=e,{container:d=!1}=e,{scale:w=null}=e,{min_width:V=void 0}=e,{autoplay:B=!1}=e,{show_share_button:I=!0}=e,{show_download_button:T}=e,{gradio:m}=e,{interactive:H}=e,{mirror_webcam:K}=e,{include_audio:Q}=e,A=null,C=null,F,E=r;const y=()=>{E===null||r===E||n(0,r=E)};let R=!1;function x({detail:_}){_!=null?n(0,r={video:_,subtitles:null}):n(0,r=null)}function ee({detail:_}){const[We,je]=_.includes("Invalid file type")?["warning","complete"]:["error","error"];n(1,b=b||{}),n(1,b.status=je,b),n(1,b.message=_,b),m.dispatch(We,_)}const te=()=>m.dispatch("clear_status",b),le=()=>m.dispatch("play"),ne=()=>m.dispatch("pause"),se=()=>m.dispatch("stop"),u=()=>m.dispatch("end"),Ve=({detail:_})=>m.dispatch("share",_),Be=({detail:_})=>m.dispatch("error",_),Ie=()=>m.dispatch("clear_status",b),Ne=({detail:_})=>n(24,R=_),Ue=()=>m.dispatch("clear"),Pe=()=>m.dispatch("play"),qe=()=>m.dispatch("pause"),Ce=()=>m.dispatch("upload"),Ee=()=>m.dispatch("stop"),Je=()=>m.dispatch("end"),Me=()=>m.dispatch("start_recording"),Oe=()=>m.dispatch("stop_recording");return l.$$set=_=>{"elem_id"in _&&n(2,t=_.elem_id),"elem_classes"in _&&n(3,s=_.elem_classes),"visible"in _&&n(4,o=_.visible),"value"in _&&n(0,r=_.value),"label"in _&&n(5,a=_.label),"sources"in _&&n(6,c=_.sources),"root"in _&&n(7,f=_.root),"show_label"in _&&n(8,h=_.show_label),"loading_status"in _&&n(1,b=_.loading_status),"height"in _&&n(9,S=_.height),"width"in _&&n(10,z=_.width),"container"in _&&n(11,d=_.container),"scale"in _&&n(12,w=_.scale),"min_width"in _&&n(13,V=_.min_width),"autoplay"in _&&n(14,B=_.autoplay),"show_share_button"in _&&n(15,I=_.show_share_button),"show_download_button"in _&&n(16,T=_.show_download_button),"gradio"in _&&n(17,m=_.gradio),"interactive"in _&&n(18,H=_.interactive),"mirror_webcam"in _&&n(19,K=_.mirror_webcam),"include_audio"in _&&n(20,Q=_.include_audio)},l.$$.update=()=>{l.$$.dirty[0]&536870913&&r&&E===null&&n(29,E=r),l.$$.dirty[0]&2097216&&c&&!F&&n(21,F=c[0]),l.$$.dirty[0]&1&&(r!=null?(n(22,A=r.video),n(23,C=r.subtitles)):(n(22,A=null),n(23,C=null))),l.$$.dirty[0]&268566529&&JSON.stringify(r)!==JSON.stringify(i)&&(n(28,i=r),m.dispatch("change"))},[r,b,t,s,o,a,c,f,h,S,z,d,w,V,B,I,T,m,H,K,Q,F,A,C,R,y,x,ee,i,E,te,le,ne,se,u,Ve,Be,Ie,Ne,Ue,Pe,qe,Ce,Ee,Je,Me,Oe]}class Bt extends ct{constructor(e){super(),bt(this,e,Vt,St,gt,{elem_id:2,elem_classes:3,visible:4,value:0,label:5,sources:6,root:7,show_label:8,loading_status:1,height:9,width:10,container:11,scale:12,min_width:13,autoplay:14,show_share_button:15,show_download_button:16,gradio:17,interactive:18,mirror_webcam:19,include_audio:20},null,[-1,-1])}get elem_id(){return this.$$.ctx[2]}set elem_id(e){this.$$set({elem_id:e}),g()}get elem_classes(){return this.$$.ctx[3]}set elem_classes(e){this.$$set({elem_classes:e}),g()}get visible(){return this.$$.ctx[4]}set visible(e){this.$$set({visible:e}),g()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),g()}get label(){return this.$$.ctx[5]}set label(e){this.$$set({label:e}),g()}get sources(){return this.$$.ctx[6]}set sources(e){this.$$set({sources:e}),g()}get root(){return this.$$.ctx[7]}set root(e){this.$$set({root:e}),g()}get show_label(){return this.$$.ctx[8]}set show_label(e){this.$$set({show_label:e}),g()}get loading_status(){return this.$$.ctx[1]}set loading_status(e){this.$$set({loading_status:e}),g()}get height(){return this.$$.ctx[9]}set height(e){this.$$set({height:e}),g()}get width(){return this.$$.ctx[10]}set width(e){this.$$set({width:e}),g()}get container(){return this.$$.ctx[11]}set container(e){this.$$set({container:e}),g()}get scale(){return this.$$.ctx[12]}set scale(e){this.$$set({scale:e}),g()}get min_width(){return this.$$.ctx[13]}set min_width(e){this.$$set({min_width:e}),g()}get autoplay(){return this.$$.ctx[14]}set autoplay(e){this.$$set({autoplay:e}),g()}get show_share_button(){return this.$$.ctx[15]}set show_share_button(e){this.$$set({show_share_button:e}),g()}get show_download_button(){return this.$$.ctx[16]}set show_download_button(e){this.$$set({show_download_button:e}),g()}get gradio(){return this.$$.ctx[17]}set gradio(e){this.$$set({gradio:e}),g()}get interactive(){return this.$$.ctx[18]}set interactive(e){this.$$set({interactive:e}),g()}get mirror_webcam(){return this.$$.ctx[19]}set mirror_webcam(e){this.$$set({mirror_webcam:e}),g()}get include_audio(){return this.$$.ctx[20]}set include_audio(e){this.$$set({include_audio:e}),g()}}const tl=Bt;export{il as BaseExample,ft as BaseInteractiveVideo,Ke as BasePlayer,Qe as BaseStaticVideo,tl as default,sl as loaded,He as playable,ue as prettyBytes};
2//# sourceMappingURL=index-DffEhDJy.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.