import{Va as N,Y as m,ie as p}from"./chunk-EWB56PWF.js";import{a as o,b as i,i as _}from"./chunk-2T7OYDCL.js";var M=(()=>{let t=class t{buildWarn(n){let s="\u52D5\u753B\u30D5\u30A1\u30A4\u30EB\u304C\u51E6\u7406\u4E2D\u3067\u3059\u3002",E="\u3053\u308C\u306B\u306F\u3057\u3070\u3089\u304F\u6642\u9593\u304C\u304B\u304B\u308A\u3001\u51E6\u7406\u304C\u5B8C\u4E86\u3059\u308B\u307E\u3067\u4E00\u90E8\u306E\u6A5F\u80FD\u304C\u5229\u7528\u3067\u304D\u306A\u3044\u5834\u5408\u304C\u3042\u308A\u307E\u3059\u3002",I="\u4FEE\u6B63\u3059\u308B\u306B\u306F\u3001\u7BA1\u7406\u8005\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002",l="\u304A\u4F7F\u3044\u306EWeb\u30D6\u30E9\u30A6\u30B6\u30FC\u3067\u306F\u518D\u751F\u3067\u304D\u307E\u305B\u3093\u3002";switch(n){case p.PUBLISHED:case p.LIVE_ENDED:case p.WAITING_FOR_LIVE:return;case p.TO_TRANSCODE:return{title:"\u30C8\u30E9\u30F3\u30B9\u30B3\u30FC\u30C9\u304C\u9032\u884C\u4E2D\u3067\u3059",manageMain:s,manageSecondary:E,watchMain:l,watchSecondary:""};case p.TO_IMPORT:return{title:"\u30A4\u30F3\u30DD\u30FC\u30C8\u304C\u9032\u884C\u4E2D\u3067\u3059",manageMain:"\u30EA\u30E2\u30FC\u30C8\u52D5\u753B\u304C\u30A4\u30F3\u30DD\u30FC\u30C8\u4E2D\u3067\u3059\u3002",manageSecondary:E,watchMain:"\u30EA\u30E2\u30FC\u30C8\u52D5\u753B\u306F\u30A4\u30F3\u30DD\u30FC\u30C8\u4E2D\u3067\u3042\u308A\u3001\u30A4\u30F3\u30DD\u30FC\u30C8\u304C\u5B8C\u4E86\u3059\u308B\u3068\u5229\u7528\u3067\u304D\u308B\u3088\u3046\u306B\u306A\u308A\u307E\u3059\u3002",watchSecondary:""};case p.TO_MOVE_TO_FILE_SYSTEM:return{title:"\u52D5\u753B\u30D5\u30A1\u30A4\u30EB\u3092\u79FB\u52D5\u4E2D",manageMain:s,manageSecondary:E,watchMain:l,watchSecondary:"\u52D5\u753B\u306F\u30D5\u30A1\u30A4\u30EB\u30B7\u30B9\u30C6\u30E0\u3078\u79FB\u52D5\u4E2D\u3067\u3059\u3002"};case p.TO_MOVE_TO_FILE_SYSTEM_FAILED:{let u="\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306E\u30D5\u30A1\u30A4\u30EB\u30B7\u30B9\u30C6\u30E0\u3078\u52D5\u753B\u30D5\u30A1\u30A4\u30EB\u306E\u79FB\u52D5\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002";return{title:"\u52D5\u753B\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u79FB\u52D5\u306B\u5931\u6557",manageMain:u,manageSecondary:I,watchMain:l,watchSecondary:u};}case p.TO_MOVE_TO_EXTERNAL_STORAGE:return{title:"\u52D5\u753B\u30D5\u30A1\u30A4\u30EB\u3092\u79FB\u52D5\u4E2D",manageMain:s,manageSecondary:E,watchMain:l,watchSecondary:"\u52D5\u753B\u306F\u5916\u90E8\u30B9\u30C8\u30EC\u30FC\u30B8\u306B\u79FB\u52D5\u4E2D\u3067\u3059\u3002"};case p.TO_MOVE_TO_EXTERNAL_STORAGE_FAILED:{let u="\u5916\u90E8\u30B9\u30C8\u30EC\u30FC\u30B8\u3078\u306E\u52D5\u753B\u30D5\u30A1\u30A4\u30EB\u306E\u79FB\u52D5\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002";return{title:"\u52D5\u753B\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u79FB\u52D5\u306B\u5931\u6557",manageMain:u,manageSecondary:I,watchMain:l,watchSecondary:u};}case p.TO_EDIT:return{title:"\u30B9\u30BF\u30B8\u30AA\u3067\u306E\u7DE8\u96C6\u304C\u9032\u884C\u4E2D\u3067\u3059",manageMain:s,manageSecondary:E,watchMain:l,watchSecondary:""};case p.TRANSCODING_FAILED:return{title:"\u30C8\u30E9\u30F3\u30B9\u30B3\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F",manageMain:"\u52D5\u753B\u30D5\u30A1\u30A4\u30EB\u306E\u30C8\u30E9\u30F3\u30B9\u30B3\u30FC\u30C9\u51E6\u7406\u306B\u5931\u6557",manageSecondary:I,watchMain:l,watchSecondary:""};default:return n;}}};_(t,"\u0275fac",function(s){return new(s||t)();}),_(t,"\u0275prov",m({token:t,factory:t.ɵfac}));let e=t;return e;})();var R=e=>typeof e.id=="string"&&typeof e.from=="number"&&typeof e.to=="number"&&typeof e.text=="string",T=e=>!e||/^\s*$/.test(e),c={ID:"ID",TIME_LINE:"TIME_LINE",TEXT:"TEXT",MULTI_LINE_TEXT:"MULTI_LINE_TEXT",FIN_ENTRY:"FIN_ENTRY",FINISH:"FINISH"},O=e=>{let t=e.split(":"),r,n,s;return t.length===2?[n,s]=t:[r,n,s]=t,parseInt(s.replace(",",""),10)+parseInt(n,10)*60*1e3+(r?parseInt(r,10):0)*60*60*1e3;},S=()=>({start(e){let t=c.ID,r={tokens:e.split(/\n/),pos:0,result:[],current:{}};for(;t!==c.FINISH;){let n=this[t](r);r=n.params,t=n.next;}return r.result;},[c.ID](e){let{tokens:t,pos:r,current:n}=e;if(t.length<=r)return{next:c.FINISH,params:e};if(T(t[r]))return{next:c.ID,params:i(o({},e),{pos:r+1})};let s=t[r].includes("-->");return n.id=s?"":t[r],{next:c.TIME_LINE,params:i(o({},e),{current:n,tokens:t,pos:s?r:r+1})};},[c.TIME_LINE](e){let{tokens:t,pos:r,current:n}=e,s=t[r],[E,I]=s.split("-->");return n.from=O(E),n.to=O(I),{next:c.TEXT,params:i(o({},e),{current:n,pos:r+1})};},[c.TEXT](e){let{tokens:t,pos:r,current:n}=e;return t.length<=r?{next:c.FINISH,params:e}:(n.text=t[r],{next:c.MULTI_LINE_TEXT,params:i(o({},e),{current:n,pos:r+1})});},[c.MULTI_LINE_TEXT](e){let{tokens:t,pos:r,current:n}=e;return t.length<=r||T(t[r])?{next:c.FIN_ENTRY,params:e}:(n.text=`${n.text}
${t[r]}`,{next:c.MULTI_LINE_TEXT,params:i(o({},e),{current:n,pos:r+1})});},[c.FIN_ENTRY](e){let{pos:t,current:r,result:n}=e;if(R(r))n.push(r);else throw new Error(`Parsing error current not complete ${JSON.stringify(r)}`);return{next:c.ID,params:i(o({},e),{current:{},pos:t+1})};},[c.FINISH](e){return{next:c.FINISH,params:e};}}),f=e=>({entries:S().start(e)}),a={HEADER:"HEADER",ID:"ID",TIME_LINE:"TIME_LINE",ID_OR_NOTE_OR_STYLE_OR_REGION:"ID_OR_NOTE_OR_STYLE_OR_REGION",STYLE:"STYLE",NOTE:"NOTE",REGION:"REGION",LEGACY_HEADER:"LEGACY_HEADER",TEXT:"TEXT",MULTI_LINE_TEXT:"MULTI_LINE_TEXT",FIN_ENTRY:"FIN_ENTRY",FINISH:"FINISH"},d=e=>{let t=e.split(":"),r,n,s;return t.length===2?[n,s]=t:[r,n,s]=t,parseInt(s.replace(".",""),10)+parseInt(n,10)*60*1e3+(r?parseInt(r,10):0)*60*60*1e3;},x=()=>({start(e){let t=a.HEADER,r={tokens:e.split(/\n/),pos:0,result:[],current:{}};for(;t!==a.FINISH;){let n=this[t](r);r=n.params,t=n.next;}return r.result;},[a.HEADER](e){return{next:a.LEGACY_HEADER,params:i(o({},e),{pos:e.pos+1})};},[a.LEGACY_HEADER](e){let{tokens:t,pos:r}=e;return t.length<=r?{next:a.FINISH,params:e}:t[r].includes(":")&&!t[r].includes("-->")?{next:a.LEGACY_HEADER,params:i(o({},e),{pos:r+1})}:{next:a.ID_OR_NOTE_OR_STYLE_OR_REGION,params:e};},[a.ID_OR_NOTE_OR_STYLE_OR_REGION](e){let{tokens:t,pos:r}=e;return t.length<=r?{next:a.FINISH,params:e}:T(t[r])?{next:a.ID_OR_NOTE_OR_STYLE_OR_REGION,params:i(o({},e),{pos:r+1})}:t[r].toUpperCase().includes("NOTE")?{next:a.NOTE,params:e}:t[r].toUpperCase().includes("STYLE")?{next:a.STYLE,params:e}:t[r].toUpperCase().includes("REGION")?{next:a.REGION,params:e}:{next:a.ID,params:e};},[a.STYLE](e){let{tokens:t,pos:r}=e;return T(t[r])?{next:a.ID_OR_NOTE_OR_STYLE_OR_REGION,params:i(o({},e),{pos:r+1})}:{next:a.STYLE,params:i(o({},e),{pos:r+1})};},[a.NOTE](e){let{tokens:t,pos:r}=e;return T(t[r])?{next:a.ID_OR_NOTE_OR_STYLE_OR_REGION,params:i(o({},e),{pos:r+1})}:{next:a.STYLE,params:i(o({},e),{pos:r+1})};},[a.REGION](e){let{tokens:t,pos:r}=e;return T(t[r])?{next:a.ID_OR_NOTE_OR_STYLE_OR_REGION,params:i(o({},e),{pos:r+1})}:{next:a.REGION,params:i(o({},e),{pos:r+1})};},[a.ID](e){let{tokens:t,pos:r,current:n}=e;if(t.length<=r)return{next:a.FINISH,params:e};if(T(t[r]))return{next:a.ID,params:i(o({},e),{pos:r+1})};let s=t[r].includes("-->");return n.id=s?"":t[r],{next:a.TIME_LINE,params:i(o({},e),{current:n,tokens:t,pos:s?r:r+1})};},[a.TIME_LINE](e){let{tokens:t,pos:r,current:n}=e,s=t[r],[E,I]=s.split("-->");return n.from=d(E),n.to=d(I),{next:a.TEXT,params:i(o({},e),{current:n,pos:r+1})};},[a.TEXT](e){let{tokens:t,pos:r,current:n}=e;return t.length<=r?{next:a.FINISH,params:e}:(n.text=t[r],{next:a.MULTI_LINE_TEXT,params:i(o({},e),{current:n,pos:r+1})});},[a.MULTI_LINE_TEXT](e){let{tokens:t,pos:r,current:n}=e;return t.length<=r||T(t[r])?{next:a.FIN_ENTRY,params:e}:(n.text=`${n.text}
${t[r]}`,{next:a.MULTI_LINE_TEXT,params:i(o({},e),{current:n,pos:r+1})});},[a.FIN_ENTRY](e){let{pos:t,current:r,result:n}=e;if(R(r))n.push(r);else throw new Error(`Parsing error current not complete ${JSON.stringify(r)}`);return{next:a.ID_OR_NOTE_OR_STYLE_OR_REGION,params:i(o({},e),{current:{},pos:t+1})};},[a.FINISH](e){return{next:a.FINISH,params:e};}}),g=e=>({entries:x().start(e)}),$=e=>e.startsWith("WEBVTT")?g(e):f(e);var w=(()=>{let t=class t{transform(n){let s=Math.floor(n/3600),E=Math.floor(n%3600/60),I=n%60;if(s>0){let l=""+s+"\u6642\u9593";return E!==0&&(l+=" "+(""+E+"\u5206")),I!==0&&(l+=" "+(""+I+"\u79D2")),l;}if(E>0){let l=""+E+"\u5206";return I!==0&&(l+=` ${I}sec`),l;}return""+I+"\u79D2 ";}};_(t,"\u0275fac",function(s){return new(s||t)();}),_(t,"\u0275pipe",N({name:"myTimeDurationFormatter",type:t,pure:!0}));let e=t;return e;})();export{M as a,$ as b,w as c};/**i18n:85d030b7fdd36d163c6d41dcef9178681a6baa573eb199e8b12fe27dbb057a98*///# sourceMappingURL=chunk-GUX73PDT.js.map