1import{S as O,i as Y,s as Z,A as G,B as u,f as N,D as y,E as P,p as C,F as q,G as J,H as le,c as B,K as ce,ae as _e,O as de,C as X,ak as ke,m as T,I as U,a5 as me,a9 as ve,k as ee,t as w,n as te,o as k,J as ae,l as V,a0 as ye,as as Be,at as Te,x as z,b as be,V as ge,e as ne,q as ue,a as Ve,j as Ne,W as Ce,X as Me,Y as ze,Z as Ue,v as Pe,a2 as Se,g as je,h as Ee}from"./index.3b5d9bed.js";import{n as Ae}from"./ModifyUpload.svelte_svelte_type_style_lang.1181cbe3.js";/* empty css */import{B as Fe}from"./Block.e25dc282.js";import{U as He}from"./Upload.1f4a3d60.js";import{M as Ie}from"./ModifyUpload.0cce594d.js";import{B as pe}from"./BlockLabel.321a7bc3.js";import{U as We,W as Xe}from"./StaticImage.svelte_svelte_type_style_lang.6878e57f.js";import{E as qe}from"./Empty.e53bca5a.js";import{U as Re}from"./UploadText.865355f4.js";import"./Blocks.1fa45552.js";import"./Button.cad7c48c.js";function De(n){let e,l;return{c(){e=G("svg"),l=G("path"),u(l,"d","M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"width","100%"),u(e,"height","100%"),u(e,"viewBox","0 0 24 24"),u(e,"fill","none"),u(e,"stroke","currentColor"),u(e,"stroke-width","1.5"),u(e,"stroke-linecap","round"),u(e,"stroke-linejoin","round")},m(t,r){N(t,e,r),y(e,l)},p:P,i:P,o:P,d(t){t&&C(e)}}}class Ge extends O{constructor(e){super(),Y(this,e,null,De,Z,{})}}function Ke(n){let e,l,t;return{c(){e=G("svg"),l=G("rect"),t=G("rect"),u(l,"x","6"),u(l,"y","4"),u(l,"width","4"),u(l,"height","16"),u(t,"x","14"),u(t,"y","4"),u(t,"width","4"),u(t,"height","16"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"width","100%"),u(e,"height","100%"),u(e,"viewBox","0 0 24 24"),u(e,"fill","none"),u(e,"stroke","currentColor"),u(e,"stroke-width","1.5"),u(e,"stroke-linecap","round"),u(e,"stroke-linejoin","round")},m(r,i){N(r,e,i),y(e,l),y(e,t)},p:P,i:P,o:P,d(r){r&&C(e)}}}class Je extends O{constructor(e){super(),Y(this,e,null,Ke,Z,{})}}function Le(n){let e,l;return{c(){e=G("svg"),l=G("polygon"),u(l,"points","5 3 19 12 5 21 5 3"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"width","100%"),u(e,"height","100%"),u(e,"viewBox","0 0 24 24"),u(e,"fill","none"),u(e,"stroke","currentColor"),u(e,"stroke-width","1.5"),u(e,"stroke-linecap","round"),u(e,"stroke-linejoin","round")},m(t,r){N(t,e,r),y(e,l)},p:P,i:P,o:P,d(t){t&&C(e)}}}class Oe extends O{constructor(e){super(),Y(this,e,null,Le,Z,{})}}function Ye(n){let e,l,t;return{c(){e=G("svg"),l=G("polygon"),t=G("rect"),u(l,"points","23 7 16 12 23 17 23 7"),u(t,"x","1"),u(t,"y","5"),u(t,"width","15"),u(t,"height","14"),u(t,"rx","2"),u(t,"ry","2"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"width","100%"),u(e,"height","100%"),u(e,"viewBox","0 0 24 24"),u(e,"fill","none"),u(e,"stroke","currentColor"),u(e,"stroke-width","1.5"),u(e,"stroke-linecap","round"),u(e,"stroke-linejoin","round"),u(e,"class","feather feather-video")},m(r,i){N(r,e,i),y(e,l),y(e,t)},p:P,i:P,o:P,d(r){r&&C(e)}}}class fe extends O{constructor(e){super(),Y(this,e,null,Ye,Z,{})}}const he=n=>{let e=["B","KB","MB","GB","PB"],l=0;for(;n>1024;)n/=1024,l++;let t=e[l];return n.toFixed(1)+" "+t},Ze=()=>!0;const{isNaN:Qe}=Be;function $e(n){let e,l;return e=new Je({}),{c(){B(e.$$.fragment)},m(t,r){T(e,t,r),l=!0},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function xe(n){let e,l;return e=new Oe({}),{c(){B(e.$$.fragment)},m(t,r){T(e,t,r),l=!0},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function et(n){let e,l;return e=new We({}),{c(){B(e.$$.fragment)},m(t,r){T(e,t,r),l=!0},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function tt(n){let e,l,t,r,i,f=!1,m,a=!0,d,o,s,c,h,v,j,E,S=oe(n[2])+"",A,R,F=oe(n[3])+"",g,$,H,L,x,K,D,I,_,re;function p(){cancelAnimationFrame(m),l.paused||(m=Te(p),f=!0),n[20].call(l)}const Q=[et,xe,$e],W=[];function ie(b,M){return b[2]===b[3]?0:b[4]?1:2}return h=ie(n),v=W[h]=Q[h](n),D=new Ge({}),{c(){e=q("div"),l=q("video"),t=q("track"),d=J(),o=q("div"),s=q("div"),c=q("span"),v.c(),j=J(),E=q("span"),A=le(S),R=le(" / "),g=le(F),$=J(),H=q("progress"),x=J(),K=q("div"),B(D.$$.fragment),u(t,"kind","captions"),ce(l.src,r=n[0])||u(l,"src",r),u(l,"preload","auto"),u(l,"class","svelte-3cbf20"),_e(()=>n[19].call(l)),n[3]===void 0&&_e(()=>n[21].call(l)),de(l,"mirror",n[1]),X(l,"opacity",n[9],!1),X(l,"transition",n[11],!1),u(c,"class","icon svelte-3cbf20"),u(E,"class","time svelte-3cbf20"),H.value=L=n[2]/n[3]||0,u(H,"class","svelte-3cbf20"),u(K,"class","icon svelte-3cbf20"),u(s,"class","inner svelte-3cbf20"),u(o,"class","controls svelte-3cbf20"),X(o,"opacity",n[9]===1&&n[3]&&n[6]?1:0,!1),X(o,"transition",n[11],!1),u(e,"class","wrap svelte-3cbf20"),X(e,"opacity",n[10],!1),X(e,"height",`${n[0]&&n[7]}
1px`||"auto",!1)},m(b,M){N(b,e,M),y(e,l),y(l,t),i=ke(l,n[19].bind(l)),n[23](l),y(e,d),y(e,o),y(o,s),y(s,c),W[h].m(c,null),y(s,j),y(s,E),y(E,A),y(E,R),y(E,g),y(s,$),y(s,H),y(s,x),y(s,K),T(D,K,null),I=!0,_||(re=[U(l,"mousemove",n[12]),U(l,"click",n[14]),U(l,"play",n[16]),U(l,"pause",n[17]),U(l,"ended",n[18]),U(l,"timeupdate",p),U(l,"durationchange",n[21]),U(l,"play",n[22]),U(l,"pause",n[22]),U(c,"click",n[14]),U(H,"mousemove",n[13]),U(H,"touchmove",me(n[13])),U(H,"click",ve(me(n[15]))),U(K,"click",n[24]),U(o,"mousemove",n[12])],_=!0)},p(b,[M]){(!I||M&1&&!ce(l.src,r=b[0]))&&u(l,"src",r),!f&&M&4&&!Qe(b[2])&&(l.currentTime=b[2]),f=!1,M&16&&a!==(a=b[4])&&l[a?"pause":"play"](),M&2&&de(l,"mirror",b[1]),M&512&&X(l,"opacity",b[9],!1),M&2048&&X(l,"transition",b[11],!1);let se=h;h=ie(b),h!==se&&(ee(),w(W[se],1,1,()=>{W[se]=null}),te(),v=W[h],v||(v=W[h]=Q[h](b),v.c()),k(v,1),v.m(c,null)),(!I||M&4)&&S!==(S=oe(b[2])+"")&&ae(A,S),(!I||M&8)&&F!==(F=oe(b[3])+"")&&ae(g,F),(!I||M&12&&L!==(L=b[2]/b[3]||0))&&(H.value=L),M&584&&X(o,"opacity",b[9]===1&&b[3]&&b[6]?1:0,!1),M&2048&&X(o,"transition",b[11],!1),M&1024&&X(e,"opacity",b[10],!1),M&129&&X(e,"height",`${b[0]&&b[7]}px`||"auto",!1)},i(b){I||(k(v),k(D.$$.fragment,b),I=!0)},o(b){w(v),w(D.$$.fragment,b),I=!1},d(b){b&&C(e),i(),n[23](null),W[h].d(),V(D),_=!1,ye(re)}}}function oe(n){if(isNaN(n)||!isFinite(n))return"...";const e=Math.floor(n/60);let l=Math.floor(n%60);return n<10&&(l=`0${l}`),`${e}:${l}`}function lt(n,e,l){let{src:t}=e,{mirror:r}=e,i=0,f,m=!0,a,d=!0,o;function s(){clearTimeout(o),o=setTimeout(()=>l(6,d=!1),2500),l(6,d=!0)}function c(p){if(!f)return;if(p.type==="click"){v(p);return}if(p.type!=="touchmove"&&!(p.buttons&1))return;const Q=p.type==="touchmove"?p.touches[0].clientX:p.clientX,{left:W,right:ie}=p.currentTarget.getBoundingClientRect();l(2,i=f*(Q-W)/(ie-W))}async function h(){a.currentTime>0&&!a.paused&&!a.ended&&a.readyState>a.HAVE_CURRENT_DATA?a.pause():await a.play()}function v(p){const{left:Q,right:W}=p.currentTarget.getBoundingClientRect();l(2,i=f*(p.clientX-Q)/(W-Q))}async function j(){l(11,g="0s"),await ge(),l(10,F=.8),l(9,R=0),await ge();var p=setInterval(async()=>{a.readyState>=1&&l(7,S=a.videoHeight/a.videoWidth*A),a.readyState>=3&&(l(5,a.currentTime=9999,a),l(4,m=!0),l(11,g="0.2s"),setTimeout(async()=>{l(5,a.currentTime=0,a),l(9,R=1),l(10,F=1)},50),clearInterval(p))},15)}async function E(){j()}let S,A,R=0,F=0,g="0.5s";function $(p){z.call(this,n,p)}function H(p){z.call(this,n,p)}function L(p){z.call(this,n,p)}function x(){S=this.clientHeight,A=this.clientWidth,l(7,S),l(8,A)}function K(){i=this.currentTime,l(2,i)}function D(){f=this.duration,l(3,f)}function I(){m=this.paused,l(4,m)}function _(p){be[p?"unshift":"push"](()=>{a=p,l(5,a)})}const re=()=>a.requestFullscreen();return n.$$set=p=>{"src"in p&&l(0,t=p.src),"mirror"in p&&l(1,r=p.mirror)},n.$$.update=()=>{n.$$.dirty&1&&t&&E()},[t,r,i,f,m,a,d,S,A,R,F,g,s,c,h,v,$,H,L,x,K,D,I,_,re]}class we extends O{constructor(e){super(),Y(this,e,lt,tt,Z,{src:0,mirror:1})}}function nt(n){let e,l,t,r,i,f,m;e=new Ie({}),e.$on("clear",n[9]);const a=[ot,it],d=[];function o(s,c){return t==null&&(t=!!Ze()),t?0:s[0].size?1:-1}return~(r=o(n))&&(i=d[r]=a[r](n)),{c(){B(e.$$.fragment),l=J(),i&&i.c(),f=ne()},m(s,c){T(e,s,c),N(s,l,c),~r&&d[r].m(s,c),N(s,f,c),m=!0},p(s,c){let h=r;r=o(s),r===h?~r&&d[r].p(s,c):(i&&(ee(),w(d[h],1,1,()=>{d[h]=null}),te()),~r?(i=d[r],i?i.p(s,c):(i=d[r]=a[r](s),i.c()),k(i,1),i.m(f.parentNode,f)):i=null)},i(s){m||(k(e.$$.fragment,s),k(i),m=!0)},o(s){w(e.$$.fragment,s),w(i),m=!1},d(s){V(e,s),s&&C(l),~r&&d[r].d(s),s&&C(f)}}}function rt(n){let e,l,t,r;const i=[st,at],f=[];function m(a,d){return a[1]==="upload"?0:a[1]==="webcam"?1:-1}return~(e=m(n))&&(l=f[e]=i[e](n)),{c(){l&&l.c(),t=ne()},m(a,d){~e&&f[e].m(a,d),N(a,t,d),r=!0},p(a,d){let o=e;e=m(a),e===o?~e&&f[e].p(a,d):(l&&(ee(),w(f[o],1,1,()=>{f[o]=null}),te()),~e?(l=f[e],l?l.p(a,d):(l=f[e]=i[e](a),l.c()),k(l,1),l.m(t.parentNode,t)):l=null)},i(a){r||(k(l),r=!0)},o(a){w(l),r=!1},d(a){~e&&f[e].d(a),a&&C(t)}}}function it(n){let e,l=n[0].name+"",t,r,i,f=he(n[0].size)+"",m;return{c(){e=q("div"),t=le(l),r=J(),i=q("div"),m=le(f),u(e,"class","file-name svelte-s0ydlh"),u(i,"class","file-size svelte-s0ydlh")},m(a,d){N(a,e,d),y(e,t),N(a,r,d),N(a,i,d),y(i,m)}
1,p(a,d){d&1&&l!==(l=a[0].name+"")&&ae(t,l),d&1&&f!==(f=he(a[0].size)+"")&&ae(m,f)},i:P,o:P,d(a){a&&C(e),a&&C(r),a&&C(i)}}}function ot(n){let e,l;return e=new we({props:{src:n[0].data,mirror:n[4]&&n[1]==="webcam"}}),e.$on("play",n[14]),e.$on("pause",n[15]),e.$on("ended",n[16]),{c(){B(e.$$.fragment)},m(t,r){T(e,t,r),l=!0},p(t,r){const i={};r&1&&(i.src=t[0].data),r&18&&(i.mirror=t[4]&&t[1]==="webcam"),e.$set(i)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function at(n){let e,l;return e=new Xe({props:{mirror_webcam:n[4],include_audio:n[5],mode:"video"}}),e.$on("error",n[12]),e.$on("capture",n[13]),{c(){B(e.$$.fragment)},m(t,r){T(e,t,r),l=!0},p(t,r){const i={};r&16&&(i.mirror_webcam=t[4]),r&32&&(i.include_audio=t[5]),e.$set(i)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function st(n){let e,l,t;function r(f){n[11](f)}let i={filetype:"video/mp4,video/x-m4v,video/*",$$slots:{default:[ut]},$$scope:{ctx:n}};return n[6]!==void 0&&(i.dragging=n[6]),e=new He({props:i}),be.push(()=>Ve(e,"dragging",r)),e.$on("load",n[8]),{c(){B(e.$$.fragment)},m(f,m){T(e,f,m),t=!0},p(f,m){const a={};m&131072&&(a.$$scope={dirty:m,ctx:f}),!l&&m&64&&(l=!0,a.dragging=f[6],Ne(()=>l=!1)),e.$set(a)},i(f){t||(k(e.$$.fragment,f),t=!0)},o(f){w(e.$$.fragment,f),t=!1},d(f){V(e,f)}}}function ut(n){let e;const l=n[10].default,t=Ce(l,n,n[17],null);return{c(){t&&t.c()},m(r,i){t&&t.m(r,i),e=!0},p(r,i){t&&t.p&&(!e||i&131072)&&Me(t,l,r,r[17],e?Ue(l,r[17],i,null):ze(r[17]),null)},i(r){e||(k(t,r),e=!0)},o(r){w(t,r),e=!1},d(r){t&&t.d(r)}}}function ft(n){let e,l,t,r,i,f;e=new pe({props:{show_label:n[3],Icon:fe,label:n[2]||"Video"}});const m=[rt,nt],a=[];function d(o,s){return o[0]===null?0:1}return t=d(n),r=a[t]=m[t](n),{c(){B(e.$$.fragment),l=J(),r.c(),i=ne()},m(o,s){T(e,o,s),N(o,l,s),a[t].m(o,s),N(o,i,s),f=!0},p(o,[s]){const c={};s&8&&(c.show_label=o[3]),s&4&&(c.label=o[2]||"Video"),e.$set(c);let h=t;t=d(o),t===h?a[t].p(o,s):(ee(),w(a[h],1,1,()=>{a[h]=null}),te(),r=a[t],r?r.p(o,s):(r=a[t]=m[t](o),r.c()),k(r,1),r.m(i.parentNode,i))},i(o){f||(k(e.$$.fragment,o),k(r),f=!0)},o(o){w(e.$$.fragment,o),w(r),f=!1},d(o){V(e,o),o&&C(l),a[t].d(o),o&&C(i)}}}function ct(n,e,l){let{$$slots:t={},$$scope:r}=e,{value:i=null}=e,{source:f}=e,{label:m=void 0}=e,{show_label:a=!0}=e,{mirror_webcam:d=!1}=e,{include_audio:o}=e;const s=ue();function c({detail:g}){s("change",g),s("upload",g),l(0,i=g)}function h({detail:g}){l(0,i=null),s("change",g),s("clear")}let v=!1;function j(g){v=g,l(6,v)}function E(g){z.call(this,n,g)}const S=({detail:g})=>s("change",g);function A(g){z.call(this,n,g)}function R(g){z.call(this,n,g)}function F(g){z.call(this,n,g)}return n.$$set=g=>{"value"in g&&l(0,i=g.value),"source"in g&&l(1,f=g.source),"label"in g&&l(2,m=g.label),"show_label"in g&&l(3,a=g.show_label),"mirror_webcam"in g&&l(4,d=g.mirror_webcam),"include_audio"in g&&l(5,o=g.include_audio),"$$scope"in g&&l(17,r=g.$$scope)},n.$$.update=()=>{n.$$.dirty&64&&s("drag",v)},[i,f,m,a,d,o,v,s,c,h,t,j,E,S,A,R,F,r]}class _t extends O{constructor(e){super(),Y(this,e,ct,ft,Z,{value:0,source:1,label:2,show_label:3,mirror_webcam:4,include_audio:5})}}function dt(n){let e,l;return e=new we({props:{src:n[0].data,mirror:!1}}),e.$on("play",n[3]),e.$on("pause",n[4]),e.$on("ended",n[5]),{c(){B(e.$$.fragment)},m(t,r){T(e,t,r),l=!0},p(t,r){const i={};r&1&&(i.src=t[0].data),e.$set(i)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function mt(n){let e,l;return e=new qe({props:{size:"large",unpadded_box:!0,$$slots:{default:[gt]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(t,r){T(e,t,r),l=!0},p(t,r){const i={};r&128&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function gt(n){let e,l;return e=new fe({}),{c(){B(e.$$.fragment)},m(t,r){T(e,t,r),l=!0},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function ht(n){let e,l,t,r,i,f;e=new pe({props:{show_label:n[2],Icon:fe,label:n[1]||"Video"}});const m=[mt,dt],a=[];function d(o,s){return o[0]===null?0:1}return t=d(n),r=a[t]=m[t](n),{c(){B(e.$$.fragment),l=J(),r.c(),i=ne()},m(o,s){T(e,o,s),N(o,l,s),a[t].m(o,s),N(o,i,s),f=!0},p(o,[s]){const c={};s&4&&(c.show_label=o[2]),s&2&&(c.label=o[1]||"Video"),e.$set(c);let h=t;t=d(o),t===h?a[t].p(o,s):(ee(),w(a[h],1,1,()=>{a[h]=null}),te(),r=a[t],r?r.p(o,s):(r=a[t]=m[t](o),r.c()),k(r,1),r.m(i.parentNode,i))},i(o){f||(k(e.$$.fragment,o),k(r),f=!0)},o(o){w(e.$$.fragment,o),w(r),f=!1},d(o){V(e,o),o&&C(l),a[t].d(o),o&&C(i)}}}function bt(n,e,l){let{value:t=null}=e,{label:r=void 0}=e,{show_label:i=!0}=e;const f=ue();function m(o){z.call(this,n,o)}function a(o){z.call(this,n,o)}function d(o){z.call(this,n,o)}return n.$$set=o=>{"value"in o&&l(0,t=o.value),"label"in o&&l(1,r=o.label),"show_label"in o&&l(2,i=o.show_label)},n.$$.update=()=>{n.$$.dirty&1&&t&&f("change",t)},[t,r,i,m,a,d]}class pt extends O{constructor(e){super(),Y(this,e,bt,ht,Z,{value:0,label:1,show_label:2})}}function wt(n){let e,l;return e=new _t({props:{value:n[11],label:n[4],show_label:n[6],source:n[5],mirror_webcam:n[8],include_audio:n[9],$$slots:{default:[vt]},$$scope:{ctx:n}}}),e.$on("change",n[18]),e.$on("drag",n[19]),e.$on("error",n[20]),e.$on("clear",n[21]),e.$on("play",n[22]),e.$on("pause",n[23]),e.$on("upload",n[24]),{c(){B(e.$$.fragment)}
1,m(t,r){T(e,t,r),l=!0},p(t,r){const i={};r&2048&&(i.value=t[11]),r&16&&(i.label=t[4]),r&64&&(i.show_label=t[6]),r&32&&(i.source=t[5]),r&256&&(i.mirror_webcam=t[8]),r&512&&(i.include_audio=t[9]),r&67108864&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function kt(n){let e,l;return e=new pt({props:{value:n[11],label:n[4],show_label:n[6]}}),e.$on("play",n[16]),e.$on("pause",n[17]),{c(){B(e.$$.fragment)},m(t,r){T(e,t,r),l=!0},p(t,r){const i={};r&2048&&(i.value=t[11]),r&16&&(i.label=t[4]),r&64&&(i.show_label=t[6]),e.$set(i)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function vt(n){let e,l;return e=new Re({props:{type:"video"}}),{c(){B(e.$$.fragment)},m(t,r){T(e,t,r),l=!0},p:P,i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function yt(n){let e,l,t,r,i,f;const m=[n[1]];let a={};for(let c=0;c<m.length;c+=1)a=Pe(a,m[c]);e=new Se({props:a});const d=[kt,wt],o=[];function s(c,h){return c[10]==="static"?0:1}return t=s(n),r=o[t]=d[t](n),{c(){B(e.$$.fragment),l=J(),r.c(),i=ne()},m(c,h){T(e,c,h),N(c,l,h),o[t].m(c,h),N(c,i,h),f=!0},p(c,h){const v=h&2?je(m,[Ee(c[1])]):{};e.$set(v);let j=t;t=s(c),t===j?o[t].p(c,h):(ee(),w(o[j],1,1,()=>{o[j]=null}),te(),r=o[t],r?r.p(c,h):(r=o[t]=d[t](c),r.c()),k(r,1),r.m(i.parentNode,i))},i(c){f||(k(e.$$.fragment,c),k(r),f=!0)},o(c){w(e.$$.fragment,c),w(r),f=!1},d(c){V(e,c),c&&C(l),o[t].d(c),c&&C(i)}}}function Bt(n){let e,l;return e=new Fe({props:{visible:n[3],variant:n[10]==="dynamic"&&n[0]===null&&n[5]==="upload"?"dashed":"solid",color:n[12]?"green":"grey",padding:!1,elem_id:n[2],style:{height:n[7].height,width:n[7].width},allow_overflow:!1,$$slots:{default:[yt]},$$scope:{ctx:n}}}),{c(){B(e.$$.fragment)},m(t,r){T(e,t,r),l=!0},p(t,[r]){const i={};r&8&&(i.visible=t[3]),r&1057&&(i.variant=t[10]==="dynamic"&&t[0]===null&&t[5]==="upload"?"dashed":"solid"),r&4096&&(i.color=t[12]?"green":"grey"),r&4&&(i.elem_id=t[2]),r&128&&(i.style={height:t[7].height,width:t[7].width}),r&67116915&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function Tt(n,e,l){let{elem_id:t=""}=e,{visible:r=!0}=e,{value:i=null}=e,f=null,{label:m}=e,{source:a}=e,{root:d}=e,{root_url:o}=e,{show_label:s}=e,{loading_status:c}=e,{style:h={}}=e,{mirror_webcam:v}=e,{include_audio:j}=e,{mode:E}=e,S,A=!1;const R=ue();function F(_){z.call(this,n,_)}function g(_){z.call(this,n,_)}const $=({detail:_})=>l(0,i=_),H=({detail:_})=>l(12,A=_),L=({detail:_})=>{l(1,c=c||{}),l(1,c.status="error",c),l(1,c.message=_,c)};function x(_){z.call(this,n,_)}function K(_){z.call(this,n,_)}function D(_){z.call(this,n,_)}function I(_){z.call(this,n,_)}return n.$$set=_=>{"elem_id"in _&&l(2,t=_.elem_id),"visible"in _&&l(3,r=_.visible),"value"in _&&l(0,i=_.value),"label"in _&&l(4,m=_.label),"source"in _&&l(5,a=_.source),"root"in _&&l(13,d=_.root),"root_url"in _&&l(14,o=_.root_url),"show_label"in _&&l(6,s=_.show_label),"loading_status"in _&&l(1,c=_.loading_status),"style"in _&&l(7,h=_.style),"mirror_webcam"in _&&l(8,v=_.mirror_webcam),"include_audio"in _&&l(9,j=_.include_audio),"mode"in _&&l(10,E=_.mode)},n.$$.update=()=>{n.$$.dirty&24577&&l(11,S=Ae(i,d,o)),n.$$.dirty&32769&&i!==f&&(l(15,f=i),R("change"))},[i,c,t,r,m,a,s,h,v,j,E,S,A,d,o,f,F,g,$,H,L,x,K,D,I]}class Vt extends O{constructor(e){super(),Y(this,e,Tt,Bt,Z,{elem_id:2,visible:3,value:0,label:4,source:5,root:13,root_url:14,show_label:6,loading_status:1,style:7,mirror_webcam:8,include_audio:9,mode:10})}}var It=Vt;const Wt=["static","dynamic"],Xt=n=>({type:"{ name: string; data: string }",description:"file name and base64 data of video file"});export{It as Component,Xt as document,Wt as modes}; 2//# sourceMappingURL=index.a696acda.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.