diff --git a/404.html b/404.html index a1a3ee3..afe30df 100644 --- a/404.html +++ b/404.html @@ -15,5 +15,5 @@ - + diff --git a/5-es2015.d57e0510d672d3d5730f.js b/5-es2015.d57e0510d672d3d5730f.js new file mode 100644 index 0000000..a5591c4 --- /dev/null +++ b/5-es2015.d57e0510d672d3d5730f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{IRpt:function(e,a,t){"use strict";t.r(a);var n=t("ofXK"),i=t("tyNb"),s=t("3Pt+"),r=t("fXoL"),o=t("mrSG"),m=t("tk/3");let d=(()=>{class e{constructor(e){this.httpClient=e,this.languages={}}static isSSML(e){return e.startsWith("")&&e.endsWith("")}static validateSettings(e){return!(!e.apiKey||!e.locale)||(alert("You must add your Google Cloud's text-to-speech API Key in the extension's popup."),!1)}getAudioContent(a,t,n){return Object(o.__awaiter)(this,void 0,void 0,(function*(){const i={audioConfig:{audioEncoding:n,pitch:a.pitch,speakingRate:a.speed},input:{text:t,ssml:void 0},voice:{languageCode:a.locale.split("-").slice(0,2).join("-"),name:a.locale}};e.isSSML(t)&&(i.input.ssml=i.input.text,delete i.input.text);const s=yield fetch(`https://texttospeech.googleapis.com/v1beta1/text:synthesize?key=${a.apiKey}`,{method:"POST",body:JSON.stringify(i)}),r=yield s.json();if(s.ok)return r.audioContent;alert(r.error.message)}))}}return e.\u0275fac=function(a){return new(a||e)(r.Wb(m.a))},e.\u0275prov=r.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var l=t("2Vo4"),p=function(e){return e.LOADING="LOADING",e.ERROR="ERROR",e.OK="OK",e}({});class c{constructor(e,a){this.status=e,this.message=a}}var f=t("Rea6");let h=(()=>{class e{constructor(e,a){this.httpClient=e,this.snackService=a,this._apiKey=new l.a(""),this.apiKey$=this._apiKey.asObservable(),this._apiKeyState=new l.a(new c(p.OK)),this.apiKeyState$=this._apiKeyState.asObservable();const t=localStorage.getItem("apiKey");this.verifyAndSetApiKey(t)}get apiKey(){return this._apiKey.getValue()}get apiKeyState(){return this._apiKeyState.getValue()}set apiKeyState(e){this._apiKeyState.next(e)}verifyAndSetApiKey(e){e&&(e.length>5&&(this.apiKeyState=new c(p.LOADING),setTimeout(()=>{localStorage.setItem("apiKey",e),this.apiKeyState=new c(p.OK),this._apiKey.next(e)},1e3)),this.apiKeyState.status!==p.LOADING&&(this.apiKeyState=new c(p.LOADING),this.httpClient.get("https://texttospeech.googleapis.com/v1beta1/voices?key="+e).subscribe(a=>{console.log(a),localStorage.setItem("apiKey",e),this._apiKey.next(e),this.apiKeyState=new c(p.OK)},e=>{console.log(e),this.snackService.displayError("API Key is invalid."),this.apiKeyState=new c(p.ERROR,JSON.stringify(e))})))}}return e.\u0275fac=function(a){return new(a||e)(r.Wb(m.a),r.Wb(f.a))},e.\u0275prov=r.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var g=t("Wp6s"),y=t("FKr1"),u=t("8LU1"),b=t("R1ws"),k=t("nLfN");function N(e,a){if(1&e&&(r.cc(),r.Ob(0,"circle",3)),2&e){const e=r.dc();r.sc("animation-name","mat-progress-spinner-stroke-rotate-"+e.diameter)("stroke-dashoffset",e._strokeDashOffset,"px")("stroke-dasharray",e._strokeCircumference,"px")("stroke-width",e._circleStrokeWidth,"%"),r.Db("r",e._circleRadius)}}function v(e,a){if(1&e&&(r.cc(),r.Ob(0,"circle",3)),2&e){const e=r.dc();r.sc("stroke-dashoffset",e._strokeDashOffset,"px")("stroke-dasharray",e._strokeCircumference,"px")("stroke-width",e._circleStrokeWidth,"%"),r.Db("r",e._circleRadius)}}function S(e,a){if(1&e&&(r.cc(),r.Ob(0,"circle",3)),2&e){const e=r.dc();r.sc("animation-name","mat-progress-spinner-stroke-rotate-"+e.diameter)("stroke-dashoffset",e._strokeDashOffset,"px")("stroke-dasharray",e._strokeCircumference,"px")("stroke-width",e._circleStrokeWidth,"%"),r.Db("r",e._circleRadius)}}function w(e,a){if(1&e&&(r.cc(),r.Ob(0,"circle",3)),2&e){const e=r.dc();r.sc("stroke-dashoffset",e._strokeDashOffset,"px")("stroke-dasharray",e._strokeCircumference,"px")("stroke-width",e._circleStrokeWidth,"%"),r.Db("r",e._circleRadius)}}class _{constructor(e){this._elementRef=e}}const x=Object(y.l)(_,"primary"),A=new r.q("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let K=(()=>{class e extends x{constructor(a,t,n,i,s){super(a),this._elementRef=a,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=e._diameters;r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=t.EDGE||t.TRIDENT,this._noopAnimations="NoopAnimations"===i&&!!s&&!s._forceAnimations,s&&(s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth))}get diameter(){return this._diameter}set diameter(e){this._diameter=Object(u.e)(e),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(e){this._strokeWidth=Object(u.e)(e)}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,Object(u.e)(e)))}ngOnInit(){const e=this._elementRef.nativeElement;this._styleRoot=function(e,a){if("undefined"!=typeof window){const t=a.head;if(t&&(t.createShadowRoot||t.attachShadow)){const a=e.getRootNode?e.getRootNode():null;if(a instanceof window.ShadowRoot)return a}}return null}(e,this._document)||this._document.head,this._attachStyleNode(),e.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}get _circleRadius(){return(this.diameter-10)/2}get _viewBox(){const e=2*this._circleRadius+this.strokeWidth;return`0 0 ${e} ${e}`}get _strokeCircumference(){return 2*Math.PI*this._circleRadius}get _strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}get _circleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const a=this._styleRoot,t=this._diameter,n=e._diameters;let i=n.get(a);if(!i||!i.has(t)){const e=this._document.createElement("style");e.setAttribute("mat-spinner-animation",t+""),e.textContent=this._getAnimationText(),a.appendChild(e),i||(i=new Set,n.set(a,i)),i.add(t)}}_getAnimationText(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,`${.95*this._strokeCircumference}`).replace(/END_VALUE/g,`${.2*this._strokeCircumference}`).replace(/DIAMETER/g,`${this.diameter}`)}}return e.\u0275fac=function(a){return new(a||e)(r.Nb(r.l),r.Nb(k.a),r.Nb(n.d,8),r.Nb(b.a,8),r.Nb(A))},e.\u0275cmp=r.Hb({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,a){2&e&&(r.Db("aria-valuemin","determinate"===a.mode?0:null)("aria-valuemax","determinate"===a.mode?100:null)("aria-valuenow","determinate"===a.mode?a.value:null)("mode",a.mode),r.sc("width",a.diameter,"px")("height",a.diameter,"px"),r.Eb("_mat-animation-noopable",a._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[r.zb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,a){1&e&&(r.cc(),r.Sb(0,"svg",0),r.tc(1,N,1,9,"circle",1),r.tc(2,v,1,7,"circle",2),r.Rb()),2&e&&(r.sc("width",a.diameter,"px")("height",a.diameter,"px"),r.ic("ngSwitch","indeterminate"===a.mode),r.Db("viewBox",a._viewBox),r.Cb(1),r.ic("ngSwitchCase",!0),r.Cb(1),r.ic("ngSwitchCase",!1))},directives:[n.l,n.m],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e})(),C=(()=>{class e extends K{constructor(e,a,t,n,i){super(e,a,t,n,i),this.mode="indeterminate"}}return e.\u0275fac=function(a){return new(a||e)(r.Nb(r.l),r.Nb(k.a),r.Nb(n.d,8),r.Nb(b.a,8),r.Nb(A))},e.\u0275cmp=r.Hb({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,a){2&e&&(r.sc("width",a.diameter,"px")("height",a.diameter,"px"),r.Eb("_mat-animation-noopable",a._noopAnimations))},inputs:{color:"color"},features:[r.zb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,a){1&e&&(r.cc(),r.Sb(0,"svg",0),r.tc(1,S,1,9,"circle",1),r.tc(2,w,1,7,"circle",2),r.Rb()),2&e&&(r.sc("width",a.diameter,"px")("height",a.diameter,"px"),r.ic("ngSwitch","indeterminate"===a.mode),r.Db("viewBox",a._viewBox),r.Cb(1),r.ic("ngSwitchCase",!0),r.Cb(1),r.ic("ngSwitchCase",!1))},directives:[n.l,n.m],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),e})(),R=(()=>{class e{}return e.\u0275mod=r.Lb({type:e}),e.\u0275inj=r.Kb({factory:function(a){return new(a||e)},imports:[[y.d,n.c],y.d]}),e})();var O=t("NFeN");function E(e,a){1&e&&(r.Qb(0),r.Ob(1,"mat-spinner",6),r.Pb()),2&e&&(r.Cb(1),r.ic("diameter",20))}function I(e,a){1&e&&(r.Sb(0,"mat-icon",9),r.vc(1,"check_circle"),r.Rb())}function T(e,a){1&e&&r.Ob(0,"mat-icon")}function L(e,a){if(1&e&&(r.tc(0,I,2,0,"mat-icon",7),r.tc(1,T,1,0,"ng-template",null,8,r.uc)),2&e){const e=r.mc(2),a=r.dc();r.ic("ngIf",a.apiKeyIsValid)("ngIfElse",e)}}let D=(()=>{class e{constructor(e){this.apiKeyService=e,this.apiKeyForm=new s.c(""),this.editing=!1,this.apiKeyService.apiKey$.subscribe(e=>{this.apiKeyForm.setValue(e)})}get apiKeyIsValid(){return this.apiKeyForm.value&&this.apiKeyForm.value===this.apiKeyService.apiKey}ngOnInit(){}saveApiKey(){this.apiKeyService.verifyAndSetApiKey(this.apiKeyForm.value)}}return e.\u0275fac=function(a){return new(a||e)(r.Nb(h))},e.\u0275cmp=r.Hb({type:e,selectors:[["app-api-key"]],decls:13,vars:7,consts:[[3,"routerLink"],[1,"key-input-container"],["type","text","placeholder","API Key",3,"type","formControl","click"],[3,"click"],[4,"ngIf","ngIfElse"],["check",""],["strokeWidth","4",3,"diameter"],["style","color: lightgreen",4,"ngIf","ngIfElse"],["notValid",""],[2,"color","lightgreen"]],template:function(e,a){if(1&e&&(r.Sb(0,"mat-card"),r.Sb(1,"h3"),r.vc(2,"WaveNet API Key "),r.Sb(3,"sup",0),r.vc(4,"What is this ?"),r.Rb(),r.Rb(),r.Sb(5,"div",1),r.Sb(6,"input",2),r.ac("click",(function(e){return a.editing=!0})),r.Rb(),r.Sb(7,"button",3),r.ac("click",(function(e){return a.saveApiKey()})),r.vc(8,"Save"),r.Rb(),r.tc(9,E,2,1,"ng-container",4),r.ec(10,"async"),r.tc(11,L,3,2,"ng-template",null,5,r.uc),r.Rb(),r.Rb()),2&e){const e=r.mc(12);r.Cb(3),r.ic("routerLink","/help"),r.Cb(3),r.ic("type",!a.editing&&a.apiKeyIsValid?"password":"text")("formControl",a.apiKeyForm),r.Cb(3),r.ic("ngIf","LOADING"===r.fc(10,5,a.apiKeyService.apiKeyState$).status)("ngIfElse",e)}},directives:[g.a,i.b,s.a,s.j,s.d,n.k,C,O.a],pipes:[n.b],styles:[".key-input-container[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center}sup[_ngcontent-%COMP%]{line-height:1;font-size:.6rem;color:#71deff;text-decoration:underline;cursor:pointer}"]}),e})();var G={aa:{name:"Afar",displayName:"Afaraf"},ab:{name:"Abkhaz",displayName:"\u0430\u04a7\u0441\u0443\u0430 \u0431\u044b\u0437\u0448\u04d9\u0430"},ae:{name:"Avestan",displayName:"avesta"},af:{name:"Afrikaans",displayName:"Afrikaans"},ak:{name:"Akan",displayName:"Akan"},am:{name:"Amharic",displayName:"\u12a0\u121b\u122d\u129b"},an:{name:"Aragonese",displayName:"aragon\xe9s"},ar:{name:"Arabic",displayName:"Arabic"},as:{name:"Assamese",displayName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",displayName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0"},ay:{name:"Aymara",displayName:"aymar aru"},az:{name:"Azerbaijani",displayName:"az\u0259rbaycan dili"},ba:{name:"Bashkir",displayName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},be:{name:"Belarusian",displayName:"\u0431\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f \u043c\u043e\u0432\u0430"},bg:{name:"Bulgarian",displayName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},bh:{name:"Bihari",displayName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",displayName:"Bislama"},bm:{name:"Bambara",displayName:"bamanankan"},bn:{name:"Bengali",displayName:"\u09ac\u09be\u0982\u09b2\u09be"},bo:{name:"Tibetan Standard",displayName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},br:{name:"Breton",displayName:"brezhoneg"},bs:{name:"Bosnian",displayName:"bosanski jezik"},ca:{name:"Catalan",displayName:"catal\xe0"},ce:{name:"Chechen",displayName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ch:{name:"Chamorro",displayName:"Chamoru"},co:{name:"Corsican",displayName:"corsu"},cr:{name:"Cree",displayName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},cs:{name:"Czech",displayName:"\u010de\u0161tina"},cu:{name:"Old Church Slavonic",displayName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},cv:{name:"Chuvash",displayName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},cy:{name:"Welsh",displayName:"Cymraeg"},da:{name:"Danish",displayName:"dansk"},de:{name:"German",displayName:"Deutsch"},dv:{name:"Divehi",displayName:"Dhivehi"},dz:{name:"Dzongkha",displayName:"\u0f62\u0fab\u0f7c\u0f44\u0f0b\u0f41"},ee:{name:"Ewe",displayName:"E\u028begbe"},el:{name:"Greek",displayName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},en:{name:"English",displayName:"English"},eo:{name:"Esperanto",displayName:"Esperanto"},es:{name:"Spanish",displayName:"Espa\xf1ol"},et:{name:"Estonian",displayName:"eesti"},eu:{name:"Basque",displayName:"euskara"},fa:{name:"Persian",displayName:"\u0641\u0627\u0631\u0633\u06cc"},ff:{name:"Fula",displayName:"Fulfulde"},fi:{name:"Finnish",displayName:"suomi"},fil:{name:"Filipino",displayName:"Pilipino"},fj:{name:"Fijian",displayName:"Vakaviti"},fo:{name:"Faroese",displayName:"f\xf8royskt"},fr:{name:"French",displayName:"Fran\xe7ais"},fy:{name:"Western Frisian",displayName:"Frysk"},ga:{name:"Irish",displayName:"Gaeilge"},gd:{name:"Scottish Gaelic",displayName:"G\xe0idhlig"},gl:{name:"Galician",displayName:"galego"},gn:{name:"Guaran\xed",displayName:"Ava\xf1e'\u1ebd"},gu:{name:"Gujarati",displayName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},gv:{name:"Manx",displayName:"Gaelg"},ha:{name:"Hausa",displayName:"\u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew",displayName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hi:{name:"Hindi",displayName:"\u0939\u093f\u0928\u094d\u0926\u0940"},ho:{name:"Hiri Motu",displayName:"Hiri Motu"},hr:{name:"Croatian",displayName:"hrvatski jezik"},ht:{name:"Haitian",displayName:"Krey\xf2l ayisyen"},hu:{name:"Hungarian",displayName:"magyar"},hy:{name:"Armenian",displayName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},hz:{name:"Herero",displayName:"Otjiherero"},ia:{name:"Interlingua",displayName:"Interlingua"},id:{name:"Indonesian",displayName:"Indonesian"},ie:{name:"Interlingue",displayName:"Interlingue"},ig:{name:"Igbo",displayName:"As\u1ee5s\u1ee5 Igbo"},ii:{name:"Nuosu",displayName:"\ua188\ua320\ua4bf Nuosuhxop"},ik:{name:"Inupiaq",displayName:"I\xf1upiaq"},io:{name:"Ido",displayName:"Ido"},is:{name:"Icelandic",displayName:"\xcdslenska"},it:{name:"Italian",displayName:"Italiano"},iu:{name:"Inuktitut",displayName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",displayName:"\u65e5\u672c\u8a9e"},jv:{name:"Javanese",displayName:"basa Jawa"},ka:{name:"Georgian",displayName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},kg:{name:"Kongo",displayName:"Kikongo"},ki:{name:"Kikuyu",displayName:"G\u0129k\u0169y\u0169"},kj:{name:"Kwanyama",displayName:"Kuanyama"},kk:{name:"Kazakh",displayName:"\u049b\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},kl:{name:"Kalaallisut",displayName:"kalaallisut"},km:{name:"Khmer",displayName:"\u1781\u17c1\u1798\u179a\u1797\u17b6\u179f\u17b6"},kn:{name:"Kannada",displayName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},ko:{name:"Korean",displayName:"\ud55c\uad6d\uc5b4"},kr:{name:"Kanuri",displayName:"Kanuri"},ks:{name:"Kashmiri",displayName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940"},ku:{name:"Kurdish",displayName:"Kurd\xee"},kv:{name:"Komi",displayName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kw:{name:"Cornish",displayName:"Kernewek"},ky:{name:"Kyrgyz",displayName:"\u041a\u044b\u0440\u0433\u044b\u0437\u0447\u0430"},la:{name:"Latin",displayName:"latine"},lb:{name:"Luxembourgish",displayName:"L\xebtzebuergesch"},lg:{name:"Ganda",displayName:"Luganda"},li:{name:"Limburgish",displayName:"Limburgs"},ln:{name:"Lingala",displayName:"Ling\xe1la"},lo:{name:"Lao",displayName:"\u0e9e\u0eb2\u0eaa\u0eb2"},lt:{name:"Lithuanian",displayName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",displayName:"Tshiluba"},lv:{name:"Latvian",displayName:"latvie\u0161u valoda"},mg:{name:"Malagasy",displayName:"fiteny malagasy"},mh:{name:"Marshallese",displayName:"Kajin M\u0327aje\u013c"},mi:{name:"M\u0101ori",displayName:"te reo M\u0101ori"},mk:{name:"Macedonian",displayName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},ml:{name:"Malayalam",displayName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mn:{name:"Mongolian",displayName:"\u041c\u043e\u043d\u0433\u043e\u043b \u0445\u044d\u043b"},mr:{name:"Marathi",displayName:"\u092e\u0930\u093e\u0920\u0940"},ms:{name:"Malay",displayName:"\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},mt:{name:"Maltese",displayName:"Malti"},my:{name:"Burmese",displayName:"\u1017\u1019\u102c\u1005\u102c"},na:{name:"Nauru",displayName:"Ekakair\u0169 Naoero"},nb:{name:"Norwegian Bokm\xe5l",displayName:"Norsk bokm\xe5l"},nd:{name:"Northern Ndebele",displayName:"isiNdebele"},ne:{name:"Nepali",displayName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",displayName:"Owambo"},nl:{name:"Dutch",displayName:"Nederlands"},nn:{name:"Norwegian Nynorsk",displayName:"Norsk nynorsk"},no:{name:"Norwegian",displayName:"Norsk"},nr:{name:"Southern Ndebele",displayName:"isiNdebele"},nv:{name:"Navajo",displayName:"Din\xe9 bizaad"},ny:{name:"Chichewa",displayName:"chiChe\u0175a"},oc:{name:"Occitan",displayName:"occitan"},oj:{name:"Ojibwe",displayName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},om:{name:"Oromo",displayName:"Afaan Oromoo"},or:{name:"Oriya",displayName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian",displayName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi",displayName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40"},pi:{name:"P\u0101li",displayName:"\u092a\u093e\u0934\u093f"},pl:{name:"Polish",displayName:"j\u0119zyk polski"},ps:{name:"Pashto",displayName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",displayName:"Portugu\xeas"},qu:{name:"Quechua",displayName:"Runa Simi"},rm:{name:"Romansh",displayName:"rumantsch grischun"},rn:{name:"Kirundi",displayName:"Ikirundi"},ro:{name:"Romanian",displayName:"Rom\xe2n\u0103"},ru:{name:"Russian",displayName:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},rw:{name:"Kinyarwanda",displayName:"Ikinyarwanda"},sa:{name:"Sanskrit",displayName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",displayName:"sardu"},sd:{name:"Sindhi",displayName:"\u0938\u093f\u0928\u094d\u0927\u0940"},se:{name:"Northern Sami",displayName:"Davvis\xe1megiella"},sg:{name:"Sango",displayName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},si:{name:"Sinhala",displayName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",displayName:"sloven\u010dina"},sl:{name:"Slovene",displayName:"slovenski jezik"},sm:{name:"Samoan",displayName:"gagana fa'a Samoa"},sn:{name:"Shona",displayName:"chiShona"},so:{name:"Somali",displayName:"Soomaaliga"},sq:{name:"Albanian",displayName:"Shqip"},sr:{name:"Serbian",displayName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},ss:{name:"Swati",displayName:"SiSwati"},st:{name:"Southern Sotho",displayName:"Sesotho"},su:{name:"Sundanese",displayName:"Basa Sunda"},sv:{name:"Swedish",displayName:"svenska"},sw:{name:"Swahili",displayName:"Kiswahili"},ta:{name:"Tamil",displayName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",displayName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",displayName:"\u0442\u043e\u04b7\u0438\u043a\u04e3"},th:{name:"Thai",displayName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",displayName:"\u1275\u130d\u122d\u129b"},tk:{name:"Turkmen",displayName:"T\xfcrkmen"},tl:{name:"Tagalog",displayName:"Wikang Tagalog"},tn:{name:"Tswana",displayName:"Setswana"},to:{name:"Tonga",displayName:"faka Tonga"},tr:{name:"Turkish",displayName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",displayName:"Xitsonga"},tt:{name:"Tatar",displayName:"\u0442\u0430\u0442\u0430\u0440 \u0442\u0435\u043b\u0435"},tw:{name:"Twi",displayName:"Twi"},ty:{name:"Tahitian",displayName:"Reo Tahiti"},ug:{name:"Uyghur",displayName:"\u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",displayName:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",displayName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",displayName:"\u040e\u0437\u0431\u0435\u043a"},ve:{name:"Venda",displayName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",displayName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",displayName:"Volap\xfck"},wa:{name:"Walloon",displayName:"walon"},wo:{name:"Wolof",displayName:"Wollof"},xh:{name:"Xhosa",displayName:"isiXhosa"},yi:{name:"Yiddish",displayName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",displayName:"Yor\xf9b\xe1"},za:{name:"Zhuang",displayName:"Sa\u026f cue\u014b\u0185"},zh:{name:"Chinese",displayName:"\u4e2d\u6587"},cmn:{name:"Chinese Mandarin",displayName:"\u4e2d\u6587"},zu:{name:"Zulu",displayName:"isiZulu"}};function M(e,a){if(1&e&&(r.Qb(0),r.Sb(1,"option",8),r.vc(2),r.Rb(),r.Pb()),2&e){const e=a.$implicit;r.Cb(1),r.ic("value",e.key),r.Cb(1),r.wc(e.displayName)}}function j(e,a){if(1&e&&(r.Qb(0),r.Sb(1,"option",8),r.vc(2),r.Rb(),r.Pb()),2&e){const e=a.$implicit;r.Cb(1),r.ic("value",e.key),r.Cb(1),r.wc(e.displayName)}}let V=(()=>{class e{constructor(e){this.apiKeyService=e,this.formGroup=new s.f({}),this.languages=G}get languageOptionList(){return Object.keys(this.languages).map(e=>Object.assign(Object.assign({},this.languages[e]),{key:e}))}get locales(){return[]}ngOnInit(){this.initFormGroup(),this.initSubs()}initFormGroup(){this.formGroup.setControl("language",new s.c("")),this.formGroup.setControl("locale",new s.c("")),this.formGroup.setControl("speed",new s.c("")),this.formGroup.setControl("pitch",new s.c(""))}initSubs(){this.apiKeyService.apiKey$.subscribe(e=>{e?this.formGroup.enable():this.formGroup.disable()})}}return e.\u0275fac=function(a){return new(a||e)(r.Nb(h))},e.\u0275cmp=r.Hb({type:e,selectors:[["app-voice-settings"]],inputs:{formGroup:"formGroup"},decls:21,vars:3,consts:[[1,"settings",3,"formGroup"],["formControlName","language","name","language"],["value","","disabled","","selected",""],[4,"ngFor","ngForOf"],["formControlName","locale","name","locale"],["for",""],["formControlName","speed","type","range","value","1","min","0.25","max","3","id","speed","step","0.01"],["formControlName","pitch","type","range","value","0","min","-15","max","15","id","pitch","step","0.1"],["disabled","","selected","",3,"value"]],template:function(e,a){1&e&&(r.Sb(0,"mat-card"),r.Sb(1,"h3"),r.vc(2,"Voice settings"),r.Rb(),r.Sb(3,"form",0),r.Qb(4),r.Sb(5,"select",1),r.Sb(6,"option",2),r.vc(7,"Language"),r.Rb(),r.tc(8,M,3,2,"ng-container",3),r.Rb(),r.Sb(9,"select",4),r.Sb(10,"option",2),r.vc(11,"Locale"),r.Rb(),r.tc(12,j,3,2,"ng-container",3),r.Rb(),r.Sb(13,"div"),r.Sb(14,"label",5),r.vc(15,"Speed"),r.Rb(),r.Ob(16,"input",6),r.Rb(),r.Sb(17,"div"),r.Sb(18,"label",5),r.vc(19,"Pitch"),r.Rb(),r.Ob(20,"input",7),r.Rb(),r.Pb(),r.Rb(),r.Rb()),2&e&&(r.Cb(3),r.ic("formGroup",a.formGroup),r.Cb(5),r.ic("ngForOf",a.languageOptionList),r.Cb(4),r.ic("ngForOf",a.locales))},directives:[g.a,s.s,s.k,s.g,s.p,s.j,s.e,s.m,s.r,n.j,s.a,s.n],styles:[""]}),e})(),W=(()=>{class e{constructor(e){this.snackService=e}ngOnInit(){}startTts(){this.snackService.displayMessage("Starting conversion...")}}return e.\u0275fac=function(a){return new(a||e)(r.Nb(f.a))},e.\u0275cmp=r.Hb({type:e,selectors:[["app-text-input"]],decls:10,vars:0,consts:[["for","text"],["id","text","placeholder","Copy/Paste your text here !"],[3,"click"]],template:function(e,a){1&e&&(r.Sb(0,"mat-card"),r.Sb(1,"label",0),r.vc(2," Text to convert "),r.Rb(),r.Ob(3,"br"),r.Sb(4,"p"),r.vc(5," Advanced editor would go here. "),r.Rb(),r.Ob(6,"textarea",1),r.Ob(7,"br"),r.Sb(8,"button",2),r.ac("click",(function(e){return a.startTts()})),r.vc(9,"Start Text-to-speech"),r.Rb(),r.Rb())},directives:[g.a],styles:["textarea[_ngcontent-%COMP%]{width:60%;height:120px}@media screen and (max-width:700px){textarea[_ngcontent-%COMP%]{width:95%}}"]}),e})();const z=[{path:"",component:(()=>{class e{constructor(e){this.waveNetService=e,this.formGroup=new s.f({})}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)(r.Nb(d))},e.\u0275cmp=r.Hb({type:e,selectors:[["app-tts-page"]],decls:6,vars:1,consts:[[1,"tts-page-section"],[1,"separator"],[3,"formGroup"]],template:function(e,a){1&e&&(r.Sb(0,"section",0),r.Ob(1,"app-api-key"),r.Ob(2,"div",1),r.Ob(3,"app-voice-settings",2),r.Ob(4,"div",1),r.Ob(5,"app-text-input"),r.Rb()),2&e&&(r.Cb(3),r.ic("formGroup",a.formGroup))},directives:[D,V,s.k,s.g,W],styles:[".tts-page-section[_ngcontent-%COMP%]{text-align:center}.separator[_ngcontent-%COMP%]{height:4px}"]}),e})()}];let P=(()=>{class e{}return e.\u0275mod=r.Lb({type:e}),e.\u0275inj=r.Kb({factory:function(a){return new(a||e)},imports:[[i.d.forChild(z)],i.d]}),e})();var X=t("PCNd"),F=t("ZMxt");t.d(a,"TtsModule",(function(){return U}));let U=(()=>{class e{}return e.\u0275mod=r.Lb({type:e}),e.\u0275inj=r.Kb({factory:function(a){return new(a||e)},imports:[[n.c,i.d,X.a,P,s.o,R,F.a]]}),e})()}}]); \ No newline at end of file diff --git a/5-es5.d57e0510d672d3d5730f.js b/5-es5.d57e0510d672d3d5730f.js new file mode 100644 index 0000000..4f2524b --- /dev/null +++ b/5-es5.d57e0510d672d3d5730f.js @@ -0,0 +1 @@ +function _possibleConstructorReturn(e,a){return!a||"object"!=typeof a&&"function"!=typeof a?_assertThisInitialized(e):a}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),a&&_setPrototypeOf(e,a)}function _setPrototypeOf(e,a){return(_setPrototypeOf=Object.setPrototypeOf||function(e,a){return e.__proto__=a,e})(e,a)}function _classCallCheck(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,a){for(var t=0;t")&&e.endsWith("")}},{key:"validateSettings",value:function(e){return!(!e.apiKey||!e.locale)||(alert("You must add your Google Cloud's text-to-speech API Key in the extension's popup."),!1)}}]),e}()).\u0275fac=function(e){return new(e||n)(m.Wb(d.a))},n.\u0275prov=m.Jb({token:n,factory:n.\u0275fac,providedIn:"root"}),n),c=t("2Vo4"),f=function(e){return e.LOADING="LOADING",e.ERROR="ERROR",e.OK="OK",e}({}),u=function e(a,t){_classCallCheck(this,e),this.status=a,this.message=t},h=t("Rea6"),y=((i=function(){function e(a,t){_classCallCheck(this,e),this.httpClient=a,this.snackService=t,this._apiKey=new c.a(""),this.apiKey$=this._apiKey.asObservable(),this._apiKeyState=new c.a(new u(f.OK)),this.apiKeyState$=this._apiKeyState.asObservable();var n=localStorage.getItem("apiKey");this.verifyAndSetApiKey(n)}return _createClass(e,[{key:"verifyAndSetApiKey",value:function(e){var a=this;e&&(e.length>5&&(this.apiKeyState=new u(f.LOADING),setTimeout((function(){localStorage.setItem("apiKey",e),a.apiKeyState=new u(f.OK),a._apiKey.next(e)}),1e3)),this.apiKeyState.status!==f.LOADING&&(this.apiKeyState=new u(f.LOADING),this.httpClient.get("https://texttospeech.googleapis.com/v1beta1/voices?key="+e).subscribe((function(t){console.log(t),localStorage.setItem("apiKey",e),a._apiKey.next(e),a.apiKeyState=new u(f.OK)}),(function(e){console.log(e),a.snackService.displayError("API Key is invalid."),a.apiKeyState=new u(f.ERROR,JSON.stringify(e))}))))}},{key:"apiKey",get:function(){return this._apiKey.getValue()}},{key:"apiKeyState",get:function(){return this._apiKeyState.getValue()},set:function(e){this._apiKeyState.next(e)}}]),e}()).\u0275fac=function(e){return new(e||i)(m.Wb(d.a),m.Wb(h.a))},i.\u0275prov=m.Jb({token:i,factory:i.\u0275fac,providedIn:"root"}),i),g=t("Wp6s"),k=t("FKr1"),b=t("8LU1"),N=t("R1ws"),v=t("nLfN");function _(e,a){if(1&e&&(m.cc(),m.Ob(0,"circle",3)),2&e){var t=m.dc();m.sc("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),m.Db("r",t._circleRadius)}}function S(e,a){if(1&e&&(m.cc(),m.Ob(0,"circle",3)),2&e){var t=m.dc();m.sc("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),m.Db("r",t._circleRadius)}}function w(e,a){if(1&e&&(m.cc(),m.Ob(0,"circle",3)),2&e){var t=m.dc();m.sc("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),m.Db("r",t._circleRadius)}}function C(e,a){if(1&e&&(m.cc(),m.Ob(0,"circle",3)),2&e){var t=m.dc();m.sc("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),m.Db("r",t._circleRadius)}}var x,O,A,K=Object(k.l)((function e(a){_classCallCheck(this,e),this._elementRef=a}),"primary"),R=new m.q("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),E=((A=function(e){function a(e,t,n,i,s){var r;_classCallCheck(this,a),(r=_possibleConstructorReturn(this,_getPrototypeOf(a).call(this,e)))._elementRef=e,r._document=n,r._diameter=100,r._value=0,r._fallbackAnimation=!1,r.mode="determinate";var o=a._diameters;return o.has(n.head)||o.set(n.head,new Set([100])),r._fallbackAnimation=t.EDGE||t.TRIDENT,r._noopAnimations="NoopAnimations"===i&&!!s&&!s._forceAnimations,s&&(s.diameter&&(r.diameter=s.diameter),s.strokeWidth&&(r.strokeWidth=s.strokeWidth)),r}return _inherits(a,e),_createClass(a,[{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=function(e,a){if("undefined"!=typeof window){var t=a.head;if(t&&(t.createShadowRoot||t.attachShadow)){var n=e.getRootNode?e.getRootNode():null;if(n instanceof window.ShadowRoot)return n}}return null}(e,this._document)||this._document.head,this._attachStyleNode(),e.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,n=a._diameters,i=n.get(e);if(!i||!i.has(t)){var s=this._document.createElement("style");s.setAttribute("mat-spinner-animation",t+""),s.textContent=this._getAnimationText(),e.appendChild(s),i||(i=new Set,n.set(e,i)),i.add(t)}}},{key:"_getAnimationText",value:function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*this._strokeCircumference)).replace(/END_VALUE/g,"".concat(.2*this._strokeCircumference)).replace(/DIAMETER/g,"".concat(this.diameter))}},{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=Object(b.e)(e),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=Object(b.e)(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,Object(b.e)(e)))}},{key:"_circleRadius",get:function(){return(this.diameter-10)/2}},{key:"_viewBox",get:function(){var e=2*this._circleRadius+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_strokeCircumference",get:function(){return 2*Math.PI*this._circleRadius}},{key:"_strokeDashOffset",get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}},{key:"_circleStrokeWidth",get:function(){return this.strokeWidth/this.diameter*100}}]),a}(K)).\u0275fac=function(e){return new(e||A)(m.Nb(m.l),m.Nb(v.a),m.Nb(s.d,8),m.Nb(N.a,8),m.Nb(R))},A.\u0275cmp=m.Hb({type:A,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,a){2&e&&(m.Db("aria-valuemin","determinate"===a.mode?0:null)("aria-valuemax","determinate"===a.mode?100:null)("aria-valuenow","determinate"===a.mode?a.value:null)("mode",a.mode),m.sc("width",a.diameter,"px")("height",a.diameter,"px"),m.Eb("_mat-animation-noopable",a._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[m.zb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,a){1&e&&(m.cc(),m.Sb(0,"svg",0),m.tc(1,_,1,9,"circle",1),m.tc(2,S,1,7,"circle",2),m.Rb()),2&e&&(m.sc("width",a.diameter,"px")("height",a.diameter,"px"),m.ic("ngSwitch","indeterminate"===a.mode),m.Db("viewBox",a._viewBox),m.Cb(1),m.ic("ngSwitchCase",!0),m.Cb(1),m.ic("ngSwitchCase",!1))},directives:[s.l,s.m],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),A._diameters=new WeakMap,A),T=((O=function(e){function a(e,t,n,i,s){var r;return _classCallCheck(this,a),(r=_possibleConstructorReturn(this,_getPrototypeOf(a).call(this,e,t,n,i,s))).mode="indeterminate",r}return _inherits(a,e),a}(E)).\u0275fac=function(e){return new(e||O)(m.Nb(m.l),m.Nb(v.a),m.Nb(s.d,8),m.Nb(N.a,8),m.Nb(R))},O.\u0275cmp=m.Hb({type:O,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,a){2&e&&(m.sc("width",a.diameter,"px")("height",a.diameter,"px"),m.Eb("_mat-animation-noopable",a._noopAnimations))},inputs:{color:"color"},features:[m.zb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,a){1&e&&(m.cc(),m.Sb(0,"svg",0),m.tc(1,w,1,9,"circle",1),m.tc(2,C,1,7,"circle",2),m.Rb()),2&e&&(m.sc("width",a.diameter,"px")("height",a.diameter,"px"),m.ic("ngSwitch","indeterminate"===a.mode),m.Db("viewBox",a._viewBox),m.Cb(1),m.ic("ngSwitchCase",!0),m.Cb(1),m.ic("ngSwitchCase",!1))},directives:[s.l,s.m],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),O),I=((x=function e(){_classCallCheck(this,e)}).\u0275mod=m.Lb({type:x}),x.\u0275inj=m.Kb({factory:function(e){return new(e||x)},imports:[[k.d,s.c],k.d]}),x),L=t("NFeN");function P(e,a){1&e&&(m.Qb(0),m.Ob(1,"mat-spinner",6),m.Pb()),2&e&&(m.Cb(1),m.ic("diameter",20))}function j(e,a){1&e&&(m.Sb(0,"mat-icon",9),m.vc(1,"check_circle"),m.Rb())}function D(e,a){1&e&&m.Ob(0,"mat-icon")}function G(e,a){if(1&e&&(m.tc(0,j,2,0,"mat-icon",7),m.tc(1,D,1,0,"ng-template",null,8,m.uc)),2&e){var t=m.mc(2),n=m.dc();m.ic("ngIf",n.apiKeyIsValid)("ngIfElse",t)}}var M,V=((M=function(){function e(a){var t=this;_classCallCheck(this,e),this.apiKeyService=a,this.apiKeyForm=new o.c(""),this.editing=!1,this.apiKeyService.apiKey$.subscribe((function(e){t.apiKeyForm.setValue(e)}))}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"saveApiKey",value:function(){this.apiKeyService.verifyAndSetApiKey(this.apiKeyForm.value)}},{key:"apiKeyIsValid",get:function(){return this.apiKeyForm.value&&this.apiKeyForm.value===this.apiKeyService.apiKey}}]),e}()).\u0275fac=function(e){return new(e||M)(m.Nb(y))},M.\u0275cmp=m.Hb({type:M,selectors:[["app-api-key"]],decls:13,vars:7,consts:[[3,"routerLink"],[1,"key-input-container"],["type","text","placeholder","API Key",3,"type","formControl","click"],[3,"click"],[4,"ngIf","ngIfElse"],["check",""],["strokeWidth","4",3,"diameter"],["style","color: lightgreen",4,"ngIf","ngIfElse"],["notValid",""],[2,"color","lightgreen"]],template:function(e,a){if(1&e&&(m.Sb(0,"mat-card"),m.Sb(1,"h3"),m.vc(2,"WaveNet API Key "),m.Sb(3,"sup",0),m.vc(4,"What is this ?"),m.Rb(),m.Rb(),m.Sb(5,"div",1),m.Sb(6,"input",2),m.ac("click",(function(e){return a.editing=!0})),m.Rb(),m.Sb(7,"button",3),m.ac("click",(function(e){return a.saveApiKey()})),m.vc(8,"Save"),m.Rb(),m.tc(9,P,2,1,"ng-container",4),m.ec(10,"async"),m.tc(11,G,3,2,"ng-template",null,5,m.uc),m.Rb(),m.Rb()),2&e){var t=m.mc(12);m.Cb(3),m.ic("routerLink","/help"),m.Cb(3),m.ic("type",!a.editing&&a.apiKeyIsValid?"password":"text")("formControl",a.apiKeyForm),m.Cb(3),m.ic("ngIf","LOADING"===m.fc(10,5,a.apiKeyService.apiKeyState$).status)("ngIfElse",t)}},directives:[g.a,r.b,o.a,o.j,o.d,s.k,T,L.a],pipes:[s.b],styles:[".key-input-container[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center}sup[_ngcontent-%COMP%]{line-height:1;font-size:.6rem;color:#71deff;text-decoration:underline;cursor:pointer}"]}),M),z={aa:{name:"Afar",displayName:"Afaraf"},ab:{name:"Abkhaz",displayName:"\u0430\u04a7\u0441\u0443\u0430 \u0431\u044b\u0437\u0448\u04d9\u0430"},ae:{name:"Avestan",displayName:"avesta"},af:{name:"Afrikaans",displayName:"Afrikaans"},ak:{name:"Akan",displayName:"Akan"},am:{name:"Amharic",displayName:"\u12a0\u121b\u122d\u129b"},an:{name:"Aragonese",displayName:"aragon\xe9s"},ar:{name:"Arabic",displayName:"Arabic"},as:{name:"Assamese",displayName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",displayName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0"},ay:{name:"Aymara",displayName:"aymar aru"},az:{name:"Azerbaijani",displayName:"az\u0259rbaycan dili"},ba:{name:"Bashkir",displayName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},be:{name:"Belarusian",displayName:"\u0431\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f \u043c\u043e\u0432\u0430"},bg:{name:"Bulgarian",displayName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},bh:{name:"Bihari",displayName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",displayName:"Bislama"},bm:{name:"Bambara",displayName:"bamanankan"},bn:{name:"Bengali",displayName:"\u09ac\u09be\u0982\u09b2\u09be"},bo:{name:"Tibetan Standard",displayName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},br:{name:"Breton",displayName:"brezhoneg"},bs:{name:"Bosnian",displayName:"bosanski jezik"},ca:{name:"Catalan",displayName:"catal\xe0"},ce:{name:"Chechen",displayName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ch:{name:"Chamorro",displayName:"Chamoru"},co:{name:"Corsican",displayName:"corsu"},cr:{name:"Cree",displayName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},cs:{name:"Czech",displayName:"\u010de\u0161tina"},cu:{name:"Old Church Slavonic",displayName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},cv:{name:"Chuvash",displayName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},cy:{name:"Welsh",displayName:"Cymraeg"},da:{name:"Danish",displayName:"dansk"},de:{name:"German",displayName:"Deutsch"},dv:{name:"Divehi",displayName:"Dhivehi"},dz:{name:"Dzongkha",displayName:"\u0f62\u0fab\u0f7c\u0f44\u0f0b\u0f41"},ee:{name:"Ewe",displayName:"E\u028begbe"},el:{name:"Greek",displayName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},en:{name:"English",displayName:"English"},eo:{name:"Esperanto",displayName:"Esperanto"},es:{name:"Spanish",displayName:"Espa\xf1ol"},et:{name:"Estonian",displayName:"eesti"},eu:{name:"Basque",displayName:"euskara"},fa:{name:"Persian",displayName:"\u0641\u0627\u0631\u0633\u06cc"},ff:{name:"Fula",displayName:"Fulfulde"},fi:{name:"Finnish",displayName:"suomi"},fil:{name:"Filipino",displayName:"Pilipino"},fj:{name:"Fijian",displayName:"Vakaviti"},fo:{name:"Faroese",displayName:"f\xf8royskt"},fr:{name:"French",displayName:"Fran\xe7ais"},fy:{name:"Western Frisian",displayName:"Frysk"},ga:{name:"Irish",displayName:"Gaeilge"},gd:{name:"Scottish Gaelic",displayName:"G\xe0idhlig"},gl:{name:"Galician",displayName:"galego"},gn:{name:"Guaran\xed",displayName:"Ava\xf1e'\u1ebd"},gu:{name:"Gujarati",displayName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},gv:{name:"Manx",displayName:"Gaelg"},ha:{name:"Hausa",displayName:"\u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew",displayName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hi:{name:"Hindi",displayName:"\u0939\u093f\u0928\u094d\u0926\u0940"},ho:{name:"Hiri Motu",displayName:"Hiri Motu"},hr:{name:"Croatian",displayName:"hrvatski jezik"},ht:{name:"Haitian",displayName:"Krey\xf2l ayisyen"},hu:{name:"Hungarian",displayName:"magyar"},hy:{name:"Armenian",displayName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},hz:{name:"Herero",displayName:"Otjiherero"},ia:{name:"Interlingua",displayName:"Interlingua"},id:{name:"Indonesian",displayName:"Indonesian"},ie:{name:"Interlingue",displayName:"Interlingue"},ig:{name:"Igbo",displayName:"As\u1ee5s\u1ee5 Igbo"},ii:{name:"Nuosu",displayName:"\ua188\ua320\ua4bf Nuosuhxop"},ik:{name:"Inupiaq",displayName:"I\xf1upiaq"},io:{name:"Ido",displayName:"Ido"},is:{name:"Icelandic",displayName:"\xcdslenska"},it:{name:"Italian",displayName:"Italiano"},iu:{name:"Inuktitut",displayName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",displayName:"\u65e5\u672c\u8a9e"},jv:{name:"Javanese",displayName:"basa Jawa"},ka:{name:"Georgian",displayName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},kg:{name:"Kongo",displayName:"Kikongo"},ki:{name:"Kikuyu",displayName:"G\u0129k\u0169y\u0169"},kj:{name:"Kwanyama",displayName:"Kuanyama"},kk:{name:"Kazakh",displayName:"\u049b\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},kl:{name:"Kalaallisut",displayName:"kalaallisut"},km:{name:"Khmer",displayName:"\u1781\u17c1\u1798\u179a\u1797\u17b6\u179f\u17b6"},kn:{name:"Kannada",displayName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},ko:{name:"Korean",displayName:"\ud55c\uad6d\uc5b4"},kr:{name:"Kanuri",displayName:"Kanuri"},ks:{name:"Kashmiri",displayName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940"},ku:{name:"Kurdish",displayName:"Kurd\xee"},kv:{name:"Komi",displayName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kw:{name:"Cornish",displayName:"Kernewek"},ky:{name:"Kyrgyz",displayName:"\u041a\u044b\u0440\u0433\u044b\u0437\u0447\u0430"},la:{name:"Latin",displayName:"latine"},lb:{name:"Luxembourgish",displayName:"L\xebtzebuergesch"},lg:{name:"Ganda",displayName:"Luganda"},li:{name:"Limburgish",displayName:"Limburgs"},ln:{name:"Lingala",displayName:"Ling\xe1la"},lo:{name:"Lao",displayName:"\u0e9e\u0eb2\u0eaa\u0eb2"},lt:{name:"Lithuanian",displayName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",displayName:"Tshiluba"},lv:{name:"Latvian",displayName:"latvie\u0161u valoda"},mg:{name:"Malagasy",displayName:"fiteny malagasy"},mh:{name:"Marshallese",displayName:"Kajin M\u0327aje\u013c"},mi:{name:"M\u0101ori",displayName:"te reo M\u0101ori"},mk:{name:"Macedonian",displayName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},ml:{name:"Malayalam",displayName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mn:{name:"Mongolian",displayName:"\u041c\u043e\u043d\u0433\u043e\u043b \u0445\u044d\u043b"},mr:{name:"Marathi",displayName:"\u092e\u0930\u093e\u0920\u0940"},ms:{name:"Malay",displayName:"\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},mt:{name:"Maltese",displayName:"Malti"},my:{name:"Burmese",displayName:"\u1017\u1019\u102c\u1005\u102c"},na:{name:"Nauru",displayName:"Ekakair\u0169 Naoero"},nb:{name:"Norwegian Bokm\xe5l",displayName:"Norsk bokm\xe5l"},nd:{name:"Northern Ndebele",displayName:"isiNdebele"},ne:{name:"Nepali",displayName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",displayName:"Owambo"},nl:{name:"Dutch",displayName:"Nederlands"},nn:{name:"Norwegian Nynorsk",displayName:"Norsk nynorsk"},no:{name:"Norwegian",displayName:"Norsk"},nr:{name:"Southern Ndebele",displayName:"isiNdebele"},nv:{name:"Navajo",displayName:"Din\xe9 bizaad"},ny:{name:"Chichewa",displayName:"chiChe\u0175a"},oc:{name:"Occitan",displayName:"occitan"},oj:{name:"Ojibwe",displayName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},om:{name:"Oromo",displayName:"Afaan Oromoo"},or:{name:"Oriya",displayName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian",displayName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi",displayName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40"},pi:{name:"P\u0101li",displayName:"\u092a\u093e\u0934\u093f"},pl:{name:"Polish",displayName:"j\u0119zyk polski"},ps:{name:"Pashto",displayName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",displayName:"Portugu\xeas"},qu:{name:"Quechua",displayName:"Runa Simi"},rm:{name:"Romansh",displayName:"rumantsch grischun"},rn:{name:"Kirundi",displayName:"Ikirundi"},ro:{name:"Romanian",displayName:"Rom\xe2n\u0103"},ru:{name:"Russian",displayName:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},rw:{name:"Kinyarwanda",displayName:"Ikinyarwanda"},sa:{name:"Sanskrit",displayName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",displayName:"sardu"},sd:{name:"Sindhi",displayName:"\u0938\u093f\u0928\u094d\u0927\u0940"},se:{name:"Northern Sami",displayName:"Davvis\xe1megiella"},sg:{name:"Sango",displayName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},si:{name:"Sinhala",displayName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",displayName:"sloven\u010dina"},sl:{name:"Slovene",displayName:"slovenski jezik"},sm:{name:"Samoan",displayName:"gagana fa'a Samoa"},sn:{name:"Shona",displayName:"chiShona"},so:{name:"Somali",displayName:"Soomaaliga"},sq:{name:"Albanian",displayName:"Shqip"},sr:{name:"Serbian",displayName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},ss:{name:"Swati",displayName:"SiSwati"},st:{name:"Southern Sotho",displayName:"Sesotho"},su:{name:"Sundanese",displayName:"Basa Sunda"},sv:{name:"Swedish",displayName:"svenska"},sw:{name:"Swahili",displayName:"Kiswahili"},ta:{name:"Tamil",displayName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",displayName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",displayName:"\u0442\u043e\u04b7\u0438\u043a\u04e3"},th:{name:"Thai",displayName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",displayName:"\u1275\u130d\u122d\u129b"},tk:{name:"Turkmen",displayName:"T\xfcrkmen"},tl:{name:"Tagalog",displayName:"Wikang Tagalog"},tn:{name:"Tswana",displayName:"Setswana"},to:{name:"Tonga",displayName:"faka Tonga"},tr:{name:"Turkish",displayName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",displayName:"Xitsonga"},tt:{name:"Tatar",displayName:"\u0442\u0430\u0442\u0430\u0440 \u0442\u0435\u043b\u0435"},tw:{name:"Twi",displayName:"Twi"},ty:{name:"Tahitian",displayName:"Reo Tahiti"},ug:{name:"Uyghur",displayName:"\u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",displayName:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",displayName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",displayName:"\u040e\u0437\u0431\u0435\u043a"},ve:{name:"Venda",displayName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",displayName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",displayName:"Volap\xfck"},wa:{name:"Walloon",displayName:"walon"},wo:{name:"Wolof",displayName:"Wollof"},xh:{name:"Xhosa",displayName:"isiXhosa"},yi:{name:"Yiddish",displayName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",displayName:"Yor\xf9b\xe1"},za:{name:"Zhuang",displayName:"Sa\u026f cue\u014b\u0185"},zh:{name:"Chinese",displayName:"\u4e2d\u6587"},cmn:{name:"Chinese Mandarin",displayName:"\u4e2d\u6587"},zu:{name:"Zulu",displayName:"isiZulu"}};function W(e,a){if(1&e&&(m.Qb(0),m.Sb(1,"option",8),m.vc(2),m.Rb(),m.Pb()),2&e){var t=a.$implicit;m.Cb(1),m.ic("value",t.key),m.Cb(1),m.wc(t.displayName)}}function X(e,a){if(1&e&&(m.Qb(0),m.Sb(1,"option",8),m.vc(2),m.Rb(),m.Pb()),2&e){var t=a.$implicit;m.Cb(1),m.ic("value",t.key),m.Cb(1),m.wc(t.displayName)}}var F,U,B,H,J=((U=function(){function e(a){_classCallCheck(this,e),this.apiKeyService=a,this.formGroup=new o.f({}),this.languages=z}return _createClass(e,[{key:"ngOnInit",value:function(){this.initFormGroup(),this.initSubs()}},{key:"initFormGroup",value:function(){this.formGroup.setControl("language",new o.c("")),this.formGroup.setControl("locale",new o.c("")),this.formGroup.setControl("speed",new o.c("")),this.formGroup.setControl("pitch",new o.c(""))}},{key:"initSubs",value:function(){var e=this;this.apiKeyService.apiKey$.subscribe((function(a){a?e.formGroup.enable():e.formGroup.disable()}))}},{key:"languageOptionList",get:function(){var e=this;return Object.keys(this.languages).map((function(a){return Object.assign(Object.assign({},e.languages[a]),{key:a})}))}},{key:"locales",get:function(){return[]}}]),e}()).\u0275fac=function(e){return new(e||U)(m.Nb(y))},U.\u0275cmp=m.Hb({type:U,selectors:[["app-voice-settings"]],inputs:{formGroup:"formGroup"},decls:21,vars:3,consts:[[1,"settings",3,"formGroup"],["formControlName","language","name","language"],["value","","disabled","","selected",""],[4,"ngFor","ngForOf"],["formControlName","locale","name","locale"],["for",""],["formControlName","speed","type","range","value","1","min","0.25","max","3","id","speed","step","0.01"],["formControlName","pitch","type","range","value","0","min","-15","max","15","id","pitch","step","0.1"],["disabled","","selected","",3,"value"]],template:function(e,a){1&e&&(m.Sb(0,"mat-card"),m.Sb(1,"h3"),m.vc(2,"Voice settings"),m.Rb(),m.Sb(3,"form",0),m.Qb(4),m.Sb(5,"select",1),m.Sb(6,"option",2),m.vc(7,"Language"),m.Rb(),m.tc(8,W,3,2,"ng-container",3),m.Rb(),m.Sb(9,"select",4),m.Sb(10,"option",2),m.vc(11,"Locale"),m.Rb(),m.tc(12,X,3,2,"ng-container",3),m.Rb(),m.Sb(13,"div"),m.Sb(14,"label",5),m.vc(15,"Speed"),m.Rb(),m.Ob(16,"input",6),m.Rb(),m.Sb(17,"div"),m.Sb(18,"label",5),m.vc(19,"Pitch"),m.Rb(),m.Ob(20,"input",7),m.Rb(),m.Pb(),m.Rb(),m.Rb()),2&e&&(m.Cb(3),m.ic("formGroup",a.formGroup),m.Cb(5),m.ic("ngForOf",a.languageOptionList),m.Cb(4),m.ic("ngForOf",a.locales))},directives:[g.a,o.s,o.k,o.g,o.p,o.j,o.e,o.m,o.r,s.j,o.a,o.n],styles:[""]}),U),q=((F=function(){function e(a){_classCallCheck(this,e),this.snackService=a}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"startTts",value:function(){this.snackService.displayMessage("Starting conversion...")}}]),e}()).\u0275fac=function(e){return new(e||F)(m.Nb(h.a))},F.\u0275cmp=m.Hb({type:F,selectors:[["app-text-input"]],decls:10,vars:0,consts:[["for","text"],["id","text","placeholder","Copy/Paste your text here !"],[3,"click"]],template:function(e,a){1&e&&(m.Sb(0,"mat-card"),m.Sb(1,"label",0),m.vc(2," Text to convert "),m.Rb(),m.Ob(3,"br"),m.Sb(4,"p"),m.vc(5," Advanced editor would go here. "),m.Rb(),m.Ob(6,"textarea",1),m.Ob(7,"br"),m.Sb(8,"button",2),m.ac("click",(function(e){return a.startTts()})),m.vc(9,"Start Text-to-speech"),m.Rb(),m.Rb())},directives:[g.a],styles:["textarea[_ngcontent-%COMP%]{width:60%;height:120px}@media screen and (max-width:700px){textarea[_ngcontent-%COMP%]{width:95%}}"]}),F),$=[{path:"",component:(B=function(){function e(a){_classCallCheck(this,e),this.waveNetService=a,this.formGroup=new o.f({})}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}(),B.\u0275fac=function(e){return new(e||B)(m.Nb(p))},B.\u0275cmp=m.Hb({type:B,selectors:[["app-tts-page"]],decls:6,vars:1,consts:[[1,"tts-page-section"],[1,"separator"],[3,"formGroup"]],template:function(e,a){1&e&&(m.Sb(0,"section",0),m.Ob(1,"app-api-key"),m.Ob(2,"div",1),m.Ob(3,"app-voice-settings",2),m.Ob(4,"div",1),m.Ob(5,"app-text-input"),m.Rb()),2&e&&(m.Cb(3),m.ic("formGroup",a.formGroup))},directives:[V,J,o.k,o.g,q],styles:[".tts-page-section[_ngcontent-%COMP%]{text-align:center}.separator[_ngcontent-%COMP%]{height:4px}"]}),B)}],Y=((H=function e(){_classCallCheck(this,e)}).\u0275mod=m.Lb({type:H}),H.\u0275inj=m.Kb({factory:function(e){return new(e||H)},imports:[[r.d.forChild($)],r.d]}),H),Q=t("PCNd"),Z=t("ZMxt");t.d(a,"TtsModule",(function(){return ae}));var ee,ae=((ee=function e(){_classCallCheck(this,e)}).\u0275mod=m.Lb({type:ee}),ee.\u0275inj=m.Kb({factory:function(e){return new(e||ee)},imports:[[s.c,r.d,Q.a,Y,o.o,I,Z.a]]}),ee)}}]); \ No newline at end of file diff --git a/index.html b/index.html index a1a3ee3..afe30df 100644 --- a/index.html +++ b/index.html @@ -15,5 +15,5 @@ - + diff --git a/ngsw.json b/ngsw.json index 756258d..4ce6709 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1595016747881, + "timestamp": 1595017058945, "index": "/natural-tts/index.html", "assetGroups": [ { @@ -8,8 +8,8 @@ "installMode": "prefetch", "updateMode": "prefetch", "urls": [ - "/natural-tts/5-es2015.d70128e9356708f72f1d.js", - "/natural-tts/5-es5.d70128e9356708f72f1d.js", + "/natural-tts/5-es2015.d57e0510d672d3d5730f.js", + "/natural-tts/5-es5.d57e0510d672d3d5730f.js", "/natural-tts/favicon.ico", "/natural-tts/index.html", "/natural-tts/main-es2015.c9cc0c2394d4ad5e8792.js", @@ -17,8 +17,8 @@ "/natural-tts/manifest.webmanifest", "/natural-tts/polyfills-es2015.ca64e4516afbb1b890d5.js", "/natural-tts/polyfills-es5.fb4cff7f451982eaa677.js", - "/natural-tts/runtime-es2015.991cadb82dfc1b857a7d.js", - "/natural-tts/runtime-es5.991cadb82dfc1b857a7d.js", + "/natural-tts/runtime-es2015.23d396609d6daea2e396.js", + "/natural-tts/runtime-es5.23d396609d6daea2e396.js", "/natural-tts/styles.13cedbb8a151032e5f50.css" ], "patterns": [] @@ -45,8 +45,8 @@ ], "dataGroups": [], "hashTable": { - "/natural-tts/5-es2015.d70128e9356708f72f1d.js": "043dfc5e0e18a6857c6349aeca40ae8c9519cbc9", - "/natural-tts/5-es5.d70128e9356708f72f1d.js": "e3467be9b4acbb356673074aa1f5efdfa2cbc83f", + "/natural-tts/5-es2015.d57e0510d672d3d5730f.js": "ef78183fe233dae5c11817d1b2c0e7bf336476a6", + "/natural-tts/5-es5.d57e0510d672d3d5730f.js": "9eb2619c3b794d8035988392c19559a500ac68ae", "/natural-tts/assets/default-user.svg": "b868292297268825d4236bd9c11b3e2635972806", "/natural-tts/assets/google-logo.svg": "4524589b0dceefb6ae6389f36634441df69152d5", "/natural-tts/assets/google-signin.png": "ff65be2c29b5262b7e182897910addad62c8644a", @@ -59,14 +59,14 @@ "/natural-tts/assets/icons/icon-72x72.png": "c457e56089a36952cd67156f9996bc4ce54a5ed9", "/natural-tts/assets/icons/icon-96x96.png": "3914125a4b445bf111c5627875fc190f560daa41", "/natural-tts/favicon.ico": "22f6a4a3bcaafafb0254e0f2fa4ceb89e505e8b2", - "/natural-tts/index.html": "9fbb1f5b4573ec93354d28e22daf2d9ba61f7500", + "/natural-tts/index.html": "4fb0d2f1ca389d2335da4968100f7123c930519a", "/natural-tts/main-es2015.c9cc0c2394d4ad5e8792.js": "f12d48d034e071ccd066b05806aabed37adea889", "/natural-tts/main-es5.c9cc0c2394d4ad5e8792.js": "b97797f1c7cbebe0cdcb7dceb71492333f9e0411", "/natural-tts/manifest.webmanifest": "72c881a5674f41140262ab771303ba77ab38b811", "/natural-tts/polyfills-es2015.ca64e4516afbb1b890d5.js": "8779ed8d9bf0580e1b50b352a9b8fd520be24433", "/natural-tts/polyfills-es5.fb4cff7f451982eaa677.js": "d5158605c08abe16a3992ccf4604bf8d2a934964", - "/natural-tts/runtime-es2015.991cadb82dfc1b857a7d.js": "fcbda29ca5fb25a8ac06247a20ab1e7372ba0404", - "/natural-tts/runtime-es5.991cadb82dfc1b857a7d.js": "46865a1c06c444fd37f4991a9e0861f1cdc8c807", + "/natural-tts/runtime-es2015.23d396609d6daea2e396.js": "c6ee643ce7613d00a47cd9a661c2f5ba8a4bfe29", + "/natural-tts/runtime-es5.23d396609d6daea2e396.js": "6d0f51e14a194235567ce11e91ce28d1eaba0b15", "/natural-tts/styles.13cedbb8a151032e5f50.css": "52a284b2d8e24edc28284af11a34be3b96e55fc7" }, "navigationUrls": [ diff --git a/runtime-es2015.23d396609d6daea2e396.js b/runtime-es2015.23d396609d6daea2e396.js new file mode 100644 index 0000000..e33dc0e --- /dev/null +++ b/runtime-es2015.23d396609d6daea2e396.js @@ -0,0 +1 @@ +!function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],p=0,s=[];p