diff --git a/backend/app.js b/backend/app.js index 31294766..6d3ee55b 100644 --- a/backend/app.js +++ b/backend/app.js @@ -29,6 +29,7 @@ var config_api = require('./config.js'); var subscriptions_api = require('./subscriptions') const CONSTS = require('./consts') const { spawn } = require('child_process') +const read_last_lines = require('read-last-lines'); const is_windows = process.platform === 'win32'; @@ -1867,15 +1868,17 @@ app.get('/api/using-encryption', function(req, res) { res.send(usingEncryption); }); -app.get('/api/logs', function(req, res) { +app.post('/api/logs', async function(req, res) { let logs = null; + let lines = req.body.lines; logs_path = path.join('appdata', 'logs', 'combined.log') - if (fs.existsSync(logs_path)) - logs = fs.readFileSync(logs_path, 'utf8'); + if (fs.existsSync(logs_path)) { + if (lines) logs = await read_last_lines.read(logs_path, lines); + else logs = fs.readFileSync(logs_path, 'utf8'); + } else logger.error(`Failed to find logs file at the expected location: ${logs_path}`) - console.log(logs) res.send({ logs: logs, success: !!logs diff --git a/backend/package.json b/backend/package.json index f0463aa5..c2acc2de 100644 --- a/backend/package.json +++ b/backend/package.json @@ -50,6 +50,7 @@ "passport-jwt": "^4.0.0", "passport-local": "^1.0.0", "progress": "^2.0.3", + "read-last-lines": "^1.7.2", "shortid": "^2.2.15", "unzipper": "^0.10.10", "uuidv4": "^6.0.6", diff --git a/backend/public/1-es2015.69c7d04ec9d3867ff817.js b/backend/public/1-es2015.6bc1f7cd24dfb6add92c.js similarity index 70% rename from backend/public/1-es2015.69c7d04ec9d3867ff817.js rename to backend/public/1-es2015.6bc1f7cd24dfb6add92c.js index 970d4722..4ab822f9 100644 --- a/backend/public/1-es2015.69c7d04ec9d3867ff817.js +++ b/backend/public/1-es2015.6bc1f7cd24dfb6add92c.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"2Yyj":function(t,e,i){var n,s,a;!function(o){if("object"==typeof t.exports){var r=o(0,e);void 0!==r&&(t.exports=r)}else s=[i,e],void 0===(a="function"==typeof(n=o)?n.apply(e,s):n)||(t.exports=a)}((function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=void 0;e.default=["es",[["a.\xa0m.","p.\xa0m."],i,i],i,[["D","L","M","X","J","V","S"],["dom.","lun.","mar.","mi\xe9.","jue.","vie.","s\xe1b."],["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"],["DO","LU","MA","MI","JU","VI","SA"]],i,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],i,[["a. C.","d. C."],i,["antes de Cristo","despu\xe9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1} {0}",i,"{1}, {0}",i],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{AUD:[i,"$"],BRL:[i,"R$"],CNY:[i,"\xa5"],EGP:[],ESP:["\u20a7"],GBP:[i,"\xa3"],HKD:[i,"$"],ILS:[i,"\u20aa"],INR:[i,"\u20b9"],JPY:[i,"\xa5"],KRW:[i,"\u20a9"],MXN:[i,"$"],NZD:[i,"$"],RON:[i,"L"],THB:["\u0e3f"],TWD:[i,"NT$"],USD:["US$","$"],XAF:[],XCD:[i,"$"],XOF:[]},"ltr",function(t){return 1===t?1:5}]}))},"4fRq":function(t,e){var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(i){var n=new Uint8Array(16);t.exports=function(){return i(n),n}}else{var s=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),s[e]=t>>>((3&e)<<3)&255;return s}}},"6BPK":function(t,e,i){var n,s;!function(a,o,r){"use strict";"undefined"!=typeof window&&i("PDX0")?void 0===(s="function"==typeof(n=r)?n.call(e,i,e,t):n)||(t.exports=s):t.exports?t.exports=r():o.exports?o.exports=r():o.Fingerprint2=r()}(0,this,(function(){"use strict";var t=function(t,e){var i=[0,0,0,0];return i[3]+=(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3]+(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]+e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]+e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]+e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},e=function(t,e){var i=[0,0,0,0];return i[3]+=(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3]*(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]*e[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=t[3]*e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]*e[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[2]*e[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[3]*e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},i=function(t,e){return 32==(e%=64)?[t[1],t[0]]:e<32?[t[0]<>>32-e,t[1]<>>32-e]:[t[1]<<(e-=32)|t[0]>>>32-e,t[0]<>>32-e]},n=function(t,e){return 0==(e%=64)?t:e<32?[t[0]<>>32-e,t[1]<>>1]),t=e(t,[4283543511,3981806797]),t=s(t,[0,t[0]>>>1]),t=e(t,[3301882366,444984403]),s(t,[0,t[0]>>>1])},o=function(o,r){for(var l=(o=o||"").length%16,c=o.length-l,d=[0,r=r||0],h=[0,r],u=[0,0],p=[0,0],m=[2277735313,289559509],g=[1291169091,658871167],f=0;f>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)+("00000000"+(h[0]>>>0).toString(16)).slice(-8)+("00000000"+(h[1]>>>0).toString(16)).slice(-8)},r={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},l=function(t,e){if(Array.prototype.forEach&&t.forEach===Array.prototype.forEach)t.forEach(e);else if(t.length===+t.length)for(var i=0,n=t.length;ie.name?1:t.name=0?"Windows Phone":e.indexOf("win")>=0?"Windows":e.indexOf("android")>=0?"Android":e.indexOf("linux")>=0||e.indexOf("cros")>=0?"Linux":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0?"iOS":e.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==t&&"Android"!==t&&"iOS"!==t&&"Other"!==t)return!0;if(void 0!==i){if((i=i.toLowerCase()).indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t)return!0;if(i.indexOf("linux")>=0&&"Linux"!==t&&"Android"!==t)return!0;if(i.indexOf("mac")>=0&&"Mac"!==t&&"iOS"!==t)return!0;if((-1===i.indexOf("win")&&-1===i.indexOf("linux")&&-1===i.indexOf("mac"))!=("Other"===t))return!0}return n.indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t||(n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==t&&"Android"!==t||(n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==t&&"iOS"!==t||(n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0)!=("Other"===t)||void 0===navigator.plugins&&"Windows"!==t&&"Windows Phone"!==t}())}},{key:"hasLiedBrowser",getData:function(t){t(function(){var t,e=navigator.userAgent.toLowerCase(),i=navigator.productSub;if(("Chrome"==(t=e.indexOf("firefox")>=0?"Firefox":e.indexOf("opera")>=0||e.indexOf("opr")>=0?"Opera":e.indexOf("chrome")>=0?"Chrome":e.indexOf("safari")>=0?"Safari":e.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===t||"Opera"===t)&&"20030107"!==i)return!0;var n,s=eval.toString().length;if(37===s&&"Safari"!==t&&"Firefox"!==t&&"Other"!==t)return!0;if(39===s&&"Internet Explorer"!==t&&"Other"!==t)return!0;if(33===s&&"Chrome"!==t&&"Opera"!==t&&"Other"!==t)return!0;try{throw"a"}catch(a){try{a.toSource(),n=!0}catch(o){n=!1}}return n&&"Firefox"!==t&&"Other"!==t}())}},{key:"touchSupport",getData:function(t){t(function(){var t,e=0;void 0!==navigator.maxTouchPoints?e=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(e=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(i){t=!1}return[e,t,"ontouchstart"in window]}())}},{key:"fonts",getData:function(t,e){var i=["monospace","sans-serif","serif"],n=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];e.fonts.extendedJsFonts&&(n=n.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),n=(n=n.concat(e.fonts.userDefinedFonts)).filter((function(t,e){return n.indexOf(t)===e}));var s=document.getElementsByTagName("body")[0],a=document.createElement("div"),o=document.createElement("div"),r={},l={},c=function(){var t=document.createElement("span");return t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="72px",t.style.fontStyle="normal",t.style.fontWeight="normal",t.style.letterSpacing="normal",t.style.lineBreak="auto",t.style.lineHeight="normal",t.style.textTransform="none",t.style.textAlign="left",t.style.textDecoration="none",t.style.textShadow="none",t.style.whiteSpace="normal",t.style.wordBreak="normal",t.style.wordSpacing="normal",t.innerHTML="mmmmmmmmmmlli",t},d=function(t,e){var i=c();return i.style.fontFamily="'"+t+"',"+e,i},h=function(t){for(var e=!1,n=0;n=t.components.length)e(i.data);else{var o=t.components[n];if(t.excludes[o.key])s(!1);else{if(!a&&o.pauseBefore)return n-=1,void setTimeout((function(){s(!0)}),1);try{o.getData((function(t){i.addPreprocessedComponent(o.key,t),s(!1)}),t)}catch(r){i.addPreprocessedComponent(o.key,String(r)),s(!1)}}}};s(!1)},f.getPromise=function(t){return new Promise((function(e,i){f.get(t,e)}))},f.getV18=function(t,e){return null==e&&(e=t,t={}),f.get(t,(function(i){for(var n=[],s=0;s=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype?function(t,a,o){var r=s.URL||s.webkitURL,l=document.createElement("a");l.download=a=a||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?n(l):i(l.href)?e(t,a,o):n(l,l.target="_blank")):(l.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(l.href)}),4e4),setTimeout((function(){n(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,s,a){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,a),s);else if(i(t))e(t,s,a);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){n(o)}))}}:function(t,i,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var o="application/octet-stream"===t.type,r=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&r)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},c.readAsDataURL(t)}else{var d=s.URL||s.webkitURL,h=d.createObjectURL(t);a?a.location=h:location.href=h,a=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});s.saveAs=a.saveAs=a,t.exports=a})?n.apply(e,[]):n)||(t.exports=s)},PDX0:function(t,e){(function(e){t.exports=e}).call(this,{})},XypG:function(t,e){},ZAI4:function(t,e,i){"use strict";i.r(e),i.d(e,"isVisible",(function(){return VR})),i.d(e,"AppModule",(function(){return jR}));var n=i("jhN1"),s=i("fXoL");class a{}function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function r(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:3,steps:t,options:e}}function c(t,e=null){return{type:2,steps:t,options:e}}function d(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function u(t){return{type:5,steps:t}}function p(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function m(t=null){return{type:9,options:t}}function g(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function f(t){Promise.resolve(null).then(t)}class b{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){f(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?f(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){let t=0;return this.players.forEach(e=>{const i=e.getPosition();t=Math.min(i,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function v(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function y(t){switch(t.length){case 0:return new b;case 1:return t[0];default:return new _(t)}}function w(t,e,i,n,s={},a={}){const o=[],r=[];let l=-1,c=null;if(n.forEach(t=>{const i=t.offset,n=i==l,d=n&&c||{};Object.keys(t).forEach(i=>{let n=i,r=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),r){case"!":r=s[i];break;case"*":r=a[i];break;default:r=e.normalizeStyleValue(i,n,r,o)}d[n]=r}),n||r.push(d),c=d,l=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return r}function x(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&k(i,"start",t)));break;case"done":t.onDone(()=>n(i&&k(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&k(i,"destroy",t)))}}function k(t,e,i){const n=i.totalTime,s=C(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),a=t._data;return null!=a&&(s._data=a),s}function C(t,e,i,n,s="",a=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:a,disabled:!!o}}function S(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function I(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let D=(t,e)=>!1,E=(t,e)=>!1,O=(t,e,i)=>[];const A=v();(A||"undefined"!=typeof Element)&&(D=(t,e)=>t.contains(e),E=(()=>{if(A||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):E}})(),O=(t,e,i)=>{let n=[];if(i)n.push(...t.querySelectorAll(e));else{const i=t.querySelector(e);i&&n.push(i)}return n});let P=null,T=!1;function R(t){P||(P=("undefined"!=typeof document?document.body:null)||{},T=!!P.style&&"WebkitAppearance"in P.style);let e=!0;return P.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in P.style,!e&&T)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in P.style),e}const M=E,F=D,N=O;function z(t){const e={};return Object.keys(t).forEach(i=>{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let L=(()=>{class t{validateStyleProperty(t){return R(t)}matchesElement(t,e){return M(t,e)}containsElement(t,e){return F(t,e)}query(t,e,i){return N(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,a=[],o){return new b(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{}return t.NOOP=new L,t})();function J(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:V(parseFloat(e[1]),e[2])}function V(t,e){switch(e){case"s":return 1e3*t;default:return t}}function j(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,a="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=V(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(s=V(parseFloat(o),i[4]));const r=i[5];r&&(a=r)}else n=t;if(!i){let i=!1,a=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(a,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:a}}(t,e,i)}function $(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function H(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else $(t,i);return i}function U(t,e,i){return i?e+":"+i+";":""}function G(t){let e="";for(let i=0;i{const s=et(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),v()&&G(t))}function q(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=et(e);t.style[i]=""}),v()&&G(t))}function K(t){return Array.isArray(t)?1==t.length?t[0]:c(t):t}const X=new RegExp("{{\\s*(.+?)\\s*}}","g");function Y(t){let e=[];if("string"==typeof t){let i;for(;i=X.exec(t);)e.push(i[1]);X.lastIndex=0}return e}function Z(t,e,i){const n=t.toString(),s=n.replace(X,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function Q(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const tt=/-+([a-z0-9])/g;function et(t){return t.replace(tt,(...t)=>t[1].toUpperCase())}function it(t,e){return 0===t||0===e}function nt(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let a=e[0],o=[];if(n.forEach(t=>{a.hasOwnProperty(t)||o.push(t),a[t]=i[t]}),o.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],a=n[2],o=n[3];e.push(ct(s,o)),"<"!=a[0]||"*"==s&&"*"==o||e.push(ct(o,s))}(t,i,e)):i.push(t),i}const rt=new Set(["true","1"]),lt=new Set(["false","0"]);function ct(t,e){const i=rt.has(t)||lt.has(t),n=rt.has(e)||lt.has(e);return(s,a)=>{let o="*"==t||t==s,r="*"==e||e==a;return!o&&i&&"boolean"==typeof s&&(o=s?rt.has(t):lt.has(t)),!r&&n&&"boolean"==typeof a&&(r=a?rt.has(e):lt.has(e)),o&&r}}const dt=new RegExp("s*:selfs*,?","g");function ht(t,e,i){return new ut(t).build(e,i)}class ut{constructor(t){this._driver=t}build(t,e){const i=new pt(e);return this._resetContextStyleTimingState(i),st(this,K(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,a.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:a,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,a=n||{};if(i.styles.forEach(t=>{if(mt(t)){const e=t;Object.keys(e).forEach(t=>{Y(e[t]).forEach(t=>{a.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=Q(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=st(this,K(t.animation),e);return{type:1,matchers:ot(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:gt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>st(this,t,e)),options:gt(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=st(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:gt(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return ft(j(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ft(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||j(n,e),ft(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:d({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,a=!1;if(!s){a=!0;const t={};i.easing&&(t.easing=i.easing),s=d(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=a,n=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(mt(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const a=e.collectedStyles[e.currentQuerySelector],o=a[i];let r=!0;o&&(s!=n&&s>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),r=!1),s=o.startTime),r&&(a[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=Y(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let a=!1,o=!1,r=0;const l=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(mt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(mt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),c=0;return null!=l&&(n++,c=i.offset=l),o=o||c<0||c>1,a=a||c0&&n{const a=d>0?n==h?1:d*n:s[n],o=a*m;e.currentTime=u+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=a,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:st(this,K(t.animation),e),options:gt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:gt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:gt(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,a]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(dt,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,S(e.collectedStyles,e.currentQuerySelector,{});const o=st(this,K(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:o,originalSelector:t.selector,options:gt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:j(t.timings,e.errors,!0);return{type:12,animation:st(this,K(t.animation),e),timings:i,options:null}}}class pt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function mt(t){return!Array.isArray(t)&&"object"==typeof t}function gt(t){var e;return t?(t=$(t)).params&&(t.params=(e=t.params)?$(e):null):t={},t}function ft(t,e,i){return{duration:t,delay:e,easing:i}}function bt(t,e,i,n,s,a,o=null,r=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:a,totalTime:s+a,easing:o,subTimeline:r}}class _t{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const vt=new RegExp(":enter","g"),yt=new RegExp(":leave","g");function wt(t,e,i,n,s,a={},o={},r,l,c=[]){return(new xt).buildKeyframes(t,e,i,n,s,a,o,r,l,c)}class xt{buildKeyframes(t,e,i,n,s,a,o,r,l,c=[]){l=l||new _t;const d=new Ct(t,e,l,n,s,c,[]);d.options=r,d.currentTimeline.setStyles([a],null,d.errors,r),st(this,i,d);const h=d.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,d.errors,r)}return h.length?h.map(t=>t.buildKeyframes()):[bt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,n,n.options);s!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?J(i.duration):null,a=null!=i.delay?J(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,a);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),st(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=kt);const t=J(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>st(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?J(t.options.delay):0;t.steps.forEach(a=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),st(this,a,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return j(e.params?Z(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(t=>{a.forwardTime((t.offset||0)*s),a.setStyles(t.styles,t.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?J(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=kt);let a=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let r=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);s&&o.delayNextStep(s),i===e.element&&(r=o.currentTimeline),st(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),r&&(e.currentTimeline.mergeTimelineCollectedStyles(r),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,a=Math.abs(s.duration),o=a*(e.currentQueryTotal-1);let r=a*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":r=o-r;break;case"full":r=i.currentStaggerTime}const l=e.currentTimeline;r&&l.delayNextStep(r);const c=l.currentTime;st(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}const kt={};class Ct{constructor(t,e,i,n,s,a,o,r){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=r||new St(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=J(i.duration)),null!=i.delay&&(n.delay=J(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=Z(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new Ct(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=kt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new It(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,a){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(vt,"."+this._enterClassName)).replace(yt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),o.push(...e)}return s||0!=o.length||a.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class St{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new St(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},a=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]="*"})):H(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(a).forEach(t=>{const e=Z(a[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,a)=>{const o=H(s,!0);Object.keys(o).forEach(i=>{const n=o[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(o.offset=a/this.duration),n.push(o)});const s=t.size?Q(t.values()):[],a=e.size?Q(e.values()):[];if(i){const t=n[0],e=$(t);t.offset=0,e.offset=1,n=[t,e]}return bt(this.element,n,s,a,this.duration,this.startTime,this.easing,!1)}}class It extends St{constructor(t,e,i,n,s,a,o=!1){super(t,e,a.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],a=i+e,o=e/a,r=H(t[0],!1);r.offset=0,s.push(r);const l=H(t[0],!1);l.offset=Dt(o),s.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let o=H(t[n],!1);o.offset=Dt((e+o.offset*i)/a),s.push(o)}i=a,e=0,n="",t=s}return bt(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Dt(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Et{}class Ot extends Et{normalizePropertyName(t,e){return et(t)}normalizeStyleValue(t,e,i,n){let s="";const a=i.toString().trim();if(At[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return a+s}}const At=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Pt(t,e,i,n,s,a,o,r,l,c,d,h,u){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:a,toState:n,toStyles:o,timelines:r,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:h,errors:u}}const Tt={};class Rt{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],a=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):a}build(t,e,i,n,s,a,o,r,l,c){const d=[],h=this.ast.options&&this.ast.options.params||Tt,u=this.buildStyles(i,o&&o.params||Tt,d),p=r&&r.params||Tt,m=this.buildStyles(n,p,d),g=new Set,f=new Map,b=new Map,_="void"===n,v={params:Object.assign(Object.assign({},h),p)},y=c?[]:wt(t,e,this.ast.animation,s,a,u,m,v,l,d);let w=0;if(y.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),d.length)return Pt(e,this._triggerName,i,n,_,u,m,[],[],f,b,w,d);y.forEach(t=>{const i=t.element,n=S(f,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=S(b,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const x=Q(g.values());return Pt(e,this._triggerName,i,n,_,u,m,y,x,f,b,w)}}class Mt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=$(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let a=s[t];a.length>1&&(a=Z(a,n,e)),i[t]=a})}}),i}}class Ft{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Mt(t.style,t.options&&t.options.params||{})}),Nt(this.states,"true","1"),Nt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Rt(t,e,this.states))}),this.fallbackTransition=new Rt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Nt(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const zt=new _t;class Lt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=ht(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=w(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let a;const o=new Map;if(s?(a=wt(this._driver,e,s,"ng-enter","ng-leave",{},{},i,zt,n),a.forEach(t=>{const e=S(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),a=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const r=y(a.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=r,r.onDestroy(()=>this.destroy(t)),this.players.push(r),r}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=C(e,"","","");return x(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Bt=[],Jt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class jt{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=$(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const $t=new jt("void");class Ht{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Yt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const a=S(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};a.push(o);const r=S(this._engine.statesByElement,t,{});return r.hasOwnProperty(e)||(Yt(t,"ng-trigger"),Yt(t,"ng-trigger-"+e),r[e]=$t),()=>{this._engine.afterFlush(()=>{const t=a.indexOf(o);t>=0&&a.splice(t,1),this._triggers[e]||delete r[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),a=new Gt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Yt(t,"ng-trigger"),Yt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let r=o[e];const l=new jt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&r&&l.absorbOptions(r.options),o[e]=l,r||(r=$t),"void"!==l.value&&r.value===l.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{q(t,i),W(t,n)})}return}const c=S(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let d=s.matchTransition(r.value,l.value,t,l.params),h=!1;if(!d){if(!n)return;d=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:d,fromState:r,toState:l,player:a,isFallbackTransition:h}),h||(Yt(t,"ng-animate-queued"),a.onStart(()=>{Zt(t,"ng-animate-queued")})),a.onDone(()=>{let e=this.players.indexOf(a);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(a);t>=0&&i.splice(t,1)}}),this.players.push(a),c.push(a),a}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const a=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&a.push(i)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&y(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const i=new Set;e.forEach(e=>{const n=e.name;if(i.has(n))return;i.add(n);const s=this._triggers[n].fallbackTransition,a=this._engine.statesByElement.get(t)[n]||$t,o=new jt("void"),r=new Gt(this.id,n,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:s,fromState:a,toState:o,player:r,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==Jt||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Yt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,a=this._elementListeners.get(s);a&&a.forEach(e=>{if(e.name==i.triggerName){const n=C(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,x(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Ut{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Ht(t,e,this);return e.parentNode?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Yt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Zt(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(Wt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return Wt(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return y(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Jt,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?y(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new _t,n=[],s=new Map,a=[],o=new Map,r=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+m++;p.set(e,i),t.forEach(t=>Yt(t,i))});const g=[],f=new Set,b=new Set;for(let y=0;yf.add(t)):b.add(t))}const _=new Map,v=Xt(h,Array.from(f));v.forEach((t,e)=>{const i="ng-leave"+m++;_.set(e,i),t.forEach(t=>Yt(t,i))}),t.push(()=>{u.forEach((t,e)=>{const i=p.get(e);t.forEach(t=>Zt(t,i))}),v.forEach((t,e)=>{const i=_.get(e);t.forEach(t=>Zt(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const w=[],x=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(w.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!d||!this.driver.containsElement(d,s),h=_.get(s),u=p.get(s),m=this._buildInstruction(t,i,u,h,c);if(!m.errors||!m.errors.length)return c||t.isFallbackTransition?(e.onStart(()=>q(s,m.fromStyles)),e.onDestroy(()=>W(s,m.toStyles)),void n.push(e)):(m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,m.timelines),a.push({instruction:m,player:e,element:s}),m.queriedElements.forEach(t=>S(o,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=r.get(e);t||r.set(e,t=new Set),i.forEach(e=>t.add(e))}}),void m.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=l.get(e);n||l.set(e,n=new Set),i.forEach(t=>n.add(t))}));x.push(m)});if(x.length){const t=[];x.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),w.forEach(t=>t.destroy()),this.reportError(t)}const k=new Map,C=new Map;a.forEach(t=>{const e=t.element;i.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,k))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{S(k,e,[]).push(t),t.destroy()})});const I=g.filter(t=>te(t,r,l)),D=new Map;Kt(D,this.driver,b,l,"*").forEach(t=>{te(t,r,l)&&I.push(t)});const E=new Map;u.forEach((t,e)=>{Kt(E,this.driver,new Set(t),r,"!")}),I.forEach(t=>{const e=D.get(t),i=E.get(t);D.set(t,Object.assign(Object.assign({},e),i))});const O=[],A=[],P={};a.forEach(t=>{const{element:e,player:a,instruction:o}=t;if(i.has(e)){if(c.has(e))return a.onDestroy(()=>W(e,o.toStyles)),a.disabled=!0,a.overrideTotalTime(o.totalTime),void n.push(a);let t=P;if(C.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=C.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>C.set(e,t))}const i=this._buildAnimation(a.namespaceId,o,k,s,E,D);if(a.setRealPlayer(i),t===P)O.push(a);else{const e=this.playersByElement.get(t);e&&e.length&&(a.parentPlayer=y(e)),n.push(a)}}else q(e,o.fromStyles),a.onDestroy(()=>W(e,o.toStyles)),A.push(a),c.has(e)&&n.push(a)}),A.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=y(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let y=0;y!t.destroyed);n.length?Qt(this,t,n):this.processLeaveNode(t)}return g.length=0,O.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),O}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let a=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(a=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&a.push(e)})}}return(i||n)&&(a=a.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),a}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,r=t!==n,l=S(i,t,[]);this._getPreviousPlayers(t,r,s,a,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}q(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,a){const o=e.triggerName,r=e.element,l=[],c=new Set,d=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const u=h.__ng_removed;if(u&&u.removedBeforeQueried)return new b(e.duration,e.delay);const p=h!==r,m=function(t){const e=[];return function t(e,i){for(let n=0;nt.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),f=a.get(h),v=w(0,this._normalizer,0,e.keyframes,g,f),y=this._buildPlayer(e,v,m);if(e.subTimeline&&n&&d.add(h),p){const e=new Gt(t,o,h);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{S(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Yt(t,"ng-animating"));const u=y(h);return u.onDestroy(()=>{c.forEach(t=>Zt(t,"ng-animating")),W(r,e.toStyles)}),d.forEach(t=>{S(n,t,[]).push(u)}),u}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new b(t.duration,t.delay)}}class Gt{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new b,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>x(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){S(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Wt(t){return t&&1===t.nodeType}function qt(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function Kt(t,e,i,n,s){const a=[];i.forEach(t=>a.push(qt(t)));const o=[];n.forEach((i,n)=>{const a={};i.forEach(t=>{const i=a[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=Vt,o.push(n))}),t.set(n,a)});let r=0;return i.forEach(t=>qt(t,a[r++])),o}function Xt(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let a=s.get(e);if(a)return a;const o=e.parentNode;return a=i.has(o)?o:n.has(o)?1:t(o),s.set(e,a),a}(t);1!==e&&i.get(e).push(t)}),i}function Yt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Zt(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Qt(t,e,i){y(i).onDone(()=>t.processLeaveNode(e))}function te(t,e,i){const n=i.get(t);if(!n)return!1;let s=e.get(t);return s?n.forEach(t=>s.add(t)):e.set(t,n),i.delete(t),!0}class ee{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ut(t,e,i),this._timelineEngine=new Lt(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const a=t+"-"+n;let o=this._triggerCache[a];if(!o){const t=[],e=ht(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Ft(t,e)}(n,e),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(e,n,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=I(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=I(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ie(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=se(e[0]),e.length>1&&(n=se(e[e.length-1]))):e&&(i=se(e)),i||n?new ne(t,i,n):null}let ne=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&W(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(W(this._element,this._initialStyles),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(q(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),W(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function se(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=ue(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),de(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=ue(t,"").split(","),n=ce(i,e);n>=0&&(i.splice(n,1),he(t,"",i.join(",")))}(this._element,this._name))}}function re(t,e,i){he(t,"PlayState",i,le(t,e))}function le(t,e){const i=ue(t,"");return i.indexOf(",")>0?ce(i.split(","),e):ce([i],e)}function ce(t,e){for(let i=0;i=0)return i;return-1}function de(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function he(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function ue(t,e){return t.style["animation"+e]}class pe{constructor(t,e,i,n,s,a,o,r){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=o,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new oe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:at(this.element,i))})}this.currentSnapshot=t}}class me extends b{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=z(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ge{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return R(t)}matchesElement(t,e){return M(t,e)}containsElement(t,e){return F(t,e)}query(t,e,i){return N(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>z(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const a=document.createElement("style");return a.innerHTML=n,a}animate(t,e,i,n,s,a=[],o){o&&this._notifyFaultyScrubber();const r=a.filter(t=>t instanceof pe),l={};it(i,n)&&r.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=nt(t,e,l));if(0==i)return new me(t,c);const d=`gen_css_kf_${this._count++}`,h=this.buildKeyframeElement(t,d,e);document.querySelector("head").appendChild(h);const u=ie(t,e),p=new pe(t,e,d,i,n,s,c,u);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class fe{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:at(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class be{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(_e().toString()),this._cssKeyframesDriver=new ge}validateStyleProperty(t){return R(t)}matchesElement(t,e){return M(t,e)}containsElement(t,e){return F(t,e)}query(t,e,i){return N(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,a=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,a);const r={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(r.easing=s);const l={},c=a.filter(t=>t instanceof fe);it(i,n)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const d=ie(t,e=nt(t,e=e.map(t=>H(t,!1)),l));return new fe(t,e,r,d)}}function _e(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ve=i("ofXK");let ye=(()=>{class t extends a{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:s.db.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?c(t):t;return ke(this._renderer,null,e,"register",[i]),new we(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.Q),s.Sc(ve.e))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();class we extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new xe(this._id,t,e||{},this._renderer)}}class xe{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ke(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function ke(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let Ce=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Se("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const a=e=>{Array.isArray(e)?e.forEach(a):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(a),new Ie(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.Q),s.Sc(ee),s.Sc(s.I))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();class Se{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ie extends Se{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),a="";return"@"!=s.charAt(0)&&([s,a]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,a,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let De=(()=>{class t extends ee{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(ve.e),s.Sc(B),s.Sc(Et))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();const Ee=new s.x("AnimationModuleType"),Oe=[{provide:B,useFactory:function(){return"function"==typeof _e()?new be:new ge}},{provide:Ee,useValue:"BrowserAnimations"},{provide:a,useClass:ye},{provide:Et,useFactory:function(){return new Ot}},{provide:ee,useClass:De},{provide:s.Q,useFactory:function(t,e,i){return new Ce(t,e,i)},deps:[n.d,ee,s.I]}];let Ae=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:Oe,imports:[n.a]}),t})();var Pe=i("XNiG"),Te=i("quSY"),Re=i("z+Ro"),Me=i("yCtX"),Fe=i("jZKg");function Ne(...t){let e=t[t.length-1];return Object(Re.a)(e)?(t.pop(),Object(Fe.a)(t,e)):Object(Me.a)(t)}function ze(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Le=i("7o/Q"),Be=i("KqfI"),Je=i("n6bG");function Ve(t,e,i){return function(n){return n.lift(new je(t,e,i))}}class je{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new $e(t,this.nextOrObserver,this.error,this.complete))}}class $e extends Le.a{constructor(t,e,i,n){super(t),this._tapNext=Be.a,this._tapError=Be.a,this._tapComplete=Be.a,this._tapError=i||Be.a,this._tapComplete=n||Be.a,Object(Je.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Be.a,this._tapError=e.error||Be.a,this._tapComplete=e.complete||Be.a)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class He extends Te.a{constructor(t,e){super()}schedule(t,e=0){return this}}class Ue extends He{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i=!1,n=void 0;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let Ge=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class We extends Ge{constructor(t,e=Ge.now){super(t,()=>We.delegate&&We.delegate!==this?We.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return We.delegate&&We.delegate!==this?We.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const qe=new We(Ue);function Ke(t,e=qe){return i=>i.lift(new Xe(t,e))}class Xe{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Ye(t,this.dueTime,this.scheduler))}}class Ye extends Le.a{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ze,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function Ze(t){t.debouncedNext()}function Qe(t,e){return function(i){return i.lift(new ti(t,e))}}class ti{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new ei(t,this.predicate,this.thisArg))}}class ei extends Le.a{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}var ii=i("lJxs");const ni=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();var si=i("HDdC");const ai=new si.a(t=>t.complete());function oi(t){return t?function(t){return new si.a(e=>t.schedule(()=>e.complete()))}(t):ai}function ri(t){return e=>0===t?oi():e.lift(new li(t))}class li{constructor(t){if(this.total=t,this.total<0)throw new ni}call(t,e){return e.subscribe(new ci(t,this.total))}}class ci extends Le.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function di(t){return null!=t&&"false"!==`${t}`}function hi(t,e=0){return ui(t)?Number(t):e}function ui(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function pi(t){return Array.isArray(t)?t:[t]}function mi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function gi(t){return t instanceof s.r?t.nativeElement:t}let fi;try{fi="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch($R){fi=!1}let bi,_i=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(ve.I)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!fi)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.M,8))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(s.M,8))},token:t,providedIn:"root"}),t})(),vi=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();const yi=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function wi(){if(bi)return bi;if("object"!=typeof document||!document)return bi=new Set(yi),bi;let t=document.createElement("input");return bi=new Set(yi.filter(e=>(t.setAttribute("type",e),t.type===e))),bi}let xi,ki,Ci;function Si(t){return function(){if(null==xi&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xi=!0}))}finally{xi=xi||!1}return xi}()?t:!!t.capture}function Ii(){if("object"!=typeof document||!document)return 0;if(null==ki){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),ki=0,0===t.scrollLeft&&(t.scrollLeft=1,ki=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return ki}function Di(t){if(function(){if(null==Ci){const t="undefined"!=typeof document?document.head:null;Ci=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Ci}()){const e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}let Ei=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.zc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Oi=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=gi(t);return new si.a(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new Pe.a,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Ei))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(Ei))},token:t,providedIn:"root"}),t})(),Ai=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.u,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=hi(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Ke(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Oi),s.Dc(s.r),s.Dc(s.I))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Pi=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Ei]}),t})();function Ti(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Ri=0;const Mi=new Map;let Fi=null,Ni=(()=>{class t{constructor(t){this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Mi.set(e,{messageElement:e,referenceCount:0})):Mi.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Mi.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}Fi&&0===Fi.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=Mi.get(e);!function(t,e,i){const n=Ti(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=Mi.get(e);i.referenceCount--,function(t,e,i){const n=Ti(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=Ti(t,"aria-describedby"),n=Mi.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})();class zi{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Pe.a,this._typeaheadSubscription=Te.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Pe.a,this.change=new Pe.a,t instanceof s.O&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){if(this._items.length&&this._items.some(t=>"function"!=typeof t.getLabel))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ve(t=>this._pressedLetters.push(t)),Ke(t),Qe(()=>this._pressedLetters.length>0),Object(ii.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||ze(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.O?this._items.toArray():this._items}}class Li extends zi{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Bi extends zi{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Ji=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch($R){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===ji(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=ji(t);if(t.hasAttribute("contenteditable"))return-1!==s;if("iframe"===n)return!1;if("audio"===n){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===n){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==n||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Vi(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(_i))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(_i))},token:t,providedIn:"root"}),t})();function Vi(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function ji(t){if(!Vi(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class $i{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], `+`[cdkFocusRegion${t}], `+`[cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(t)}}let Hi=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new $i(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Ji),s.Sc(s.I),s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(Ji),Object(s.Sc)(s.I),Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const Ui=new s.x("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Gi=new s.x("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Wi=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=()=>{this._lastTouchTarget||this._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=t.composedPath?t.composedPath()[0]:t.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Ne(null);const i=gi(t);if(this._elementInfo.has(i)){let t=this._elementInfo.get(i);return t.checkChildren=e,t.subject.asObservable()}let n={unlisten:()=>{},checkChildren:e,subject:new Pe.a};this._elementInfo.set(i,n),this._incrementMonitoredElementCount();let s=t=>this._onFocus(t,i),a=t=>this._onBlur(t,i);return this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",s,!0),i.addEventListener("blur",a,!0)}),n.unlisten=()=>{i.removeEventListener("focus",s,!0),i.removeEventListener("blur",a,!0)},n.subject.asObservable()}stopMonitoring(t){const e=gi(t),i=this._elementInfo.get(e);i&&(i.unlisten(),i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}focusVia(t,e,i){const n=gi(t);this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_setClasses(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){let e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);if(!i||!i.checkChildren&&e!==t.target)return;let n=this._origin;n||(n=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Ki),t.addEventListener("mousedown",this._documentMousedownListener,Ki),t.addEventListener("touchstart",this._documentTouchstartListener,Ki),e.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Ki),t.removeEventListener("mousedown",this._documentMousedownListener,Ki),t.removeEventListener("touchstart",this._documentTouchstartListener,Ki),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.I),s.Sc(_i),s.Sc(ve.e,8),s.Sc(qi,8))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(s.I),Object(s.Sc)(_i),Object(s.Sc)(ve.e,8),Object(s.Sc)(qi,8))},token:t,providedIn:"root"}),t})(),Yi=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.u,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Xi))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();function Zi(t){return 0===t.buttons}let Qi=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=(this._document.defaultView.getComputedStyle(t).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),e){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(_i),s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(_i),Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})(),tn=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)(s.Sc(Qi))},imports:[[vi,Pi]]}),t})();const en=new s.x("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(s.ib)(ve.e)}});let nn=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.u,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(en,8))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(en,8))},token:t,providedIn:"root"}),t})(),sn=(()=>{class t{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new s.u}get dir(){return this._dir}set dir(t){const e=this._dir,i=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===i||"rtl"===i?i:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[s.oc([{provide:nn,useExisting:t}])]}),t})(),an=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();const on=new s.ab("9.2.0");var rn=i("bHdf");function ln(){return Object(rn.a)(1)}function cn(...t){return ln()(Ne(...t))}function dn(...t){const e=t[t.length-1];return Object(Re.a)(e)?(t.pop(),i=>cn(t,i,e)):e=>cn(t,e)}const hn=["*",[["mat-option"],["ng-container"]]],un=["*","mat-option, ng-container"];function pn(t,e){if(1&t&&s.Ec(0,"mat-pseudo-checkbox",3),2&t){const t=s.ad();s.gd("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const mn=["*"];let gn=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),fn=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const bn=new s.ab("9.2.0"),_n=new s.x("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let vn=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Object(s.jb)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const i=e.createElement("div");i.classList.add("mat-theme-loaded-marker"),e.body.appendChild(i);const n=getComputedStyle(i);n&&"none"!==n.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(i)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&bn.full!==on.full&&console.warn("The Angular Material version ("+bn.full+") does not match the Angular CDK version ("+on.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)(s.Sc(Qi),s.Sc(_n,8),s.Sc(ve.e,8))},imports:[[an],an]}),t})();function yn(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t)}}}function wn(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const i=t||e;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function xn(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=di(t)}}}function kn(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:e}}}function Cn(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new Pe.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function Sn(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new si.a(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const In=new s.x("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(s.ib)(s.C)}});class Dn{constructor(){this._localeChanges=new Pe.a}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const En=new s.x("mat-date-formats");let On;try{On="undefined"!=typeof Intl}catch($R){On=!1}const An={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Pn=Mn(31,t=>String(t+1)),Tn={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Rn=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Mn(t,e){const i=Array(t);for(let n=0;n{class t extends Dn{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(On){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Mn(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return An[t]}getDateNames(){if(On){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Mn(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return Pn}getDayOfWeekNames(t){if(On){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Mn(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Tn[t]}getYearName(t){if(On){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(i<1)throw Error(`Invalid date "${i}". Date has to be greater than 0.`);let n=this._createDateWithOverflow(t,e,i);if(n.getMonth()!=e)throw Error(`Invalid date "${i}" for month with index "${e}".`);return n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(On){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(Rn.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date(t,e,i);return t>=0&&t<100&&n.setFullYear(this.getYear(n)-1900),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(In,8),s.Sc(_i))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),Nn=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[{provide:Dn,useClass:Fn}],imports:[[vi]]}),t})();const zn={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ln=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[{provide:En,useValue:zn}],imports:[[Nn]]}),t})(),Bn=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.zc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Jn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function Vn(t,e,i="mat"){t.changes.pipe(dn(t)).subscribe(({length:t})=>{jn(e,`${i}-2-line`,!1),jn(e,`${i}-3-line`,!1),jn(e,`${i}-multi-line`,!1),2===t||3===t?jn(e,`${i}-${t}-line`,!0):t>3&&jn(e,`${i}-multi-line`,!0)})}function jn(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let $n=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();class Hn{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Un={enterDuration:450,exitDuration:400},Gn=Si({passive:!0});class Wn{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=t=>{const e=Zi(t),i=this._lastTouchStartEvent&&Date.now(){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t{this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))},n.isBrowser&&(this._containerElement=gi(i),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Un),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const a=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),o=t-n.left,r=e-n.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${o-a}px`,c.style.top=`${r-a}px`,c.style.height=`${2*a}px`,c.style.width=`${2*a}px`,null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const d=new Hn(this,c,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const t=d===this._mostRecentTransientRipple;d.state=1,i.persistent||t&&this._isPointerDown||d.fadeOut()},l),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Un),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=gi(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((t,i)=>{e.addEventListener(i,t,Gn)})}),this._triggerElement=e)}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_removeTriggerEvents(){this._triggerElement&&this._triggerEvents.forEach((t,e)=>{this._triggerElement.removeEventListener(e,t,Gn)})}}const qn=new s.x("mat-ripple-global-options");let Kn=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new Wn(this,e,t,i),"NoopAnimations"===s&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(_i),s.Dc(qn,8),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),Xn=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn,vi],vn]}),t})(),Yn=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&s.tc("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),Zn=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();class Qn{}const ts=yn(Qn);let es=0,is=(()=>{class t extends ts{constructor(){super(...arguments),this._labelId=`mat-optgroup-label-${es++}`}}return t.\u0275fac=function(e){return ns(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(s.qc("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),s.tc("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[s.mc],ngContentSelectors:un,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(s.fd(hn),s.Jc(0,"label",0),s.Bd(1),s.ed(2),s.Ic(),s.ed(3,1)),2&t&&(s.gd("id",e._labelId),s.pc(1),s.Dd("",e.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();const ns=s.Lc(is);let ss=0;class as{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const os=new s.x("MAT_OPTION_PARENT_COMPONENT");let rs=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${ss++}`,this.onSelectionChange=new s.u,this._stateChanges=new Pe.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=di(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||ze(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new as(this,t))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(os,8),s.Dc(is,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(s.Mc("id",e.id),s.qc("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),s.tc("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:mn,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(s.fd(),s.zd(0,pn,1,2,"mat-pseudo-checkbox",0),s.Jc(1,"span",1),s.ed(2),s.Ic(),s.Ec(3,"div",2)),2&t&&(s.gd("ngIf",e.multiple),s.pc(3),s.gd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[ve.t,Kn,Yn],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function ls(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),a=0;for(let e=0;ei+n?Math.max(0,s-n+e):i}let ds=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[Xn,ve.c,Zn]]}),t})();const hs=new s.x("mat-label-global-options"),us=["mat-button",""],ps=["*"],ms=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class gs{constructor(t){this._elementRef=t}}const fs=wn(yn(xn(gs)));let bs=(()=>{class t extends fs{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of ms)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Xi),s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var i;1&t&&s.Fd(Kn,!0),2&t&&s.md(i=s.Xc())&&(e.ripple=i.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(s.qc("disabled",e.disabled||null),s.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.mc],attrs:us,ngContentSelectors:ps,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"span",0),s.ed(1),s.Ic(),s.Ec(2,"div",1),s.Ec(3,"div",2)),2&t&&(s.pc(2),s.tc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.gd("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Kn],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),_s=(()=>{class t extends bs{constructor(t,e,i){super(e,t,i)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Xi),s.Dc(s.r),s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&s.Wc("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(s.qc("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),s.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[s.mc],attrs:us,ngContentSelectors:ps,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"span",0),s.ed(1),s.Ic(),s.Ec(2,"div",1),s.Ec(3,"div",2)),2&t&&(s.pc(2),s.tc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.gd("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Kn],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),vs=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[Xn,vn],vn]}),t})();function ys(t){return t&&"function"==typeof t.connect}class ws{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Pe.a,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}let xs=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.zc)({factory:function(){return new t},token:t,providedIn:"root"}),t})();var ks=i("DH7j"),Cs=i("XoHu"),Ss=i("Cfvw");function Is(...t){if(1===t.length){const e=t[0];if(Object(ks.a)(e))return Ds(e,null);if(Object(Cs.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Ds(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Ds(t=1===t.length&&Object(ks.a)(t[0])?t[0]:t,null).pipe(Object(ii.a)(t=>e(...t)))}return Ds(t,null)}function Ds(t,e){return new si.a(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let a=0,o=0;for(let r=0;r{c||(c=!0,o++),s[r]=t},error:t=>i.error(t),complete:()=>{a++,a!==n&&c||(o===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}const Es=new s.x("NgValueAccessor"),Os={provide:Es,useExisting:Object(s.hb)(()=>As),multi:!0};let As=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.P),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&s.Wc("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[s.oc([Os])]}),t})();const Ps={provide:Es,useExisting:Object(s.hb)(()=>Rs),multi:!0},Ts=new s.x("CompositionEventMode");let Rs=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(ve.N)()?Object(ve.N)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.P),s.Dc(s.r),s.Dc(Ts,8))},t.\u0275dir=s.yc({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&s.Wc("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[s.oc([Ps])]}),t})(),Ms=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t}),t})(),Fs=(()=>{class t extends Ms{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Ns(e||t)},t.\u0275dir=s.yc({type:t,features:[s.mc]}),t})();const Ns=s.Lc(Fs);function zs(){throw new Error("unimplemented")}class Ls extends Ms{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return zs()}get asyncValidator(){return zs()}}class Bs{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let Js=(()=>{class t extends Bs{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ls,2))},t.\u0275dir=s.yc({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.tc("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[s.mc]}),t})(),Vs=(()=>{class t extends Bs{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Fs,2))},t.\u0275dir=s.yc({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.tc("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[s.mc]}),t})();function js(t){return null==t||0===t.length}const $s=new s.x("NgValidators"),Hs=new s.x("NgAsyncValidators"),Us=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Gs{static min(t){return e=>{if(js(e.value)||js(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(js(e.value)||js(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return js(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return js(t.value)||Us.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(js(e.value))return null;const i=e.value?e.value.length:0;return i{const i=e.value?e.value.length:0;return i>t?{maxlength:{requiredLength:t,actualLength:i}}:null}}static pattern(t){if(!t)return Gs.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(js(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Ws);return 0==e.length?null:function(t){return Ks(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Ws);return 0==e.length?null:function(t){return Is(function(t,e){return e.map(e=>e(t))}(t,e).map(qs)).pipe(Object(ii.a)(Ks))}}}function Ws(t){return null!=t}function qs(t){const e=Object(s.Sb)(t)?Object(Ss.a)(t):t;if(!Object(s.Rb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Ks(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Xs(t){return t.validate?e=>t.validate(e):t}function Ys(t){return t.validate?e=>t.validate(e):t}const Zs={provide:Es,useExisting:Object(s.hb)(()=>Qs),multi:!0};let Qs=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.P),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&s.Wc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[s.oc([Zs])]}),t})();const ta={provide:Es,useExisting:Object(s.hb)(()=>ia),multi:!0};let ea=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),ia=(()=>{class t{constructor(t,e,i,n){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Ls),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.P),s.Dc(s.r),s.Dc(ea),s.Dc(s.y))},t.\u0275dir=s.yc({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&s.Wc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[s.oc([ta])]}),t})();const na={provide:Es,useExisting:Object(s.hb)(()=>sa),multi:!0};let sa=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.P),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&s.Wc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[s.oc([na])]}),t})();const aa='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',oa='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ra='\n
\n
\n \n
\n
';class la{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${aa}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${oa}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${ra}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${aa}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${oa}`)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(t){console.warn(`\n It looks like you're using ngModel on the same form field as ${t}. \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}const ca={provide:Es,useExisting:Object(s.hb)(()=>ha),multi:!0};function da(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let ha=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=s.Tb}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=da(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.P),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&s.Wc("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[s.oc([ca])]}),t})(),ua=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(da(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.P),s.Dc(ha,9))},t.\u0275dir=s.yc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const pa={provide:Es,useExisting:Object(s.hb)(()=>ga),multi:!0};function ma(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let ga=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=s.Tb}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(ma(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(ma(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.P),s.Dc(ga,9))},t.\u0275dir=s.yc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function ba(t,e){return[...e.path,t]}function _a(t,e){t||xa(e,"Cannot find control with"),e.valueAccessor||xa(e,"No value accessor for form control with"),t.validator=Gs.compose([t.validator,e.validator]),t.asyncValidator=Gs.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&va(t,e)})}(t,e),function(t,e){t.registerOnChange((t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&va(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function va(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ya(t,e){null==t&&xa(e,"Cannot find control with"),t.validator=Gs.compose([t.validator,e.validator]),t.asyncValidator=Gs.composeAsync([t.asyncValidator,e.asyncValidator])}function wa(t){return xa(t,"There is no FormControl instance attached to form control element with")}function xa(t,e){let i;throw i=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${i}`)}function ka(t){return null!=t?Gs.compose(t.map(Xs)):null}function Ca(t){return null!=t?Gs.composeAsync(t.map(Ys)):null}function Sa(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object(s.Tb)(e,i.currentValue)}const Ia=[As,sa,Qs,ha,ga,ia];function Da(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Ea(t,e){if(!e)return null;Array.isArray(e)||xa(t,"Value accessor was not provided as an array for form control with");let i=void 0,n=void 0,s=void 0;return e.forEach(e=>{var a;e.constructor===Rs?i=e:(a=e,Ia.some(t=>a.constructor===t)?(n&&xa(t,"More than one built-in value accessor matches form control with"),n=e):(s&&xa(t,"More than one custom value accessor matches form control with"),s=e))}),s||n||i||(xa(t,"No valid value accessor for form control with"),null)}function Oa(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function Aa(t,e,i,n){Object(s.jb)()&&"never"!==n&&((null!==n&&"once"!==n||e._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(la.ngModelWarning(t),e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function Pa(t){const e=Ra(t)?t.validators:t;return Array.isArray(e)?ka(e):e||null}function Ta(t,e){const i=Ra(e)?e.asyncValidators:t;return Array.isArray(i)?Ca(i):i||null}function Ra(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Ma{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=Pa(t)}setAsyncValidators(t){this.asyncValidator=Ta(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=qs(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof Na?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof za&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new s.u,this.statusChanges=new s.u}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ra(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Fa extends Ma{constructor(t=null,e,i){super(Pa(e),Ta(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Na extends Ma{constructor(t,e,i){super(Pa(e),Ta(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof Fa?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((i,n)=>{e=e||this.contains(n)&&t(i)}),e}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class za extends Ma{constructor(t,e,i){super(Pa(e),Ta(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Fa?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const La={provide:Fs,useExisting:Object(s.hb)(()=>Ja)},Ba=(()=>Promise.resolve(null))();let Ja=(()=>{class t extends Fs{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.u,this.form=new Na({},ka(t),Ca(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ba.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),_a(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ba.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Oa(this._directives,t)})}addFormGroup(t){Ba.then(()=>{const e=this._findContainer(t.path),i=new Na({});ya(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ba.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Ba.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Da(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(s.Dc($s,10),s.Dc(Hs,10))},t.\u0275dir=s.yc({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.Wc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.oc([La]),s.mc]}),t})(),Va=(()=>{class t extends Fs{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ba(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ka(this._validators)}get asyncValidator(){return Ca(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return ja(e||t)},t.\u0275dir=s.yc({type:t,features:[s.mc]}),t})();const ja=s.Lc(Va);class $a{static modelParentException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive "formControlName" instead. Example:\n\n ${aa}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n `)}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${oa}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${ra}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${oa}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${ra}`)}}const Ha={provide:Fs,useExisting:Object(s.hb)(()=>Ua)};let Ua=(()=>{class t extends Va{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){this._parent instanceof t||this._parent instanceof Ja||$a.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Fs,5),s.Dc($s,10),s.Dc(Hs,10))},t.\u0275dir=s.yc({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[s.oc([Ha]),s.mc]}),t})();const Ga={provide:Ls,useExisting:Object(s.hb)(()=>qa)},Wa=(()=>Promise.resolve(null))();let qa=(()=>{class t extends Ls{constructor(t,e,i,n){super(),this.control=new Fa,this._registered=!1,this.update=new s.u,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=Ea(this,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Sa(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?ba(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ka(this._rawValidators)}get asyncValidator(){return Ca(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){_a(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Ua)&&this._parent instanceof Va?$a.formGroupNameException():this._parent instanceof Ua||this._parent instanceof Ja||$a.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||$a.missingNameException()}_updateValue(t){Wa.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Wa.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Fs,9),s.Dc($s,10),s.Dc(Hs,10),s.Dc(Es,10))},t.\u0275dir=s.yc({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[s.oc([Ga]),s.mc,s.nc]}),t})(),Ka=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Xa=new s.x("NgModelWithFormControlWarning"),Ya={provide:Ls,useExisting:Object(s.hb)(()=>Za)};let Za=(()=>{class t extends Ls{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new s.u,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=Ea(this,i)}set isDisabled(t){la.disabledAttrWarning()}ngOnChanges(e){this._isControlChanged(e)&&(_a(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Sa(e,this.viewModel)&&(Aa("formControl",t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return ka(this._rawValidators)}get asyncValidator(){return Ca(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(s.Dc($s,10),s.Dc(Hs,10),s.Dc(Es,10),s.Dc(Xa,8))},t.\u0275dir=s.yc({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s.oc([Ya]),s.mc,s.nc]}),t._ngModelWarningSentOnce=!1,t})();const Qa={provide:Fs,useExisting:Object(s.hb)(()=>to)};let to=(()=>{class t extends Fs{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new s.u}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return _a(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Oa(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);ya(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);ya(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Da(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>wa(e)),e.valueAccessor.registerOnTouched(()=>wa(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&_a(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=ka(this._validators);this.form.validator=Gs.compose([this.form.validator,t]);const e=Ca(this._asyncValidators);this.form.asyncValidator=Gs.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||la.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc($s,10),s.Dc(Hs,10))},t.\u0275dir=s.yc({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.Wc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.oc([Qa]),s.mc,s.nc]}),t})();const eo={provide:Fs,useExisting:Object(s.hb)(()=>io)};let io=(()=>{class t extends Va{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){ao(this._parent)&&la.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Fs,13),s.Dc($s,10),s.Dc(Hs,10))},t.\u0275dir=s.yc({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[s.oc([eo]),s.mc]}),t})();const no={provide:Fs,useExisting:Object(s.hb)(()=>so)};let so=(()=>{class t extends Fs{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ba(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return ka(this._validators)}get asyncValidator(){return Ca(this._asyncValidators)}_checkParentType(){ao(this._parent)&&la.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Fs,13),s.Dc($s,10),s.Dc(Hs,10))},t.\u0275dir=s.yc({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[s.oc([no]),s.mc]}),t})();function ao(t){return!(t instanceof io||t instanceof to||t instanceof so)}const oo={provide:Ls,useExisting:Object(s.hb)(()=>ro)};let ro=(()=>{class t extends Ls{constructor(t,e,i,n,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new s.u,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=Ea(this,n)}set isDisabled(t){la.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),Sa(e,this.viewModel)&&(Aa("formControlName",t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return ba(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ka(this._rawValidators)}get asyncValidator(){return Ca(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof io)&&this._parent instanceof Va?la.ngModelGroupException():this._parent instanceof io||this._parent instanceof to||this._parent instanceof so||la.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Fs,13),s.Dc($s,10),s.Dc(Hs,10),s.Dc(Es,10),s.Dc(Xa,8))},t.\u0275dir=s.yc({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s.oc([oo]),s.mc,s.nc]}),t._ngModelWarningSentOnce=!1,t})();const lo={provide:$s,useExisting:Object(s.hb)(()=>ho),multi:!0},co={provide:$s,useExisting:Object(s.hb)(()=>uo),multi:!0};let ho=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!==`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?Gs.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("required",e.required?"":null)},inputs:{required:"required"},features:[s.oc([lo])]}),t})(),uo=(()=>{class t extends ho{validate(t){return this.required?Gs.requiredTrue(t):null}}return t.\u0275fac=function(e){return po(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("required",e.required?"":null)},features:[s.oc([co]),s.mc]}),t})();const po=s.Lc(uo),mo={provide:$s,useExisting:Object(s.hb)(()=>go),multi:!0};let go=(()=>{class t{set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?Gs.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[s.oc([mo])]}),t})();const fo={provide:$s,useExisting:Object(s.hb)(()=>bo),multi:!0};let bo=(()=>{class t{ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Gs.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[s.oc([fo]),s.nc]}),t})();const _o={provide:$s,useExisting:Object(s.hb)(()=>vo),multi:!0};let vo=(()=>{class t{ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Gs.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[s.oc([_o]),s.nc]}),t})();const yo={provide:$s,useExisting:Object(s.hb)(()=>wo),multi:!0};let wo=(()=>{class t{ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Gs.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[s.oc([yo]),s.nc]}),t})(),xo=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})(),ko=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n=null,s=null,a=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(n=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,a=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new Na(i,{asyncValidators:s,updateOn:a,validators:n})}control(t,e,i){return new Fa(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new za(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof Fa||t instanceof Na||t instanceof za?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),Co=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[ea],imports:[xo]}),t})(),So=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Xa,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[ko,ea],imports:[xo]}),t})();const Io=["button"],Do=["*"],Eo=new s.x("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),Oo={provide:Es,useExisting:Object(s.hb)(()=>Ro),multi:!0};class Ao{}let Po=0;class To{constructor(t,e){this.source=t,this.value=e}}let Ro=(()=>{class t{constructor(t,e){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${Po++}`,this.valueChange=new s.u,this.change=new s.u,this.appearance=e&&e.appearance?e.appearance:"standard"}get name(){return this._name}set name(t){this._name=t,this._buttonToggles&&this._buttonToggles.forEach(t=>{t.name=this._name,t._markForCheck()})}get vertical(){return this._vertical}set vertical(t){this._vertical=di(t)}get value(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(t=>t.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=di(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._buttonToggles&&this._buttonToggles.forEach(t=>t._markForCheck())}ngOnInit(){this._selectionModel=new ws(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked))}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_emitChangeEvent(){const t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,i=new To(e,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(t,e,i=!1,n=!1){this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):n=!0,n?Promise.resolve(()=>this._updateModelValue(i)):this._updateModelValue(i)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(e=>null!=t.value&&e===t.value):t.value===this._rawValue)}_setSelectionByValue(t){if(this._rawValue=t,this._buttonToggles)if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),t.forEach(t=>this._selectValue(t))}else this._clearSelection(),this._selectValue(t)}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>t.checked=!1)}_selectValue(t){const e=this._buttonToggles.find(e=>null!=e.value&&e.value===t);e&&(e.checked=!0,this._selectionModel.select(e))}_updateModelValue(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.j),s.Dc(Eo,8))},t.\u0275dir=s.yc({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,No,!0),2&t&&s.md(n=s.Xc())&&(e._buttonToggles=n)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(s.qc("aria-disabled",e.disabled),s.tc("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[s.oc([Oo,{provide:Ao,useExisting:t}])]}),t})();class Mo{}const Fo=xn(Mo);let No=(()=>{class t extends Fo{constructor(t,e,i,n,a,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._focusMonitor=n,this._isSingleSelector=!1,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new s.u;const r=Number(a);this.tabIndex=r||0===r?r:null,this.buttonToggleGroup=t,this.appearance=o&&o.appearance?o.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){const e=di(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=di(t)}ngOnInit(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||`mat-button-toggle-${Po++}`,this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){const t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new To(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ro,8),s.Dc(s.j),s.Dc(s.r),s.Dc(Xi),s.Tc("tabindex"),s.Dc(Eo,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var i;1&t&&s.Fd(Io,!0),2&t&&s.md(i=s.Xc())&&(e._buttonElement=i.first)},hostAttrs:[1,"mat-button-toggle","mat-focus-indicator"],hostVars:11,hostBindings:function(t,e){1&t&&s.Wc("focus",(function(){return e.focus()})),2&t&&(s.qc("tabindex",-1)("id",e.id)("name",null),s.tc("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[s.mc],ngContentSelectors:Do,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(s.fd(),s.Jc(0,"button",0,1),s.Wc("click",(function(){return e._onButtonClick()})),s.Jc(2,"div",2),s.ed(3),s.Ic(),s.Ic(),s.Ec(4,"div",3),s.Ec(5,"div",4)),2&t){const t=s.nd(1);s.gd("id",e.buttonId)("disabled",e.disabled||null),s.qc("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.pc(5),s.gd("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[Kn],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px;padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 48px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),t})(),zo=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn,Xn],vn]}),t})();const Lo=["*",[["mat-card-footer"]]],Bo=["*","mat-card-footer"],Jo=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Vo=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],jo=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],$o=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let Ho=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),Uo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),Go=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),Wo=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),qo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),t})(),Ko=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),t})(),Xo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),t})(),Yo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),t})(),Zo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),t})(),Qo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),t})(),tr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),er=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:Bo,decls:2,vars:0,template:function(t,e){1&t&&(s.fd(Lo),s.ed(0),s.ed(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),ir=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:Vo,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(s.fd(Jo),s.ed(0),s.Jc(1,"div",0),s.ed(2,1),s.Ic(),s.ed(3,2))},encapsulation:2,changeDetection:0}),t})(),nr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:$o,decls:4,vars:0,template:function(t,e){1&t&&(s.fd(jo),s.Jc(0,"div"),s.ed(1),s.Ic(),s.ed(2,1),s.ed(3,2))},encapsulation:2,changeDetection:0}),t})(),sr=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();const ar=["input"],or=function(){return{enterDuration:150}},rr=["*"],lr=new s.x("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),cr=new s.x("mat-checkbox-click-action");let dr=0;const hr={provide:Es,useExisting:Object(s.hb)(()=>gr),multi:!0};class ur{}class pr{constructor(t){this._elementRef=t}}const mr=kn(wn(xn(yn(pr))));let gr=(()=>{class t extends mr{constructor(t,e,i,n,a,o,r,l){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._clickAction=o,this._animationMode=r,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId=`mat-checkbox-${++dr}`,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.u,this.indeterminateChange=new s.u,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this._options.color),this.tabIndex=parseInt(a)||0,this._focusMonitor.monitor(t,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),e.markForCheck()})}),this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=di(t)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=di(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=di(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new ur;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(Xi),s.Dc(s.I),s.Tc("tabindex"),s.Dc(cr,8),s.Dc(Ee,8),s.Dc(lr,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;1&t&&(s.Fd(ar,!0),s.Fd(Kn,!0)),2&t&&(s.md(i=s.Xc())&&(e._inputElement=i.first),s.md(i=s.Xc())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Mc("id",e.id),s.qc("tabindex",null),s.tc("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s.oc([hr]),s.mc],ngContentSelectors:rr,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.fd(),s.Jc(0,"label",0,1),s.Jc(2,"div",2),s.Jc(3,"input",3,4),s.Wc("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),s.Ic(),s.Jc(5,"div",5),s.Ec(6,"div",6),s.Ic(),s.Ec(7,"div",7),s.Jc(8,"div",8),s.Zc(),s.Jc(9,"svg",9),s.Ec(10,"path",10),s.Ic(),s.Yc(),s.Ec(11,"div",11),s.Ic(),s.Ic(),s.Jc(12,"span",12,13),s.Wc("cdkObserveContent",(function(){return e._onLabelTextChange()})),s.Jc(14,"span",14),s.Bd(15,"\xa0"),s.Ic(),s.ed(16),s.Ic(),s.Ic()),2&t){const t=s.nd(1),i=s.nd(13);s.qc("for",e.inputId),s.pc(2),s.tc("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.pc(1),s.gd("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.qc("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),s.pc(2),s.gd("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.id(18,or))}},directives:[Kn,Ai],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const fr={provide:$s,useExisting:Object(s.hb)(()=>br),multi:!0};let br=(()=>{class t extends uo{}return t.\u0275fac=function(e){return _r(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[s.oc([fr]),s.mc]}),t})();const _r=s.Lc(br);let vr=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})(),yr=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[Xn,vn,Pi,vr],vn,vr]}),t})();function wr(t){return new si.a(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(Ss.a)(i):oi()).subscribe(e)})}var xr=i("VRyK");function kr(t,e,i,n){return Object(Je.a)(i)&&(n=i,i=void 0),n?kr(t,e,i).pipe(Object(ii.a)(t=>Object(ks.a)(t)?n(...t):n(t))):new si.a(n=>{!function t(e,i,n,s,a){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(i,n,a),o=()=>t.removeEventListener(i,n,a)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(i,n),o=()=>t.off(i,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(i,n),o=()=>t.removeListener(i,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,r=e.length;o1?Array.prototype.slice.call(arguments):t)}),n,i)})}class Cr extends Ue{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}class Sr extends We{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),Or={};function Ar(t){return t in Or&&(delete Or[t],!0)}const Pr={setImmediate(t){const e=Dr++;return Or[e]=!0,Er.then(()=>Ar(e)&&t()),e},clearImmediate(t){Ar(t)}};class Tr extends Ue{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=Pr.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Pr.clearImmediate(e),t.scheduled=void 0)}}class Rr extends We{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new Nr(t,e))}class Nr{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new zr(t,this.compare,this.keySelector))}}class zr extends Le.a{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}var Lr=i("l7GE"),Br=i("ZUHj");class Jr{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Vr(t,this.durationSelector))}}class Vr extends Lr.a{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=Object(Br.a)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function jr(t){return!Object(ks.a)(t)&&t-parseFloat(t)+1>=0}function $r(t=0,e,i){let n=-1;return jr(e)?n=Number(e)<1?1:Number(e):Object(Re.a)(e)&&(i=e),Object(Re.a)(i)||(i=qe),new si.a(e=>{const s=jr(t)?t:+t-i.now();return i.schedule(Hr,s,{index:0,period:n,subscriber:e})})}function Hr(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function Ur(t,e=qe){return i=()=>$r(t,e),function(t){return t.lift(new Jr(i))};var i}function Gr(t){return e=>e.lift(new Wr(t))}class Wr{constructor(t){this.notifier=t}call(t,e){const i=new qr(t),n=Object(Br.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class qr extends Lr.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}var Kr=i("51Dv");function Xr(t,e){return"function"==typeof e?i=>i.pipe(Xr((i,n)=>Object(Ss.a)(t(i,n)).pipe(Object(ii.a)((t,s)=>e(i,t,n,s))))):e=>e.lift(new Yr(t))}class Yr{constructor(t){this.project=t}call(t,e){return e.subscribe(new Zr(t,this.project))}}class Zr extends Lr.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const s=new Kr.a(this,e,i),a=this.destination;a.add(s),this.innerSubscription=Object(Br.a)(this,t,void 0,void 0,s),this.innerSubscription!==s&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}class Qr extends Ue{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class tl extends We{}const el=new tl(Qr);function il(t,e){return new si.a(e?i=>e.schedule(nl,0,{error:t,subscriber:i}):e=>e.error(t))}function nl({error:t,subscriber:e}){e.error(t)}let sl=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Ne(this.value);case"E":return il(this.error);case"C":return oi()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class al extends Le.a{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(al.dispatch,this.delay,new ol(t,this.destination)))}_next(t){this.scheduleMessage(sl.createNext(t))}_error(t){this.scheduleMessage(sl.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(sl.createComplete()),this.unsubscribe()}}class ol{constructor(t,e){this.notification=t,this.destination=e}}var rl=i("9ppp"),ll=i("Ylt2");class cl extends Pe.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new dl(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let a;if(this.closed)throw new rl.a;if(this.isStopped||this.hasError?a=Te.a.EMPTY:(this.observers.push(t),a=new ll.a(this,t)),n&&t.add(t=new al(t,n)),e)for(let o=0;oe&&(a=Math.max(a,s-e)),a>0&&n.splice(0,a),n}}class dl{constructor(t,e){this.time=t,this.value=e}}let hl=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new Pe.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new si.a(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Ur(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ne()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Qe(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>kr(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.I),s.Sc(_i),s.Sc(ve.e,8))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(s.I),Object(s.Sc)(_i),Object(s.Sc)(ve.e,8))},token:t,providedIn:"root"}),t})(),ul=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new Pe.a,this._elementScrolled=new si.a(t=>this.ngZone.runOutsideAngular(()=>kr(this.elementRef.nativeElement,"scroll").pipe(Gr(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=Ii()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Ii()?t.left=t.right:1==Ii()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==Ii()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==Ii()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(hl),s.Dc(s.I),s.Dc(nn,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),pl=(()=>{class t{constructor(t,e,i){this._platform=t,this._document=i,e.runOutsideAngular(()=>{const e=this._getWindow();this._change=t.isBrowser?Object(xr.a)(kr(e,"resize"),kr(e,"orientationchange")):Ne(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Ur(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(_i),s.Sc(s.I),s.Sc(ve.e,8))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(_i),Object(s.Sc)(s.I),Object(s.Sc)(ve.e,8))},token:t,providedIn:"root"}),t})(),ml=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[an,vi],an]}),t})();function gl(){throw Error("Host already has a portal attached")}class fl{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&gl(),this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class bl extends fl{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class _l extends fl{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class vl extends fl{constructor(t){super(),this.element=t instanceof s.r?t.nativeElement:t}}class yl{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&gl(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof bl?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof _l?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof vl?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class wl extends yl{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let xl=(()=>{class t extends _l{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y),s.Dc(s.cb))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[s.mc]}),t})(),kl=(()=>{class t extends yl{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new s.u,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.n),s.Dc(s.cb),s.Dc(ve.e))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.mc]}),t})(),Cl=(()=>{class t extends kl{}return t.\u0275fac=function(e){return Sl(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[s.oc([{provide:kl,useExisting:t}]),s.mc]}),t})();const Sl=s.Lc(Cl);let Il=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();class Dl{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const i=this._customTokens.get(t);return void 0!==i?i:this._parentInjector.get(t,e)}}class El{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=mi(-this._previousScrollPosition.left),t.style.top=mi(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.scrollBehavior=s}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function Ol(){return Error("Scroll strategy has already been attached.")}class Al{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw Ol();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Pl{enable(){}disable(){}attach(){}}function Tl(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Rl(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class Ml{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw Ol();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();Tl(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Fl=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new Pl,this.close=t=>new Al(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new El(this._viewportRuler,this._document),this.reposition=t=>new Ml(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(hl),s.Sc(pl),s.Sc(s.I),s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(hl),Object(s.Sc)(pl),Object(s.Sc)(s.I),Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})();class Nl{constructor(t){if(this.scrollStrategy=new Pl,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class zl{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Ll{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function Bl(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function Jl(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}let Vl=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEventSubscriptions>0){e[i]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})();const jl=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let $l=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||jl){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEventsObservable=new si.a(t=>{const e=this._keydownEvents.subscribe(t);return this._keydownEventSubscriptions++,()=>{e.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new Pe.a,this._keydownEventSubscriptions=0,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEventsObservable}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=mi(this._config.width),t.height=mi(this._config.height),t.minWidth=mi(this._config.minWidth),t.minHeight=mi(this._config.minHeight),t.maxWidth=mi(this._config.maxWidth),t.maxHeight=mi(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;pi(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(Gr(Object(xr.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const Ul=/([A-Za-z%]+)$/;class Gl{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Pe.a,this._resizeSubscription=Te.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let a of this._preferredPositions){let o=this._getOriginPoint(t,a),r=this._getOverlayPoint(o,e,a),l=this._getOverlayFit(r,e,i,a);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,o);this._canFitWithFlexibleDimensions(l,r,i)?n.push({position:a,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,a)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Wl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){let{x:s,y:a}=t,o=this._getOffset(n,"x"),r=this._getOffset(n,"y");o&&(s+=o),r&&(a+=r);let l=0-a,c=a+e.height-i.height,d=this._subtractOverflows(e.width,0-s,s+e.width-i.width),h=this._subtractOverflows(e.height,l,c),u=d*h;return{visibleArea:u,isCompletelyWithinViewport:e.width*e.height===u,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:d==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,a=ql(this._overlayRef.getConfig().minHeight),o=ql(this._overlayRef.getConfig().minWidth),r=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=a&&a<=n)&&r}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=this._viewportRect,s=Math.max(t.x+e.width-n.right,0),a=Math.max(t.y+e.height-n.bottom,0),o=Math.max(n.top-i.top-t.y,0),r=Math.max(n.left-i.left-t.x,0);let l=0,c=0;return l=e.width<=n.width?r||-s:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)c=i.width-t.x+this._viewportMargin,r=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,r=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;r=2*e,l=t.x-e,r>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:a,left:l,bottom:o,right:c,width:r,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=mi(i.height),n.top=mi(i.top),n.bottom=mi(i.bottom),n.width=mi(i.width),n.left=mi(i.left),n.right=mi(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=mi(t)),s&&(n.maxWidth=mi(s))}this._lastBoundingBoxSize=i,Wl(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Wl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Wl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Wl(i,this._getExactOverlayY(e,t,n)),Wl(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",r=this._getOffset(e,"x"),l=this._getOffset(e,"y");r&&(o+=`translateX(${r}px) `),l&&(o+=`translateY(${l}px)`),i.transform=o.trim(),a.maxHeight&&(n?i.maxHeight=mi(a.maxHeight):s&&(i.maxHeight="")),a.maxWidth&&(n?i.maxWidth=mi(a.maxWidth):s&&(i.maxWidth="")),Wl(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=a,"bottom"===t.overlayY?n.bottom=`${this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)}px`:n.top=mi(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},a=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=`${this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)}px`:s.left=mi(a.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Rl(t,i),isOriginOutsideView:Tl(t,i),isOverlayClipped:Rl(e,i),isOverlayOutsideView:Tl(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{Jl("originX",t.originX),Bl("originY",t.originY),Jl("overlayX",t.overlayX),Bl("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&pi(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.r)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Wl(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function ql(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(Ul);return i&&"px"!==i?null:parseFloat(e)}return t||null}class Kl{constructor(t,e,i,n,s,a,o){this._preferredPositions=[],this._positionStrategy=new Gl(i,n,s,a,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new zl(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class Xl{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:a,maxHeight:o}=i,r=!("100%"!==n&&"100vw"!==n||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=r?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,r?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Yl=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new Xl}connectedTo(t,e,i){return new Kl(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Gl(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(pl),s.Sc(ve.e),s.Sc(_i),s.Sc($l))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(pl),Object(s.Sc)(ve.e),Object(s.Sc)(_i),Object(s.Sc)($l))},token:t,providedIn:"root"}),t})(),Zl=0,Ql=(()=>{class t{constructor(t,e,i,n,s,a,o,r,l,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=a,this._ngZone=o,this._document=r,this._directionality=l,this._location=c}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new Nl(t);return s.direction=s.direction||this._directionality.value,new Hl(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id=`cdk-overlay-${Zl++}`,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.g)),new wl(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Fl),s.Sc($l),s.Sc(s.n),s.Sc(Yl),s.Sc(Vl),s.Sc(s.y),s.Sc(s.I),s.Sc(ve.e),s.Sc(nn),s.Sc(ve.n,8))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();const tc=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ec=new s.x("cdk-connected-overlay-scroll-strategy");let ic=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),nc=(()=>{class t{constructor(t,e,i,n,a){this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Te.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new s.u,this.positionChange=new s.u,this.attach=new s.u,this.detach=new s.u,this.overlayKeydown=new s.u,this._templatePortal=new _l(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=di(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=di(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=di(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=di(t)}get push(){return this._push}set push(t){this._push=di(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=tc),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||ze(t)||(t.preventDefault(),this._detachOverlay())})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Nl({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe(t=>this.positionChange.emit(t)),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe()}_detachOverlay(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ql),s.Dc(s.Y),s.Dc(s.cb),s.Dc(ec),s.Dc(nn,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[s.nc]}),t})();const sc={provide:ec,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let ac=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Ql,sc],imports:[[an,Il,ml],ml]}),t})();const oc=["underline"],rc=["connectionContainer"],lc=["inputContainer"],cc=["label"];function dc(t,e){1&t&&(s.Hc(0),s.Jc(1,"div",14),s.Ec(2,"div",15),s.Ec(3,"div",16),s.Ec(4,"div",17),s.Ic(),s.Jc(5,"div",18),s.Ec(6,"div",15),s.Ec(7,"div",16),s.Ec(8,"div",17),s.Ic(),s.Gc())}function hc(t,e){1&t&&(s.Jc(0,"div",19),s.ed(1,1),s.Ic())}function uc(t,e){if(1&t&&(s.Hc(0),s.ed(1,2),s.Jc(2,"span"),s.Bd(3),s.Ic(),s.Gc()),2&t){const t=s.ad(2);s.pc(3),s.Cd(t._control.placeholder)}}function pc(t,e){1&t&&s.ed(0,3,["*ngSwitchCase","true"])}function mc(t,e){1&t&&(s.Jc(0,"span",23),s.Bd(1," *"),s.Ic())}function gc(t,e){if(1&t){const t=s.Kc();s.Jc(0,"label",20,21),s.Wc("cdkObserveContent",(function(){return s.rd(t),s.ad().updateOutlineGap()})),s.zd(2,uc,4,1,"ng-container",12),s.zd(3,pc,1,0,void 0,12),s.zd(4,mc,2,0,"span",22),s.Ic()}if(2&t){const t=s.ad();s.tc("mat-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.gd("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.qc("for",t._control.id)("aria-owns",t._control.id),s.pc(2),s.gd("ngSwitchCase",!1),s.pc(1),s.gd("ngSwitchCase",!0),s.pc(1),s.gd("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function fc(t,e){1&t&&(s.Jc(0,"div",24),s.ed(1,4),s.Ic())}function bc(t,e){if(1&t&&(s.Jc(0,"div",25,26),s.Ec(2,"span",27),s.Ic()),2&t){const t=s.ad();s.pc(2),s.tc("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function _c(t,e){if(1&t&&(s.Jc(0,"div"),s.ed(1,5),s.Ic()),2&t){const t=s.ad();s.gd("@transitionMessages",t._subscriptAnimationState)}}function vc(t,e){if(1&t&&(s.Jc(0,"div",31),s.Bd(1),s.Ic()),2&t){const t=s.ad(2);s.gd("id",t._hintLabelId),s.pc(1),s.Cd(t.hintLabel)}}function yc(t,e){if(1&t&&(s.Jc(0,"div",28),s.zd(1,vc,2,2,"div",29),s.ed(2,6),s.Ec(3,"div",30),s.ed(4,7),s.Ic()),2&t){const t=s.ad();s.gd("@transitionMessages",t._subscriptAnimationState),s.pc(1),s.gd("ngIf",t.hintLabel)}}const wc=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],xc=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let kc=0,Cc=(()=>{class t{constructor(){this.id=`mat-error-${kc++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("id",e.id)},inputs:{id:"id"}}),t})();const Sc={transitionMessages:o("transitionMessages",[h("enter",d({opacity:1,transform:"translateY(0%)"})),p("void => enter",[d({opacity:0,transform:"translateY(-100%)"}),r("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ic=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t}),t})();function Dc(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let Ec=0,Oc=(()=>{class t{constructor(){this.align="start",this.id=`mat-hint-${Ec++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.qc("id",e.id)("align",null),s.tc("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t})(),Ac=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-label"]]}),t})(),Pc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-placeholder"]]}),t})(),Tc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matPrefix",""]]}),t})(),Rc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matSuffix",""]]}),t})(),Mc=0;class Fc{constructor(t){this._elementRef=t}}const Nc=wn(Fc,"primary"),zc=new s.x("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Lc=new s.x("MatFormField");let Bc=(()=>{class t extends Nc{constructor(t,e,i,n,s,a,o,r){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=a,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Pe.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId=`mat-hint-${Mc++}`,this._labelId=`mat-form-field-label-${Mc++}`,this._labelOptions=i||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==r,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=di(t)}get _shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}get _canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}get _labelChild(){return this._labelChildNonStatic||this._labelChildStatic}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(dn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Gr(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Gr(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(xr.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(dn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(dn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Gr(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!!this._labelChild}_shouldLabelFloat(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,kr(this._label.nativeElement,"transitionend").pipe(ri(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let t,e;this._hintChildren.forEach(i=>{if("start"===i.align){if(t||this.hintLabel)throw Dc("start");t=i}else if("end"===i.align){if(e)throw Dc("end");e=i}})}}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if("hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&(t=this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),a=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const a=this._getStartEnd(s),o=this._getStartEnd(t.children[0].getBoundingClientRect());let r=0;for(const e of t.children)r+=e.offsetWidth;e=Math.abs(o-a)-5,i=r>0?.75*r+10:0}for(let o=0;o{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c,Pi]]}),t})();function Vc(t,e=qe){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new jc(n,e))}class jc{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new $c(t,this.delay,this.scheduler))}}class $c extends Le.a{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule($c.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new Hc(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(sl.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(sl.createComplete()),this.unsubscribe()}}class Hc{constructor(t,e){this.time=t,this.notification=e}}const Uc=["panel"];function Gc(t,e){if(1&t&&(s.Jc(0,"div",0,1),s.ed(2),s.Ic()),2&t){const t=s.ad();s.gd("id",t.id)("ngClass",t._classList)}}const Wc=["*"];let qc=0;class Kc{constructor(t,e){this.source=t,this.option=e}}class Xc{}const Yc=xn(Xc),Zc=new s.x("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let Qc=(()=>{class t extends Yc{constructor(t,e,i){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=Te.a.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new s.u,this.opened=new s.u,this.closed=new s.u,this.optionActivated=new s.u,this._classList={},this.id=`mat-autocomplete-${qc++}`,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=di(t)}set classList(t){this._classList=t&&t.length?t.split(" ").reduce((t,e)=>(t[e.trim()]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new Li(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new Kc(this,t);this.optionSelected.emit(e)}_setVisibilityClasses(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.j),s.Dc(s.r),s.Dc(Zc))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,rs,!0),s.vc(i,is,!0)),2&t&&(s.md(n=s.Xc())&&(e.options=n),s.md(n=s.Xc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(s.xd(s.Y,!0),s.Fd(Uc,!0)),2&t&&(s.md(i=s.Xc())&&(e.template=i.first),s.md(i=s.Xc())&&(e.panel=i.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[s.oc([{provide:os,useExisting:t}]),s.mc],ngContentSelectors:Wc,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(s.fd(),s.zd(0,Gc,3,2,"ng-template"))},directives:[ve.q],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),td=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),t})();const ed=new s.x("mat-autocomplete-scroll-strategy"),id={provide:ed,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},nd={provide:Es,useExisting:Object(s.hb)(()=>sd),multi:!0};let sd=(()=>{class t{constructor(t,e,i,n,s,a,o,r,l,c){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=o,this._formField=r,this._document=l,this._viewportRuler=c,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Te.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Pe.a,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=wr(()=>this.autocomplete&&this.autocomplete.options?Object(xr.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.asObservable().pipe(ri(1),Xr(()=>this.optionSelections))),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=di(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&(this._zone.runOutsideAngular(()=>{t.addEventListener("blur",this._windowBlurHandler)}),this._isInsideShadowRoot=!!Di(this._element.nativeElement))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Object(xr.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Qe(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Qe(()=>this._overlayAttached)):Ne()).pipe(Object(ii.a)(t=>t instanceof as?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(xr.a)(kr(this._document,"click"),kr(this._document,"touchend")).pipe(Qe(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(27===e&&t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption()}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_scrollToOption(){const t=this.autocomplete._keyManager.activeItemIndex||0,e=ls(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{const i=cs(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}_subscribeToClosingActions(){const t=this._zone.onStable.asObservable().pipe(ri(1)),e=this.autocomplete.options.changes.pipe(Ve(()=>this._positionStrategy.reapplyLastPosition()),Vc(0));return Object(xr.a)(t,e).pipe(Xr(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),ri(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!=t&&e.selected&&e.deselect()})}_attachOverlay(){if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new _l(this.autocomplete.template,this._viewContainerRef),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(t=>{(27===t.keyCode||38===t.keyCode&&t.altKey)&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})}))),t&&!t.hasAttached()&&(t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const e=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&e!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Nl({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},i={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};let n;n="above"===this.position?[i]:"below"===this.position?[e]:[e,i],t.withPositions(n)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Ql),s.Dc(s.cb),s.Dc(s.I),s.Dc(s.j),s.Dc(ed),s.Dc(nn,8),s.Dc(Lc,9),s.Dc(ve.e,8),s.Dc(pl))},t.\u0275dir=s.yc({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&s.Wc("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&s.qc("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[s.oc([nd]),s.nc]}),t})(),ad=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[id],imports:[[ds,ac,vn,ve.c],ds,vn]}),t})();function od(t,e){}class rd{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const ld={dialogContainer:o("dialogContainer",[h("void, exit",d({opacity:0,transform:"scale(0.7)"})),h("enter",d({transform:"none"})),p("* => enter",r("150ms cubic-bezier(0, 0, 0.2, 1)",d({transform:"none",opacity:1}))),p("* => void, * => exit",r("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",d({opacity:0})))])};function cd(){throw Error("Attempting to attach dialog content after content is already attached")}let dd=(()=>{class t extends yl{constructor(t,e,i,n,a){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=a,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new s.u,this.attachDomPortal=t=>(this._portalOutlet.hasAttached()&&cd(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=a.ariaLabelledBy||null,this._document=n}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&cd(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&cd(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}_trapFocus(){const t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_onAnimationDone(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Hi),s.Dc(s.j),s.Dc(ve.e,8),s.Dc(rd))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var i;1&t&&s.xd(kl,!0),2&t&&s.md(i=s.Xc())&&(e._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.uc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(s.qc("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.Ed("@dialogContainer",e._state))},features:[s.mc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.zd(0,od,0,0,"ng-template",0)},directives:[kl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ld.dialogContainer]}}),t})(),hd=0;class ud{constructor(t,e,i=`mat-dialog-${hd++}`){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Pe.a,this._afterClosed=new Pe.a,this._beforeClosed=new Pe.a,this._state=0,e._id=i,e._animationStateChanged.pipe(Qe(t=>"done"===t.phaseName&&"enter"===t.toState),ri(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Qe(t=>"done"===t.phaseName&&"exit"===t.toState),ri(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._overlayRef.dispose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Qe(t=>27===t.keyCode&&!this.disableClose&&!ze(t))).subscribe(t=>{t.preventDefault(),this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Qe(t=>"start"===t.phaseName),ri(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._state=2,this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},e.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const pd=new s.x("MatDialogData"),md=new s.x("mat-dialog-default-options"),gd=new s.x("mat-dialog-scroll-strategy"),fd={provide:gd,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.block()}};let bd=(()=>{class t{constructor(t,e,i,n,s,a,o){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=a,this._overlayContainer=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe.a,this._afterOpenedAtThisLevel=new Pe.a,this._ariaHiddenElements=new Map,this.afterAllClosed=wr(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(dn(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}get _afterAllClosed(){const t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}open(t,e){if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new rd)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new Nl({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=s.y.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:rd,useValue:e}]}),n=new bl(dd,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const a=new ud(i,e,n.id);if(n.hasBackdrop&&i.backdropClick().subscribe(()=>{a.disableClose||a.close()}),t instanceof s.Y)e.attachTemplatePortal(new _l(t,null,{$implicit:n.data,dialogRef:a}));else{const i=this._createInjector(n,a,e),s=e.attachComponentPortal(new bl(t,n.viewContainerRef,i));a.componentInstance=s.instance}return a.updateSize(n.width,n.height).updatePosition(n.position),a}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,a=[{provide:dd,useValue:i},{provide:pd,useValue:t.data},{provide:ud,useValue:e}];return!t.direction||n&&n.get(nn,null)||a.push({provide:nn,useValue:{value:t.direction,change:Ne()}}),s.y.create({parent:n||this._injector,providers:a})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Ql),s.Sc(s.y),s.Sc(ve.n,8),s.Sc(md,8),s.Sc(gd),s.Sc(t,12),s.Sc($l))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),_d=0,vd=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=kd(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(ud,8),s.Dc(s.r),s.Dc(bd))},t.\u0275dir=s.yc({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&s.qc("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[s.nc]}),t})(),yd=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id=`mat-dialog-title-${_d++}`}ngOnInit(){this._dialogRef||(this._dialogRef=kd(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(ud,8),s.Dc(s.r),s.Dc(bd))},t.\u0275dir=s.yc({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Mc("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),wd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),xd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function kd(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}let Cd=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[bd,fd],imports:[[ac,Il,vn],vn]}),t})(),Sd=0,Id=(()=>{class t{constructor(){this._stateChanges=new Pe.a,this._openCloseAllActions=new Pe.a,this.id=`cdk-accordion-${Sd++}`,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=di(t)}openAll(){this._openCloseAll(!0)}closeAll(){this._openCloseAll(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete()}_openCloseAll(t){this.multi&&this._openCloseAllActions.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s.nc]}),t})(),Dd=0,Ed=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=Te.a.EMPTY,this.closed=new s.u,this.opened=new s.u,this.destroyed=new s.u,this.expandedChange=new s.u,this.id=`cdk-accordion-child-${Dd++}`,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=di(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Id,12),s.Dc(s.j),s.Dc(xs))},t.\u0275dir=s.yc({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s.oc([{provide:Id,useValue:void 0}])]}),t})(),Od=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();const Ad=["body"];function Pd(t,e){}const Td=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Rd=["mat-expansion-panel-header","*","mat-action-row"],Md=function(t,e){return{collapsedHeight:t,expandedHeight:e}},Fd=function(t,e){return{value:t,params:e}};function Nd(t,e){if(1&t&&s.Ec(0,"span",2),2&t){const t=s.ad();s.gd("@indicatorRotate",t._getExpandedState())}}const zd=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Ld=["mat-panel-title","mat-panel-description","*"],Bd=new s.x("MAT_ACCORDION"),Jd={indicatorRotate:o("indicatorRotate",[h("collapsed, void",d({transform:"rotate(0deg)"})),h("expanded",d({transform:"rotate(180deg)"})),p("expanded <=> collapsed, void => collapsed",r("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:o("expansionHeight",[h("collapsed, void",d({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),h("expanded",d({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),p("expanded <=> collapsed, void => collapsed",l([g("@indicatorRotate",m(),{optional:!0}),r("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:o("bodyExpansion",[h("collapsed, void",d({height:"0px",visibility:"hidden"})),h("expanded",d({height:"*",visibility:"visible"})),p("expanded <=> collapsed, void => collapsed",r("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let Vd=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),jd=0;const $d=new s.x("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Hd=(()=>{class t extends Ed{constructor(t,e,i,n,a,o,r){super(t,e,i),this._viewContainerRef=n,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new s.u,this.afterCollapse=new s.u,this._inputChanges=new Pe.a,this._headerId=`mat-expansion-panel-header-${jd++}`,this._bodyAnimationDone=new Pe.a,this.accordion=t,this._document=a,this._bodyAnimationDone.pipe(Fr((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),r&&(this.hideToggle=r.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=di(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(dn(null),Qe(()=>this.expanded&&!this._portal),ri(1)).subscribe(()=>{this._portal=new _l(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Bd,12),s.Dc(s.j),s.Dc(xs),s.Dc(s.cb),s.Dc(ve.e),s.Dc(Ee,8),s.Dc($d,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Vd,!0),2&t&&s.md(n=s.Xc())&&(e._lazyContent=n.first)},viewQuery:function(t,e){var i;1&t&&s.Fd(Ad,!0),2&t&&s.md(i=s.Xc())&&(e._body=i.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.tc("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s.oc([{provide:Bd,useValue:void 0}]),s.mc,s.nc],ngContentSelectors:Rd,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.fd(Td),s.ed(0),s.Jc(1,"div",0,1),s.Wc("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),s.Jc(3,"div",2),s.ed(4,1),s.zd(5,Pd,0,0,"ng-template",3),s.Ic(),s.ed(6,2),s.Ic()),2&t&&(s.pc(1),s.gd("@bodyExpansion",e._getExpandedState())("id",e.id),s.qc("aria-labelledby",e._headerId),s.pc(4),s.gd("cdkPortalOutlet",e._portal))},directives:[kl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Jd.bodyExpansion]},changeDetection:0}),t})(),Ud=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),t})(),Gd=(()=>{class t{constructor(t,e,i,n,s){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._parentChangeSubscription=Te.a.EMPTY,this._animationsDisabled=!0;const a=t.accordion?t.accordion._stateChanges.pipe(Qe(t=>!(!t.hideToggle&&!t.togglePosition))):ai;this._parentChangeSubscription=Object(xr.a)(t.opened,t.closed,a,t._inputChanges.pipe(Qe(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Qe(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),i.monitor(e).subscribe(e=>{e&&t.accordion&&t.accordion._handleHeaderFocus(this)}),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}_animationStarted(){this._animationsDisabled=!1}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_keydown(t){switch(t.keyCode){case 32:case 13:ze(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t="program",e){this._focusMonitor.focusVia(this._element,t,e)}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Hd,1),s.Dc(s.r),s.Dc(Xi),s.Dc(s.j),s.Dc($d,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header"],hostVars:19,hostBindings:function(t,e){1&t&&(s.uc("@expansionHeight.start",(function(){return e._animationStarted()})),s.Wc("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(s.qc("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.Ed("@.disabled",e._animationsDisabled)("@expansionHeight",s.kd(16,Fd,e._getExpandedState(),s.kd(13,Md,e.collapsedHeight,e.expandedHeight))),s.tc("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:Ld,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.fd(zd),s.Jc(0,"span",0),s.ed(1),s.ed(2,1),s.ed(3,2),s.Ic(),s.zd(4,Nd,1,1,"span",1)),2&t&&(s.pc(4),s.gd("ngIf",e._showToggle()))},directives:[ve.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[Jd.indicatorRotate,Jd.expansionHeaderHeight]},changeDetection:0}),t})(),Wd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),qd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),Kd=(()=>{class t extends Id{constructor(){super(...arguments),this._ownHeaders=new s.O,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=di(t)}ngAfterContentInit(){this._headers.changes.pipe(dn(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Bi(this._ownHeaders).withWrap()}_handleHeaderKeydown(t){const{keyCode:e}=t,i=this._keyManager;36===e?ze(t)||(i.setFirstItemActive(),t.preventDefault()):35===e?ze(t)||(i.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}}return t.\u0275fac=function(e){return Xd(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Gd,!0),2&t&&s.md(n=s.Xc())&&(e._headers=n)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s.oc([{provide:Bd,useExisting:t}]),s.mc]}),t})();const Xd=s.Lc(Kd);let Yd=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c,Od,Il]]}),t})();const Zd=["*"],Qd=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],th=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],eh=new s.x("MAT_GRID_LIST");let ih=(()=>{class t{constructor(t,e){this._element=t,this._gridList=e,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round(hi(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(hi(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(eh,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&s.qc("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Zd,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"figure",0),s.ed(1),s.Ic())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),nh=(()=>{class t{constructor(t){this._element=t}ngAfterContentInit(){Vn(this._lines,this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Jn,!0),2&t&&s.md(n=s.Xc())&&(e._lines=n)},ngContentSelectors:th,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(s.fd(Qd),s.ed(0),s.Jc(1,"div",0),s.ed(2,1),s.Ic(),s.ed(3,2))},encapsulation:2,changeDetection:0}),t})(),sh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),t})(),ah=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),t})(),oh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),t})();class rh{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const t=Math.max(...this.tracker);return t>1?this.rowCount+t-1:this.rowCount}update(t,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(t=>this._trackTile(t))}_trackTile(t){const e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new lh(this.rowIndex,e)}_findMatchingGap(t){if(t>this.tracker.length)throw Error(`mat-grid-list: tile with colspan ${t} is wider than `+`grid with cols="${this.tracker.length}".`);let e=-1,i=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(i=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)))}while(i-e{t._setStyle("top",null),t._setStyle("height",null)})}}class uh extends dh{constructor(t){super(),this._parseRatio(t)}setRowStyles(t,e,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",mh(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",mh(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(t=>{t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})}_parseRatio(t){const e=t.split(":");if(2!==e.length)throw Error(`mat-grid-list: invalid ratio given for row-height: "${t}"`);this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class ph extends dh{setRowStyles(t,e){let i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(i,e)),t._setStyle("height",mh(this.getTileSize(i,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function mh(t){return`calc(${t})`}function gh(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let fh=(()=>{class t{constructor(t,e){this._element=t,this._dir=e,this._gutter="1px"}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round(hi(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=`${null==t?"":t}`}get rowHeight(){return this._rowHeight}set rowHeight(t){const e=`${null==t?"":t}`;e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: ')}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new ph:t&&t.indexOf(":")>-1?new uh(t):new hh(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new rh);const t=this._tileCoordinator,e=this._tiles.filter(t=>!t._gridList||t._gridList===this),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,e),this._tileStyler.init(this.gutterSize,t,this.cols,i),e.forEach((e,i)=>{const n=t.positions[i];this._tileStyler.setStyle(e,n.row,n.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(nn,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,ih,!0),2&t&&s.md(n=s.Xc())&&(e._tiles=n)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[s.oc([{provide:eh,useExisting:t}])],ngContentSelectors:Zd,decls:2,vars:0,template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div"),s.ed(1),s.Ic())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),bh=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[$n,vn],$n,vn]}),t})();function _h(t){return function(e){const i=new vh(t),n=e.lift(i);return i.caught=n}}class vh{constructor(t){this.selector=t}call(t,e){return e.subscribe(new yh(t,this.selector,this.caught))}}class yh extends Lr.a{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new Kr.a(this,void 0,void 0);this.add(n);const s=Object(Br.a)(this,i,void 0,void 0,n);s!==n&&this.add(s)}}}function wh(t){return e=>e.lift(new xh(t))}class xh{constructor(t){this.callback=t}call(t,e){return e.subscribe(new kh(t,this.callback))}}class kh extends Le.a{constructor(t,e){super(t),this.add(new Te.a(e))}}var Ch=i("w1tV"),Sh=i("5+tZ");function Ih(t,e){return Object(Sh.a)(t,e,1)}class Dh{}class Eh{}class Oh{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Oh?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Oh;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Oh?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Ah{encodeKey(t){return Ph(t)}encodeValue(t){return Ph(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Ph(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Th{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ah,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.split("&").forEach(t=>{const n=t.indexOf("="),[s,a]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(s)||[];o.push(a),i.set(s,o)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Th({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(t.value);-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Rh(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Mh(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Fh(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Nh{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new Oh),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),r)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new Nh(e,i,s,{params:l,headers:r,reportProgress:o,responseType:n,withCredentials:a})}}const zh=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class Lh{constructor(t,e=200,i="OK"){this.headers=t.headers||new Oh,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Bh extends Lh{constructor(t={}){super(t),this.type=zh.ResponseHeader}clone(t={}){return new Bh({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Jh extends Lh{constructor(t={}){super(t),this.type=zh.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Jh({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Vh extends Lh{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function jh(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let $h=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof Nh)n=t;else{let s=void 0;s=i.headers instanceof Oh?i.headers:new Oh(i.headers);let a=void 0;i.params&&(a=i.params instanceof Th?i.params:new Th({fromObject:i.params})),n=new Nh(t,e,void 0!==i.body?i.body:null,{headers:s,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=Ne(n).pipe(Ih(t=>this.handler.handle(t)));if(t instanceof Nh||"events"===i.observe)return s;const a=s.pipe(Qe(t=>t instanceof Jh));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return a.pipe(Object(ii.a)(t=>t.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Th).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,jh(i,e))}post(t,e,i={}){return this.request("POST",t,jh(i,e))}put(t,e,i={}){return this.request("PUT",t,jh(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Dh))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();class Hh{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Uh=new s.x("HTTP_INTERCEPTORS");let Gh=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();const Wh=/^\)\]\}',?\n/;class qh{}let Kh=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),Xh=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new si.a(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",a=new Oh(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new Bh({headers:a,status:e,statusText:n,url:o}),s},o=()=>{let{headers:n,status:s,statusText:o,url:r}=a(),l=null;204!==s&&(l=void 0===i.response?i.responseText:i.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Wh,"");try{l=""!==l?JSON.parse(l):null}catch(d){l=t,c&&(c=!1,l={error:d,text:l})}}c?(e.next(new Jh({body:l,headers:n,status:s,statusText:o,url:r||void 0})),e.complete()):e.error(new Vh({error:l,headers:n,status:s,statusText:o,url:r||void 0}))},r=t=>{const{url:n}=a(),s=new Vh({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let l=!1;const c=n=>{l||(e.next(a()),l=!0);let s={type:zh.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},d=t=>{let i={type:zh.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",r),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",d)),i.send(n),e.next({type:zh.Sent}),()=>{i.removeEventListener("error",r),i.removeEventListener("load",o),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",d)),i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(qh))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();const Yh=new s.x("XSRF_COOKIE_NAME"),Zh=new s.x("XSRF_HEADER_NAME");class Qh{}let tu=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(ve.O)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(ve.e),s.Sc(s.M),s.Sc(Yh))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),eu=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Qh),s.Sc(Zh))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),iu=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Uh,[]);this.chain=t.reduceRight((t,e)=>new Hh(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Eh),s.Sc(s.y))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),nu=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:eu,useClass:Gh}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Yh,useValue:e.cookieName}:[],e.headerName?{provide:Zh,useValue:e.headerName}:[]]}}}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[eu,{provide:Uh,useExisting:eu,multi:!0},{provide:Qh,useClass:tu},{provide:Yh,useValue:"XSRF-TOKEN"},{provide:Zh,useValue:"X-XSRF-TOKEN"}]}),t})(),su=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[$h,{provide:Dh,useClass:iu},Xh,{provide:Eh,useExisting:Xh},Kh,{provide:qh,useExisting:Kh}],imports:[[nu.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();const au=["*"];function ou(t){return Error(`Unable to find icon with the name "${t}"`)}function ru(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+`via Angular's DomSanitizer. Attempted URL was "${t}".`)}function lu(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+`Angular's DomSanitizer. Attempted literal was "${t}".`)}class cu{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let du=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new cu(i,n))}addSvgIconLiteralInNamespace(t,e,i,n){const a=this._sanitizer.sanitize(s.T.HTML,i);if(!a)throw lu(i);const o=this._createSvgElementForSingleIcon(a,n);return this._addSvgIconConfig(t,e,new cu(o,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new cu(e,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(s.T.HTML,e);if(!n)throw lu(e);const a=this._svgElementFromString(n);return this._addSvgIconSetConfig(t,new cu(a,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(s.T.RESOURCE_URL,t);if(!e)throw ru(t);const i=this._cachedIconsByUrl.get(e);return i?Ne(hu(i)):this._loadSvgIconFromConfig(new cu(t)).pipe(Ve(t=>this._cachedIconsByUrl.set(e,t)),Object(ii.a)(t=>hu(t)))}getNamedSvgIcon(t,e=""){const i=uu(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):il(ou(i))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?Ne(hu(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Ve(e=>t.svgElement=e),Object(ii.a)(t=>hu(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Ne(i):Is(e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(_h(e=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(s.T.RESOURCE_URL,t.url)} failed: ${e.message}`;return this._errorHandler?this._errorHandler.handleError(new Error(i)):console.error(i),Ne(null)})))).pipe(Object(ii.a)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw ou(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgElement){const e=this._extractSvgIconFromSet(n.svgElement,t,n.options);if(e)return e}}return null}_loadSvgIconFromConfig(t){return this._fetchUrl(t.url).pipe(Object(ii.a)(e=>this._createSvgElementForSingleIcon(e,t.options)))}_loadSvgIconSetFromConfig(t){return t.svgElement?Ne(t.svgElement):this._fetchUrl(t.url).pipe(Object(ii.a)(e=>(t.svgElement||(t.svgElement=this._svgElementFromString(e)),t.svgElement)))}_createSvgElementForSingleIcon(t,e){const i=this._svgElementFromString(t);return this._setSvgAttributes(i,e),i}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const a=this._svgElementFromString("");return a.appendChild(s),this._setSvgAttributes(a,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(e)),Object(Ch.a)());return this._inProgressUrlFetches.set(e,n),n}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(uu(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}}return t.\u0275fac=function(e){return new(e||t)(s.Sc($h,8),s.Sc(n.b),s.Sc(ve.e,8),s.Sc(s.t,8))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)($h,8),Object(s.Sc)(n.b),Object(s.Sc)(ve.e,8),Object(s.Sc)(s.t,8))},token:t,providedIn:"root"}),t})();function hu(t){return t.cloneNode(!0)}function uu(t,e){return t+":"+e}class pu{constructor(t){this._elementRef=t}}const mu=wn(pu),gu=new s.x("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(s.ib)(ve.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),fu=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],bu=fu.map(t=>`[${t}]`).join(", "),_u=/^url\(['"]?#(.*?)['"]?\)$/;let vu=(()=>{class t extends mu{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=di(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(e)if(this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);this._iconRegistry.getNamedSvgIcon(e,t).pipe(ri(1)).subscribe(t=>this._setSvgElement(t),i=>{const n=`Error retrieving icon ${t}:${e}! ${i.message}`;this._errorHandler?this._errorHandler.handleError(new Error(n)):console.error(n)})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(bu),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],a=s.getAttribute(t),o=a?a.match(_u):null;if(o){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(du),s.Tc("aria-hidden"),s.Dc(gu,8),s.Dc(s.t,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&s.tc("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[s.mc,s.nc],ngContentSelectors:au,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),yu=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();const wu=Si({passive:!0});let xu=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return ai;const e=gi(t),i=this._monitoredElements.get(e);if(i)return i.subject.asObservable();const n=new Pe.a,s="cdk-text-field-autofilled",a=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",a,wu),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",a,wu)}}),n.asObservable()}stopMonitoring(t){const e=gi(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(_i),s.Sc(s.I))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(_i),Object(s.Sc)(s.I))},token:t,providedIn:"root"}),t})(),ku=(()=>{class t{constructor(t,e){this._elementRef=t,this._autofillMonitor=e,this.cdkAutofill=new s.u}ngOnInit(){this._autofillMonitor.monitor(this._elementRef).subscribe(t=>this.cdkAutofill.emit(t))}ngOnDestroy(){this._autofillMonitor.stopMonitoring(this._elementRef)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(xu))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t})(),Cu=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new Pe.a,this._enabled=!0,this._previousMinRows=-1,this._document=n,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(t){this._minRows=hi(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=hi(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=di(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{kr(this._getWindow(),"resize").pipe(Ur(16),Gr(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=e.placeholder;e.classList.add("cdk-textarea-autosize-measuring"),e.placeholder="",e.style.height=`${e.scrollHeight-4}px`,e.classList.remove("cdk-textarea-autosize-measuring"),e.placeholder=n,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(_i),s.Dc(s.I),s.Dc(ve.e,8))},t.\u0275dir=s.yc({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&s.Wc("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t})(),Su=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vi]]}),t})(),Iu=(()=>{class t extends Cu{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(e){return Du(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[s.mc]}),t})();const Du=s.Lc(Iu),Eu=new s.x("MAT_INPUT_VALUE_ACCESSOR"),Ou=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Au=0;class Pu{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const Tu=Cn(Pu);let Ru=(()=>{class t extends Tu{constructor(t,e,i,n,s,a,o,r,l){super(a,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=r,this._uid=`mat-input-${Au++}`,this._isServer=!1,this._isNativeSelect=!1,this.focused=!1,this.stateChanges=new Pe.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>wi().has(t));const c=this._elementRef.nativeElement;this._inputValueAccessor=o||c,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===c.nodeName.toLowerCase(),this._isNativeSelect&&(this.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=di(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=di(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&wi().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=di(t)}ngOnInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_isTextarea(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){if(Ou.indexOf(this._type)>-1)throw Error(`Input type "${this._type}" isn't supported by matInput.`)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(_i),s.Dc(Ls,10),s.Dc(Ja,8),s.Dc(to,8),s.Dc(Bn),s.Dc(Eu,10),s.Dc(xu),s.Dc(s.I))},t.\u0275dir=s.yc({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&s.Wc("blur",(function(){return e._focusChanged(!1)}))("focus",(function(){return e._focusChanged(!0)}))("input",(function(){return e._onInput()})),2&t&&(s.Mc("disabled",e.disabled)("required",e.required),s.qc("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),s.tc("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[s.oc([{provide:Ic,useExisting:t}]),s.mc,s.nc]}),t})(),Mu=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Bn],imports:[[Su,Jc],Su,Jc]}),t})(),Fu=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=di(t)}get inset(){return this._inset}set inset(t){this._inset=di(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(s.qc("aria-orientation",e.vertical?"vertical":"horizontal"),s.tc("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),Nu=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();const zu=["*"],Lu=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Bu=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Ju=["text"];function Vu(t,e){if(1&t&&s.Ec(0,"mat-pseudo-checkbox",5),2&t){const t=s.ad();s.gd("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const ju=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],$u=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];class Hu{}const Uu=yn(xn(Hu));class Gu{}const Wu=xn(Gu);let qu=(()=>{class t extends Uu{constructor(){super(...arguments),this._stateChanges=new Pe.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return Ku(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s.mc,s.nc],ngContentSelectors:zu,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})();const Ku=s.Lc(qu);let Xu=(()=>{class t extends Uu{constructor(t){super(),this._elementRef=t,this._stateChanges=new Pe.a,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s.mc,s.nc],ngContentSelectors:zu,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),Yu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),Zu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),Qu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),tp=(()=>{class t extends Wu{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new Pe.a,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Gr(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=di(t)}ngAfterContentInit(){Vn(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(qu,8),s.Dc(Xu,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,Yu,!0),s.vc(i,Zu,!0),s.vc(i,Jn,!0)),2&t&&(s.md(n=s.Xc())&&(e._avatar=n.first),s.md(n=s.Xc())&&(e._icon=n.first),s.md(n=s.Xc())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.tc("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.mc],ngContentSelectors:Bu,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(s.fd(Lu),s.Jc(0,"div",0),s.Ec(1,"div",1),s.ed(2),s.Jc(3,"div",2),s.ed(4,1),s.Ic(),s.ed(5,2),s.Ic()),2&t&&(s.pc(1),s.gd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[Kn],encapsulation:2,changeDetection:0}),t})();class ep{}const ip=xn(ep);class np{}const sp=xn(np),ap={provide:Es,useExisting:Object(s.hb)(()=>lp),multi:!0};class op{constructor(t,e){this.source=t,this.option=e}}let rp=(()=>{class t extends sp{constructor(t,e,i){super(),this._element=t,this._changeDetector=e,this.selectionList=i,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(t){this._color=t}get value(){return this._value}set value(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(t){const e=di(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(t){const e=di(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}ngOnInit(){const t=this.selectionList;t._value&&t._value.some(e=>t.compareWith(e,this._value))&&this._setSelected(!0);const e=this._selected;Promise.resolve().then(()=>{(this._selected||e)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){Vn(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const t=this._hasFocus,e=this.selectionList._removeOptionFromList(this);t&&e&&e.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(Object(s.hb)(()=>lp)))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,Yu,!0),s.vc(i,Zu,!0),s.vc(i,Jn,!0)),2&t&&(s.md(n=s.Xc())&&(e._avatar=n.first),s.md(n=s.Xc())&&(e._icon=n.first),s.md(n=s.Xc())&&(e._lines=n))},viewQuery:function(t,e){var i;1&t&&s.Fd(Ju,!0),2&t&&s.md(i=s.Xc())&&(e._text=i.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.Wc("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(s.qc("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),s.tc("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[s.mc],ngContentSelectors:$u,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(s.fd(ju),s.Jc(0,"div",0),s.Ec(1,"div",1),s.zd(2,Vu,1,2,"mat-pseudo-checkbox",2),s.Jc(3,"div",3,4),s.ed(5),s.Ic(),s.ed(6,1),s.Ic()),2&t&&(s.tc("mat-list-item-content-reverse","after"==e.checkboxPosition),s.pc(1),s.gd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),s.pc(1),s.gd("ngIf",e.selectionList.multiple))},directives:[Kn,ve.t,Yn],encapsulation:2,changeDetection:0}),t})(),lp=(()=>{class t extends ip{constructor(t,e,i){super(),this._element=t,this._changeDetector=i,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new s.u,this.tabIndex=0,this.color="accent",this.compareWith=(t,e)=>t===e,this._disabled=!1,this.selectedOptions=new ws(this._multiple),this._tabIndex=-1,this._onChange=t=>{},this._destroyed=new Pe.a,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(t){const e=di(t);if(e!==this._multiple){if(Object(s.jb)()&&this._contentInitialized)throw new Error("Cannot change `multiple` mode of mat-selection-list after initialization.");this._multiple=e,this.selectedOptions=new ws(this._multiple,this.selectedOptions.selected)}}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new Bi(this.options).withWrap().withTypeAhead().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Gr(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(dn(null),Gr(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Gr(this._destroyed)).subscribe(t=>{if(t.added)for(let e of t.added)e.selected=!0;if(t.removed)for(let e of t.removed)e.selected=!1})}ngOnChanges(t){const e=t.disableRipple,i=t.color;(e&&!e.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){this._setAllOptionsSelected(!0)}deselectAll(){this._setAllOptionsSelected(!1)}_setFocusedOption(t){this._keyManager.updateActiveItem(t)}_removeOptionFromList(t){const e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}_keydown(t){const e=t.keyCode,i=this._keyManager,n=i.activeItemIndex,s=ze(t);switch(e){case 32:case 13:s||i.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case 36:case 35:s||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:65===e&&this.multiple&&ze(t,"ctrlKey")&&!i.isTyping()?(this.options.find(t=>!t.selected)?this.selectAll():this.deselectAll(),t.preventDefault()):i.onKeydown(t)}this.multiple&&(38===e||40===e)&&t.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new op(this,t))}_onFocus(){const t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_setOptionsFromValues(t){this.options.forEach(t=>t._setSelected(!1)),t.forEach(t=>{const e=this.options.find(e=>!e.selected&&this.compareWith(e.value,t));e&&e._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_toggleFocusedOption(){let t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){let e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}_setAllOptionsSelected(t){let e=!1;this.options.forEach(i=>{i._setSelected(t)&&(e=!0)}),e&&this._reportValueChange()}_isValidIndex(t){return t>=0&&tt._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Tc("tabindex"),s.Dc(s.j))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-selection-list"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,rp,!0),2&t&&s.md(n=s.Xc())&&(e.options=n)},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(t,e){1&t&&s.Wc("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onTouched()}))("keydown",(function(t){return e._keydown(t)})),2&t&&s.qc("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[s.oc([ap]),s.mc,s.nc],ngContentSelectors:zu,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),cp=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[$n,Xn,vn,Zn,ve.c],$n,vn,Zn,Nu]}),t})();const dp=["mat-menu-item",""],hp=["*"];function up(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",0),s.Wc("keydown",(function(e){return s.rd(t),s.ad()._handleKeydown(e)}))("click",(function(){return s.rd(t),s.ad().closed.emit("click")}))("@transformMenu.start",(function(e){return s.rd(t),s.ad()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return s.rd(t),s.ad()._onAnimationDone(e)})),s.Jc(1,"div",1),s.ed(2),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.gd("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.qc("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const pp={transformMenu:o("transformMenu",[h("void",d({opacity:0,transform:"scale(0.8)"})),p("void => enter",l([g(".mat-menu-content, .mat-mdc-menu-content",r("100ms linear",d({opacity:1}))),r("120ms cubic-bezier(0, 0, 0.2, 1)",d({transform:"scale(1)"}))])),p("* => void",r("100ms 25ms linear",d({opacity:0})))]),fadeInItems:o("fadeInItems",[h("showing",d({opacity:1})),p("void => *",[d({opacity:0}),r("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let mp=(()=>{class t{constructor(t,e,i,n,s,a,o){this._template=t,this._componentFactoryResolver=e,this._appRef=i,this._injector=n,this._viewContainerRef=s,this._document=a,this._changeDetectorRef=o,this._attached=new Pe.a}attach(t={}){this._portal||(this._portal=new _l(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new wl(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y),s.Dc(s.n),s.Dc(s.g),s.Dc(s.y),s.Dc(s.cb),s.Dc(ve.e),s.Dc(s.j))},t.\u0275dir=s.yc({type:t,selectors:[["ng-template","matMenuContent",""]]}),t})();const gp=new s.x("MAT_MENU_PANEL");class fp{}const bp=xn(yn(fp));let _p=(()=>{class t extends bp{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new Pe.a,this._focused=new Pe.a,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.monitor(this._elementRef,!1),n&&n.addItem&&n.addItem(this),this._document=e}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3;let i="";if(t.childNodes){const n=t.childNodes.length;for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.O,this._tabSubscription=Te.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Pe.a,this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.u,this.close=this.closed,this.panelId=`mat-menu-panel-${yp++}`}get xPosition(){return this._xPosition}set xPosition(t){"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=di(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=di(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Bi(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(dn(this._directDescendantItems),Xr(t=>Object(xr.a)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(dn(this._directDescendantItems),Xr(t=>Object(xr.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:ze(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case 36:case 35:ze(t)||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(dn(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(vp))},t.\u0275dir=s.yc({type:t,contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,mp,!0),s.vc(i,_p,!0),s.vc(i,_p,!1)),2&t&&(s.md(n=s.Xc())&&(e.lazyContent=n.first),s.md(n=s.Xc())&&(e._allItems=n),s.md(n=s.Xc())&&(e.items=n))},viewQuery:function(t,e){var i;1&t&&s.Fd(s.Y,!0),2&t&&s.md(i=s.Xc())&&(e.templateRef=i.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),xp=(()=>{class t extends wp{}return t.\u0275fac=function(e){return kp(e||t)},t.\u0275dir=s.yc({type:t,features:[s.mc]}),t})();const kp=s.Lc(xp);let Cp=(()=>{class t extends xp{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(vp))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[s.oc([{provide:gp,useExisting:xp},{provide:xp,useExisting:t}]),s.mc],ngContentSelectors:hp,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.fd(),s.zd(0,up,3,6,"ng-template"))},directives:[ve.q],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[pp.transformMenu,pp.fadeInItems]},changeDetection:0}),t})();const Sp=new s.x("mat-menu-scroll-strategy"),Ip={provide:Sp,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Dp=Si({passive:!0});let Ep=(()=>{class t{constructor(t,e,i,n,a,o,r,l){this._overlay=t,this._element=e,this._viewContainerRef=i,this._parentMenu=a,this._menuItemInstance=o,this._dir=r,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Te.a.EMPTY,this._hoverSubscription=Te.a.EMPTY,this._menuCloseSubscription=Te.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new s.u,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.u,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Dp),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=n}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMenu||this._parentMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Dp),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof xp&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof xp?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Qe(t=>"void"===t.toState),ri(1),Gr(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Nl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,o]=[n,s],[r,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=r="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(a="top"===n?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:a,overlayX:r,overlayY:n,offsetY:c},{originX:i,originY:a,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:o,overlayX:r,overlayY:s,offsetY:-c},{originX:i,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMenu?this._parentMenu.closed:Ne(),n=this._parentMenu?this._parentMenu._hovered().pipe(Qe(t=>t!==this._menuItemInstance),Qe(()=>this._menuOpen)):Ne();return Object(xr.a)(t,i,n,e)}_handleMousedown(t){Zi(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Qe(t=>t===this._menuItemInstance&&!t.disabled),Vc(0,Mr)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof xp&&this.menu._isAnimating?this.menu._animationDone.pipe(ri(1),Vc(0,Mr),Gr(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new _l(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ql),s.Dc(s.r),s.Dc(s.cb),s.Dc(Sp),s.Dc(xp,8),s.Dc(_p,10),s.Dc(nn,8),s.Dc(Xi))},t.\u0275dir=s.yc({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.Wc("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&s.qc("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),Op=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Ip],imports:[vn]}),t})(),Ap=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Ip],imports:[[ve.c,vn,Xn,ac,Op],Op]}),t})();const Pp={};function Tp(...t){let e=null,i=null;return Object(Re.a)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(ks.a)(t[0])&&(t=t[0]),Object(Me.a)(t,i).lift(new Rp(e))}class Rp{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Mp(t,this.resultSelector))}}class Mp extends Lr.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Pp),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;ithis.total&&this.destination.next(t)}}const zp=new Set;let Lp,Bp=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Jp}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!zp.has(t))try{Lp||(Lp=document.createElement("style"),Lp.setAttribute("type","text/css"),document.head.appendChild(Lp)),Lp.sheet&&(Lp.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),zp.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(_i))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(_i))},token:t,providedIn:"root"}),t})();function Jp(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Vp=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new Pe.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return jp(pi(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=Tp(jp(pi(t)).map(t=>this._registerQuery(t).observable));return e=cn(e.pipe(ri(1)),e.pipe(t=>t.lift(new Fp(1)),Ke(0))),e.pipe(Object(ii.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new si.a(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(dn(e),Object(ii.a)(e=>({query:t,matches:e.matches})),Gr(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Bp),s.Sc(s.I))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(Bp),Object(s.Sc)(s.I))},token:t,providedIn:"root"}),t})();function jp(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const $p={tooltipState:o("state",[h("initial, void, hidden",d({opacity:0,transform:"scale(0)"})),h("visible",d({transform:"scale(1)"})),p("* => visible",r("200ms cubic-bezier(0, 0, 0.2, 1)",u([d({opacity:0,transform:"scale(0)",offset:0}),d({opacity:.5,transform:"scale(0.99)",offset:.5}),d({opacity:1,transform:"scale(1)",offset:1})]))),p("* => hidden",r("100ms cubic-bezier(0, 0, 0.2, 1)",d({opacity:0})))])},Hp=Si({passive:!0});function Up(t){return Error(`Tooltip position "${t}" is invalid.`)}const Gp=new s.x("mat-tooltip-scroll-strategy"),Wp={provide:Gp,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},qp=new s.x("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Kp=(()=>{class t{constructor(t,e,i,n,s,a,o,r,l,c,d,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=a,this._ariaDescriber=o,this._focusMonitor=r,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new Pe.a,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!ze(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),r.monitor(e).pipe(Gr(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&s.run(()=>this.show()):s.run(()=>this.hide(0))}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._disabled&&this.hide(0)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?`${t}`.trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngOnInit(){this._setupPointerEvents()}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((e,i)=>{t.removeEventListener(i,e,Hp)}),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new bl(Xp,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Gr(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Gr(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Gr(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e||"below"==e)i={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Up(e);i={originX:"end",originY:"center"}}const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e)i={overlayX:"center",overlayY:"bottom"};else if("below"==e)i={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Up(e);i={overlayX:"start",overlayY:"center"}}const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(ri(1),Gr(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEvents(){if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",()=>{clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)})}}else this._passiveListeners.set("mouseenter",()=>this.show()).set("mouseleave",()=>this.hide());this._passiveListeners.forEach((t,e)=>{this._elementRef.nativeElement.addEventListener(e,t,Hp)})}_disableNativeGesturesIfNecessary(){const t=this._elementRef.nativeElement,e=t.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==i&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ql),s.Dc(s.r),s.Dc(hl),s.Dc(s.cb),s.Dc(s.I),s.Dc(_i),s.Dc(Ni),s.Dc(Xi),s.Dc(Gp),s.Dc(nn,8),s.Dc(qp,8),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),Xp=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Pe.a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide.asObservable()}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.j),s.Dc(Vp))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e._handleBodyInteraction()}),!1,s.od),2&t&&s.yd("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.Jc(0,"div",0),s.Wc("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),s.bd(1,"async"),s.Bd(2),s.Ic()),2&t){var i;const t=null==(i=s.cd(1,5,e._isHandset))?null:i.matches;s.tc("mat-tooltip-handset",t),s.gd("ngClass",e.tooltipClass)("@state",e._visibility),s.pc(2),s.Cd(e.message)}},directives:[ve.q],pipes:[ve.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[$p.tooltipState]},changeDetection:0}),t})(),Yp=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Wp],imports:[[tn,ve.c,ac,vn],vn]}),t})();const Zp=["primaryValueBar"];class Qp{constructor(t){this._elementRef=t}}const tm=wn(Qp,"primary"),em=new s.x("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Object(s.ib)(ve.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let im=0,nm=(()=>{class t extends tm{constructor(t,e,i,n){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=i,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new s.u,this._animationEndSubscription=Te.a.EMPTY,this.mode="determinate",this.progressbarId=`mat-progress-bar-${im++}`;const a=n?n.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${a}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===i}get value(){return this._value}set value(t){this._value=sm(hi(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=sm(t||0)}_primaryTransform(){return{transform:`scaleX(${this.value/100})`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scaleX(${this.bufferValue/100})`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=kr(t,"transitionend").pipe(Qe(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(Ee,8),s.Dc(em,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var i;1&t&&s.Fd(Zp,!0),2&t&&s.md(i=s.Xc())&&(e._primaryValueBar=i.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(s.qc("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),s.tc("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[s.mc],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(s.Zc(),s.Jc(0,"svg",0),s.Jc(1,"defs"),s.Jc(2,"pattern",1),s.Ec(3,"circle",2),s.Ic(),s.Ic(),s.Ec(4,"rect",3),s.Ic(),s.Yc(),s.Ec(5,"div",4),s.Ec(6,"div",5,6),s.Ec(8,"div",7)),2&t&&(s.pc(2),s.gd("id",e.progressbarId),s.pc(2),s.qc("fill",e._rectangleFillValue),s.pc(1),s.gd("ngStyle",e._bufferTransform()),s.pc(1),s.gd("ngStyle",e._primaryTransform()))},directives:[ve.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function sm(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let am=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c,vn],vn]}),t})();function om(t,e){if(1&t&&(s.Zc(),s.Ec(0,"circle",3)),2&t){const t=s.ad();s.yd("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.qc("r",t._circleRadius)}}function rm(t,e){if(1&t&&(s.Zc(),s.Ec(0,"circle",3)),2&t){const t=s.ad();s.yd("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.qc("r",t._circleRadius)}}function lm(t,e){if(1&t&&(s.Zc(),s.Ec(0,"circle",3)),2&t){const t=s.ad();s.yd("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.qc("r",t._circleRadius)}}function cm(t,e){if(1&t&&(s.Zc(),s.Ec(0,"circle",3)),2&t){const t=s.ad();s.yd("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.qc("r",t._circleRadius)}}class dm{constructor(t){this._elementRef=t}}const hm=wn(dm,"primary"),um=new s.x("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let pm=(()=>{class t extends hm{constructor(e,i,n,s,a){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!a&&!a._forceAnimations,a&&(a.diameter&&(this.diameter=a.diameter),a.strokeWidth&&(this.strokeWidth=a.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=hi(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=hi(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,hi(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Di(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}get _circleRadius(){return(this.diameter-10)/2}get _viewBox(){const t=2*this._circleRadius+this.strokeWidth;return`0 0 ${t} ${t}`}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 e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",i+""),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_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 t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(_i),s.Dc(ve.e,8),s.Dc(Ee,8),s.Dc(um))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(s.qc("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),s.yd("width",e.diameter,"px")("height",e.diameter,"px"),s.tc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[s.mc],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(t,e){1&t&&(s.Zc(),s.Jc(0,"svg",0),s.zd(1,om,1,9,"circle",1),s.zd(2,rm,1,7,"circle",2),s.Ic()),2&t&&(s.yd("width",e.diameter,"px")("height",e.diameter,"px"),s.gd("ngSwitch","indeterminate"===e.mode),s.qc("viewBox",e._viewBox),s.pc(1),s.gd("ngSwitchCase",!0),s.pc(1),s.gd("ngSwitchCase",!1))},directives:[ve.x,ve.y],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}),t._diameters=new WeakMap,t})(),mm=(()=>{class t extends pm{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(_i),s.Dc(ve.e,8),s.Dc(Ee,8),s.Dc(um))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(s.yd("width",e.diameter,"px")("height",e.diameter,"px"),s.tc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[s.mc],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(t,e){1&t&&(s.Zc(),s.Jc(0,"svg",0),s.zd(1,lm,1,9,"circle",1),s.zd(2,cm,1,7,"circle",2),s.Ic()),2&t&&(s.yd("width",e.diameter,"px")("height",e.diameter,"px"),s.gd("ngSwitch","indeterminate"===e.mode),s.qc("viewBox",e._viewBox),s.pc(1),s.gd("ngSwitchCase",!0),s.pc(1),s.gd("ngSwitchCase",!1))},directives:[ve.x,ve.y],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}),t})(),gm=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn,ve.c],vn]}),t})();const fm=["input"],bm=function(){return{enterDuration:150}},_m=["*"],vm=new s.x("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let ym=0;const wm={provide:Es,useExisting:Object(s.hb)(()=>km),multi:!0};class xm{constructor(t,e){this.source=t,this.value=e}}let km=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name=`mat-radio-group-${ym++}`,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new s.u}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=di(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new xm(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.j))},t.\u0275dir=s.yc({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Im,!0),2&t&&s.md(n=s.Xc())&&(e._radios=n)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[s.oc([wm])]}),t})();class Cm{constructor(t){this._elementRef=t}}const Sm=xn(kn(Cm));let Im=(()=>{class t extends Sm{constructor(t,e,i,n,a,o,r){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=a,this._animationMode=o,this._providerOverride=r,this._uniqueId=`mat-radio-${++ym}`,this.id=this._uniqueId,this.change=new s.u,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._removeUniqueSelectionListener=a.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=di(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(di(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=di(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new xm(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(km,8),s.Dc(s.r),s.Dc(s.j),s.Dc(Xi),s.Dc(xs),s.Dc(Ee,8),s.Dc(vm,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var i;1&t&&s.Fd(fm,!0),2&t&&s.md(i=s.Xc())&&(e._inputElement=i.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&s.Wc("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(s.qc("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),s.tc("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[s.mc],ngContentSelectors:_m,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(s.fd(),s.Jc(0,"label",0,1),s.Jc(2,"div",2),s.Ec(3,"div",3),s.Ec(4,"div",4),s.Jc(5,"input",5,6),s.Wc("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),s.Ic(),s.Jc(7,"div",7),s.Ec(8,"div",8),s.Ic(),s.Ic(),s.Jc(9,"div",9),s.Jc(10,"span",10),s.Bd(11,"\xa0"),s.Ic(),s.ed(12),s.Ic(),s.Ic()),2&t){const t=s.nd(1);s.qc("for",e.inputId),s.pc(5),s.gd("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),s.qc("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),s.pc(2),s.gd("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.id(18,bm)),s.pc(2),s.tc("mat-radio-label-before","before"==e.labelPosition)}},directives:[Kn],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),Dm=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[Xn,vn],vn]}),t})();const Em=["trigger"],Om=["panel"];function Am(t,e){if(1&t&&(s.Jc(0,"span",8),s.Bd(1),s.Ic()),2&t){const t=s.ad();s.pc(1),s.Cd(t.placeholder||"\xa0")}}function Pm(t,e){if(1&t&&(s.Jc(0,"span"),s.Bd(1),s.Ic()),2&t){const t=s.ad(2);s.pc(1),s.Cd(t.triggerValue||"\xa0")}}function Tm(t,e){1&t&&s.ed(0,0,["*ngSwitchCase","true"])}function Rm(t,e){if(1&t&&(s.Jc(0,"span",9),s.zd(1,Pm,2,1,"span",10),s.zd(2,Tm,1,0,void 0,11),s.Ic()),2&t){const t=s.ad();s.gd("ngSwitch",!!t.customTrigger),s.pc(2),s.gd("ngSwitchCase",!0)}}function Mm(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",12),s.Jc(1,"div",13,14),s.Wc("@transformPanel.done",(function(e){return s.rd(t),s.ad()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return s.rd(t),s.ad()._handleKeydown(e)})),s.ed(3,1),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.gd("@transformPanelWrap",void 0),s.pc(1),s.sc("mat-select-panel ",t._getPanelTheme(),""),s.yd("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.gd("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing")}}const Fm=[[["mat-select-trigger"]],"*"],Nm=["mat-select-trigger","*"],zm={transformPanelWrap:o("transformPanelWrap",[p("* => void",g("@transformPanel",[m()],{optional:!0}))]),transformPanel:o("transformPanel",[h("void",d({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),h("showing",d({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),h("showing-multiple",d({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),p("void => *",r("120ms cubic-bezier(0, 0, 0.2, 1)")),p("* => void",r("100ms 25ms linear",d({opacity:0})))])};let Lm=0;const Bm=new s.x("mat-select-scroll-strategy"),Jm=new s.x("MAT_SELECT_CONFIG"),Vm={provide:Bm,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class jm{constructor(t,e){this.source=t,this.value=e}}class $m{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const Hm=xn(kn(yn(Cn($m))));let Um=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-select-trigger"]]}),t})(),Gm=(()=>{class t extends Hm{constructor(t,e,i,n,a,o,r,l,c,d,h,u,p,m){super(a,n,r,l,d),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=o,this._parentFormField=c,this.ngControl=d,this._liveAnnouncer=p,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid=`mat-select-${Lm++}`,this._destroy=new Pe.a,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new Pe.a,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=wr(()=>{const t=this.options;return t?t.changes.pipe(dn(t),Xr(()=>Object(xr.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(ri(1),Xr(()=>this.optionSelectionChanges))}),this.openedChange=new s.u,this._openedStream=this.openedChange.pipe(Qe(t=>t),Object(ii.a)(()=>{})),this._closedStream=this.openedChange.pipe(Qe(t=>!t),Object(ii.a)(()=>{})),this.selectionChange=new s.u,this.valueChange=new s.u,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id,m&&(null!=m.disableOptionCentering&&(this.disableOptionCentering=m.disableOptionCentering),null!=m.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=m.typeaheadDebounceInterval))}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=di(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=di(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=di(t)}get compareWith(){return this._compareWith}set compareWith(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.writeValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=hi(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ws(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Fr(),Gr(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(Gr(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Gr(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(dn(null),Gr(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.options&&this._setSelectionByValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=40===e||38===e||37===e||39===e,n=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&n&&!ze(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const i=this.selected;36===e||35===e?(36===e?s.setFirstItemActive():s.setLastItemActive(),t.preventDefault()):s.onKeydown(t);const n=this.selected;n&&i!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=40===i||38===i,s=e.isTyping();if(36===i||35===i)t.preventDefault(),36===i?e.setFirstItemActive():e.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(s||13!==i&&32!==i||!e.activeItem||ze(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(ri(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(t=>this._selectValue(t)),this._sortValues()}else{this._selectionModel.clear();const e=this._selectValue(t);e?this._keyManager.setActiveItem(e):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return Object(s.jb)()&&console.warn(i),!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new Li(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Gr(this._destroy)).subscribe(()=>{!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close()}),this._keyManager.change.pipe(Gr(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(xr.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Gr(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(xr.a)(...this.options.map(t=>t._stateChanges)).pipe(Gr(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()}),this._setOptionIds()}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new jm(this,e)),this._changeDetectorRef.markForCheck()}_setOptionIds(){this._optionIds=this.options.map(t=>t.id).join(" ")}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const t=this._keyManager.activeItemIndex||0,e=ls(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=cs(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,i,n)=>void 0!==e?e:t===i?n:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);s+=ls(s,this.options,this.optionGroups);const a=i/2;this._scrollTop=this._calculateOverlayScroll(s,a,n),this._offsetY=this._calculateOverlayOffsetY(s,a,n),this._checkOverlayWithinViewport(n)}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}_getAriaLabel(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}_getAriaLabelledby(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const a=0-(t.left+s-(i?n:0)),o=t.right+s-e.width+(i?0:n);a>0?s+=a+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,a=Math.floor(256/n);let o;return this._disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-a))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-a-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):a>n?this._adjustPanelDown(a,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(pl),s.Dc(s.j),s.Dc(s.I),s.Dc(Bn),s.Dc(s.r),s.Dc(nn,8),s.Dc(Ja,8),s.Dc(to,8),s.Dc(Lc,8),s.Dc(Ls,10),s.Tc("tabindex"),s.Dc(Bm),s.Dc(Wi),s.Dc(Jm,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,Um,!0),s.vc(i,rs,!0),s.vc(i,is,!0)),2&t&&(s.md(n=s.Xc())&&(e.customTrigger=n.first),s.md(n=s.Xc())&&(e.options=n),s.md(n=s.Xc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(s.Fd(Em,!0),s.Fd(Om,!0),s.Fd(nc,!0)),2&t&&(s.md(i=s.Xc())&&(e.trigger=i.first),s.md(i=s.Xc())&&(e.panel=i.first),s.md(i=s.Xc())&&(e.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&s.Wc("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(s.qc("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),s.tc("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[s.oc([{provide:Ic,useExisting:t},{provide:os,useExisting:t}]),s.mc,s.nc],ngContentSelectors:Nm,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(s.fd(Fm),s.Jc(0,"div",0,1),s.Wc("click",(function(){return e.toggle()})),s.Jc(3,"div",2),s.zd(4,Am,2,1,"span",3),s.zd(5,Rm,3,2,"span",4),s.Ic(),s.Jc(6,"div",5),s.Ec(7,"div",6),s.Ic(),s.Ic(),s.zd(8,Mm,4,10,"ng-template",7),s.Wc("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=s.nd(1);s.pc(3),s.gd("ngSwitch",e.empty),s.pc(1),s.gd("ngSwitchCase",!0),s.pc(1),s.gd("ngSwitchCase",!1),s.pc(3),s.gd("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[ic,ve.x,ve.y,nc,ve.z,ve.q],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[zm.transformPanelWrap,zm.transformPanel]},changeDetection:0}),t})(),Wm=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Vm],imports:[[ve.c,ac,ds,vn],Jc,ds,vn]}),t})();const qm=["*"];function Km(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",2),s.Wc("click",(function(){return s.rd(t),s.ad()._onBackdropClicked()})),s.Ic()}if(2&t){const t=s.ad();s.tc("mat-drawer-shown",t._isShowingBackdrop())}}function Xm(t,e){1&t&&(s.Jc(0,"mat-drawer-content"),s.ed(1,2),s.Ic())}const Ym=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Zm=["mat-drawer","mat-drawer-content","*"];function Qm(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",2),s.Wc("click",(function(){return s.rd(t),s.ad()._onBackdropClicked()})),s.Ic()}if(2&t){const t=s.ad();s.tc("mat-drawer-shown",t._isShowingBackdrop())}}function tg(t,e){1&t&&(s.Jc(0,"mat-sidenav-content",3),s.ed(1,2),s.Ic())}const eg=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ig=["mat-sidenav","mat-sidenav-content","*"],ng={transformDrawer:o("transform",[h("open, open-instant",d({transform:"none",visibility:"visible"})),h("void",d({"box-shadow":"none",visibility:"hidden"})),p("void => open-instant",r("0ms")),p("void <=> open, open-instant => void",r("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function sg(t){throw Error(`A drawer was already declared for 'position="${t}"'`)}const ag=new s.x("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),og=new s.x("MAT_DRAWER_CONTAINER");let rg=(()=>{class t extends ul{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.j),s.Dc(Object(s.hb)(()=>cg)),s.Dc(s.r),s.Dc(hl),s.Dc(s.I))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.yd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.mc],ngContentSelectors:qm,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},encapsulation:2,changeDetection:0}),t})(),lg=(()=>{class t{constructor(t,e,i,n,a,o,r){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=a,this._doc=o,this._container=r,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Pe.a,this._animationEnd=new Pe.a,this._animationState="void",this.openedChange=new s.u(!0),this._destroyed=new Pe.a,this.onPositionChanged=new s.u,this._modeChanged=new Pe.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{kr(this._elementRef.nativeElement,"keydown").pipe(Qe(t=>27===t.keyCode&&!this.disableClose&&!ze(t)),Gr(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Fr((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=di(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=di(t)}get opened(){return this._opened}set opened(t){this.toggle(di(t))}get _openedStream(){return this.openedChange.pipe(Qe(t=>t),Object(ii.a)(()=>{}))}get openedStart(){return this._animationStarted.pipe(Qe(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Object(ii.a)(()=>{}))}get _closedStream(){return this.openedChange.pipe(Qe(t=>!t),Object(ii.a)(()=>{}))}get closedStart(){return this._animationStarted.pipe(Qe(t=>t.fromState!==t.toState&&"void"===t.toState),Object(ii.a)(()=>{}))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){if(!this.autoFocus)return;const t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}toggle(t=!this.opened,e="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(ri(1)).subscribe(e=>t(e?"open":"close"))})}get _width(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Hi),s.Dc(Xi),s.Dc(_i),s.Dc(s.I),s.Dc(ve.e,8),s.Dc(og,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.uc("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(s.qc("align",null),s.Ed("@transform",e._animationState),s.tc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:qm,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0),s.ed(1),s.Ic())},encapsulation:2,data:{animation:[ng.transformDrawer]},changeDetection:0}),t})(),cg=(()=>{class t{constructor(t,e,i,n,a,o=!1,r){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=r,this._drawers=new s.O,this.backdropClick=new s.u,this._destroyed=new Pe.a,this._doCheckSubject=new Pe.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Pe.a,t&&t.change.pipe(Gr(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(Gr(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=di(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:di(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(dn(this._allDrawers),Gr(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(dn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(Ke(10),Gr(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._width;else if("push"==this._left.mode){const i=this._left._width;t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._width;else if("push"==this._right.mode){const i=this._right._width;e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Qe(t=>t.fromState!==t.toState),Gr(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Gr(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Gr(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.asObservable().pipe(ri(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Gr(Object(xr.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?(null!=this._end&&sg("end"),this._end=t):(null!=this._start&&sg("start"),this._start=t)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawer()}_closeModalDrawer(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t.close())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(nn,8),s.Dc(s.r),s.Dc(s.I),s.Dc(s.j),s.Dc(pl),s.Dc(ag),s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,rg,!0),s.vc(i,lg,!0)),2&t&&(s.md(n=s.Xc())&&(e._content=n.first),s.md(n=s.Xc())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;1&t&&s.Fd(rg,!0),2&t&&s.md(i=s.Xc())&&(e._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s.oc([{provide:og,useExisting:t}])],ngContentSelectors:Zm,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(s.fd(Ym),s.zd(0,Km,1,2,"div",0),s.ed(1),s.ed(2,1),s.zd(3,Xm,2,0,"mat-drawer-content",1)),2&t&&(s.gd("ngIf",e.hasBackdrop),s.pc(3),s.gd("ngIf",!e._content))},directives:[ve.t,rg],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t})(),dg=(()=>{class t extends rg{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.j),s.Dc(Object(s.hb)(()=>pg)),s.Dc(s.r),s.Dc(hl),s.Dc(s.I))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.yd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.mc],ngContentSelectors:qm,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},encapsulation:2,changeDetection:0}),t})(),hg=(()=>{class t extends lg{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=di(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=hi(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=hi(t)}}return t.\u0275fac=function(e){return ug(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.qc("align",null),s.yd("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.tc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.mc],ngContentSelectors:qm,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0),s.ed(1),s.Ic())},encapsulation:2,data:{animation:[ng.transformDrawer]},changeDetection:0}),t})();const ug=s.Lc(hg);let pg=(()=>{class t extends cg{}return t.\u0275fac=function(e){return mg(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,dg,!0),s.vc(i,hg,!0)),2&t&&(s.md(n=s.Xc())&&(e._content=n.first),s.md(n=s.Xc())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s.oc([{provide:og,useExisting:t}]),s.mc],ngContentSelectors:ig,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.fd(eg),s.zd(0,Qm,1,2,"div",0),s.ed(1),s.ed(2,1),s.zd(3,tg,2,0,"mat-sidenav-content",1)),2&t&&(s.gd("ngIf",e.hasBackdrop),s.pc(3),s.gd("ngIf",!e._content))},directives:[ve.t,dg,ul],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t})();const mg=s.Lc(pg);let gg=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c,vn,ml,vi],vn]}),t})();const fg=["thumbContainer"],bg=["toggleBar"],_g=["input"],vg=function(){return{enterDuration:150}},yg=["*"],wg=new s.x("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let xg=0;const kg={provide:Es,useExisting:Object(s.hb)(()=>Dg),multi:!0};class Cg{constructor(t,e){this.source=t,this.checked=e}}class Sg{constructor(t){this._elementRef=t}}const Ig=kn(wn(xn(yn(Sg)),"accent"));let Dg=(()=>{class t extends Ig{constructor(t,e,i,n,a,o,r,l){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=o,this._animationMode=r,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId=`mat-slide-toggle-${++xg}`,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new s.u,this.toggleChange=new s.u,this.dragChange=new s.u,this.tabIndex=parseInt(n)||0}get required(){return this._required}set required(t){this._required=di(t)}get checked(){return this._checked}set checked(t){this._checked=di(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new Cg(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Xi),s.Dc(s.j),s.Tc("tabindex"),s.Dc(s.I),s.Dc(wg),s.Dc(Ee,8),s.Dc(nn,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;1&t&&(s.Fd(fg,!0),s.Fd(bg,!0),s.Fd(_g,!0)),2&t&&(s.md(i=s.Xc())&&(e._thumbEl=i.first),s.md(i=s.Xc())&&(e._thumbBarEl=i.first),s.md(i=s.Xc())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Mc("id",e.id),s.qc("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),s.tc("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[s.oc([kg]),s.mc],ngContentSelectors:yg,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.fd(),s.Jc(0,"label",0,1),s.Jc(2,"div",2,3),s.Jc(4,"input",4,5),s.Wc("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),s.Ic(),s.Jc(6,"div",6,7),s.Ec(8,"div",8),s.Jc(9,"div",9),s.Ec(10,"div",10),s.Ic(),s.Ic(),s.Ic(),s.Jc(11,"span",11,12),s.Wc("cdkObserveContent",(function(){return e._onLabelTextChange()})),s.Jc(13,"span",13),s.Bd(14,"\xa0"),s.Ic(),s.ed(15),s.Ic(),s.Ic()),2&t){const t=s.nd(1),i=s.nd(12);s.qc("for",e.inputId),s.pc(2),s.tc("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),s.pc(2),s.gd("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),s.qc("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.pc(5),s.gd("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.id(17,vg))}},directives:[Kn,Ai],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})();const Eg={provide:$s,useExisting:Object(s.hb)(()=>Og),multi:!0};let Og=(()=>{class t extends uo{}return t.\u0275fac=function(e){return Ag(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[s.oc([Eg]),s.mc]}),t})();const Ag=s.Lc(Og);let Pg=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})(),Tg=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[Pg,Xn,vn,Pi],Pg,vn]}),t})();function Rg(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",1),s.Jc(1,"button",2),s.Wc("click",(function(){return s.rd(t),s.ad().action()})),s.Bd(2),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(2),s.Cd(t.data.action)}}function Mg(t,e){}const Fg=Math.pow(2,31)-1;class Ng{constructor(t,e){this._overlayRef=e,this._afterDismissed=new Pe.a,this._afterOpened=new Pe.a,this._onAction=new Pe.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,Fg))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed.asObservable()}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction.asObservable()}}const zg=new s.x("MatSnackBarData");class Lg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Bg=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ng),s.Dc(zg))},t.\u0275cmp=s.xc({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(s.Jc(0,"span"),s.Bd(1),s.Ic(),s.zd(2,Rg,3,1,"div",0)),2&t&&(s.pc(1),s.Cd(e.data.message),s.pc(1),s.gd("ngIf",e.hasAction))},directives:[ve.t,bs],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const Jg={snackBarState:o("state",[h("void, hidden",d({transform:"scale(0.8)",opacity:0})),h("visible",d({transform:"scale(1)",opacity:1})),p("* => visible",r("150ms cubic-bezier(0, 0, 0.2, 1)")),p("* => void, * => hidden",r("75ms cubic-bezier(0.4, 0.0, 1, 1)",d({opacity:0})))])};let Vg=(()=>{class t extends yl{constructor(t,e,i,n){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this.snackBarConfig=n,this._destroyed=!1,this._onExit=new Pe.a,this._onEnter=new Pe.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._role="assertive"!==n.politeness||n.announcementMessage?"off"===n.politeness?null:"status":"alert"}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:i}=t;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.asObservable().pipe(ri(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.I),s.Dc(s.r),s.Dc(s.j),s.Dc(Lg))},t.\u0275cmp=s.xc({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var i;1&t&&s.xd(kl,!0),2&t&&s.md(i=s.Xc())&&(e._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&s.uc("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(s.qc("role",e._role),s.Ed("@state",e._animationState))},features:[s.mc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.zd(0,Mg,0,0,"ng-template",0)},directives:[kl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[Jg.snackBarState]}}),t})(),jg=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ac,Il,ve.c,vs,vn],vn]}),t})();const $g=new s.x("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new Lg}});let Hg=(()=>{class t{constructor(t,e,i,n,s,a){this._overlay=t,this._live=e,this._injector=i,this._breakpointObserver=n,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",i){const n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:t,action:e},n.announcementMessage||(n.announcementMessage=t),this.openFromComponent(Bg,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const i=new Dl(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[Lg,e]])),n=new bl(Vg,e.viewContainerRef,i),s=t.attach(n);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const i=Object.assign(Object.assign(Object.assign({},new Lg),this._defaultConfig),e),n=this._createOverlay(i),a=this._attachSnackBarContainer(n,i),o=new Ng(a,n);if(t instanceof s.Y){const e=new _l(t,null,{$implicit:i.data,snackBarRef:o});o.instance=a.attachTemplatePortal(e)}else{const e=this._createInjector(i,o),n=new bl(t,void 0,e),s=a.attachComponentPortal(n);o.instance=s.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(Gr(n.detachments())).subscribe(t=>{const e=n.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")}),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}_createOverlay(t){const e=new Nl;e.direction=t.direction;let i=this._overlay.position().global();const n="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!n||"end"===t.horizontalPosition&&n,a=!s&&"center"!==t.horizontalPosition;return s?i.left("0"):a?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)}_createInjector(t,e){return new Dl(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[Ng,e],[zg,t.data]]))}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Ql),s.Sc(Wi),s.Sc(s.y),s.Sc(Vp),s.Sc(t,12),s.Sc($g))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(Ql),Object(s.Sc)(Wi),Object(s.Sc)(s.v),Object(s.Sc)(Vp),Object(s.Sc)(t,12),Object(s.Sc)($g))},token:t,providedIn:jg}),t})();const Ug=["*",[["mat-toolbar-row"]]],Gg=["*","mat-toolbar-row"];class Wg{constructor(t){this._elementRef=t}}const qg=wn(Wg);let Kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Xg=(()=>{class t extends qg{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){Object(s.jb)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(t=>!(t.classList&&t.classList.contains("mat-toolbar-row"))).filter(t=>t.nodeType!==(this._document?this._document.COMMENT_NODE:8)).some(t=>!(!t.textContent||!t.textContent.trim()))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(_i),s.Dc(ve.e))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Kg,!0),2&t&&s.md(n=s.Xc())&&(e._toolbarRows=n)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.tc("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.mc],ngContentSelectors:Gg,decls:2,vars:0,template:function(t,e){1&t&&(s.fd(Ug),s.ed(0),s.ed(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),t})(),Yg=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();function Zg(t,e){1&t&&s.ed(0)}const Qg=["*"];function tf(t,e){}const ef=function(t){return{animationDuration:t}},nf=function(t,e){return{value:t,params:e}},sf=["tabBodyWrapper"],af=["tabHeader"];function of(t,e){}function rf(t,e){if(1&t&&s.zd(0,of,0,0,"ng-template",9),2&t){const t=s.ad().$implicit;s.gd("cdkPortalOutlet",t.templateLabel)}}function lf(t,e){if(1&t&&s.Bd(0),2&t){const t=s.ad().$implicit;s.Cd(t.textLabel)}}function cf(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",6),s.Wc("click",(function(){s.rd(t);const i=e.$implicit,n=e.index,a=s.ad(),o=s.nd(1);return a._handleClick(i,o,n)})),s.Jc(1,"div",7),s.zd(2,rf,1,1,"ng-template",8),s.zd(3,lf,1,1,"ng-template",8),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit,i=e.index,n=s.ad();s.tc("mat-tab-label-active",n.selectedIndex==i),s.gd("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),s.qc("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),s.pc(2),s.gd("ngIf",t.templateLabel),s.pc(1),s.gd("ngIf",!t.templateLabel)}}function df(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-tab-body",10),s.Wc("_onCentered",(function(){return s.rd(t),s.ad()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return s.rd(t),s.ad()._setTabBodyWrapperHeight(e)})),s.Ic()}if(2&t){const t=e.$implicit,i=e.index,n=s.ad();s.tc("mat-tab-body-active",n.selectedIndex==i),s.gd("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),s.qc("aria-labelledby",n._getTabLabelId(i))}}const hf=["tabListContainer"],uf=["tabList"],pf=["nextPaginator"],mf=["previousPaginator"],gf=["mat-tab-nav-bar",""],ff=new s.x("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let bf=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(ff),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})(),_f=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["","matTabContent",""]]}),t})(),vf=(()=>{class t extends xl{}return t.\u0275fac=function(e){return yf(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.mc]}),t})();const yf=s.Lc(vf);class wf{}const xf=yn(wf),kf=new s.x("MAT_TAB_GROUP");let Cf=(()=>{class t extends xf{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new Pe.a,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){t&&(this._templateLabel=t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _l(this._explicitContent||this._implicitContent,this._viewContainerRef)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.cb),s.Dc(kf,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,vf,!0),s.wd(i,_f,!0,s.Y)),2&t&&(s.md(n=s.Xc())&&(e.templateLabel=n.first),s.md(n=s.Xc())&&(e._explicitContent=n.first))},viewQuery:function(t,e){var i;1&t&&s.xd(s.Y,!0),2&t&&s.md(i=s.Xc())&&(e._implicitContent=i.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.mc,s.nc],ngContentSelectors:Qg,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.zd(0,Zg,1,0,"ng-template"))},encapsulation:2}),t})();const Sf={translateTab:o("translateTab",[h("center, void, left-origin-center, right-origin-center",d({transform:"none"})),h("left",d({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),h("right",d({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),p("* => left, * => right, left => center, right => center",r("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),p("void => left-origin-center",[d({transform:"translate3d(-100%, 0, 0)"}),r("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),p("void => right-origin-center",[d({transform:"translate3d(100%, 0, 0)"}),r("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let If=(()=>{class t extends kl{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=Te.a.EMPTY,this._leavingSub=Te.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(dn(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.n),s.Dc(s.cb),s.Dc(Object(s.hb)(()=>Ef)),s.Dc(ve.e))},t.\u0275dir=s.yc({type:t,selectors:[["","matTabBodyHost",""]],features:[s.mc]}),t})(),Df=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=Te.a.EMPTY,this._translateTabComplete=new Pe.a,this._onCentering=new s.u,this._beforeCentering=new s.u,this._afterLeavingCenter=new s.u,this._onCentered=new s.u(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Fr((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(nn,8),s.Dc(s.j))},t.\u0275dir=s.yc({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),Ef=(()=>{class t extends Df{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(nn,8),s.Dc(s.j))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;1&t&&s.Fd(Cl,!0),2&t&&s.md(i=s.Xc())&&(e._portalHost=i.first)},hostAttrs:[1,"mat-tab-body"],features:[s.mc],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(s.Jc(0,"div",0,1),s.Wc("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),s.zd(2,tf,0,0,"ng-template",2),s.Ic()),2&t&&s.gd("@translateTab",s.kd(3,nf,e._position,s.jd(1,ef,e.animationDuration)))},directives:[If],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Sf.translateTab]}}),t})();const Of=new s.x("MAT_TABS_CONFIG");let Af=0;class Pf{}class Tf{constructor(t){this._elementRef=t}}const Rf=wn(xn(Tf),"primary");let Mf=(()=>{class t extends Rf{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new s.O,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=Te.a.EMPTY,this._tabLabelSubscription=Te.a.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.u,this.focusChange=new s.u,this.animationDone=new s.u,this.selectedTabChange=new s.u(!0),this._groupId=Af++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=di(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=hi(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>!t._closestTabGroup||t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new Pf;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(xr.a)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(Of,8),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.mc]}),t})(),Ff=(()=>{class t extends Mf{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(Of,8),s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Cf,!0),2&t&&s.md(n=s.Xc())&&(e._allTabs=n)},viewQuery:function(t,e){var i;1&t&&(s.Fd(sf,!0),s.Fd(af,!0)),2&t&&(s.md(i=s.Xc())&&(e._tabBodyWrapper=i.first),s.md(i=s.Xc())&&(e._tabHeader=i.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&s.tc("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.oc([{provide:kf,useExisting:t}]),s.mc],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(s.Jc(0,"mat-tab-header",0,1),s.Wc("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),s.zd(2,cf,4,14,"div",2),s.Ic(),s.Jc(3,"div",3,4),s.zd(5,df,1,8,"mat-tab-body",5),s.Ic()),2&t&&(s.gd("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),s.pc(2),s.gd("ngForOf",e._tabs),s.pc(1),s.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.pc(2),s.gd("ngForOf",e._tabs))},directives:function(){return[jf,ve.s,Lf,Kn,Yi,ve.t,kl,Ef]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class Nf{}const zf=yn(Nf);let Lf=(()=>{class t extends zf{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(s.qc("aria-disabled",!!e.disabled),s.tc("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[s.mc]}),t})();const Bf=Si({passive:!0});let Jf=(()=>{class t{constructor(t,e,i,n,a,o,r){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=a,this._platform=o,this._animationMode=r,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Pe.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Pe.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.u,this.indexFocused=new s.u,a.runOutsideAngular(()=>{kr(t.nativeElement,"mouseleave").pipe(Gr(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=hi(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){kr(this._previousPaginator.nativeElement,"touchstart",Bf).pipe(Gr(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),kr(this._nextPaginator.nativeElement,"touchstart",Bf).pipe(Gr(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Ne(null),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Bi(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Object(xr.a)(t,e,this._items.changes).pipe(Gr(this._destroyed)).subscribe(()=>{i(),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Gr(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!ze(t))switch(t.keyCode){case 36:this._keyManager.setFirstItemActive(),t.preventDefault();break;case 35:this._keyManager.setLastItemActive(),t.preventDefault();break;case 13:case 32:this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t);break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e=this._platform,i="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let a,o;"ltr"==this._getLayoutDirection()?(a=n,o=a+s):(o=this._tabList.nativeElement.offsetWidth-n,a=o-s);const r=this.scrollDistance,l=this.scrollDistance+i;al&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),$r(650,100).pipe(Gr(Object(xr.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(pl),s.Dc(nn,8),s.Dc(s.I),s.Dc(_i),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),Vf=(()=>{class t extends Jf{constructor(t,e,i,n,s,a,o){super(t,e,i,n,s,a,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=di(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(pl),s.Dc(nn,8),s.Dc(s.I),s.Dc(_i),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,inputs:{disableRipple:"disableRipple"},features:[s.mc]}),t})(),jf=(()=>{class t extends Vf{constructor(t,e,i,n,s,a,o){super(t,e,i,n,s,a,o)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(pl),s.Dc(nn,8),s.Dc(s.I),s.Dc(_i),s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Lf,!1),2&t&&s.md(n=s.Xc())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(s.xd(bf,!0),s.xd(hf,!0),s.xd(uf,!0),s.Fd(pf,!0),s.Fd(mf,!0)),2&t&&(s.md(i=s.Xc())&&(e._inkBar=i.first),s.md(i=s.Xc())&&(e._tabListContainer=i.first),s.md(i=s.Xc())&&(e._tabList=i.first),s.md(i=s.Xc())&&(e._nextPaginator=i.first),s.md(i=s.Xc())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&s.tc("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.mc],ngContentSelectors:Qg,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0,1),s.Wc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),s.Ec(2,"div",2),s.Ic(),s.Jc(3,"div",3,4),s.Wc("keydown",(function(t){return e._handleKeydown(t)})),s.Jc(5,"div",5,6),s.Wc("cdkObserveContent",(function(){return e._onContentChanges()})),s.Jc(7,"div",7),s.ed(8),s.Ic(),s.Ec(9,"mat-ink-bar"),s.Ic(),s.Ic(),s.Jc(10,"div",8,9),s.Wc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),s.Ec(12,"div",2),s.Ic()),2&t&&(s.tc("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.gd("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.pc(5),s.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.pc(5),s.tc("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.gd("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Kn,Ai,bf],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center] .mat-tab-labels{justify-content:center}[mat-align-tabs=end] .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),$f=(()=>{class t extends Jf{constructor(t,e,i,n,s,a,o){super(t,n,s,e,i,a,o),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove(`mat-background-${this.backgroundColor}`),t&&e.add(`mat-background-${t}`),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=di(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe(dn(null),Gr(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(t){if(!this._items)return;const e=this._items.toArray();for(let i=0;i{class t extends $f{constructor(t,e,i,n,s,a,o){super(t,e,i,n,s,a,o)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(nn,8),s.Dc(s.I),s.Dc(s.j),s.Dc(pl),s.Dc(_i,8),s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,qf,!0),2&t&&s.md(n=s.Xc())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(s.xd(bf,!0),s.xd(hf,!0),s.xd(uf,!0),s.Fd(pf,!0),s.Fd(mf,!0)),2&t&&(s.md(i=s.Xc())&&(e._inkBar=i.first),s.md(i=s.Xc())&&(e._tabListContainer=i.first),s.md(i=s.Xc())&&(e._tabList=i.first),s.md(i=s.Xc())&&(e._nextPaginator=i.first),s.md(i=s.Xc())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&s.tc("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.mc],attrs:gf,ngContentSelectors:Qg,decls:13,vars:6,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0,1),s.Wc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),s.Ec(2,"div",2),s.Ic(),s.Jc(3,"div",3,4),s.Wc("keydown",(function(t){return e._handleKeydown(t)})),s.Jc(5,"div",5,6),s.Wc("cdkObserveContent",(function(){return e._onContentChanges()})),s.Jc(7,"div",7),s.ed(8),s.Ic(),s.Ec(9,"mat-ink-bar"),s.Ic(),s.Ic(),s.Jc(10,"div",8,9),s.Wc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),s.Ec(12,"div",2),s.Ic()),2&t&&(s.tc("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.gd("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.pc(10),s.tc("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.gd("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Kn,Ai,bf],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center] .mat-tab-links{justify-content:center}[mat-align-tabs=end] .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t})();class Uf{}const Gf=kn(xn(yn(Uf)));let Wf=(()=>{class t extends Gf{constructor(t,e,i,n,s,a){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=s,this._isActive=!1,this.rippleConfig=i||{},this.tabIndex=parseInt(n)||0,"NoopAnimations"===a&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),s.monitor(e)}get active(){return this._isActive}set active(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc($f),s.Dc(s.r),s.Dc(qn,8),s.Tc("tabindex"),s.Dc(Xi),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,inputs:{active:"active"},features:[s.mc]}),t})(),qf=(()=>{class t extends Wf{constructor(t,e,i,n,s,a,o,r){super(t,e,s,a,o,r),this._tabLinkRipple=new Wn(this,i,e,n),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Hf),s.Dc(s.r),s.Dc(s.I),s.Dc(_i),s.Dc(qn,8),s.Tc("tabindex"),s.Dc(Xi),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(s.qc("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),s.tc("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.mc]}),t})(),Kf=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c,vn,Il,Xn,Pi,tn],vn]}),t})();function Xf(t,e){if(1&t&&(s.Jc(0,"mat-option",19),s.Bd(1),s.Ic()),2&t){const t=e.$implicit;s.gd("value",t),s.pc(1),s.Dd(" ",t," ")}}function Yf(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-form-field",16),s.Jc(1,"mat-select",17),s.Wc("selectionChange",(function(e){return s.rd(t),s.ad(2)._changePageSize(e.value)})),s.zd(2,Xf,2,2,"mat-option",18),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.gd("color",t.color),s.pc(1),s.gd("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.pc(1),s.gd("ngForOf",t._displayedPageSizeOptions)}}function Zf(t,e){if(1&t&&(s.Jc(0,"div",20),s.Bd(1),s.Ic()),2&t){const t=s.ad(2);s.pc(1),s.Cd(t.pageSize)}}function Qf(t,e){if(1&t&&(s.Jc(0,"div",12),s.Jc(1,"div",13),s.Bd(2),s.Ic(),s.zd(3,Yf,3,5,"mat-form-field",14),s.zd(4,Zf,2,1,"div",15),s.Ic()),2&t){const t=s.ad();s.pc(2),s.Dd(" ",t._intl.itemsPerPageLabel," "),s.pc(1),s.gd("ngIf",t._displayedPageSizeOptions.length>1),s.pc(1),s.gd("ngIf",t._displayedPageSizeOptions.length<=1)}}function tb(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",21),s.Wc("click",(function(){return s.rd(t),s.ad().firstPage()})),s.Zc(),s.Jc(1,"svg",7),s.Ec(2,"path",22),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.gd("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.qc("aria-label",t._intl.firstPageLabel)}}function eb(t,e){if(1&t){const t=s.Kc();s.Zc(),s.Yc(),s.Jc(0,"button",23),s.Wc("click",(function(){return s.rd(t),s.ad().lastPage()})),s.Zc(),s.Jc(1,"svg",7),s.Ec(2,"path",24),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.gd("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.qc("aria-label",t._intl.lastPageLabel)}}let ib=(()=>{class t{constructor(){this.changes=new Pe.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.zc)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const nb={provide:ib,deps:[[new s.J,new s.U,ib]],useFactory:function(t){return t||new ib}},sb=new s.x("MAT_PAGINATOR_DEFAULT_OPTIONS");class ab{}const ob=yn(Sn(ab));let rb=(()=>{class t extends ob{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.u,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(hi(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=hi(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(hi(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>hi(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=di(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=di(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(ib),s.Dc(s.j),s.Dc(sb,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[s.mc],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.zd(2,Qf,5,3,"div",2),s.Jc(3,"div",3),s.Jc(4,"div",4),s.Bd(5),s.Ic(),s.zd(6,tb,3,5,"button",5),s.Jc(7,"button",6),s.Wc("click",(function(){return e.previousPage()})),s.Zc(),s.Jc(8,"svg",7),s.Ec(9,"path",8),s.Ic(),s.Ic(),s.Yc(),s.Jc(10,"button",9),s.Wc("click",(function(){return e.nextPage()})),s.Zc(),s.Jc(11,"svg",7),s.Ec(12,"path",10),s.Ic(),s.Ic(),s.zd(13,eb,3,5,"button",11),s.Ic(),s.Ic(),s.Ic()),2&t&&(s.pc(2),s.gd("ngIf",!e.hidePageSize),s.pc(3),s.Dd(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.pc(1),s.gd("ngIf",e.showFirstLastButtons),s.pc(1),s.gd("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.qc("aria-label",e._intl.previousPageLabel),s.pc(3),s.gd("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.qc("aria-label",e._intl.nextPageLabel),s.pc(3),s.gd("ngIf",e.showFirstLastButtons))},directives:[ve.t,bs,Kp,Bc,Gm,ve.s,rs],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),lb=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[nb],imports:[[ve.c,vs,Wm,Yp]]}),t})();const cb=["mat-sort-header",""];function db(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",3),s.Wc("@arrowPosition.start",(function(){return s.rd(t),s.ad()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return s.rd(t),s.ad()._disableViewStateAnimation=!1})),s.Ec(1,"div",4),s.Jc(2,"div",5),s.Ec(3,"div",6),s.Ec(4,"div",7),s.Ec(5,"div",8),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.gd("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),s.pc(2),s.gd("@indicator",t._getArrowDirectionState()),s.pc(1),s.gd("@leftPointer",t._getArrowDirectionState()),s.pc(1),s.gd("@rightPointer",t._getArrowDirectionState())}}const hb=["*"];class ub{}const pb=Sn(yn(ub));let mb=(()=>{class t extends pb{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new Pe.a,this.start="asc",this._direction="",this.sortChange=new s.u}get direction(){return this._direction}set direction(t){if(Object(s.jb)()&&t&&"asc"!==t&&"desc"!==t)throw function(t){return Error(`${t} is not a valid sort direction ('asc' or 'desc').`)}(t);this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=di(t)}register(t){if(!t.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(t.id))throw Error(`Cannot have two MatSortables with the same id (${t.id}).`);this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),i=e.indexOf(this.direction)+1;return i>=e.length&&(i=0),e[i]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return gb(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[s.mc,s.nc]}),t})();const gb=s.Lc(mb),fb=fn.ENTERING+" "+gn.STANDARD_CURVE,bb={indicator:o("indicator",[h("active-asc, asc",d({transform:"translateY(0px)"})),h("active-desc, desc",d({transform:"translateY(10px)"})),p("active-asc <=> active-desc",r(fb))]),leftPointer:o("leftPointer",[h("active-asc, asc",d({transform:"rotate(-45deg)"})),h("active-desc, desc",d({transform:"rotate(45deg)"})),p("active-asc <=> active-desc",r(fb))]),rightPointer:o("rightPointer",[h("active-asc, asc",d({transform:"rotate(45deg)"})),h("active-desc, desc",d({transform:"rotate(-45deg)"})),p("active-asc <=> active-desc",r(fb))]),arrowOpacity:o("arrowOpacity",[h("desc-to-active, asc-to-active, active",d({opacity:1})),h("desc-to-hint, asc-to-hint, hint",d({opacity:.54})),h("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",d({opacity:0})),p("* => asc, * => desc, * => active, * => hint, * => void",r("0ms")),p("* <=> *",r(fb))]),arrowPosition:o("arrowPosition",[p("* => desc-to-hint, * => desc-to-active",r(fb,u([d({transform:"translateY(-25%)"}),d({transform:"translateY(0)"})]))),p("* => hint-to-desc, * => active-to-desc",r(fb,u([d({transform:"translateY(0)"}),d({transform:"translateY(25%)"})]))),p("* => asc-to-hint, * => asc-to-active",r(fb,u([d({transform:"translateY(25%)"}),d({transform:"translateY(0)"})]))),p("* => hint-to-asc, * => active-to-asc",r(fb,u([d({transform:"translateY(0)"}),d({transform:"translateY(-25%)"})]))),h("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",d({transform:"translateY(0)"})),h("hint-to-desc, active-to-desc, desc",d({transform:"translateY(-25%)"})),h("hint-to-asc, active-to-asc, asc",d({transform:"translateY(25%)"}))]),allowChildren:o("allowChildren",[p("* <=> *",[g("@*",m(),{optional:!0})])])};let _b=(()=>{class t{constructor(){this.changes=new Pe.a,this.sortButtonLabel=t=>`Change sorting for ${t}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.zc)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const vb={provide:_b,deps:[[new s.J,new s.U,_b]],useFactory:function(t){return t||new _b}};class yb{}const wb=yn(yb);let xb=(()=>{class t extends wb{constructor(t,e,i,n,s,a){if(super(),this._intl=t,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=a,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",!i)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");this._rerenderSubscription=Object(xr.a)(i.sortChange,i._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()}),s&&a&&s.monitor(a,!0).subscribe(t=>this._setIndicatorHintVisible(!!t))}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=di(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngOnDestroy(){this._focusMonitor&&this._elementRef&&this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_handleClick(){if(this._isDisabled())return;this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(_b),s.Dc(s.j),s.Dc(mb,8),s.Dc("MAT_SORT_HEADER_COLUMN_DEF",8),s.Dc(Xi),s.Dc(s.r))},t.\u0275cmp=s.xc({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e._handleClick()}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(s.qc("aria-sort",e._getAriaSortAttribute()),s.tc("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[s.mc],attrs:cb,ngContentSelectors:hb,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button","mat-focus-indicator"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0),s.Jc(1,"button",1),s.ed(2),s.Ic(),s.zd(3,db,6,6,"div",2),s.Ic()),2&t&&(s.tc("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),s.pc(1),s.qc("disabled",e._isDisabled()||null)("aria-label",e._intl.sortButtonLabel(e.id)),s.pc(2),s.gd("ngIf",e._renderArrow()))},directives:[ve.t],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor;position:relative}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-button,[mat-sort-header].cdk-program-focused .mat-sort-header-button{border-bottom:solid 1px currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[bb.indicator,bb.leftPointer,bb.rightPointer,bb.arrowOpacity,bb.arrowPosition,bb.allowChildren]},changeDetection:0}),t})(),kb=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[vb],imports:[[ve.c]]}),t})();class Cb extends Pe.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new rl.a;return this._value}next(t){super.next(this._value=t)}}const Sb=[[["caption"]]],Ib=["caption"];function Db(t,e){if(1&t&&(s.Jc(0,"th",3),s.Bd(1),s.Ic()),2&t){const t=s.ad();s.yd("text-align",t.justify),s.pc(1),s.Dd(" ",t.headerText," ")}}function Eb(t,e){if(1&t&&(s.Jc(0,"td",4),s.Bd(1),s.Ic()),2&t){const t=e.$implicit,i=s.ad();s.yd("text-align",i.justify),s.pc(1),s.Dd(" ",i.dataAccessor(t,i.name)," ")}}function Ob(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=di(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Ab=new s.x("CDK_TABLE"),Pb=new s.x("text-column-options");let Tb=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkCellDef",""]]}),t})(),Rb=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),Mb=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class Fb{}const Nb=Ob(Fb);let zb=(()=>{class t extends Nb{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"))}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=di(t),this._hasStickyChanged=e!==this._stickyEnd}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ab,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,Tb,!0),s.vc(i,Rb,!0),s.vc(i,Mb,!0)),2&t&&(s.md(n=s.Xc())&&(e.cell=n.first),s.md(n=s.Xc())&&(e.headerCell=n.first),s.md(n=s.Xc())&&(e.footerCell=n.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s.oc([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.mc]}),t})();class Lb{constructor(t,e){e.nativeElement.classList.add(`cdk-column-${t.cssClassFriendlyName}`)}}let Bb=(()=>{class t extends Lb{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(zb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.mc]}),t})(),Jb=(()=>{class t extends Lb{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(zb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[s.mc]}),t})(),Vb=(()=>{class t extends Lb{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(zb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[s.mc]}),t})(),jb=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof Ub?t.headerCell.template:this instanceof qb?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(t){s.Vc()},t.\u0275dir=s.yc({type:t,features:[s.nc]}),t})();class $b extends jb{}const Hb=Ob($b);let Ub=(()=>{class t extends Hb{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y),s.Dc(s.A),s.Dc(Ab,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.mc,s.nc]}),t})();class Gb extends jb{}const Wb=Ob(Gb);let qb=(()=>{class t extends Wb{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y),s.Dc(s.A),s.Dc(Ab,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.mc,s.nc]}),t})(),Kb=(()=>{class t extends jb{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y),s.Dc(s.A),s.Dc(Ab,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.mc]}),t})(),Xb=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.cb))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),Yb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Fc(0,0)},directives:[Xb],encapsulation:2}),t})(),Zb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Fc(0,0)},directives:[Xb],encapsulation:2}),t})(),Qb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Fc(0,0)},directives:[Xb],encapsulation:2}),t})();const t_=["top","bottom","left","right"];class e_{constructor(t,e,i,n=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._isBrowser=n}clearStickyPositioning(t,e){for(const i of t)if(i.nodeType===i.ELEMENT_NODE){this._removeStickyStyle(i,e);for(let t=0;tt)||i.some(t=>t);if(!t.length||!n||!this._isBrowser)return;const s=t[0],a=s.children.length,o=this._getCellWidths(s),r=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,i),c="rtl"===this.direction;for(const d of t)for(let t=0;t!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0)}_removeStickyStyle(t,e){for(const i of e)t.style[i]="";t.style.zIndex=this._getCalculatedZIndex(t),t_.some(e=>!!t.style[e])||(t.style.position="",t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i){t.classList.add(this._stickCellCss),t.style[e]=`${i}px`,t.style.cssText+="position: -webkit-sticky; position: sticky; ",t.style.zIndex=this._getCalculatedZIndex(t)}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of t_)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t){const e=[],i=t.children;for(let n=0;n0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}function i_(t){return Error(`Could not find column with id "${t}".`)}let n_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.cb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","rowOutlet",""]]}),t})(),s_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.cb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),a_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.cb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),o_=(()=>{class t{constructor(t,e,i,n,s,a,o){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=o,this._onDestroy=new Pe.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new Cb({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){Object(s.jb)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}.`),this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=di(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e)}ngAfterContentChecked(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),ys(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return;const e=this._rowOutlet.viewContainer;t.forEachOperation((t,i,n)=>{if(null==t.previousIndex)this._insertRow(t.item,n);else if(null==n)e.remove(i);else{const t=e.get(i);e.move(t,n)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this.updateStickyColumnStyles()}setHeaderRowDef(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0}setFooterRowDef(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),r_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{if(this._columnDefsByName.has(t.name))throw Error(`Duplicate column definition name provided: "${t.name}".`);this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=r_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=r_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=r_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);if(!this.multiTemplateDataRows&&t.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff();this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()}_switchDataSource(t){this._data=[],ys(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;if(ys(this.dataSource)?t=this.dataSource.connect(this):(e=this.dataSource)&&(e instanceof si.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Ne(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");var e;this._renderChangeSubscription=t.pipe(Gr(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>{const e=this._columnDefsByName.get(t);if(!e)throw i_(t);return e}),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}if(!i.length)throw function(t){return Error("Could not find a matching row definition for the"+`provided row data: ${JSON.stringify(t)}`)}(t);return i}_insertRow(t,e){this._renderRow(this._rowOutlet,t.rowDef,e,{$implicit:t.data})}_renderRow(t,e,i,n={}){t.viewContainer.createEmbeddedView(e.template,n,i);for(let s of this._getCellTemplates(e))Xb.mostRecentCellOutlet&&Xb.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);if(!i)throw i_(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlet:this._headerRowOutlet},{tag:"tbody",outlet:this._rowOutlet},{tag:"tfoot",outlet:this._footerRowOutlet}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup"),e.appendChild(i.outlet.elementRef.nativeElement),t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows(),this.updateStickyColumnStyles()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&this.updateStickyColumnStyles()}_setupStickyStyler(){this._stickyStyler=new e_(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._platform.isBrowser),(this._dir?this._dir.change:Ne()).pipe(Gr(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.A),s.Dc(s.j),s.Dc(s.r),s.Tc("role"),s.Dc(nn,8),s.Dc(ve.e),s.Dc(_i))},t.\u0275cmp=s.xc({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,zb,!0),s.vc(i,Kb,!0),s.vc(i,Ub,!0),s.vc(i,qb,!0)),2&t&&(s.md(n=s.Xc())&&(e._contentColumnDefs=n),s.md(n=s.Xc())&&(e._contentRowDefs=n),s.md(n=s.Xc())&&(e._contentHeaderRowDefs=n),s.md(n=s.Xc())&&(e._contentFooterRowDefs=n))},viewQuery:function(t,e){var i;1&t&&(s.xd(n_,!0),s.xd(s_,!0),s.xd(a_,!0)),2&t&&(s.md(i=s.Xc())&&(e._rowOutlet=i.first),s.md(i=s.Xc())&&(e._headerRowOutlet=i.first),s.md(i=s.Xc())&&(e._footerRowOutlet=i.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[s.oc([{provide:Ab,useExisting:t}])],ngContentSelectors:Ib,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.fd(Sb),s.ed(0),s.Fc(1,0),s.Fc(2,1),s.Fc(3,2))},directives:[s_,n_,a_],encapsulation:2}),t})();function r_(t,e){return t.concat(Array.from(e))}let l_=(()=>{class t{constructor(t,e){this._table=t,this._options=e,this.justify="start",this._options=e||{}}get name(){return this._name}set name(t){this._name=t,this._syncColumnDefName()}ngOnInit(){if(this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((t,e)=>t[e])),!this._table)throw Error("Text column could not find a parent table for registration.");this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef)}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const t=this.name;if(Object(s.jb)()&&!t)throw Error("Table text column must have a name.");return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(t):t[0].toUpperCase()+t.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(o_,8),s.Dc(Pb,8))},t.\u0275cmp=s.xc({type:t,selectors:[["cdk-text-column"]],viewQuery:function(t,e){var i;1&t&&(s.xd(zb,!0),s.xd(Tb,!0),s.xd(Rb,!0)),2&t&&(s.md(i=s.Xc())&&(e.columnDef=i.first),s.md(i=s.Xc())&&(e.cell=i.first),s.md(i=s.Xc())&&(e.headerCell=i.first))},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(t,e){1&t&&(s.Hc(0,0),s.zd(1,Db,2,3,"th",1),s.zd(2,Eb,2,3,"td",2),s.Gc())},directives:[zb,Rb,Tb,Bb,Vb],encapsulation:2}),t})(),c_=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();const d_=[[["caption"]]],h_=["caption"];function u_(t,e){if(1&t&&(s.Jc(0,"th",3),s.Bd(1),s.Ic()),2&t){const t=s.ad();s.yd("text-align",t.justify),s.pc(1),s.Dd(" ",t.headerText," ")}}function p_(t,e){if(1&t&&(s.Jc(0,"td",4),s.Bd(1),s.Ic()),2&t){const t=e.$implicit,i=s.ad();s.yd("text-align",i.justify),s.pc(1),s.Dd(" ",i.dataAccessor(t,i.name)," ")}}let m_=(()=>{class t extends o_{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky"}}return t.\u0275fac=function(e){return g_(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[s.oc([{provide:o_,useExisting:t},{provide:Ab,useExisting:t}]),s.mc],ngContentSelectors:h_,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.fd(d_),s.ed(0),s.Fc(1,0),s.Fc(2,1),s.Fc(3,2))},directives:[s_,n_,a_],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type,[dir=rtl] mat-header-cell:first-of-type,[dir=rtl] mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type,[dir=rtl] mat-header-cell:last-of-type,[dir=rtl] mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type,[dir=rtl] td.mat-cell:first-of-type,[dir=rtl] td.mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type,[dir=rtl] td.mat-cell:last-of-type,[dir=rtl] td.mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}\n'],encapsulation:2}),t})();const g_=s.Lc(m_);let f_=(()=>{class t extends Tb{}return t.\u0275fac=function(e){return b_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matCellDef",""]],features:[s.oc([{provide:Tb,useExisting:t}]),s.mc]}),t})();const b_=s.Lc(f_);let __=(()=>{class t extends Rb{}return t.\u0275fac=function(e){return v_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matHeaderCellDef",""]],features:[s.oc([{provide:Rb,useExisting:t}]),s.mc]}),t})();const v_=s.Lc(__);let y_=(()=>{class t extends Mb{}return t.\u0275fac=function(e){return w_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matFooterCellDef",""]],features:[s.oc([{provide:Mb,useExisting:t}]),s.mc]}),t})();const w_=s.Lc(y_);let x_=(()=>{class t extends zb{}return t.\u0275fac=function(e){return k_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[s.oc([{provide:zb,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.mc]}),t})();const k_=s.Lc(x_);let C_=(()=>{class t extends Bb{constructor(t,e){super(t,e),e.nativeElement.classList.add(`mat-column-${t.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(zb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[s.mc]}),t})(),S_=(()=>{class t extends Jb{constructor(t,e){super(t,e),e.nativeElement.classList.add(`mat-column-${t.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(zb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[s.mc]}),t})(),I_=(()=>{class t extends Vb{constructor(t,e){super(t,e),e.nativeElement.classList.add(`mat-column-${t.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(zb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[s.mc]}),t})(),D_=(()=>{class t extends Ub{}return t.\u0275fac=function(e){return E_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[s.oc([{provide:Ub,useExisting:t}]),s.mc]}),t})();const E_=s.Lc(D_);let O_=(()=>{class t extends qb{}return t.\u0275fac=function(e){return A_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[s.oc([{provide:qb,useExisting:t}]),s.mc]}),t})();const A_=s.Lc(O_);let P_=(()=>{class t extends Kb{}return t.\u0275fac=function(e){return T_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[s.oc([{provide:Kb,useExisting:t}]),s.mc]}),t})();const T_=s.Lc(P_);let R_=(()=>{class t extends Yb{}return t.\u0275fac=function(e){return M_(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[s.oc([{provide:Yb,useExisting:t}]),s.mc],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Fc(0,0)},directives:[Xb],encapsulation:2}),t})();const M_=s.Lc(R_);let F_=(()=>{class t extends Zb{}return t.\u0275fac=function(e){return N_(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[s.oc([{provide:Zb,useExisting:t}]),s.mc],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Fc(0,0)},directives:[Xb],encapsulation:2}),t})();const N_=s.Lc(F_);let z_=(()=>{class t extends Qb{}return t.\u0275fac=function(e){return L_(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[s.oc([{provide:Qb,useExisting:t}]),s.mc],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Fc(0,0)},directives:[Xb],encapsulation:2}),t})();const L_=s.Lc(z_);let B_=(()=>{class t extends l_{}return t.\u0275fac=function(e){return J_(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-text-column"]],features:[s.mc],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(t,e){1&t&&(s.Hc(0,0),s.zd(1,u_,2,3,"th",1),s.zd(2,p_,2,3,"td",2),s.Gc())},directives:[x_,__,f_,C_,I_],encapsulation:2}),t})();const J_=s.Lc(B_);let V_=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[c_,vn]]}),t})();class j_ extends class{}{constructor(t=[]){super(),this._renderData=new Cb([]),this._filter=new Cb(""),this._internalPageChanges=new Pe.a,this._renderChangesSubscription=Te.a.EMPTY,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(ui(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),a=this.sortingDataAccessor(e,i),o=0;return null!=s&&null!=a?s>a?o=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new Cb(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){const t=this._sort?Object(xr.a)(this._sort.sortChange,this._sort.initialized):Ne(null),e=this._paginator?Object(xr.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Ne(null),i=Tp([this._data,this._filter]).pipe(Object(ii.a)(([t])=>this._filterData(t))),n=Tp([i,t]).pipe(Object(ii.a)(([t])=>this._orderData(t))),s=Tp([n,e]).pipe(Object(ii.a)(([t])=>this._pageData(t)));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=s.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=this.filter?t.filter(t=>this.filterPredicate(t,this.filter)):t,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderData}disconnect(){}}function $_(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function H_(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function U_(t,e){const i=e?"":"none";H_(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function G_(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function W_(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}const q_=Si({passive:!0}),K_=Si({passive:!1});class X_{constructor(t,e,i,n,s,a){this._config=e,this._document=i,this._ngZone=n,this._viewportRuler=s,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new Pe.a,this._pointerMoveSubscription=Te.a.EMPTY,this._pointerUpSubscription=Te.a.EMPTY,this._scrollSubscription=Te.a.EMPTY,this._resizeSubscription=Te.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Pe.a,this.started=new Pe.a,this.released=new Pe.a,this.ended=new Pe.a,this.entered=new Pe.a,this.exited=new Pe.a,this.dropped=new Pe.a,this.moved=this._moveEvents.asObservable(),this._pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{if(t.preventDefault(),!this._hasStartedDragging){const e=this._getPointerPositionOnPage(t);if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){if(!(Date.now()>=this._dragStartTime+this._getDragStartDelay(t)))return void this._endDragSequence(t);this._dropContainer&&this._dropContainer.isDragging()||(this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()));const e=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._updatePointerDirectionDelta(e),this._dropContainer)this._updateActiveDropContainer(e);else{const t=this._activeTransform;t.x=e.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=e.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:e,event:t,distance:this._getDragDistance(e),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=di(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){return this._handles=t.map(t=>gi(t)),this._handles.forEach(t=>U_(t,!1)),this._toggleNativeDragInteractions(),this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=gi(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,K_),e.addEventListener("touchstart",this._pointerDown,q_),this._initialTransform=void 0,this._rootElement=e),this}withBoundaryElement(t){return this._boundaryElement=t?gi(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&tv(this._rootElement),tv(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}enableHandle(t){this._disabledHandles.delete(t)}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}_sortFromLastPointerPosition(){const t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&tv(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&tv(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(t))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(t){if(this.started.next({source:this}),ev(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){const t=this._rootElement,i=t.parentNode,n=this._preview=this._createPreviewElement(),s=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(a,t),t.style.display="none",this._document.body.appendChild(i.replaceChild(s,t)),(e=this._document,e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body).appendChild(n),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var e}_initializeDragSequence(t,e){e.stopPropagation();const i=this.isDragging(),n=ev(e),s=!n&&0!==e.button,a=this._rootElement,o=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||o)return;this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor,a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(dn(null)).subscribe(()=>{this._scrollPosition=this._viewportRuler.getViewportScrollPosition()}),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());const r=this._previewTemplate;this._pickupPositionInElement=r&&r.template&&!r.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const l=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),a=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:s}),e.drop(this,i,this._initialContainer,a,s,this._initialIndex),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e}){let i=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!i&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(i=this._initialContainer),i&&i!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=i,this._dropContainer.enter(this,t,e,i===this._initialContainer&&i.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:i,currentIndex:i.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(t,e),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=Y_(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i){const e=t.viewContainer.createEmbeddedView(i,t.context);e.detectChanges(),n=iv(e,this._document),this._previewRef=e,t.matchSize?nv(n,this._rootElement):n.style.transform=Y_(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=Z_(t),nv(n,t)}return H_(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),U_(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=Y_(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=W_(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),a=W_(e,"transition-duration"),o=W_(e,"transition-delay");return G_(a[s])+G_(o[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=iv(this._placeholderRef,this._document)):i=Z_(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,a=ev(e)?e.targetTouches[0]:e;return{x:s.left-i.left+(a.pageX-s.left-this._scrollPosition.left),y:s.top-i.top+(a.pageY-s.top-this._scrollPosition.top)}}_getPointerPositionOnPage(t){const e=ev(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.pageX-this._scrollPosition.left,y:e.pageY-this._scrollPosition.top}}_getConstrainedPointerPosition(t){const e=this._getPointerPositionOnPage(t),i=this.constrainPosition?this.constrainPosition(e,this):e,n=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===n?i.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==n||(i.x=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,n=this._boundaryRect,s=this._previewRect,a=n.top+e,o=n.bottom-(s.height-e);i.x=Q_(i.x,n.left+t,n.right-(s.width-t)),i.y=Q_(i.y,a,o)}return i}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-s.x),o=Math.abs(i-s.y);return a>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,U_(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,K_),t.removeEventListener("touchstart",this._pointerDown,q_)}_applyRootElementTransform(t,e){const i=Y_(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,a=n.right-i.right,o=i.top-n.top,r=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),a>0&&(t-=a)):t=0,i.height>n.height?(o>0&&(e+=o),r>0&&(e-=r)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:ev(t)?e.touch:e?e.mouse:0}}function Y_(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function Z_(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.querySelectorAll("canvas");e.removeAttribute("id");for(let s=0;s!0,this.beforeStarted=new Pe.a,this.entered=new Pe.a,this.exited=new Pe.a,this.dropped=new Pe.a,this.sorted=new Pe.a,this._isDragging=!1,this._itemPositions=[],this._parentPositions=new Map,this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Te.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Pe.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=qe){return(!jr(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=qe),new si.a(i=>(i.add(e.schedule($_,t,{subscriber:i,counter:0,period:t})),i))}(0,Ir).pipe(Gr(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?uv(t,-2):2===this._verticalScrollDirection&&uv(t,2),1===this._horizontalScrollDirection?pv(t,-2):2===this._horizontalScrollDirection&&pv(t,2)})},this.element=gi(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){const t=gi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(t=>t._startReceiving(this)),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}enter(t,e,i,n){let s;this.start(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const a=this._activeDraggables,o=a.indexOf(t),r=t.getPlaceholderElement();let l=a[s];if(l===t&&(l=a[s+1]),o>-1&&a.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(r,e),a.splice(s,0,t)}else gi(this.element).appendChild(r),a.push(t);r.style.transform="",this._cacheItemPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,a){this._reset(),null==a&&(a=i.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:a,container:this,previousContainer:i,isPointerOverContainer:n,distance:s})}withItems(t){return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&this._cacheItems(),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=gi(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getItemIndex(t){return this._isDragging?cv("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!lv(this._clientRect,e,i))return;const s=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===a&&s.length>0)return;const o="horizontal"===this._orientation,r=cv(s,e=>e.drag===t),l=s[a],c=s[r].clientRect,d=l.clientRect,h=r>a?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=o?n.x:n.y;const u=this._getItemOffsetPx(c,d,h),p=this._getSiblingOffsetPx(r,s,h),m=s.slice();sv(s,r,a),this.sorted.next({previousIndex:r,currentIndex:a,container:this,item:t}),s.forEach((e,i)=>{if(m[i]===e)return;const n=e.drag===t,s=n?u:p,a=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,o?(a.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,rv(e.clientRect,0,s)):(a.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,rv(e.clientRect,s,0))})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.forEach((a,o)=>{o!==this._document&&a.clientRect&&!i&&lv(a.clientRect,t,e)&&([n,s]=function(t,e,i,n){const s=mv(e,n),a=gv(e,i);let o=0,r=0;if(s){const e=t.scrollTop;1===s?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(a){const e=t.scrollLeft;1===a?e>0&&(r=1):t.scrollWidth-e>t.clientWidth&&(r=2)}return[o,r]}(o,a.clientRect,t,e),(n||s)&&(i=o))}),!n&&!s){const{width:a,height:o}=this._viewportRuler.getViewportSize(),r={width:a,height:o,top:0,right:a,bottom:o,left:0};n=mv(r,e),s=gv(r,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_cacheParentPositions(){this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach(t=>{const e=hv(t);t===this.element&&(this._clientRect=e),this._parentPositions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:e})})}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,clientRect:hv(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=gi(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>t.getRootElement().style.transform=""),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,a=e[t+-1*i];let o=s[n?"width":"height"]*i;if(a){const t=n?"left":"top",e=n?"right":"bottom";-1===i?o-=a.clientRect[t]-s[e]:o+=s[t]-a.clientRect[e]}return o}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation;return cv(this._itemPositions,({drag:a,clientRect:o},r,l)=>{if(a===t)return l.length<2;if(n){const t=s?n.x:n.y;if(a===this._previousSwap.drag&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(o.left)&&e<=Math.floor(o.right):i>=Math.floor(o.top)&&i<=Math.floor(o.bottom)})}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_updateAfterScroll(t,e,i){const n=t===this._document?t.documentElement:t,s=this._parentPositions.get(t).scrollPosition,a=s.top-e,o=s.left-i;this._parentPositions.forEach((e,i)=>{e.clientRect&&t!==i&&n.contains(i)&&rv(e.clientRect,a,o)}),this._itemPositions.forEach(({clientRect:t})=>{rv(t,a,o)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}),s.top=e,s.left=i}_isOverContainer(t,e){return dv(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(n=>n._canReceive(t,e,i))}_canReceive(t,e,i){if(!dv(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=gi(this.element);return n===s||s.contains(n)}_startReceiving(t){const e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=t.target;if(this._parentPositions.get(e)){let t,i;if(e===this._document){const e=this._viewportRuler.getViewportScrollPosition();t=e.top,i=e.left}else t=e.scrollTop,i=e.scrollLeft;this._updateAfterScroll(e,t,i)}}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Di(gi(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}function rv(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function lv(t,e,i){const{top:n,right:s,bottom:a,left:o,width:r,height:l}=t,c=.05*r,d=.05*l;return i>n-d&&io-c&&e=n&&i<=s&&e>=a&&e<=o}function hv(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function uv(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function pv(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function mv(t,e){const{top:i,bottom:n,height:s}=t,a=.05*s;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}function gv(t,e){const{left:i,right:n,width:s}=t,a=.05*s;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}const fv=Si({passive:!1,capture:!0});let bv=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new Pe.a,this.pointerUp=new Pe.a,this.scroll=new Pe.a,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.size&&t.preventDefault()},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventDefaultWhileDragging,fv)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,fv)}startDragging(t,e){if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){const t=e.type.startsWith("touch"),i=t?"touchend":"mouseup";this._globalListeners.set(t?"touchmove":"mousemove",{handler:t=>this.pointerMove.next(t),options:fv}).set(i,{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:fv}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances.has(t)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.I),s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(s.I),Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})();const _v={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let vv=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=_v){return new X_(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new ov(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(ve.e),s.Sc(s.I),s.Sc(pl),s.Sc(bv))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(ve.e),Object(s.Sc)(s.I),Object(s.Sc)(pl),Object(s.Sc)(bv))},token:t,providedIn:"root"}),t})();const yv=new s.x("CDK_DRAG_PARENT");let wv=(()=>{class t{constructor(t,e){this.element=t,this._stateChanges=new Pe.a,this._disabled=!1,this._parentDrag=e,U_(t.nativeElement,!1)}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yv,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),t})(),xv=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),t})(),kv=(()=>{class t{constructor(t){this.templateRef=t,this._matchSize=!1}get matchSize(){return this._matchSize}set matchSize(t){this._matchSize=di(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),t})();const Cv=new s.x("CDK_DRAG_CONFIG"),Sv=new s.x("CDK_DROP_LIST");let Iv=(()=>{class t{constructor(t,e,i,n,a,o,r,l,c){this.element=t,this.dropContainer=e,this._document=i,this._ngZone=n,this._viewContainerRef=a,this._dir=r,this._changeDetectorRef=c,this._destroyed=new Pe.a,this.started=new s.u,this.released=new s.u,this.ended=new s.u,this.entered=new s.u,this.exited=new s.u,this.dropped=new s.u,this.moved=new si.a(t=>{const e=this._dragRef.moved.pipe(Object(ii.a)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:o&&null!=o.dragStartThreshold?o.dragStartThreshold:5,pointerDirectionChangeThreshold:o&&null!=o.pointerDirectionChangeThreshold?o.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,o&&this._assignDefaults(o),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=di(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.asObservable().pipe(ri(1),Gr(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(dn(this._handles),Ve(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._dragRef.withHandles(e)}),Xr(t=>Object(xr.a)(...t.map(t=>t._stateChanges.pipe(dn(t))))),Gr(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?Dv(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error("cdkDrag must be attached to an element node. "+`Currently attached to "${e.nodeName}".`);this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return Dv(this.element.nativeElement,t);const e=gi(t);if(Object(s.jb)()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:hi(i),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s),e&&t.withDirection(e.value)}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:a,draggingDisabled:o,rootElementSelector:r}=t;this.disabled=null!=o&&o,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),a&&(this.boundaryElement=a),r&&(this.rootElementSelector=r)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Sv,12),s.Dc(ve.e),s.Dc(s.I),s.Dc(s.cb),s.Dc(Cv,8),s.Dc(nn,8),s.Dc(vv),s.Dc(s.j))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,kv,!0),s.vc(i,xv,!0),s.vc(i,wv,!0)),2&t&&(s.md(n=s.Xc())&&(e._previewTemplate=n.first),s.md(n=s.Xc())&&(e._placeholderTemplate=n.first),s.md(n=s.Xc())&&(e._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&s.tc("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[s.oc([{provide:yv,useExisting:t}]),s.nc]}),t})();function Dv(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let Ev=(()=>{class t{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t)}ngOnDestroy(){this._items.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),t})(),Ov=0,Av=(()=>{class t{constructor(e,i,n,a,o,r,l){this.element=e,this._changeDetectorRef=n,this._dir=a,this._group=o,this._scrollDispatcher=r,this._destroyed=new Pe.a,this.connectedTo=[],this.id=`cdk-drop-list-${Ov++}`,this.enterPredicate=()=>!0,this.dropped=new s.u,this.entered=new s.u,this.exited=new s.u,this.sorted=new s.u,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),o&&o._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=di(t)}ngAfterContentInit(){if(this._scrollDispatcher){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t)}}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}start(){this._dropListRef.start()}drop(t,e,i,n){this._dropListRef.drop(t._dragRef,e,i._dropListRef,n,{x:0,y:0})}enter(t,e,i){this._dropListRef.enter(t._dragRef,e,i)}exit(t){this._dropListRef.exit(t._dragRef)}getItemIndex(t){return this._dropListRef.getItemIndex(t._dragRef)}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(dn(this._dir.value),Gr(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=pi(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=di(this.sortingDisabled),e.autoScrollDisabled=di(this.autoScrollDisabled),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:a}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=a||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(vv),s.Dc(s.j),s.Dc(nn,8),s.Dc(Ev,12),s.Dc(hl),s.Dc(Cv,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(s.Mc("id",e.id),s.tc("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[s.oc([{provide:Ev,useValue:void 0},{provide:Sv,useExisting:t}])]}),t._dropLists=[],t})(),Pv=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[vv]}),t})();class Tv{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.opacity="0",n.position="absolute",n.left=n.top="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch($R){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let Rv=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new Tv(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})();const Mv=new s.x("CKD_COPY_TO_CLIPBOARD_CONFIG");let Fv=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new s.u,this._deprecatedCopied=this.copied,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone?this._ngZone.runOutsideAngular(()=>setTimeout(n,1)):setTimeout(n,1)};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Rv),s.Dc(s.I),s.Dc(Mv,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),t})(),Nv=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();function zv(t){return _h(t)(this)}si.a.prototype.map=function(t,e){return Object(ii.a)(t,e)(this)},si.a.prototype.catch=zv,si.a.prototype._catch=zv,si.a.throw=il,si.a.throwError=il;const Lv={default:{key:"default",background_color:"ghostwhite",alternate_color:"gray",css_label:"default-theme",social_theme:"material-light"},dark:{key:"dark",background_color:"#141414",alternate_color:"#695959",css_label:"dark-theme",social_theme:"material-dark"},light:{key:"light",background_color:"white",css_label:"light-theme",social_theme:"material-light"}};var Bv=i("6BPK");const Jv=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Vv(t){return function(e){return 0===t?oi():e.lift(new jv(t))}}class jv{constructor(t){if(this.total=t,this.total<0)throw new ni}call(t,e){return e.subscribe(new $v(t,this.total))}}class $v extends Le.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new Uv(t))}class Uv{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Gv(t,this.errorFactory))}}class Gv extends Le.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Wv(){return new Jv}function qv(t=null){return e=>e.lift(new Kv(t))}class Kv{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Xv(t,this.defaultValue))}}class Xv extends Le.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var Yv=i("SpAZ");function Zv(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Qe((e,i)=>t(e,i,n)):Yv.a,Vv(1),i?qv(e):Hv(()=>new Jv))}function Qv(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Qe((e,i)=>t(e,i,n)):Yv.a,ri(1),i?qv(e):Hv(()=>new Jv))}class ty{constructor(t,e,i){this.predicate=t,this.thisArg=e,this.source=i}call(t,e){return e.subscribe(new ey(t,this.predicate,this.thisArg,this.source))}}class ey extends Le.a{constructor(t,e,i,n){super(t),this.predicate=e,this.thisArg=i,this.source=n,this.index=0,this.thisArg=i||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(i){return void this.destination.error(i)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function iy(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new ny(t,e,i))}}class ny{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new sy(t,this.accumulator,this.seed,this.hasSeed))}}class sy extends Le.a{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var ay=i("mCNh");class oy{constructor(t,e){this.id=t,this.url=e}}class ry extends oy{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ly extends oy{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class cy extends oy{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class dy extends oy{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class hy extends oy{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uy extends oy{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class py extends oy{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class my extends oy{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gy extends oy{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fy{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class by{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _y{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vy{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yy{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wy{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xy{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let ky=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Ec(0,"router-outlet")},directives:function(){return[Ex]},encapsulation:2}),t})();class Cy{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Sy(t){return new Cy(t)}function Iy(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Dy(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthe.indexOf(t)>-1):t===e}function Fy(t){return Array.prototype.concat.apply([],t)}function Ny(t){return t.length>0?t[t.length-1]:null}function zy(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function Ly(t){return Object(s.Rb)(t)?t:Object(s.Sb)(t)?Object(Ss.a)(Promise.resolve(t)):Ne(t)}function By(t,e,i){return i?function(t,e){return Ry(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!$y(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children){if(!e.children[n])return!1;if(!t(e.children[n],i.children[n]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>My(t[i],e[i]))}(t.queryParams,e.queryParams)&&function t(e,i){return function e(i,n,s){if(i.segments.length>s.length)return!!$y(i.segments.slice(0,s.length),s)&&!n.hasChildren();if(i.segments.length===s.length){if(!$y(i.segments,s))return!1;for(const e in n.children){if(!i.children[e])return!1;if(!t(i.children[e],n.children[e]))return!1}return!0}{const t=s.slice(0,i.segments.length),a=s.slice(i.segments.length);return!!$y(i.segments,t)&&!!i.children.primary&&e(i.children.primary,n,a)}}(e,i,i.segments)}(t.root,e.root)}class Jy{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Sy(this.queryParams)),this._queryParamMap}toString(){return Wy.serialize(this)}}class Vy{constructor(t,e){this.segments=t,this.children=e,this.parent=null,zy(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return qy(this)}}class jy{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Sy(this.parameters)),this._parameterMap}toString(){return tw(this)}}function $y(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function Hy(t,e){let i=[];return zy(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),zy(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}class Uy{}class Gy{parse(t){const e=new aw(t);return new Jy(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,i){if(!e.hasChildren())return qy(e);if(i){const i=e.children.primary?t(e.children.primary,!1):"",n=[];return zy(e.children,(e,i)=>{"primary"!==i&&n.push(`${i}:${t(e,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=Hy(e,(i,n)=>"primary"===n?[t(e.children.primary,!1)]:[`${n}:${t(i,!1)}`]);return`${qy(e)}/(${i.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Xy(e)}=${Xy(t)}`).join("&"):`${Xy(e)}=${Xy(i)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Wy=new Gy;function qy(t){return t.segments.map(t=>tw(t)).join("/")}function Ky(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xy(t){return Ky(t).replace(/%3B/gi,";")}function Yy(t){return Ky(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zy(t){return decodeURIComponent(t)}function Qy(t){return Zy(t.replace(/\+/g,"%20"))}function tw(t){return`${Yy(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Yy(t)}=${Yy(e[t])}`).join("")}`;var e}const ew=/^[^\/()?;=#]+/;function iw(t){const e=t.match(ew);return e?e[0]:""}const nw=/^[^=?&#]+/,sw=/^[^?&#]+/;class aw{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vy([],{}):new Vy([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new Vy(t,e)),i}parseSegment(){const t=iw(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new jy(Zy(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=iw(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=iw(this.remaining);t&&(i=t,this.capture(i))}t[Zy(e)]=Zy(i)}parseQueryParam(t){const e=function(t){const e=t.match(nw);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(sw);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Qy(e),s=Qy(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=iw(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const a=this.parseChildren();e[s]=1===Object.keys(a).length?a.primary:new Vy([],a),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class ow{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=rw(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=rw(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=lw(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return lw(t,this._root).map(t=>t.value)}}function rw(t,e){if(t===e.value)return e;for(const i of e.children){const e=rw(t,i);if(e)return e}return null}function lw(t,e){if(t===e.value)return[e];for(const i of e.children){const n=lw(t,i);if(n.length)return n.unshift(e),n}return[]}class cw{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function dw(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class hw extends ow{constructor(t,e){super(t),this.snapshot=e,bw(this,t)}toString(){return this.snapshot.toString()}}function uw(t,e){const i=function(t,e){const i=new gw([],{},{},"",{},"primary",e,null,t.root,-1,{});return new fw("",new cw(i,[]))}(t,e),n=new Cb([new jy("",{})]),s=new Cb({}),a=new Cb({}),o=new Cb({}),r=new Cb(""),l=new pw(n,s,o,r,a,"primary",e,i.root);return l.snapshot=i.root,new hw(new cw(l,[]),i)}class pw{constructor(t,e,i,n,s,a,o,r){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=o,this._futureSnapshot=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(ii.a)(t=>Sy(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ii.a)(t=>Sy(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function mw(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class gw{constructor(t,e,i,n,s,a,o,r,l,c,d){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=o,this.routeConfig=r,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Sy(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Sy(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class fw extends ow{constructor(t,e){super(e),this.url=t,bw(this,e)}toString(){return _w(this._root)}}function bw(t,e){e.value._routerState=t,e.children.forEach(e=>bw(t,e))}function _w(t){const e=t.children.length>0?` { ${t.children.map(_w).join(", ")} } `:"";return`${t.value}${e}`}function vw(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Ry(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),Ry(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iRy(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||yw(t.parent,e.parent))}function ww(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function xw(t,e,i,n,s){let a={};return n&&zy(n,(t,e)=>{a[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Jy(i.root===t?e:function t(e,i,n){const s={};return zy(e.children,(e,a)=>{s[a]=e===i?n:t(e,i,n)}),new Vy(e.segments,s)}(i.root,t,e),a,s)}class kw{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&ww(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(n&&n!==Ny(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Cw{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Sw(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function Iw(t,e,i){if(t||(t=new Vy([],{})),0===t.segments.length&&t.hasChildren())return Dw(t,e,i);const n=function(t,e,i){let n=0,s=e;const a={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return a;const e=t.segments[s],o=Sw(i[n]),r=n0&&void 0===o)break;if(o&&r&&"object"==typeof r&&void 0===r.outlets){if(!Pw(o,r,e))return a;n+=2}else{if(!Pw(o,{},e))return a;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{null!==i&&(s[n]=Iw(t.children[n],e,i))}),zy(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new Vy(t.segments,s)}}function Ew(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[i]=Ew(new Vy([],{}),0,t))}),e}function Aw(t){const e={};return zy(t,(t,i)=>e[i]=`${t}`),e}function Pw(t,e,i){return t==i.path&&Ry(e,i.parameters)}class Tw{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),vw(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=dw(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),zy(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet);if(i){const n=dw(t),s=t.value.component?i.children:e;zy(n,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const n=dw(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new wy(t.value.snapshot))}),t.children.length&&this.forwardEvent(new vy(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(vw(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Rw(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function Rw(t){vw(t.value),t.children.forEach(Rw)}function Mw(t){return"function"==typeof t}function Fw(t){return t instanceof Jy}class Nw{constructor(t){this.segmentGroup=t||null}}class zw{constructor(t){this.urlTree=t}}function Lw(t){return new si.a(e=>e.error(new Nw(t)))}function Bw(t){return new si.a(e=>e.error(new zw(t)))}function Jw(t){return new si.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Vw{constructor(t,e,i,n,a){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(s.G)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(ii.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(_h(t=>{if(t instanceof zw)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Nw)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(ii.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(_h(t=>{if(t instanceof Nw)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new Vy([],{primary:t}):t;return new Jy(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Object(ii.a)(t=>new Vy([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){return function(t,e){if(0===Object.keys(t).length)return Ne({});const i=[],n=[],s={};return zy(t,(t,a)=>{const o=e(a,t).pipe(Object(ii.a)(t=>s[a]=t));"primary"===a?i.push(o):n.push(o)}),Ne.apply(null,i.concat(n)).pipe(ln(),Zv(),Object(ii.a)(()=>s))}(i.children,(i,n)=>this.expandSegmentGroup(t,e,n,i))}expandSegment(t,e,i,n,s,a){return Ne(...i).pipe(Object(ii.a)(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,a).pipe(_h(t=>{if(t instanceof Nw)return Ne(null);throw t}))),ln(),Qv(t=>!!t),_h((t,i)=>{if(t instanceof Jv||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,s))return Ne(new Vy([],{}));throw new Nw(e)}throw t}))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,n,s,a,o){return Uw(n)!==a?Lw(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a):Lw(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Bw(s):this.lineralizeSegments(i,s).pipe(Object(Sh.a)(i=>{const s=new Vy(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a){const{matched:o,consumedSegments:r,lastChild:l,positionalParamSegments:c}=jw(e,n,s);if(!o)return Lw(e);const d=this.applyRedirectCommands(r,n.redirectTo,c);return n.redirectTo.startsWith("/")?Bw(d):this.lineralizeSegments(n,d).pipe(Object(Sh.a)(n=>this.expandSegment(t,e,i,n.concat(s.slice(l)),a,!1)))}matchSegmentAgainstRoute(t,e,i,n){if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(Object(ii.a)(t=>(i._loadedConfig=t,new Vy(n,{})))):Ne(new Vy(n,{}));const{matched:s,consumedSegments:a,lastChild:o}=jw(e,i,n);if(!s)return Lw(e);const r=n.slice(o);return this.getChildConfig(t,i,n).pipe(Object(Sh.a)(t=>{const i=t.module,n=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some(i=>Hw(t,e,i)&&"primary"!==Uw(i))}(t,i,n)?{segmentGroup:$w(new Vy(e,function(t,e){const i={};i.primary=e;for(const n of t)""===n.path&&"primary"!==Uw(n)&&(i[Uw(n)]=new Vy([],{}));return i}(n,new Vy(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some(i=>Hw(t,e,i))}(t,i,n)?{segmentGroup:$w(new Vy(t.segments,function(t,e,i,n){const s={};for(const a of i)Hw(t,e,a)&&!n[Uw(a)]&&(s[Uw(a)]=new Vy([],{}));return Object.assign(Object.assign({},n),s)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,a,r,n);return 0===o.length&&s.hasChildren()?this.expandChildren(i,n,s).pipe(Object(ii.a)(t=>new Vy(a,t))):0===n.length&&0===o.length?Ne(new Vy(a,{})):this.expandSegment(i,s,n,o,"primary",!0).pipe(Object(ii.a)(t=>new Vy(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Ne(new Ey(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ne(e._loadedConfig):function(t,e,i){const n=e.canLoad;return n&&0!==n.length?Object(Ss.a)(n).pipe(Object(ii.a)(n=>{const s=t.get(n);let a;if(function(t){return t&&Mw(t.canLoad)}(s))a=s.canLoad(e,i);else{if(!Mw(s))throw new Error("Invalid CanLoad guard");a=s(e,i)}return Ly(a)})).pipe(ln(),(s=t=>!0===t,t=>t.lift(new ty(s,void 0,t)))):Ne(!0);var s}(t.injector,e,i).pipe(Object(Sh.a)(i=>i?this.configLoader.load(t.injector,e).pipe(Object(ii.a)(t=>(e._loadedConfig=t,t))):function(t){return new si.a(e=>e.error(Iy(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Ne(new Ey([],t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Ne(i);if(n.numberOfChildren>1||!n.children.primary)return Jw(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new Jy(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return zy(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let a={};return zy(e.children,(e,s)=>{a[s]=this.createSegmentGroup(t,e,i,n)}),new Vy(s,a)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function jw(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const n=(e.matcher||Dy)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function $w(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Vy(t.segments.concat(e.segments),e.children)}return t}function Hw(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function Uw(t){return t.outlet||"primary"}class Gw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ww{constructor(t,e){this.component=t,this.route=e}}function qw(t,e,i){const n=t._root;return function t(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const o=dw(i);return e.children.forEach(e=>{!function(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,r=i?i.value:null,l=n?n.getContext(e.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!$y(t.url,e.url);case"pathParamsOrQueryParamsChange":return!$y(t.url,e.url)||!Ry(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yw(t,e)||!Ry(t.queryParams,e.queryParams);case"paramsChange":default:return!yw(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?a.canActivateChecks.push(new Gw(s)):(o.data=r.data,o._resolvedData=r._resolvedData),t(e,i,o.component?l?l.children:null:n,s,a),c&&a.canDeactivateChecks.push(new Ww(l&&l.outlet&&l.outlet.component||null,r))}else r&&Xw(i,l,a),a.canActivateChecks.push(new Gw(s)),t(e,null,o.component?l?l.children:null:n,s,a)}(e,o[e.value.outlet],n,s.concat([e.value]),a),delete o[e.value.outlet]}),zy(o,(t,e)=>Xw(t,n.getContext(e),a)),a}(n,e?e._root:null,i,[n.value])}function Kw(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Xw(t,e,i){const n=dw(t),s=t.value;zy(n,(t,n)=>{Xw(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Ww(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const Yw=Symbol("INITIAL_VALUE");function Zw(){return Xr(t=>Tp(...t.map(t=>t.pipe(ri(1),dn(Yw)))).pipe(iy((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==Yw)return t;if(n===Yw&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||Fw(n))return n}return t},t)},Yw),Qe(t=>t!==Yw),Object(ii.a)(t=>Fw(t)?t:!0===t),ri(1)))}function Qw(t,e){return null!==t&&e&&e(new yy(t)),Ne(!0)}function tx(t,e){return null!==t&&e&&e(new _y(t)),Ne(!0)}function ex(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Ne(n.map(n=>wr(()=>{const s=Kw(n,e,i);let a;if(function(t){return t&&Mw(t.canActivate)}(s))a=Ly(s.canActivate(e,t));else{if(!Mw(s))throw new Error("Invalid CanActivate guard");a=Ly(s(e,t))}return a.pipe(Qv())}))).pipe(Zw()):Ne(!0)}function ix(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>wr(()=>Ne(e.guards.map(s=>{const a=Kw(s,e.node,i);let o;if(function(t){return t&&Mw(t.canActivateChild)}(a))o=Ly(a.canActivateChild(n,t));else{if(!Mw(a))throw new Error("Invalid CanActivateChild guard");o=Ly(a(n,t))}return o.pipe(Qv())})).pipe(Zw())));return Ne(s).pipe(Zw())}class nx{}class sx{constructor(t,e,i,n,s,a){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a}recognize(){try{const t=rx(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new gw([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new cw(i,e),s=new fw(this.url,n);return this.inheritParamsAndData(s._root),Ne(s)}catch(t){return new si.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,i=mw(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=Hy(e,(e,i)=>this.processSegmentGroup(t,e,i));return function(t){const e={};t.forEach(t=>{const i=e[t.value.outlet];if(i){const e=i.url.map(t=>t.toString()).join("/"),n=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${n}'.`)}e[t.value.outlet]=t.value})}(i),i.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,i,n){for(const a of t)try{return this.processSegmentAgainstRoute(a,e,i,n)}catch(s){if(!(s instanceof nx))throw s}if(this.noLeftoversInUrl(e,i,n))return[];throw new nx}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo)throw new nx;if((t.outlet||"primary")!==n)throw new nx;let s,a=[],o=[];if("**"===t.path){const a=i.length>0?Ny(i).parameters:{};s=new gw(i,a,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dx(t),n,t.component,t,ax(e),ox(e)+i.length,hx(t))}else{const r=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new nx;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||Dy)(i,t,e);if(!n)throw new nx;const s={};zy(n.posParams,(t,e)=>{s[e]=t.path});const a=n.consumed.length>0?Object.assign(Object.assign({},s),n.consumed[n.consumed.length-1].parameters):s;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:a}}(e,t,i);a=r.consumedSegments,o=i.slice(r.lastChild),s=new gw(a,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dx(t),n,t.component,t,ax(e),ox(e)+a.length,hx(t))}const r=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=rx(e,a,o,r,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(r,l);return[new cw(s,t)]}if(0===r.length&&0===c.length)return[new cw(s,[])];const d=this.processSegment(r,l,c,"primary");return[new cw(s,d)]}}function ax(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function ox(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function rx(t,e,i,n,s){if(i.length>0&&function(t,e,i){return i.some(i=>lx(t,e,i)&&"primary"!==cx(i))}(t,i,n)){const s=new Vy(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const a of i)if(""===a.path&&"primary"!==cx(a)){const i=new Vy([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[cx(a)]=i}return s}(t,e,n,new Vy(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>lx(t,e,i))}(t,i,n)){const a=new Vy(t.segments,function(t,e,i,n,s,a){const o={};for(const r of n)if(lx(t,i,r)&&!s[cx(r)]){const i=new Vy([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===a?t.segments.length:e.length,o[cx(r)]=i}return Object.assign(Object.assign({},s),o)}(t,e,i,n,t.children,s));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}const a=new Vy(t.segments,t.children);return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}function lx(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function cx(t){return t.outlet||"primary"}function dx(t){return t.data||{}}function hx(t){return t.resolve||{}}function ux(t,e,i,n){const s=Kw(t,e,n);return Ly(s.resolve?s.resolve(e,i):s(e,i))}function px(t){return function(e){return e.pipe(Xr(e=>{const i=t(e);return i?Object(Ss.a)(i).pipe(Object(ii.a)(()=>e)):Object(Ss.a)([e])}))}}class mx{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const gx=new s.x("ROUTES");class fx{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(ii.a)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new Ey(Fy(n.injector.get(gx)).map(Ty),n)}))}loadModuleFactory(t){return"string"==typeof t?Object(Ss.a)(this.loader.load(t)):Ly(t()).pipe(Object(Sh.a)(t=>t instanceof s.E?Ne(t):Object(Ss.a)(this.compiler.compileModuleAsync(t))))}}class bx{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function _x(t){throw t}function vx(t,e,i){return e.parse("/")}function yx(t,e){return Ne(null)}let wx=(()=>{class t{constructor(t,e,i,n,a,o,r,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Pe.a,this.errorHandler=_x,this.malformedUriErrorHandler=vx,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:yx,afterPreactivation:yx},this.urlHandlingStrategy=new bx,this.routeReuseStrategy=new mx,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(s.G),this.console=a.get(s.nb);const c=a.get(s.I);this.isNgZoneEnabled=c instanceof s.I,this.resetConfig(l),this.currentUrlTree=new Jy(new Vy([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new fx(o,r,t=>this.triggerEvent(new fy(t)),t=>this.triggerEvent(new by(t))),this.routerState=uw(this.currentUrlTree,this.rootComponentType),this.transitions=new Cb({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Qe(t=>0!==t.id),Object(ii.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Xr(t=>{let i=!1,n=!1;return Ne(t).pipe(Ve(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Xr(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ne(t).pipe(Xr(t=>{const i=this.transitions.getValue();return e.next(new ry(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?ai:[t]}),Xr(t=>Promise.resolve(t)),(n=this.ngModule.injector,s=this.configLoader,a=this.urlSerializer,o=this.config,function(t){return t.pipe(Xr(t=>function(t,e,i,n,s){return new Vw(t,e,i,n,s).apply()}(n,s,a,t.extractedUrl,o).pipe(Object(ii.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Ve(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return function(a){return a.pipe(Object(Sh.a)(a=>function(t,e,i,n,s="emptyOnly",a="legacy"){return new sx(t,e,i,n,s,a).recognize()}(t,e,a.urlAfterRedirects,i(a.urlAfterRedirects),n,s).pipe(Object(ii.a)(t=>Object.assign(Object.assign({},a),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ve(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Ve(t=>{const i=new hy(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,a,o;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:a,extras:o}=t,r=new ry(i,this.serializeUrl(n),s,a);e.next(r);const l=uw(n,this.rootComponentType).snapshot;return Ne(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ai}),px(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!o})}),Ve(t=>{const e=new uy(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(ii.a)(t=>Object.assign(Object.assign({},t),{guards:qw(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(i){return i.pipe(Object(Sh.a)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:o}}=i;return 0===o.length&&0===a.length?Ne(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(Ss.a)(t).pipe(Object(Sh.a)(t=>function(t,e,i,n,s){const a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return a&&0!==a.length?Ne(a.map(a=>{const o=Kw(a,e,s);let r;if(function(t){return t&&Mw(t.canDeactivate)}(o))r=Ly(o.canDeactivate(t,e,i,n));else{if(!Mw(o))throw new Error("Invalid CanDeactivate guard");r=Ly(o(t,e,i,n))}return r.pipe(Qv())})).pipe(Zw()):Ne(!0)}(t.component,t.route,i,e,n)),Qv(t=>!0!==t,!0))}(o,n,s,t).pipe(Object(Sh.a)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return Object(Ss.a)(e).pipe(Ih(e=>Object(Ss.a)([tx(e.route.parent,n),Qw(e.route,n),ix(t,e.path,i),ex(t,e.route,i)]).pipe(ln(),Qv(t=>!0!==t,!0))),Qv(t=>!0!==t,!0))}(n,a,t,e):Ne(i)),Object(ii.a)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Ve(t=>{if(Fw(t.guardsResult)){const e=Iy(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Ve(t=>{const e=new py(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Qe(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new cy(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),px(t=>{if(t.guards.canActivateChecks.length)return Ne(t).pipe(Ve(t=>{const e=new my(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(t){return t.pipe(Object(Sh.a)(t=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=t;return s.length?Object(Ss.a)(s).pipe(Ih(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Ne({});if(1===s.length){const a=s[0];return ux(t[a],e,i,n).pipe(Object(ii.a)(t=>({[a]:t})))}const a={};return Object(Ss.a)(s).pipe(Object(Sh.a)(s=>ux(t[s],e,i,n).pipe(Object(ii.a)(t=>(a[s]=t,t))))).pipe(Zv(),Object(ii.a)(()=>a))}(t._resolve,t,e,n).pipe(Object(ii.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),mw(t,i).resolve),null)))}(t.route,n,e,i)),function(t,e){return arguments.length>=2?function(i){return Object(ay.a)(iy(t,e),Vv(1),qv(e))(i)}:function(e){return Object(ay.a)(iy((e,i,n)=>t(e,i,n+1)),Vv(1))(e)}}((t,e)=>t),Object(ii.a)(e=>t)):Ne(t)}))}),Ve(t=>{const e=new gy(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,i}),px(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!o})}),Object(ii.a)(t=>{const e=function(t,e,i){const n=function t(e,i,n){if(n&&e.shouldReuseRoute(i.value,n.value.snapshot)){const s=n.value;s._futureSnapshot=i.value;const a=function(e,i,n){return i.children.map(i=>{for(const s of n.children)if(e.shouldReuseRoute(s.value.snapshot,i.value))return t(e,i,s);return t(e,i)})}(e,i,n);return new cw(s,a)}{const n=e.retrieve(i.value);if(n){const t=n.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(let n=0;nt(e,i));return new cw(n,a)}}var s}(t,e._root,i?i._root:void 0);return new hw(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Ve(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,a=this.routeReuseStrategy,o=t=>this.triggerEvent(t),Object(ii.a)(t=>(new Tw(a,t.targetRouterState,t.currentRouterState,o).activate(s),t))),Ve({next(){i=!0},complete(){i=!0}}),wh(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new cy(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(i),t.resolve(!1)}this.currentNavigation=null}),_h(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=Fw(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new cy(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new dy(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(a){t.reject(a)}}var s;return ai}));var s,a,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const i="popstate"===t.type?"popstate":"hashchange",n=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,i,n,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Oy(t),this.config=t.map(Ty),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:a,preserveQueryParams:o,queryParamsHandling:r,preserveFragment:l}=e;Object(s.jb)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=i||this.routerState.root,d=l?this.currentUrlTree.fragment:a;let h=null;if(r)switch(r){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=n||null}else h=o?this.currentUrlTree.queryParams:n||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,i,n,s){if(0===i.length)return xw(e.root,e.root,e,n,s);const a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new kw(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return zy(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new kw(i,e,n)}(i);if(a.toRoot())return xw(e.root,new Vy([],{}),e,n,s);const o=function(t,e,i){if(t.isAbsolute)return new Cw(e.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new Cw(i.snapshot._urlSegment,!0,0);const n=ww(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,a=i;for(;a>s;){if(a-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new Cw(n,!1,s-a)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(a,e,t),r=o.processChildren?Dw(o.segmentGroup,o.index,a.commands):Iw(o.segmentGroup,o.index,a.commands);return xw(o.segmentGroup,r,e,n,s)}(c,this.currentUrlTree,t,h,d)}navigateByUrl(t,e={skipLocationChange:!1}){Object(s.jb)()&&this.isNgZoneEnabled&&!s.I.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const i=Fw(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new ly(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){const a=this.getTransition();if(a&&"imperative"!==e&&"imperative"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(a&&"hashchange"==e&&"popstate"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(a&&"popstate"==e&&"hashchange"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,r,l;s?(o=s.resolve,r=s.reject,l=s.promise):l=new Promise((t,e)=>{o=t,r=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:o,reject:r,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,i,n){const s=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(s,"",Object.assign(Object.assign({},n),{navigationId:i}))}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){s.Vc()},t.\u0275dir=s.yc({type:t}),t})(),xx=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.jb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:Cx(this.skipLocationChange),replaceUrl:Cx(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Cx(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Cx(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(wx),s.Dc(pw),s.Tc("tabindex"),s.Dc(s.P),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),kx=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof ly&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.jb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n){if(0!==t||e||i||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:Cx(this.skipLocationChange),replaceUrl:Cx(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Cx(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Cx(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(wx),s.Dc(pw),s.Dc(ve.o))},t.\u0275dir=s.yc({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.Wc("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(s.Mc("href",e.href,s.td),s.qc("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.nc]}),t})();function Cx(t){return""===t||!!t}let Sx=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.element=e,this.renderer=i,this.link=n,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof ly&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(wx),s.Dc(s.r),s.Dc(s.P),s.Dc(xx,8),s.Dc(kx,8))},t.\u0275dir=s.yc({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,xx,!0),s.vc(i,kx,!0)),2&t&&(s.md(n=s.Xc())&&(e.links=n),s.md(n=s.Xc())&&(e.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[s.nc]}),t})();class Ix{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Dx,this.attachRef=null}}class Dx{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Ix,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Ex=(()=>{class t{constructor(t,e,i,n,a){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.u,this.deactivateEvents=new s.u,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new Ox(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Dx),s.Dc(s.cb),s.Dc(s.n),s.Tc("name"),s.Dc(s.j))},t.\u0275dir=s.yc({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Ox{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===pw?this.route:t===Dx?this.childContexts:this.parent.get(t,e)}}class Ax{}class Px{preload(t,e){return Ne(null)}}let Tx=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new fx(e,i,e=>t.triggerEvent(new fy(e)),e=>t.triggerEvent(new by(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Qe(t=>t instanceof ly),Ih(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.G);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return Object(Ss.a)(i).pipe(Object(rn.a)(),Object(ii.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(Sh.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(wx),s.Sc(s.F),s.Sc(s.k),s.Sc(s.y),s.Sc(Ax))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),Rx=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof ry?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ly&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof xy&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new xy(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){s.Vc()},t.\u0275dir=s.yc({type:t}),t})();const Mx=new s.x("ROUTER_CONFIGURATION"),Fx=new s.x("ROUTER_FORROOT_GUARD"),Nx=[ve.n,{provide:Uy,useClass:Gy},{provide:wx,useFactory:function(t,e,i,n,s,a,o,r={},l,c){const d=new wx(null,t,e,i,n,s,a,Fy(o));if(l&&(d.urlHandlingStrategy=l),c&&(d.routeReuseStrategy=c),r.errorHandler&&(d.errorHandler=r.errorHandler),r.malformedUriErrorHandler&&(d.malformedUriErrorHandler=r.malformedUriErrorHandler),r.enableTracing){const t=Object(ve.N)();d.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return r.onSameUrlNavigation&&(d.onSameUrlNavigation=r.onSameUrlNavigation),r.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=r.paramsInheritanceStrategy),r.urlUpdateStrategy&&(d.urlUpdateStrategy=r.urlUpdateStrategy),r.relativeLinkResolution&&(d.relativeLinkResolution=r.relativeLinkResolution),d},deps:[Uy,Dx,ve.n,s.y,s.F,s.k,gx,Mx,[class{},new s.J],[class{},new s.J]]},Dx,{provide:pw,useFactory:function(t){return t.routerState.root},deps:[wx]},{provide:s.F,useClass:s.V},Tx,Px,class{preload(t,e){return e().pipe(_h(()=>Ne(null)))}},{provide:Mx,useValue:{enableTracing:!1}}];function zx(){return new s.H("Router",wx)}let Lx=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Nx,jx(e),{provide:Fx,useFactory:Vx,deps:[[wx,new s.J,new s.U]]},{provide:Mx,useValue:i||{}},{provide:ve.o,useFactory:Jx,deps:[ve.D,[new s.w(ve.a),new s.J],Mx]},{provide:Rx,useFactory:Bx,deps:[wx,ve.H,Mx]},{provide:Ax,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Px},{provide:s.H,multi:!0,useFactory:zx},[$x,{provide:s.d,multi:!0,useFactory:Hx,deps:[$x]},{provide:Gx,useFactory:Ux,deps:[$x]},{provide:s.b,multi:!0,useExisting:Gx}]]}}static forChild(e){return{ngModule:t,providers:[jx(e)]}}}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)(s.Sc(Fx,8),s.Sc(wx,8))}}),t})();function Bx(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Rx(t,e,i)}function Jx(t,e,i={}){return i.useHash?new ve.h(t,e):new ve.B(t,e)}function Vx(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function jx(t){return[{provide:s.a,multi:!0,useValue:t},{provide:gx,multi:!0,useValue:t}]}let $x=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Pe.a}appInitializer(){return this.injector.get(ve.m,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(wx),n=this.injector.get(Mx);if(this.isLegacyDisabled(n)||this.isLegacyEnabled(n))t(!0);else if("disabled"===n.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==n.initialNavigation)throw new Error(`Invalid initialNavigation options: '${n.initialNavigation}'`);i.hooks.afterPreactivation=()=>this.initNavigation?Ne(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Mx),i=this.injector.get(Tx),n=this.injector.get(Rx),a=this.injector.get(wx),o=this.injector.get(s.g);t===o.components[0]&&(this.isLegacyEnabled(e)?a.initialNavigation():this.isLegacyDisabled(e)&&a.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),a.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.y))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();function Hx(t){return t.appInitializer.bind(t)}function Ux(t){return t.bootstrapListener.bind(t)}const Gx=new s.x("Router Initializer");let Wx=(()=>{class t{constructor(t,e,i,n){this.http=t,this.router=e,this.document=i,this.snackBar=n,this.path="",this.audioFolder="",this.videoFolder="",this.startPath=null,this.startPathSSL=null,this.handShakeComplete=!1,this.THEMES_CONFIG=Lv,this.settings_changed=new Cb(!1),this.auth_token="4241b401-7236-493e-92b5-b72696b9d853",this.session_id=null,this.httpOptions=null,this.http_params=null,this.unauthorized=!1,this.debugMode=!1,this.isLoggedIn=!1,this.token=null,this.user=null,this.permissions=null,this.available_permissions=null,this.reload_config=new Cb(!1),this.config_reloaded=new Cb(!1),this.service_initialized=new Cb(!1),this.initialized=!1,this.open_create_default_admin_dialog=new Cb(!1),this.config=null,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",Object(s.jb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/"),this.http_params=`apiKey=${this.auth_token}`,this.httpOptions={params:new Th({fromString:this.http_params})},Bv.get(t=>{this.session_id=Bv.x64hash128(t.map((function(t){return t.value})).join(),31),this.httpOptions.params=this.httpOptions.params.set("sessionID",this.session_id)});const a=window.location.href.includes("/player")||window.location.href.includes("/login");this.loadNavItems().subscribe(t=>{const e=this.debugMode?t:t.config_file;e&&(this.config=e.YoutubeDLMaterial,this.config.Advanced.multi_user_mode?localStorage.getItem("jwt_token")&&"null"!==localStorage.getItem("jwt_token")?(this.token=localStorage.getItem("jwt_token"),this.httpOptions.params=this.httpOptions.params.set("jwt",this.token),this.jwtAuth()):a?this.setInitialized():this.sendToLogin():this.setInitialized())}),this.reload_config.subscribe(t=>{t&&this.reloadConfig()})}canActivate(t,e){return new Promise(t=>{t(!0)})}setTheme(t){this.theme=this.THEMES_CONFIG[t]}startHandshake(t){return this.http.get(t+"geturl")}startHandshakeSSL(t){return this.http.get(t+"geturl")}reloadConfig(){this.loadNavItems().subscribe(t=>{const e=this.debugMode?t:t.config_file;e&&(this.config=e.YoutubeDLMaterial,this.config_reloaded.next(!0))})}getVideoFolder(){return this.http.get(this.startPath+"videofolder")}getAudioFolder(){return this.http.get(this.startPath+"audiofolder")}makeMP3(t,e,i,n=null,s=null,a=null,o=null,r=null){return this.http.post(this.path+"tomp3",{url:t,maxBitrate:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:o,ui_uid:r},this.httpOptions)}makeMP4(t,e,i,n=null,s=null,a=null,o=null,r=null){return this.http.post(this.path+"tomp4",{url:t,selectedHeight:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:o,ui_uid:r},this.httpOptions)}getFileStatusMp3(t){return this.http.post(this.path+"fileStatusMp3",{name:t},this.httpOptions)}getFileStatusMp4(t){return this.http.post(this.path+"fileStatusMp4",{name:t},this.httpOptions)}loadNavItems(){return Object(s.jb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config",this.httpOptions)}loadAsset(t){return this.http.get(`./assets/${t}`)}setConfig(t){return this.http.post(this.path+"setConfig",{new_config_file:t},this.httpOptions)}deleteFile(t,e,i=!1){return this.http.post(e?this.path+"deleteMp3":this.path+"deleteMp4",{uid:t,blacklistMode:i},this.httpOptions)}getMp3s(){return this.http.get(this.path+"getMp3s",this.httpOptions)}getMp4s(){return this.http.get(this.path+"getMp4s",this.httpOptions)}getFile(t,e,i=null){return this.http.post(this.path+"getFile",{uid:t,type:e,uuid:i},this.httpOptions)}downloadFileFromServer(t,e,i=null,n=null,s=null,a=null,o=null,r=null){return this.http.post(this.path+"downloadFile",{fileNames:t,type:e,zip_mode:Array.isArray(t),outputName:i,fullPathProvided:n,subscriptionName:s,subPlaylist:a,uuid:r,uid:o},{responseType:"blob",params:this.httpOptions.params})}uploadCookiesFile(t){return this.http.post(this.path+"uploadCookies",t,this.httpOptions)}downloadArchive(t){return this.http.post(this.path+"downloadArchive",{sub:t},{responseType:"blob",params:this.httpOptions.params})}getFileInfo(t,e,i){return this.http.post(this.path+"getVideoInfos",{fileNames:t,type:e,urlMode:i},this.httpOptions)}getLogs(){return this.http.get(this.path+"logs",this.httpOptions)}isPinSet(){return this.http.post(this.path+"isPinSet",{},this.httpOptions)}setPin(t){return this.http.post(this.path+"setPin",{pin:t},this.httpOptions)}checkPin(t){return this.http.post(this.path+"checkPin",{input_pin:t},this.httpOptions)}generateNewAPIKey(){return this.http.post(this.path+"generateNewAPIKey",{},this.httpOptions)}enableSharing(t,e,i){return this.http.post(this.path+"enableSharing",{uid:t,type:e,is_playlist:i},this.httpOptions)}disableSharing(t,e,i){return this.http.post(this.path+"disableSharing",{uid:t,type:e,is_playlist:i},this.httpOptions)}createPlaylist(t,e,i,n){return this.http.post(this.path+"createPlaylist",{playlistName:t,fileNames:e,type:i,thumbnailURL:n},this.httpOptions)}getPlaylist(t,e,i=null){return this.http.post(this.path+"getPlaylist",{playlistID:t,type:e,uuid:i},this.httpOptions)}updatePlaylist(t){return this.http.post(this.path+"updatePlaylist",{playlist:t},this.httpOptions)}updatePlaylistFiles(t,e,i){return this.http.post(this.path+"updatePlaylistFiles",{playlistID:t,fileNames:e,type:i},this.httpOptions)}removePlaylist(t,e){return this.http.post(this.path+"deletePlaylist",{playlistID:t,type:e},this.httpOptions)}createSubscription(t,e,i=null,n=!1,s=!1,a=null,o=null){return this.http.post(this.path+"subscribe",{url:t,name:e,timerange:i,streamingOnly:n,audioOnly:s,customArgs:a,customFileOutput:o},this.httpOptions)}unsubscribe(t,e=!1){return this.http.post(this.path+"unsubscribe",{sub:t,deleteMode:e},this.httpOptions)}deleteSubscriptionFile(t,e,i,n){return this.http.post(this.path+"deleteSubscriptionFile",{sub:t,file:e,deleteForever:i,file_uid:n},this.httpOptions)}getSubscription(t){return this.http.post(this.path+"getSubscription",{id:t},this.httpOptions)}getAllSubscriptions(){return this.http.post(this.path+"getAllSubscriptions",{},this.httpOptions)}getCurrentDownloads(){return this.http.get(this.path+"downloads",this.httpOptions)}getCurrentDownload(t,e){return this.http.post(this.path+"download",{download_id:e,session_id:t},this.httpOptions)}clearDownloads(t=!1,e=null,i=null){return this.http.post(this.path+"clearDownloads",{delete_all:t,download_id:i,session_id:e||this.session_id},this.httpOptions)}updateServer(t){return this.http.post(this.path+"updateServer",{tag:t},this.httpOptions)}getUpdaterStatus(){return this.http.get(this.path+"updaterStatus",this.httpOptions)}getLatestGithubRelease(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest")}getAvailableRelease(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases")}afterLogin(t,e,i,n){this.isLoggedIn=!0,this.user=t,this.permissions=i,this.available_permissions=n,this.token=e,localStorage.setItem("jwt_token",this.token),this.httpOptions.params=this.httpOptions.params.set("jwt",this.token),this.setInitialized(),this.config_reloaded.next(!0),"/login"===this.router.url&&this.router.navigate(["/home"])}login(t,e){return this.http.post(this.path+"auth/login",{userid:t,password:e},this.httpOptions)}jwtAuth(){const t=this.http.post(this.path+"auth/jwtAuth",{},this.httpOptions);return t.subscribe(t=>{t.token&&this.afterLogin(t.user,t.token,t.permissions,t.available_permissions)},t=>{401===t.status&&this.sendToLogin(),console.log(t)}),t}logout(){this.user=null,this.permissions=null,this.isLoggedIn=!1,this.token=null,localStorage.setItem("jwt_token",null),"/login"!==this.router.url&&this.router.navigate(["/login"]),this.http_params=`apiKey=${this.auth_token}&sessionID=${this.session_id}`,this.httpOptions={params:new Th({fromString:this.http_params})}}register(t,e){return this.http.post(this.path+"auth/register",{userid:t,username:t,password:e},this.httpOptions)}sendToLogin(){this.checkAdminCreationStatus(),this.initialized||this.setInitialized(),"/login"!==this.router.url&&(this.router.navigate(["/login"]),this.openSnackBar("You must log in to access this page!"))}setInitialized(){this.service_initialized.next(!0),this.initialized=!0,this.config_reloaded.next(!0)}adminExists(){return this.http.post(this.path+"auth/adminExists",{},this.httpOptions)}createAdminAccount(t){return this.http.post(this.path+"auth/register",{userid:"admin",username:"admin",password:t},this.httpOptions)}checkAdminCreationStatus(t=!1){(t||this.config.Advanced.multi_user_mode)&&this.adminExists().subscribe(t=>{t.exists||this.open_create_default_admin_dialog.next(!0)})}changeUser(t){return this.http.post(this.path+"updateUser",{change_object:t},this.httpOptions)}deleteUser(t){return this.http.post(this.path+"deleteUser",{uid:t},this.httpOptions)}changeUserPassword(t,e){return this.http.post(this.path+"auth/changePassword",{user_uid:t,new_password:e},this.httpOptions)}getUsers(){return this.http.post(this.path+"getUsers",{},this.httpOptions)}getRoles(){return this.http.post(this.path+"getRoles",{},this.httpOptions)}setUserPermission(t,e,i){return this.http.post(this.path+"changeUserPermissions",{user_uid:t,permission:e,new_value:i},this.httpOptions)}setRolePermission(t,e,i){return this.http.post(this.path+"changeRolePermissions",{role:t,permission:e,new_value:i},this.httpOptions)}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Sc($h),s.Sc(wx),s.Sc(ve.e),s.Sc(Hg))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();si.a.of=Ne;class qx{constructor(t){this.value=t}call(t,e){return e.subscribe(new Kx(t,this.value))}}class Kx extends Le.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function Xx(t,e,i){return Ve(t,e,i)(this)}function Yx(){return Xr(Yv.a)(this)}function Zx(t,e){if(1&t&&(s.Jc(0,"h4",5),s.Bd(1),s.Ic()),2&t){const t=s.ad();s.pc(1),s.Cd(t.dialog_title)}}function Qx(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"mat-form-field",6),s.Jc(2,"input",7),s.Wc("keyup.enter",(function(){return s.rd(t),s.ad().doAction()}))("ngModelChange",(function(e){return s.rd(t),s.ad().input=e})),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(2),s.gd("ngModel",t.input)("placeholder",t.input_placeholder)}}function tk(t,e){1&t&&(s.Jc(0,"div",8),s.Ec(1,"mat-spinner",9),s.Ic()),2&t&&(s.pc(1),s.gd("diameter",25))}si.a.prototype.mapTo=function(t){return function(t){return e=>e.lift(new qx(t))}(t)(this)},i("XypG"),si.a.fromEvent=kr,si.a.prototype.filter=function(t,e){return Qe(t,e)(this)},si.a.prototype.debounceTime=function(t,e=qe){return Ke(t,e)(this)},si.a.prototype.do=Xx,si.a.prototype._do=Xx,si.a.prototype.switch=Yx,si.a.prototype._switch=Yx;let ek=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.data=e,this.dialogRef=i,this.snackBar=n,this.pinSetChecked=!1,this.pinSet=!0,this.resetMode=!1,this.dialog_title="",this.input_placeholder=null,this.input="",this.button_label=""}ngOnInit(){this.data&&(this.resetMode=this.data.resetMode),this.resetMode?(this.pinSetChecked=!0,this.notSetLogic()):this.isPinSet()}isPinSet(){this.postsService.isPinSet().subscribe(t=>{this.pinSetChecked=!0,t.is_set?this.isSetLogic():this.notSetLogic()})}isSetLogic(){this.pinSet=!0,this.dialog_title="Pin Required",this.input_placeholder="Pin",this.button_label="Submit"}notSetLogic(){this.pinSet=!1,this.dialog_title="Set your pin",this.input_placeholder="New pin",this.button_label="Set Pin"}doAction(){this.pinSetChecked&&0!==this.input.length&&(this.pinSet?this.postsService.checkPin(this.input).subscribe(t=>{t.success?this.dialogRef.close(!0):(this.dialogRef.close(!1),this.openSnackBar("Pin is incorrect!"))}):this.postsService.setPin(this.input).subscribe(t=>{t.success?(this.dialogRef.close(!0),this.openSnackBar("Pin successfully set!")):(this.dialogRef.close(!1),this.openSnackBar("Failed to set pin!"))}))}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(pd),s.Dc(ud),s.Dc(Hg))},t.\u0275cmp=s.xc({type:t,selectors:[["app-check-or-set-pin-dialog"]],decls:8,vars:5,consts:[["mat-dialog-title","",4,"ngIf"],[2,"position","relative"],[4,"ngIf"],["class","spinner-div",4,"ngIf"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],["mat-dialog-title",""],["color","accent"],["type","password","matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],[1,"spinner-div"],[3,"diameter"]],template:function(t,e){1&t&&(s.zd(0,Zx,2,1,"h4",0),s.Jc(1,"mat-dialog-content"),s.Jc(2,"div",1),s.zd(3,Qx,3,2,"div",2),s.zd(4,tk,2,1,"div",3),s.Ic(),s.Ic(),s.Jc(5,"mat-dialog-actions"),s.Jc(6,"button",4),s.Wc("click",(function(){return e.doAction()})),s.Bd(7),s.Ic(),s.Ic()),2&t&&(s.gd("ngIf",e.pinSetChecked),s.pc(3),s.gd("ngIf",e.pinSetChecked),s.pc(1),s.gd("ngIf",!e.pinSetChecked),s.pc(2),s.gd("disabled",0===e.input.length),s.pc(1),s.Cd(e.button_label))},directives:[ve.t,wd,xd,bs,yd,Bc,Ru,Rs,Js,qa,mm],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),t})();const ik={ab:{name:"Abkhaz",nativeName:"\u0430\u04a7\u0441\u0443\u0430"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"\u12a0\u121b\u122d\u129b"},ar:{name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},an:{name:"Aragonese",nativeName:"Aragon\xe9s"},hy:{name:"Armenian",nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},as:{name:"Assamese",nativeName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",nativeName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0, \u043c\u0430\u0433\u04c0\u0430\u0440\u0443\u043b \u043c\u0430\u0446\u04c0"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"az\u0259rbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f"},bn:{name:"Bengali",nativeName:"\u09ac\u09be\u0982\u09b2\u09be"},bh:{name:"Bihari",nativeName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},my:{name:"Burmese",nativeName:"\u1017\u1019\u102c\u1005\u102c"},ca:{name:"Catalan; Valencian",nativeName:"Catal\xe0"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiChe\u0175a, chinyanja"},zh:{name:"Chinese",nativeName:"\u4e2d\u6587 (Zh\u014dngw\xe9n), \u6c49\u8bed, \u6f22\u8a9e"},cv:{name:"Chuvash",nativeName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"\u010desky, \u010de\u0161tina"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"\u078b\u07a8\u0788\u07ac\u0780\u07a8"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"E\u028begbe"},fo:{name:"Faroese",nativeName:"f\xf8royskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"fran\xe7ais, langue fran\xe7aise"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek, Modern",nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},gn:{name:"Guaran\xed",nativeName:"Ava\xf1e\u1ebd"},gu:{name:"Gujarati",nativeName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},ht:{name:"Haitian; Haitian Creole",nativeName:"Krey\xf2l ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, \u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew (modern)",nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940, \u0939\u093f\u0902\u0926\u0940"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"As\u1ee5s\u1ee5 Igbo"},ik:{name:"Inupiaq",nativeName:"I\xf1upiaq, I\xf1upiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"\xcdslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",nativeName:"\u65e5\u672c\u8a9e (\u306b\u307b\u3093\u3054\uff0f\u306b\u3063\u307d\u3093\u3054)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut, Greenlandic",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940, \u0643\u0634\u0645\u064a\u0631\u064a\u200e"},kk:{name:"Kazakh",nativeName:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},km:{name:"Khmer",nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a"},ki:{name:"Kikuyu, Gikuyu",nativeName:"G\u0129k\u0169y\u0169"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz, Kyrgyz",nativeName:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438"},kv:{name:"Komi",nativeName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"\ud55c\uad6d\uc5b4 (\u97d3\u570b\u8a9e), \uc870\uc120\ub9d0 (\u671d\u9bae\u8a9e)"},ku:{name:"Kurdish",nativeName:"Kurd\xee, \u0643\u0648\u0631\u062f\u06cc\u200e"},kj:{name:"Kwanyama, Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish, Letzeburgesch",nativeName:"L\xebtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish, Limburgan, Limburger",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Ling\xe1la"},lo:{name:"Lao",nativeName:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7"},lt:{name:"Lithuanian",nativeName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latvie\u0161u valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},ml:{name:"Malayalam",nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"M\u0101ori",nativeName:"te reo M\u0101ori"},mr:{name:"Marathi (Mar\u0101\u1e6dh\u012b)",nativeName:"\u092e\u0930\u093e\u0920\u0940"},mh:{name:"Marshallese",nativeName:"Kajin M\u0327aje\u013c"},mn:{name:"Mongolian",nativeName:"\u043c\u043e\u043d\u0433\u043e\u043b"},na:{name:"Nauru",nativeName:"Ekakair\u0169 Naoero"},nv:{name:"Navajo, Navaho",nativeName:"Din\xe9 bizaad, Din\xe9k\u02bceh\u01f0\xed"},nb:{name:"Norwegian Bokm\xe5l",nativeName:"Norsk bokm\xe5l"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"\ua188\ua320\ua4bf Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe, Ojibwa",nativeName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},cu:{name:"Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic",nativeName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian, Ossetic",nativeName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi, Punjabi",nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40, \u067e\u0646\u062c\u0627\u0628\u06cc\u200e"},pi:{name:"P\u0101li",nativeName:"\u092a\u093e\u0934\u093f"},fa:{name:"Persian",nativeName:"\u0641\u0627\u0631\u0633\u06cc"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto, Pushto",nativeName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",nativeName:"Portugu\xeas"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian, Moldavian, Moldovan",nativeName:"rom\xe2n\u0103"},ru:{name:"Russian",nativeName:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a"},sa:{name:"Sanskrit (Sa\u1e41sk\u1e5bta)",nativeName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"\u0938\u093f\u0928\u094d\u0927\u0940, \u0633\u0646\u068c\u064a\u060c \u0633\u0646\u062f\u06be\u06cc\u200e"},se:{name:"Northern Sami",nativeName:"Davvis\xe1megiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},sr:{name:"Serbian",nativeName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"G\xe0idhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala, Sinhalese",nativeName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",nativeName:"sloven\u010dina"},sl:{name:"Slovene",nativeName:"sloven\u0161\u010dina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"espa\xf1ol"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",nativeName:"\u0442\u043e\u04b7\u0438\u043a\u04e3, to\u011fik\u012b, \u062a\u0627\u062c\u06cc\u06a9\u06cc\u200e"},th:{name:"Thai",nativeName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",nativeName:"\u1275\u130d\u122d\u129b"},bo:{name:"Tibetan Standard, Tibetan, Central",nativeName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},tk:{name:"Turkmen",nativeName:"T\xfcrkmen, \u0422\u04af\u0440\u043a\u043c\u0435\u043d"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, \u170f\u1712\u1703\u1705\u1714 \u1706\u1704\u170e\u1713\u1704\u1714"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430, tatar\xe7a, \u062a\u0627\u062a\u0627\u0631\u0686\u0627\u200e"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur, Uyghur",nativeName:"Uy\u01a3urq\u0259, \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",nativeName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",nativeName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",nativeName:"zbek, \u040e\u0437\u0431\u0435\u043a, \u0623\u06c7\u0632\u0628\u06d0\u0643\u200e"},ve:{name:"Venda",nativeName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",nativeName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",nativeName:"Volap\xfck"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",nativeName:"Yor\xf9b\xe1"},za:{name:"Zhuang, Chuang",nativeName:"Sa\u026f cue\u014b\u0185, Saw cuengh"}},nk={uncategorized:{label:"Main"},network:{label:"Network"},geo_restriction:{label:"Geo Restriction"},video_selection:{label:"Video Selection"},download:{label:"Download"},filesystem:{label:"Filesystem"},thumbnail:{label:"Thumbnail"},verbosity:{label:"Verbosity"},workarounds:{label:"Workarounds"},video_format:{label:"Video Format"},subtitle:{label:"Subtitle"},authentication:{label:"Authentication"},adobe_pass:{label:"Adobe Pass"},post_processing:{label:"Post Processing"}},sk={uncategorized:[{key:"-h",alt:"--help",description:"Print this help text and exit"},{key:"--version",description:"Print program version and exit"},{key:"-U",alt:"--update",description:"Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)"},{key:"-i",alt:"--ignore-errors",description:"Continue on download errors, for example to skip unavailable videos in a playlist"},{key:"--abort-on-error",description:"Abort downloading of further videos (in the playlist or the command line) if an error occurs"},{key:"--dump-user-agent",description:"Display the current browser identification"},{key:"--list-extractors",description:"List all supported extractors"},{key:"--extractor-descriptions",description:"Output descriptions of all supported extractors"},{key:"--force-generic-extractor",description:"Force extraction to use the generic extractor"},{key:"--default-search",description:'Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube-dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit awarning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching.'},{key:"--ignore-config",description:"Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)"},{key:"--config-location",description:"Location of the configuration file; either the path to the config or its containing directory."},{key:"--flat-playlist",description:"Do not extract the videos of a playlist, only list them."},{key:"--mark-watched",description:"Mark videos watched (YouTube only)"},{key:"--no-mark-watched",description:"Do not mark videos watched (YouTube only)"},{key:"--no-color",description:"Do not emit color codes in output"}],network:[{key:"--proxy",description:'Use the specified HTTP/HTTPS/SOCKS proxy.To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection.'},{key:"--socket-timeout",description:"Time to wait before giving up, in seconds"},{key:"--source-address",description:"Client-side IP address to bind to"},{key:"-4",alt:"--force-ipv4",description:"Make all connections via IPv4"},{key:"-6",alt:"--force-ipv6",description:"Make all connections via IPv6"}],geo_restriction:[{key:"--geo-verification-proxy",description:"Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy', if the option is not present) is used for the actual downloading."},{key:"--geo-bypass",description:"Bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--no-geo-bypass",description:"Do not bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--geo-bypass-country",description:"Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code"},{key:"--geo-bypass-ip-block",description:"Force bypass geographic restriction with explicitly provided IP block in CIDR notation"}],video_selection:[{key:"--playlist-start",description:"Playlist video to start at (default is 1)"},{key:"--playlist-end",description:"Playlist video to end at (default is last)"},{key:"--playlist-items",description:'Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.'},{key:"--match-title",description:"Download only matching titles (regex orcaseless sub-string)"},{key:"--reject-title",description:"Skip download for matching titles (regex orcaseless sub-string)"},{key:"--max-downloads",description:"Abort after downloading NUMBER files"},{key:"--min-filesize",description:"Do not download any videos smaller than SIZE (e.g. 50k or 44.6m)"},{key:"--max-filesize",description:"Do not download any videos larger than SIZE (e.g. 50k or 44.6m)"},{key:"--date",description:"Download only videos uploaded in this date"},{key:"--datebefore",description:"Download only videos uploaded on or before this date (i.e. inclusive)"},{key:"--dateafter",description:"Download only videos uploaded on or after this date (i.e. inclusive)"},{key:"--min-views",description:"Do not download any videos with less than COUNT views"},{key:"--max-views",description:"Do not download any videos with more than COUNT views"},{key:"--match-filter",description:'Generic video filter. Specify any key (seethe "OUTPUT TEMPLATE" for a list of available keys) to match if the key is present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=, =) to compare against a number, key = \'LITERAL\' (like "uploader = \'Mike Smith\'", also works with !=) to match against a string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than 50 times (or the dislike functionality is not available at the given service), but who also have a description, use --match-filter'},{key:"--no-playlist",description:"Download only the video, if the URL refers to a video and a playlist."},{key:"--yes-playlist",description:"Download the playlist, if the URL refers to a video and a playlist."},{key:"--age-limit",description:"Download only videos suitable for the given age"},{key:"--download-archive",description:"Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it."},{key:"--include-ads",description:"Download advertisements as well (experimental)"}],download:[{key:"-r",alt:"--limit-rate",description:"Maximum download rate in bytes per second(e.g. 50K or 4.2M)"},{key:"-R",alt:"--retries",description:'Number of retries (default is 10), or "infinite".'},{key:"--fragment-retries",description:'Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM)'},{key:"--skip-unavailable-fragments",description:"Skip unavailable fragments (DASH, hlsnative and ISM)"},{key:"--abort-on-unavailable-fragment",description:"Abort downloading when some fragment is not available"},{key:"--keep-fragments",description:"Keep downloaded fragments on disk after downloading is finished; fragments are erased by default"},{key:"--buffer-size",description:"Size of download buffer (e.g. 1024 or 16K) (default is 1024)"},{key:"--no-resize-buffer",description:"Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE."},{key:"--http-chunk-size",description:"Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)"},{key:"--playlist-reverse",description:"Download playlist videos in reverse order"},{key:"--playlist-random",description:"Download playlist videos in random order"},{key:"--xattr-set-filesize",description:"Set file xattribute ytdl.filesize with expected file size"},{key:"--hls-prefer-native",description:"Use the native HLS downloader instead of ffmpeg"},{key:"--hls-prefer-ffmpeg",description:"Use ffmpeg instead of the native HLS downloader"},{key:"--hls-use-mpegts",description:"Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play it)"},{key:"--external-downloader",description:"Use the specified external downloader. Currently supports aria2c,avconv,axel,curl,ffmpeg,httpie,wget"},{key:"--external-downloader-args"}],filesystem:[{key:"-a",alt:"--batch-file",description:"File containing URLs to download ('-' for stdin), one URL per line. Lines starting with '#', ';' or ']' are considered as comments and ignored."},{key:"--id",description:"Use only video ID in file name"},{key:"-o",alt:"--output",description:'Output filename template, see the "OUTPUT TEMPLATE" for all the info'},{key:"--autonumber-start",description:"Specify the start value for %(autonumber)s (default is 1)"},{key:"--restrict-filenames",description:'Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames'},{key:"-w",alt:"--no-overwrites",description:"Do not overwrite files"},{key:"-c",alt:"--continue",description:"Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible."},{key:"--no-continue",description:"Do not resume partially downloaded files (restart from beginning)"},{key:"--no-part",description:"Do not use .part files - write directlyinto output file"},{key:"--no-mtime",description:"Do not use the Last-modified header to set the file modification time"},{key:"--write-description",description:"Write video description to a .description file"},{key:"--write-info-json",description:"Write video metadata to a .info.json file"},{key:"--write-annotations",description:"Write video annotations to a.annotations.xml file"},{key:"--load-info-json",description:'JSON file containing the video information (created with the "--write-info-json" option)'},{key:"--cookies",description:"File to read cookies from and dump cookie jar in"},{key:"--cache-dir",description:"Location in the file system where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are cached, but that may change."},{key:"--no-cache-dir",description:"Disable filesystem caching"},{key:"--rm-cache-dir",description:"Delete all filesystem cache files"}],thumbnail:[{key:"--write-thumbnail",description:"Write thumbnail image to disk"},{key:"--write-all-thumbnails",description:"Write all thumbnail image formats to disk"},{key:"--list-thumbnails",description:"Simulate and list all available thumbnail formats"}],verbosity:[{key:"-q",alt:"--quiet",description:"Activate quiet mode"},{key:"--no-warnings",description:"Ignore warnings"},{key:"-s",alt:"--simulate",description:"Do not download the video and do not writeanything to disk"},{key:"--skip-download",description:"Do not download the video"},{key:"-g",alt:"--get-url",description:"Simulate, quiet but print URL"},{key:"-e",alt:"--get-title",description:"Simulate, quiet but print title"},{key:"--get-id",description:"Simulate, quiet but print id"},{key:"--get-thumbnail",description:"Simulate, quiet but print thumbnail URL"},{key:"--get-description",description:"Simulate, quiet but print video description"},{key:"--get-duration",description:"Simulate, quiet but print video length"},{key:"--get-filename",description:"Simulate, quiet but print output filename"},{key:"--get-format",description:"Simulate, quiet but print output format"},{key:"-j",alt:"--dump-json",description:'Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys.'},{key:"-J",alt:"--dump-single-json",description:"Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line."},{key:"--print-json",description:"Be quiet and print the video information as JSON (video is still being downloaded)."},{key:"--newline",description:"Output progress bar as new lines"},{key:"--no-progress",description:"Do not print progress bar"},{key:"--console-title",description:"Display progress in console title bar"},{key:"-v",alt:"--verbose",description:"Print various debugging information"},{key:"--dump-pages",description:"Print downloaded pages encoded using base64 to debug problems (very verbose)"},{key:"--write-pages",description:"Write downloaded intermediary pages to files in the current directory to debug problems"},{key:"--print-traffic",description:"Display sent and read HTTP traffic"},{key:"-C",alt:"--call-home",description:"Contact the youtube-dl server for debugging"},{key:"--no-call-home",description:"Do NOT contact the youtube-dl server for debugging"}],workarounds:[{key:"--encoding",description:"Force the specified encoding (experimental)"},{key:"--no-check-certificate",description:"Suppress HTTPS certificate validation"},{key:"--prefer-insecure",description:"Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube)"},{key:"--user-agent",description:"Specify a custom user agent"},{key:"--referer",description:"Specify a custom referer, use if the video access is restricted to one domain"},{key:"--add-header",description:"Specify a custom HTTP header and its value, separated by a colon ':'. You can use this option multiple times"},{key:"--bidi-workaround",description:"Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH"},{key:"--sleep-interval",description:"Number of seconds to sleep before each download when used alone or a lower boundof a range for randomized sleep before each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval"},{key:"--max-sleep-interval",description:"Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only beused along with --min-sleep-interval"}],video_format:[{key:"-f",alt:"--format",description:'Video format code, see the "FORMAT SELECTION" for all the info'},{key:"--all-formats",description:"Download all available video formats"},{key:"--prefer-free-formats",description:"Prefer free video formats unless a specific one is requested"},{key:"-F",alt:"--list-formats",description:"List all available formats of requested videos"},{key:"--youtube-skip-dash-manifest",description:"Do not download the DASH manifests and related data on YouTube videos"},{key:"--merge-output-format",description:"If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required"}],subtitle:[{key:"--write-sub",description:"Write subtitle file"},{key:"--write-auto-sub",description:"Write automatically generated subtitle file (YouTube only)"},{key:"--all-subs",description:"Download all the available subtitles of the video"},{key:"--list-subs",description:"List all available subtitles for the video"},{key:"--sub-format",description:'Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"'},{key:"--sub-lang",description:"Languages of the subtitles to download (optional) separated by commas, use --list-subs"}],authentication:[{key:"-u",alt:"--username",description:"Login with this account ID"},{key:"-p",alt:"--password",description:"Account password. If this option is left out, youtube-dl will ask interactively."},{key:"-2",alt:"--twofactor",description:"Two-factor authentication code"},{key:"-n",alt:"--netrc",description:"Use .netrc authentication data"},{key:"--video-password",description:"Video password (vimeo, smotri, youku)"}],adobe_pass:[{key:"--ap-mso",description:"Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso"},{key:"--ap-username",description:"Multiple-system operator account login"},{key:"--ap-password",description:"Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively."},{key:"--ap-list-mso",description:"List all supported multiple-system operators"}],post_processing:[{key:"-x",alt:"--extract-audio",description:"Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)"},{key:"--audio-format",description:'Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without -x'},{key:"--audio-quality",description:"Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse)for VBR or a specific bitrate like 128K (default 5)"},{key:"--recode-video",description:"Encode the video to another format if necessary (currently supported:mp4|flv|ogg|webm|mkv|avi)"},{key:"--postprocessor-args",description:"Give these arguments to the postprocessor"},{key:"-k",alt:"--keep-video",description:"Keep the video file on disk after the post-processing; the video is erased by default"},{key:"--no-post-overwrites",description:"Do not overwrite post-processed files; the post-processed files are overwritten by default"},{key:"--embed-subs",description:"Embed subtitles in the video (only for mp4,webm and mkv videos)"},{key:"--embed-thumbnail",description:"Embed thumbnail in the audio as cover art"},{key:"--add-metadata",description:"Write metadata to the video file"},{key:"--metadata-from-title",description:"Parse additional metadata like song title/artist from the video title. The format syntax is the same as --output"},{key:"--xattrs",description:"Write metadata to the video file's xattrs (using dublin core and xdg standards)"},{key:"--fixup",description:"Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix file if we can, warn otherwise)"},{key:"--prefer-avconv",description:"Prefer avconv over ffmpeg for running the postprocessors"},{key:"--prefer-ffmpeg",description:"Prefer ffmpeg over avconv for running the postprocessors (default)"},{key:"--ffmpeg-location",description:"Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory."},{key:"--exec",description:"Execute a command on the file after downloading, similar to find's -exec syntax. Example: --exec"},{key:"--convert-subs",description:"Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)"}]},ak=["*"];class ok{constructor(t){this._elementRef=t}}const rk=kn(wn(xn(yn(ok)),"primary"),-1);let lk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),t})(),ck=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),t})(),dk=(()=>{class t extends rk{constructor(t,e,i,n,a,o,r,l){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=o,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._selected=!1,this._selectable=!0,this._removable=!0,this._onFocus=new Pe.a,this._onBlur=new Pe.a,this.selectionChange=new s.u,this.destroyed=new s.u,this.removed=new s.u,this._addHostClassName(),this._chipRippleTarget=(l||document).createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new Wn(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===a,this.tabIndex=null!=r&&parseInt(r)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=di(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=di(t)}get removable(){return this._removable}set removable(t){this._removable=di(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}_markForCheck(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(_i),s.Dc(qn,8),s.Dc(Ee,8),s.Dc(s.j),s.Tc("tabindex"),s.Dc(ve.e,8))},t.\u0275dir=s.yc({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,lk,!0),s.vc(i,ck,!0),s.vc(i,hk,!0)),2&t&&(s.md(n=s.Xc())&&(e.avatar=n.first),s.md(n=s.Xc())&&(e.trailingIcon=n.first),s.md(n=s.Xc())&&(e.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&s.Wc("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(s.qc("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),s.tc("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[s.mc]}),t})(),hk=(()=>{class t{constructor(t,e){this._parentChip=t,e&&"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}_handleClick(t){const e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(dk),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&s.Wc("click",(function(t){return e._handleClick(t)}))}}),t})();const uk=new s.x("mat-chips-default-options");class pk{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const mk=Cn(pk);let gk=0;class fk{constructor(t,e){this.source=t,this.value=e}}let bk=(()=>{class t extends mk{constructor(t,e,i,n,a,o,r){super(o,n,a,r),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new Pe.a,this._uid=`mat-chip-list-${gk++}`,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new s.u,this.valueChange=new s.u,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=di(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=di(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=di(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=di(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Object(xr.a)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Object(xr.a)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Object(xr.a)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Object(xr.a)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new Bi(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Gr(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Gr(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(dn(null),Gr(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new ws(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(36===t.keyCode?(this._keyManager.setFirstItemActive(),t.preventDefault()):35===t.keyCode?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new fk(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t.disabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(nn,8),s.Dc(Ja,8),s.Dc(to,8),s.Dc(Bn),s.Dc(Ls,10))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,dk,!0),2&t&&s.md(n=s.Xc())&&(e.chips=n)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&s.Wc("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(s.Mc("id",e._uid),s.qc("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),s.tc("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[s.oc([{provide:Ic,useExisting:t}]),s.mc],ngContentSelectors:ak,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0),s.ed(1),s.Ic())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),_k=0,vk=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new s.u,this.placeholder="",this.id=`mat-chip-list-input-${_k++}`,this._disabled=!1,this._inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=di(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=di(t)}get empty(){return!this._inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}_keydown(t){t&&9===t.keyCode&&!ze(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this._inputElement.focus(t)}_isSeparatorKey(t){if(ze(t))return!1;const e=this.separatorKeyCodes,i=t.keyCode;return Array.isArray(e)?e.indexOf(i)>-1:e.has(i)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(uk))},t.\u0275dir=s.yc({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&s.Wc("keydown",(function(t){return e._keydown(t)}))("blur",(function(){return e._blur()}))("focus",(function(){return e._focus()}))("input",(function(){return e._onInput()})),2&t&&(s.Mc("id",e.id),s.qc("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[s.nc]}),t})();const yk={separatorKeyCodes:[13]};let wk=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Bn,{provide:uk,useValue:yk}]}),t})();const xk=["chipper"];var kk,Ck,Sk,Ik,Dk,Ek,Ok,Ak;function Pk(t,e){1&t&&(s.Jc(0,"mat-icon",27),s.Bd(1,"cancel"),s.Ic())}function Tk(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-chip",25),s.Wc("removed",(function(){s.rd(t);const i=e.index;return s.ad().remove(i)})),s.Bd(1),s.zd(2,Pk,2,0,"mat-icon",26),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad();s.gd("matTooltip",i.argsByKey[t]?i.argsByKey[t].description:null)("selectable",i.selectable)("removable",i.removable),s.pc(1),s.Dd(" ",t," "),s.pc(1),s.gd("ngIf",i.removable)}}function Rk(t,e){if(1&t&&(s.Jc(0,"mat-option",28),s.Ec(1,"span",29),s.bd(2,"highlight"),s.Jc(3,"button",30),s.Jc(4,"mat-icon"),s.Bd(5,"info"),s.Ic(),s.Ic(),s.Ic()),2&t){const t=e.$implicit,i=s.ad();s.gd("value",t.key),s.pc(1),s.gd("innerHTML",s.dd(2,3,t.key,i.chipCtrl.value),s.sd),s.pc(2),s.gd("matTooltip",t.description)}}function Mk(t,e){if(1&t&&(s.Jc(0,"mat-option",28),s.Ec(1,"span",29),s.bd(2,"highlight"),s.Jc(3,"button",30),s.Jc(4,"mat-icon"),s.Bd(5,"info"),s.Ic(),s.Ic(),s.Ic()),2&t){const t=e.$implicit,i=s.ad();s.gd("value",t.key),s.pc(1),s.gd("innerHTML",s.dd(2,3,t.key,i.stateCtrl.value),s.sd),s.pc(2),s.gd("matTooltip",t.description)}}function Fk(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",34),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad(2).setFirstArg(i.key)})),s.Jc(1,"div",35),s.Bd(2),s.Ic(),s.Bd(3,"\xa0\xa0"),s.Jc(4,"div",36),s.Jc(5,"mat-icon",37),s.Bd(6,"info"),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit;s.pc(2),s.Cd(t.key),s.pc(3),s.gd("matTooltip",t.description)}}function Nk(t,e){if(1&t&&(s.Hc(0),s.Jc(1,"button",31),s.Bd(2),s.Ic(),s.Jc(3,"mat-menu",null,32),s.zd(5,Fk,7,2,"button",33),s.Ic(),s.Gc()),2&t){const t=e.$implicit,i=s.nd(4),n=s.ad();s.pc(1),s.gd("matMenuTriggerFor",i),s.pc(1),s.Cd(n.argsInfo[t.key].label),s.pc(3),s.gd("ngForOf",t.value)}}kk=$localize`:Modify args title␟d9e83ac17026e70ef6e9c0f3240a3b2450367f40␟3653857180335075556:Modify youtube-dl args`,Ck=$localize`:Simulated args title␟7fc1946abe2b40f60059c6cd19975d677095fd19␟3319938540903314395:Simulated new args`,Sk=$localize`:Add arg card title␟0b71824ae71972f236039bed43f8d2323e8fd570␟7066397187762906016:Add an arg`,Ik=$localize`:Search args by category button␟c8b0e59eb491f2ac7505f0fbab747062e6b32b23␟827176536271704947:Search by category`,Dk=$localize`:Use arg value checkbox␟9eeb91caef5a50256dd87e1c4b7b3e8216479377␟5487374754798278253:Use arg value`,Ek=$localize`:Search args by category button␟7de2451ed3fb8d8b847979bd3f0c740b970f167b␟1014075402717090995:Add arg`,Ok=$localize`:Arg modifier cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,Ak=$localize`:Arg modifier modify button␟b2623aee44b70c9a4ba1fce16c8a593b0a4c7974␟3251759404563225821:Modify`;const zk=["placeholder",$localize`:Arg value placeholder␟25d8ad5eba2ec24e68295a27d6a4bb9b49e3dacd␟9086775160067017111:Arg value`],Lk=function(){return{standalone:!0}};function Bk(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"mat-form-field",14),s.Jc(2,"input",38),s.Pc(3,zk),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().secondArg=e})),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(2),s.gd("ngModelOptions",s.id(3,Lk))("disabled",!t.secondArgEnabled)("ngModel",t.secondArg)}}let Jk=(()=>{class t{transform(t,e){const i=e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").split(" ").filter(t=>t.length>0).join("|"):void 0,n=new RegExp(i,"gi");return e?t.replace(n,t=>`${t}`):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Cc({name:"highlight",type:t,pure:!0}),t})(),Vk=(()=>{class t{constructor(t,e,i){this.data=t,this.dialogRef=e,this.dialog=i,this.myGroup=new Fa,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new Fa,this.chipCtrl=new Fa,this.availableArgs=null,this.argsByCategory=null,this.argsByKey=null,this.argsInfo=null,this.chipInput="",this.visible=!0,this.selectable=!0,this.removable=!0,this.addOnBlur=!1,this.args_array=null,this.separatorKeysCodes=[13,188]}static forRoot(){return{ngModule:t,providers:[]}}ngOnInit(){this.data&&(this.modified_args=this.data.initial_args,this.generateArgsArray()),this.getAllPossibleArgs(),this.filteredOptions=this.stateCtrl.valueChanges.pipe(dn(""),Object(ii.a)(t=>this.filter(t))),this.filteredChipOptions=this.chipCtrl.valueChanges.pipe(dn(""),Object(ii.a)(t=>this.filter(t)))}ngAfterViewInit(){this.autoTrigger.panelClosingActions.subscribe(t=>{this.autoTrigger.activeOption&&(console.log(this.autoTrigger.activeOption.value),this.chipCtrl.setValue(this.autoTrigger.activeOption.value))})}filter(t){if(this.availableArgs)return this.availableArgs.filter(e=>e.key.toLowerCase().includes(t.toLowerCase()))}addArg(){this.modified_args||(this.modified_args=""),""!==this.modified_args&&(this.modified_args+=",,"),this.modified_args+=this.stateCtrl.value+(this.secondArgEnabled?",,"+this.secondArg:""),this.generateArgsArray()}canAddArg(){return this.stateCtrl.value&&""!==this.stateCtrl.value&&(!this.secondArgEnabled||this.secondArg&&""!==this.secondArg)}getFirstArg(){return new Promise(t=>{t(this.stateCtrl.value)})}getValueAsync(t){return new Promise(e=>{e(t)})}getAllPossibleArgs(){const t=sk,e=Object.keys(t).map((function(e){return t[e]})),i=[].concat.apply([],e),n=i.reduce((t,e)=>(t[e.key]=e,t),{});this.argsByKey=n,this.availableArgs=i,this.argsByCategory=t,this.argsInfo=nk}setFirstArg(t){this.stateCtrl.setValue(t)}add(t){const e=t.input,i=t.value;i&&0!==i.trim().length&&(this.args_array.push(i),this.modified_args.length>0&&(this.modified_args+=",,"),this.modified_args+=i,e&&(e.value=""))}remove(t){this.args_array.splice(t,1),this.modified_args=this.args_array.join(",,")}generateArgsArray(){this.args_array=0!==this.modified_args.trim().length?this.modified_args.split(",,"):[]}drop(t){sv(this.args_array,t.previousIndex,t.currentIndex),this.modified_args=this.args_array.join(",,")}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(pd),s.Dc(ud),s.Dc(bd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-arg-modifier-dialog"]],viewQuery:function(t,e){var i;1&t&&s.Fd(xk,!0,sd),2&t&&s.md(i=s.Xc())&&(e.autoTrigger=i.first)},features:[s.oc([Jk])],decls:55,vars:25,consts:[["mat-dialog-title",""],[1,"container"],[1,"row"],[1,"col-12"],[1,"mat-elevation-z6"],["aria-label","Args array","cdkDropList","","cdkDropListDisabled","","cdkDropListOrientation","horizontal",1,"example-chip",3,"cdkDropListDropped"],["chipList",""],["cdkDrag","",3,"matTooltip","selectable","removable","removed",4,"ngFor","ngForOf"],["color","accent",2,"width","100%"],["matInput","",2,"width","100%",3,"formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["chipper",""],["autochip","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-elevation-z6","my-2"],["color","accent",2,"width","75%"],["matInput","","placeholder","Arg",3,"matAutocomplete","formControl"],["auto","matAutocomplete"],["argsByCategoryMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-stroked-button","",2,"margin-bottom","15px",3,"matMenuTriggerFor"],["color","accent",3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngIf"],["mat-stroked-button","","color","accent",3,"disabled","click"],["mat-button","",3,"mat-dialog-close"],["mat-button","","color","accent",3,"mat-dialog-close"],["cdkDrag","",3,"matTooltip","selectable","removable","removed"],["matChipRemove","",4,"ngIf"],["matChipRemove",""],[3,"value"],[3,"innerHTML"],["mat-icon-button","",2,"float","right",3,"matTooltip"],["mat-menu-item","",3,"matMenuTriggerFor"],["subMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[2,"display","inline-block"],[1,"info-menu-icon"],[3,"matTooltip"],["matInput","",3,"ngModelOptions","disabled","ngModel","ngModelChange",6,"placeholder"]],template:function(t,e){if(1&t&&(s.Jc(0,"h4",0),s.Nc(1,kk),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div",1),s.Jc(4,"div",2),s.Jc(5,"div",3),s.Jc(6,"mat-card",4),s.Jc(7,"h6"),s.Nc(8,Ck),s.Ic(),s.Jc(9,"mat-chip-list",5,6),s.Wc("cdkDropListDropped",(function(t){return e.drop(t)})),s.zd(11,Tk,3,5,"mat-chip",7),s.Ic(),s.Jc(12,"mat-form-field",8),s.Jc(13,"input",9,10),s.Wc("matChipInputTokenEnd",(function(t){return e.add(t)})),s.Ic(),s.Ic(),s.Jc(15,"mat-autocomplete",null,11),s.zd(17,Rk,6,6,"mat-option",12),s.bd(18,"async"),s.Ic(),s.Ic(),s.Ic(),s.Jc(19,"div",3),s.Jc(20,"mat-card",13),s.Jc(21,"h6"),s.Nc(22,Sk),s.Ic(),s.Jc(23,"form"),s.Jc(24,"div"),s.Jc(25,"mat-form-field",14),s.Ec(26,"input",15),s.Ic(),s.Jc(27,"mat-autocomplete",null,16),s.zd(29,Mk,6,6,"mat-option",12),s.bd(30,"async"),s.Ic(),s.Jc(31,"div"),s.Jc(32,"mat-menu",null,17),s.zd(34,Nk,6,3,"ng-container",18),s.bd(35,"keyvalue"),s.Ic(),s.Jc(36,"button",19),s.Hc(37),s.Nc(38,Ik),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(39,"div"),s.Jc(40,"mat-checkbox",20),s.Wc("ngModelChange",(function(t){return e.secondArgEnabled=t})),s.Hc(41),s.Nc(42,Dk),s.Gc(),s.Ic(),s.Ic(),s.zd(43,Bk,4,4,"div",21),s.Ic(),s.Jc(44,"div"),s.Jc(45,"button",22),s.Wc("click",(function(){return e.addArg()})),s.Hc(46),s.Nc(47,Ek),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(48,"mat-dialog-actions"),s.Jc(49,"button",23),s.Hc(50),s.Nc(51,Ok),s.Gc(),s.Ic(),s.Jc(52,"button",24),s.Hc(53),s.Nc(54,Ak),s.Gc(),s.Ic(),s.Ic()),2&t){const t=s.nd(10),i=s.nd(16),n=s.nd(28),a=s.nd(33);s.pc(11),s.gd("ngForOf",e.args_array),s.pc(2),s.gd("formControl",e.chipCtrl)("matAutocomplete",i)("matChipInputFor",t)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur),s.pc(4),s.gd("ngForOf",s.cd(18,18,e.filteredChipOptions)),s.pc(9),s.gd("matAutocomplete",n)("formControl",e.stateCtrl),s.pc(3),s.gd("ngForOf",s.cd(30,20,e.filteredOptions)),s.pc(5),s.gd("ngForOf",s.cd(35,22,e.argsByCategory)),s.pc(2),s.gd("matMenuTriggerFor",a),s.pc(4),s.gd("ngModelOptions",s.id(24,Lk))("ngModel",e.secondArgEnabled),s.pc(3),s.gd("ngIf",e.secondArgEnabled),s.pc(2),s.gd("disabled",!e.canAddArg()),s.pc(4),s.gd("mat-dialog-close",null),s.pc(3),s.gd("mat-dialog-close",e.modified_args)}},directives:[yd,wd,er,bk,Av,ve.s,Bc,Ru,Rs,sd,vk,Js,Za,Qc,Ka,Vs,Ja,Cp,bs,Ep,gr,qa,ve.t,xd,vd,dk,Iv,Kp,vu,hk,rs,_p],pipes:[ve.b,ve.l,Jk],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),t})();const jk=["fileSelector"];function $k(t,e){if(1&t&&(s.Jc(0,"div",8),s.Bd(1),s.Ic()),2&t){const t=s.ad(2);s.pc(1),s.Cd(t.dropZoneLabel)}}function Hk(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"input",9),s.Wc("click",(function(e){return s.rd(t),s.ad(2).openFileSelector(e)})),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(1),s.hd("value",t.browseBtnLabel),s.gd("className",t.browseBtnClassName)}}function Uk(t,e){if(1&t&&(s.zd(0,$k,2,1,"div",6),s.zd(1,Hk,2,2,"div",7)),2&t){const t=s.ad();s.gd("ngIf",t.dropZoneLabel),s.pc(1),s.gd("ngIf",t.showBrowseBtn)}}function Gk(t,e){}const Wk=function(t){return{openFileSelector:t}};class qk{constructor(t,e){this.relativePath=t,this.fileEntry=e}}let Kk=(()=>{let t=class{constructor(t){this.template=t}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})();var Xk=function(t,e,i,n){var s,a=arguments.length,o=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(o=(a<3?s(o):a>3?s(e,i,o):s(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},Yk=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Zk=(()=>{let t=class{constructor(t,e){this.zone=t,this.renderer=e,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new s.u,this.onFileOver=new s.u,this.onFileLeave=new s.u,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=t=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",t=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",t=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(t){this._disabled=null!=t&&"false"!==`${t}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(t){this.useDragEnter?this.preventAndStop(t):this.isDropzoneDisabled()||this.useDragEnter||(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(t)),this.preventAndStop(t))}onDragEnter(t){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(t)),this.preventAndStop(t))}onDragLeave(t){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(t)),this.preventAndStop(t))}dropFiles(t){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,t.dataTransfer)){let e;t.dataTransfer.dropEffect="copy",e=t.dataTransfer.items?t.dataTransfer.items:t.dataTransfer.files,this.preventAndStop(t),this.checkFiles(e)}}uploadFiles(t){!this.isDropzoneDisabled()&&t.target&&(this.checkFiles(t.target.files||[]),this.resetFileInput())}checkFiles(t){for(let e=0;e{t(i)}},e=new qk(t.name,t);this.addToQueue(e)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=$r(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const t=this.files;this.files=[],this.onFileDrop.emit(t)}})}traverseFileTree(t,e){if(t.isFile){const i=new qk(e,t);this.files.push(i)}else{e+="/";const i=t.createReader();let n=[];const s=()=>{this.numOfActiveReadEntries++,i.readEntries(i=>{if(i.length)n=n.concat(i),s();else if(0===n.length){const i=new qk(e,t);this.zone.run(()=>{this.addToQueue(i)})}else for(let t=0;t{this.traverseFileTree(n[t],e+n[t].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const t=this.fileSelector.nativeElement,e=t.parentElement,i=this.getHelperFormElement(),n=this.getFileInputPlaceholderElement();e!==i&&(this.renderer.insertBefore(e,n,t),this.renderer.appendChild(i,t),i.reset(),this.renderer.insertBefore(e,t,n),this.renderer.removeChild(e,n))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(t){return!!t.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(t){this.files.push(t)}preventAndStop(t){t.stopPropagation(),t.preventDefault()}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.I),s.Dc(s.P))},t.\u0275cmp=s.xc({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Kk,!0,s.Y),2&t&&s.md(n=s.Xc())&&(e.contentTemplate=n.first)},viewQuery:function(t,e){var i;1&t&&s.xd(jk,!0),2&t&&s.md(i=s.Xc())&&(e.fileSelector=i.first)},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(t,e){if(1&t&&(s.Jc(0,"div",0),s.Wc("drop",(function(t){return e.dropFiles(t)}))("dragover",(function(t){return e.onDragOver(t)}))("dragenter",(function(t){return e.onDragEnter(t)}))("dragleave",(function(t){return e.onDragLeave(t)})),s.Jc(1,"div",1),s.Jc(2,"input",2,3),s.Wc("change",(function(t){return e.uploadFiles(t)})),s.Ic(),s.zd(4,Uk,2,2,"ng-template",null,4,s.Ad),s.zd(6,Gk,0,0,"ng-template",5),s.Ic(),s.Ic()),2&t){const t=s.nd(5);s.tc("ngx-file-drop__drop-zone--over",e.isDraggingOverDropZone),s.gd("className",e.dropZoneClassName),s.pc(1),s.gd("className",e.contentClassName),s.pc(1),s.gd("accept",e.accept)("multiple",e.multiple),s.qc("directory",e.directory||void 0)("webkitdirectory",e.directory||void 0)("mozdirectory",e.directory||void 0)("msdirectory",e.directory||void 0)("odirectory",e.directory||void 0),s.pc(4),s.gd("ngTemplateOutlet",e.contentTemplate||t)("ngTemplateOutletContext",s.jd(13,Wk,e.openFileSelector))}},directives:[ve.A,ve.t],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{height:100px;margin:auto;border:2px dotted #0782d0;border-radius:30px}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:rgba(147,147,147,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100px;color:#0782d0}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),Xk([Object(s.z)(),Yk("design:type",String)],t.prototype,"accept",void 0),Xk([Object(s.z)(),Yk("design:type",Boolean)],t.prototype,"directory",void 0),Xk([Object(s.z)(),Yk("design:type",Boolean)],t.prototype,"multiple",void 0),Xk([Object(s.z)(),Yk("design:type",String)],t.prototype,"dropZoneLabel",void 0),Xk([Object(s.z)(),Yk("design:type",String)],t.prototype,"dropZoneClassName",void 0),Xk([Object(s.z)(),Yk("design:type",Boolean)],t.prototype,"useDragEnter",void 0),Xk([Object(s.z)(),Yk("design:type",String)],t.prototype,"contentClassName",void 0),Xk([Object(s.z)(),Yk("design:type",Boolean),Yk("design:paramtypes",[Boolean])],t.prototype,"disabled",null),Xk([Object(s.z)(),Yk("design:type",Boolean)],t.prototype,"showBrowseBtn",void 0),Xk([Object(s.z)(),Yk("design:type",String)],t.prototype,"browseBtnClassName",void 0),Xk([Object(s.z)(),Yk("design:type",String)],t.prototype,"browseBtnLabel",void 0),Xk([Object(s.K)(),Yk("design:type",s.u)],t.prototype,"onFileDrop",void 0),Xk([Object(s.K)(),Yk("design:type",s.u)],t.prototype,"onFileOver",void 0),Xk([Object(s.K)(),Yk("design:type",s.u)],t.prototype,"onFileLeave",void 0),Xk([Object(s.p)(Kk,{read:s.Y}),Yk("design:type",s.Y)],t.prototype,"contentTemplate",void 0),Xk([Object(s.bb)("fileSelector",{static:!0}),Yk("design:type",s.r)],t.prototype,"fileSelector",void 0),t=Xk([Yk("design:paramtypes",[s.I,s.P])],t),t})(),Qk=(()=>{let t=class{};return t.\u0275mod=s.Bc({type:t,bootstrap:function(){return[Zk]}}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[],imports:[[ve.c]]}),t})();var tC,eC,iC,nC;function sC(t,e){1&t&&(s.Jc(0,"div"),s.Jc(1,"div"),s.Hc(2),s.Nc(3,nC),s.Gc(),s.Ic(),s.Jc(4,"div",11),s.Jc(5,"button",12),s.Wc("click",(function(){return(0,e.openFileSelector)()})),s.Bd(6,"Browse Files"),s.Ic(),s.Ic(),s.Ic())}function aC(t,e){1&t&&s.Ec(0,"mat-spinner",16),2&t&&s.gd("diameter",38)}function oC(t,e){if(1&t){const t=s.Kc();s.Jc(0,"tr"),s.Jc(1,"td",13),s.Jc(2,"strong"),s.Bd(3),s.Ic(),s.Ic(),s.Jc(4,"td"),s.Jc(5,"button",14),s.Wc("click",(function(){return s.rd(t),s.ad().uploadFile()})),s.Jc(6,"mat-icon"),s.Bd(7,"publish"),s.Ic(),s.zd(8,aC,1,1,"mat-spinner",15),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad();s.pc(3),s.Cd(t.relativePath),s.pc(2),s.gd("disabled",i.uploading||i.uploaded),s.pc(3),s.gd("ngIf",i.uploading)}}tC=$localize`:Cookies uploader dialog title␟ebadf946ae90f13ecd0c70f09edbc0f983af8a0f␟3873596794856864418:Upload new cookies`,eC=$localize`:Cookies upload warning␟85e0725c870b28458fd3bbba905397d890f00a69␟8128925538914530324:NOTE: Uploading new cookies will overrride your previous cookies. Also note that cookies are instance-wide, not per-user.`,iC=$localize`:Close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,nC=$localize`:Drag and Drop␟98a8a42e5efffe17ab786636ed0139b4c7032d0e␟5214302308131956174:Drag and Drop`;let rC=(()=>{class t{constructor(t){this.postsService=t,this.files=[],this.uploading=!1,this.uploaded=!1}ngOnInit(){}dropped(t){this.files=t,this.uploading=!1,this.uploaded=!1}uploadFile(){this.uploading=!0;for(const t of this.files)t.fileEntry.isFile&&t.fileEntry.file(e=>{const i=new FormData;i.append("cookies",e,t.relativePath),this.postsService.uploadCookiesFile(i).subscribe(t=>{this.uploading=!1,t.success&&(this.uploaded=!0,this.postsService.openSnackBar("Cookies successfully uploaded!"))},t=>{this.uploading=!1})})}fileOver(t){}fileLeave(t){}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-cookies-uploader-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"center"],["accept",".txt","dropZoneLabel","Drop files here",3,"multiple","onFileDrop","onFileOver","onFileLeave"],["ngx-file-drop-content-tmp",""],[2,"margin-top","15px"],[2,"font-size","14px"],[2,"margin-top","10px"],[1,"table"],[1,"upload-name-style"],[4,"ngFor","ngForOf"],["mat-dialog-close","","mat-stroked-button","",2,"margin-bottom","5px"],[2,"margin-top","6px"],["mat-stroked-button","",3,"click"],[2,"vertical-align","middle"],["matTooltip","Upload","mat-mini-fab","",2,"float","right",3,"disabled","click"],["class","spinner",3,"diameter",4,"ngIf"],[1,"spinner",3,"diameter"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Nc(1,tC),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div"),s.Jc(4,"div",1),s.Jc(5,"ngx-file-drop",2),s.Wc("onFileDrop",(function(t){return e.dropped(t)}))("onFileOver",(function(t){return e.fileOver(t)}))("onFileLeave",(function(t){return e.fileLeave(t)})),s.zd(6,sC,7,0,"ng-template",3),s.Ic(),s.Jc(7,"div",4),s.Jc(8,"p",5),s.Nc(9,eC),s.Ic(),s.Ic(),s.Jc(10,"div",6),s.Jc(11,"table",7),s.Jc(12,"tbody",8),s.zd(13,oC,9,3,"tr",9),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(14,"mat-dialog-actions"),s.Jc(15,"button",10),s.Hc(16),s.Nc(17,iC),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.pc(5),s.gd("multiple",!1),s.pc(8),s.gd("ngForOf",e.files))},directives:[yd,wd,Zk,Kk,ve.s,xd,bs,vd,Kp,vu,ve.t,mm],styles:[".spinner[_ngcontent-%COMP%]{bottom:1px;left:.5px;position:absolute}"]}),t})();var lC,cC;function dC(t,e){1&t&&(s.Jc(0,"h6"),s.Bd(1,"Update in progress"),s.Ic())}function hC(t,e){1&t&&(s.Jc(0,"h6"),s.Bd(1,"Update failed"),s.Ic())}function uC(t,e){1&t&&(s.Jc(0,"h6"),s.Bd(1,"Update succeeded!"),s.Ic())}function pC(t,e){1&t&&s.Ec(0,"mat-progress-bar",7)}function mC(t,e){1&t&&s.Ec(0,"mat-progress-bar",8)}function gC(t,e){if(1&t&&(s.Jc(0,"p",9),s.Bd(1),s.Ic()),2&t){const t=s.ad(2);s.pc(1),s.Cd(t.updateStatus.details)}}function fC(t,e){if(1&t&&(s.Jc(0,"div"),s.Jc(1,"div",3),s.zd(2,dC,2,0,"h6",1),s.zd(3,hC,2,0,"h6",1),s.zd(4,uC,2,0,"h6",1),s.Ic(),s.zd(5,pC,1,0,"mat-progress-bar",4),s.zd(6,mC,1,0,"mat-progress-bar",5),s.zd(7,gC,2,1,"p",6),s.Ic()),2&t){const t=s.ad();s.pc(2),s.gd("ngIf",t.updateStatus.updating),s.pc(1),s.gd("ngIf",!t.updateStatus.updating&&t.updateStatus.error),s.pc(1),s.gd("ngIf",!t.updateStatus.updating&&!t.updateStatus.error),s.pc(1),s.gd("ngIf",t.updateStatus.updating),s.pc(1),s.gd("ngIf",!t.updateStatus.updating),s.pc(1),s.gd("ngIf",t.updateStatus.details)}}lC=$localize`:Update progress dialog title␟91ecce65f1d23f9419d1c953cd6b7bc7f91c110e␟7113575027620819093:Updater`,cC=$localize`:Close update progress dialog␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let bC=(()=>{class t{constructor(t,e){this.postsService=t,this.snackBar=e,this.updateStatus=null,this.updateInterval=250,this.errored=!1}ngOnInit(){this.getUpdateProgress(),setInterval(()=>{this.updateStatus.updating&&this.getUpdateProgress()},250)}getUpdateProgress(){this.postsService.getUpdaterStatus().subscribe(t=>{t&&(this.updateStatus=t,this.updateStatus&&this.updateStatus.error&&this.openSnackBar("Update failed. Check logs for more details."))})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg))},t.\u0275cmp=s.xc({type:t,selectors:[["app-update-progress-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-button","","mat-dialog-close",""],[2,"margin-bottom","8px"],["mode","indeterminate",4,"ngIf"],["mode","determinate","value","100",4,"ngIf"],["style","margin-top: 4px; font-size: 13px;",4,"ngIf"],["mode","indeterminate"],["mode","determinate","value","100"],[2,"margin-top","4px","font-size","13px"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Nc(1,lC),s.Ic(),s.Jc(2,"mat-dialog-content"),s.zd(3,fC,8,6,"div",1),s.Ic(),s.Jc(4,"mat-dialog-actions"),s.Jc(5,"button",2),s.Hc(6),s.Nc(7,cC),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.pc(3),s.gd("ngIf",e.updateStatus))},directives:[yd,wd,ve.t,xd,bs,vd,nm],styles:[""]}),t})();var _C;function vC(t,e){if(1&t&&(s.Jc(0,"mat-option",6),s.Bd(1),s.Ic()),2&t){const t=e.$implicit,i=s.ad(2);s.gd("value",t.tag_name),s.pc(1),s.Dd(" ",t.tag_name+(t===i.latestStableRelease?" - Latest Stable":"")+(t.tag_name===i.CURRENT_VERSION?" - Current Version":"")," ")}}function yC(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",3),s.Jc(1,"mat-form-field"),s.Jc(2,"mat-select",4),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().selectedVersion=e})),s.zd(3,vC,2,2,"mat-option",5),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(2),s.gd("ngModel",t.selectedVersion),s.pc(1),s.gd("ngForOf",t.availableVersionsFiltered)}}function wC(t,e){1&t&&(s.Hc(0),s.Bd(1,"Upgrade to"),s.Gc())}function xC(t,e){1&t&&(s.Hc(0),s.Bd(1,"Downgrade to"),s.Gc())}function kC(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",3),s.Jc(1,"button",7),s.Wc("click",(function(){return s.rd(t),s.ad().updateServer()})),s.Jc(2,"mat-icon"),s.Bd(3,"update"),s.Ic(),s.Bd(4,"\xa0\xa0 "),s.zd(5,wC,2,0,"ng-container",8),s.zd(6,xC,2,0,"ng-container",8),s.Bd(7),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(5),s.gd("ngIf",t.selectedVersion>t.CURRENT_VERSION),s.pc(1),s.gd("ngIf",t.selectedVersion{class t{constructor(t,e){this.postsService=t,this.dialog=e,this.availableVersions=null,this.availableVersionsFiltered=[],this.versionsShowLimit=5,this.latestStableRelease=null,this.selectedVersion=null,this.CURRENT_VERSION="v4.0"}ngOnInit(){this.getAvailableVersions()}updateServer(){this.postsService.updateServer(this.selectedVersion).subscribe(t=>{t.success&&this.openUpdateProgressDialog()})}getAvailableVersions(){this.availableVersionsFiltered=[],this.postsService.getAvailableRelease().subscribe(t=>{this.availableVersions=t;for(let e=0;e=this.versionsShowLimit)break;this.availableVersionsFiltered.push(t)}})}openUpdateProgressDialog(){this.dialog.open(bC,{minWidth:"300px",minHeight:"200px"})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(bd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-updater"]],decls:6,vars:2,consts:[[2,"display","block"],[2,"display","inline-block"],["style","display: inline-block; margin-left: 15px;",4,"ngIf"],[2,"display","inline-block","margin-left","15px"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent","mat-raised-button","",3,"click"],[4,"ngIf"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.Hc(2),s.Nc(3,_C),s.Gc(),s.Ic(),s.zd(4,yC,4,2,"div",2),s.zd(5,kC,8,3,"div",2),s.Ic()),2&t&&(s.pc(4),s.gd("ngIf",e.availableVersions),s.pc(1),s.gd("ngIf",e.selectedVersion&&e.selectedVersion!==e.CURRENT_VERSION))},directives:[ve.t,Bc,Gm,Js,qa,ve.s,rs,bs,vu],styles:[""]}),t})();var SC;SC=$localize`:Register user dialog title␟b7ff2e2b909c53abe088fe60b9f4b6ac7757247f␟1815535846517216306:Register a user`;const IC=["placeholder",$localize`:User name placeholder␟024886ca34a6f309e3e51c2ed849320592c3faaa␟5312727456282218392:User name`],DC=["placeholder",$localize`:Password placeholder␟c32ef07f8803a223a83ed17024b38e8d82292407␟1431416938026210429:Password`];var EC,OC;EC=$localize`:Register user button␟cfc2f436ec2beffb042e7511a73c89c372e86a6c␟3301086086650990787:Register`,OC=$localize`:Close button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let AC=(()=>{class t{constructor(t,e){this.postsService=t,this.dialogRef=e,this.usernameInput="",this.passwordInput=""}ngOnInit(){}createUser(){this.postsService.register(this.usernameInput,this.passwordInput).subscribe(t=>{this.dialogRef.close(t.user?t.user:{error:"Unknown error"})},t=>{this.dialogRef.close({error:t})})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(ud))},t.\u0275cmp=s.xc({type:t,selectors:[["app-add-user-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["matInput","","type","password",3,"ngModel","ngModelChange",6,"placeholder"],["color","accent","mat-raised-button","",3,"click"],["mat-dialog-close","","mat-button",""]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Nc(1,SC),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div"),s.Jc(4,"mat-form-field"),s.Jc(5,"input",1),s.Pc(6,IC),s.Wc("ngModelChange",(function(t){return e.usernameInput=t})),s.Ic(),s.Ic(),s.Ic(),s.Jc(7,"div"),s.Jc(8,"mat-form-field"),s.Jc(9,"input",2),s.Pc(10,DC),s.Wc("ngModelChange",(function(t){return e.passwordInput=t})),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(11,"mat-dialog-actions"),s.Jc(12,"button",3),s.Wc("click",(function(){return e.createUser()})),s.Hc(13),s.Nc(14,EC),s.Gc(),s.Ic(),s.Jc(15,"button",4),s.Hc(16),s.Nc(17,OC),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.pc(5),s.gd("ngModel",e.usernameInput),s.pc(4),s.gd("ngModel",e.passwordInput))},directives:[yd,wd,Bc,Ru,Rs,Js,qa,xd,bs,vd],styles:[""]}),t})();var PC,TC,RC;function MC(t,e){if(1&t&&(s.Jc(0,"h4",3),s.Hc(1),s.Nc(2,TC),s.Gc(),s.Bd(3),s.Ic()),2&t){const t=s.ad();s.pc(3),s.Dd("\xa0-\xa0",t.user.name,"")}}PC=$localize`:Close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,TC=$localize`:Manage user dialog title␟2bd201aea09e43fbfd3cd15ec0499b6755302329␟4975588549700433407:Manage user`,RC=$localize`:User UID␟29c97c8e76763bb15b6d515648fa5bd1eb0f7510␟1937680469704133878:User UID:`;const FC=["placeholder",$localize`:New password placeholder␟e70e209561583f360b1e9cefd2cbb1fe434b6229␟3588415639242079458:New password`];var NC,zC,LC,BC;function JC(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-list-item",8),s.Jc(1,"h3",9),s.Bd(2),s.Ic(),s.Jc(3,"span",9),s.Jc(4,"mat-radio-group",10),s.Wc("change",(function(i){s.rd(t);const n=e.$implicit;return s.ad(2).changeUserPermissions(i,n)}))("ngModelChange",(function(i){s.rd(t);const n=e.$implicit;return s.ad(2).permissions[n]=i})),s.Jc(5,"mat-radio-button",11),s.Hc(6),s.Nc(7,zC),s.Gc(),s.Ic(),s.Jc(8,"mat-radio-button",12),s.Hc(9),s.Nc(10,LC),s.Gc(),s.Ic(),s.Jc(11,"mat-radio-button",13),s.Hc(12),s.Nc(13,BC),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(2);s.pc(2),s.Cd(i.permissionToLabel[t]?i.permissionToLabel[t]:t),s.pc(2),s.gd("disabled","settings"===t&&i.postsService.user.uid===i.user.uid)("ngModel",i.permissions[t]),s.qc("aria-label","Give user permission for "+t)}}function VC(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-dialog-content"),s.Jc(1,"p"),s.Hc(2),s.Nc(3,RC),s.Gc(),s.Bd(4),s.Ic(),s.Jc(5,"div"),s.Jc(6,"mat-form-field",4),s.Jc(7,"input",5),s.Pc(8,FC),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().newPasswordInput=e})),s.Ic(),s.Ic(),s.Jc(9,"button",6),s.Wc("click",(function(){return s.rd(t),s.ad().setNewPassword()})),s.Hc(10),s.Nc(11,NC),s.Gc(),s.Ic(),s.Ic(),s.Jc(12,"div"),s.Jc(13,"mat-list"),s.zd(14,JC,14,4,"mat-list-item",7),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(4),s.Dd("\xa0",t.user.uid,""),s.pc(3),s.gd("ngModel",t.newPasswordInput),s.pc(2),s.gd("disabled",0===t.newPasswordInput.length),s.pc(5),s.gd("ngForOf",t.available_permissions)}}NC=$localize`:Set new password␟6498fa1b8f563988f769654a75411bb8060134b9␟4099895221156718403:Set new password`,zC=$localize`:Use default␟40da072004086c9ec00d125165da91eaade7f541␟1641415171855135728:Use default`,LC=$localize`:Yes␟4f20f2d5a6882190892e58b85f6ccbedfa737952␟2807800733729323332:Yes`,BC=$localize`:No␟3d3ae7deebc5949b0c1c78b9847886a94321d9fd␟3542042671420335679:No`;let jC=(()=>{class t{constructor(t,e){this.postsService=t,this.data=e,this.user=null,this.newPasswordInput="",this.available_permissions=null,this.permissions=null,this.permissionToLabel={filemanager:"File manager",settings:"Settings access",subscriptions:"Subscriptions",sharing:"Share files",advanced_download:"Use advanced download mode",downloads_manager:"Use downloads manager"},this.settingNewPassword=!1,this.data&&(this.user=this.data.user,this.available_permissions=this.postsService.available_permissions,this.parsePermissions())}ngOnInit(){}parsePermissions(){this.permissions={};for(let t=0;t{})}setNewPassword(){this.settingNewPassword=!0,this.postsService.changeUserPassword(this.user.uid,this.newPasswordInput).subscribe(t=>{this.newPasswordInput="",this.settingNewPassword=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(pd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-manage-user"]],decls:6,vars:2,consts:[["mat-dialog-title","",4,"ngIf"],[4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-dialog-title",""],[2,"margin-right","15px"],["matInput","","type","password",3,"ngModel","ngModelChange",6,"placeholder"],["mat-raised-button","","color","accent",3,"disabled","click"],["role","listitem",4,"ngFor","ngForOf"],["role","listitem"],["matLine",""],[3,"disabled","ngModel","change","ngModelChange"],["value","default"],["value","yes"],["value","no"]],template:function(t,e){1&t&&(s.zd(0,MC,4,1,"h4",0),s.zd(1,VC,15,4,"mat-dialog-content",1),s.Jc(2,"mat-dialog-actions"),s.Jc(3,"button",2),s.Hc(4),s.Nc(5,PC),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.gd("ngIf",e.user),s.pc(1),s.gd("ngIf",e.user))},directives:[ve.t,xd,bs,vd,yd,wd,Bc,Ru,Rs,Js,qa,Xu,ve.s,tp,Jn,km,Im],styles:[".mat-radio-button[_ngcontent-%COMP%]{margin-right:10px;margin-top:5px}"]}),t})();var $C,HC,UC,GC;function WC(t,e){if(1&t&&(s.Jc(0,"h4",3),s.Hc(1),s.Nc(2,HC),s.Gc(),s.Bd(3),s.Ic()),2&t){const t=s.ad();s.pc(3),s.Dd("\xa0-\xa0",t.role.name,"")}}function qC(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-list-item",5),s.Jc(1,"h3",6),s.Bd(2),s.Ic(),s.Jc(3,"span",6),s.Jc(4,"mat-radio-group",7),s.Wc("change",(function(i){s.rd(t);const n=e.$implicit,a=s.ad(2);return a.changeRolePermissions(i,n,a.permissions[n])}))("ngModelChange",(function(i){s.rd(t);const n=e.$implicit;return s.ad(2).permissions[n]=i})),s.Jc(5,"mat-radio-button",8),s.Hc(6),s.Nc(7,UC),s.Gc(),s.Ic(),s.Jc(8,"mat-radio-button",9),s.Hc(9),s.Nc(10,GC),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(2);s.pc(2),s.Cd(i.permissionToLabel[t]?i.permissionToLabel[t]:t),s.pc(2),s.gd("disabled","settings"===t&&"admin"===i.role.name)("ngModel",i.permissions[t]),s.qc("aria-label","Give role permission for "+t)}}function KC(t,e){if(1&t&&(s.Jc(0,"mat-dialog-content"),s.Jc(1,"mat-list"),s.zd(2,qC,11,4,"mat-list-item",4),s.Ic(),s.Ic()),2&t){const t=s.ad();s.pc(2),s.gd("ngForOf",t.available_permissions)}}$C=$localize`:Close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,HC=$localize`:Manage role dialog title␟57c6c05d8ebf4ef1180c2705033c044f655bb2c4␟6937165687043532169:Manage role`,UC=$localize`:Yes␟4f20f2d5a6882190892e58b85f6ccbedfa737952␟2807800733729323332:Yes`,GC=$localize`:No␟3d3ae7deebc5949b0c1c78b9847886a94321d9fd␟3542042671420335679:No`;let XC=(()=>{class t{constructor(t,e,i){this.postsService=t,this.dialogRef=e,this.data=i,this.role=null,this.available_permissions=null,this.permissions=null,this.permissionToLabel={filemanager:"File manager",settings:"Settings access",subscriptions:"Subscriptions",sharing:"Share files",advanced_download:"Use advanced download mode",downloads_manager:"Use downloads manager"},this.data&&(this.role=this.data.role,this.available_permissions=this.postsService.available_permissions,this.parsePermissions())}ngOnInit(){}parsePermissions(){this.permissions={};for(let t=0;t{t.success||(this.permissions[e]="yes"===this.permissions[e]?"no":"yes")},t=>{this.permissions[e]="yes"===this.permissions[e]?"no":"yes"})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(ud),s.Dc(pd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-manage-role"]],decls:6,vars:2,consts:[["mat-dialog-title","",4,"ngIf"],[4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-dialog-title",""],["role","listitem",4,"ngFor","ngForOf"],["role","listitem"],["matLine",""],[3,"disabled","ngModel","change","ngModelChange"],["value","yes"],["value","no"]],template:function(t,e){1&t&&(s.zd(0,WC,4,1,"h4",0),s.zd(1,KC,3,1,"mat-dialog-content",1),s.Jc(2,"mat-dialog-actions"),s.Jc(3,"button",2),s.Hc(4),s.Nc(5,$C),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.gd("ngIf",e.role),s.pc(1),s.gd("ngIf",e.role))},directives:[ve.t,xd,bs,vd,yd,wd,Xu,ve.s,tp,Jn,km,Js,qa,Im],styles:[".mat-radio-button[_ngcontent-%COMP%]{margin-right:10px;margin-top:5px}"]}),t})();var YC,ZC,QC,tS,eS;function iS(t,e){1&t&&(s.Jc(0,"mat-header-cell",24),s.Hc(1),s.Nc(2,QC),s.Gc(),s.Ic())}function nS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"span"),s.Jc(1,"span",26),s.Jc(2,"mat-form-field"),s.Jc(3,"input",27),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(3).constructedObject.name=e})),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(3);s.pc(3),s.gd("ngModel",t.constructedObject.name)}}function sS(t,e){if(1&t&&s.Bd(0),2&t){const t=s.ad().$implicit;s.Dd(" ",t.name," ")}}function aS(t,e){if(1&t&&(s.Jc(0,"mat-cell"),s.zd(1,nS,4,1,"span",0),s.zd(2,sS,1,1,"ng-template",null,25,s.Ad),s.Ic()),2&t){const t=e.$implicit,i=s.nd(3),n=s.ad(2);s.pc(1),s.gd("ngIf",n.editObject&&n.editObject.uid===t.uid)("ngIfElse",i)}}function oS(t,e){1&t&&(s.Jc(0,"mat-header-cell",24),s.Hc(1),s.Nc(2,tS),s.Gc(),s.Ic())}function rS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"span"),s.Jc(1,"span",26),s.Jc(2,"mat-form-field"),s.Jc(3,"mat-select",29),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(3).constructedObject.role=e})),s.Jc(4,"mat-option",30),s.Bd(5,"Admin"),s.Ic(),s.Jc(6,"mat-option",31),s.Bd(7,"User"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(3);s.pc(3),s.gd("ngModel",t.constructedObject.role)}}function lS(t,e){if(1&t&&s.Bd(0),2&t){const t=s.ad().$implicit;s.Dd(" ",t.role," ")}}function cS(t,e){if(1&t&&(s.Jc(0,"mat-cell"),s.zd(1,rS,8,1,"span",0),s.zd(2,lS,1,1,"ng-template",null,28,s.Ad),s.Ic()),2&t){const t=e.$implicit,i=s.nd(3),n=s.ad(2);s.pc(1),s.gd("ngIf",n.editObject&&n.editObject.uid===t.uid)("ngIfElse",i)}}function dS(t,e){1&t&&(s.Jc(0,"mat-header-cell",24),s.Hc(1),s.Nc(2,eS),s.Gc(),s.Ic())}function hS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"span"),s.Jc(1,"button",35),s.Wc("click",(function(){s.rd(t);const e=s.ad().$implicit;return s.ad(2).finishEditing(e.uid)})),s.Jc(2,"mat-icon"),s.Bd(3,"done"),s.Ic(),s.Ic(),s.Jc(4,"button",36),s.Wc("click",(function(){return s.rd(t),s.ad(3).disableEditMode()})),s.Jc(5,"mat-icon"),s.Bd(6,"cancel"),s.Ic(),s.Ic(),s.Ic()}}function uS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",37),s.Wc("click",(function(){s.rd(t);const e=s.ad().$implicit;return s.ad(2).enableEditMode(e.uid)})),s.Jc(1,"mat-icon"),s.Bd(2,"edit"),s.Ic(),s.Ic()}}function pS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-cell"),s.zd(1,hS,7,0,"span",0),s.zd(2,uS,3,0,"ng-template",null,32,s.Ad),s.Jc(4,"button",33),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad(2).manageUser(i.uid)})),s.Jc(5,"mat-icon"),s.Bd(6,"settings"),s.Ic(),s.Ic(),s.Jc(7,"button",34),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad(2).removeUser(i.uid)})),s.Jc(8,"mat-icon"),s.Bd(9,"delete"),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit,i=s.nd(3),n=s.ad(2);s.pc(1),s.gd("ngIf",n.editObject&&n.editObject.uid===t.uid)("ngIfElse",i),s.pc(3),s.gd("disabled",n.editObject&&n.editObject.uid===t.uid),s.pc(3),s.gd("disabled",n.editObject&&n.editObject.uid===t.uid||t.uid===n.postsService.user.uid)}}function mS(t,e){1&t&&s.Ec(0,"mat-header-row")}function gS(t,e){1&t&&s.Ec(0,"mat-row")}function fS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",38),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad(2).openModifyRole(i)})),s.Bd(1),s.Ic()}if(2&t){const t=e.$implicit;s.pc(1),s.Cd(t.name)}}function bS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"div",3),s.Jc(2,"div",4),s.Jc(3,"div",5),s.Jc(4,"div",6),s.Jc(5,"mat-form-field"),s.Jc(6,"input",7),s.Wc("keyup",(function(e){return s.rd(t),s.ad().applyFilter(e.target.value)})),s.Ic(),s.Ic(),s.Ic(),s.Jc(7,"div",8),s.Jc(8,"mat-table",9,10),s.Hc(10,11),s.zd(11,iS,3,0,"mat-header-cell",12),s.zd(12,aS,4,2,"mat-cell",13),s.Gc(),s.Hc(13,14),s.zd(14,oS,3,0,"mat-header-cell",12),s.zd(15,cS,4,2,"mat-cell",13),s.Gc(),s.Hc(16,15),s.zd(17,dS,3,0,"mat-header-cell",12),s.zd(18,pS,10,4,"mat-cell",13),s.Gc(),s.zd(19,mS,1,0,"mat-header-row",16),s.zd(20,gS,1,0,"mat-row",17),s.Ic(),s.Ec(21,"mat-paginator",18,19),s.Jc(23,"button",20),s.Wc("click",(function(){return s.rd(t),s.ad().openAddUserDialog()})),s.Hc(24),s.Nc(25,YC),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(26,"button",21),s.Hc(27),s.Nc(28,ZC),s.Gc(),s.Ic(),s.Jc(29,"mat-menu",null,22),s.zd(31,fS,2,1,"button",23),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.nd(30),e=s.ad();s.pc(8),s.gd("dataSource",e.dataSource),s.pc(11),s.gd("matHeaderRowDef",e.displayedColumns),s.pc(1),s.gd("matRowDefColumns",e.displayedColumns),s.pc(1),s.gd("length",e.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),s.pc(2),s.gd("disabled",!e.users),s.pc(3),s.gd("matMenuTriggerFor",t),s.pc(5),s.gd("ngForOf",e.roles)}}function _S(t,e){1&t&&s.Ec(0,"mat-spinner")}YC=$localize`:Add users button␟4d92a0395dd66778a931460118626c5794a3fc7a␟506553185810307410:Add Users`,ZC=$localize`:Edit role␟b0d7dd8a1b0349622d6e0c6e643e24a9ea0efa1d␟7421160648436431593:Edit Role`,QC=$localize`:Username users table header␟746f64ddd9001ac456327cd9a3d5152203a4b93c␟5277049347608663780: User name `,tS=$localize`:Role users table header␟52c1447c1ec9570a2a3025c7e566557b8d19ed92␟2803298218425845065: Role `,eS=$localize`:Actions users table header␟59a8c38db3091a63ac1cb9590188dc3a972acfb3␟4360239040231802726: Actions `;let vS=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.dialog=i,this.dialogRef=n,this.displayedColumns=["name","role","actions"],this.dataSource=new j_,this.deleteDialogContentSubstring="Are you sure you want delete user ",this.length=100,this.pageSize=5,this.pageSizeOptions=[5,10,25,100],this.editObject=null,this.constructedObject={},this.roles=null}ngOnInit(){this.getArray(),this.getRoles()}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}afterGetData(){this.dataSource.sort=this.sort}setPageSizeOptions(t){this.pageSizeOptions=t.split(",").map(t=>+t)}applyFilter(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t}getArray(){this.postsService.getUsers().subscribe(t=>{this.users=t.users,this.createAndSortData(),this.afterGetData()})}getRoles(){this.postsService.getRoles().subscribe(t=>{this.roles=[];const e=t.roles,i=Object.keys(e);for(let n=0;n{t&&!t.error?(this.openSnackBar("Successfully added user "+t.name),this.getArray()):t&&t.error&&this.openSnackBar("Failed to add user")})}finishEditing(t){let e=!1;if(this.constructedObject&&this.constructedObject.name&&this.constructedObject.role&&!yS(this.constructedObject.name)&&!yS(this.constructedObject.role)){e=!0;const i=this.indexOfUser(t);this.users[i]=this.constructedObject,this.constructedObject={},this.editObject=null,this.setUser(this.users[i]),this.createAndSortData()}}enableEditMode(t){if(this.uidInUserList(t)&&this.indexOfUser(t)>-1){const e=this.indexOfUser(t);this.editObject=this.users[e],this.constructedObject.name=this.users[e].name,this.constructedObject.uid=this.users[e].uid,this.constructedObject.role=this.users[e].role}}disableEditMode(){this.editObject=null}uidInUserList(t){for(let e=0;e{this.getArray()})}manageUser(t){const e=this.indexOfUser(t);this.dialog.open(jC,{data:{user:this.users[e]},width:"65vw"})}removeUser(t){this.postsService.deleteUser(t).subscribe(t=>{this.getArray()},t=>{this.getArray()})}createAndSortData(){this.users.sort((t,e)=>e.name>t.name);const t=[];for(let e=0;e{this.getRoles()})}closeDialog(){this.dialogRef.close()}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg),s.Dc(bd),s.Dc(ud))},t.\u0275cmp=s.xc({type:t,selectors:[["app-modify-users"]],viewQuery:function(t,e){var i;1&t&&(s.Fd(rb,!0),s.Fd(mb,!0)),2&t&&(s.md(i=s.Xc())&&(e.paginator=i.first),s.md(i=s.Xc())&&(e.sort=i.first))},inputs:{pageSize:"pageSize"},decls:4,vars:2,consts:[[4,"ngIf","ngIfElse"],[1,"centered",2,"position","absolute"],["loading",""],[2,"padding","15px"],[1,"row"],[1,"table","table-responsive","px-5","pb-4","pt-2"],[1,"example-header"],["matInput","","placeholder","Search",3,"keyup"],[1,"example-container","mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","role"],["matColumnDef","actions"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],["paginator",""],["color","primary","mat-raised-button","",2,"float","left","top","-45px","left","15px",3,"disabled","click"],["color","primary","mat-raised-button","",1,"edit-role",3,"matMenuTriggerFor"],["edit_roles_menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-sort-header",""],["noteditingname",""],[2,"width","80%"],["matInput","","type","text",2,"font-size","12px",3,"ngModel","ngModelChange"],["noteditingemail",""],[3,"ngModel","ngModelChange"],["value","admin"],["value","user"],["notediting",""],["mat-icon-button","","matTooltip","Manage user",3,"disabled","click"],["mat-icon-button","","matTooltip","Delete user",3,"disabled","click"],["mat-icon-button","","color","primary","matTooltip","Finish editing user",3,"click"],["mat-icon-button","","matTooltip","Cancel editing user",3,"click"],["mat-icon-button","","matTooltip","Edit user",3,"click"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(s.zd(0,bS,32,9,"div",0),s.Jc(1,"div",1),s.zd(2,_S,1,0,"ng-template",null,2,s.Ad),s.Ic()),2&t){const t=s.nd(3);s.gd("ngIf",e.dataSource)("ngIfElse",t)}},directives:[ve.t,Bc,Ru,m_,mb,x_,__,f_,D_,P_,rb,bs,Ep,Cp,ve.s,C_,xb,I_,Rs,Js,qa,Gm,rs,Kp,vu,R_,z_,_p,mm],styles:[".edit-role[_ngcontent-%COMP%]{position:relative;top:-50px;left:35px}"]}),t})();function yS(t){return null===t||null!==t.match(/^ *$/)}const wS=["placeholder",$localize`:Logs placeholder␟fd59fb984749fcdb5e386ae85faec82f8e5ac098␟3745032841365555599:Logs will appear here`];let xS=(()=>{class t{constructor(t){this.postsService=t,this.logs=null}ngOnInit(){this.getLogs()}getLogs(){this.postsService.getLogs().subscribe(t=>{t.logs?this.logs=t.logs:this.postsService.openSnackBar("Failed to retrieve logs!")},t=>{console.error(t),this.postsService.openSnackBar("Failed to retrieve logs!")})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-logs-viewer"]],decls:3,vars:1,consts:[[2,"height","100%"],["matInput","","readonly","",2,"height","100%",3,"ngModel","ngModelChange",6,"placeholder"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Jc(1,"textarea",1),s.Pc(2,wS),s.Wc("ngModelChange",(function(t){return e.logs=t})),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.gd("ngModel",e.logs))},directives:[Ru,Rs,Js,qa],styles:[""]}),t})();var kS;kS=$localize`:Settings title␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`;const CS=["label",$localize`:Main settings label␟82421c3e46a0453a70c42900eab51d58d79e6599␟3815928829326879804:Main`],SS=["label",$localize`:Downloader settings label␟0ba25ad86a240576c4f20a2fada4722ebba77b1e␟5385813889746830226:Downloader`],IS=["label",$localize`:Extra settings label␟d5f69691f9f05711633128b5a3db696783266b58␟7419412790104674886:Extra`],DS=["label",$localize`:Host settings label␟bc2e854e111ecf2bd7db170da5e3c2ed08181d88␟6201638315245239510:Advanced`];var ES,OS;ES=$localize`:Settings save button␟52c9a103b812f258bcddc3d90a6e3f46871d25fe␟3768927257183755959:Save`,OS=$localize`:Settings cancel and close button␟fe8fd36dbf5deee1d56564965787a782a66eba44␟1370226763724525124:{VAR_SELECT, select, true {Close} false {Cancel} other {otha}}`,OS=s.Rc(OS,{VAR_SELECT:"\ufffd0\ufffd"});const AS=["placeholder",$localize`:URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var PS;PS=$localize`:URL setting input hint␟54c512cca1923ab72faf1a0bd98d3d172469629a␟5463756323010996100:URL this app will be accessed from, without the port.`;const TS=["placeholder",$localize`:Port input placeholder␟cb2741a46e3560f6bc6dfd99d385e86b08b26d72␟6117946241126833991:Port`];var RS,MS;function FS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-form-field",13),s.Jc(4,"input",14),s.Pc(5,AS),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Host.url=e})),s.Ic(),s.Jc(6,"mat-hint"),s.Hc(7),s.Nc(8,PS),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(9,"div",15),s.Jc(10,"mat-form-field",13),s.Jc(11,"input",14),s.Pc(12,TS),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Host.port=e})),s.Ic(),s.Jc(13,"mat-hint"),s.Hc(14),s.Nc(15,RS),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(4),s.gd("ngModel",t.new_config.Host.url),s.pc(7),s.gd("ngModel",t.new_config.Host.port)}}RS=$localize`:Port setting input hint␟22e8f1d0423a3b784fe40fab187b92c06541b577␟12816402920404434:The desired port. Default is 17442.`,MS=$localize`:Multi user mode setting␟d4477669a560750d2064051a510ef4d7679e2f3e␟8189972369495207275:Multi-user mode`;const NS=["placeholder",$localize`:Users base path placeholder␟2eb03565fcdce7a7a67abc277a936a32fcf51557␟553126943997197705:Users base path`];var zS,LS;function BS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Advanced.multi_user_mode=e})),s.Hc(4),s.Nc(5,MS),s.Gc(),s.Ic(),s.Ic(),s.Jc(6,"div",17),s.Jc(7,"mat-form-field",18),s.Jc(8,"input",19),s.Pc(9,NS),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Users.base_path=e})),s.Ic(),s.Jc(10,"mat-hint"),s.Hc(11),s.Nc(12,zS),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.Advanced.multi_user_mode),s.pc(5),s.gd("disabled",!t.new_config.Advanced.multi_user_mode)("ngModel",t.new_config.Users.base_path)}}zS=$localize`:Users base path hint␟a64505c41150663968e277ec9b3ddaa5f4838798␟7466856953916038997:Base path for users and their downloaded videos.`,LS=$localize`:Use encryption setting␟cbe16a57be414e84b6a68309d08fad894df797d6␟5503616660881623306:Use encryption`;const JS=["placeholder",$localize`:Cert file path input placeholder␟0c1875a79b7ecc792cc1bebca3e063e40b5764f9␟2857997144709025078:Cert file path`],VS=["placeholder",$localize`:Key file path input placeholder␟736551b93461d2de64b118cf4043eee1d1c2cb2c␟2320113463068090884:Key file path`];function jS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Encryption["use-encryption"]=e})),s.Hc(4),s.Nc(5,LS),s.Gc(),s.Ic(),s.Ic(),s.Jc(6,"div",20),s.Jc(7,"mat-form-field",13),s.Jc(8,"input",21),s.Pc(9,JS),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Encryption["cert-file-path"]=e})),s.Ic(),s.Ic(),s.Ic(),s.Jc(10,"div",20),s.Jc(11,"mat-form-field",13),s.Jc(12,"input",21),s.Pc(13,VS),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Encryption["key-file-path"]=e})),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.Encryption["use-encryption"]),s.pc(5),s.gd("disabled",!t.new_config.Encryption["use-encryption"])("ngModel",t.new_config.Encryption["cert-file-path"]),s.pc(4),s.gd("disabled",!t.new_config.Encryption["use-encryption"])("ngModel",t.new_config.Encryption["key-file-path"])}}var $S;$S=$localize`:Allow subscriptions setting␟4e3120311801c4acd18de7146add2ee4a4417773␟5800596718492516574:Allow subscriptions`;const HS=["placeholder",$localize`:Subscriptions base path input setting placeholder␟4bee2a4bef2d26d37c9b353c278e24e5cd309ce3␟6919010605968316948:Subscriptions base path`];var US;US=$localize`:Subscriptions base path setting input hint␟bc9892814ee2d119ae94378c905ea440a249b84a␟2622759576830659218:Base path for videos from your subscribed channels and playlists. It is relative to YTDL-Material's root folder.`;const GS=["placeholder",$localize`:Check interval input setting placeholder␟5bef4b25ba680da7fff06b86a91b1fc7e6a926e3␟5349606203941321178:Check interval`];var WS,qS,KS,XS,YS,ZS,QS,tI,eI,iI;function nI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Subscriptions.allow_subscriptions=e})),s.Hc(4),s.Nc(5,$S),s.Gc(),s.Ic(),s.Ic(),s.Jc(6,"div",20),s.Jc(7,"mat-form-field",13),s.Jc(8,"input",21),s.Pc(9,HS),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Subscriptions.subscriptions_base_path=e})),s.Ic(),s.Jc(10,"mat-hint"),s.Hc(11),s.Nc(12,US),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(13,"div",22),s.Jc(14,"mat-form-field",13),s.Jc(15,"input",21),s.Pc(16,GS),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Subscriptions.subscriptions_check_interval=e})),s.Ic(),s.Jc(17,"mat-hint"),s.Hc(18),s.Nc(19,WS),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(20,"div",23),s.Jc(21,"mat-checkbox",24),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Subscriptions.subscriptions_use_youtubedl_archive=e})),s.Hc(22),s.Nc(23,qS),s.Gc(),s.Ic(),s.Jc(24,"p"),s.Jc(25,"a",25),s.Hc(26),s.Nc(27,KS),s.Gc(),s.Ic(),s.Bd(28,"\xa0"),s.Hc(29),s.Nc(30,XS),s.Gc(),s.Ic(),s.Jc(31,"p"),s.Hc(32),s.Nc(33,YS),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.Subscriptions.allow_subscriptions),s.pc(5),s.gd("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_base_path),s.pc(7),s.gd("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_check_interval),s.pc(6),s.gd("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_use_youtubedl_archive)}}function sI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-form-field"),s.Jc(4,"mat-label"),s.Hc(5),s.Nc(6,ZS),s.Gc(),s.Ic(),s.Jc(7,"mat-select",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Themes.default_theme=e})),s.Jc(8,"mat-option",26),s.Hc(9),s.Nc(10,QS),s.Gc(),s.Ic(),s.Jc(11,"mat-option",27),s.Hc(12),s.Nc(13,tI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(14,"div",28),s.Jc(15,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Themes.allow_theme_change=e})),s.Hc(16),s.Nc(17,eI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(7),s.gd("ngModel",t.new_config.Themes.default_theme),s.pc(8),s.gd("ngModel",t.new_config.Themes.allow_theme_change)}}function aI(t,e){if(1&t&&(s.Jc(0,"mat-option",32),s.Bd(1),s.Ic()),2&t){const t=e.$implicit,i=s.ad(3);s.gd("value",t),s.pc(1),s.Dd(" ",i.all_locales[t].nativeName," ")}}function oI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-form-field",29),s.Jc(4,"mat-label"),s.Hc(5),s.Nc(6,iI),s.Gc(),s.Ic(),s.Jc(7,"mat-select",30),s.Wc("selectionChange",(function(e){return s.rd(t),s.ad(2).localeSelectChanged(e.value)}))("valueChange",(function(e){return s.rd(t),s.ad(2).initialLocale=e})),s.zd(8,aI,2,2,"mat-option",31),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(7),s.gd("value",t.initialLocale),s.pc(1),s.gd("ngForOf",t.supported_locales)}}function rI(t,e){if(1&t&&(s.zd(0,FS,16,2,"div",9),s.Ec(1,"mat-divider"),s.zd(2,BS,13,3,"div",9),s.Ec(3,"mat-divider"),s.zd(4,jS,14,5,"div",9),s.Ec(5,"mat-divider"),s.zd(6,nI,34,7,"div",9),s.Ec(7,"mat-divider"),s.zd(8,sI,18,2,"div",9),s.Ec(9,"mat-divider"),s.zd(10,oI,9,2,"div",9)),2&t){const t=s.ad();s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config)}}WS=$localize`:Check interval setting input hint␟0f56a7449b77630c114615395bbda4cab398efd8␟1580663059483543498:Unit is seconds, only include numbers.`,qS=$localize`:Use youtube-dl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`,KS=$localize`:youtube-dl archive explanation prefix link␟fa9fe4255231dd1cc6b29d3d254a25cb7c764f0f␟6707903974690925048:With youtube-dl's archive`,XS=$localize`:youtube-dl archive explanation middle␟09006404cccc24b7a8f8d1ce0b39f2761ab841d8␟954972440308853962:feature, downloaded videos from your subscriptions get recorded in a text file in the subscriptions archive sub-directory.`,YS=$localize`:youtube-dl archive explanation suffix␟29ed79a98fc01e7f9537777598e31dbde3aa7981␟6686872891691588730:This enables the ability to permanently delete videos from your subscriptions without unsubscribing, and allows you to record which videos you downloaded in case of data loss.`,ZS=$localize`:Theme select label␟27a56aad79d8b61269ed303f11664cc78bcc2522␟7103588127254721505:Theme`,QS=$localize`:Default theme label␟ff7cee38a2259526c519f878e71b964f41db4348␟5607669932062416162:Default`,tI=$localize`:Dark theme label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`,eI=$localize`:Allow theme change setting␟7a6bacee4c31cb5c0ac2d24274fb4610d8858602␟8325128210832071900:Allow theme change`,iI=$localize`:Language select label␟fe46ccaae902ce974e2441abe752399288298619␟2826581353496868063:Language`;const lI=["placeholder",$localize`:Audio folder path input placeholder␟ab2756805742e84ad0cc0468f4be2d8aa9f855a5␟3475061775640312711:Audio folder path`];var cI;cI=$localize`:Aduio path setting input hint␟c2c89cdf45d46ea64d2ed2f9ac15dfa4d77e26ca␟3848357852843054025:Path for audio only downloads. It is relative to YTDL-Material's root folder.`;const dI=["placeholder",$localize`:Video folder path input placeholder␟46826331da1949bd6fb74624447057099c9d20cd␟3354965786971797948:Video folder path`];var hI;hI=$localize`:Video path setting input hint␟17c92e6d47a213fa95b5aa344b3f258147123f93␟2955739827391836971:Path for video downloads. It is relative to YTDL-Material's root folder.`;const uI=["placeholder",$localize`:Custom args input placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var pI,mI,gI;function fI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-form-field",13),s.Jc(4,"input",14),s.Pc(5,lI),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Downloader["path-audio"]=e})),s.Ic(),s.Jc(6,"mat-hint"),s.Hc(7),s.Nc(8,cI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(9,"div",22),s.Jc(10,"mat-form-field",13),s.Jc(11,"input",14),s.Pc(12,dI),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Downloader["path-video"]=e})),s.Ic(),s.Jc(13,"mat-hint"),s.Hc(14),s.Nc(15,hI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(16,"div",22),s.Jc(17,"mat-form-field",33),s.Jc(18,"textarea",34),s.Pc(19,uI),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Downloader.custom_args=e})),s.Ic(),s.Jc(20,"mat-hint"),s.Hc(21),s.Nc(22,pI),s.Gc(),s.Ic(),s.Jc(23,"button",35),s.Wc("click",(function(){return s.rd(t),s.ad(2).openArgsModifierDialog()})),s.Jc(24,"mat-icon"),s.Bd(25,"edit"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(26,"div",23),s.Jc(27,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Downloader.use_youtubedl_archive=e})),s.Hc(28),s.Nc(29,mI),s.Gc(),s.Ic(),s.Jc(30,"p"),s.Bd(31,"Note: This setting only applies to downloads on the Home page. If you would like to use youtube-dl archive functionality in subscriptions, head down to the Subscriptions section."),s.Ic(),s.Ic(),s.Jc(32,"div",12),s.Jc(33,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Downloader.safe_download_override=e})),s.Hc(34),s.Nc(35,gI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(4),s.gd("ngModel",t.new_config.Downloader["path-audio"]),s.pc(7),s.gd("ngModel",t.new_config.Downloader["path-video"]),s.pc(7),s.gd("ngModel",t.new_config.Downloader.custom_args),s.pc(9),s.gd("ngModel",t.new_config.Downloader.use_youtubedl_archive),s.pc(6),s.gd("ngModel",t.new_config.Downloader.safe_download_override)}}function bI(t,e){if(1&t&&s.zd(0,fI,36,5,"div",9),2&t){const t=s.ad();s.gd("ngIf",t.new_config)}}pI=$localize`:Custom args setting input hint␟6b995e7130b4d667eaab6c5f61b362ace486d26d␟5003828392179181130:Global custom args for downloads on the home page. Args are delimited using two commas like so: ,,`,mI=$localize`:Use youtubedl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`,gI=$localize`:Safe download override setting␟d01715b75228878a773ae6d059acc639d4898a03␟8028244888189462244:Safe download override`;const _I=["placeholder",$localize`:Top title input placeholder␟61f8fd90b5f8cb20c70371feb2ee5e1fac5a9095␟1974727764328838461:Top title`];var vI,yI,wI,xI,kI,CI,SI,II;function DI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-form-field",13),s.Jc(4,"input",14),s.Pc(5,_I),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.title_top=e})),s.Ic(),s.Ec(6,"mat-hint"),s.Ic(),s.Ic(),s.Jc(7,"div",20),s.Jc(8,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.file_manager_enabled=e})),s.Hc(9),s.Nc(10,vI),s.Gc(),s.Ic(),s.Ic(),s.Jc(11,"div",20),s.Jc(12,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.enable_downloads_manager=e})),s.Hc(13),s.Nc(14,yI),s.Gc(),s.Ic(),s.Ic(),s.Jc(15,"div",20),s.Jc(16,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.allow_quality_select=e})),s.Hc(17),s.Nc(18,wI),s.Gc(),s.Ic(),s.Ic(),s.Jc(19,"div",20),s.Jc(20,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.download_only_mode=e})),s.Hc(21),s.Nc(22,xI),s.Gc(),s.Ic(),s.Ic(),s.Jc(23,"div",20),s.Jc(24,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.allow_multi_download_mode=e})),s.Hc(25),s.Nc(26,kI),s.Gc(),s.Ic(),s.Ic(),s.Jc(27,"div",20),s.Jc(28,"mat-checkbox",24),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.settings_pin_required=e})),s.Hc(29),s.Nc(30,CI),s.Gc(),s.Ic(),s.Jc(31,"button",36),s.Wc("click",(function(){return s.rd(t),s.ad(2).setNewPin()})),s.Hc(32),s.Nc(33,SI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(4),s.gd("ngModel",t.new_config.Extra.title_top),s.pc(4),s.gd("ngModel",t.new_config.Extra.file_manager_enabled),s.pc(4),s.gd("ngModel",t.new_config.Extra.enable_downloads_manager),s.pc(4),s.gd("ngModel",t.new_config.Extra.allow_quality_select),s.pc(4),s.gd("ngModel",t.new_config.Extra.download_only_mode),s.pc(4),s.gd("ngModel",t.new_config.Extra.allow_multi_download_mode),s.pc(4),s.gd("disabled",t.new_config.Advanced.multi_user_mode)("ngModel",t.new_config.Extra.settings_pin_required),s.pc(3),s.gd("disabled",!t.new_config.Extra.settings_pin_required)}}vI=$localize`:File manager enabled setting␟78d3531417c0d4ba4c90f0d4ae741edc261ec8df␟488432415925701010:File manager enabled`,yI=$localize`:Downloads manager enabled setting␟a5a1be0a5df07de9eec57f5d2a86ed0204b2e75a␟316726944811110918:Downloads manager enabled`,wI=$localize`:Allow quality seelct setting␟c33bd5392b39dbed36b8e5a1145163a15d45835f␟2252491142626131446:Allow quality select`,xI=$localize`:Download only mode setting␟bda5508e24e0d77debb28bcd9194d8fefb1cfb92␟2765258699599899343:Download only mode`,kI=$localize`:Allow multi-download mode setting␟09d31c803a7252658694e1e3176b97f5655a3fe3␟1457782201611151239:Allow multi-download mode`,CI=$localize`:Require pin for settings setting␟d8b47221b5af9e9e4cd5cb434d76fc0c91611409␟8888472341408176239:Require pin for settings`,SI=$localize`:Set new pin button␟f5ec7b2cdf87d41154f4fcbc86e856314409dcb9␟5079149426228636902:Set New Pin`,II=$localize`:Enable Public API key setting␟1c4dbce56d96b8974aac24a02f7ab2ee81415014␟1129973800849533636:Enable Public API`;const EI=["placeholder",$localize`:Public API Key setting placeholder␟23bd81dcc30b74d06279a26d7a42e8901c1b124e␟5137591319364175431:Public API Key`];var OI,AI,PI;function TI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.API.use_API_key=e})),s.Hc(4),s.Nc(5,II),s.Gc(),s.Ic(),s.Ic(),s.Jc(6,"div",37),s.Jc(7,"div",38),s.Jc(8,"mat-form-field",13),s.Jc(9,"input",19),s.Pc(10,EI),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.API.API_key=e})),s.Ic(),s.Jc(11,"mat-hint"),s.Jc(12,"a",39),s.Hc(13),s.Nc(14,OI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(15,"div",40),s.Jc(16,"button",41),s.Wc("click",(function(){return s.rd(t),s.ad(2).generateAPIKey()})),s.Hc(17),s.Nc(18,AI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.API.use_API_key),s.pc(6),s.gd("disabled",!t.new_config.API.use_API_key)("ngModel",t.new_config.API.API_key)}}OI=$localize`:View API docs setting hint␟41016a73d8ad85e6cb26dffa0a8fab9fe8f60d8e␟7819423665857999846:View documentation`,AI=$localize`:Generate key button␟1b258b258b4cc475ceb2871305b61756b0134f4a␟5193539160604294602:Generate`,PI=$localize`:Use YouTube API setting␟d5d7c61349f3b0859336066e6d453fc35d334fe5␟921806454742404419:Use YouTube API`;const RI=["placeholder",$localize`:Youtube API Key setting placeholder␟ce10d31febb3d9d60c160750570310f303a22c22␟8352766560503075759:Youtube API Key`];var MI,FI,NI,zI,LI,BI,JI,VI,jI,$I,HI,UI,GI,WI,qI,KI;function XI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.API.use_youtube_API=e})),s.Hc(4),s.Nc(5,PI),s.Gc(),s.Ic(),s.Ic(),s.Jc(6,"div",37),s.Jc(7,"mat-form-field",13),s.Jc(8,"input",19),s.Pc(9,RI),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.API.youtube_API_key=e})),s.Ic(),s.Jc(10,"mat-hint"),s.Jc(11,"a",42),s.Hc(12),s.Nc(13,MI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.API.use_youtube_API),s.pc(5),s.gd("disabled",!t.new_config.API.use_youtube_API)("ngModel",t.new_config.API.youtube_API_key)}}function YI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"h6"),s.Bd(4,"Chrome"),s.Ic(),s.Jc(5,"p"),s.Jc(6,"a",43),s.Hc(7),s.Nc(8,FI),s.Gc(),s.Ic(),s.Bd(9,"\xa0"),s.Hc(10),s.Nc(11,NI),s.Gc(),s.Ic(),s.Jc(12,"p"),s.Hc(13),s.Nc(14,zI),s.Gc(),s.Ic(),s.Ec(15,"mat-divider",44),s.Ic(),s.Jc(16,"div",20),s.Jc(17,"h6"),s.Bd(18,"Firefox"),s.Ic(),s.Jc(19,"p"),s.Jc(20,"a",45),s.Hc(21),s.Nc(22,LI),s.Gc(),s.Ic(),s.Bd(23,"\xa0"),s.Hc(24),s.Nc(25,BI),s.Gc(),s.Ic(),s.Jc(26,"p"),s.Jc(27,"a",46),s.Hc(28),s.Nc(29,JI),s.Gc(),s.Ic(),s.Bd(30,"\xa0"),s.Hc(31),s.Nc(32,VI),s.Gc(),s.Ic(),s.Ec(33,"mat-divider",44),s.Ic(),s.Jc(34,"div",20),s.Jc(35,"h6"),s.Bd(36,"Bookmarklet"),s.Ic(),s.Jc(37,"p"),s.Hc(38),s.Nc(39,jI),s.Gc(),s.Ic(),s.Jc(40,"mat-checkbox",47),s.Wc("change",(function(e){return s.rd(t),s.ad(2).bookmarkletAudioOnlyChanged(e)})),s.Hc(41),s.Nc(42,$I),s.Gc(),s.Ic(),s.Jc(43,"p"),s.Jc(44,"a",48),s.Bd(45,"YTDL-Bookmarklet"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(44),s.gd("href",t.generated_bookmarklet_code,s.td)}}function ZI(t,e){if(1&t&&(s.zd(0,DI,34,9,"div",9),s.Ec(1,"mat-divider"),s.zd(2,TI,19,3,"div",9),s.Ec(3,"mat-divider"),s.zd(4,XI,14,3,"div",9),s.Ec(5,"mat-divider"),s.zd(6,YI,46,1,"div",9)),2&t){const t=s.ad();s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config)}}function QI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Advanced.use_default_downloading_agent=e})),s.Hc(4),s.Nc(5,HI),s.Gc(),s.Ic(),s.Ic(),s.Jc(6,"div",20),s.Jc(7,"mat-form-field"),s.Jc(8,"mat-label"),s.Hc(9),s.Nc(10,UI),s.Gc(),s.Ic(),s.Jc(11,"mat-select",24),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Advanced.custom_downloading_agent=e})),s.Jc(12,"mat-option",50),s.Bd(13,"aria2c"),s.Ic(),s.Jc(14,"mat-option",51),s.Bd(15,"avconv"),s.Ic(),s.Jc(16,"mat-option",52),s.Bd(17,"axel"),s.Ic(),s.Jc(18,"mat-option",53),s.Bd(19,"curl"),s.Ic(),s.Jc(20,"mat-option",54),s.Bd(21,"ffmpeg"),s.Ic(),s.Jc(22,"mat-option",55),s.Bd(23,"httpie"),s.Ic(),s.Jc(24,"mat-option",56),s.Bd(25,"wget"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(26,"div",57),s.Jc(27,"mat-form-field"),s.Jc(28,"mat-label"),s.Hc(29),s.Nc(30,GI),s.Gc(),s.Ic(),s.Jc(31,"mat-select",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Advanced.logger_level=e})),s.Jc(32,"mat-option",58),s.Bd(33,"Debug"),s.Ic(),s.Jc(34,"mat-option",59),s.Bd(35,"Verbose"),s.Ic(),s.Jc(36,"mat-option",60),s.Bd(37,"Info"),s.Ic(),s.Jc(38,"mat-option",61),s.Bd(39,"Warn"),s.Ic(),s.Jc(40,"mat-option",62),s.Bd(41,"Error"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(42,"div",20),s.Jc(43,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Advanced.allow_advanced_download=e})),s.Hc(44),s.Nc(45,WI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.Advanced.use_default_downloading_agent),s.pc(8),s.gd("disabled",t.new_config.Advanced.use_default_downloading_agent)("ngModel",t.new_config.Advanced.custom_downloading_agent),s.pc(20),s.gd("ngModel",t.new_config.Advanced.logger_level),s.pc(12),s.gd("ngModel",t.new_config.Advanced.allow_advanced_download)}}function tD(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",23),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Advanced.use_cookies=e})),s.Hc(4),s.Nc(5,qI),s.Gc(),s.Ic(),s.Jc(6,"button",63),s.Wc("click",(function(){return s.rd(t),s.ad(2).openCookiesUploaderDialog()})),s.Hc(7),s.Nc(8,KI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.Advanced.use_cookies)}}function eD(t,e){1&t&&(s.Jc(0,"div",64),s.Ec(1,"app-updater"),s.Ic())}function iD(t,e){if(1&t&&(s.zd(0,QI,46,5,"div",9),s.Ec(1,"mat-divider"),s.zd(2,tD,9,1,"div",9),s.Ec(3,"mat-divider"),s.zd(4,eD,2,0,"div",49)),2&t){const t=s.ad();s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config)}}MI=$localize`:Youtube API Key setting hint␟8602e313cdfa7c4cc475ccbe86459fce3c3fd986␟3231872778665115286:Generating a key is easy!`,FI=$localize`:Chrome ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,NI=$localize`:Chrome click here suffix␟7f09776373995003161235c0c8d02b7f91dbc4df␟2498765655243362925:to download the official YoutubeDL-Material Chrome extension manually.`,zI=$localize`:Chrome setup suffix␟5b5296423906ab3371fdb2b5a5aaa83acaa2ee52␟8028660067162629884:You must manually load the extension and modify the extension's settings to set the frontend URL.`,LI=$localize`:Firefox ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,BI=$localize`:Firefox click here suffix␟9a2ec6da48771128384887525bdcac992632c863␟8910153976238540666:to install the official YoutubeDL-Material Firefox extension right off the Firefox extensions page.`,JI=$localize`:Firefox setup prefix link␟eb81be6b49e195e5307811d1d08a19259d411f37␟3930152199106610543:Detailed setup instructions.`,VI=$localize`:Firefox setup suffix␟cb17ff8fe3961cf90f44bee97c88a3f3347a7e55␟5226296152980000564:Not much is required other than changing the extension's settings to set the frontend URL.`,jI=$localize`:Bookmarklet instructions␟61b81b11aad0b9d970ece2fce18405f07eac69c2␟907045314542317789:Drag the link below to your bookmarks, and you're good to go! Just navigate to the YouTube video you'd like to download, and click the bookmark.`,$I=$localize`:Generate audio only bookmarklet checkbox␟c505d6c5de63cc700f0aaf8a4b31fae9e18024e5␟7868265792526063076:Generate 'audio only' bookmarklet`,HI=$localize`:Use default downloading agent setting␟5fab47f146b0a4b809dcebf3db9da94df6299ea1␟1862425442411516950:Use default downloading agent`,UI=$localize`:Custom downloader select label␟ec71e08aee647ea4a71fd6b7510c54d84a797ca6␟13573305706839101:Select a downloader`,GI=$localize`:Logger level select label␟00e274c496b094a019f0679c3fab3945793f3335␟6118371693924897057:Select a logger level`,WI=$localize`:Allow advanced downloading setting␟dc3d990391c944d1fbfc7cfb402f7b5e112fb3a8␟4097058672287489906:Allow advanced download`,qI=$localize`:Use cookies setting␟431e5f3a0dde88768d1074baedd65266412b3f02␟7284221456145715230:Use Cookies`,KI=$localize`:Set cookies button␟80651a7ad1229ea6613557d3559f702cfa5aecf5␟7799461682551341531:Set Cookies`;const nD=["label",$localize`:Users settings label␟4d13a9cd5ed3dcee0eab22cb25198d43886942be␟4555457172864212828:Users`];var sD;function aD(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-tab",1),s.Pc(1,nD),s.Jc(2,"div",65),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().new_config.Users.allow_registration=e})),s.Hc(4),s.Nc(5,sD),s.Gc(),s.Ic(),s.Ic(),s.Ec(6,"app-modify-users"),s.Ic()}if(2&t){const t=s.ad();s.pc(3),s.gd("ngModel",t.new_config.Users.allow_registration)}}sD=$localize`:Allow registration setting␟37224420db54d4bc7696f157b779a7225f03ca9d␟7605921570763703610:Allow user registration`;const oD=["label",$localize`:Logs settings label␟eb3d5aefff38a814b76da74371cbf02c0789a1ef␟4804785061014590286:Logs`];function rD(t,e){1&t&&(s.Jc(0,"div",66),s.Ec(1,"app-logs-viewer"),s.Ic())}function lD(t,e){1&t&&(s.Jc(0,"mat-tab",1),s.Pc(1,oD),s.zd(2,rD,2,0,"ng-template",3),s.Ic())}let cD=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.sanitizer=i,this.dialog=n,this.all_locales=ik,this.supported_locales=["en","es","de"],this.initialLocale=localStorage.getItem("locale"),this.initial_config=null,this.new_config=null,this.loading_config=!1,this.generated_bookmarklet_code=null,this.bookmarkletAudioOnly=!1,this._settingsSame=!0,this.latestGithubRelease=null,this.CURRENT_VERSION="v4.0"}get settingsAreTheSame(){return this._settingsSame=this.settingsSame(),this._settingsSame}set settingsAreTheSame(t){this._settingsSame=t}ngOnInit(){this.getConfig(),this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode()),this.getLatestGithubRelease()}getConfig(){this.initial_config=this.postsService.config,this.new_config=JSON.parse(JSON.stringify(this.initial_config))}settingsSame(){return JSON.stringify(this.new_config)===JSON.stringify(this.initial_config)}saveSettings(){this.postsService.setConfig({YoutubeDLMaterial:this.new_config}).subscribe(t=>{t.success&&(!this.initial_config.Advanced.multi_user_mode&&this.new_config.Advanced.multi_user_mode&&this.postsService.checkAdminCreationStatus(!0),this.initial_config=JSON.parse(JSON.stringify(this.new_config)),this.postsService.reload_config.next(!0))},t=>{console.error("Failed to save config!")})}setNewPin(){this.dialog.open(ek,{data:{resetMode:!0}})}generateAPIKey(){this.postsService.generateNewAPIKey().subscribe(t=>{t.new_api_key&&(this.initial_config.API.API_key=t.new_api_key,this.new_config.API.API_key=t.new_api_key)})}localeSelectChanged(t){localStorage.setItem("locale",t),this.openSnackBar("Language successfully changed! Reload to update the page.")}generateBookmarklet(){this.bookmarksite("YTDL-Material",this.generated_bookmarklet_code)}generateBookmarkletCode(){return`javascript:(function()%7Bwindow.open('${window.location.href.split("#")[0]+"#/home;url="}' + encodeURIComponent(window.location) + ';audioOnly=${this.bookmarkletAudioOnly}')%7D)()`}bookmarkletAudioOnlyChanged(t){this.bookmarkletAudioOnly=t.checked,this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode())}bookmarksite(t,e){if(document.all)window.external.AddFavorite(e,t);else if(window.chrome)this.openSnackBar("Chrome users must drag the 'Alternate URL' link to your bookmarks.");else if(window.sidebar)window.sidebar.addPanel(t,e,"");else if(window.opera&&window.print){const i=document.createElement("a");i.setAttribute("href",e),i.setAttribute("title",t),i.setAttribute("rel","sidebar"),i.click()}}openArgsModifierDialog(){this.dialog.open(Vk,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe(t=>{null!=t&&(this.new_config.Downloader.custom_args=t)})}getLatestGithubRelease(){this.postsService.getLatestGithubRelease().subscribe(t=>{this.latestGithubRelease=t})}openCookiesUploaderDialog(){this.dialog.open(rC,{width:"65vw"})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg),s.Dc(n.b),s.Dc(bd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-settings"]],decls:32,vars:5,consts:[["mat-dialog-title",""],[6,"label"],["matTabContent","","style","padding: 15px;"],["matTabContent",""],["label","Users",4,"ngIf"],["label","Logs",4,"ngIf"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12","mt-3"],["color","accent",1,"text-field"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mb-4"],["color","accent",3,"ngModel","ngModelChange"],[1,"col-12","mt-3","mb-4"],[1,"text-field"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-5"],[1,"col-12","mt-4"],["color","accent",3,"disabled","ngModel","ngModelChange"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-download-only-new-videos-from-a-playlist"],["value","default"],["value","dark"],[1,"col-12","mb-2"],["color","accent"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent",1,"text-field",2,"margin-right","12px"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-icon-button","",1,"args-edit-button",3,"click"],["mat-stroked-button","",2,"margin-left","15px","margin-bottom","10px",3,"disabled","click"],[1,"col-12","mb-3"],[1,"enable-api-key-div"],["target","_blank","href","https://stoplight.io/p/docs/gh/tzahi12345/youtubedl-material"],[1,"api-key-div"],["matTooltip-i18n","","matTooltip","This will delete your old API key!","mat-stroked-button","",3,"click"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/chrome-extension/youtubedl-material-chrome-extension.zip?raw=true"],[1,"ext-divider"],["href","https://addons.mozilla.org/en-US/firefox/addon/youtubedl-material/","target","_blank"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/wiki/Firefox-Extension","target","_blank"],[3,"change"],["target","_blank",3,"href"],["class","container-fluid mt-1",4,"ngIf"],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"col-12","mt-2","mb-1"],["value","debug"],["value","verbose"],["value","info"],["value","warn"],["value","error"],["mat-stroked-button","",1,"checkbox-button",3,"click"],[1,"container-fluid","mt-1"],[2,"margin-left","48px","margin-top","24px"],[2,"margin-left","48px","margin-top","24px","height","340px"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Nc(1,kS),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"mat-tab-group"),s.Jc(4,"mat-tab",1),s.Pc(5,CS),s.zd(6,rI,11,6,"ng-template",2),s.Ic(),s.Jc(7,"mat-tab",1),s.Pc(8,SS),s.zd(9,bI,1,1,"ng-template",3),s.Ic(),s.Jc(10,"mat-tab",1),s.Pc(11,IS),s.zd(12,ZI,7,4,"ng-template",3),s.Ic(),s.Jc(13,"mat-tab",1),s.Pc(14,DS),s.zd(15,iD,5,3,"ng-template",3),s.Ic(),s.zd(16,aD,7,1,"mat-tab",4),s.zd(17,lD,3,0,"mat-tab",5),s.Ic(),s.Ic(),s.Jc(18,"mat-dialog-actions"),s.Jc(19,"div",6),s.Jc(20,"button",7),s.Wc("click",(function(){return e.saveSettings()})),s.Jc(21,"mat-icon"),s.Bd(22,"done"),s.Ic(),s.Bd(23,"\xa0\xa0 "),s.Hc(24),s.Nc(25,ES),s.Gc(),s.Ic(),s.Jc(26,"button",8),s.Jc(27,"mat-icon"),s.Bd(28,"cancel"),s.Ic(),s.Bd(29,"\xa0\xa0 "),s.Jc(30,"span"),s.Nc(31,OS),s.Ic(),s.Ic(),s.Ic(),s.Ic()),2&t&&(s.pc(16),s.gd("ngIf",e.postsService.config&&e.postsService.config.Advanced.multi_user_mode),s.pc(1),s.gd("ngIf",e.postsService.config),s.pc(3),s.gd("disabled",e.settingsSame()),s.pc(6),s.gd("mat-dialog-close",!1),s.pc(5),s.Qc(e.settingsAreTheSame+""),s.Oc(31))},directives:[yd,wd,Ff,Cf,_f,ve.t,xd,bs,vu,vd,Fu,Bc,Ru,Rs,ho,Js,qa,Oc,gr,Ac,Gm,rs,ve.s,Kp,CC,vS,xS],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px;top:20px}.enable-api-key-div[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:15px}.api-key-div[_ngcontent-%COMP%], .enable-api-key-div[_ngcontent-%COMP%]{display:inline-block}.text-field[_ngcontent-%COMP%]{min-width:30%}.checkbox-button[_ngcontent-%COMP%]{margin-left:15px;margin-bottom:12px;bottom:4px}"]}),t})();var dD,hD,uD,pD,mD,gD,fD,bD,_D,vD;function yD(t,e){1&t&&(s.Jc(0,"span",12),s.Ec(1,"mat-spinner",13),s.Bd(2,"\xa0"),s.Hc(3),s.Nc(4,_D),s.Gc(),s.Ic()),2&t&&(s.pc(1),s.gd("diameter",22))}function wD(t,e){1&t&&(s.Jc(0,"mat-icon",14),s.Bd(1,"done"),s.Ic())}function xD(t,e){if(1&t&&(s.Jc(0,"a",2),s.Hc(1),s.Nc(2,vD),s.Gc(),s.Bd(3),s.Ic()),2&t){const t=s.ad();s.gd("href",t.latestUpdateLink,s.td),s.pc(3),s.Dd(" - ",t.latestGithubRelease.tag_name,"")}}function kD(t,e){1&t&&(s.Jc(0,"span"),s.Bd(1,"You are up to date."),s.Ic())}dD=$localize`:About dialog title␟cec82c0a545f37420d55a9b6c45c20546e82f94e␟8863443674032361244:About YoutubeDL-Material`,hD=$localize`:About first paragraph␟199c17e5d6a419313af3c325f06dcbb9645ca618␟7048705050249868840:is an open-source YouTube downloader built under Google's Material Design specifications. You can seamlessly download your favorite videos as video or audio files, and even subscribe to your favorite channels and playlists to keep updated with their new videos.`,uD=$localize`:About second paragraph␟bc0ad0ee6630acb7fcb7802ec79f5a0ee943c1a7␟786314306504588277:has some awesome features included! An extensive API, Docker support, and localization (translation) support. Read up on all the supported features by clicking on the GitHub icon above.`,pD=$localize`:Version label␟a45e3b05f0529dc5246d70ef62304c94426d4c81␟5296103174605274070:Installed version:`,mD=$localize`:Update through settings menu hint␟189b28aaa19b3c51c6111ad039c4fd5e2a22e370␟41092526824232895:You can update from the settings menu.`,gD=$localize`:About bug prefix␟b33536f59b94ec935a16bd6869d836895dc5300c␟3353248286278121979:Found a bug or have a suggestion?`,fD=$localize`:About bug click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,bD=$localize`:About bug suffix␟e1f398f38ff1534303d4bb80bd6cece245f24016␟1971178156716923826:to create an issue!`,_D=$localize`:Checking for updates text␟e22f3a5351944f3a1a10cfc7da6f65dfbe0037fe␟9163379406577397382:Checking for updates...`,vD=$localize`:View latest update␟a16e92385b4fd9677bb830a4b796b8b79c113290␟509090351011426949:Update available`;let CD=(()=>{class t{constructor(t){this.postsService=t,this.projectLink="https://github.com/Tzahi12345/YoutubeDL-Material",this.issuesLink="https://github.com/Tzahi12345/YoutubeDL-Material/issues",this.latestUpdateLink="https://github.com/Tzahi12345/YoutubeDL-Material/releases/latest",this.latestGithubRelease=null,this.checking_for_updates=!0,this.current_version_tag="v4.0"}ngOnInit(){this.getLatestGithubRelease()}getLatestGithubRelease(){this.postsService.getLatestGithubRelease().subscribe(t=>{this.checking_for_updates=!1,this.latestGithubRelease=t})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-about-dialog"]],decls:49,vars:7,consts:[["mat-dialog-title","",2,"position","relative"],[1,"logo-image"],["target","_blank",3,"href"],["src","assets/images/GitHub-64px.png",2,"width","32px"],["src","assets/images/logo_128px.png",2,"width","32px","margin-left","15px"],[2,"margin-bottom","5px"],[2,"margin-top","10px"],["style","display: inline-block",4,"ngIf"],["class","version-checked-icon",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","","mat-dialog-close","",2,"margin-bottom","5px"],[2,"display","inline-block"],[1,"version-spinner",3,"diameter"],[1,"version-checked-icon"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Hc(1),s.Nc(2,dD),s.Gc(),s.Jc(3,"span",1),s.Jc(4,"a",2),s.Ec(5,"img",3),s.Ic(),s.Ec(6,"img",4),s.Ic(),s.Ic(),s.Jc(7,"mat-dialog-content"),s.Jc(8,"div",5),s.Jc(9,"p"),s.Jc(10,"i"),s.Bd(11,"YoutubeDL-Material"),s.Ic(),s.Bd(12,"\xa0"),s.Hc(13),s.Nc(14,hD),s.Gc(),s.Ic(),s.Jc(15,"p"),s.Jc(16,"i"),s.Bd(17,"YoutubeDL-Material"),s.Ic(),s.Bd(18,"\xa0"),s.Hc(19),s.Nc(20,uD),s.Gc(),s.Ic(),s.Ec(21,"mat-divider"),s.Jc(22,"h5",6),s.Bd(23,"Installation details:"),s.Ic(),s.Jc(24,"p"),s.Hc(25),s.Nc(26,pD),s.Gc(),s.Bd(27),s.zd(28,yD,5,1,"span",7),s.zd(29,wD,2,0,"mat-icon",8),s.Bd(30,"\xa0\xa0"),s.zd(31,xD,4,2,"a",9),s.Bd(32,". "),s.Hc(33),s.Nc(34,mD),s.Gc(),s.zd(35,kD,2,0,"span",10),s.Ic(),s.Jc(36,"p"),s.Hc(37),s.Nc(38,gD),s.Gc(),s.Bd(39,"\xa0"),s.Jc(40,"a",2),s.Hc(41),s.Nc(42,fD),s.Gc(),s.Ic(),s.Bd(43,"\xa0"),s.Hc(44),s.Nc(45,bD),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(46,"mat-dialog-actions"),s.Jc(47,"button",11),s.Bd(48,"Close"),s.Ic(),s.Ic()),2&t&&(s.pc(4),s.gd("href",e.projectLink,s.td),s.pc(23),s.Dd("\xa0",e.current_version_tag," - "),s.pc(1),s.gd("ngIf",e.checking_for_updates),s.pc(1),s.gd("ngIf",!e.checking_for_updates),s.pc(2),s.gd("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name!==e.current_version_tag),s.pc(4),s.gd("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name===e.current_version_tag),s.pc(5),s.gd("href",e.issuesLink,s.td))},directives:[yd,wd,Fu,ve.t,xd,bs,vd,mm,vu],styles:["i[_ngcontent-%COMP%]{margin-right:1px}.version-spinner[_ngcontent-%COMP%]{top:4px;margin-right:5px;margin-left:5px;display:inline-block}.version-checked-icon[_ngcontent-%COMP%]{top:5px;margin-left:2px;position:relative;margin-right:-3px}.logo-image[_ngcontent-%COMP%]{position:absolute;top:-10px;right:-10px}"]}),t})();var SD,ID,DD,ED,OD,AD,PD,TD;function RD(t,e){if(1&t&&(s.Jc(0,"div"),s.Jc(1,"div"),s.Jc(2,"strong"),s.Hc(3),s.Nc(4,ED),s.Gc(),s.Ic(),s.Bd(5),s.Ic(),s.Jc(6,"div"),s.Jc(7,"strong"),s.Hc(8),s.Nc(9,OD),s.Gc(),s.Ic(),s.Bd(10),s.Ic(),s.Jc(11,"div"),s.Jc(12,"strong"),s.Hc(13),s.Nc(14,AD),s.Gc(),s.Ic(),s.Bd(15),s.bd(16,"date"),s.Ic(),s.Ec(17,"div",6),s.Ic()),2&t){const t=s.ad();s.pc(5),s.Dd("\xa0",t.postsService.user.name," "),s.pc(5),s.Dd("\xa0",t.postsService.user.uid," "),s.pc(5),s.Dd("\xa0",t.postsService.user.created?s.cd(16,3,t.postsService.user.created):"N/A"," ")}}function MD(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"h5"),s.Jc(2,"mat-icon"),s.Bd(3,"warn"),s.Ic(),s.Hc(4),s.Nc(5,PD),s.Gc(),s.Ic(),s.Jc(6,"button",7),s.Wc("click",(function(){return s.rd(t),s.ad().loginClicked()})),s.Hc(7),s.Nc(8,TD),s.Gc(),s.Ic(),s.Ic()}}SD=$localize`:User profile dialog title␟42ff677ec14f111e88bd6cdd30145378e994d1bf␟3496181279436331299:Your Profile`,ID=$localize`:Close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,DD=$localize`:Logout␟bb694b49d408265c91c62799c2b3a7e3151c824d␟3797778920049399855:Logout`,ED=$localize`:Name␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`,OD=$localize`:UID␟ac9d09de42edca1296371e4d801349c9096ac8de␟5524669285756836501:UID:`,AD=$localize`:Created␟a5ed099ffc9e96f6970df843289ade8a7d20ab9f␟1616250945945379783:Created:`,PD=$localize`:Not logged in notification␟fa96f2137af0a24e6d6d54c598c0af7d5d5ad344␟276791482480581557:You are not logged in.`,TD=$localize`:Login␟6765b4c916060f6bc42d9bb69e80377dbcb5e4e9␟2454050363478003966:Login`;let FD=(()=>{class t{constructor(t,e,i){this.postsService=t,this.router=e,this.dialogRef=i}ngOnInit(){}loginClicked(){this.router.navigate(["/login"]),this.dialogRef.close()}logoutClicked(){this.postsService.logout(),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(wx),s.Dc(ud))},t.\u0275cmp=s.xc({type:t,selectors:[["app-user-profile-dialog"]],decls:14,vars:2,consts:[["mat-dialog-title",""],[4,"ngIf"],[2,"width","100%"],[2,"position","relative"],["mat-stroked-button","","mat-dialog-close","","color","primary"],["mat-stroked-button","","color","warn",2,"position","absolute","right","0px",3,"click"],[2,"margin-top","20px"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Nc(1,SD),s.Ic(),s.Jc(2,"mat-dialog-content"),s.zd(3,RD,18,5,"div",1),s.zd(4,MD,9,0,"div",1),s.Ic(),s.Jc(5,"mat-dialog-actions"),s.Jc(6,"div",2),s.Jc(7,"div",3),s.Jc(8,"button",4),s.Hc(9),s.Nc(10,ID),s.Gc(),s.Ic(),s.Jc(11,"button",5),s.Wc("click",(function(){return e.logoutClicked()})),s.Hc(12),s.Nc(13,DD),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()),2&t&&(s.pc(3),s.gd("ngIf",e.postsService.isLoggedIn&&e.postsService.user),s.pc(1),s.gd("ngIf",!e.postsService.isLoggedIn||!e.postsService.user))},directives:[yd,wd,ve.t,xd,bs,vd,vu],pipes:[ve.f],styles:[""]}),t})();var ND,zD;ND=$localize`:Create admin account dialog title␟a1dbca87b9f36d2b06a5cbcffb5814c4ae9b798a␟1671378244656756701:Create admin account`,zD=$localize`:No default admin detected explanation␟2d2adf3ca26a676bca2269295b7455a26fd26980␟1428648941210584739:No default admin account detected. This will create and set the password for an admin account with the user name as 'admin'.`;const LD=["placeholder",$localize`:Password␟c32ef07f8803a223a83ed17024b38e8d82292407␟1431416938026210429:Password`];var BD;function JD(t,e){1&t&&s.Ec(0,"mat-spinner",7),2&t&&s.gd("diameter",25)}BD=$localize`:Create␟70a67e04629f6d412db0a12d51820b480788d795␟5674286808255988565:Create`;let VD=(()=>{class t{constructor(t,e){this.postsService=t,this.dialogRef=e,this.creating=!1,this.input=""}ngOnInit(){}create(){this.creating=!0,this.postsService.createAdminAccount(this.input).subscribe(t=>{this.creating=!1,this.dialogRef.close(!!t.success)},t=>{console.log(t),this.dialogRef.close(!1)})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(ud))},t.\u0275cmp=s.xc({type:t,selectors:[["app-set-default-admin-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],[2,"position","relative"],["color","accent"],["type","password","matInput","",3,"ngModel","keyup.enter","ngModelChange",6,"placeholder"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],[1,"spinner-div"],[3,"diameter",4,"ngIf"],[3,"diameter"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Hc(1),s.Nc(2,ND),s.Gc(),s.Ic(),s.Jc(3,"mat-dialog-content"),s.Jc(4,"div"),s.Jc(5,"p"),s.Nc(6,zD),s.Ic(),s.Ic(),s.Jc(7,"div",1),s.Jc(8,"div"),s.Jc(9,"mat-form-field",2),s.Jc(10,"input",3),s.Pc(11,LD),s.Wc("keyup.enter",(function(){return e.create()}))("ngModelChange",(function(t){return e.input=t})),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(12,"mat-dialog-actions"),s.Jc(13,"button",4),s.Wc("click",(function(){return e.create()})),s.Hc(14),s.Nc(15,BD),s.Gc(),s.Ic(),s.Jc(16,"div",5),s.zd(17,JD,1,1,"mat-spinner",6),s.Ic(),s.Ic()),2&t&&(s.pc(10),s.gd("ngModel",e.input),s.pc(3),s.gd("disabled",0===e.input.length),s.pc(4),s.gd("ngIf",e.creating))},directives:[yd,wd,Bc,Ru,Rs,Js,qa,xd,bs,ve.t,mm],styles:[".spinner-div[_ngcontent-%COMP%]{position:relative;left:10px;bottom:5px}"]}),t})();const jD=["sidenav"],$D=["hamburgerMenu"];var HD,UD,GD,WD,qD,KD,XD,YD;function ZD(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",21,22),s.Wc("click",(function(){return s.rd(t),s.ad().toggleSidenav()})),s.Jc(2,"mat-icon"),s.Bd(3,"menu"),s.Ic(),s.Ic()}}function QD(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",23),s.Wc("click",(function(){return s.rd(t),s.ad().goBack()})),s.Jc(1,"mat-icon"),s.Bd(2,"arrow_back"),s.Ic(),s.Ic()}}function tE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",13),s.Wc("click",(function(){return s.rd(t),s.ad().openProfileDialog()})),s.Jc(1,"mat-icon"),s.Bd(2,"person"),s.Ic(),s.Jc(3,"span"),s.Nc(4,UD),s.Ic(),s.Ic()}}function eE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",13),s.Wc("click",(function(e){return s.rd(t),s.ad().themeMenuItemClicked(e)})),s.Jc(1,"mat-icon"),s.Bd(2),s.Ic(),s.Jc(3,"span"),s.Nc(4,GD),s.Ic(),s.Ec(5,"mat-slide-toggle",24),s.Ic()}if(2&t){const t=s.ad();s.pc(2),s.Cd("default"===t.postsService.theme.key?"brightness_5":"brightness_2"),s.pc(3),s.gd("checked","dark"===t.postsService.theme.key)}}function iE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",13),s.Wc("click",(function(){return s.rd(t),s.ad().openSettingsDialog()})),s.Jc(1,"mat-icon"),s.Bd(2,"settings"),s.Ic(),s.Jc(3,"span"),s.Nc(4,WD),s.Ic(),s.Ic()}}function nE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"a",25),s.Wc("click",(function(){return s.rd(t),s.ad(),s.nd(27).close()})),s.Hc(1),s.Nc(2,qD),s.Gc(),s.Ic()}}function sE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"a",26),s.Wc("click",(function(){return s.rd(t),s.ad(),s.nd(27).close()})),s.Hc(1),s.Nc(2,KD),s.Gc(),s.Ic()}}function aE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"a",27),s.Wc("click",(function(){return s.rd(t),s.ad(),s.nd(27).close()})),s.Hc(1),s.Nc(2,XD),s.Gc(),s.Ic()}}function oE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"a",28),s.Wc("click",(function(){return s.rd(t),s.ad(),s.nd(27).close()})),s.Hc(1),s.Nc(2,YD),s.Gc(),s.Ic()}}HD=$localize`:About menu label␟004b222ff9ef9dd4771b777950ca1d0e4cd4348a␟1726363342938046830:About`,UD=$localize`:Profile menu label␟994363f08f9fbfa3b3994ff7b35c6904fdff18d8␟4915431133669985304:Profile`,GD=$localize`:Dark mode toggle label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`,WD=$localize`:Settings menu label␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`,qD=$localize`:Navigation menu Home Page title␟92eee6be6de0b11c924e3ab27db30257159c0a7c␟2821179408673282599:Home`,KD=$localize`:Navigation menu Login Page title␟6765b4c916060f6bc42d9bb69e80377dbcb5e4e9␟2454050363478003966:Login`,XD=$localize`:Navigation menu Subscriptions Page title␟357064ca9d9ac859eb618e28e8126fa32be049e2␟1812379335568847528:Subscriptions`,YD=$localize`:Navigation menu Downloads Page title␟822fab38216f64e8166d368b59fe756ca39d301b␟9040361513231775562:Downloads`;let rE=(()=>{class t{constructor(t,e,i,n,s,a){this.postsService=t,this.snackBar=e,this.dialog=i,this.router=n,this.overlayContainer=s,this.elementRef=a,this.THEMES_CONFIG=Lv,this.topBarTitle="Youtube Downloader",this.defaultTheme=null,this.allowThemeChange=null,this.allowSubscriptions=!1,this.enableDownloadsManager=!1,this.settingsPinRequired=!0,this.navigator=null,this.navigator=localStorage.getItem("player_navigator"),this.router.events.subscribe(t=>{t instanceof ry?this.navigator=localStorage.getItem("player_navigator"):t instanceof ly&&this.hamburgerMenuButton&&this.hamburgerMenuButton.nativeElement&&this.hamburgerMenuButton.nativeElement.blur()}),this.postsService.config_reloaded.subscribe(t=>{t&&this.loadConfig()})}toggleSidenav(){this.sidenav.toggle()}loadConfig(){this.topBarTitle=this.postsService.config.Extra.title_top,this.settingsPinRequired=this.postsService.config.Extra.settings_pin_required;const t=this.postsService.config.Themes;this.defaultTheme=t?this.postsService.config.Themes.default_theme:"default",this.allowThemeChange=!t||this.postsService.config.Themes.allow_theme_change,this.allowSubscriptions=this.postsService.config.Subscriptions.allow_subscriptions,this.enableDownloadsManager=this.postsService.config.Extra.enable_downloads_manager,localStorage.getItem("theme")||this.setTheme(t?this.defaultTheme:"default")}setTheme(t){let e=null;this.THEMES_CONFIG[t]?(localStorage.getItem("theme")&&(e=localStorage.getItem("theme"),this.THEMES_CONFIG[e]||(console.log("bad theme found, setting to default"),null===this.defaultTheme?console.error("No default theme detected"):(localStorage.setItem("theme",this.defaultTheme),e=localStorage.getItem("theme")))),localStorage.setItem("theme",t),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor=this.THEMES_CONFIG[t].background_color,this.postsService.setTheme(t),this.onSetTheme(this.THEMES_CONFIG[t].css_label,e?this.THEMES_CONFIG[e].css_label:e)):console.error("Invalid theme: "+t)}onSetTheme(t,e){e&&(document.body.classList.remove(e),this.overlayContainer.getContainerElement().classList.remove(e)),this.overlayContainer.getContainerElement().classList.add(t),this.componentCssClass=t}flipTheme(){"default"===this.postsService.theme.key?this.setTheme("dark"):"dark"===this.postsService.theme.key&&this.setTheme("default")}themeMenuItemClicked(t){this.flipTheme(),t.stopPropagation()}ngOnInit(){localStorage.getItem("theme")&&this.setTheme(localStorage.getItem("theme")),this.postsService.open_create_default_admin_dialog.subscribe(t=>{t&&this.dialog.open(VD).afterClosed().subscribe(t=>{t?"/login"!==this.router.url&&this.router.navigate(["/login"]):console.error("Failed to create default admin account. See logs for details.")})})}goBack(){this.navigator?this.router.navigateByUrl(this.navigator):this.router.navigate(["/home"])}openSettingsDialog(){this.settingsPinRequired?this.openPinDialog():this.actuallyOpenSettingsDialog()}actuallyOpenSettingsDialog(){this.dialog.open(cD,{width:"80vw"})}openPinDialog(){this.dialog.open(ek,{}).afterClosed().subscribe(t=>{t&&this.actuallyOpenSettingsDialog()})}openAboutDialog(){this.dialog.open(CD,{width:"80vw"})}openProfileDialog(){this.dialog.open(FD,{width:"60vw"})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg),s.Dc(bd),s.Dc(wx),s.Dc($l),s.Dc(s.r))},t.\u0275cmp=s.xc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.Fd(jD,!0),s.Fd($D,!0,s.r)),2&t&&(s.md(i=s.Xc())&&(e.sidenav=i.first),s.md(i=s.Xc())&&(e.hamburgerMenuButton=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&s.rc(e.componentCssClass)},decls:35,vars:15,consts:[[2,"width","100%","height","100%"],[1,"mat-elevation-z3",2,"position","relative","z-index","10"],["color","primary",1,"sticky-toolbar","top-toolbar"],["width","100%","height","100%",1,"flex-row"],[1,"flex-column",2,"text-align","left","margin-top","1px"],["style","outline: none","mat-icon-button","","aria-label","Toggle side navigation",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"flex-column",2,"text-align","center","margin-top","5px"],[2,"font-size","22px","text-shadow","#141414 0.25px 0.25px 1px"],[1,"flex-column",2,"text-align","right","align-items","flex-end"],["mat-icon-button","",3,"matMenuTriggerFor"],["menuSettings","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"sidenav-container",2,"height","calc(100% - 64px)"],[2,"height","100%"],["sidenav",""],["mat-list-item","","routerLink","/home",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/login",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/subscriptions",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/downloads",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Toggle side navigation",2,"outline","none",3,"click"],["hamburgerMenu",""],["mat-icon-button","",3,"click"],[1,"theme-slide-toggle",3,"checked"],["mat-list-item","","routerLink","/home",3,"click"],["mat-list-item","","routerLink","/login",3,"click"],["mat-list-item","","routerLink","/subscriptions",3,"click"],["mat-list-item","","routerLink","/downloads",3,"click"]],template:function(t,e){if(1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.Jc(2,"mat-toolbar",2),s.Jc(3,"div",3),s.Jc(4,"div",4),s.zd(5,ZD,4,0,"button",5),s.zd(6,QD,3,0,"button",6),s.Ic(),s.Jc(7,"div",7),s.Jc(8,"div",8),s.Bd(9),s.Ic(),s.Ic(),s.Jc(10,"div",9),s.Jc(11,"button",10),s.Jc(12,"mat-icon"),s.Bd(13,"more_vert"),s.Ic(),s.Ic(),s.Jc(14,"mat-menu",null,11),s.zd(16,tE,5,0,"button",12),s.zd(17,eE,6,2,"button",12),s.zd(18,iE,5,0,"button",12),s.Jc(19,"button",13),s.Wc("click",(function(){return e.openAboutDialog()})),s.Jc(20,"mat-icon"),s.Bd(21,"info"),s.Ic(),s.Jc(22,"span"),s.Nc(23,HD),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(24,"div",14),s.Jc(25,"mat-sidenav-container",15),s.Jc(26,"mat-sidenav",null,16),s.Jc(28,"mat-nav-list"),s.zd(29,nE,3,0,"a",17),s.zd(30,sE,3,0,"a",18),s.zd(31,aE,3,0,"a",19),s.zd(32,oE,3,0,"a",20),s.Ic(),s.Ic(),s.Jc(33,"mat-sidenav-content"),s.Ec(34,"router-outlet"),s.Ic(),s.Ic(),s.Ic(),s.Ic()),2&t){const t=s.nd(15);s.yd("background",e.postsService.theme?e.postsService.theme.background_color:null,s.wc),s.pc(5),s.gd("ngIf","/player"!==e.router.url.split(";")[0]),s.pc(1),s.gd("ngIf","/player"===e.router.url.split(";")[0]),s.pc(3),s.Dd(" ",e.topBarTitle," "),s.pc(2),s.gd("matMenuTriggerFor",t),s.pc(5),s.gd("ngIf",e.postsService.isLoggedIn),s.pc(1),s.gd("ngIf",e.allowThemeChange),s.pc(1),s.gd("ngIf",!e.postsService.isLoggedIn||e.postsService.permissions.includes("settings")),s.pc(11),s.gd("ngIf",e.postsService.config&&(!e.postsService.config.Advanced.multi_user_mode||e.postsService.isLoggedIn)),s.pc(1),s.gd("ngIf",e.postsService.config&&e.postsService.config.Advanced.multi_user_mode&&!e.postsService.isLoggedIn),s.pc(1),s.gd("ngIf",e.postsService.config&&e.allowSubscriptions&&(!e.postsService.config.Advanced.multi_user_mode||e.postsService.isLoggedIn&&e.postsService.permissions.includes("subscriptions"))),s.pc(1),s.gd("ngIf",e.postsService.config&&e.enableDownloadsManager&&(!e.postsService.config.Advanced.multi_user_mode||e.postsService.isLoggedIn&&e.postsService.permissions.includes("downloads_manager"))),s.pc(1),s.yd("background",e.postsService.theme?e.postsService.theme.background_color:null,s.wc)}},directives:[Xg,ve.t,bs,Ep,vu,Cp,_p,pg,hg,qu,dg,Ex,Dg,tp,kx],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-basis:100%;flex:1}.theme-slide-toggle[_ngcontent-%COMP%]{top:2px;left:10px;position:relative;pointer-events:none}.sidenav-container[_ngcontent-%COMP%]{z-index:-1!important}.top-toolbar[_ngcontent-%COMP%]{height:64px}"]}),t})();function lE(t,e,i,n){return new(i||(i=Promise))((function(s,a){function o(t){try{l(n.next(t))}catch(e){a(e)}}function r(t){try{l(n.throw(t))}catch(e){a(e)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,r)}l((n=n.apply(t,e||[])).next())}))}var cE=i("Iab2");class dE{constructor(t){this.id=t&&t.id||null,this.title=t&&t.title||null,this.desc=t&&t.desc||null,this.thumbnailUrl=t&&t.thumbnailUrl||null,this.uploaded=t&&t.uploaded||null,this.videoUrl=t&&t.videoUrl||`https://www.youtube.com/watch?v=${this.id}`,this.uploaded=function(t){const e=new Date(t),i=uE(e.getMonth()+1),n=uE(e.getDate()),s=e.getFullYear();let a;a=e.getHours();const o=uE(e.getMinutes());let r="AM";const l=parseInt(a,10);return l>12?(r="PM",a=l-12):0===l&&(a="12"),a=uE(a),i+"-"+n+"-"+s+" "+a+":"+o+" "+r}(Date.parse(this.uploaded))}}let hE=(()=>{class t{constructor(t){this.http=t,this.url="https://www.googleapis.com/youtube/v3/search",this.key=null}initializeAPI(t){this.key=t}search(t){if(this.ValidURL(t))return new si.a;const e=[`q=${t}`,`key=${this.key}`,"part=snippet","type=video","maxResults=5"].join("&");return this.http.get(`${this.url}?${e}`).map(t=>t.items.map(t=>new dE({id:t.id.videoId,title:t.snippet.title,desc:t.snippet.description,thumbnailUrl:t.snippet.thumbnails.high.url,uploaded:t.snippet.publishedAt})))}ValidURL(t){return new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc($h))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function uE(t){return t<10?"0"+t:t}var pE;pE=$localize`:Create a playlist dialog title␟17f0ea5d2d7a262b0e875acc70475f102aee84e6␟3949911572988594237:Create a playlist`;const mE=["placeholder",$localize`:Playlist name placeholder␟cff1428d10d59d14e45edec3c735a27b5482db59␟8953033926734869941:Name`];var gE,fE;function bE(t,e){1&t&&(s.Jc(0,"mat-label"),s.Hc(1),s.Nc(2,gE),s.Gc(),s.Ic())}function _E(t,e){1&t&&(s.Jc(0,"mat-label"),s.Hc(1),s.Nc(2,fE),s.Gc(),s.Ic())}function vE(t,e){if(1&t&&(s.Jc(0,"mat-option",8),s.Bd(1),s.Ic()),2&t){const t=e.$implicit;s.gd("value",t.id),s.pc(1),s.Cd(t.id)}}function yE(t,e){1&t&&(s.Jc(0,"div",9),s.Ec(1,"mat-spinner",10),s.Ic()),2&t&&(s.pc(1),s.gd("diameter",25))}gE=$localize`:Audio files title␟f47e2d56dd8a145b2e9599da9730c049d52962a2␟253926325379303932:Audio files`,fE=$localize`:Videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const wE=function(){return{standalone:!0}};let xE=(()=>{class t{constructor(t,e,i){this.data=t,this.postsService=e,this.dialogRef=i,this.filesToSelectFrom=null,this.type=null,this.filesSelect=new Fa,this.name="",this.create_in_progress=!1}ngOnInit(){this.data&&(this.filesToSelectFrom=this.data.filesToSelectFrom,this.type=this.data.type)}createPlaylist(){const t=this.getThumbnailURL();this.create_in_progress=!0,this.postsService.createPlaylist(this.name,this.filesSelect.value,this.type,t).subscribe(t=>{this.create_in_progress=!1,this.dialogRef.close(!!t.success)})}getThumbnailURL(){for(let t=0;t1?"first-result-card":"",i===n.results.length-1&&n.results.length>1?"last-result-card":"",1===n.results.length?"only-result-card":"")),s.pc(2),s.Dd(" ",t.title," "),s.pc(2),s.Dd(" ",t.uploaded," ")}}function JE(t,e){if(1&t&&(s.Jc(0,"div",33),s.zd(1,BE,12,7,"span",27),s.Ic()),2&t){const t=s.ad();s.pc(1),s.gd("ngForOf",t.results)}}var VE,jE,$E,HE;function UE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-checkbox",39),s.Wc("change",(function(e){return s.rd(t),s.ad().multiDownloadModeChanged(e)}))("ngModelChange",(function(e){return s.rd(t),s.ad().multiDownloadMode=e})),s.Hc(1),s.Nc(2,VE),s.Gc(),s.Ic()}if(2&t){const t=s.ad();s.gd("disabled",t.current_download)("ngModel",t.multiDownloadMode)}}function GE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",40),s.Wc("click",(function(){return s.rd(t),s.ad().cancelDownload()})),s.Hc(1),s.Nc(2,jE),s.Gc(),s.Ic()}}VE=$localize`:Multi-download Mode checkbox␟96a01fafe135afc58b0f8071a4ab00234495ce18␟1215999553275961560: Multi-download Mode `,jE=$localize`:Cancel download button␟6a3777f913cf3f288664f0632b9f24794fdcc24e␟6991067716289442185: Cancel `,$E=$localize`:Advanced download mode panel␟322ed150e02666fe2259c5b4614eac7066f4ffa0␟7427754392029374006: Advanced `,HE=$localize`:Use custom args checkbox␟4e4c721129466be9c3862294dc40241b64045998␟5091669664044282329: Use custom args `;const WE=["placeholder",$localize`:Custom args placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var qE,KE;qE=$localize`:Custom Args input hint␟a6911c2157f1b775284bbe9654ce5eb30cf45d7f␟1027155491043285709: No need to include URL, just everything after. Args are delimited using two commas like so: ,, `,KE=$localize`:Use custom output checkbox␟3a92a3443c65a52f37ca7efb8f453b35dbefbf29␟5904983012542242085: Use custom output `;const XE=["placeholder",$localize`:Custom output placeholder␟d9c02face477f2f9cdaae318ccee5f89856851fb␟3075663591125020403:Custom output`];var YE,ZE,QE,tO;function eO(t,e){if(1&t&&(s.Jc(0,"p"),s.Hc(1),s.Nc(2,QE),s.Gc(),s.Bd(3," \xa0"),s.Jc(4,"i"),s.Bd(5),s.Ic(),s.Ic()),2&t){const t=s.ad(2);s.pc(5),s.Cd(t.simulatedOutput)}}YE=$localize`:Youtube-dl output template documentation link␟fcfd4675b4c90f08d18d3abede9a9a4dff4cfdc7␟4895326106573044490:Documentation`,ZE=$localize`:Custom Output input hint␟19d1ae64d94d28a29b2c57ae8671aace906b5401␟3584692608114953661:Path is relative to the config download path. Don't include extension.`,QE=$localize`:Simulated command label␟b7ffe7c6586d6f3f18a9246806a7c7d5538ab43e␟4637303589735709945: Simulated command: `,tO=$localize`:Use authentication checkbox␟8fad10737d3e3735a6699a4d89cbf6c20f6bb55f␟294759932648923187: Use authentication `;const iO=["placeholder",$localize`:YT Username placeholder␟08c74dc9762957593b91f6eb5d65efdfc975bf48␟5248717555542428023:Username`];function nO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",52),s.Jc(1,"mat-checkbox",46),s.Wc("change",(function(e){return s.rd(t),s.ad(2).youtubeAuthEnabledChanged(e)}))("ngModelChange",(function(e){return s.rd(t),s.ad(2).youtubeAuthEnabled=e})),s.Hc(2),s.Nc(3,tO),s.Gc(),s.Ic(),s.Jc(4,"mat-form-field",53),s.Jc(5,"input",49),s.Pc(6,iO),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).youtubeUsername=e})),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(1),s.gd("disabled",t.current_download)("ngModel",t.youtubeAuthEnabled)("ngModelOptions",s.id(6,ME)),s.pc(4),s.gd("ngModel",t.youtubeUsername)("ngModelOptions",s.id(7,ME))("disabled",!t.youtubeAuthEnabled)}}const sO=["placeholder",$localize`:YT Password placeholder␟c32ef07f8803a223a83ed17024b38e8d82292407␟1431416938026210429:Password`];function aO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",52),s.Jc(1,"mat-form-field",54),s.Jc(2,"input",55),s.Pc(3,sO),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).youtubePassword=e})),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(2),s.gd("ngModel",t.youtubePassword)("ngModelOptions",s.id(3,ME))("disabled",!t.youtubeAuthEnabled)}}function oO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",0),s.Jc(1,"form",41),s.Jc(2,"mat-expansion-panel",42),s.Jc(3,"mat-expansion-panel-header"),s.Jc(4,"mat-panel-title"),s.Hc(5),s.Nc(6,$E),s.Gc(),s.Ic(),s.Ic(),s.zd(7,eO,6,1,"p",43),s.Jc(8,"div",44),s.Jc(9,"div",5),s.Jc(10,"div",45),s.Jc(11,"mat-checkbox",46),s.Wc("change",(function(e){return s.rd(t),s.ad().customArgsEnabledChanged(e)}))("ngModelChange",(function(e){return s.rd(t),s.ad().customArgsEnabled=e})),s.Hc(12),s.Nc(13,HE),s.Gc(),s.Ic(),s.Jc(14,"button",47),s.Wc("click",(function(){return s.rd(t),s.ad().openArgsModifierDialog()})),s.Jc(15,"mat-icon"),s.Bd(16,"edit"),s.Ic(),s.Ic(),s.Jc(17,"mat-form-field",48),s.Jc(18,"input",49),s.Pc(19,WE),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().customArgs=e})),s.Ic(),s.Jc(20,"mat-hint"),s.Hc(21),s.Nc(22,qE),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(23,"div",45),s.Jc(24,"mat-checkbox",46),s.Wc("change",(function(e){return s.rd(t),s.ad().customOutputEnabledChanged(e)}))("ngModelChange",(function(e){return s.rd(t),s.ad().customOutputEnabled=e})),s.Hc(25),s.Nc(26,KE),s.Gc(),s.Ic(),s.Jc(27,"mat-form-field",48),s.Jc(28,"input",49),s.Pc(29,XE),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().customOutput=e})),s.Ic(),s.Jc(30,"mat-hint"),s.Jc(31,"a",50),s.Hc(32),s.Nc(33,YE),s.Gc(),s.Ic(),s.Bd(34,". "),s.Hc(35),s.Nc(36,ZE),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.zd(37,nO,7,8,"div",51),s.zd(38,aO,4,4,"div",51),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(7),s.gd("ngIf",t.simulatedOutput),s.pc(4),s.gd("disabled",t.current_download)("ngModel",t.customArgsEnabled)("ngModelOptions",s.id(15,ME)),s.pc(7),s.gd("ngModel",t.customArgs)("ngModelOptions",s.id(16,ME))("disabled",!t.customArgsEnabled),s.pc(6),s.gd("disabled",t.current_download)("ngModel",t.customOutputEnabled)("ngModelOptions",s.id(17,ME)),s.pc(4),s.gd("ngModel",t.customOutput)("ngModelOptions",s.id(18,ME))("disabled",!t.customOutputEnabled),s.pc(9),s.gd("ngIf",!t.youtubeAuthDisabledOverride),s.pc(1),s.gd("ngIf",!t.youtubeAuthDisabledOverride)}}function rO(t,e){1&t&&s.Ec(0,"mat-divider",2)}function lO(t,e){if(1&t){const t=s.Kc();s.Hc(0),s.Jc(1,"app-download-item",60),s.Wc("cancelDownload",(function(e){return s.rd(t),s.ad(3).cancelDownload(e)})),s.Ic(),s.zd(2,rO,1,0,"mat-divider",61),s.Gc()}if(2&t){const t=s.ad(),e=t.$implicit,i=t.index,n=s.ad(2);s.pc(1),s.gd("download",e)("queueNumber",i+1),s.pc(1),s.gd("ngIf",i!==n.downloads.length-1)}}function cO(t,e){if(1&t&&(s.Jc(0,"div",5),s.zd(1,lO,3,3,"ng-container",43),s.Ic()),2&t){const t=e.$implicit,i=s.ad(2);s.pc(1),s.gd("ngIf",i.current_download!==t&&t.downloading)}}function dO(t,e){if(1&t&&(s.Jc(0,"div",56),s.Jc(1,"mat-card",57),s.Jc(2,"div",58),s.zd(3,cO,2,1,"div",59),s.Ic(),s.Ic(),s.Ic()),2&t){const t=s.ad();s.pc(3),s.gd("ngForOf",t.downloads)}}function hO(t,e){if(1&t&&(s.Jc(0,"div",67),s.Ec(1,"mat-progress-bar",68),s.Ec(2,"br"),s.Ic()),2&t){const t=s.ad(2);s.gd("ngClass",t.percentDownloaded-0>99?"make-room-for-spinner":"equal-sizes"),s.pc(1),s.hd("value",t.percentDownloaded)}}function uO(t,e){1&t&&(s.Jc(0,"div",69),s.Ec(1,"mat-spinner",32),s.Ic()),2&t&&(s.pc(1),s.gd("diameter",25))}function pO(t,e){1&t&&s.Ec(0,"mat-progress-bar",70)}function mO(t,e){if(1&t&&(s.Jc(0,"div",62),s.Jc(1,"div",63),s.zd(2,hO,3,2,"div",64),s.zd(3,uO,2,1,"div",65),s.zd(4,pO,1,0,"ng-template",null,66,s.Ad),s.Ic(),s.Ec(6,"br"),s.Ic()),2&t){const t=s.nd(5),e=s.ad();s.pc(2),s.gd("ngIf",e.current_download.percent_complete&&e.current_download.percent_complete>15)("ngIfElse",t),s.pc(1),s.gd("ngIf",e.percentDownloaded-0>99)}}function gO(t,e){}var fO,bO,_O,vO,yO,wO,xO,kO;function CO(t,e){1&t&&s.Ec(0,"mat-progress-bar",82)}function SO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-grid-tile"),s.Jc(1,"app-file-card",79,80),s.Wc("removeFile",(function(e){return s.rd(t),s.ad(3).removeFromMp3(e)})),s.Ic(),s.zd(3,CO,1,0,"mat-progress-bar",81),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(3);s.pc(1),s.gd("file",t)("title",t.title)("name",t.id)("uid",t.uid)("thumbnailURL",t.thumbnailURL)("length",t.duration)("isAudio",!0)("use_youtubedl_archive",i.use_youtubedl_archive),s.pc(2),s.gd("ngIf",i.downloading_content.audio[t.id])}}function IO(t,e){1&t&&s.Ec(0,"mat-progress-bar",82)}function DO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-grid-tile"),s.Jc(1,"app-file-card",84,80),s.Wc("removeFile",(function(){s.rd(t);const i=e.$implicit,n=e.index;return s.ad(4).removePlaylistMp3(i.id,n)})),s.Ic(),s.zd(3,IO,1,0,"mat-progress-bar",81),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(4);s.pc(1),s.gd("title",t.name)("name",t.id)("thumbnailURL",i.playlist_thumbnails[t.id])("length",null)("isAudio",!0)("playlist",t)("count",t.fileNames.length)("use_youtubedl_archive",i.use_youtubedl_archive),s.pc(2),s.gd("ngIf",i.downloading_content.audio[t.id])}}function EO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-grid-list",83),s.Wc("resize",(function(e){return s.rd(t),s.ad(3).onResize(e)}),!1,s.qd),s.zd(1,DO,4,9,"mat-grid-tile",27),s.Ic()}if(2&t){const t=s.ad(3);s.gd("cols",t.files_cols),s.pc(1),s.gd("ngForOf",t.playlists.audio)}}function OO(t,e){1&t&&(s.Jc(0,"div"),s.Hc(1),s.Nc(2,wO),s.Gc(),s.Ic())}function AO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"mat-grid-list",74),s.Wc("resize",(function(e){return s.rd(t),s.ad(2).onResize(e)}),!1,s.qd),s.zd(2,SO,4,9,"mat-grid-tile",27),s.Ic(),s.Ec(3,"mat-divider"),s.Jc(4,"div",75),s.Jc(5,"h6"),s.Nc(6,yO),s.Ic(),s.Ic(),s.zd(7,EO,2,2,"mat-grid-list",76),s.Jc(8,"div",77),s.Jc(9,"button",78),s.Wc("click",(function(){return s.rd(t),s.ad(2).openCreatePlaylistDialog("audio")})),s.Jc(10,"mat-icon"),s.Bd(11,"add"),s.Ic(),s.Ic(),s.Ic(),s.zd(12,OO,3,0,"div",43),s.Ic()}if(2&t){const t=s.ad(2);s.pc(1),s.gd("cols",t.files_cols),s.pc(1),s.gd("ngForOf",t.mp3s),s.pc(5),s.gd("ngIf",t.playlists.audio.length>0),s.pc(5),s.gd("ngIf",0===t.playlists.audio.length)}}function PO(t,e){1&t&&s.Ec(0,"mat-progress-bar",82)}function TO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-grid-tile"),s.Jc(1,"app-file-card",79,85),s.Wc("removeFile",(function(e){return s.rd(t),s.ad(3).removeFromMp4(e)})),s.Ic(),s.zd(3,PO,1,0,"mat-progress-bar",81),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(3);s.pc(1),s.gd("file",t)("title",t.title)("name",t.id)("uid",t.uid)("thumbnailURL",t.thumbnailURL)("length",t.duration)("isAudio",!1)("use_youtubedl_archive",i.use_youtubedl_archive),s.pc(2),s.gd("ngIf",i.downloading_content.video[t.id])}}function RO(t,e){1&t&&s.Ec(0,"mat-progress-bar",82)}function MO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-grid-tile"),s.Jc(1,"app-file-card",84,85),s.Wc("removeFile",(function(){s.rd(t);const i=e.$implicit,n=e.index;return s.ad(4).removePlaylistMp4(i.id,n)})),s.Ic(),s.zd(3,RO,1,0,"mat-progress-bar",81),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(4);s.pc(1),s.gd("title",t.name)("name",t.id)("thumbnailURL",i.playlist_thumbnails[t.id])("length",null)("isAudio",!1)("playlist",t)("count",t.fileNames.length)("use_youtubedl_archive",i.use_youtubedl_archive),s.pc(2),s.gd("ngIf",i.downloading_content.video[t.id])}}function FO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-grid-list",83),s.Wc("resize",(function(e){return s.rd(t),s.ad(3).onResize(e)}),!1,s.qd),s.zd(1,MO,4,9,"mat-grid-tile",27),s.Ic()}if(2&t){const t=s.ad(3);s.gd("cols",t.files_cols),s.pc(1),s.gd("ngForOf",t.playlists.video)}}function NO(t,e){1&t&&(s.Jc(0,"div"),s.Hc(1),s.Nc(2,kO),s.Gc(),s.Ic())}function zO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"mat-grid-list",74),s.Wc("resize",(function(e){return s.rd(t),s.ad(2).onResize(e)}),!1,s.qd),s.zd(2,TO,4,9,"mat-grid-tile",27),s.Ic(),s.Ec(3,"mat-divider"),s.Jc(4,"div",75),s.Jc(5,"h6"),s.Nc(6,xO),s.Ic(),s.Ic(),s.zd(7,FO,2,2,"mat-grid-list",76),s.Jc(8,"div",77),s.Jc(9,"button",78),s.Wc("click",(function(){return s.rd(t),s.ad(2).openCreatePlaylistDialog("video")})),s.Jc(10,"mat-icon"),s.Bd(11,"add"),s.Ic(),s.Ic(),s.Ic(),s.zd(12,NO,3,0,"div",43),s.Ic()}if(2&t){const t=s.ad(2);s.pc(1),s.gd("cols",t.files_cols),s.pc(1),s.gd("ngForOf",t.mp4s),s.pc(5),s.gd("ngIf",t.playlists.video.length>0),s.pc(5),s.gd("ngIf",0===t.playlists.video.length)}}function LO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",71),s.Jc(1,"mat-accordion"),s.Jc(2,"mat-expansion-panel",72),s.Wc("opened",(function(){return s.rd(t),s.ad().accordionOpened("audio")}))("closed",(function(){return s.rd(t),s.ad().accordionClosed("audio")}))("mouseleave",(function(){return s.rd(t),s.ad().accordionLeft("audio")}))("mouseenter",(function(){return s.rd(t),s.ad().accordionEntered("audio")})),s.Jc(3,"mat-expansion-panel-header"),s.Jc(4,"mat-panel-title"),s.Hc(5),s.Nc(6,fO),s.Gc(),s.Ic(),s.Jc(7,"mat-panel-description"),s.Hc(8),s.Nc(9,bO),s.Gc(),s.Ic(),s.Ic(),s.zd(10,AO,13,4,"div",73),s.Ic(),s.Jc(11,"mat-expansion-panel",72),s.Wc("opened",(function(){return s.rd(t),s.ad().accordionOpened("video")}))("closed",(function(){return s.rd(t),s.ad().accordionClosed("video")}))("mouseleave",(function(){return s.rd(t),s.ad().accordionLeft("video")}))("mouseenter",(function(){return s.rd(t),s.ad().accordionEntered("video")})),s.Jc(12,"mat-expansion-panel-header"),s.Jc(13,"mat-panel-title"),s.Hc(14),s.Nc(15,_O),s.Gc(),s.Ic(),s.Jc(16,"mat-panel-description"),s.Hc(17),s.Nc(18,vO),s.Gc(),s.Ic(),s.Ic(),s.zd(19,zO,13,4,"div",73),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(),e=s.nd(38),i=s.nd(40);s.pc(10),s.gd("ngIf",t.mp3s.length>0)("ngIfElse",e),s.pc(9),s.gd("ngIf",t.mp4s.length>0)("ngIfElse",i)}}function BO(t,e){}function JO(t,e){}fO=$localize`:Audio files title␟4a0dada6e841a425de3e5006e6a04df26c644fa5␟520791250454025553: Audio `,bO=$localize`:Audio files description␟9779715ac05308973d8f1c8658b29b986e92450f␟3371870979788549262: Your audio files are here `,_O=$localize`:Video files title␟9d2b62bb0b91e2e17fb4177a7e3d6756a2e6ee33␟429855630861441368: Video `,vO=$localize`:Video files description␟960582a8b9d7942716866ecfb7718309728f2916␟691504174199627518: Your video files are here `,yO=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,wO=$localize`:No video playlists available text␟78bd81adb4609b68cfa4c589222bdc233ba1faaa␟5049342015162771379: No playlists available. Create one from your downloading audio files by clicking the blue plus button. `,xO=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,kO=$localize`:No video playlists available text␟0f59c46ca29e9725898093c9ea6b586730d0624e␟6806070849891381327: No playlists available. Create one from your downloading video files by clicking the blue plus button. `;let VO=!1,jO=!1,$O=!1,HO=!1,UO=(()=>{class t{constructor(t,e,i,n,s,a,o){this.postsService=t,this.youtubeSearch=e,this.snackBar=i,this.router=n,this.dialog=s,this.platform=a,this.route=o,this.youtubeAuthDisabledOverride=!1,this.iOS=!1,this.determinateProgress=!1,this.downloadingfile=!1,this.multiDownloadMode=!1,this.customArgsEnabled=!1,this.customArgs=null,this.customOutputEnabled=!1,this.customOutput=null,this.youtubeAuthEnabled=!1,this.youtubeUsername=null,this.youtubePassword=null,this.urlError=!1,this.path="",this.url="",this.exists="",this.autoStartDownload=!1,this.fileManagerEnabled=!1,this.allowQualitySelect=!1,this.downloadOnlyMode=!1,this.allowMultiDownloadMode=!1,this.use_youtubedl_archive=!1,this.globalCustomArgs=null,this.allowAdvancedDownload=!1,this.useDefaultDownloadingAgent=!0,this.customDownloadingAgent=null,this.cachedAvailableFormats={},this.youtubeSearchEnabled=!1,this.youtubeAPIKey=null,this.results_loading=!1,this.results_showing=!0,this.results=[],this.mp3s=[],this.mp4s=[],this.files_cols=null,this.playlists={audio:[],video:[]},this.playlist_thumbnails={},this.downloading_content={audio:{},video:{}},this.downloads=[],this.current_download=null,this.urlForm=new Fa("",[Gs.required]),this.qualityOptions={video:[{resolution:null,value:"",label:"Max"},{resolution:"3840x2160",value:"2160",label:"2160p (4K)"},{resolution:"2560x1440",value:"1440",label:"1440p"},{resolution:"1920x1080",value:"1080",label:"1080p"},{resolution:"1280x720",value:"720",label:"720p"},{resolution:"720x480",value:"480",label:"480p"},{resolution:"480x360",value:"360",label:"360p"},{resolution:"360x240",value:"240",label:"240p"},{resolution:"256x144",value:"144",label:"144p"}],audio:[{kbitrate:null,value:"",label:"Max"},{kbitrate:"256",value:"256K",label:"256 Kbps"},{kbitrate:"160",value:"160K",label:"160 Kbps"},{kbitrate:"128",value:"128K",label:"128 Kbps"},{kbitrate:"96",value:"96K",label:"96 Kbps"},{kbitrate:"70",value:"70K",label:"70 Kbps"},{kbitrate:"50",value:"50K",label:"50 Kbps"},{kbitrate:"32",value:"32K",label:"32 Kbps"}]},this.selectedQuality="",this.formats_loading=!1,this.last_valid_url="",this.last_url_check=0,this.test_download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1,error:!1},this.simulatedOutput="",this.audioOnly=!1}configLoad(){return lE(this,void 0,void 0,(function*(){yield this.loadConfig(),this.autoStartDownload&&this.downloadClicked(),setInterval(()=>this.getSimulatedOutput(),1e3)}))}loadConfig(){return lE(this,void 0,void 0,(function*(){if(this.fileManagerEnabled=this.postsService.config.Extra.file_manager_enabled,this.downloadOnlyMode=this.postsService.config.Extra.download_only_mode,this.allowMultiDownloadMode=this.postsService.config.Extra.allow_multi_download_mode,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.use_youtubedl_archive=this.postsService.config.Downloader.use_youtubedl_archive,this.globalCustomArgs=this.postsService.config.Downloader.custom_args,this.youtubeSearchEnabled=this.postsService.config.API&&this.postsService.config.API.use_youtube_API&&this.postsService.config.API.youtube_API_key,this.youtubeAPIKey=this.youtubeSearchEnabled?this.postsService.config.API.youtube_API_key:null,this.allowQualitySelect=this.postsService.config.Extra.allow_quality_select,this.allowAdvancedDownload=this.postsService.config.Advanced.allow_advanced_download&&(!this.postsService.isLoggedIn||this.postsService.permissions.includes("advanced_download")),this.useDefaultDownloadingAgent=this.postsService.config.Advanced.use_default_downloading_agent,this.customDownloadingAgent=this.postsService.config.Advanced.custom_downloading_agent,this.fileManagerEnabled&&(this.getMp3s(),this.getMp4s()),this.youtubeSearchEnabled&&this.youtubeAPIKey&&(this.youtubeSearch.initializeAPI(this.youtubeAPIKey),this.attachToInput()),this.allowAdvancedDownload){null!==localStorage.getItem("customArgsEnabled")&&(this.customArgsEnabled="true"===localStorage.getItem("customArgsEnabled")),null!==localStorage.getItem("customOutputEnabled")&&(this.customOutputEnabled="true"===localStorage.getItem("customOutputEnabled")),null!==localStorage.getItem("youtubeAuthEnabled")&&(this.youtubeAuthEnabled="true"===localStorage.getItem("youtubeAuthEnabled"));const t=localStorage.getItem("customArgs"),e=localStorage.getItem("customOutput"),i=localStorage.getItem("youtubeUsername");t&&"null"!==t&&(this.customArgs=t),e&&"null"!==e&&(this.customOutput=e),i&&"null"!==i&&(this.youtubeUsername=i)}return setInterval(()=>{this.current_download&&this.getCurrentDownload()},500),!0}))}ngOnInit(){this.postsService.initialized?this.configLoad():this.postsService.service_initialized.subscribe(t=>{t&&this.configLoad()}),this.postsService.config_reloaded.subscribe(t=>{t&&this.loadConfig()}),this.iOS=this.platform.IOS,null!==localStorage.getItem("audioOnly")&&(this.audioOnly="true"===localStorage.getItem("audioOnly")),null!==localStorage.getItem("multiDownloadMode")&&(this.multiDownloadMode="true"===localStorage.getItem("multiDownloadMode")),this.route.snapshot.paramMap.get("url")&&(this.url=decodeURIComponent(this.route.snapshot.paramMap.get("url")),this.audioOnly="true"===this.route.snapshot.paramMap.get("audioOnly"),this.autoStartDownload=!0),this.setCols()}getMp3s(){this.postsService.getMp3s().subscribe(t=>{const e=t.mp3s,i=t.playlists;JSON.stringify(this.mp3s)!==JSON.stringify(e)&&(this.mp3s=e),this.playlists.audio=i;for(let n=0;n{console.log(t)})}getMp4s(){this.postsService.getMp4s().subscribe(t=>{const e=t.mp4s,i=t.playlists;JSON.stringify(this.mp4s)!==JSON.stringify(e)&&(this.mp4s=e),this.playlists.video=i;for(let n=0;n{console.log(t)})}setCols(){this.files_cols=window.innerWidth<=350?1:window.innerWidth<=500?2:window.innerWidth<=750?3:4}goToFile(t,e,i){e?this.downloadHelperMp3(t,i,!1,!1,null,!0):this.downloadHelperMp4(t,i,!1,!1,null,!0)}goToPlaylist(t,e){const i=this.getPlaylistObjectByID(t,e);i?this.downloadOnlyMode?(this.downloading_content[e][t]=!0,this.downloadPlaylist(i.fileNames,e,i.name,t)):(localStorage.setItem("player_navigator",this.router.url),this.router.navigate(["/player",{fileNames:i.fileNames.join("|nvr|"),type:e,id:t,uid:t}])):console.error(`Playlist with ID ${t} not found!`)}getPlaylistObjectByID(t,e){for(let i=0;i{t.success&&(this.playlists.audio.splice(e,1),this.openSnackBar("Playlist successfully removed.","")),this.getMp3s()})}removeFromMp4(t){for(let e=0;e{t.success&&(this.playlists.video.splice(e,1),this.openSnackBar("Playlist successfully removed.","")),this.getMp4s()})}downloadHelperMp3(t,e,i=!1,n=!1,s=null,a=!1){if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||a)if(!1===n&&this.downloadOnlyMode&&!this.iOS)if(i){const e=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"audio",e)}else this.downloadAudioFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(i?["/player",{fileNames:t.join("|nvr|"),type:"audio"}]:["/player",{type:"audio",uid:e}]);this.removeDownloadFromCurrentDownloads(s),this.fileManagerEnabled&&(this.getMp3s(),setTimeout(()=>{this.audioFileCards.forEach(t=>{t.onHoverResponse()})},200))}downloadHelperMp4(t,e,i=!1,n=!1,s=null,a=!1){if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||a)if(!1===n&&this.downloadOnlyMode)if(i){const e=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"video",e)}else this.downloadVideoFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(i?["/player",{fileNames:t.join("|nvr|"),type:"video"}]:["/player",{type:"video",uid:e}]);this.removeDownloadFromCurrentDownloads(s),this.fileManagerEnabled&&(this.getMp4s(),setTimeout(()=>{this.videoFileCards.forEach(t=>{t.onHoverResponse()})},200))}downloadClicked(){if(this.ValidURL(this.url)){this.urlError=!1,this.path="";const t=this.customArgsEnabled?this.customArgs:null,e=this.customOutputEnabled?this.customOutput:null,i=this.youtubeAuthEnabled&&this.youtubeUsername?this.youtubeUsername:null,n=this.youtubeAuthEnabled&&this.youtubePassword?this.youtubePassword:null;if(this.allowAdvancedDownload&&(t&&localStorage.setItem("customArgs",t),e&&localStorage.setItem("customOutput",e),i&&localStorage.setItem("youtubeUsername",i)),this.audioOnly){const s={uid:Object(kE.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;let a=null;""!==this.selectedQuality&&(a=this.getSelectedAudioFormat()),this.postsService.makeMP3(this.url,""===this.selectedQuality?null:this.selectedQuality,a,t,e,i,n,s.uid).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.audiopathEncoded,this.current_download=null,"-1"!==this.path&&this.downloadHelperMp3(this.path,t.uid,e,!1,s)},t=>{this.downloadingfile=!1,this.current_download=null,s.downloading=!1;const e=this.downloads.indexOf(s);-1!==e&&this.downloads.splice(e),this.openSnackBar("Download failed!","OK.")})}else{const s={uid:Object(kE.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;const a=this.getSelectedVideoFormat();this.postsService.makeMP4(this.url,""===this.selectedQuality?null:this.selectedQuality,a,t,e,i,n,s.uid).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.videopathEncoded,this.current_download=null,"-1"!==this.path&&this.downloadHelperMp4(this.path,t.uid,e,!1,s)},t=>{this.downloadingfile=!1,this.current_download=null,s.downloading=!1;const e=this.downloads.indexOf(s);-1!==e&&this.downloads.splice(e),this.openSnackBar("Download failed!","OK.")})}this.multiDownloadMode&&(this.url="",this.downloadingfile=!1)}else this.urlError=!0}cancelDownload(t=null){t?this.removeDownloadFromCurrentDownloads(t):(this.downloadingfile=!1,this.current_download.downloading=!1,this.current_download=null)}getSelectedAudioFormat(){return""===this.selectedQuality?null:this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats?this.cachedAvailableFormats[this.url].formats.audio[this.selectedQuality].format_id:null}getSelectedVideoFormat(){if(""===this.selectedQuality)return null;if(this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats){const t=this.cachedAvailableFormats[this.url].formats.video;if(t.best_audio_format&&""!==this.selectedQuality)return t[this.selectedQuality].format_id+"+"+t.best_audio_format}return null}getDownloadByUID(t){const e=this.downloads.findIndex(e=>e.uid===t);return-1!==e?this.downloads[e]:null}removeDownloadFromCurrentDownloads(t){this.current_download===t&&(this.current_download=null);const e=this.downloads.indexOf(t);return-1!==e&&(this.downloads.splice(e,1),!0)}downloadAudioFile(t){this.downloading_content.audio[t]=!0,this.postsService.downloadFileFromServer(t,"audio").subscribe(e=>{this.downloading_content.audio[t]=!1;const i=e;Object(cE.saveAs)(i,decodeURIComponent(t)+".mp3"),this.fileManagerEnabled||this.postsService.deleteFile(t,!0).subscribe(t=>{this.getMp3s()})})}downloadVideoFile(t){this.downloading_content.video[t]=!0,this.postsService.downloadFileFromServer(t,"video").subscribe(e=>{this.downloading_content.video[t]=!1;const i=e;Object(cE.saveAs)(i,decodeURIComponent(t)+".mp4"),this.fileManagerEnabled||this.postsService.deleteFile(t,!1).subscribe(t=>{this.getMp4s()})})}downloadPlaylist(t,e,i=null,n=null){this.postsService.downloadFileFromServer(t,e,i).subscribe(t=>{n&&(this.downloading_content[e][n]=!1);const s=t;Object(cE.saveAs)(s,i+".zip")})}clearInput(){this.url="",this.results_showing=!1}onInputBlur(){this.results_showing=!1}visitURL(t){window.open(t)}useURL(t){this.results_showing=!1,this.url=t}inputChanged(t){""!==t&&t?this.ValidURL(t)&&(this.results_showing=!1):this.results_showing=!1}ValidURL(t){const e=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t);return!!e&&(new RegExp(/(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'<> #]+)/),e&&Date.now()-this.last_url_check>1e3&&(t!==this.last_valid_url&&this.allowQualitySelect&&this.getURLInfo(t),this.last_valid_url=t),e)}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}getURLInfo(t){t.includes("playlist")||(this.cachedAvailableFormats[t]||(this.cachedAvailableFormats[t]={}),this.cachedAvailableFormats[t]&&this.cachedAvailableFormats[t].formats||(this.cachedAvailableFormats[t].formats_loading=!0,this.postsService.getFileInfo([t],"irrelevant",!0).subscribe(e=>{this.cachedAvailableFormats[t].formats_loading=!1;const i=e.result;if(!i||!i.formats)return void this.errorFormats(t);const n=this.getAudioAndVideoFormats(i.formats);this.cachedAvailableFormats[t].formats={audio:n[0],video:n[1]}},e=>{this.errorFormats(t)})))}getSimulatedOutput(){const t=this.globalCustomArgs&&""!==this.globalCustomArgs;let e=[];const i=["youtube-dl",this.url];if(this.customArgsEnabled&&this.customArgs)return this.simulatedOutput=i.join(" ")+" "+this.customArgs.split(",,").join(" "),this.simulatedOutput;e.push(...i);const n=this.audioOnly?this.audioFolderPath:this.videoFolderPath,s=this.audioOnly?".mp3":".mp4";let a=["-o",n+"%(title)s"+s];if(this.customOutputEnabled&&this.customOutput&&(a=["-o",n+this.customOutput+s]),this.useDefaultDownloadingAgent||"aria2c"!==this.customDownloadingAgent||e.push("--external-downloader","aria2c"),e.push(...a),this.audioOnly){const t=[],i=this.getSelectedAudioFormat();i?t.push("-f",i):this.selectedQuality&&t.push("--audio-quality",this.selectedQuality),e.splice(2,0,...t),e.push("-x","--audio-format","mp3","--write-info-json","--print-json")}else{let t=["-f","bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"];const i=this.getSelectedVideoFormat();i?t=["-f",i]:this.selectedQuality&&(t=[`bestvideo[height=${this.selectedQuality}]+bestaudio/best[height=${this.selectedQuality}]`]),e.splice(2,0,...t),e.push("--write-info-json","--print-json")}return this.use_youtubedl_archive&&e.push("--download-archive","archive.txt"),t&&(e=e.concat(this.globalCustomArgs.split(",,"))),this.simulatedOutput=e.join(" "),this.simulatedOutput}errorFormats(t){this.cachedAvailableFormats[t].formats_loading=!1,console.error("Could not load formats for url "+t)}attachToInput(){si.a.fromEvent(this.urlInput.nativeElement,"keyup").map(t=>t.target.value).filter(t=>t.length>1).debounceTime(250).do(()=>this.results_loading=!0).map(t=>this.youtubeSearch.search(t)).switch().subscribe(t=>{this.results_loading=!1,""!==this.url&&t&&t.length>0?(this.results=t,this.results_showing=!0):this.results_showing=!1},t=>{console.log(t),this.results_loading=!1,this.results_showing=!1},()=>{this.results_loading=!1})}onResize(t){this.setCols()}videoModeChanged(t){this.selectedQuality="",localStorage.setItem("audioOnly",t.checked.toString())}multiDownloadModeChanged(t){localStorage.setItem("multiDownloadMode",t.checked.toString())}customArgsEnabledChanged(t){localStorage.setItem("customArgsEnabled",t.checked.toString()),!0===t.checked&&this.customOutputEnabled&&(this.customOutputEnabled=!1,localStorage.setItem("customOutputEnabled","false"),this.youtubeAuthEnabled=!1,localStorage.setItem("youtubeAuthEnabled","false"))}customOutputEnabledChanged(t){localStorage.setItem("customOutputEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}youtubeAuthEnabledChanged(t){localStorage.setItem("youtubeAuthEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}getAudioAndVideoFormats(t){const e={},i={};for(let n=0;ni&&(e=a.format_id,i=a.bitrate)}return e}accordionEntered(t){"audio"===t?(VO=!0,this.audioFileCards.forEach(t=>{t.onHoverResponse()})):"video"===t&&(jO=!0,this.videoFileCards.forEach(t=>{t.onHoverResponse()}))}accordionLeft(t){"audio"===t?VO=!1:"video"===t&&(jO=!1)}accordionOpened(t){"audio"===t?$O=!0:"video"===t&&(HO=!0)}accordionClosed(t){"audio"===t?$O=!1:"video"===t&&(HO=!1)}openCreatePlaylistDialog(t){this.dialog.open(xE,{data:{filesToSelectFrom:"audio"===t?this.mp3s:this.mp4s,type:t}}).afterClosed().subscribe(e=>{e?("audio"===t&&this.getMp3s(),"video"===t&&this.getMp4s(),this.openSnackBar("Successfully created playlist!","")):!1===e&&this.openSnackBar("ERROR: failed to create playlist!","")})}openArgsModifierDialog(){this.dialog.open(Vk,{data:{initial_args:this.customArgs}}).afterClosed().subscribe(t=>{null!=t&&(this.customArgs=t)})}getCurrentDownload(){if(!this.current_download)return;const t=this.current_download.ui_uid?this.current_download.ui_uid:this.current_download.uid;this.postsService.getCurrentDownload(this.postsService.session_id,t).subscribe(e=>{e.download&&t===e.download.ui_uid&&(this.current_download=e.download,this.percentDownloaded=this.current_download.percent_complete)})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(hE),s.Dc(Hg),s.Dc(wx),s.Dc(bd),s.Dc(_i),s.Dc(pw))},t.\u0275cmp=s.xc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.Fd(CE,!0,s.r),s.Fd(SE,!0),s.Fd(IE,!0)),2&t&&(s.md(i=s.Xc())&&(e.urlInput=i.first),s.md(i=s.Xc())&&(e.audioFileCards=i),s.md(i=s.Xc())&&(e.videoFileCards=i))},decls:41,vars:16,consts:[[1,"big","demo-basic"],["id","card",2,"margin-right","20px","margin-left","20px",3,"ngClass"],[2,"position","relative"],[1,"example-form"],[1,"container-fluid"],[1,"row"],[1,"col-12",3,"ngClass"],["color","accent",1,"example-full-width"],["matInput","","type","url","name","url",2,"padding-right","25px",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["urlinput",""],["type","button","mat-icon-button","",1,"input-clear-button",3,"click"],["class","col-7 col-sm-3",4,"ngIf"],["class","results-div",4,"ngIf"],[2,"float","left","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["style","float: right; margin-top: -12px",3,"disabled","ngModel","change","ngModelChange",4,"ngIf"],["type","submit","mat-stroked-button","","color","accent",2,"margin-left","8px","margin-bottom","8px",3,"disabled","click"],["style","float: right","mat-stroked-button","","color","warn",3,"click",4,"ngIf"],["class","big demo-basic",4,"ngIf"],["style","margin-top: 15px;","class","big demo-basic",4,"ngIf"],["class","centered big","id","bar_div",4,"ngIf","ngIfElse"],["nofile",""],["style","margin: 20px",4,"ngIf"],["nomp3s",""],["nomp4s",""],[1,"col-7","col-sm-3"],["color","accent",2,"display","inline-block","width","inherit","min-width","120px"],[3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["class","spinner-div",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value"],[1,"spinner-div"],[3,"diameter"],[1,"results-div"],[1,"result-card","mat-elevation-z7",3,"ngClass"],[1,"search-card-title"],[2,"font-size","12px","margin-bottom","10px"],["mat-flat-button","","color","primary",2,"float","left",3,"click"],["mat-stroked-button","","color","primary",2,"float","right",3,"click"],[2,"float","right","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["mat-stroked-button","","color","warn",2,"float","right",3,"click"],[2,"margin-left","20px","margin-right","20px"],[1,"big","no-border-radius-top"],[4,"ngIf"],[1,"container",2,"padding-bottom","20px"],[1,"col-12","col-sm-6"],["color","accent",2,"z-index","999",3,"disabled","ngModel","ngModelOptions","change","ngModelChange"],["mat-icon-button","",1,"edit-button",3,"click"],["color","accent",1,"advanced-input",2,"margin-bottom","42px"],["matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["class","col-12 col-sm-6 mt-2",4,"ngIf"],[1,"col-12","col-sm-6","mt-2"],["color","accent",1,"advanced-input"],["color","accent",1,"advanced-input",2,"margin-top","31px"],["type","password","matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],[1,"big","demo-basic",2,"margin-top","15px"],["id","card",2,"margin-right","20px","margin-left","20px"],[1,"container"],["class","row",4,"ngFor","ngForOf"],[2,"width","100%",3,"download","queueNumber","cancelDownload"],["style","position: relative",4,"ngIf"],["id","bar_div",1,"centered","big"],[1,"margined"],["style","display: inline-block; width: 100%; padding-left: 20px",3,"ngClass",4,"ngIf","ngIfElse"],["class","spinner",4,"ngIf"],["indeterminateprogress",""],[2,"display","inline-block","width","100%","padding-left","20px",3,"ngClass"],["mode","determinate",2,"border-radius","5px",3,"value"],[1,"spinner"],["mode","indeterminate",2,"border-radius","5px"],[2,"margin","20px"],[1,"big",3,"opened","closed","mouseleave","mouseenter"],[4,"ngIf","ngIfElse"],["rowHeight","150px",2,"margin-bottom","15px",3,"cols","resize"],[2,"width","100%","text-align","center","margin-top","10px"],["rowHeight","150px",3,"cols","resize",4,"ngIf"],[1,"add-playlist-button"],["mat-fab","",3,"click"],[3,"file","title","name","uid","thumbnailURL","length","isAudio","use_youtubedl_archive","removeFile"],["audiofilecard",""],["class","download-progress-bar","mode","indeterminate",4,"ngIf"],["mode","indeterminate",1,"download-progress-bar"],["rowHeight","150px",3,"cols","resize"],[3,"title","name","thumbnailURL","length","isAudio","playlist","count","use_youtubedl_archive","removeFile"],["videofilecard",""]],template:function(t,e){if(1&t&&(s.Ec(0,"br"),s.Jc(1,"div",0),s.Jc(2,"mat-card",1),s.Jc(3,"mat-card-title"),s.Hc(4),s.Nc(5,DE),s.Gc(),s.Ic(),s.Jc(6,"mat-card-content"),s.Jc(7,"div",2),s.Jc(8,"form",3),s.Jc(9,"div",4),s.Jc(10,"div",5),s.Jc(11,"div",6),s.Jc(12,"mat-form-field",7),s.Jc(13,"input",8,9),s.Wc("keyup.enter",(function(){return e.downloadClicked()}))("ngModelChange",(function(t){return e.inputChanged(t)}))("ngModelChange",(function(t){return e.url=t})),s.Ic(),s.Ic(),s.Jc(15,"button",10),s.Wc("click",(function(){return e.clearInput()})),s.Jc(16,"mat-icon"),s.Bd(17,"clear"),s.Ic(),s.Ic(),s.Ic(),s.zd(18,FE,8,5,"div",11),s.Ic(),s.Ic(),s.zd(19,JE,2,1,"div",12),s.Ic(),s.Ec(20,"br"),s.Jc(21,"mat-checkbox",13),s.Wc("change",(function(t){return e.videoModeChanged(t)}))("ngModelChange",(function(t){return e.audioOnly=t})),s.Hc(22),s.Nc(23,EE),s.Gc(),s.Ic(),s.zd(24,UE,3,2,"mat-checkbox",14),s.Ic(),s.Ic(),s.Jc(25,"mat-card-actions"),s.Jc(26,"button",15),s.Wc("click",(function(){return e.downloadClicked()})),s.Hc(27),s.Nc(28,OE),s.Gc(),s.Ic(),s.zd(29,GE,3,0,"button",16),s.Ic(),s.Ic(),s.Ic(),s.zd(30,oO,39,19,"div",17),s.zd(31,dO,4,1,"div",18),s.Ec(32,"br"),s.zd(33,mO,7,3,"div",19),s.zd(34,gO,0,0,"ng-template",null,20,s.Ad),s.zd(36,LO,20,4,"div",21),s.zd(37,BO,0,0,"ng-template",null,22,s.Ad),s.zd(39,JO,0,0,"ng-template",null,23,s.Ad)),2&t){const t=s.nd(35);s.pc(2),s.gd("ngClass",e.allowAdvancedDownload?"no-border-radius-bottom":null),s.pc(9),s.gd("ngClass",e.allowQualitySelect?"col-sm-9":null),s.pc(2),s.gd("ngModel",e.url)("placeholder","URL"+(e.youtubeSearchEnabled?" or search":"")),s.pc(5),s.gd("ngIf",e.allowQualitySelect),s.pc(1),s.gd("ngIf",e.results_showing),s.pc(2),s.gd("disabled",e.current_download)("ngModel",e.audioOnly),s.pc(3),s.gd("ngIf",e.allowMultiDownloadMode),s.pc(2),s.gd("disabled",e.downloadingfile),s.pc(3),s.gd("ngIf",!!e.current_download),s.pc(1),s.gd("ngIf",e.allowAdvancedDownload),s.pc(1),s.gd("ngIf",e.multiDownloadMode&&e.downloads.length>0&&!e.current_download),s.pc(2),s.gd("ngIf",e.current_download&&e.current_download.downloading)("ngIfElse",t),s.pc(3),s.gd("ngIf",e.fileManagerEnabled&&(!e.postsService.isLoggedIn||e.postsService.permissions.includes("filemanager")))}},styles:[".demo-card[_ngcontent-%COMP%]{margin:16px}.demo-basic[_ngcontent-%COMP%]{padding:0}.demo-basic[_ngcontent-%COMP%] .mat-card-content[_ngcontent-%COMP%]{padding:16px}mat-toolbar.top[_ngcontent-%COMP%]{height:60px;width:100%;text-align:center}.big[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.example-full-width[_ngcontent-%COMP%]{width:100%}.example-80-width[_ngcontent-%COMP%]{width:80%}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:24px}.spinner[_ngcontent-%COMP%]{position:absolute;display:inline-block;margin-left:-28px;margin-top:-10px}.make-room-for-spinner[_ngcontent-%COMP%]{padding-right:40px}.equal-sizes[_ngcontent-%COMP%]{padding-right:20px}.search-card-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.input-clear-button[_ngcontent-%COMP%]{position:absolute;right:5px;top:22px}.spinner-div[_ngcontent-%COMP%]{display:inline-block;position:absolute;top:15px;right:-40px}.margined[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.results-div[_ngcontent-%COMP%]{position:relative;top:-15px}.first-result-card[_ngcontent-%COMP%]{border-radius:4px 4px 0 0!important}.last-result-card[_ngcontent-%COMP%]{border-radius:0 0 4px 4px!important}.only-result-card[_ngcontent-%COMP%]{border-radius:4px!important}.result-card[_ngcontent-%COMP%]{height:120px;border-radius:0;padding-bottom:5px}.download-progress-bar[_ngcontent-%COMP%]{z-index:999;position:absolute;bottom:0;width:150px;border-radius:0 0 4px 4px;overflow:hidden;bottom:12px}.add-playlist-button[_ngcontent-%COMP%]{float:right}.advanced-input[_ngcontent-%COMP%]{width:100%}.edit-button[_ngcontent-%COMP%]{margin-left:10px;top:-5px}.no-border-radius-bottom[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.no-border-radius-top[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}@media (max-width:576px){.download-progress-bar[_ngcontent-%COMP%]{width:125px}}"]}),t})();si.a.merge=xr.a;var GO,WO,qO,KO,XO,YO,ZO,QO=i("zuWl"),tA=i.n(QO);GO=$localize`:Video name property␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`,WO=$localize`:Video URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,qO=$localize`:Video ID property␟c6eb45d085384903e53ab001a3513d1de6a1dbac␟6975318892267864632:Uploader:`,KO=$localize`:Video file size property␟109c6f4a5e46efb933612ededfaf52a13178b7e0␟8712868262622854125:File size:`,XO=$localize`:Video path property␟bd630d8669b16e5f264ec4649d9b469fe03e5ff4␟2612252809311306032:Path:`,YO=$localize`:Video upload date property␟a67e7d843cef735c79d5ef1c8ba4af3e758912bb␟73382088968432490:Upload Date:`,ZO=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let eA=(()=>{class t{constructor(t){this.data=t}ngOnInit(){this.filesize=tA.a,this.data&&(this.file=this.data.file)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(pd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-video-info-dialog"]],decls:56,vars:8,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-label"],[1,"info-item-value"],["target","_blank",3,"href"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Bd(1),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div",1),s.Jc(4,"div",2),s.Jc(5,"strong"),s.Hc(6),s.Nc(7,GO),s.Gc(),s.Bd(8,"\xa0"),s.Ic(),s.Ic(),s.Jc(9,"div",3),s.Bd(10),s.Ic(),s.Ic(),s.Jc(11,"div",1),s.Jc(12,"div",2),s.Jc(13,"strong"),s.Hc(14),s.Nc(15,WO),s.Gc(),s.Bd(16,"\xa0"),s.Ic(),s.Ic(),s.Jc(17,"div",3),s.Jc(18,"a",4),s.Bd(19),s.Ic(),s.Ic(),s.Ic(),s.Jc(20,"div",1),s.Jc(21,"div",2),s.Jc(22,"strong"),s.Hc(23),s.Nc(24,qO),s.Gc(),s.Bd(25,"\xa0"),s.Ic(),s.Ic(),s.Jc(26,"div",3),s.Bd(27),s.Ic(),s.Ic(),s.Jc(28,"div",1),s.Jc(29,"div",2),s.Jc(30,"strong"),s.Hc(31),s.Nc(32,KO),s.Gc(),s.Bd(33,"\xa0"),s.Ic(),s.Ic(),s.Jc(34,"div",3),s.Bd(35),s.Ic(),s.Ic(),s.Jc(36,"div",1),s.Jc(37,"div",2),s.Jc(38,"strong"),s.Hc(39),s.Nc(40,XO),s.Gc(),s.Bd(41,"\xa0"),s.Ic(),s.Ic(),s.Jc(42,"div",3),s.Bd(43),s.Ic(),s.Ic(),s.Jc(44,"div",1),s.Jc(45,"div",2),s.Jc(46,"strong"),s.Hc(47),s.Nc(48,YO),s.Gc(),s.Bd(49,"\xa0"),s.Ic(),s.Ic(),s.Jc(50,"div",3),s.Bd(51),s.Ic(),s.Ic(),s.Ic(),s.Jc(52,"mat-dialog-actions"),s.Jc(53,"button",5),s.Hc(54),s.Nc(55,ZO),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.Cd(e.file.title),s.pc(9),s.Cd(e.file.title),s.pc(8),s.gd("href",e.file.url,s.td),s.pc(1),s.Cd(e.file.url),s.pc(8),s.Cd(e.file.uploader?e.file.uploader:"N/A"),s.pc(8),s.Cd(e.file.size?e.filesize(e.file.size):"N/A"),s.pc(8),s.Cd(e.file.path?e.file.path:"N/A"),s.pc(8),s.Cd(e.file.upload_date?e.file.upload_date:"N/A"))},directives:[yd,wd,xd,bs,vd],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px;width:100%}.info-item-value[_ngcontent-%COMP%]{font-size:13px;display:inline-block;width:70%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.info-item-label[_ngcontent-%COMP%]{display:inline-block;width:30%;vertical-align:top}.a-wrap[_ngcontent-%COMP%]{word-wrap:break-word}"]}),t})();var iA;iA=$localize`:Modify playlist dialog title␟4f389e41e4592f7f9bb76abdd8af4afdfb13f4f1␟6411548663373200045:Modify playlist`;const nA=["placeholder",$localize`:Name␟cff1428d10d59d14e45edec3c735a27b5482db59␟8953033926734869941:Name`];function sA(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-button-toggle",11),s.Jc(1,"div"),s.Jc(2,"div",12),s.Bd(3),s.Ic(),s.Jc(4,"button",13),s.Wc("click",(function(){s.rd(t);const i=e.index;return s.ad().removeContent(i)})),s.Jc(5,"mat-icon"),s.Bd(6,"cancel"),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit;s.gd("checked",!1),s.pc(3),s.Cd(t)}}function aA(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",14),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad().addContent(i)})),s.Bd(1),s.Ic()}if(2&t){const t=e.$implicit;s.pc(1),s.Cd(t)}}let oA=(()=>{class t{constructor(t,e,i){this.data=t,this.postsService=e,this.dialogRef=i,this.original_playlist=null,this.playlist=null,this.available_files=[],this.all_files=[],this.playlist_updated=!1}ngOnInit(){this.data&&(this.playlist=JSON.parse(JSON.stringify(this.data.playlist)),this.original_playlist=JSON.parse(JSON.stringify(this.data.playlist)),this.getFiles())}getFiles(){"audio"===this.playlist.type?this.postsService.getMp3s().subscribe(t=>{this.processFiles(t.mp3s)}):this.postsService.getMp4s().subscribe(t=>{this.processFiles(t.mp4s)})}processFiles(t=null){t&&(this.all_files=t.map(t=>t.id)),this.available_files=this.all_files.filter(t=>!this.playlist.fileNames.includes(t))}updatePlaylist(){this.postsService.updatePlaylist(this.playlist).subscribe(t=>{this.playlist_updated=!0,this.postsService.openSnackBar("Playlist updated successfully."),this.getPlaylist()})}playlistChanged(){return JSON.stringify(this.playlist)===JSON.stringify(this.original_playlist)}getPlaylist(){this.postsService.getPlaylist(this.playlist.id,this.playlist.type,null).subscribe(t=>{t.playlist&&(this.playlist=t.playlist,this.original_playlist=JSON.parse(JSON.stringify(this.playlist)))})}addContent(t){this.playlist.fileNames.push(t),this.processFiles()}removeContent(t){this.playlist.fileNames.splice(t,1),this.processFiles()}drop(t){sv(this.playlist.fileNames,t.previousIndex,t.currentIndex)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(pd),s.Dc(Wx),s.Dc(ud))},t.\u0275cmp=s.xc({type:t,selectors:[["app-modify-playlist"]],decls:20,vars:7,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["cdkDropList","","vertical","","name","videoSelect","aria-label","Video Select",1,"media-list",2,"width","80%","left","9%",3,"cdkDropListDropped"],["group","matButtonToggleGroup"],["class","media-box","cdkDrag","",3,"checked",4,"ngFor","ngForOf"],[1,"add-content-button"],["mat-stroked-button","",3,"disabled","matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-raised-button","","color","accent",3,"disabled","click"],["cdkDrag","",1,"media-box",3,"checked"],[1,"playlist-item-text"],["mat-icon-button","",1,"remove-item-button",3,"click"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(s.Jc(0,"h4",0),s.Hc(1),s.Nc(2,iA),s.Gc(),s.Ic(),s.Jc(3,"mat-dialog-content"),s.Jc(4,"div"),s.Jc(5,"mat-form-field",1),s.Jc(6,"input",2),s.Pc(7,nA),s.Wc("ngModelChange",(function(t){return e.playlist.name=t})),s.Ic(),s.Ic(),s.Ic(),s.Jc(8,"mat-button-toggle-group",3,4),s.Wc("cdkDropListDropped",(function(t){return e.drop(t)})),s.zd(10,sA,7,2,"mat-button-toggle",5),s.Ic(),s.Jc(11,"div",6),s.Jc(12,"button",7),s.Bd(13,"Add more content"),s.Ic(),s.Ic(),s.Jc(14,"mat-menu",null,8),s.zd(16,aA,2,1,"button",9),s.Ic(),s.Ic(),s.Jc(17,"mat-dialog-actions"),s.Jc(18,"button",10),s.Wc("click",(function(){return e.updatePlaylist()})),s.Bd(19,"Save"),s.Ic(),s.Ic()),2&t){const t=s.nd(15);s.pc(6),s.gd("ngModel",e.playlist.name),s.pc(4),s.gd("ngForOf",e.playlist.fileNames),s.pc(2),s.gd("disabled",0===e.available_files.length)("matMenuTriggerFor",t),s.pc(4),s.gd("ngForOf",e.available_files),s.pc(2),s.gd("disabled",!e.playlistChanged())("disabled",e.playlistChanged())}},directives:[yd,wd,Bc,Ru,Rs,Js,qa,Ro,Av,ve.s,bs,Ep,Cp,xd,No,Iv,vu,_p],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.media-box[_ngcontent-%COMP%]:last-child{border:none}.media-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .media-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.add-content-button[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:10px}.remove-item-button[_ngcontent-%COMP%]{right:10px;position:absolute;top:4px}.playlist-item-text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%;margin:0 auto}"]}),t})();const rA=new si.a(Be.a);function lA(t,e){t.className=t.className.replace(e,"")}function cA(t,e){t.className.includes(e)||(t.className+=` ${e}`)}function dA(){return"undefined"!=typeof window?window.navigator:void 0}function hA(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function uA(t){return"img"===t.nodeName.toLowerCase()}function pA(t,e,i){return uA(t)?i&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage=`url('${e}')`,t}function mA(t){return e=>{const i=e.parentElement.getElementsByTagName("source");for(let n=0;n{uA(e)&&hA(e)&&t(e),i&&pA(e,i,n)}}const vA=_A(gA),yA=_A(fA),wA=_A(bA),xA={finally:({element:t})=>{cA(t,"ng-lazyloaded"),lA(t,"ng-lazyloading")},loadImage:({element:t,useSrcset:e,imagePath:i,decode:n})=>{let s;if(uA(t)&&hA(t)){const n=t.parentNode.cloneNode(!0);s=n.getElementsByTagName("img")[0],fA(s),pA(s,i,e)}else s=new Image,uA(t)&&t.sizes&&(s.sizes=t.sizes),e&&"srcset"in s?s.srcset=i:s.src=i;return n&&s.decode?s.decode().then(()=>i):new Promise((t,e)=>{s.onload=()=>t(i),s.onerror=()=>e(null)})},setErrorImage:({element:t,errorImagePath:e,useSrcset:i})=>{wA(t,e,i),cA(t,"ng-failed-lazyloaded")},setLoadedImage:({element:t,imagePath:e,useSrcset:i})=>{yA(t,e,i)},setup:({element:t,defaultImagePath:e,useSrcset:i})=>{vA(t,e,i),cA(t,"ng-lazyloading"),function(t,e){return t.className&&t.className.includes("ng-lazyloaded")}(t)&&lA(t,"ng-lazyloaded")},isBot:t=>!(!t||!t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(t.userAgent)},kA=new WeakMap,CA=new Pe.a;function SA(t){t.forEach(t=>CA.next(t))}const IA={},DA=t=>{const e=t.scrollContainer||IA,i={root:t.scrollContainer||null};t.offset&&(i.rootMargin=`${t.offset}px`);let n=kA.get(e);return n||(n=new IntersectionObserver(SA,i),kA.set(e,n)),n.observe(t.element),si.a.create(e=>{const i=CA.pipe(Qe(e=>e.target===t.element)).subscribe(e);return()=>{i.unsubscribe(),n.unobserve(t.element)}})},EA=Object.assign({},xA,{isVisible:({event:t})=>t.isIntersecting,getObservable:(t,e=DA)=>t.customObservable?t.customObservable:e(t)}),OA=Object.assign({},xA,{isVisible:()=>!0,getObservable:()=>Ne("load"),loadImage:({imagePath:t})=>[t]});let AA=(()=>{let t=class{constructor(t,e,i,n){this.onStateChange=new s.u,this.onLoad=new s.u,this.elementRef=t,this.ngZone=e,this.propertyChanges$=new cl,this.platformId=i,this.hooks=function(t,e){const i=EA,n=e&&e.isBot?e.isBot:i.isBot;if(n(dA(),t))return Object.assign(OA,{isBot:n});if(!e)return i;const s={};return Object.assign(s,e.preset?e.preset:i),Object.keys(e).filter(t=>"preset"!==t).forEach(t=>{s[t]=e[t]}),s}(i,n)}ngOnChanges(){!0!==this.debug||this.debugSubscription||(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange})}ngAfterContentInit(){if(Object(ve.J)(this.platformId)&&!this.hooks.isBot(dA(),this.platformId))return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(Ve(t=>t.onStateChange.emit({reason:"setup"})),Ve(t=>this.hooks.setup(t)),Xr(t=>t.imagePath?this.hooks.getObservable(t).pipe(function(t,e){return i=>i.pipe(Ve(t=>e.onStateChange.emit({reason:"observer-emit",data:t})),Qe(i=>t.isVisible({element:e.element,event:i,offset:e.offset,scrollContainer:e.scrollContainer})),ri(1),Ve(()=>e.onStateChange.emit({reason:"start-loading"})),Object(Sh.a)(()=>t.loadImage(e)),Ve(()=>e.onStateChange.emit({reason:"mount-image"})),Ve(i=>t.setLoadedImage({element:e.element,imagePath:i,useSrcset:e.useSrcset})),Ve(()=>e.onStateChange.emit({reason:"loading-succeeded"})),Object(ii.a)(()=>!0),_h(i=>(e.onStateChange.emit({reason:"loading-failed",data:i}),t.setErrorImage(e),Ne(!1))),Ve(()=>{e.onStateChange.emit({reason:"finally"}),t.finally(e)}))}(this.hooks,t)):rA)).subscribe(t=>this.onLoad.emit(t))})}ngOnDestroy(){var t,e;null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(e=this.debugSubscription)||void 0===e||e.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(s.M),s.Dc("options",8))},t.\u0275dir=s.yc({type:t,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange",onLoad:"onLoad"},features:[s.nc]}),t})();var PA;let TA=(()=>{let t=PA=class{static forRoot(t){return{ngModule:PA,providers:[{provide:"options",useValue:t}]}}};return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();var RA,MA,FA,NA,zA,LA,BA;function JA(t,e){if(1&t&&(s.Jc(0,"div"),s.Hc(1),s.Nc(2,LA),s.Gc(),s.Bd(3),s.Ic()),2&t){const t=s.ad();s.pc(3),s.Dd("\xa0",t.count,"")}}function VA(t,e){1&t&&s.Ec(0,"span")}function jA(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",12),s.Jc(1,"img",13),s.Wc("error",(function(e){return s.rd(t),s.ad().onImgError(e)}))("onLoad",(function(e){return s.rd(t),s.ad().imageLoaded(e)})),s.Ic(),s.zd(2,VA,1,0,"span",5),s.Ic()}if(2&t){const t=s.ad();s.pc(1),s.gd("id",t.type)("lazyLoad",t.thumbnailURL)("customObservable",t.scrollAndLoad),s.pc(1),s.gd("ngIf",!t.image_loaded)}}function $A(t,e){if(1&t&&(s.Jc(0,"button",14),s.Jc(1,"mat-icon"),s.Bd(2,"more_vert"),s.Ic(),s.Ic()),2&t){s.ad();const t=s.nd(15);s.gd("matMenuTriggerFor",t)}}function HA(t,e){if(1&t&&(s.Jc(0,"button",14),s.Jc(1,"mat-icon"),s.Bd(2,"more_vert"),s.Ic(),s.Ic()),2&t){s.ad();const t=s.nd(28);s.gd("matMenuTriggerFor",t)}}function UA(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",9),s.Wc("click",(function(){return s.rd(t),s.ad().deleteFile(!0)})),s.Jc(1,"mat-icon"),s.Bd(2,"delete_forever"),s.Ic(),s.Hc(3),s.Nc(4,BA),s.Gc(),s.Ic()}}RA=$localize`:File or playlist ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,MA=$localize`:Playlist edit button␟28f86ffd419b869711aa13f5e5ff54be6d70731c␟7585826646011739428:Edit`,FA=$localize`:Delete playlist␟826b25211922a1b46436589233cb6f1a163d89b7␟7022070615528435141:Delete`,NA=$localize`:Video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,zA=$localize`:Delete video button␟826b25211922a1b46436589233cb6f1a163d89b7␟7022070615528435141:Delete`,LA=$localize`:Playlist video count␟e684046d73bcee88e82f7ff01e2852789a05fc32␟6836949342567686088:Count:`,BA=$localize`:Delete and blacklist video button␟34504b488c24c27e68089be549f0eeae6ebaf30b␟593208667984994894:Delete and blacklist`;let GA=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.mainComponent=i,this.dialog=n,this.isAudio=!0,this.removeFile=new s.u,this.playlist=null,this.count=null,this.use_youtubedl_archive=!1,this.image_loaded=!1,this.image_errored=!1,this.scrollSubject=new Pe.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}ngOnInit(){if(this.type=this.isAudio?"audio":"video",this.file&&this.file.url&&this.file.url.includes("youtu")){const t=this.playlist?6:3,e=this.file.url.indexOf(this.playlist?"?list=":"?v=")+t;this.name=this.file.url.substring(e,this.file.url.length)}}deleteFile(t=!1){this.playlist?this.removeFile.emit(this.name):this.postsService.deleteFile(this.uid,this.isAudio,t).subscribe(t=>{t?(this.openSnackBar("Delete success!","OK."),this.removeFile.emit(this.name)):this.openSnackBar("Delete failed!","OK.")},t=>{this.openSnackBar("Delete failed!","OK.")})}openVideoInfoDialog(){this.dialog.open(eA,{data:{file:this.file},minWidth:"50vw"})}editPlaylistDialog(){const t=this.dialog.open(oA,{data:{playlist:this.playlist,width:"65vw"}});t.afterClosed().subscribe(e=>{t.componentInstance.playlist_updated&&(this.playlist=t.componentInstance.original_playlist,this.title=this.playlist.name,this.count=this.playlist.fileNames.length)})}onImgError(t){this.image_errored=!0}onHoverResponse(){this.scrollSubject.next()}imageLoaded(t){this.image_loaded=!0}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg),s.Dc(UO),s.Dc(bd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",uid:"uid",thumbnailURL:"thumbnailURL",isAudio:"isAudio",playlist:"playlist",count:"count",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{removeFile:"removeFile"},decls:40,vars:7,consts:[[1,"example-card","mat-elevation-z6"],[2,"padding","5px"],[2,"height","52px"],["href","javascript:void(0)",1,"file-link",3,"click"],[1,"max-two-lines"],[4,"ngIf"],["class","img-div",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["playlist_menu","matMenu"],["mat-menu-item","",3,"click"],["action_menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"id","lazyLoad","customObservable","error","onLoad"],["mat-icon-button","",1,"deleteButton",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&(s.Jc(0,"mat-card",0),s.Jc(1,"div",1),s.Jc(2,"div",2),s.Jc(3,"div"),s.Jc(4,"b"),s.Jc(5,"a",3),s.Wc("click",(function(){return e.playlist?e.mainComponent.goToPlaylist(e.name,e.type):e.mainComponent.goToFile(e.name,e.isAudio,e.uid)})),s.Bd(6),s.Ic(),s.Ic(),s.Ic(),s.Jc(7,"span",4),s.Hc(8),s.Nc(9,RA),s.Gc(),s.Bd(10),s.Ic(),s.zd(11,JA,4,1,"div",5),s.Ic(),s.zd(12,jA,3,4,"div",6),s.Ic(),s.zd(13,$A,3,1,"button",7),s.Jc(14,"mat-menu",null,8),s.Jc(16,"button",9),s.Wc("click",(function(){return e.editPlaylistDialog()})),s.Jc(17,"mat-icon"),s.Bd(18,"edit"),s.Ic(),s.Hc(19),s.Nc(20,MA),s.Gc(),s.Ic(),s.Jc(21,"button",9),s.Wc("click",(function(){return e.deleteFile()})),s.Jc(22,"mat-icon"),s.Bd(23,"delete_forever"),s.Ic(),s.Hc(24),s.Nc(25,FA),s.Gc(),s.Ic(),s.Ic(),s.zd(26,HA,3,1,"button",7),s.Jc(27,"mat-menu",null,10),s.Jc(29,"button",9),s.Wc("click",(function(){return e.openVideoInfoDialog()})),s.Jc(30,"mat-icon"),s.Bd(31,"info"),s.Ic(),s.Hc(32),s.Nc(33,NA),s.Gc(),s.Ic(),s.Jc(34,"button",9),s.Wc("click",(function(){return e.deleteFile()})),s.Jc(35,"mat-icon"),s.Bd(36,"delete"),s.Ic(),s.Hc(37),s.Nc(38,zA),s.Gc(),s.Ic(),s.zd(39,UA,5,0,"button",11),s.Ic(),s.Ic()),2&t&&(s.pc(6),s.Cd(e.title),s.pc(4),s.Dd("\xa0",e.name,""),s.pc(1),s.gd("ngIf",e.playlist),s.pc(1),s.gd("ngIf",!e.image_errored&&e.thumbnailURL),s.pc(1),s.gd("ngIf",e.playlist),s.pc(13),s.gd("ngIf",!e.playlist),s.pc(13),s.gd("ngIf",e.use_youtubedl_archive))},directives:[er,ve.t,Cp,_p,vu,AA,bs,Ep],styles:[".example-card[_ngcontent-%COMP%]{width:150px;height:125px;padding:0}.deleteButton[_ngcontent-%COMP%]{top:-5px;right:-5px;position:absolute}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:100%}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{height:60px;padding:0;margin:8px 0 0 -5px;width:calc(100% + 10px);overflow:hidden;border-radius:0 0 4px 4px}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;-webkit-box-orient:vertical;-webkit-line-clamp:2}.file-link[_ngcontent-%COMP%], .max-two-lines[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.file-link[_ngcontent-%COMP%]{width:80%;white-space:nowrap;display:block}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:125px!important}}"]}),t})();function WA(t,e){1&t&&(s.Jc(0,"div",6),s.Ec(1,"mat-spinner",7),s.Ic()),2&t&&(s.pc(1),s.gd("diameter",25))}let qA=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.inputText="",this.inputSubmitted=!1,this.doneEmitter=null,this.onlyEmitOnDone=!1}ngOnInit(){this.inputTitle=this.data.inputTitle,this.inputPlaceholder=this.data.inputPlaceholder,this.submitText=this.data.submitText,this.data.doneEmitter&&(this.doneEmitter=this.data.doneEmitter,this.onlyEmitOnDone=!0)}enterPressed(){this.inputText&&(this.onlyEmitOnDone?(this.doneEmitter.emit(this.inputText),this.inputSubmitted=!0):this.dialogRef.close(this.inputText))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(ud),s.Dc(pd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-input-dialog"]],decls:12,vars:6,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Bd(1),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div"),s.Jc(4,"mat-form-field",1),s.Jc(5,"input",2),s.Wc("keyup.enter",(function(){return e.enterPressed()}))("ngModelChange",(function(t){return e.inputText=t})),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(6,"mat-dialog-actions"),s.Jc(7,"button",3),s.Bd(8,"Cancel"),s.Ic(),s.Jc(9,"button",4),s.Wc("click",(function(){return e.enterPressed()})),s.Bd(10),s.Ic(),s.zd(11,WA,2,1,"div",5),s.Ic()),2&t&&(s.pc(1),s.Cd(e.inputTitle),s.pc(4),s.gd("ngModel",e.inputText)("placeholder",e.inputPlaceholder),s.pc(4),s.gd("disabled",!e.inputText),s.pc(1),s.Cd(e.submitText),s.pc(1),s.gd("ngIf",e.inputSubmitted))},directives:[yd,wd,Bc,Ru,Rs,Js,qa,xd,bs,vd,ve.t,mm],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),t})();var KA,XA;KA=$localize`:Enable sharing checkbox␟1f6d14a780a37a97899dc611881e6bc971268285␟3852386690131857488:Enable sharing`,XA=$localize`:Use timestamp␟6580b6a950d952df847cb3d8e7176720a740adc8␟2355512602260135881:Use timestamp`;const YA=["placeholder",$localize`:Seconds␟4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c␟8874012390997067175:Seconds`];var ZA,QA,tP,eP,iP;function nP(t,e){1&t&&(s.Hc(0),s.Nc(1,tP),s.Gc())}function sP(t,e){1&t&&(s.Hc(0),s.Nc(1,eP),s.Gc())}function aP(t,e){1&t&&(s.Hc(0),s.Nc(1,iP),s.Gc())}ZA=$localize`:Copy to clipboard button␟3a6e5a6aa78ca864f6542410c5dafb6334538106␟8738732372986673558:Copy to clipboard`,QA=$localize`:Close button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,tP=$localize`:Share playlist dialog title␟a249a5ae13e0835383885aaf697d2890cc3e53e9␟3024429387570590252:Share playlist`,eP=$localize`:Share video dialog title␟15da89490e04496ca9ea1e1b3d44fb5efd4a75d9␟1305889615005911428:Share video`,iP=$localize`:Share audio dialog title␟1d540dcd271b316545d070f9d182c372d923aadd␟3735500696745720245:Share audio`;let oP=(()=>{class t{constructor(t,e,i,n){this.data=t,this.router=e,this.snackBar=i,this.postsService=n,this.type=null,this.uid=null,this.uuid=null,this.share_url=null,this.default_share_url=null,this.sharing_enabled=null,this.is_playlist=null,this.current_timestamp=null,this.timestamp_enabled=!1}ngOnInit(){if(this.data){this.type=this.data.type,this.uid=this.data.uid,this.uuid=this.data.uuid,this.sharing_enabled=this.data.sharing_enabled,this.is_playlist=this.data.is_playlist,this.current_timestamp=(this.data.current_timestamp/1e3).toFixed(2);const t=this.is_playlist?";id=":";uid=";this.default_share_url=window.location.href.split(";")[0]+t+this.uid,this.uuid&&(this.default_share_url+=";uuid="+this.uuid),this.share_url=this.default_share_url}}timestampInputChanged(t){if(!this.timestamp_enabled)return void(this.share_url=this.default_share_url);const e=t.target.value;this.share_url=e>0?this.default_share_url+";timestamp="+e:this.default_share_url}useTimestampChanged(){this.timestampInputChanged({target:{value:this.current_timestamp}})}copiedToClipboard(){this.openSnackBar("Copied to clipboard!")}sharingChanged(t){t.checked?this.postsService.enableSharing(this.uid,this.type,this.is_playlist).subscribe(t=>{t.success?(this.openSnackBar("Sharing enabled."),this.sharing_enabled=!0):this.openSnackBar("Failed to enable sharing.")},t=>{this.openSnackBar("Failed to enable sharing - server error.")}):this.postsService.disableSharing(this.uid,this.type,this.is_playlist).subscribe(t=>{t.success?(this.openSnackBar("Sharing disabled."),this.sharing_enabled=!1):this.openSnackBar("Failed to disable sharing.")},t=>{this.openSnackBar("Failed to disable sharing - server error.")})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(pd),s.Dc(wx),s.Dc(Hg),s.Dc(Wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-share-media-dialog"]],decls:28,vars:12,consts:[["mat-dialog-title",""],[4,"ngIf"],[3,"checked","change"],[2,"margin-right","15px",3,"ngModel","change","ngModelChange"],["matInput","","type","number",3,"ngModel","disabled","ngModelChange","change",6,"placeholder"],[2,"width","100%"],["matInput","",3,"disabled","readonly","value"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","cdkCopyToClipboard","click"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.zd(1,nP,2,0,"ng-container",1),s.zd(2,sP,2,0,"ng-container",1),s.zd(3,aP,2,0,"ng-container",1),s.Ic(),s.Jc(4,"mat-dialog-content"),s.Jc(5,"div"),s.Jc(6,"div"),s.Jc(7,"mat-checkbox",2),s.Wc("change",(function(t){return e.sharingChanged(t)})),s.Hc(8),s.Nc(9,KA),s.Gc(),s.Ic(),s.Ic(),s.Jc(10,"div"),s.Jc(11,"mat-checkbox",3),s.Wc("change",(function(){return e.useTimestampChanged()}))("ngModelChange",(function(t){return e.timestamp_enabled=t})),s.Hc(12),s.Nc(13,XA),s.Gc(),s.Ic(),s.Jc(14,"mat-form-field"),s.Jc(15,"input",4),s.Pc(16,YA),s.Wc("ngModelChange",(function(t){return e.current_timestamp=t}))("change",(function(t){return e.timestampInputChanged(t)})),s.Ic(),s.Ic(),s.Ic(),s.Jc(17,"div"),s.Jc(18,"mat-form-field",5),s.Ec(19,"input",6),s.Ic(),s.Ic(),s.Jc(20,"div",7),s.Jc(21,"button",8),s.Wc("click",(function(){return e.copiedToClipboard()})),s.Hc(22),s.Nc(23,ZA),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(24,"mat-dialog-actions"),s.Jc(25,"button",9),s.Hc(26),s.Nc(27,QA),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.gd("ngIf",e.is_playlist),s.pc(1),s.gd("ngIf",!e.is_playlist&&"video"===e.type),s.pc(1),s.gd("ngIf",!e.is_playlist&&"audio"===e.type),s.pc(4),s.gd("checked",e.sharing_enabled),s.pc(4),s.gd("ngModel",e.timestamp_enabled),s.pc(4),s.gd("ngModel",e.current_timestamp)("disabled",!e.timestamp_enabled),s.pc(4),s.gd("disabled",!e.sharing_enabled)("readonly",!0)("value",e.share_url),s.pc(2),s.gd("disabled",!e.sharing_enabled)("cdkCopyToClipboard",e.share_url))},directives:[yd,ve.t,wd,gr,Js,qa,Bc,Ru,Qs,Rs,bs,Fv,xd,vd],styles:[""]}),t})();const rP=["*"],lP=["volumeBar"],cP=function(t){return{dragging:t}};function dP(t,e){if(1&t&&s.Ec(0,"span",2),2&t){const t=e.$implicit;s.yd("width",null==t.$$style?null:t.$$style.width)("left",null==t.$$style?null:t.$$style.left)}}function hP(t,e){1&t&&s.Ec(0,"span",2)}function uP(t,e){1&t&&(s.Jc(0,"span"),s.Bd(1,"LIVE"),s.Ic())}function pP(t,e){if(1&t&&(s.Jc(0,"span"),s.Bd(1),s.bd(2,"vgUtc"),s.Ic()),2&t){const t=s.ad();s.pc(1),s.Cd(s.dd(2,1,t.getTime(),t.vgFormat))}}function mP(t,e){if(1&t&&(s.Jc(0,"option",4),s.Bd(1),s.Ic()),2&t){const t=e.$implicit;s.gd("value",t.id)("selected",!0===t.selected),s.pc(1),s.Dd(" ",t.label," ")}}function gP(t,e){if(1&t&&(s.Jc(0,"option",4),s.Bd(1),s.Ic()),2&t){const t=e.$implicit,i=s.ad();s.gd("value",t.qualityIndex.toString())("selected",t.qualityIndex===(null==i.bitrateSelected?null:i.bitrateSelected.qualityIndex)),s.pc(1),s.Dd(" ",t.label," ")}}let fP=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t.VG_ENDED="ended",t.VG_PAUSED="paused",t.VG_PLAYING="playing",t.VG_LOADING="waiting",t})(),bP=(()=>{let t=class{constructor(){this.medias={},this.playerReadyEvent=new s.u(!0),this.isPlayerReady=!1}onPlayerReady(t){this.fsAPI=t,this.isPlayerReady=!0,this.playerReadyEvent.emit(this)}getDefaultMedia(){for(const t in this.medias)if(this.medias[t])return this.medias[t]}getMasterMedia(){let t;for(const e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=this.medias[e];break}return t||this.getDefaultMedia()}isMasterDefined(){let t=!1;for(const e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=!0;break}return t}getMediaById(t=null){let e=this.medias[t];return t&&"*"!==t||(e=this),e}play(){for(const t in this.medias)this.medias[t]&&this.medias[t].play()}pause(){for(const t in this.medias)this.medias[t]&&this.medias[t].pause()}get duration(){return this.$$getAllProperties("duration")}set currentTime(t){this.$$setAllProperties("currentTime",t)}get currentTime(){return this.$$getAllProperties("currentTime")}set state(t){this.$$setAllProperties("state",t)}get state(){return this.$$getAllProperties("state")}set volume(t){this.$$setAllProperties("volume",t)}get volume(){return this.$$getAllProperties("volume")}set playbackRate(t){this.$$setAllProperties("playbackRate",t)}get playbackRate(){return this.$$getAllProperties("playbackRate")}get canPlay(){return this.$$getAllProperties("canPlay")}get canPlayThrough(){return this.$$getAllProperties("canPlayThrough")}get isMetadataLoaded(){return this.$$getAllProperties("isMetadataLoaded")}get isWaiting(){return this.$$getAllProperties("isWaiting")}get isCompleted(){return this.$$getAllProperties("isCompleted")}get isLive(){return this.$$getAllProperties("isLive")}get isMaster(){return this.$$getAllProperties("isMaster")}get time(){return this.$$getAllProperties("time")}get buffer(){return this.$$getAllProperties("buffer")}get buffered(){return this.$$getAllProperties("buffered")}get subscriptions(){return this.$$getAllProperties("subscriptions")}get textTracks(){return this.$$getAllProperties("textTracks")}seekTime(t,e=!1){for(const i in this.medias)this.medias[i]&&this.$$seek(this.medias[i],t,e)}$$seek(t,e,i=!1){let n,s=t.duration;i?(this.isMasterDefined()&&(s=this.getMasterMedia().duration),n=e*s/100):n=e,t.currentTime=n}addTextTrack(t,e,i){for(const n in this.medias)this.medias[n]&&this.$$addTextTrack(this.medias[n],t,e,i)}$$addTextTrack(t,e,i,n){t.addTextTrack(e,i,n)}$$getAllProperties(t){const e={};let i;for(const n in this.medias)this.medias[n]&&(e[n]=this.medias[n]);switch(Object.keys(e).length){case 0:switch(t){case"state":i=fP.VG_PAUSED;break;case"playbackRate":case"volume":i=1;break;case"time":i={current:0,total:0,left:0}}break;case 1:i=e[Object.keys(e)[0]][t];break;default:i=e[this.getMasterMedia().id][t]}return i}$$setAllProperties(t,e){for(const i in this.medias)this.medias[i]&&(this.medias[i][t]=e)}registerElement(t){this.videogularElement=t}registerMedia(t){this.medias[t.id]=t}unregisterMedia(t){delete this.medias[t.id]}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),_P=(()=>{let t=class{constructor(t,e){this.API=e,this.checkInterval=50,this.currentPlayPos=0,this.lastPlayPos=0,this.subscriptions=[],this.isBuffering=!1,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe(t=>this.onUpdateBuffer(t)))}onUpdateBuffer(t){this.isBuffering=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-buffering"]],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:3,vars:0,consts:[[1,"vg-buffering"],[1,"bufferingContainer"],[1,"loadingSpinner"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.Ec(2,"div",2),s.Ic(),s.Ic())},styles:["\n vg-buffering {\n display: none;\n z-index: 201;\n }\n vg-buffering.is-buffering {\n display: block;\n }\n\n .vg-buffering {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n }\n .vg-buffering .bufferingContainer {\n width: 100%;\n position: absolute;\n cursor: pointer;\n top: 50%;\n margin-top: -50px;\n zoom: 1;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n /* Loading Spinner\n * http://www.alessioatzeni.com/blog/css3-loading-animation-loop/\n */\n .vg-buffering .loadingSpinner {\n background-color: rgba(0, 0, 0, 0);\n border: 5px solid rgba(255, 255, 255, 1);\n opacity: .9;\n border-top: 5px solid rgba(0, 0, 0, 0);\n border-left: 5px solid rgba(0, 0, 0, 0);\n border-radius: 50px;\n box-shadow: 0 0 35px #FFFFFF;\n width: 50px;\n height: 50px;\n margin: 0 auto;\n -moz-animation: spin .5s infinite linear;\n -webkit-animation: spin .5s infinite linear;\n }\n .vg-buffering .loadingSpinner .stop {\n -webkit-animation-play-state: paused;\n -moz-animation-play-state: paused;\n }\n @-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(360deg);\n }\n }\n @-moz-keyframes spinoff {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(-360deg);\n }\n }\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n @-webkit-keyframes spinoff {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(-360deg);\n }\n }\n "],encapsulation:2}),t})(),vP=(()=>{let t=class{};return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c]]}),t})(),yP=(()=>{let t=class{constructor(){this.isHiddenSubject=new Pe.a,this.isHidden=this.isHiddenSubject.asObservable()}state(t){this.isHiddenSubject.next(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),wP=(()=>{let t=class{constructor(t,e,i){this.API=t,this.ref=e,this.hidden=i,this.isAdsPlaying="initial",this.hideControls=!1,this.vgAutohide=!1,this.vgAutohideTime=3,this.subscriptions=[],this.elem=e.nativeElement}ngOnInit(){this.mouseMove$=kr(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=kr(this.API.videogularElement,"touchstart"),this.subscriptions.push(this.touchStart$.subscribe(this.show.bind(this))),this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.play.subscribe(this.onPlay.bind(this))),this.subscriptions.push(this.target.subscriptions.pause.subscribe(this.onPause.bind(this))),this.subscriptions.push(this.target.subscriptions.startAds.subscribe(this.onStartAds.bind(this))),this.subscriptions.push(this.target.subscriptions.endAds.subscribe(this.onEndAds.bind(this)))}ngAfterViewInit(){this.vgAutohide?this.hide():this.show()}onPlay(){this.vgAutohide&&this.hide()}onPause(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1)}onStartAds(){this.isAdsPlaying="none"}onEndAds(){this.isAdsPlaying="initial"}hide(){this.vgAutohide&&(clearTimeout(this.timer),this.hideAsync())}show(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1),this.vgAutohide&&this.hideAsync()}hideAsync(){this.API.state===fP.VG_PLAYING&&(this.timer=setTimeout(()=>{this.hideControls=!0,this.hidden.state(!0)},1e3*this.vgAutohideTime))}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(bP),s.Dc(s.r),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-controls"]],hostVars:4,hostBindings:function(t,e){2&t&&(s.yd("pointer-events",e.isAdsPlaying),s.tc("hide",e.hideControls))},inputs:{vgAutohide:"vgAutohide",vgAutohideTime:"vgAutohideTime",vgFor:"vgFor"},ngContentSelectors:rP,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},styles:["\n vg-controls {\n position: absolute;\n display: flex;\n width: 100%;\n height: 50px;\n z-index: 300;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: bottom 1s;\n -khtml-transition: bottom 1s;\n -moz-transition: bottom 1s;\n -ms-transition: bottom 1s;\n transition: bottom 1s;\n }\n vg-controls.hide {\n bottom: -50px;\n }\n "],encapsulation:2}),t})(),xP=(()=>{let t=class{static getZIndex(){let t,e=1;const i=document.getElementsByTagName("*");for(let n=0,s=i.length;ne&&(e=t+1);return e}static isMobileDevice(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")}static isiOSDevice(){return navigator.userAgent.match(/ip(hone|ad|od)/i)&&!navigator.userAgent.match(/(iemobile)[\/\s]?([\w\.]*)/i)}static isCordova(){return-1===document.URL.indexOf("http://")&&-1===document.URL.indexOf("https://")}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.zc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),kP=(()=>{let t=class{constructor(){this.nativeFullscreen=!0,this.isFullscreen=!1,this.onChangeFullscreen=new s.u}init(t,e){this.videogularElement=t,this.medias=e;const i={w3:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",onchange:"fullscreenchange",onerror:"fullscreenerror"},newWebkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},oldWebkit:{enabled:"webkitIsFullScreen",element:"webkitCurrentFullScreenElement",request:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},moz:{enabled:"mozFullScreen",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",onchange:"mozfullscreenchange",onerror:"mozfullscreenerror"},ios:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitEnterFullscreen",exit:"webkitExitFullscreen",onchange:"webkitendfullscreen",onerror:"webkitfullscreenerror"},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",onchange:"MSFullscreenChange",onerror:"MSFullscreenError"}};for(const s in i)if(i[s].enabled in document){this.polyfill=i[s];break}if(xP.isiOSDevice()&&(this.polyfill=i.ios),this.isAvailable=null!=this.polyfill,null==this.polyfill)return;let n;switch(this.polyfill.onchange){case"mozfullscreenchange":n=document;break;case"webkitendfullscreen":n=this.medias.toArray()[0].elem;break;default:n=t}this.fsChangeSubscription=kr(n,this.polyfill.onchange).subscribe(()=>{this.onFullscreenChange()})}onFullscreenChange(){this.isFullscreen=!!document[this.polyfill.element],this.onChangeFullscreen.emit(this.isFullscreen)}toggleFullscreen(t=null){this.isFullscreen?this.exit():this.request(t)}request(t){t||(t=this.videogularElement),this.isFullscreen=!0,this.onChangeFullscreen.emit(!0),this.isAvailable&&this.nativeFullscreen&&(xP.isMobileDevice()?((!this.polyfill.enabled&&t===this.videogularElement||xP.isiOSDevice())&&(t=this.medias.toArray()[0].elem),this.enterElementInFullScreen(t)):this.enterElementInFullScreen(this.videogularElement))}enterElementInFullScreen(t){t[this.polyfill.request]()}exit(){this.isFullscreen=!1,this.onChangeFullscreen.emit(!1),this.isAvailable&&this.nativeFullscreen&&document[this.polyfill.exit]()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),CP=(()=>{let t=class{constructor(t,e,i){this.API=e,this.fsAPI=i,this.isFullscreen=!1,this.subscriptions=[],this.ariaValue="normal mode",this.elem=t.nativeElement,this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this)))}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onChangeFullscreen(t){this.ariaValue=t?"fullscren mode":"normal mode",this.isFullscreen=t}onClick(){this.changeFullscreenState()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeFullscreenState())}changeFullscreenState(){let t=this.target;this.target instanceof bP&&(t=null),this.fsAPI.toggleFullscreen(t)}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP),s.Dc(kP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-fullscreen"]],hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},decls:1,vars:5,consts:[["tabindex","0","role","button","aria-label","fullscreen button",1,"icon"]],template:function(t,e){1&t&&s.Ec(0,"div",0),2&t&&(s.tc("vg-icon-fullscreen",!e.isFullscreen)("vg-icon-fullscreen_exit",e.isFullscreen),s.qc("aria-valuetext",e.ariaValue))},styles:["\n vg-fullscreen {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n\n vg-fullscreen .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),SP=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue="unmuted",this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.currentVolume=this.target.volume}onClick(){this.changeMuteState()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeMuteState())}changeMuteState(){const t=this.getVolume();0===t?(0===this.target.volume&&0===this.currentVolume&&(this.currentVolume=1),this.target.volume=this.currentVolume):(this.currentVolume=t,this.target.volume=0)}getVolume(){const t=this.target?this.target.volume:0;return this.ariaValue=t?"unmuted":"muted",t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-mute"]],hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:9,consts:[["tabindex","0","role","button","aria-label","mute button",1,"icon"]],template:function(t,e){1&t&&s.Ec(0,"div",0),2&t&&(s.tc("vg-icon-volume_up",e.getVolume()>=.75)("vg-icon-volume_down",e.getVolume()>=.25&&e.getVolume()<.75)("vg-icon-volume_mute",e.getVolume()>0&&e.getVolume()<.25)("vg-icon-volume_off",0===e.getVolume()),s.qc("aria-valuetext",e.ariaValue))},styles:["\n vg-mute {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-mute .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),IP=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement,this.isDragging=!1}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.ariaValue=100*this.getVolume()}onClick(t){this.setVolume(this.calculateVolume(t.clientX))}onMouseDown(t){this.mouseDownPosX=t.clientX,this.isDragging=!0}onDrag(t){this.isDragging&&this.setVolume(this.calculateVolume(t.clientX))}onStopDrag(t){this.isDragging&&(this.isDragging=!1,this.mouseDownPosX===t.clientX&&this.setVolume(this.calculateVolume(t.clientX)))}arrowAdjustVolume(t){38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()+10)))):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()-10))))}calculateVolume(t){const e=this.volumeBarRef.nativeElement.getBoundingClientRect();return(t-e.left)/e.width*100}setVolume(t){this.target.volume=Math.max(0,Math.min(1,t/100)),this.ariaValue=100*this.target.volume}getVolume(){return this.target?this.target.volume:0}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-volume"]],viewQuery:function(t,e){var i;1&t&&s.xd(lP,!0),2&t&&s.md(i=s.Xc())&&(e.volumeBarRef=i.first)},hostBindings:function(t,e){1&t&&s.Wc("mousemove",(function(t){return e.onDrag(t)}),!1,s.pd)("mouseup",(function(t){return e.onStopDrag(t)}),!1,s.pd)("keydown",(function(t){return e.arrowAdjustVolume(t)}))},inputs:{vgFor:"vgFor"},decls:5,vars:9,consts:[["tabindex","0","role","slider","aria-label","volume level","aria-level","polite","aria-valuemin","0","aria-valuemax","100","aria-orientation","horizontal",1,"volumeBar",3,"click","mousedown"],["volumeBar",""],[1,"volumeBackground",3,"ngClass"],[1,"volumeValue"],[1,"volumeKnob"]],template:function(t,e){1&t&&(s.Jc(0,"div",0,1),s.Wc("click",(function(t){return e.onClick(t)}))("mousedown",(function(t){return e.onMouseDown(t)})),s.Jc(2,"div",2),s.Ec(3,"div",3),s.Ec(4,"div",4),s.Ic(),s.Ic()),2&t&&(s.qc("aria-valuenow",e.ariaValue)("aria-valuetext",e.ariaValue+"%"),s.pc(2),s.gd("ngClass",s.jd(7,cP,e.isDragging)),s.pc(1),s.yd("width",85*e.getVolume()+"%"),s.pc(1),s.yd("left",85*e.getVolume()+"%"))},directives:[ve.q],styles:["\n vg-volume {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 100px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-volume .volumeBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n vg-volume .volumeBackground {\n display: flex;\n flex-grow: 1;\n height: 5px;\n pointer-events: none;\n background-color: #333;\n }\n vg-volume .volumeValue {\n display: flex;\n height: 5px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeKnob {\n position: absolute;\n width: 15px; height: 15px;\n left: 0; top: 50%;\n transform: translateY(-50%);\n border-radius: 15px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeBackground.dragging .volumeValue,\n vg-volume .volumeBackground.dragging .volumeKnob {\n transition: none;\n }\n "],encapsulation:2}),t})(),DP=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue=fP.VG_PAUSED,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onClick(){this.playPause()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.playPause())}playPause(){switch(this.getState()){case fP.VG_PLAYING:this.target.pause();break;case fP.VG_PAUSED:case fP.VG_ENDED:this.target.play()}}getState(){return this.ariaValue=this.target?this.target.state:fP.VG_PAUSED,this.ariaValue}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-play-pause"]],hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:6,consts:[["tabindex","0","role","button",1,"icon"]],template:function(t,e){1&t&&s.Ec(0,"div",0),2&t&&(s.tc("vg-icon-pause","playing"===e.getState())("vg-icon-play_arrow","paused"===e.getState()||"ended"===e.getState()),s.qc("aria-label","paused"===e.getState()?"play":"pause")("aria-valuetext",e.ariaValue))},styles:["\n vg-play-pause {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-play-pause .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),EP=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue=1,this.elem=t.nativeElement,this.playbackValues=["0.5","1.0","1.5","2.0"],this.playbackIndex=1}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onClick(){this.updatePlaybackSpeed()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.updatePlaybackSpeed())}updatePlaybackSpeed(){this.playbackIndex=++this.playbackIndex%this.playbackValues.length,this.target instanceof bP?this.target.playbackRate=this.playbackValues[this.playbackIndex]:this.target.playbackRate[this.vgFor]=this.playbackValues[this.playbackIndex]}getPlaybackRate(){return this.ariaValue=this.target?this.target.playbackRate:1,this.ariaValue}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-playback-button"]],hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{playbackValues:"playbackValues",vgFor:"vgFor"},decls:2,vars:2,consts:[["tabindex","0","role","button","aria-label","playback speed button",1,"button"]],template:function(t,e){1&t&&(s.Jc(0,"span",0),s.Bd(1),s.Ic()),2&t&&(s.qc("aria-valuetext",e.ariaValue),s.pc(1),s.Dd(" ",e.getPlaybackRate(),"x "))},styles:["\n vg-playback-button {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n vg-playback-button .button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n }\n "],encapsulation:2}),t})(),OP=(()=>{let t=class{constructor(t,e,i){this.API=e,this.hideScrubBar=!1,this.vgSlider=!0,this.isSeeking=!1,this.wasPlaying=!1,this.subscriptions=[],this.elem=t.nativeElement,this.subscriptions.push(i.isHidden.subscribe(t=>this.onHideScrubBar(t)))}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}seekStart(){this.target.canPlay&&(this.isSeeking=!0,this.target.state===fP.VG_PLAYING&&(this.wasPlaying=!0),this.target.pause())}seekMove(t){if(this.isSeeking){const e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.time.current=e*this.target.time.total/100,this.target.seekTime(e,!0)}}seekEnd(t){if(this.isSeeking=!1,this.target.canPlay){const e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.seekTime(e,!0),this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}}touchEnd(){this.isSeeking=!1,this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}getTouchOffset(t){let e=0,i=t.target;for(;i;)e+=i.offsetLeft,i=i.offsetParent;return t.touches[0].pageX-e}onMouseDownScrubBar(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(t.offsetX)))}onMouseMoveScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(t.offsetX)}onMouseUpScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekEnd(t.offsetX)}onTouchStartScrubBar(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(this.getTouchOffset(t))))}onTouchMoveScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(this.getTouchOffset(t))}onTouchCancelScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}onTouchEndScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}arrowAdjustVolume(t){this.target&&(38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.target.seekTime((this.target.time.current+5e3)/1e3,!1)):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.target.seekTime((this.target.time.current-5e3)/1e3,!1)))}getPercentage(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}onHideScrubBar(t){this.hideScrubBar=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-scrub-bar"]],hostVars:2,hostBindings:function(t,e){1&t&&s.Wc("mousedown",(function(t){return e.onMouseDownScrubBar(t)}))("mousemove",(function(t){return e.onMouseMoveScrubBar(t)}),!1,s.pd)("mouseup",(function(t){return e.onMouseUpScrubBar(t)}),!1,s.pd)("touchstart",(function(t){return e.onTouchStartScrubBar(t)}))("touchmove",(function(t){return e.onTouchMoveScrubBar(t)}),!1,s.pd)("touchcancel",(function(t){return e.onTouchCancelScrubBar(t)}),!1,s.pd)("touchend",(function(t){return e.onTouchEndScrubBar(t)}),!1,s.pd)("keydown",(function(t){return e.arrowAdjustVolume(t)})),2&t&&s.tc("hide",e.hideScrubBar)},inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},ngContentSelectors:rP,decls:2,vars:2,consts:[["tabindex","0","role","slider","aria-label","scrub bar","aria-level","polite","aria-valuemin","0","aria-valuemax","100",1,"scrubBar"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0),s.ed(1),s.Ic()),2&t&&s.qc("aria-valuenow",e.getPercentage())("aria-valuetext",e.getPercentage()+"%")},styles:["\n vg-scrub-bar {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: absolute;\n width: 100%;\n height: 5px;\n bottom: 50px;\n margin: 0;\n cursor: pointer;\n align-items: center;\n background: rgba(0, 0, 0, 0.75);\n z-index: 250;\n -webkit-transition: bottom 1s, opacity 0.5s;\n -khtml-transition: bottom 1s, opacity 0.5s;\n -moz-transition: bottom 1s, opacity 0.5s;\n -ms-transition: bottom 1s, opacity 0.5s;\n transition: bottom 1s, opacity 0.5s;\n }\n vg-scrub-bar .scrubBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n height: 100%;\n }\n vg-controls vg-scrub-bar {\n position: relative;\n bottom: 0;\n background: transparent;\n height: 50px;\n flex-grow: 1;\n flex-basis: 0;\n margin: 0 10px;\n -webkit-transition: initial;\n -khtml-transition: initial;\n -moz-transition: initial;\n -ms-transition: initial;\n transition: initial;\n }\n vg-scrub-bar.hide {\n bottom: 0;\n opacity: 0;\n }\n vg-controls vg-scrub-bar.hide {\n bottom: initial;\n opacity: initial;\n }\n "],encapsulation:2}),t})(),AP=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getBufferTime(){let t="0%";return this.target&&this.target.buffer&&this.target.buffered.length&&(t=0===this.target.time.total?"0%":this.target.buffer.end/this.target.time.total*100+"%"),t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-scrub-bar-buffering-time"]],inputs:{vgFor:"vgFor"},decls:1,vars:2,consts:[[1,"background"]],template:function(t,e){1&t&&s.Ec(0,"div",0),2&t&&s.yd("width",e.getBufferTime())},styles:["\n vg-scrub-bar-buffering-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-buffering-time .background {\n background-color: rgba(255, 255, 255, 0.3);\n }\n vg-controls vg-scrub-bar-buffering-time {\n position: absolute;\n top: calc(50% - 3px);\n }\n vg-controls vg-scrub-bar-buffering-time .background {\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n "],encapsulation:2}),t})(),PP=(()=>{let t=class{constructor(t,e){this.API=e,this.onLoadedMetadataCalled=!1,this.cuePoints=[],this.subscriptions=[],this.totalCues=0,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.loadedMetadata.subscribe(this.onLoadedMetadata.bind(this))),this.onLoadedMetadataCalled&&this.onLoadedMetadata()}onLoadedMetadata(){if(this.vgCuePoints){this.cuePoints=[];for(let t=0,e=this.vgCuePoints.length;t=0?this.vgCuePoints[t].endTime:this.vgCuePoints[t].startTime+1)-this.vgCuePoints[t].startTime);let i="0",n="0";"number"==typeof e&&this.target.time.total&&(n=100*e/this.target.time.total+"%",i=100*this.vgCuePoints[t].startTime/Math.round(this.target.time.total/1e3)+"%"),this.vgCuePoints[t].$$style={width:n,left:i},this.cuePoints.push(this.vgCuePoints[t])}}}updateCuePoints(){this.target?this.onLoadedMetadata():this.onLoadedMetadataCalled=!0}ngOnChanges(t){t.vgCuePoints.currentValue&&this.updateCuePoints()}ngDoCheck(){this.vgCuePoints&&this.totalCues!==this.vgCuePoints.length&&(this.totalCues=this.vgCuePoints.length,this.updateCuePoints())}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-scrub-bar-cue-points"]],inputs:{vgCuePoints:"vgCuePoints",vgFor:"vgFor"},features:[s.nc],decls:2,vars:1,consts:[[1,"cue-point-container"],["class","cue-point",3,"width","left",4,"ngFor","ngForOf"],[1,"cue-point"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.zd(1,dP,1,4,"span",1),s.Ic()),2&t&&(s.pc(1),s.gd("ngForOf",e.cuePoints))},directives:[ve.s],styles:["\n vg-scrub-bar-cue-points {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-cue-points .cue-point-container .cue-point {\n position: absolute;\n height: 5px;\n background-color: rgba(255, 204, 0, 0.7);\n }\n vg-controls vg-scrub-bar-cue-points {\n position: absolute;\n top: calc(50% - 3px);\n }\n "],encapsulation:2}),t})(),TP=(()=>{let t=class{constructor(t,e){this.API=e,this.vgSlider=!1,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getPercentage(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-scrub-bar-current-time"]],inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},decls:2,vars:3,consts:[[1,"background"],["class","slider",4,"ngIf"],[1,"slider"]],template:function(t,e){1&t&&(s.Ec(0,"div",0),s.zd(1,hP,1,0,"span",1)),2&t&&(s.yd("width",e.getPercentage()),s.pc(1),s.gd("ngIf",e.vgSlider))},directives:[ve.t],styles:["\n vg-scrub-bar-current-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-current-time .background {\n background-color: white;\n }\n vg-controls vg-scrub-bar-current-time {\n position: absolute;\n top: calc(50% - 3px);\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n vg-controls vg-scrub-bar-current-time .background {\n border: 1px solid white;\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n\n vg-scrub-bar-current-time .slider{\n background: white;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n box-shadow: 0px 0px 10px black;\n margin-top: -5px;\n margin-left: -10px;\n }\n "],encapsulation:2}),t})(),RP=(()=>{let t=class{transform(t,e){const i=new Date(t);let n=e,s=i.getUTCSeconds(),a=i.getUTCMinutes(),o=i.getUTCHours();return s<10&&(s="0"+s),a<10&&(a="0"+a),o<10&&(o="0"+o),n=n.replace(/ss/g,s),n=n.replace(/mm/g,a),n=n.replace(/hh/g,o),n}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Cc({name:"vgUtc",type:t,pure:!0}),t})(),MP=(()=>{let t=class{constructor(t,e){this.API=e,this.vgProperty="current",this.vgFormat="mm:ss",this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getTime(){let t=0;return this.target&&(t=Math.round(this.target.time[this.vgProperty]),t=isNaN(t)||this.target.isLive?0:t),t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:rP,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(s.fd(),s.zd(0,uP,2,0,"span",0),s.zd(1,pP,3,4,"span",0),s.ed(2)),2&t&&(s.gd("ngIf",null==e.target?null:e.target.isLive),s.pc(1),s.gd("ngIf",!(null!=e.target&&e.target.isLive)))},directives:[ve.t],pipes:[RP],styles:["\n vg-time-display {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 60px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n pointer-events: none;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n "],encapsulation:2}),t})(),FP=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor);const t=Array.from(this.API.getMasterMedia().elem.children).filter(t=>"TRACK"===t.tagName).filter(t=>"subtitles"===t.kind).map(t=>({label:t.label,selected:!0===t.default,id:t.srclang}));this.tracks=[...t,{id:null,label:"Off",selected:t.every(t=>!1===t.selected)}];const e=this.tracks.filter(t=>!0===t.selected)[0];this.trackSelected=e.id,this.ariaValue=e.label}selectTrack(t){this.trackSelected="null"===t?null:t,this.ariaValue="No track selected",Array.from(this.API.getMasterMedia().elem.textTracks).forEach(e=>{e.language===t?(this.ariaValue=e.label,e.mode="showing"):e.mode="hidden"})}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-track-selector"]],inputs:{vgFor:"vgFor"},decls:5,vars:5,consts:[[1,"container"],[1,"track-selected"],["tabindex","0","aria-label","track selector",1,"trackSelector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.Bd(2),s.Ic(),s.Jc(3,"select",2),s.Wc("change",(function(t){return e.selectTrack(t.target.value)})),s.zd(4,mP,2,3,"option",3),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.tc("vg-icon-closed_caption",!e.trackSelected),s.pc(1),s.Dd(" ",e.trackSelected||""," "),s.pc(1),s.qc("aria-valuetext",e.ariaValue),s.pc(1),s.gd("ngForOf",e.tracks))},directives:[ve.s],styles:["\n vg-track-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-track-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-track-selector select.trackSelector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-track-selector select.trackSelector::-ms-expand {\n display: none;\n }\n vg-track-selector select.trackSelector option {\n color: #000;\n }\n vg-track-selector .track-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-track-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),t})(),NP=(()=>{let t=class{constructor(t,e){this.API=e,this.onBitrateChange=new s.u,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){}ngOnChanges(t){t.bitrates.currentValue&&t.bitrates.currentValue.length&&this.bitrates.forEach(t=>t.label=(t.label||Math.round(t.bitrate/1e3)).toString())}selectBitrate(t){this.bitrateSelected=this.bitrates[t],this.onBitrateChange.emit(this.bitrates[t])}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-quality-selector"]],inputs:{bitrates:"bitrates"},outputs:{onBitrateChange:"onBitrateChange"},features:[s.nc],decls:5,vars:5,consts:[[1,"container"],[1,"quality-selected"],["tabindex","0","aria-label","quality selector",1,"quality-selector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.Bd(2),s.Ic(),s.Jc(3,"select",2),s.Wc("change",(function(t){return e.selectBitrate(t.target.value)})),s.zd(4,gP,2,3,"option",3),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.tc("vg-icon-hd",!e.bitrateSelected),s.pc(1),s.Dd(" ",null==e.bitrateSelected?null:e.bitrateSelected.label," "),s.pc(1),s.qc("aria-valuetext",e.ariaValue),s.pc(1),s.gd("ngForOf",e.bitrates))},directives:[ve.s],styles:["\n vg-quality-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-quality-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-quality-selector select.quality-selector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-quality-selector select.quality-selector::-ms-expand {\n display: none;\n }\n vg-quality-selector select.quality-selector option {\n color: #000;\n }\n vg-quality-selector .quality-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-quality-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),t})(),zP=(()=>{let t=class{};return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[yP],imports:[[ve.c]]}),t})(),LP=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t.VG_ABORT="abort",t.VG_CAN_PLAY="canplay",t.VG_CAN_PLAY_THROUGH="canplaythrough",t.VG_DURATION_CHANGE="durationchange",t.VG_EMPTIED="emptied",t.VG_ENCRYPTED="encrypted",t.VG_ENDED="ended",t.VG_ERROR="error",t.VG_LOADED_DATA="loadeddata",t.VG_LOADED_METADATA="loadedmetadata",t.VG_LOAD_START="loadstart",t.VG_PAUSE="pause",t.VG_PLAY="play",t.VG_PLAYING="playing",t.VG_PROGRESS="progress",t.VG_RATE_CHANGE="ratechange",t.VG_SEEK="seek",t.VG_SEEKED="seeked",t.VG_SEEKING="seeking",t.VG_STALLED="stalled",t.VG_SUSPEND="suspend",t.VG_TIME_UPDATE="timeupdate",t.VG_VOLUME_CHANGE="volumechange",t.VG_WAITING="waiting",t.VG_LOAD="load",t.VG_ENTER="enter",t.VG_EXIT="exit",t.VG_START_ADS="startads",t.VG_END_ADS="endads",t})(),BP=(()=>{let t=class{constructor(t,e){this.api=t,this.ref=e,this.state=fP.VG_PAUSED,this.time={current:0,total:0,left:0},this.buffer={end:0},this.canPlay=!1,this.canPlayThrough=!1,this.isMetadataLoaded=!1,this.isWaiting=!1,this.isCompleted=!1,this.isLive=!1,this.isBufferDetected=!1,this.checkInterval=200,this.currentPlayPos=0,this.lastPlayPos=0,this.playAtferSync=!1,this.bufferDetected=new Pe.a}ngOnInit(){this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:kr(this.elem,LP.VG_ABORT),canPlay:kr(this.elem,LP.VG_CAN_PLAY),canPlayThrough:kr(this.elem,LP.VG_CAN_PLAY_THROUGH),durationChange:kr(this.elem,LP.VG_DURATION_CHANGE),emptied:kr(this.elem,LP.VG_EMPTIED),encrypted:kr(this.elem,LP.VG_ENCRYPTED),ended:kr(this.elem,LP.VG_ENDED),error:kr(this.elem,LP.VG_ERROR),loadedData:kr(this.elem,LP.VG_LOADED_DATA),loadedMetadata:kr(this.elem,LP.VG_LOADED_METADATA),loadStart:kr(this.elem,LP.VG_LOAD_START),pause:kr(this.elem,LP.VG_PAUSE),play:kr(this.elem,LP.VG_PLAY),playing:kr(this.elem,LP.VG_PLAYING),progress:kr(this.elem,LP.VG_PROGRESS),rateChange:kr(this.elem,LP.VG_RATE_CHANGE),seeked:kr(this.elem,LP.VG_SEEKED),seeking:kr(this.elem,LP.VG_SEEKING),stalled:kr(this.elem,LP.VG_STALLED),suspend:kr(this.elem,LP.VG_SUSPEND),timeUpdate:kr(this.elem,LP.VG_TIME_UPDATE),volumeChange:kr(this.elem,LP.VG_VOLUME_CHANGE),waiting:kr(this.elem,LP.VG_WAITING),startAds:kr(this.elem,LP.VG_START_ADS),endAds:kr(this.elem,LP.VG_END_ADS),mutation:new si.a(t=>{const e=new MutationObserver(e=>{t.next(e)});return e.observe(this.elem,{childList:!0,attributes:!0}),()=>{e.disconnect()}}),bufferDetected:this.bufferDetected},this.mutationObs=this.subscriptions.mutation.subscribe(this.onMutation.bind(this)),this.canPlayObs=this.subscriptions.canPlay.subscribe(this.onCanPlay.bind(this)),this.canPlayThroughObs=this.subscriptions.canPlayThrough.subscribe(this.onCanPlayThrough.bind(this)),this.loadedMetadataObs=this.subscriptions.loadedMetadata.subscribe(this.onLoadMetadata.bind(this)),this.waitingObs=this.subscriptions.waiting.subscribe(this.onWait.bind(this)),this.progressObs=this.subscriptions.progress.subscribe(this.onProgress.bind(this)),this.endedObs=this.subscriptions.ended.subscribe(this.onComplete.bind(this)),this.playingObs=this.subscriptions.playing.subscribe(this.onStartPlaying.bind(this)),this.playObs=this.subscriptions.play.subscribe(this.onPlay.bind(this)),this.pauseObs=this.subscriptions.pause.subscribe(this.onPause.bind(this)),this.timeUpdateObs=this.subscriptions.timeUpdate.subscribe(this.onTimeUpdate.bind(this)),this.volumeChangeObs=this.subscriptions.volumeChange.subscribe(this.onVolumeChange.bind(this)),this.errorObs=this.subscriptions.error.subscribe(this.onError.bind(this)),this.vgMaster&&this.api.playerReadyEvent.subscribe(()=>{this.prepareSync()})}prepareSync(){const t=[];for(const e in this.api.medias)this.api.medias[e]&&t.push(this.api.medias[e].subscriptions.canPlay);this.canPlayAllSubscription=Tp(t).pipe(Object(ii.a)((...t)=>{t.some(t=>4===t.target.readyState)&&!this.syncSubscription&&(this.startSync(),this.syncSubscription.unsubscribe())})).subscribe()}startSync(){this.syncSubscription=$r(0,1e3).subscribe(()=>{for(const t in this.api.medias)if(this.api.medias[t]!==this){const e=this.api.medias[t].currentTime-this.currentTime;e<-.3||e>.3?(this.playAtferSync=this.state===fP.VG_PLAYING,this.pause(),this.api.medias[t].pause(),this.api.medias[t].currentTime=this.currentTime):this.playAtferSync&&(this.play(),this.api.medias[t].play(),this.playAtferSync=!1)}})}onMutation(t){for(let e=0,i=t.length;e0&&i.target.src.indexOf("blob:")<0){this.loadMedia();break}}else if("childList"===i.type&&i.removedNodes.length&&"source"===i.removedNodes[0].nodeName.toLowerCase()){this.loadMedia();break}}}loadMedia(){this.vgMedia.pause(),this.vgMedia.currentTime=0,this.stopBufferCheck(),this.isBufferDetected=!0,this.bufferDetected.next(this.isBufferDetected),setTimeout(()=>this.vgMedia.load(),10)}play(){if(!(this.playPromise||this.state!==fP.VG_PAUSED&&this.state!==fP.VG_ENDED))return this.playPromise=this.vgMedia.play(),this.playPromise&&this.playPromise.then&&this.playPromise.catch&&this.playPromise.then(()=>{this.playPromise=null}).catch(()=>{this.playPromise=null}),this.playPromise}pause(){this.playPromise?this.playPromise.then(()=>{this.vgMedia.pause()}):this.vgMedia.pause()}get id(){let t=void 0;return this.vgMedia&&(t=this.vgMedia.id),t}get duration(){return this.vgMedia.duration}set currentTime(t){this.vgMedia.currentTime=t}get currentTime(){return this.vgMedia.currentTime}set volume(t){this.vgMedia.volume=t}get volume(){return this.vgMedia.volume}set playbackRate(t){this.vgMedia.playbackRate=t}get playbackRate(){return this.vgMedia.playbackRate}get buffered(){return this.vgMedia.buffered}get textTracks(){return this.vgMedia.textTracks}onCanPlay(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlay=!0,this.ref.detectChanges()}onCanPlayThrough(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlayThrough=!0,this.ref.detectChanges()}onLoadMetadata(t){this.isMetadataLoaded=!0,this.time={current:0,left:0,total:1e3*this.duration},this.state=fP.VG_PAUSED;const e=Math.round(this.time.total);this.isLive=e===1/0,this.ref.detectChanges()}onWait(t){this.isWaiting=!0,this.ref.detectChanges()}onComplete(t){this.isCompleted=!0,this.state=fP.VG_ENDED,this.ref.detectChanges()}onStartPlaying(t){this.state=fP.VG_PLAYING,this.ref.detectChanges()}onPlay(t){this.state=fP.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}onPause(t){this.state=fP.VG_PAUSED,this.vgMaster&&(this.playAtferSync||this.syncSubscription.unsubscribe()),this.stopBufferCheck(),this.ref.detectChanges()}onTimeUpdate(t){const e=this.buffered.length-1;this.time={current:1e3*this.currentTime,total:this.time.total,left:1e3*(this.duration-this.currentTime)},e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}onProgress(t){const e=this.buffered.length-1;e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}onVolumeChange(t){this.ref.detectChanges()}onError(t){this.ref.detectChanges()}bufferCheck(){const t=1/this.checkInterval;this.currentPlayPos=this.currentTime,!this.isBufferDetected&&this.currentPlayPosthis.lastPlayPos+t&&(this.isBufferDetected=!1),this.bufferDetected.closed||this.bufferDetected.next(this.isBufferDetected),this.lastPlayPos=this.currentPlayPos}startBufferCheck(){this.checkBufferSubscription=$r(0,this.checkInterval).subscribe(()=>{this.bufferCheck()})}stopBufferCheck(){this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected)}seekTime(t,e=!1){let i;i=e?t*this.duration/100:t,this.currentTime=i}addTextTrack(t,e,i,n){const s=this.vgMedia.addTextTrack(t,e,i);return n&&(s.mode=n),s}ngOnDestroy(){this.vgMedia.src="",this.mutationObs.unsubscribe(),this.canPlayObs.unsubscribe(),this.canPlayThroughObs.unsubscribe(),this.loadedMetadataObs.unsubscribe(),this.waitingObs.unsubscribe(),this.progressObs.unsubscribe(),this.endedObs.unsubscribe(),this.playingObs.unsubscribe(),this.playObs.unsubscribe(),this.pauseObs.unsubscribe(),this.timeUpdateObs.unsubscribe(),this.volumeChangeObs.unsubscribe(),this.errorObs.unsubscribe(),this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.syncSubscription&&this.syncSubscription.unsubscribe(),this.bufferDetected.complete(),this.bufferDetected.unsubscribe(),this.api.unregisterMedia(this)}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(bP),s.Dc(s.j))},t.\u0275dir=s.yc({type:t,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),t})(),JP=(()=>{let t=class{constructor(t){this.ref=t,this.onEnterCuePoint=new s.u,this.onUpdateCuePoint=new s.u,this.onExitCuePoint=new s.u,this.onCompleteCuePoint=new s.u,this.subscriptions=[],this.cuesSubscriptions=[],this.totalCues=0}ngOnInit(){this.onLoad$=kr(this.ref.nativeElement,LP.VG_LOAD),this.subscriptions.push(this.onLoad$.subscribe(this.onLoad.bind(this)))}onLoad(t){if(t.target&&t.target.track){const e=t.target.track.cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}else if(t.target&&t.target.textTracks&&t.target.textTracks.length){const e=t.target.textTracks[0].cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}}updateCuePoints(t){this.cuesSubscriptions.forEach(t=>t.unsubscribe());for(let e=0,i=t.length;et.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","vgCuePoints",""]],outputs:{onEnterCuePoint:"onEnterCuePoint",onUpdateCuePoint:"onUpdateCuePoint",onExitCuePoint:"onExitCuePoint",onCompleteCuePoint:"onCompleteCuePoint"}}),t})(),VP=(()=>{let t=class{constructor(t,e,i,n){this.api=e,this.fsAPI=i,this.controlsHidden=n,this.isFullscreen=!1,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.onPlayerReady=new s.u,this.onMediaReady=new s.u,this.subscriptions=[],this.elem=t.nativeElement,this.api.registerElement(this.elem)}ngAfterContentInit(){this.medias.toArray().forEach(t=>{this.api.registerMedia(t)}),this.fsAPI.init(this.elem,this.medias),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.api.onPlayerReady(this.fsAPI),this.onPlayerReady.emit(this.api)}onChangeFullscreen(t){this.fsAPI.nativeFullscreen?this.isNativeFullscreen=t:(this.isFullscreen=t,this.zIndex=t?xP.getZIndex().toString():"auto")}onHideControls(t){this.areControlsHidden=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP),s.Dc(kP),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-player"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,BP,!1),2&t&&s.md(n=s.Xc())&&(e.medias=n)},hostVars:8,hostBindings:function(t,e){2&t&&(s.yd("z-index",e.zIndex),s.tc("fullscreen",e.isFullscreen)("native-fullscreen",e.isNativeFullscreen)("controls-hidden",e.areControlsHidden))},outputs:{onPlayerReady:"onPlayerReady",onMediaReady:"onMediaReady"},features:[s.oc([bP,kP,yP])],ngContentSelectors:rP,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},styles:["\n vg-player {\n font-family: 'videogular';\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n overflow: hidden;\n background-color: black;\n }\n vg-player.fullscreen {\n position: fixed;\n left: 0;\n top: 0;\n }\n vg-player.native-fullscreen.controls-hidden {\n cursor: none;\n }\n "],encapsulation:2}),t})(),jP=(()=>{let t=class{};return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[bP,kP,xP,yP,fP,LP]}),t})(),$P=(()=>{let t=class{constructor(t,e,i,n){this.API=e,this.fsAPI=i,this.controlsHidden=n,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.subscriptions=[],this.isBuffering=!1,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe(t=>this.onUpdateBuffer(t)))}onUpdateBuffer(t){this.isBuffering=t}onChangeFullscreen(t){this.fsAPI.nativeFullscreen&&(this.isNativeFullscreen=t)}onHideControls(t){this.areControlsHidden=t}onClick(){switch(this.getState()){case fP.VG_PLAYING:this.target.pause();break;case fP.VG_PAUSED:case fP.VG_ENDED:this.target.play()}}getState(){let t=fP.VG_PAUSED;if(this.target)if(this.target.state instanceof Array){for(let e=0,i=this.target.state.length;et.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(bP),s.Dc(kP),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-overlay-play"]],hostVars:2,hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.onClick()})),2&t&&s.tc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:2,vars:6,consts:[[1,"vg-overlay-play"],[1,"overlay-play-container"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Ec(1,"div",1),s.Ic()),2&t&&(s.tc("native-fullscreen",e.isNativeFullscreen)("controls-hidden",e.areControlsHidden),s.pc(1),s.tc("vg-icon-play_arrow","playing"!==e.getState()))},styles:["\n vg-overlay-play {\n z-index: 200;\n }\n vg-overlay-play.is-buffering {\n display: none;\n }\n vg-overlay-play .vg-overlay-play {\n transition: all 0.5s;\n cursor: pointer;\n position: absolute;\n display: block;\n color: white;\n width: 100%;\n height: 100%;\n font-size: 80px;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n vg-overlay-play .vg-overlay-play.native-fullscreen.controls-hidden {\n cursor: none;\n }\n vg-overlay-play .vg-overlay-play .overlay-play-container.vg-icon-play_arrow {\n pointer-events: none;\n width: 100%;\n height: 100%;\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 80px;\n }\n vg-overlay-play .vg-overlay-play:hover {\n filter: alpha(opacity=100);\n opacity: 1;\n }\n vg-overlay-play .vg-overlay-play:hover .overlay-play-container.vg-icon-play_arrow:before {\n transform: scale(1.2);\n }\n "],encapsulation:2}),t})(),HP=(()=>{let t=class{};return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c]]}),t})();function UP(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-button-toggle",12),s.Wc("click",(function(){s.rd(t);const i=e.$implicit,n=e.index;return s.ad(2).onClickPlaylistItem(i,n)})),s.Bd(1),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(2);s.gd("checked",i.currentItem.title===t.title)("value",t.title),s.pc(1),s.Cd(t.label)}}var GP;function WP(t,e){1&t&&s.Ec(0,"mat-spinner",17),2&t&&s.gd("diameter",25)}function qP(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",13),s.Jc(1,"div",14),s.zd(2,WP,1,1,"mat-spinner",15),s.Ic(),s.Jc(3,"button",16),s.Wc("click",(function(){return s.rd(t),s.ad(2).updatePlaylist()})),s.Hc(4),s.Nc(5,GP),s.Gc(),s.Bd(6,"\xa0"),s.Jc(7,"mat-icon"),s.Bd(8,"update"),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(2),s.gd("ngIf",t.playlist_updating),s.pc(1),s.gd("disabled",t.playlist_updating)}}function KP(t,e){1&t&&s.Ec(0,"mat-spinner",23),2&t&&s.gd("diameter",50)}function XP(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",24),s.Wc("click",(function(){return s.rd(t),s.ad(3).namePlaylistDialog()})),s.Jc(1,"mat-icon",19),s.Bd(2,"favorite"),s.Ic(),s.Ic()}}function YP(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",25),s.Wc("click",(function(){return s.rd(t),s.ad(3).openShareDialog()})),s.Jc(1,"mat-icon",19),s.Bd(2,"share"),s.Ic(),s.Ic()}}function ZP(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"button",18),s.Wc("click",(function(){return s.rd(t),s.ad(2).downloadContent()})),s.Jc(2,"mat-icon",19),s.Bd(3,"save"),s.Ic(),s.zd(4,KP,1,1,"mat-spinner",20),s.Ic(),s.zd(5,XP,3,0,"button",21),s.zd(6,YP,3,0,"button",22),s.Ic()}if(2&t){const t=s.ad(2);s.pc(1),s.gd("disabled",t.downloading),s.pc(3),s.gd("ngIf",t.downloading),s.pc(1),s.gd("ngIf",!t.id),s.pc(1),s.gd("ngIf",!t.is_shared&&t.id&&(!t.postsService.isLoggedIn||t.postsService.permissions.includes("sharing")))}}function QP(t,e){1&t&&s.Ec(0,"mat-spinner",23),2&t&&s.gd("diameter",50)}function tT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",25),s.Wc("click",(function(){return s.rd(t),s.ad(3).openShareDialog()})),s.Jc(1,"mat-icon",19),s.Bd(2,"share"),s.Ic(),s.Ic()}}function eT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"button",18),s.Wc("click",(function(){return s.rd(t),s.ad(2).downloadFile()})),s.Jc(2,"mat-icon",19),s.Bd(3,"save"),s.Ic(),s.zd(4,QP,1,1,"mat-spinner",20),s.Ic(),s.zd(5,tT,3,0,"button",22),s.Ic()}if(2&t){const t=s.ad(2);s.pc(1),s.gd("disabled",t.downloading),s.pc(3),s.gd("ngIf",t.downloading),s.pc(1),s.gd("ngIf",!t.is_shared&&t.uid&&"false"!==t.uid&&"subscription"!==t.type&&(!t.postsService.isLoggedIn||t.postsService.permissions.includes("sharing")))}}function iT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"div",1),s.Jc(2,"div",2),s.Jc(3,"div",3),s.Jc(4,"vg-player",4),s.Wc("onPlayerReady",(function(e){return s.rd(t),s.ad().onPlayerReady(e)})),s.Ec(5,"video",5,6),s.Ic(),s.Ic(),s.Jc(7,"div",7),s.Jc(8,"mat-button-toggle-group",8,9),s.Wc("cdkDropListDropped",(function(e){return s.rd(t),s.ad().drop(e)})),s.zd(10,UP,2,3,"mat-button-toggle",10),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.zd(11,qP,9,2,"div",11),s.zd(12,ZP,7,4,"div",0),s.zd(13,eT,6,3,"div",0),s.Ic()}if(2&t){const t=s.nd(6),e=s.ad();s.pc(1),s.gd("ngClass","audio"===e.type?null:"container-video"),s.pc(2),s.gd("ngClass","audio"===e.type?"my-2 px-1":"video-col"),s.pc(1),s.yd("background-color","audio"===e.type?"transparent":"black"),s.pc(1),s.gd("ngClass","audio"===e.type?"audio-styles":"video-styles")("vgMedia",t)("src",e.currentItem.src,s.td),s.pc(3),s.gd("cdkDropListSortingDisabled",!e.id),s.pc(2),s.gd("ngForOf",e.playlist),s.pc(1),s.gd("ngIf",e.id&&e.playlistChanged()),s.pc(1),s.gd("ngIf",e.playlist.length>1),s.pc(1),s.gd("ngIf",1===e.playlist.length)}}GP=$localize`:Playlist save changes button␟5b3075e8dc3f3921ec316b0bd83b6d14a06c1a4f␟7000649363168371045:Save changes`;let nT=(()=>{class t{constructor(t,e,i,n,s){this.postsService=t,this.route=e,this.dialog=i,this.router=n,this.snackBar=s,this.playlist=[],this.original_playlist=null,this.playlist_updating=!1,this.show_player=!1,this.currentIndex=0,this.currentItem=null,this.id=null,this.uid=null,this.subscriptionName=null,this.subPlaylist=null,this.uuid=null,this.timestamp=null,this.is_shared=!1,this.db_playlist=null,this.db_file=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=null,this.sharingEnabled=null,this.url=null,this.name=null,this.downloading=!1,this.original_volume=null}onResize(t){this.innerWidth=window.innerWidth}ngOnInit(){this.innerWidth=window.innerWidth,this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.uid=this.route.snapshot.paramMap.get("uid"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),this.url=this.route.snapshot.paramMap.get("url"),this.name=this.route.snapshot.paramMap.get("name"),this.uuid=this.route.snapshot.paramMap.get("uuid"),this.timestamp=this.route.snapshot.paramMap.get("timestamp"),this.postsService.initialized?this.processConfig():this.postsService.service_initialized.subscribe(t=>{t&&this.processConfig()})}processConfig(){this.baseStreamPath=this.postsService.path,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.subscriptionFolderPath=this.postsService.config.Subscriptions.subscriptions_base_path,this.fileNames=this.route.snapshot.paramMap.get("fileNames")?this.route.snapshot.paramMap.get("fileNames").split("|nvr|"):null,this.fileNames||this.type||(this.is_shared=!0),this.uid&&!this.id?this.getFile():this.id&&this.getPlaylistFiles(),this.url?(this.playlist=[],this.playlist.push({title:this.name,label:this.name,src:this.url,type:"video/mp4"}),this.currentItem=this.playlist[0],this.currentIndex=0,this.show_player=!0):(this.subscriptionName||this.fileNames)&&(this.show_player=!0,this.parseFileNames())}getFile(){const t=!!this.fileNames;this.postsService.getFile(this.uid,null,this.uuid).subscribe(e=>{this.db_file=e.file,this.db_file?(this.sharingEnabled=this.db_file.sharingEnabled,this.fileNames||this.id||(this.fileNames=[this.db_file.id],this.type=this.db_file.isAudio?"audio":"video",t||this.parseFileNames()),this.db_file.sharingEnabled||!this.uuid?this.show_player=!0:t||this.openSnackBar("Error: Sharing has been disabled for this video!","Dismiss")):this.openSnackBar("Failed to get file information from the server.","Dismiss")})}getPlaylistFiles(){this.postsService.getPlaylist(this.id,null,this.uuid).subscribe(t=>{t.playlist?(this.db_playlist=t.playlist,this.fileNames=this.db_playlist.fileNames,this.type=t.type,this.show_player=!0,this.parseFileNames()):this.openSnackBar("Failed to load playlist!","")},t=>{this.openSnackBar("Failed to load playlist!","")})}parseFileNames(){let t=null;"audio"===this.type?t="audio/mp3":"video"===this.type?t="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'."),this.playlist=[];for(let e=0;ethis.saveVolume(this.api),2e3),this.api.getDefaultMedia().subscriptions.loadedMetadata.subscribe(this.playVideo.bind(this)),this.api.getDefaultMedia().subscriptions.ended.subscribe(this.nextVideo.bind(this)),this.timestamp&&this.api.seekTime(+this.timestamp)}saveVolume(t){this.original_volume!==t.volume&&(localStorage.setItem("player_volume",t.volume),this.original_volume=t.volume)}nextVideo(){this.currentIndex!==this.playlist.length-1&&(this.currentIndex++,this.currentItem=this.playlist[this.currentIndex])}playVideo(){this.api.play()}onClickPlaylistItem(t,e){this.currentIndex=e,this.currentItem=t}getFileInfos(){const t=this.getFileNames();this.postsService.getFileInfo(t,this.type,!1).subscribe(t=>{})}getFileNames(){const t=[];for(let e=0;e{this.downloading=!1,saveAs(t,e+".zip")},t=>{console.log(t),this.downloading=!1})}downloadFile(){const t="audio"===this.type?".mp3":".mp4",e=this.playlist[0].title;this.downloading=!0,this.postsService.downloadFileFromServer(e,this.type,null,null,this.subscriptionName,this.subPlaylist,this.is_shared?this.db_file.uid:null,this.uuid).subscribe(i=>{this.downloading=!1,saveAs(i,e+t)},t=>{console.log(t),this.downloading=!1})}namePlaylistDialog(){const t=new s.u,e=this.dialog.open(qA,{width:"300px",data:{inputTitle:"Name the playlist",inputPlaceholder:"Name",submitText:"Favorite",doneEmitter:t}});t.subscribe(t=>{if(t){const i=this.getFileNames();this.postsService.createPlaylist(t,i,this.type,null).subscribe(i=>{if(i.success){e.close();const n=i.new_playlist;this.db_playlist=n,this.openSnackBar("Playlist '"+t+"' successfully created!",""),this.playlistPostCreationHandler(n.id)}})}})}playlistPostCreationHandler(t){this.id=t,this.router.navigateByUrl(this.router.url+";id="+t)}drop(t){sv(this.playlist,t.previousIndex,t.currentIndex)}playlistChanged(){return JSON.stringify(this.playlist)!==this.original_playlist}updatePlaylist(){const t=this.getFileNames();this.playlist_updating=!0,this.postsService.updatePlaylistFiles(this.id,t,this.type).subscribe(e=>{if(this.playlist_updating=!1,e.success){const e=t.join("|nvr|");this.router.navigate(["/player",{fileNames:e,type:this.type,id:this.id}]),this.openSnackBar("Successfully updated playlist.",""),this.original_playlist=JSON.stringify(this.playlist)}else this.openSnackBar("ERROR: Failed to update playlist.","")})}openShareDialog(){this.dialog.open(oP,{data:{uid:this.id?this.id:this.uid,type:this.type,sharing_enabled:this.id?this.db_playlist.sharingEnabled:this.db_file.sharingEnabled,is_playlist:!!this.id,uuid:this.postsService.isLoggedIn?this.postsService.user.uid:null,current_timestamp:this.api.time.current},width:"60vw"}).afterClosed().subscribe(t=>{this.id?this.getPlaylistFiles():this.getFile()})}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(pw),s.Dc(bd),s.Dc(wx),s.Dc(Hg))},t.\u0275cmp=s.xc({type:t,selectors:[["app-player"]],hostBindings:function(t,e){1&t&&s.Wc("resize",(function(t){return e.onResize(t)}),!1,s.qd)},decls:1,vars:1,consts:[[4,"ngIf"],[1,"container",3,"ngClass"],[1,"row",2,"max-width","100%","margin-left","0px","height","70vh"],[1,"col",3,"ngClass"],[3,"onPlayerReady"],["id","singleVideo","preload","auto","controls","",1,"video-player",3,"ngClass","vgMedia","src"],["media",""],[1,"col-12","my-2"],["cdkDropList","","vertical","","name","videoSelect","aria-label","Video Select",2,"width","80%","left","9%",3,"cdkDropListSortingDisabled","cdkDropListDropped"],["group","matButtonToggleGroup"],["cdkDrag","","class","toggle-button",3,"checked","value","click",4,"ngFor","ngForOf"],["class","update-playlist-button-div",4,"ngIf"],["cdkDrag","",1,"toggle-button",3,"checked","value","click"],[1,"update-playlist-button-div"],[1,"spinner-div"],[3,"diameter",4,"ngIf"],["color","primary","mat-raised-button","",3,"disabled","click"],[3,"diameter"],["color","primary","mat-fab","",1,"save-button",3,"disabled","click"],[1,"save-icon"],["class","spinner",3,"diameter",4,"ngIf"],["color","accent","class","favorite-button","color","primary","mat-fab","",3,"click",4,"ngIf"],["class","share-button","color","primary","mat-fab","",3,"click",4,"ngIf"],[1,"spinner",3,"diameter"],["color","accent","color","primary","mat-fab","",1,"favorite-button",3,"click"],["color","primary","mat-fab","",1,"share-button",3,"click"]],template:function(t,e){1&t&&s.zd(0,iT,14,12,"div",0),2&t&&s.gd("ngIf",e.playlist.length>0&&e.show_player)},directives:[ve.t,ve.q,VP,BP,Ro,Av,ve.s,No,Iv,bs,vu,mm],styles:[".video-player[_ngcontent-%COMP%]{margin:0 auto;min-width:300px}.video-player[_ngcontent-%COMP%]:focus{outline:none}.audio-styles[_ngcontent-%COMP%]{height:50px;background-color:transparent;width:100%}.video-styles[_ngcontent-%COMP%]{width:100%} .mat-button-toggle-label-content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.container-video[_ngcontent-%COMP%]{max-width:100%;padding-left:0;padding-right:0}.progress-bar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:-1px}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:fixed;bottom:25px}.favorite-button[_ngcontent-%COMP%], .share-button[_ngcontent-%COMP%]{left:25px;position:fixed;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px;height:100%}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}.update-playlist-button-div[_ngcontent-%COMP%]{float:right;margin-right:30px;margin-top:25px;margin-bottom:15px}.spinner-div[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-right:12px;top:8px}"]}),t})();var sT;sT=$localize`:Subscribe dialog title␟a9806cf78ce00eb2613eeca11354a97e033377b8␟4500902888758611270:Subscribe to playlist or channel`;const aT=["placeholder",$localize`:Subscription URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var oT;oT=$localize`:Subscription URL input hint␟93efc99ae087fc116de708ecd3ace86ca237cf30␟6758330192665823220:The playlist or channel URL`;const rT=["placeholder",$localize`:Subscription custom name placeholder␟08f5d0ef937ae17feb1b04aff15ad88911e87baf␟1402261878731426139:Custom name`];var lT,cT,dT;lT=$localize`:Download all uploads subscription setting␟ea30873bd3f0d5e4fb2378eec3f0a1db77634a28␟2789218157148692814:Download all uploads`,cT=$localize`:Streaming-only mode␟c76a955642714b8949ff3e4b4990864a2e2cac95␟4743212858568319264:Audio-only mode`,dT=$localize`:Streaming-only mode␟408ca4911457e84a348cecf214f02c69289aa8f1␟1474682218975380155:Streaming-only mode`;const hT=["placeholder",$localize`:Subscription custom args placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var uT;uT=$localize`:Custom args hint␟f432e1a8d6adb12e612127978ce2e0ced933959c␟6149317832585935644:These are added after the standard args.`;const pT=["placeholder",$localize`:Subscription custom file output placeholder␟98b6ec9ec138186d663e64770267b67334353d63␟4096999545370137829:Custom file output`];var mT,gT,fT,bT,_T;function vT(t,e){if(1&t&&(s.Jc(0,"mat-option",22),s.Bd(1),s.Ic()),2&t){const t=e.$implicit,i=s.ad(2);s.gd("value",t+(1===i.timerange_amount?"":"s")),s.pc(1),s.Dd(" ",t+(1===i.timerange_amount?"":"s")," ")}}function yT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",6),s.Hc(1),s.Nc(2,_T),s.Gc(),s.Jc(3,"mat-form-field",18),s.Jc(4,"input",19),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().timerange_amount=e})),s.Ic(),s.Ic(),s.Jc(5,"mat-select",20),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().timerange_unit=e})),s.zd(6,vT,2,2,"mat-option",21),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(4),s.gd("ngModel",t.timerange_amount),s.pc(1),s.gd("ngModel",t.timerange_unit),s.pc(1),s.gd("ngForOf",t.time_units)}}function wT(t,e){1&t&&(s.Jc(0,"div",23),s.Ec(1,"mat-spinner",24),s.Ic()),2&t&&(s.pc(1),s.gd("diameter",25))}mT=$localize`:Custom output template documentation link␟fcfd4675b4c90f08d18d3abede9a9a4dff4cfdc7␟4895326106573044490:Documentation`,gT=$localize`:Custom Output input hint␟19d1ae64d94d28a29b2c57ae8671aace906b5401␟3584692608114953661:Path is relative to the config download path. Don't include extension.`,fT=$localize`:Subscribe cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,bT=$localize`:Subscribe button␟d0336848b0c375a1c25ba369b3481ee383217a4f␟1144407473317535723:Subscribe`,_T=$localize`:Download time range prefix␟28a678e9cabf86e44c32594c43fa0e890135c20f␟2424458468042538424:Download videos uploaded in the last`;let xT=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.dialog=i,this.dialogRef=n,this.timerange_unit="days",this.download_all=!0,this.url=null,this.name=null,this.subscribing=!1,this.streamingOnlyMode=!1,this.audioOnlyMode=!1,this.customFileOutput="",this.customArgs="",this.time_units=["day","week","month","year"]}ngOnInit(){}subscribeClicked(){if(this.url&&""!==this.url){if(!this.download_all&&!this.timerange_amount)return void this.openSnackBar("You must specify an amount of time");this.subscribing=!0;let t=null;this.download_all||(t="now-"+this.timerange_amount.toString()+this.timerange_unit),this.postsService.createSubscription(this.url,this.name,t,this.streamingOnlyMode,this.audioOnlyMode,this.customArgs,this.customFileOutput).subscribe(t=>{this.subscribing=!1,t.new_sub?this.dialogRef.close(t.new_sub):(t.error&&this.openSnackBar("ERROR: "+t.error),this.dialogRef.close())})}}openArgsModifierDialog(){this.dialog.open(Vk,{data:{initial_args:this.customArgs}}).afterClosed().subscribe(t=>{null!=t&&(this.customArgs=t)})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg),s.Dc(bd),s.Dc(ud))},t.\u0275cmp=s.xc({type:t,selectors:[["app-subscribe-dialog"]],decls:63,vars:11,consts:[["mat-dialog-title",""],[1,"container-fluid"],[1,"row"],[1,"col-12","mb-4"],["color","accent"],["matInput","","required","","aria-required","true",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-3"],[3,"ngModel","ngModelChange"],["class","col-12",4,"ngIf"],[3,"disabled","ngModel","ngModelChange"],[1,"col-12","mb-3"],["mat-icon-button","",1,"args-edit-button",3,"click"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],["color","accent",2,"width","50px","text-align","center"],["type","number","matInput","",3,"ngModel","ngModelChange"],["color","accent",1,"unit-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Nc(1,sT),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div",1),s.Jc(4,"div",2),s.Jc(5,"div",3),s.Jc(6,"mat-form-field",4),s.Jc(7,"input",5),s.Pc(8,aT),s.Wc("ngModelChange",(function(t){return e.url=t})),s.Ic(),s.Jc(9,"mat-hint"),s.Hc(10),s.Nc(11,oT),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ec(12,"mat-divider"),s.Jc(13,"div",1),s.Jc(14,"div",2),s.Jc(15,"div",6),s.Jc(16,"mat-form-field",4),s.Jc(17,"input",7),s.Pc(18,rT),s.Wc("ngModelChange",(function(t){return e.name=t})),s.Ic(),s.Ic(),s.Ic(),s.Jc(19,"div",8),s.Jc(20,"mat-checkbox",9),s.Wc("ngModelChange",(function(t){return e.download_all=t})),s.Hc(21),s.Nc(22,lT),s.Gc(),s.Ic(),s.Ic(),s.zd(23,yT,7,3,"div",10),s.Jc(24,"div",6),s.Jc(25,"div"),s.Jc(26,"mat-checkbox",9),s.Wc("ngModelChange",(function(t){return e.audioOnlyMode=t})),s.Hc(27),s.Nc(28,cT),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(29,"div",6),s.Jc(30,"div"),s.Jc(31,"mat-checkbox",11),s.Wc("ngModelChange",(function(t){return e.streamingOnlyMode=t})),s.Hc(32),s.Nc(33,dT),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(34,"div",12),s.Jc(35,"mat-form-field",4),s.Jc(36,"input",7),s.Pc(37,hT),s.Wc("ngModelChange",(function(t){return e.customArgs=t})),s.Ic(),s.Jc(38,"button",13),s.Wc("click",(function(){return e.openArgsModifierDialog()})),s.Jc(39,"mat-icon"),s.Bd(40,"edit"),s.Ic(),s.Ic(),s.Jc(41,"mat-hint"),s.Hc(42),s.Nc(43,uT),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(44,"div",6),s.Jc(45,"mat-form-field",4),s.Jc(46,"input",7),s.Pc(47,pT),s.Wc("ngModelChange",(function(t){return e.customFileOutput=t})),s.Ic(),s.Jc(48,"mat-hint"),s.Jc(49,"a",14),s.Hc(50),s.Nc(51,mT),s.Gc(),s.Ic(),s.Bd(52,". "),s.Hc(53),s.Nc(54,gT),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(55,"mat-dialog-actions"),s.Jc(56,"button",15),s.Hc(57),s.Nc(58,fT),s.Gc(),s.Ic(),s.Jc(59,"button",16),s.Wc("click",(function(){return e.subscribeClicked()})),s.Hc(60),s.Nc(61,bT),s.Gc(),s.Ic(),s.zd(62,wT,2,1,"div",17),s.Ic()),2&t&&(s.pc(7),s.gd("ngModel",e.url),s.pc(10),s.gd("ngModel",e.name),s.pc(3),s.gd("ngModel",e.download_all),s.pc(3),s.gd("ngIf",!e.download_all),s.pc(3),s.gd("ngModel",e.audioOnlyMode),s.pc(5),s.gd("disabled",e.audioOnlyMode)("ngModel",e.streamingOnlyMode),s.pc(5),s.gd("ngModel",e.customArgs),s.pc(10),s.gd("ngModel",e.customFileOutput),s.pc(13),s.gd("disabled",!e.url),s.pc(3),s.gd("ngIf",e.subscribing))},directives:[yd,wd,Bc,Ru,Rs,ho,Js,qa,Oc,Fu,gr,ve.t,bs,vu,xd,vd,Qs,Gm,ve.s,rs,mm],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px}"]}),t})();var kT,CT,ST,IT,DT,ET,OT;function AT(t,e){if(1&t&&(s.Jc(0,"div",1),s.Jc(1,"strong"),s.Hc(2),s.Nc(3,OT),s.Gc(),s.Bd(4,"\xa0"),s.Ic(),s.Jc(5,"span",2),s.Bd(6),s.Ic(),s.Ic()),2&t){const t=s.ad();s.pc(6),s.Cd(t.sub.archive)}}kT=$localize`:Subscription type property␟e78c0d60ac39787f62c9159646fe0b3c1ed55a1d␟2736556170366900089:Type:`,CT=$localize`:Subscription URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,ST=$localize`:Subscription ID property␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,IT=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,DT=$localize`:Export Archive button␟8efc77bf327659c0fec1f518cf48a98cdcd9dddf␟5613381975493898311:Export Archive`,ET=$localize`:Unsubscribe button␟3042bd3ad8dffcfeca5fd1ae6159fd1047434e95␟1698114086921246480:Unsubscribe`,OT=$localize`:Subscription ID property␟a44d86aa1e6c20ced07aca3a7c081d8db9ded1c6␟2158775445713924699:Archive:`;let PT=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.postsService=i,this.sub=null,this.unsubbedEmitter=null}ngOnInit(){this.data&&(this.sub=this.data.sub,this.unsubbedEmitter=this.data.unsubbedEmitter)}unsubscribe(){this.postsService.unsubscribe(this.sub,!0).subscribe(t=>{this.unsubbedEmitter.emit(!0),this.dialogRef.close()})}downloadArchive(){this.postsService.downloadArchive(this.sub).subscribe(t=>{saveAs(t,"archive.txt")})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(ud),s.Dc(pd),s.Dc(Wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-subscription-info-dialog"]],decls:36,vars:5,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-value"],["class","info-item",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","","color","accent",3,"click"],[1,"spacer"],["mat-button","","color","warn",3,"click"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Bd(1),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div",1),s.Jc(4,"strong"),s.Hc(5),s.Nc(6,kT),s.Gc(),s.Bd(7,"\xa0"),s.Ic(),s.Jc(8,"span",2),s.Bd(9),s.Ic(),s.Ic(),s.Jc(10,"div",1),s.Jc(11,"strong"),s.Hc(12),s.Nc(13,CT),s.Gc(),s.Bd(14,"\xa0"),s.Ic(),s.Jc(15,"span",2),s.Bd(16),s.Ic(),s.Ic(),s.Jc(17,"div",1),s.Jc(18,"strong"),s.Hc(19),s.Nc(20,ST),s.Gc(),s.Bd(21,"\xa0"),s.Ic(),s.Jc(22,"span",2),s.Bd(23),s.Ic(),s.Ic(),s.zd(24,AT,7,1,"div",3),s.Ic(),s.Jc(25,"mat-dialog-actions"),s.Jc(26,"button",4),s.Hc(27),s.Nc(28,IT),s.Gc(),s.Ic(),s.Jc(29,"button",5),s.Wc("click",(function(){return e.downloadArchive()})),s.Hc(30),s.Nc(31,DT),s.Gc(),s.Ic(),s.Ec(32,"span",6),s.Jc(33,"button",7),s.Wc("click",(function(){return e.unsubscribe()})),s.Hc(34),s.Nc(35,ET),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.Cd(e.sub.name),s.pc(8),s.Cd(e.sub.isPlaylist?"Playlist":"Channel"),s.pc(7),s.Cd(e.sub.url),s.pc(7),s.Cd(e.sub.id),s.pc(1),s.gd("ngIf",e.sub.archive))},directives:[yd,wd,ve.t,xd,bs,vd],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px}.info-item-value[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),t})();var TT,RT,MT,FT,NT,zT,LT;function BT(t,e){if(1&t&&(s.Jc(0,"strong"),s.Bd(1),s.Ic()),2&t){const t=s.ad().$implicit;s.pc(1),s.Cd(t.name)}}function JT(t,e){1&t&&(s.Jc(0,"div"),s.Hc(1),s.Nc(2,FT),s.Gc(),s.Ic())}function VT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-list-item"),s.Jc(1,"a",9),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad().goToSubscription(i)})),s.zd(2,BT,2,1,"strong",10),s.zd(3,JT,3,0,"div",10),s.Ic(),s.Jc(4,"button",11),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad().showSubInfo(i)})),s.Jc(5,"mat-icon"),s.Bd(6,"info"),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit;s.pc(2),s.gd("ngIf",t.name),s.pc(1),s.gd("ngIf",!t.name)}}function jT(t,e){1&t&&(s.Jc(0,"div",12),s.Jc(1,"p"),s.Nc(2,NT),s.Ic(),s.Ic())}function $T(t,e){1&t&&(s.Jc(0,"div",14),s.Hc(1),s.Nc(2,zT),s.Gc(),s.Ic())}function HT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-list-item"),s.Jc(1,"a",9),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad().goToSubscription(i)})),s.Jc(2,"strong"),s.Bd(3),s.Ic(),s.zd(4,$T,3,0,"div",13),s.Ic(),s.Jc(5,"button",11),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad().showSubInfo(i)})),s.Jc(6,"mat-icon"),s.Bd(7,"info"),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit;s.pc(3),s.Cd(t.name),s.pc(1),s.gd("ngIf",!t.name)}}function UT(t,e){1&t&&(s.Jc(0,"div",12),s.Jc(1,"p"),s.Nc(2,LT),s.Ic(),s.Ic())}function GT(t,e){1&t&&(s.Jc(0,"div",15),s.Ec(1,"mat-progress-bar",16),s.Ic())}TT=$localize`:Subscriptions title␟e2319dec5b4ccfb6ed9f55ccabd63650a8fdf547␟3180145612302390475:Your subscriptions`,RT=$localize`:Subscriptions channels title␟807cf11e6ac1cde912496f764c176bdfdd6b7e19␟8181077408762380407:Channels`,MT=$localize`:Subscriptions playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,FT=$localize`:Subscription playlist not available text␟29b89f751593e1b347eef103891b7a1ff36ec03f␟973700466393519727:Name not available. Channel retrieval in progress.`,NT=$localize`:No channel subscriptions text␟4636cd4a1379c50d471e98786098c4d39e1e82ad␟2560406180065361139:You have no channel subscriptions.`,zT=$localize`:Subscription playlist not available text␟2e0a410652cb07d069f576b61eab32586a18320d␟4161141077899894301:Name not available. Playlist retrieval in progress.`,LT=$localize`:No playlist subscriptions text␟587b57ced54965d8874c3fd0e9dfedb987e5df04␟3403368727234976136:You have no playlist subscriptions.`;let WT=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.postsService=e,this.router=i,this.snackBar=n,this.playlist_subscriptions=[],this.channel_subscriptions=[],this.subscriptions=null,this.subscriptions_loading=!1}ngOnInit(){this.postsService.initialized&&this.getSubscriptions(),this.postsService.service_initialized.subscribe(t=>{t&&this.getSubscriptions()})}getSubscriptions(){this.subscriptions_loading=!0,this.subscriptions=null,this.postsService.getAllSubscriptions().subscribe(t=>{if(this.channel_subscriptions=[],this.playlist_subscriptions=[],this.subscriptions_loading=!1,this.subscriptions=t.subscriptions,this.subscriptions)for(let e=0;e{this.subscriptions_loading=!1,console.error("Failed to get subscriptions"),this.openSnackBar("ERROR: Failed to get subscriptions!","OK.")})}goToSubscription(t){this.router.navigate(["/subscription",{id:t.id}])}openSubscribeDialog(){this.dialog.open(xT,{maxWidth:500,width:"80vw"}).afterClosed().subscribe(t=>{t&&(t.isPlaylist?this.playlist_subscriptions.push(t):this.channel_subscriptions.push(t))})}showSubInfo(t){const e=new s.u;this.dialog.open(PT,{data:{sub:t,unsubbedEmitter:e}}),e.subscribe(e=>{e&&(this.openSnackBar(`${t.name} successfully deleted!`),this.getSubscriptions())})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(bd),s.Dc(Wx),s.Dc(wx),s.Dc(Hg))},t.\u0275cmp=s.xc({type:t,selectors:[["app-subscriptions"]],decls:19,vars:5,consts:[[2,"text-align","center","margin-bottom","15px"],[2,"width","80%","margin","0 auto"],[2,"text-align","center"],[1,"sub-nav-list"],[4,"ngFor","ngForOf"],["style","width: 80%; margin: 0 auto; padding-left: 15px;",4,"ngIf"],[2,"text-align","center","margin-top","10px"],["style","margin: 0 auto; width: 80%",4,"ngIf"],["mat-fab","",1,"add-subscription-button",3,"click"],["matLine","","href","javascript:void(0)",1,"a-list-item",3,"click"],[4,"ngIf"],["mat-icon-button","",3,"click"],[2,"width","80%","margin","0 auto","padding-left","15px"],["class","content-loading-div",4,"ngIf"],[1,"content-loading-div"],[2,"margin","0 auto","width","80%"],["mode","indeterminate"]],template:function(t,e){1&t&&(s.Ec(0,"br"),s.Jc(1,"h2",0),s.Nc(2,TT),s.Ic(),s.Ec(3,"mat-divider",1),s.Ec(4,"br"),s.Jc(5,"h4",2),s.Nc(6,RT),s.Ic(),s.Jc(7,"mat-nav-list",3),s.zd(8,VT,7,2,"mat-list-item",4),s.Ic(),s.zd(9,jT,3,0,"div",5),s.Jc(10,"h4",6),s.Nc(11,MT),s.Ic(),s.Jc(12,"mat-nav-list",3),s.zd(13,HT,8,2,"mat-list-item",4),s.Ic(),s.zd(14,UT,3,0,"div",5),s.zd(15,GT,2,0,"div",7),s.Jc(16,"button",8),s.Wc("click",(function(){return e.openSubscribeDialog()})),s.Jc(17,"mat-icon"),s.Bd(18,"add"),s.Ic(),s.Ic()),2&t&&(s.pc(8),s.gd("ngForOf",e.channel_subscriptions),s.pc(1),s.gd("ngIf",0===e.channel_subscriptions.length&&e.subscriptions),s.pc(4),s.gd("ngForOf",e.playlist_subscriptions),s.pc(1),s.gd("ngIf",0===e.playlist_subscriptions.length&&e.subscriptions),s.pc(1),s.gd("ngIf",e.subscriptions_loading))},directives:[Fu,qu,ve.s,ve.t,bs,vu,tp,Jn,nm],styles:[".add-subscription-button[_ngcontent-%COMP%]{position:fixed;bottom:30px;right:30px}.subscription-card[_ngcontent-%COMP%]{height:200px;width:300px}.content-loading-div[_ngcontent-%COMP%]{position:absolute;width:200px;height:50px;bottom:-18px}.a-list-item[_ngcontent-%COMP%]{height:48px;padding-top:12px!important}.sub-nav-list[_ngcontent-%COMP%]{margin:0 auto;width:80%}"]}),t})();var qT,KT,XT,YT;function ZT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",4),s.Wc("click",(function(){return s.rd(t),s.ad().deleteForever()})),s.Jc(1,"mat-icon"),s.Bd(2,"delete_forever"),s.Ic(),s.Hc(3),s.Nc(4,YT),s.Gc(),s.Ic()}}function QT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"img",11),s.Wc("error",(function(e){return s.rd(t),s.ad().onImgError(e)})),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(1),s.gd("src",t.file.thumbnailURL,s.td)}}qT=$localize`:Video duration label␟2054791b822475aeaea95c0119113de3200f5e1c␟7115285952699064699:Length:`,KT=$localize`:Subscription video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,XT=$localize`:Delete and redownload subscription video button␟94e01842dcee90531caa52e4147f70679bac87fe␟8460889291602192517:Delete and redownload`,YT=$localize`:Delete forever subscription video button␟2031adb51e07a41844e8ba7704b054e98345c9c1␟880206287081443054:Delete forever`;let tR=(()=>{class t{constructor(t,e,i){this.snackBar=t,this.postsService=e,this.dialog=i,this.image_errored=!1,this.image_loaded=!1,this.formattedDuration=null,this.use_youtubedl_archive=!1,this.goToFileEmit=new s.u,this.reloadSubscription=new s.u,this.scrollSubject=new Pe.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}ngOnInit(){this.file.duration&&(this.formattedDuration=function(t){const e=~~(t/3600),i=~~(t%3600/60),n=~~t%60;let s="";return e>0&&(s+=e+":"+(i<10?"0":"")),s+=i+":"+(n<10?"0":""),s+=""+n,s}(this.file.duration))}onImgError(t){this.image_errored=!0}onHoverResponse(){this.scrollSubject.next()}imageLoaded(t){this.image_loaded=!0}goToFile(){this.goToFileEmit.emit({name:this.file.id,url:this.file.requested_formats?this.file.requested_formats[0].url:this.file.url})}openSubscriptionInfoDialog(){this.dialog.open(eA,{data:{file:this.file},minWidth:"50vw"})}deleteAndRedownload(){this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!1,this.file.uid).subscribe(t=>{this.reloadSubscription.emit(!0),this.openSnackBar(`Successfully deleted file: '${this.file.id}'`,"Dismiss.")})}deleteForever(){this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!0,this.file.uid).subscribe(t=>{this.reloadSubscription.emit(!0),this.openSnackBar(`Successfully deleted file: '${this.file.id}'`,"Dismiss.")})}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Hg),s.Dc(Wx),s.Dc(bd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-subscription-file-card"]],inputs:{file:"file",sub:"sub",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{goToFileEmit:"goToFileEmit",reloadSubscription:"reloadSubscription"},decls:27,vars:5,consts:[[2,"position","relative","width","fit-content"],[1,"duration-time"],["mat-icon-button","",1,"menuButton",3,"matMenuTriggerFor"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["matRipple","",1,"example-card","mat-elevation-z6",3,"click"],[2,"padding","5px"],["class","img-div",4,"ngIf"],[1,"max-two-lines"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"src","error"]],template:function(t,e){if(1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.Hc(2),s.Nc(3,qT),s.Gc(),s.Bd(4),s.Ic(),s.Jc(5,"button",2),s.Jc(6,"mat-icon"),s.Bd(7,"more_vert"),s.Ic(),s.Ic(),s.Jc(8,"mat-menu",null,3),s.Jc(10,"button",4),s.Wc("click",(function(){return e.openSubscriptionInfoDialog()})),s.Jc(11,"mat-icon"),s.Bd(12,"info"),s.Ic(),s.Hc(13),s.Nc(14,KT),s.Gc(),s.Ic(),s.Jc(15,"button",4),s.Wc("click",(function(){return e.deleteAndRedownload()})),s.Jc(16,"mat-icon"),s.Bd(17,"restore"),s.Ic(),s.Hc(18),s.Nc(19,XT),s.Gc(),s.Ic(),s.zd(20,ZT,5,0,"button",5),s.Ic(),s.Jc(21,"mat-card",6),s.Wc("click",(function(){return e.goToFile()})),s.Jc(22,"div",7),s.zd(23,QT,2,1,"div",8),s.Jc(24,"span",9),s.Jc(25,"strong"),s.Bd(26),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()),2&t){const t=s.nd(9);s.pc(4),s.Dd("\xa0",e.formattedDuration," "),s.pc(1),s.gd("matMenuTriggerFor",t),s.pc(15),s.gd("ngIf",e.sub.archive&&e.use_youtubedl_archive),s.pc(3),s.gd("ngIf",!e.image_errored&&e.file.thumbnailURL),s.pc(3),s.Cd(e.file.title)}},directives:[bs,Ep,vu,Cp,_p,ve.t,er,Kn],styles:[".example-card[_ngcontent-%COMP%]{width:200px;height:200px;padding:0;cursor:pointer}.menuButton[_ngcontent-%COMP%]{right:0;top:-1px;position:absolute;z-index:999}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:200px;height:112.5px;-o-object-fit:cover;object-fit:cover}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{max-height:80px;padding:0;margin:32px 0 0 -5px;width:calc(100% + 10px)}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:5px;position:absolute}.duration-time[_ngcontent-%COMP%]{position:absolute;left:5px;top:5px;z-index:99999}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:175px!important}.image[_ngcontent-%COMP%]{width:175px}}"]}),t})();function eR(t,e){if(1&t&&(s.Jc(0,"h2",9),s.Bd(1),s.Ic()),2&t){const t=s.ad();s.pc(1),s.Dd(" ",t.subscription.name," ")}}var iR;iR=$localize`:Subscription videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const nR=["placeholder",$localize`:Subscription videos search placeholder␟7e892ba15f2c6c17e83510e273b3e10fc32ea016␟4580988005648117665:Search`];function sR(t,e){if(1&t&&(s.Jc(0,"mat-option",25),s.Bd(1),s.Ic()),2&t){const t=e.$implicit;s.gd("value",t.value),s.pc(1),s.Dd(" ",t.value.label," ")}}function aR(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",26),s.Jc(1,"app-subscription-file-card",27),s.Wc("reloadSubscription",(function(){return s.rd(t),s.ad(2).getSubscription()}))("goToFileEmit",(function(e){return s.rd(t),s.ad(2).goToFile(e)})),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(2);s.pc(1),s.gd("file",t)("sub",i.subscription)("use_youtubedl_archive",i.use_youtubedl_archive)}}function oR(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"div",10),s.Jc(2,"div",11),s.Jc(3,"div",12),s.Jc(4,"mat-select",13),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().filterProperty=e}))("selectionChange",(function(e){return s.rd(t),s.ad().filterOptionChanged(e.value)})),s.zd(5,sR,2,2,"mat-option",14),s.bd(6,"keyvalue"),s.Ic(),s.Ic(),s.Jc(7,"div",12),s.Jc(8,"button",15),s.Wc("click",(function(){return s.rd(t),s.ad().toggleModeChange()})),s.Jc(9,"mat-icon"),s.Bd(10),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ec(11,"div",16),s.Jc(12,"div",16),s.Jc(13,"h4",17),s.Nc(14,iR),s.Ic(),s.Ic(),s.Jc(15,"div",18),s.Jc(16,"mat-form-field",19),s.Jc(17,"input",20),s.Pc(18,nR),s.Wc("focus",(function(){return s.rd(t),s.ad().searchIsFocused=!0}))("blur",(function(){return s.rd(t),s.ad().searchIsFocused=!1}))("ngModelChange",(function(e){return s.rd(t),s.ad().search_text=e}))("ngModelChange",(function(e){return s.rd(t),s.ad().onSearchInputChanged(e)})),s.Ic(),s.Jc(19,"mat-icon",21),s.Bd(20,"search"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(21,"div",22),s.Jc(22,"div",23),s.zd(23,aR,2,3,"div",24),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(4),s.gd("ngModel",t.filterProperty),s.pc(1),s.gd("ngForOf",s.cd(6,6,t.filterProperties)),s.pc(5),s.Cd(t.descendingMode?"arrow_downward":"arrow_upward"),s.pc(6),s.gd("ngClass",t.searchIsFocused?"search-bar-focused":"search-bar-unfocused"),s.pc(1),s.gd("ngModel",t.search_text),s.pc(6),s.gd("ngForOf",t.filtered_files)}}function rR(t,e){1&t&&s.Ec(0,"mat-spinner",28),2&t&&s.gd("diameter",50)}let lR=(()=>{class t{constructor(t,e,i){this.postsService=t,this.route=e,this.router=i,this.id=null,this.subscription=null,this.files=null,this.filtered_files=null,this.use_youtubedl_archive=!1,this.search_mode=!1,this.search_text="",this.searchIsFocused=!1,this.descendingMode=!0,this.filterProperties={upload_date:{key:"upload_date",label:"Upload Date",property:"upload_date"},name:{key:"name",label:"Name",property:"title"},file_size:{key:"file_size",label:"File Size",property:"size"},duration:{key:"duration",label:"Duration",property:"duration"}},this.filterProperty=this.filterProperties.upload_date,this.downloading=!1}ngOnInit(){this.route.snapshot.paramMap.get("id")&&(this.id=this.route.snapshot.paramMap.get("id"),this.postsService.service_initialized.subscribe(t=>{t&&(this.getConfig(),this.getSubscription())}));const t=localStorage.getItem("filter_property");t&&this.filterProperties[t]&&(this.filterProperty=this.filterProperties[t])}goBack(){this.router.navigate(["/subscriptions"])}getSubscription(){this.postsService.getSubscription(this.id).subscribe(t=>{this.subscription=t.subscription,this.files=t.files,this.search_mode?this.filterFiles(this.search_text):this.filtered_files=this.files,this.filterByProperty(this.filterProperty.property)})}getConfig(){this.use_youtubedl_archive=this.postsService.config.Subscriptions.subscriptions_use_youtubedl_archive}goToFile(t){const e=t.name,i=t.url;localStorage.setItem("player_navigator",this.router.url),this.router.navigate(this.subscription.streamingOnly?["/player",{name:e,url:i}]:["/player",{fileNames:e,type:this.subscription.type?this.subscription.type:"video",subscriptionName:this.subscription.name,subPlaylist:this.subscription.isPlaylist,uuid:this.postsService.user?this.postsService.user.uid:null}])}onSearchInputChanged(t){t.length>0?(this.search_mode=!0,this.filterFiles(t)):this.search_mode=!1}filterFiles(t){const e=t.toLowerCase();this.filtered_files=this.files.filter(t=>t.id.toLowerCase().includes(e))}filterByProperty(t){this.filtered_files=this.filtered_files.sort(this.descendingMode?(e,i)=>e[t]>i[t]?-1:1:(e,i)=>e[t]>i[t]?1:-1)}filterOptionChanged(t){this.filterByProperty(t.property),localStorage.setItem("filter_property",t.key)}toggleModeChange(){this.descendingMode=!this.descendingMode,this.filterByProperty(this.filterProperty.property)}downloadContent(){const t=[];for(let e=0;e{this.downloading=!1,saveAs(t,this.subscription.name+".zip")},t=>{console.log(t),this.downloading=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(pw),s.Dc(wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-subscription"]],decls:13,vars:4,consts:[[2,"margin-top","14px"],["mat-icon-button","",1,"back-button",3,"click"],[2,"margin-bottom","15px"],["style","text-align: center;",4,"ngIf"],[2,"width","80%","margin","0 auto"],[4,"ngIf"],["color","primary","mat-fab","",1,"save-button",3,"disabled","click"],[1,"save-icon"],["class","spinner",3,"diameter",4,"ngIf"],[2,"text-align","center"],[1,"flex-grid"],[1,"filter-select-parent"],[2,"display","inline-block"],[2,"width","110px",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","",3,"click"],[1,"col"],[2,"text-align","center","margin-bottom","20px"],[1,"col",2,"top","-12px"],["color","accent",1,"search-bar",3,"ngClass"],["type","text","matInput","",1,"search-input",3,"ngModel","focus","blur","ngModelChange",6,"placeholder"],["matSuffix",""],[1,"container"],[1,"row","justify-content-center"],["class","col-6 col-lg-4 mb-2 mt-2 sub-file-col",4,"ngFor","ngForOf"],[3,"value"],[1,"col-6","col-lg-4","mb-2","mt-2","sub-file-col"],[3,"file","sub","use_youtubedl_archive","reloadSubscription","goToFileEmit"],[1,"spinner",3,"diameter"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Jc(1,"button",1),s.Wc("click",(function(){return e.goBack()})),s.Jc(2,"mat-icon"),s.Bd(3,"arrow_back"),s.Ic(),s.Ic(),s.Jc(4,"div",2),s.zd(5,eR,2,1,"h2",3),s.Ic(),s.Ec(6,"mat-divider",4),s.Ec(7,"br"),s.zd(8,oR,24,8,"div",5),s.Jc(9,"button",6),s.Wc("click",(function(){return e.downloadContent()})),s.Jc(10,"mat-icon",7),s.Bd(11,"save"),s.Ic(),s.zd(12,rR,1,1,"mat-spinner",8),s.Ic(),s.Ic()),2&t&&(s.pc(5),s.gd("ngIf",e.subscription),s.pc(3),s.gd("ngIf",e.subscription),s.pc(1),s.gd("disabled",e.downloading),s.pc(3),s.gd("ngIf",e.downloading))},directives:[bs,vu,ve.t,Fu,Gm,Js,qa,ve.s,Bc,ve.q,Ru,Rs,Rc,rs,tR,mm],pipes:[ve.l],styles:[".sub-file-col[_ngcontent-%COMP%]{max-width:240px}.back-button[_ngcontent-%COMP%]{float:left;position:absolute;left:15px}.filter-select-parent[_ngcontent-%COMP%]{position:absolute;top:0;left:20px;display:block}.search-bar[_ngcontent-%COMP%]{transition:all .5s ease;position:relative;float:right}.search-bar-unfocused[_ngcontent-%COMP%]{width:100px}.search-input[_ngcontent-%COMP%]{transition:all .5s ease}.search-bar-focused[_ngcontent-%COMP%]{width:100%}.flex-grid[_ngcontent-%COMP%]{width:100%;display:block;position:relative}.col[_ngcontent-%COMP%]{width:33%;display:inline-block}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:absolute;bottom:25px}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}"]}),t})();var cR,dR;function hR(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-tab",9),s.Jc(1,"div",3),s.Jc(2,"mat-form-field"),s.Jc(3,"input",4),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().registrationUsernameInput=e})),s.Ic(),s.Ic(),s.Ic(),s.Jc(4,"div"),s.Jc(5,"mat-form-field"),s.Jc(6,"input",10),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().registrationPasswordInput=e})),s.Ic(),s.Ic(),s.Ic(),s.Jc(7,"div"),s.Jc(8,"mat-form-field"),s.Jc(9,"input",11),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().registrationPasswordConfirmationInput=e})),s.Ic(),s.Ic(),s.Ic(),s.Jc(10,"div",6),s.Jc(11,"button",7),s.Wc("click",(function(){return s.rd(t),s.ad().register()})),s.Hc(12),s.Nc(13,dR),s.Gc(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(3),s.gd("ngModel",t.registrationUsernameInput),s.pc(3),s.gd("ngModel",t.registrationPasswordInput),s.pc(3),s.gd("ngModel",t.registrationPasswordConfirmationInput),s.pc(2),s.gd("disabled",t.registering)}}cR=$localize`:Login␟6765b4c916060f6bc42d9bb69e80377dbcb5e4e9␟2454050363478003966:Login`,dR=$localize`:Register␟cfc2f436ec2beffb042e7511a73c89c372e86a6c␟3301086086650990787:Register`;let uR=(()=>{class t{constructor(t,e,i){this.postsService=t,this.snackBar=e,this.router=i,this.selectedTabIndex=0,this.loginUsernameInput="",this.loginPasswordInput="",this.loggingIn=!1,this.registrationEnabled=!1,this.registrationUsernameInput="",this.registrationPasswordInput="",this.registrationPasswordConfirmationInput="",this.registering=!1}ngOnInit(){this.postsService.isLoggedIn&&this.router.navigate(["/home"]),this.postsService.service_initialized.subscribe(t=>{t&&(this.postsService.config.Advanced.multi_user_mode||this.router.navigate(["/home"]),this.registrationEnabled=this.postsService.config.Users&&this.postsService.config.Users.allow_registration)})}login(){""!==this.loginPasswordInput&&(this.loggingIn=!0,this.postsService.login(this.loginUsernameInput,this.loginPasswordInput).subscribe(t=>{this.loggingIn=!1,t.token?this.postsService.afterLogin(t.user,t.token,t.permissions,t.available_permissions):this.openSnackBar("Login failed, unknown error.")},t=>{this.loggingIn=!1;const e=t.status;this.openSnackBar(401===e?"User name or password is incorrect!":404===e?"Login failed, cannot connect to the server.":"Login failed, unknown error.")}))}register(){this.registrationUsernameInput&&""!==this.registrationUsernameInput?this.registrationPasswordInput&&""!==this.registrationPasswordInput?this.registrationPasswordConfirmationInput&&""!==this.registrationPasswordConfirmationInput?this.registrationPasswordInput===this.registrationPasswordConfirmationInput?(this.registering=!0,this.postsService.register(this.registrationUsernameInput,this.registrationPasswordInput).subscribe(t=>{this.registering=!1,t&&t.user?(this.openSnackBar(`User ${t.user.name} successfully registered.`),this.loginUsernameInput=t.user.name,this.selectedTabIndex=0):this.openSnackBar("Failed to register user, unknown error.")},t=>{this.registering=!1,t&&t.error&&"string"==typeof t.error?this.openSnackBar(t.error):console.log(t)})):this.openSnackBar("Password confirmation is incorrect!"):this.openSnackBar("Password confirmation is required!"):this.openSnackBar("Password is required!"):this.openSnackBar("User name is required!")}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg),s.Dc(wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-login"]],decls:14,vars:5,consts:[[1,"login-card"],[3,"selectedIndex","selectedIndexChange"],["label","Login"],[2,"margin-top","10px"],["matInput","","placeholder","User name",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange","keyup.enter"],[2,"margin-bottom","10px","margin-top","10px"],["color","primary","mat-raised-button","",3,"disabled","click"],["label","Register",4,"ngIf"],["label","Register"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Confirm Password",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(s.Jc(0,"mat-card",0),s.Jc(1,"mat-tab-group",1),s.Wc("selectedIndexChange",(function(t){return e.selectedTabIndex=t})),s.Jc(2,"mat-tab",2),s.Jc(3,"div",3),s.Jc(4,"mat-form-field"),s.Jc(5,"input",4),s.Wc("ngModelChange",(function(t){return e.loginUsernameInput=t})),s.Ic(),s.Ic(),s.Ic(),s.Jc(6,"div"),s.Jc(7,"mat-form-field"),s.Jc(8,"input",5),s.Wc("ngModelChange",(function(t){return e.loginPasswordInput=t}))("keyup.enter",(function(){return e.login()})),s.Ic(),s.Ic(),s.Ic(),s.Jc(9,"div",6),s.Jc(10,"button",7),s.Wc("click",(function(){return e.login()})),s.Hc(11),s.Nc(12,cR),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.zd(13,hR,14,4,"mat-tab",8),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.gd("selectedIndex",e.selectedTabIndex),s.pc(4),s.gd("ngModel",e.loginUsernameInput),s.pc(3),s.gd("ngModel",e.loginPasswordInput),s.pc(2),s.gd("disabled",e.loggingIn),s.pc(3),s.gd("ngIf",e.registrationEnabled))},directives:[er,Ff,Cf,Bc,Ru,Rs,Js,qa,bs,ve.t],styles:[".login-card[_ngcontent-%COMP%]{max-width:600px;width:80%;margin:20px auto 0}"]}),t})();var pR,mR,gR,fR,bR,_R;function vR(t,e){1&t&&(s.Jc(0,"mat-icon",10),s.Bd(1,"done"),s.Ic())}function yR(t,e){1&t&&(s.Jc(0,"mat-icon",11),s.Bd(1,"error"),s.Ic())}function wR(t,e){if(1&t&&(s.Jc(0,"div"),s.Jc(1,"strong"),s.Hc(2),s.Nc(3,gR),s.Gc(),s.Ic(),s.Ec(4,"br"),s.Bd(5),s.Ic()),2&t){const t=s.ad(2);s.pc(5),s.Dd(" ",t.download.error," ")}}function xR(t,e){if(1&t&&(s.Jc(0,"div"),s.Jc(1,"strong"),s.Hc(2),s.Nc(3,fR),s.Gc(),s.Ic(),s.Bd(4),s.bd(5,"date"),s.Ic()),2&t){const t=s.ad(2);s.pc(4),s.Dd("\xa0",s.dd(5,1,t.download.timestamp_start,"medium")," ")}}function kR(t,e){if(1&t&&(s.Jc(0,"div"),s.Jc(1,"strong"),s.Hc(2),s.Nc(3,bR),s.Gc(),s.Ic(),s.Bd(4),s.bd(5,"date"),s.Ic()),2&t){const t=s.ad(2);s.pc(4),s.Dd("\xa0",s.dd(5,1,t.download.timestamp_end,"medium")," ")}}function CR(t,e){if(1&t&&(s.Jc(0,"div"),s.Jc(1,"strong"),s.Hc(2),s.Nc(3,_R),s.Gc(),s.Ic(),s.Bd(4),s.Ic()),2&t){const t=s.ad(2);s.pc(4),s.Dd("\xa0",t.download.fileNames.join(", ")," ")}}function SR(t,e){if(1&t&&(s.Jc(0,"mat-expansion-panel",12),s.Jc(1,"mat-expansion-panel-header"),s.Jc(2,"div"),s.Hc(3),s.Nc(4,mR),s.Gc(),s.Ic(),s.Jc(5,"div",13),s.Jc(6,"div",14),s.Jc(7,"mat-panel-description"),s.Bd(8),s.bd(9,"date"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.zd(10,wR,6,1,"div",15),s.zd(11,xR,6,4,"div",15),s.zd(12,kR,6,4,"div",15),s.zd(13,CR,5,1,"div",15),s.Ic()),2&t){const t=s.ad();s.pc(8),s.Cd(s.dd(9,5,t.download.timestamp_start,"medium")),s.pc(2),s.gd("ngIf",t.download.error),s.pc(1),s.gd("ngIf",t.download.timestamp_start),s.pc(1),s.gd("ngIf",t.download.timestamp_end),s.pc(1),s.gd("ngIf",t.download.fileNames)}}pR=$localize`:Download ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,mR=$localize`:Details␟4f8b2bb476981727ab34ed40fde1218361f92c45␟5028777105388019087:Details`,gR=$localize`:Error label␟e9aff8e6df2e2bf6299ea27bb2894c70bc48bd4d␟7911469195681429827:An error has occurred:`,fR=$localize`:Download start label␟77b0c73840665945b25bd128709aa64c8f017e1c␟2437792661281269671:Download start:`,bR=$localize`:Download end label␟08ff9375ec078065bcdd7637b7ea65fce2979266␟8797064057284793198:Download end:`,_R=$localize`:File path(s) label␟ad127117f9471612f47d01eae09709da444a36a4␟3348508922595416508:File path(s):`;let IR=(()=>{class t{constructor(){this.download={uid:null,type:"audio",percent_complete:0,complete:!1,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,timestamp_start:null,timestamp_end:null,is_playlist:!1,error:!1},this.cancelDownload=new s.u,this.queueNumber=null,this.url_id=null}ngOnInit(){if(this.download&&this.download.url&&this.download.url.includes("youtu")){const t=this.download.is_playlist?6:3,e=this.download.url.indexOf(this.download.is_playlist?"?list=":"?v=")+t;this.url_id=this.download.url.substring(e,this.download.url.length)}}cancelTheDownload(){this.cancelDownload.emit(this.download)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["app-download-item"]],inputs:{download:"download",queueNumber:"queueNumber"},outputs:{cancelDownload:"cancelDownload"},decls:17,vars:11,consts:[[3,"rowHeight","cols"],[3,"colspan"],[2,"display","inline-block","text-align","center","width","100%"],[1,"shorten"],[3,"value","mode"],["style","margin-left: 25px; cursor: default","matTooltip","The download is complete","matTooltip-i18n","",4,"ngIf"],["style","margin-left: 25px; cursor: default","matTooltip","An error has occurred","matTooltip-i18n","",4,"ngIf"],["mat-icon-button","","color","warn",2,"margin-bottom","2px",3,"click"],["fontSet","material-icons-outlined"],["class","ignore-margin",4,"ngIf"],["matTooltip","The download is complete","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],["matTooltip","An error has occurred","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],[1,"ignore-margin"],[2,"width","100%"],[2,"float","right"],[4,"ngIf"]],template:function(t,e){1&t&&(s.Jc(0,"div"),s.Jc(1,"mat-grid-list",0),s.Jc(2,"mat-grid-tile",1),s.Jc(3,"div",2),s.Jc(4,"span",3),s.Hc(5),s.Nc(6,pR),s.Gc(),s.Bd(7),s.Ic(),s.Ic(),s.Ic(),s.Jc(8,"mat-grid-tile",1),s.Ec(9,"mat-progress-bar",4),s.zd(10,vR,2,0,"mat-icon",5),s.zd(11,yR,2,0,"mat-icon",6),s.Ic(),s.Jc(12,"mat-grid-tile",1),s.Jc(13,"button",7),s.Wc("click",(function(){return e.cancelTheDownload()})),s.Jc(14,"mat-icon",8),s.Bd(15,"cancel"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.zd(16,SR,14,8,"mat-expansion-panel",9),s.Ic()),2&t&&(s.pc(1),s.gd("rowHeight",50)("cols",24),s.pc(1),s.gd("colspan",7),s.pc(5),s.Dd("\xa0",e.url_id?e.url_id:e.download.uid,""),s.pc(1),s.gd("colspan",13),s.pc(1),s.gd("value",e.download.complete||e.download.error?100:e.download.percent_complete)("mode",e.download.complete||0!==e.download.percent_complete||e.download.error?"determinate":"indeterminate"),s.pc(1),s.gd("ngIf",e.download.complete),s.pc(1),s.gd("ngIf",e.download.error),s.pc(1),s.gd("colspan",4),s.pc(4),s.gd("ngIf",e.download.timestamp_start))},directives:[fh,ih,nm,ve.t,bs,vu,Kp,Hd,Gd,Wd],pipes:[ve.f],styles:[".shorten[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}.mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.ignore-margin[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px;margin-bottom:-15px}"]}),t})();var DR,ER,OR;function AR(t,e){1&t&&(s.Jc(0,"span"),s.Bd(1,"\xa0"),s.Hc(2),s.Nc(3,ER),s.Gc(),s.Ic())}function PR(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-card",11),s.Jc(1,"app-download-item",12),s.Wc("cancelDownload",(function(){s.rd(t);const e=s.ad().$implicit,i=s.ad(2).$implicit;return s.ad().clearDownload(i.key,e.value.uid)})),s.Ic(),s.Ic()}if(2&t){const t=s.ad(),e=t.$implicit,i=t.index;s.pc(1),s.gd("download",e.value)("queueNumber",i+1)}}function TR(t,e){if(1&t&&(s.Jc(0,"div",9),s.zd(1,PR,2,2,"mat-card",10),s.Ic()),2&t){const t=e.$implicit;s.pc(1),s.gd("ngIf",t.value)}}function RR(t,e){if(1&t){const t=s.Kc();s.Hc(0),s.Jc(1,"mat-card",3),s.Jc(2,"h4",4),s.Hc(3),s.Nc(4,DR),s.Gc(),s.Bd(5),s.zd(6,AR,4,0,"span",2),s.Ic(),s.Jc(7,"div",5),s.Jc(8,"div",6),s.zd(9,TR,2,1,"div",7),s.bd(10,"keyvalue"),s.Ic(),s.Ic(),s.Jc(11,"div"),s.Jc(12,"button",8),s.Wc("click",(function(){s.rd(t);const e=s.ad().$implicit;return s.ad().clearDownloads(e.key)})),s.Bd(13,"Clear all downloads"),s.Ic(),s.Ic(),s.Ic(),s.Gc()}if(2&t){const t=s.ad().$implicit,e=s.ad();s.pc(5),s.Dd("\xa0",t.key," "),s.pc(1),s.gd("ngIf",t.key===e.postsService.session_id),s.pc(3),s.gd("ngForOf",s.dd(10,3,t.value,e.sort_downloads))}}function MR(t,e){if(1&t&&(s.Jc(0,"div"),s.zd(1,RR,14,6,"ng-container",2),s.Ic()),2&t){const t=e.$implicit,i=s.ad();s.pc(1),s.gd("ngIf",i.keys(t.value).length>0)}}function FR(t,e){1&t&&(s.Jc(0,"div"),s.Jc(1,"h4",4),s.Nc(2,OR),s.Ic(),s.Ic())}DR=$localize`:Session ID␟a1ad8b1be9be43b5183bd2c3186d4e19496f2a0b␟98219539077594180:Session ID:`,ER=$localize`:Current session␟eb98135e35af26a9a326ee69bd8ff104d36dd8ec␟2634265024545519524:(current)`,OR=$localize`:No downloads label␟7117fc42f860e86d983bfccfcf2654e5750f3406␟6454341788755868274:No downloads available!`;let NR=(()=>{class t{constructor(t,e){this.postsService=t,this.router=e,this.downloads_check_interval=1e3,this.downloads={},this.interval_id=null,this.keys=Object.keys,this.valid_sessions_length=0,this.sort_downloads=(t,e)=>e.value.timestamp_start-t.value.timestamp_start}ngOnInit(){this.getCurrentDownloads(),this.interval_id=setInterval(()=>{this.getCurrentDownloads()},this.downloads_check_interval),this.postsService.service_initialized.subscribe(t=>{t&&(this.postsService.config.Extra.enable_downloads_manager||this.router.navigate(["/home"]))})}ngOnDestroy(){this.interval_id&&clearInterval(this.interval_id)}getCurrentDownloads(){this.postsService.getCurrentDownloads().subscribe(t=>{t.downloads&&this.assignNewValues(t.downloads)})}clearDownload(t,e){this.postsService.clearDownloads(!1,t,e).subscribe(t=>{})}clearDownloads(t){this.postsService.clearDownloads(!1,t).subscribe(t=>{t.success&&(this.downloads=t.downloads)})}clearAllDownloads(){this.postsService.clearDownloads(!0).subscribe(t=>{t.success&&(this.downloads=t.downloads)})}assignNewValues(t){const e=Object.keys(t),i=Object.keys(this.downloads).filter(t=>-1===e.indexOf(t));for(const n of i)delete this.downloads[n];for(let n=0;n-1===a.indexOf(t));for(const e of t)console.log("removing missing download id"),delete this.downloads[i][e]}if(this.downloads[i])for(let e=0;e0){t=!0;break}return t}}var e;return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-downloads"]],decls:4,vars:4,consts:[[2,"padding","20px"],[4,"ngFor","ngForOf"],[4,"ngIf"],[2,"padding-bottom","30px","margin-bottom","15px"],[2,"text-align","center"],[1,"container"],[1,"row"],["class","col-12 my-1",4,"ngFor","ngForOf"],["mat-stroked-button","","color","warn",2,"top","15px",3,"click"],[1,"col-12","my-1"],["class","mat-elevation-z3",4,"ngIf"],[1,"mat-elevation-z3"],[3,"download","queueNumber","cancelDownload"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.zd(1,MR,2,1,"div",1),s.bd(2,"keyvalue"),s.zd(3,FR,3,0,"div",2),s.Ic()),2&t&&(s.pc(1),s.gd("ngForOf",s.cd(2,2,e.downloads)),s.pc(2),s.gd("ngIf",e.downloads&&!e.downloadsValid()))},directives:[ve.s,ve.t,er,bs,IR],pipes:[ve.l],styles:[""],data:{animation:[o("list",[p(":enter",[g("@items",(e=m(),{type:12,timings:100,animation:e}),{optional:!0})])]),o("items",[p(":enter",[d({transform:"scale(0.5)",opacity:0}),r("500ms cubic-bezier(.8,-0.6,0.2,1.5)",d({transform:"scale(1)",opacity:1}))]),p(":leave",[d({transform:"scale(1)",opacity:1,height:"*"}),r("1s cubic-bezier(.8,-0.6,0.2,1.5)",d({transform:"scale(0.5)",opacity:0,height:"0px",margin:"0px"}))])])]}}),t})();const zR=[{path:"home",component:UO,canActivate:[Wx]},{path:"player",component:nT,canActivate:[Wx]},{path:"subscriptions",component:WT,canActivate:[Wx]},{path:"subscription",component:lR,canActivate:[Wx]},{path:"login",component:uR},{path:"downloads",component:NR},{path:"",redirectTo:"/home",pathMatch:"full"}];let LR=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[Lx.forRoot(zR,{useHash:!0})],Lx]}),t})();var BR=i("2Yyj"),JR=i.n(BR);function VR({element:t}){return"video"===t.id?jO||HO:VO||$O}Object(ve.K)(JR.a,"es");let jR=(()=>{class t{}return t.\u0275mod=s.Bc({type:t,bootstrap:[rE]}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Wx],imports:[[ve.c,n.a,Ae,Ln,Dm,Co,Mu,Wm,So,su,Yg,sr,jg,vs,yr,gg,yu,cp,bh,Yd,am,gm,zo,Xn,Ap,Cd,Tg,Ap,ad,Kf,Yp,lb,kb,V_,wk,Pv,Nv,Qk,jP,zP,HP,vP,TA.forRoot({isVisible:VR}),Lx,LR]]}),t})();s.ud(UO,[ve.q,ve.r,ve.s,ve.t,ve.A,ve.w,ve.x,ve.y,ve.z,ve.u,ve.v,km,Im,sn,Ka,ua,fa,Rs,Qs,sa,As,ha,ga,ia,Js,Vs,ho,bo,vo,wo,uo,go,qa,Ua,Ja,ku,Cu,Cc,Bc,Oc,Ac,Pc,Tc,Rc,Ru,Iu,Gm,Um,rs,is,Za,to,ro,io,so,Xg,Kg,er,ir,nr,Ho,Uo,Go,Wo,qo,Xo,Yo,Zo,Ko,Qo,tr,Vg,bs,_s,gr,br,lg,cg,rg,hg,pg,dg,vu,Xu,qu,tp,Yu,Jn,Zu,Qu,Yn,lp,rp,Fu,fh,ih,nh,ah,oh,sh,Kd,Hd,Ud,Gd,qd,Wd,Vd,nm,pm,mm,Ro,No,Kn,Cp,_p,Ep,mp,dd,vd,yd,wd,xd,Og,Dg,Qc,sd,td,Ff,vf,Cf,Hf,qf,_f,Kp,Xp,rb,mb,xb,m_,__,D_,x_,f_,P_,y_,O_,C_,I_,S_,R_,z_,F_,B_,bk,dk,vk,hk,lk,ck,Av,Ev,Iv,wv,kv,xv,Fv,Zk,Kk,BP,JP,VP,wP,CP,SP,IP,DP,EP,OP,AP,PP,TP,MP,FP,NP,$P,_P,AA,Ex,xx,kx,Sx,ky,rE,GA,UO,nT,qA,xE,IR,WT,xT,lR,tR,PT,cD,ek,CD,eA,Vk,CC,bC,oP,uR,NR,FD,VD,vS,AC,jC,XC,rC,xS,oA],[ve.b,ve.G,ve.p,ve.k,ve.E,ve.g,ve.C,ve.F,ve.d,ve.f,ve.i,ve.j,ve.l,RP,Jk])},xDdU:function(t,e,i){var n,s,a=i("4fRq"),o=i("I2ZF"),r=0,l=0;t.exports=function(t,e,i){var c=e&&i||0,d=e||[],h=(t=t||{}).node||n,u=void 0!==t.clockseq?t.clockseq:s;if(null==h||null==u){var p=a();null==h&&(h=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==u&&(u=s=16383&(p[6]<<8|p[7]))}var m=void 0!==t.msecs?t.msecs:(new Date).getTime(),g=void 0!==t.nsecs?t.nsecs:l+1,f=m-r+(g-l)/1e4;if(f<0&&void 0===t.clockseq&&(u=u+1&16383),(f<0||m>r)&&void 0===t.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");r=m,l=g,s=u;var b=(1e4*(268435455&(m+=122192928e5))+g)%4294967296;d[c++]=b>>>24&255,d[c++]=b>>>16&255,d[c++]=b>>>8&255,d[c++]=255&b;var _=m/4294967296*1e4&268435455;d[c++]=_>>>8&255,d[c++]=255&_,d[c++]=_>>>24&15|16,d[c++]=_>>>16&255,d[c++]=u>>>8|128,d[c++]=255&u;for(var v=0;v<6;++v)d[c+v]=h[v];return e||o(d)}},xk4V:function(t,e,i){var n=i("4fRq"),s=i("I2ZF");t.exports=function(t,e,i){var a=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var r=0;r<16;++r)e[a+r]=o[r];return e||s(o)}},zuWl:function(t,e,i){"use strict";!function(e){var i=/^(b|B)$/,n={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},s={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function a(t){var e,a,o,r,l,c,d,h,u,p,m,g,f,b,_,v=1>>((3&e)<<3)&255;return s}}},"6BPK":function(t,e,i){var n,s;!function(a,o,r){"use strict";"undefined"!=typeof window&&i("PDX0")?void 0===(s="function"==typeof(n=r)?n.call(e,i,e,t):n)||(t.exports=s):t.exports?t.exports=r():o.exports?o.exports=r():o.Fingerprint2=r()}(0,this,(function(){"use strict";var t=function(t,e){var i=[0,0,0,0];return i[3]+=(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3]+(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]+e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]+e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]+e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},e=function(t,e){var i=[0,0,0,0];return i[3]+=(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3]*(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=t[2]*e[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=t[3]*e[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=t[1]*e[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[2]*e[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=t[3]*e[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},i=function(t,e){return 32==(e%=64)?[t[1],t[0]]:e<32?[t[0]<>>32-e,t[1]<>>32-e]:[t[1]<<(e-=32)|t[0]>>>32-e,t[0]<>>32-e]},n=function(t,e){return 0==(e%=64)?t:e<32?[t[0]<>>32-e,t[1]<>>1]),t=e(t,[4283543511,3981806797]),t=s(t,[0,t[0]>>>1]),t=e(t,[3301882366,444984403]),s(t,[0,t[0]>>>1])},o=function(o,r){for(var l=(o=o||"").length%16,c=o.length-l,d=[0,r=r||0],h=[0,r],u=[0,0],p=[0,0],m=[2277735313,289559509],g=[1291169091,658871167],f=0;f>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)+("00000000"+(h[0]>>>0).toString(16)).slice(-8)+("00000000"+(h[1]>>>0).toString(16)).slice(-8)},r={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},l=function(t,e){if(Array.prototype.forEach&&t.forEach===Array.prototype.forEach)t.forEach(e);else if(t.length===+t.length)for(var i=0,n=t.length;ie.name?1:t.name=0?"Windows Phone":e.indexOf("win")>=0?"Windows":e.indexOf("android")>=0?"Android":e.indexOf("linux")>=0||e.indexOf("cros")>=0?"Linux":e.indexOf("iphone")>=0||e.indexOf("ipad")>=0?"iOS":e.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==t&&"Android"!==t&&"iOS"!==t&&"Other"!==t)return!0;if(void 0!==i){if((i=i.toLowerCase()).indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t)return!0;if(i.indexOf("linux")>=0&&"Linux"!==t&&"Android"!==t)return!0;if(i.indexOf("mac")>=0&&"Mac"!==t&&"iOS"!==t)return!0;if((-1===i.indexOf("win")&&-1===i.indexOf("linux")&&-1===i.indexOf("mac"))!=("Other"===t))return!0}return n.indexOf("win")>=0&&"Windows"!==t&&"Windows Phone"!==t||(n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==t&&"Android"!==t||(n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==t&&"iOS"!==t||(n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0)!=("Other"===t)||void 0===navigator.plugins&&"Windows"!==t&&"Windows Phone"!==t}())}},{key:"hasLiedBrowser",getData:function(t){t(function(){var t,e=navigator.userAgent.toLowerCase(),i=navigator.productSub;if(("Chrome"==(t=e.indexOf("firefox")>=0?"Firefox":e.indexOf("opera")>=0||e.indexOf("opr")>=0?"Opera":e.indexOf("chrome")>=0?"Chrome":e.indexOf("safari")>=0?"Safari":e.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===t||"Opera"===t)&&"20030107"!==i)return!0;var n,s=eval.toString().length;if(37===s&&"Safari"!==t&&"Firefox"!==t&&"Other"!==t)return!0;if(39===s&&"Internet Explorer"!==t&&"Other"!==t)return!0;if(33===s&&"Chrome"!==t&&"Opera"!==t&&"Other"!==t)return!0;try{throw"a"}catch(a){try{a.toSource(),n=!0}catch(o){n=!1}}return n&&"Firefox"!==t&&"Other"!==t}())}},{key:"touchSupport",getData:function(t){t(function(){var t,e=0;void 0!==navigator.maxTouchPoints?e=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(e=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(i){t=!1}return[e,t,"ontouchstart"in window]}())}},{key:"fonts",getData:function(t,e){var i=["monospace","sans-serif","serif"],n=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];e.fonts.extendedJsFonts&&(n=n.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),n=(n=n.concat(e.fonts.userDefinedFonts)).filter((function(t,e){return n.indexOf(t)===e}));var s=document.getElementsByTagName("body")[0],a=document.createElement("div"),o=document.createElement("div"),r={},l={},c=function(){var t=document.createElement("span");return t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="72px",t.style.fontStyle="normal",t.style.fontWeight="normal",t.style.letterSpacing="normal",t.style.lineBreak="auto",t.style.lineHeight="normal",t.style.textTransform="none",t.style.textAlign="left",t.style.textDecoration="none",t.style.textShadow="none",t.style.whiteSpace="normal",t.style.wordBreak="normal",t.style.wordSpacing="normal",t.innerHTML="mmmmmmmmmmlli",t},d=function(t,e){var i=c();return i.style.fontFamily="'"+t+"',"+e,i},h=function(t){for(var e=!1,n=0;n=t.components.length)e(i.data);else{var o=t.components[n];if(t.excludes[o.key])s(!1);else{if(!a&&o.pauseBefore)return n-=1,void setTimeout((function(){s(!0)}),1);try{o.getData((function(t){i.addPreprocessedComponent(o.key,t),s(!1)}),t)}catch(r){i.addPreprocessedComponent(o.key,String(r)),s(!1)}}}};s(!1)},f.getPromise=function(t){return new Promise((function(e,i){f.get(t,e)}))},f.getV18=function(t,e){return null==e&&(e=t,t={}),f.get(t,(function(i){for(var n=[],s=0;s=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype?function(t,a,o){var r=s.URL||s.webkitURL,l=document.createElement("a");l.download=a=a||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?n(l):i(l.href)?e(t,a,o):n(l,l.target="_blank")):(l.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(l.href)}),4e4),setTimeout((function(){n(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,s,a){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,a),s);else if(i(t))e(t,s,a);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){n(o)}))}}:function(t,i,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var o="application/octet-stream"===t.type,r=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&r)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},c.readAsDataURL(t)}else{var d=s.URL||s.webkitURL,h=d.createObjectURL(t);a?a.location=h:location.href=h,a=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});s.saveAs=a.saveAs=a,t.exports=a})?n.apply(e,[]):n)||(t.exports=s)},PDX0:function(t,e){(function(e){t.exports=e}).call(this,{})},XypG:function(t,e){},ZAI4:function(t,e,i){"use strict";i.r(e),i.d(e,"isVisible",(function(){return HR})),i.d(e,"AppModule",(function(){return UR}));var n=i("jhN1"),s=i("fXoL");class a{}function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function r(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:3,steps:t,options:e}}function c(t,e=null){return{type:2,steps:t,options:e}}function d(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function u(t){return{type:5,steps:t}}function p(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function m(t=null){return{type:9,options:t}}function g(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function f(t){Promise.resolve(null).then(t)}class b{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){f(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,n=0;const s=this.players.length;0==s?f(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){let t=0;return this.players.forEach(e=>{const i=e.getPosition();t=Math.min(i,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function v(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function y(t){switch(t.length){case 0:return new b;case 1:return t[0];default:return new _(t)}}function w(t,e,i,n,s={},a={}){const o=[],r=[];let l=-1,c=null;if(n.forEach(t=>{const i=t.offset,n=i==l,d=n&&c||{};Object.keys(t).forEach(i=>{let n=i,r=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),r){case"!":r=s[i];break;case"*":r=a[i];break;default:r=e.normalizeStyleValue(i,n,r,o)}d[n]=r}),n||r.push(d),c=d,l=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return r}function x(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&k(i,"start",t)));break;case"done":t.onDone(()=>n(i&&k(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&k(i,"destroy",t)))}}function k(t,e,i){const n=i.totalTime,s=C(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),a=t._data;return null!=a&&(s._data=a),s}function C(t,e,i,n,s="",a=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:a,disabled:!!o}}function S(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function I(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let D=(t,e)=>!1,E=(t,e)=>!1,O=(t,e,i)=>[];const A=v();(A||"undefined"!=typeof Element)&&(D=(t,e)=>t.contains(e),E=(()=>{if(A||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):E}})(),O=(t,e,i)=>{let n=[];if(i)n.push(...t.querySelectorAll(e));else{const i=t.querySelector(e);i&&n.push(i)}return n});let P=null,T=!1;function R(t){P||(P=("undefined"!=typeof document?document.body:null)||{},T=!!P.style&&"WebkitAppearance"in P.style);let e=!0;return P.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in P.style,!e&&T)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in P.style),e}const M=E,F=D,N=O;function L(t){const e={};return Object.keys(t).forEach(i=>{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let z=(()=>{class t{validateStyleProperty(t){return R(t)}matchesElement(t,e){return M(t,e)}containsElement(t,e){return F(t,e)}query(t,e,i){return N(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,a=[],o){return new b(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{}return t.NOOP=new z,t})();function J(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:V(parseFloat(e[1]),e[2])}function V(t,e){switch(e){case"s":return 1e3*t;default:return t}}function j(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,a="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=V(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(s=V(parseFloat(o),i[4]));const r=i[5];r&&(a=r)}else n=t;if(!i){let i=!1,a=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(a,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:a}}(t,e,i)}function $(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function H(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else $(t,i);return i}function U(t,e,i){return i?e+":"+i+";":""}function G(t){let e="";for(let i=0;i{const s=et(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),v()&&G(t))}function q(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=et(e);t.style[i]=""}),v()&&G(t))}function K(t){return Array.isArray(t)?1==t.length?t[0]:c(t):t}const X=new RegExp("{{\\s*(.+?)\\s*}}","g");function Y(t){let e=[];if("string"==typeof t){let i;for(;i=X.exec(t);)e.push(i[1]);X.lastIndex=0}return e}function Z(t,e,i){const n=t.toString(),s=n.replace(X,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function Q(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const tt=/-+([a-z0-9])/g;function et(t){return t.replace(tt,(...t)=>t[1].toUpperCase())}function it(t,e){return 0===t||0===e}function nt(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let a=e[0],o=[];if(n.forEach(t=>{a.hasOwnProperty(t)||o.push(t),a[t]=i[t]}),o.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],a=n[2],o=n[3];e.push(ct(s,o)),"<"!=a[0]||"*"==s&&"*"==o||e.push(ct(o,s))}(t,i,e)):i.push(t),i}const rt=new Set(["true","1"]),lt=new Set(["false","0"]);function ct(t,e){const i=rt.has(t)||lt.has(t),n=rt.has(e)||lt.has(e);return(s,a)=>{let o="*"==t||t==s,r="*"==e||e==a;return!o&&i&&"boolean"==typeof s&&(o=s?rt.has(t):lt.has(t)),!r&&n&&"boolean"==typeof a&&(r=a?rt.has(e):lt.has(e)),o&&r}}const dt=new RegExp("s*:selfs*,?","g");function ht(t,e,i){return new ut(t).build(e,i)}class ut{constructor(t){this._driver=t}build(t,e){const i=new pt(e);return this._resetContextStyleTimingState(i),st(this,K(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,a.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:a,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,a=n||{};if(i.styles.forEach(t=>{if(mt(t)){const e=t;Object.keys(e).forEach(t=>{Y(e[t]).forEach(t=>{a.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=Q(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=st(this,K(t.animation),e);return{type:1,matchers:ot(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:gt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>st(this,t,e)),options:gt(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=st(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:gt(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return ft(j(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ft(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||j(n,e),ft(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:d({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,a=!1;if(!s){a=!0;const t={};i.easing&&(t.easing=i.easing),s=d(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=a,n=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(mt(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const a=e.collectedStyles[e.currentQuerySelector],o=a[i];let r=!0;o&&(s!=n&&s>=o.startTime&&n<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),r=!1),s=o.startTime),r&&(a[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=Y(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let a=!1,o=!1,r=0;const l=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(mt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(mt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),c=0;return null!=l&&(n++,c=i.offset=l),o=o||c<0||c>1,a=a||c0&&n{const a=d>0?n==h?1:d*n:s[n],o=a*m;e.currentTime=u+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=a,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:st(this,K(t.animation),e),options:gt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:gt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:gt(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,a]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(dt,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,S(e.collectedStyles,e.currentQuerySelector,{});const o=st(this,K(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:o,originalSelector:t.selector,options:gt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:j(t.timings,e.errors,!0);return{type:12,animation:st(this,K(t.animation),e),timings:i,options:null}}}class pt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function mt(t){return!Array.isArray(t)&&"object"==typeof t}function gt(t){var e;return t?(t=$(t)).params&&(t.params=(e=t.params)?$(e):null):t={},t}function ft(t,e,i){return{duration:t,delay:e,easing:i}}function bt(t,e,i,n,s,a,o=null,r=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:a,totalTime:s+a,easing:o,subTimeline:r}}class _t{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const vt=new RegExp(":enter","g"),yt=new RegExp(":leave","g");function wt(t,e,i,n,s,a={},o={},r,l,c=[]){return(new xt).buildKeyframes(t,e,i,n,s,a,o,r,l,c)}class xt{buildKeyframes(t,e,i,n,s,a,o,r,l,c=[]){l=l||new _t;const d=new Ct(t,e,l,n,s,c,[]);d.options=r,d.currentTimeline.setStyles([a],null,d.errors,r),st(this,i,d);const h=d.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,d.errors,r)}return h.length?h.map(t=>t.buildKeyframes()):[bt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,n,n.options);s!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?J(i.duration):null,a=null!=i.delay?J(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,a);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),st(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=kt);const t=J(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>st(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?J(t.options.delay):0;t.steps.forEach(a=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),st(this,a,o),n=Math.max(n,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return j(e.params?Z(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(t=>{a.forwardTime((t.offset||0)*s),a.setStyles(t.styles,t.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?J(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=kt);let a=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=o.length;let r=null;o.forEach((i,n)=>{e.currentQueryIndex=n;const o=e.createSubContext(t.options,i);s&&o.delayNextStep(s),i===e.element&&(r=o.currentTimeline),st(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),r&&(e.currentTimeline.mergeTimelineCollectedStyles(r),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,a=Math.abs(s.duration),o=a*(e.currentQueryTotal-1);let r=a*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":r=o-r;break;case"full":r=i.currentStaggerTime}const l=e.currentTimeline;r&&l.delayNextStep(r);const c=l.currentTime;st(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}const kt={};class Ct{constructor(t,e,i,n,s,a,o,r){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=r||new St(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=J(i.duration)),null!=i.delay&&(n.delay=J(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=Z(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new Ct(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=kt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new It(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,a){let o=[];if(n&&o.push(this.element),t.length>0){t=(t=t.replace(vt,"."+this._enterClassName)).replace(yt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),o.push(...e)}return s||0!=o.length||a.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class St{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new St(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},a=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]="*"})):H(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(a).forEach(t=>{const e=Z(a[t],s,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,a)=>{const o=H(s,!0);Object.keys(o).forEach(i=>{const n=o[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(o.offset=a/this.duration),n.push(o)});const s=t.size?Q(t.values()):[],a=e.size?Q(e.values()):[];if(i){const t=n[0],e=$(t);t.offset=0,e.offset=1,n=[t,e]}return bt(this.element,n,s,a,this.duration,this.startTime,this.easing,!1)}}class It extends St{constructor(t,e,i,n,s,a,o=!1){super(t,e,a.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],a=i+e,o=e/a,r=H(t[0],!1);r.offset=0,s.push(r);const l=H(t[0],!1);l.offset=Dt(o),s.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let o=H(t[n],!1);o.offset=Dt((e+o.offset*i)/a),s.push(o)}i=a,e=0,n="",t=s}return bt(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Dt(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Et{}class Ot extends Et{normalizePropertyName(t,e){return et(t)}normalizeStyleValue(t,e,i,n){let s="";const a=i.toString().trim();if(At[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return a+s}}const At=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Pt(t,e,i,n,s,a,o,r,l,c,d,h,u){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:a,toState:n,toStyles:o,timelines:r,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:h,errors:u}}const Tt={};class Rt{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],a=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):a}build(t,e,i,n,s,a,o,r,l,c){const d=[],h=this.ast.options&&this.ast.options.params||Tt,u=this.buildStyles(i,o&&o.params||Tt,d),p=r&&r.params||Tt,m=this.buildStyles(n,p,d),g=new Set,f=new Map,b=new Map,_="void"===n,v={params:Object.assign(Object.assign({},h),p)},y=c?[]:wt(t,e,this.ast.animation,s,a,u,m,v,l,d);let w=0;if(y.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),d.length)return Pt(e,this._triggerName,i,n,_,u,m,[],[],f,b,w,d);y.forEach(t=>{const i=t.element,n=S(f,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=S(b,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const x=Q(g.values());return Pt(e,this._triggerName,i,n,_,u,m,y,x,f,b,w)}}class Mt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=$(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let a=s[t];a.length>1&&(a=Z(a,n,e)),i[t]=a})}}),i}}class Ft{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Mt(t.style,t.options&&t.options.params||{})}),Nt(this.states,"true","1"),Nt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Rt(t,e,this.states))}),this.fallbackTransition=new Rt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Nt(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Lt=new _t;class zt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=ht(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=w(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let a;const o=new Map;if(s?(a=wt(this._driver,e,s,"ng-enter","ng-leave",{},{},i,Lt,n),a.forEach(t=>{const e=S(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),a=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const r=y(a.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=r,r.onDestroy(()=>this.destroy(t)),this.players.push(r),r}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,n){const s=C(e,"","","");return x(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Bt=[],Jt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class jt{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=$(t);delete e.value,this.options=e}else this.options={};var n;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const $t=new jt("void");class Ht{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Yt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const a=S(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};a.push(o);const r=S(this._engine.statesByElement,t,{});return r.hasOwnProperty(e)||(Yt(t,"ng-trigger"),Yt(t,"ng-trigger-"+e),r[e]=$t),()=>{this._engine.afterFlush(()=>{const t=a.indexOf(o);t>=0&&a.splice(t,1),this._triggers[e]||delete r[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,n=!0){const s=this._getTrigger(e),a=new Gt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Yt(t,"ng-trigger"),Yt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let r=o[e];const l=new jt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&r&&l.absorbOptions(r.options),o[e]=l,r||(r=$t),"void"!==l.value&&r.value===l.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{q(t,i),W(t,n)})}return}const c=S(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let d=s.matchTransition(r.value,l.value,t,l.params),h=!1;if(!d){if(!n)return;d=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:d,fromState:r,toState:l,player:a,isFallbackTransition:h}),h||(Yt(t,"ng-animate-queued"),a.onStart(()=>{Zt(t,"ng-animate-queued")})),a.onDone(()=>{let e=this.players.indexOf(a);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(a);t>=0&&i.splice(t,1)}}),this.players.push(a),c.push(a),a}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const a=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&a.push(i)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&y(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const i=new Set;e.forEach(e=>{const n=e.name;if(i.has(n))return;i.add(n);const s=this._triggers[n].fallbackTransition,a=this._engine.statesByElement.get(t)[n]||$t,o=new jt("void"),r=new Gt(this.id,n,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:s,fromState:a,toState:o,player:r,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==Jt||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Yt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,a=this._elementListeners.get(s);a&&a.forEach(e=>{if(e.name==i.triggerName){const n=C(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,x(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Ut{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new Ht(t,e,this);return e.parentNode?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Yt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Zt(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(Wt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return Wt(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return y(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Jt,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?y(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new _t,n=[],s=new Map,a=[],o=new Map,r=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i="ng-enter"+m++;p.set(e,i),t.forEach(t=>Yt(t,i))});const g=[],f=new Set,b=new Set;for(let y=0;yf.add(t)):b.add(t))}const _=new Map,v=Xt(h,Array.from(f));v.forEach((t,e)=>{const i="ng-leave"+m++;_.set(e,i),t.forEach(t=>Yt(t,i))}),t.push(()=>{u.forEach((t,e)=>{const i=p.get(e);t.forEach(t=>Zt(t,i))}),v.forEach((t,e)=>{const i=_.get(e);t.forEach(t=>Zt(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const w=[],x=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(w.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!d||!this.driver.containsElement(d,s),h=_.get(s),u=p.get(s),m=this._buildInstruction(t,i,u,h,c);if(!m.errors||!m.errors.length)return c||t.isFallbackTransition?(e.onStart(()=>q(s,m.fromStyles)),e.onDestroy(()=>W(s,m.toStyles)),void n.push(e)):(m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,m.timelines),a.push({instruction:m,player:e,element:s}),m.queriedElements.forEach(t=>S(o,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=r.get(e);t||r.set(e,t=new Set),i.forEach(e=>t.add(e))}}),void m.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=l.get(e);n||l.set(e,n=new Set),i.forEach(t=>n.add(t))}));x.push(m)});if(x.length){const t=[];x.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),w.forEach(t=>t.destroy()),this.reportError(t)}const k=new Map,C=new Map;a.forEach(t=>{const e=t.element;i.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,k))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{S(k,e,[]).push(t),t.destroy()})});const I=g.filter(t=>te(t,r,l)),D=new Map;Kt(D,this.driver,b,l,"*").forEach(t=>{te(t,r,l)&&I.push(t)});const E=new Map;u.forEach((t,e)=>{Kt(E,this.driver,new Set(t),r,"!")}),I.forEach(t=>{const e=D.get(t),i=E.get(t);D.set(t,Object.assign(Object.assign({},e),i))});const O=[],A=[],P={};a.forEach(t=>{const{element:e,player:a,instruction:o}=t;if(i.has(e)){if(c.has(e))return a.onDestroy(()=>W(e,o.toStyles)),a.disabled=!0,a.overrideTotalTime(o.totalTime),void n.push(a);let t=P;if(C.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=C.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>C.set(e,t))}const i=this._buildAnimation(a.namespaceId,o,k,s,E,D);if(a.setRealPlayer(i),t===P)O.push(a);else{const e=this.playersByElement.get(t);e&&e.length&&(a.parentPlayer=y(e)),n.push(a)}}else q(e,o.fromStyles),a.onDestroy(()=>W(e,o.toStyles)),A.push(a),c.has(e)&&n.push(a)}),A.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=y(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let y=0;y!t.destroyed);n.length?Qt(this,t,n):this.processLeaveNode(t)}return g.length=0,O.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),O}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let a=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(a=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&a.push(e)})}}return(i||n)&&(a=a.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),a}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,r=t!==n,l=S(i,t,[]);this._getPreviousPlayers(t,r,s,a,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}q(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,a){const o=e.triggerName,r=e.element,l=[],c=new Set,d=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const u=h.__ng_removed;if(u&&u.removedBeforeQueried)return new b(e.duration,e.delay);const p=h!==r,m=function(t){const e=[];return function t(e,i){for(let n=0;nt.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=s.get(h),f=a.get(h),v=w(0,this._normalizer,0,e.keyframes,g,f),y=this._buildPlayer(e,v,m);if(e.subTimeline&&n&&d.add(h),p){const e=new Gt(t,o,h);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{S(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Yt(t,"ng-animating"));const u=y(h);return u.onDestroy(()=>{c.forEach(t=>Zt(t,"ng-animating")),W(r,e.toStyles)}),d.forEach(t=>{S(n,t,[]).push(u)}),u}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new b(t.duration,t.delay)}}class Gt{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new b,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>x(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){S(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Wt(t){return t&&1===t.nodeType}function qt(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function Kt(t,e,i,n,s){const a=[];i.forEach(t=>a.push(qt(t)));const o=[];n.forEach((i,n)=>{const a={};i.forEach(t=>{const i=a[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=Vt,o.push(n))}),t.set(n,a)});let r=0;return i.forEach(t=>qt(t,a[r++])),o}function Xt(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let a=s.get(e);if(a)return a;const o=e.parentNode;return a=i.has(o)?o:n.has(o)?1:t(o),s.set(e,a),a}(t);1!==e&&i.get(e).push(t)}),i}function Yt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Zt(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Qt(t,e,i){y(i).onDone(()=>t.processLeaveNode(e))}function te(t,e,i){const n=i.get(t);if(!n)return!1;let s=e.get(t);return s?n.forEach(t=>s.add(t)):e.set(t,n),i.delete(t),!0}class ee{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ut(t,e,i),this._timelineEngine=new zt(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const a=t+"-"+n;let o=this._triggerCache[a];if(!o){const t=[],e=ht(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Ft(t,e)}(n,e),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(e,n,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=I(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=I(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ie(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=se(e[0]),e.length>1&&(n=se(e[e.length-1]))):e&&(i=se(e)),i||n?new ne(t,i,n):null}let ne=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&W(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(W(this._element,this._initialStyles),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(q(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),W(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function se(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=ue(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),de(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=ue(t,"").split(","),n=ce(i,e);n>=0&&(i.splice(n,1),he(t,"",i.join(",")))}(this._element,this._name))}}function re(t,e,i){he(t,"PlayState",i,le(t,e))}function le(t,e){const i=ue(t,"");return i.indexOf(",")>0?ce(i.split(","),e):ce([i],e)}function ce(t,e){for(let i=0;i=0)return i;return-1}function de(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function he(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function ue(t,e){return t.style["animation"+e]}class pe{constructor(t,e,i,n,s,a,o,r){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=o,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=n+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new oe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:at(this.element,i))})}this.currentSnapshot=t}}class me extends b{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=L(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ge{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return R(t)}matchesElement(t,e){return M(t,e)}containsElement(t,e){return F(t,e)}query(t,e,i){return N(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>L(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const a=document.createElement("style");return a.innerHTML=n,a}animate(t,e,i,n,s,a=[],o){o&&this._notifyFaultyScrubber();const r=a.filter(t=>t instanceof pe),l={};it(i,n)&&r.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=nt(t,e,l));if(0==i)return new me(t,c);const d=`gen_css_kf_${this._count++}`,h=this.buildKeyframeElement(t,d,e);document.querySelector("head").appendChild(h);const u=ie(t,e),p=new pe(t,e,d,i,n,s,c,u);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class fe{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:at(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class be{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(_e().toString()),this._cssKeyframesDriver=new ge}validateStyleProperty(t){return R(t)}matchesElement(t,e){return M(t,e)}containsElement(t,e){return F(t,e)}query(t,e,i){return N(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,a=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,a);const r={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(r.easing=s);const l={},c=a.filter(t=>t instanceof fe);it(i,n)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const d=ie(t,e=nt(t,e=e.map(t=>H(t,!1)),l));return new fe(t,e,r,d)}}function _e(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ve=i("ofXK");let ye=(()=>{class t extends a{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:s.db.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?c(t):t;return ke(this._renderer,null,e,"register",[i]),new we(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.Q),s.Sc(ve.e))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();class we extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new xe(this._id,t,e||{},this._renderer)}}class xe{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ke(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function ke(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let Ce=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Se("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const a=e=>{Array.isArray(e)?e.forEach(a):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(a),new Ie(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.Q),s.Sc(ee),s.Sc(s.I))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();class Se{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ie extends Se{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),a="";return"@"!=s.charAt(0)&&([s,a]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,a,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let De=(()=>{class t extends ee{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(ve.e),s.Sc(B),s.Sc(Et))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();const Ee=new s.x("AnimationModuleType"),Oe=[{provide:B,useFactory:function(){return"function"==typeof _e()?new be:new ge}},{provide:Ee,useValue:"BrowserAnimations"},{provide:a,useClass:ye},{provide:Et,useFactory:function(){return new Ot}},{provide:ee,useClass:De},{provide:s.Q,useFactory:function(t,e,i){return new Ce(t,e,i)},deps:[n.d,ee,s.I]}];let Ae=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:Oe,imports:[n.a]}),t})();var Pe=i("XNiG"),Te=i("quSY"),Re=i("z+Ro"),Me=i("yCtX"),Fe=i("jZKg");function Ne(...t){let e=t[t.length-1];return Object(Re.a)(e)?(t.pop(),Object(Fe.a)(t,e)):Object(Me.a)(t)}function Le(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var ze=i("7o/Q"),Be=i("KqfI"),Je=i("n6bG");function Ve(t,e,i){return function(n){return n.lift(new je(t,e,i))}}class je{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new $e(t,this.nextOrObserver,this.error,this.complete))}}class $e extends ze.a{constructor(t,e,i,n){super(t),this._tapNext=Be.a,this._tapError=Be.a,this._tapComplete=Be.a,this._tapError=i||Be.a,this._tapComplete=n||Be.a,Object(Je.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Be.a,this._tapError=e.error||Be.a,this._tapComplete=e.complete||Be.a)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class He extends Te.a{constructor(t,e){super()}schedule(t,e=0){return this}}class Ue extends He{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i=!1,n=void 0;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let Ge=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class We extends Ge{constructor(t,e=Ge.now){super(t,()=>We.delegate&&We.delegate!==this?We.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return We.delegate&&We.delegate!==this?We.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const qe=new We(Ue);function Ke(t,e=qe){return i=>i.lift(new Xe(t,e))}class Xe{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Ye(t,this.dueTime,this.scheduler))}}class Ye extends ze.a{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ze,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function Ze(t){t.debouncedNext()}function Qe(t,e){return function(i){return i.lift(new ti(t,e))}}class ti{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new ei(t,this.predicate,this.thisArg))}}class ei extends ze.a{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}var ii=i("lJxs");const ni=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();var si=i("HDdC");const ai=new si.a(t=>t.complete());function oi(t){return t?function(t){return new si.a(e=>t.schedule(()=>e.complete()))}(t):ai}function ri(t){return e=>0===t?oi():e.lift(new li(t))}class li{constructor(t){if(this.total=t,this.total<0)throw new ni}call(t,e){return e.subscribe(new ci(t,this.total))}}class ci extends ze.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function di(t){return null!=t&&"false"!==`${t}`}function hi(t,e=0){return ui(t)?Number(t):e}function ui(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function pi(t){return Array.isArray(t)?t:[t]}function mi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function gi(t){return t instanceof s.r?t.nativeElement:t}let fi;try{fi="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(GR){fi=!1}let bi,_i=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(ve.I)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!fi)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.M,8))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(s.M,8))},token:t,providedIn:"root"}),t})(),vi=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();const yi=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function wi(){if(bi)return bi;if("object"!=typeof document||!document)return bi=new Set(yi),bi;let t=document.createElement("input");return bi=new Set(yi.filter(e=>(t.setAttribute("type",e),t.type===e))),bi}let xi,ki,Ci;function Si(t){return function(){if(null==xi&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xi=!0}))}finally{xi=xi||!1}return xi}()?t:!!t.capture}function Ii(){if("object"!=typeof document||!document)return 0;if(null==ki){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),ki=0,0===t.scrollLeft&&(t.scrollLeft=1,ki=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return ki}function Di(t){if(function(){if(null==Ci){const t="undefined"!=typeof document?document.head:null;Ci=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Ci}()){const e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}let Ei=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.zc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Oi=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=gi(t);return new si.a(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new Pe.a,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Ei))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(Ei))},token:t,providedIn:"root"}),t})(),Ai=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.u,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=hi(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Ke(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Oi),s.Dc(s.r),s.Dc(s.I))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Pi=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Ei]}),t})();function Ti(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Ri=0;const Mi=new Map;let Fi=null,Ni=(()=>{class t{constructor(t){this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Mi.set(e,{messageElement:e,referenceCount:0})):Mi.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Mi.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}Fi&&0===Fi.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const i=Mi.get(e);!function(t,e,i){const n=Ti(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=Mi.get(e);i.referenceCount--,function(t,e,i){const n=Ti(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=Ti(t,"aria-describedby"),n=Mi.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})();class Li{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Pe.a,this._typeaheadSubscription=Te.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Pe.a,this.change=new Pe.a,t instanceof s.O&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){if(this._items.length&&this._items.some(t=>"function"!=typeof t.getLabel))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ve(t=>this._pressedLetters.push(t)),Ke(t),Qe(()=>this._pressedLetters.length>0),Object(ii.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||Le(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.O?this._items.toArray():this._items}}class zi extends Li{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Bi extends Li{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Ji=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(GR){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===ji(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=ji(t);if(t.hasAttribute("contenteditable"))return-1!==s;if("iframe"===n)return!1;if("audio"===n){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===n){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==n||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Vi(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(_i))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(_i))},token:t,providedIn:"root"}),t})();function Vi(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function ji(t){if(!Vi(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class $i{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], `+`[cdkFocusRegion${t}], `+`[cdk-focus-${t}]`);for(let i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(t)}}let Hi=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new $i(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Ji),s.Sc(s.I),s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(Ji),Object(s.Sc)(s.I),Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const Ui=new s.x("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Gi=new s.x("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Wi=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,i,n){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=()=>{this._lastTouchTarget||this._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=t.composedPath?t.composedPath()[0]:t.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Ne(null);const i=gi(t);if(this._elementInfo.has(i)){let t=this._elementInfo.get(i);return t.checkChildren=e,t.subject.asObservable()}let n={unlisten:()=>{},checkChildren:e,subject:new Pe.a};this._elementInfo.set(i,n),this._incrementMonitoredElementCount();let s=t=>this._onFocus(t,i),a=t=>this._onBlur(t,i);return this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",s,!0),i.addEventListener("blur",a,!0)}),n.unlisten=()=>{i.removeEventListener("focus",s,!0),i.removeEventListener("blur",a,!0)},n.subject.asObservable()}stopMonitoring(t){const e=gi(t),i=this._elementInfo.get(e);i&&(i.unlisten(),i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}focusVia(t,e,i){const n=gi(t);this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_setClasses(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){let e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);if(!i||!i.checkChildren&&e!==t.target)return;let n=this._origin;n||(n=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Ki),t.addEventListener("mousedown",this._documentMousedownListener,Ki),t.addEventListener("touchstart",this._documentTouchstartListener,Ki),e.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Ki),t.removeEventListener("mousedown",this._documentMousedownListener,Ki),t.removeEventListener("touchstart",this._documentTouchstartListener,Ki),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.I),s.Sc(_i),s.Sc(ve.e,8),s.Sc(qi,8))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(s.I),Object(s.Sc)(_i),Object(s.Sc)(ve.e,8),Object(s.Sc)(qi,8))},token:t,providedIn:"root"}),t})(),Yi=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.u,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Xi))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();function Zi(t){return 0===t.buttons}let Qi=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=(this._document.defaultView.getComputedStyle(t).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),e){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(_i),s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(_i),Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})(),tn=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)(s.Sc(Qi))},imports:[[vi,Pi]]}),t})();const en=new s.x("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(s.ib)(ve.e)}});let nn=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.u,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(en,8))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(en,8))},token:t,providedIn:"root"}),t})(),sn=(()=>{class t{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new s.u}get dir(){return this._dir}set dir(t){const e=this._dir,i=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===i||"rtl"===i?i:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[s.oc([{provide:nn,useExisting:t}])]}),t})(),an=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();const on=new s.ab("9.2.0");var rn=i("bHdf");function ln(){return Object(rn.a)(1)}function cn(...t){return ln()(Ne(...t))}function dn(...t){const e=t[t.length-1];return Object(Re.a)(e)?(t.pop(),i=>cn(t,i,e)):e=>cn(t,e)}const hn=["*",[["mat-option"],["ng-container"]]],un=["*","mat-option, ng-container"];function pn(t,e){if(1&t&&s.Ec(0,"mat-pseudo-checkbox",3),2&t){const t=s.ad();s.gd("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const mn=["*"];let gn=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),fn=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const bn=new s.ab("9.2.0"),_n=new s.x("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let vn=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Object(s.jb)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const i=e.createElement("div");i.classList.add("mat-theme-loaded-marker"),e.body.appendChild(i);const n=getComputedStyle(i);n&&"none"!==n.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(i)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&bn.full!==on.full&&console.warn("The Angular Material version ("+bn.full+") does not match the Angular CDK version ("+on.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)(s.Sc(Qi),s.Sc(_n,8),s.Sc(ve.e,8))},imports:[[an],an]}),t})();function yn(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t)}}}function wn(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const i=t||e;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function xn(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=di(t)}}}function kn(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:e}}}function Cn(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new Pe.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function Sn(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new si.a(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const In=new s.x("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(s.ib)(s.C)}});class Dn{constructor(){this._localeChanges=new Pe.a}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const En=new s.x("mat-date-formats");let On;try{On="undefined"!=typeof Intl}catch(GR){On=!1}const An={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Pn=Mn(31,t=>String(t+1)),Tn={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Rn=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Mn(t,e){const i=Array(t);for(let n=0;n{class t extends Dn{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(On){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Mn(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return An[t]}getDateNames(){if(On){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Mn(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return Pn}getDayOfWeekNames(t){if(On){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Mn(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Tn[t]}getYearName(t){if(On){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(i<1)throw Error(`Invalid date "${i}". Date has to be greater than 0.`);let n=this._createDateWithOverflow(t,e,i);if(n.getMonth()!=e)throw Error(`Invalid date "${i}" for month with index "${e}".`);return n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(On){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(Rn.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date(t,e,i);return t>=0&&t<100&&n.setFullYear(this.getYear(n)-1900),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(In,8),s.Sc(_i))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),Nn=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[{provide:Dn,useClass:Fn}],imports:[[vi]]}),t})();const Ln={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let zn=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[{provide:En,useValue:Ln}],imports:[[Nn]]}),t})(),Bn=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.zc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Jn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function Vn(t,e,i="mat"){t.changes.pipe(dn(t)).subscribe(({length:t})=>{jn(e,`${i}-2-line`,!1),jn(e,`${i}-3-line`,!1),jn(e,`${i}-multi-line`,!1),2===t||3===t?jn(e,`${i}-${t}-line`,!0):t>3&&jn(e,`${i}-multi-line`,!0)})}function jn(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let $n=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();class Hn{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Un={enterDuration:450,exitDuration:400},Gn=Si({passive:!0});class Wn{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=t=>{const e=Zi(t),i=this._lastTouchStartEvent&&Date.now(){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t{this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))},n.isBrowser&&(this._containerElement=gi(i),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Un),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const a=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),o=t-n.left,r=e-n.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${o-a}px`,c.style.top=`${r-a}px`,c.style.height=`${2*a}px`,c.style.width=`${2*a}px`,null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const d=new Hn(this,c,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const t=d===this._mostRecentTransientRipple;d.state=1,i.persistent||t&&this._isPointerDown||d.fadeOut()},l),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Un),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=gi(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((t,i)=>{e.addEventListener(i,t,Gn)})}),this._triggerElement=e)}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_removeTriggerEvents(){this._triggerElement&&this._triggerEvents.forEach((t,e)=>{this._triggerElement.removeEventListener(e,t,Gn)})}}const qn=new s.x("mat-ripple-global-options");let Kn=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new Wn(this,e,t,i),"NoopAnimations"===s&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(_i),s.Dc(qn,8),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),Xn=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn,vi],vn]}),t})(),Yn=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&s.tc("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),Zn=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();class Qn{}const ts=yn(Qn);let es=0,is=(()=>{class t extends ts{constructor(){super(...arguments),this._labelId=`mat-optgroup-label-${es++}`}}return t.\u0275fac=function(e){return ns(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(s.qc("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),s.tc("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[s.mc],ngContentSelectors:un,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(s.fd(hn),s.Jc(0,"label",0),s.Bd(1),s.ed(2),s.Ic(),s.ed(3,1)),2&t&&(s.gd("id",e._labelId),s.pc(1),s.Dd("",e.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();const ns=s.Lc(is);let ss=0;class as{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const os=new s.x("MAT_OPTION_PARENT_COMPONENT");let rs=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${ss++}`,this.onSelectionChange=new s.u,this._stateChanges=new Pe.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=di(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||Le(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new as(this,t))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(os,8),s.Dc(is,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(s.Mc("id",e.id),s.qc("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),s.tc("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:mn,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(s.fd(),s.zd(0,pn,1,2,"mat-pseudo-checkbox",0),s.Jc(1,"span",1),s.ed(2),s.Ic(),s.Ec(3,"div",2)),2&t&&(s.gd("ngIf",e.multiple),s.pc(3),s.gd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[ve.t,Kn,Yn],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function ls(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),a=0;for(let e=0;ei+n?Math.max(0,s-n+e):i}let ds=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[Xn,ve.c,Zn]]}),t})();const hs=new s.x("mat-label-global-options"),us=["mat-button",""],ps=["*"],ms=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class gs{constructor(t){this._elementRef=t}}const fs=wn(yn(xn(gs)));let bs=(()=>{class t extends fs{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of ms)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Xi),s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var i;1&t&&s.Fd(Kn,!0),2&t&&s.md(i=s.Xc())&&(e.ripple=i.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(s.qc("disabled",e.disabled||null),s.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.mc],attrs:us,ngContentSelectors:ps,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"span",0),s.ed(1),s.Ic(),s.Ec(2,"div",1),s.Ec(3,"div",2)),2&t&&(s.pc(2),s.tc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.gd("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Kn],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),_s=(()=>{class t extends bs{constructor(t,e,i){super(e,t,i)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Xi),s.Dc(s.r),s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&s.Wc("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(s.qc("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),s.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[s.mc],attrs:us,ngContentSelectors:ps,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"span",0),s.ed(1),s.Ic(),s.Ec(2,"div",1),s.Ec(3,"div",2)),2&t&&(s.pc(2),s.tc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.gd("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[Kn],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),vs=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[Xn,vn],vn]}),t})();function ys(t){return t&&"function"==typeof t.connect}class ws{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Pe.a,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}let xs=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.zc)({factory:function(){return new t},token:t,providedIn:"root"}),t})();var ks=i("DH7j"),Cs=i("XoHu"),Ss=i("Cfvw");function Is(...t){if(1===t.length){const e=t[0];if(Object(ks.a)(e))return Ds(e,null);if(Object(Cs.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Ds(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Ds(t=1===t.length&&Object(ks.a)(t[0])?t[0]:t,null).pipe(Object(ii.a)(t=>e(...t)))}return Ds(t,null)}function Ds(t,e){return new si.a(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let a=0,o=0;for(let r=0;r{c||(c=!0,o++),s[r]=t},error:t=>i.error(t),complete:()=>{a++,a!==n&&c||(o===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}const Es=new s.x("NgValueAccessor"),Os={provide:Es,useExisting:Object(s.hb)(()=>As),multi:!0};let As=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.P),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&s.Wc("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[s.oc([Os])]}),t})();const Ps={provide:Es,useExisting:Object(s.hb)(()=>Rs),multi:!0},Ts=new s.x("CompositionEventMode");let Rs=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(ve.N)()?Object(ve.N)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.P),s.Dc(s.r),s.Dc(Ts,8))},t.\u0275dir=s.yc({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&s.Wc("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[s.oc([Ps])]}),t})(),Ms=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t}),t})(),Fs=(()=>{class t extends Ms{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Ns(e||t)},t.\u0275dir=s.yc({type:t,features:[s.mc]}),t})();const Ns=s.Lc(Fs);function Ls(){throw new Error("unimplemented")}class zs extends Ms{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Ls()}get asyncValidator(){return Ls()}}class Bs{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let Js=(()=>{class t extends Bs{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(zs,2))},t.\u0275dir=s.yc({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.tc("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[s.mc]}),t})(),Vs=(()=>{class t extends Bs{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Fs,2))},t.\u0275dir=s.yc({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.tc("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[s.mc]}),t})();function js(t){return null==t||0===t.length}const $s=new s.x("NgValidators"),Hs=new s.x("NgAsyncValidators"),Us=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Gs{static min(t){return e=>{if(js(e.value)||js(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(js(e.value)||js(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return js(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return js(t.value)||Us.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(js(e.value))return null;const i=e.value?e.value.length:0;return i{const i=e.value?e.value.length:0;return i>t?{maxlength:{requiredLength:t,actualLength:i}}:null}}static pattern(t){if(!t)return Gs.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(js(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Ws);return 0==e.length?null:function(t){return Ks(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Ws);return 0==e.length?null:function(t){return Is(function(t,e){return e.map(e=>e(t))}(t,e).map(qs)).pipe(Object(ii.a)(Ks))}}}function Ws(t){return null!=t}function qs(t){const e=Object(s.Sb)(t)?Object(Ss.a)(t):t;if(!Object(s.Rb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Ks(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Xs(t){return t.validate?e=>t.validate(e):t}function Ys(t){return t.validate?e=>t.validate(e):t}const Zs={provide:Es,useExisting:Object(s.hb)(()=>Qs),multi:!0};let Qs=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.P),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&s.Wc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[s.oc([Zs])]}),t})();const ta={provide:Es,useExisting:Object(s.hb)(()=>ia),multi:!0};let ea=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),ia=(()=>{class t{constructor(t,e,i,n){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(zs),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.P),s.Dc(s.r),s.Dc(ea),s.Dc(s.y))},t.\u0275dir=s.yc({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&s.Wc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[s.oc([ta])]}),t})();const na={provide:Es,useExisting:Object(s.hb)(()=>sa),multi:!0};let sa=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.P),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&s.Wc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[s.oc([na])]}),t})();const aa='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',oa='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ra='\n
\n
\n \n
\n
';class la{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${aa}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${oa}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${ra}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${aa}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${oa}`)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(t){console.warn(`\n It looks like you're using ngModel on the same form field as ${t}. \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}const ca={provide:Es,useExisting:Object(s.hb)(()=>ha),multi:!0};function da(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let ha=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=s.Tb}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=da(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.P),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&s.Wc("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[s.oc([ca])]}),t})(),ua=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(da(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.P),s.Dc(ha,9))},t.\u0275dir=s.yc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const pa={provide:Es,useExisting:Object(s.hb)(()=>ga),multi:!0};function ma(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let ga=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=s.Tb}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(ma(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(ma(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.P),s.Dc(ga,9))},t.\u0275dir=s.yc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function ba(t,e){return[...e.path,t]}function _a(t,e){t||xa(e,"Cannot find control with"),e.valueAccessor||xa(e,"No value accessor for form control with"),t.validator=Gs.compose([t.validator,e.validator]),t.asyncValidator=Gs.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&va(t,e)})}(t,e),function(t,e){t.registerOnChange((t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&va(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function va(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ya(t,e){null==t&&xa(e,"Cannot find control with"),t.validator=Gs.compose([t.validator,e.validator]),t.asyncValidator=Gs.composeAsync([t.asyncValidator,e.asyncValidator])}function wa(t){return xa(t,"There is no FormControl instance attached to form control element with")}function xa(t,e){let i;throw i=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${i}`)}function ka(t){return null!=t?Gs.compose(t.map(Xs)):null}function Ca(t){return null!=t?Gs.composeAsync(t.map(Ys)):null}function Sa(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object(s.Tb)(e,i.currentValue)}const Ia=[As,sa,Qs,ha,ga,ia];function Da(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Ea(t,e){if(!e)return null;Array.isArray(e)||xa(t,"Value accessor was not provided as an array for form control with");let i=void 0,n=void 0,s=void 0;return e.forEach(e=>{var a;e.constructor===Rs?i=e:(a=e,Ia.some(t=>a.constructor===t)?(n&&xa(t,"More than one built-in value accessor matches form control with"),n=e):(s&&xa(t,"More than one custom value accessor matches form control with"),s=e))}),s||n||i||(xa(t,"No valid value accessor for form control with"),null)}function Oa(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function Aa(t,e,i,n){Object(s.jb)()&&"never"!==n&&((null!==n&&"once"!==n||e._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(la.ngModelWarning(t),e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function Pa(t){const e=Ra(t)?t.validators:t;return Array.isArray(e)?ka(e):e||null}function Ta(t,e){const i=Ra(e)?e.asyncValidators:t;return Array.isArray(i)?Ca(i):i||null}function Ra(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Ma{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=Pa(t)}setAsyncValidators(t){this.asyncValidator=Ta(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=qs(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof Na?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof La&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new s.u,this.statusChanges=new s.u}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ra(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Fa extends Ma{constructor(t=null,e,i){super(Pa(e),Ta(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Na extends Ma{constructor(t,e,i){super(Pa(e),Ta(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof Fa?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((i,n)=>{e=e||this.contains(n)&&t(i)}),e}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class La extends Ma{constructor(t,e,i){super(Pa(e),Ta(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Fa?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const za={provide:Fs,useExisting:Object(s.hb)(()=>Ja)},Ba=(()=>Promise.resolve(null))();let Ja=(()=>{class t extends Fs{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.u,this.form=new Na({},ka(t),Ca(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ba.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),_a(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ba.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Oa(this._directives,t)})}addFormGroup(t){Ba.then(()=>{const e=this._findContainer(t.path),i=new Na({});ya(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ba.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Ba.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Da(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(s.Dc($s,10),s.Dc(Hs,10))},t.\u0275dir=s.yc({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.Wc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.oc([za]),s.mc]}),t})(),Va=(()=>{class t extends Fs{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ba(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ka(this._validators)}get asyncValidator(){return Ca(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return ja(e||t)},t.\u0275dir=s.yc({type:t,features:[s.mc]}),t})();const ja=s.Lc(Va);class $a{static modelParentException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive "formControlName" instead. Example:\n\n ${aa}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n `)}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${oa}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${ra}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${oa}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${ra}`)}}const Ha={provide:Fs,useExisting:Object(s.hb)(()=>Ua)};let Ua=(()=>{class t extends Va{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){this._parent instanceof t||this._parent instanceof Ja||$a.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Fs,5),s.Dc($s,10),s.Dc(Hs,10))},t.\u0275dir=s.yc({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[s.oc([Ha]),s.mc]}),t})();const Ga={provide:zs,useExisting:Object(s.hb)(()=>qa)},Wa=(()=>Promise.resolve(null))();let qa=(()=>{class t extends zs{constructor(t,e,i,n){super(),this.control=new Fa,this._registered=!1,this.update=new s.u,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=Ea(this,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Sa(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?ba(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ka(this._rawValidators)}get asyncValidator(){return Ca(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){_a(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Ua)&&this._parent instanceof Va?$a.formGroupNameException():this._parent instanceof Ua||this._parent instanceof Ja||$a.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||$a.missingNameException()}_updateValue(t){Wa.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Wa.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Fs,9),s.Dc($s,10),s.Dc(Hs,10),s.Dc(Es,10))},t.\u0275dir=s.yc({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[s.oc([Ga]),s.mc,s.nc]}),t})(),Ka=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Xa=new s.x("NgModelWithFormControlWarning"),Ya={provide:zs,useExisting:Object(s.hb)(()=>Za)};let Za=(()=>{class t extends zs{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new s.u,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=Ea(this,i)}set isDisabled(t){la.disabledAttrWarning()}ngOnChanges(e){this._isControlChanged(e)&&(_a(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Sa(e,this.viewModel)&&(Aa("formControl",t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return ka(this._rawValidators)}get asyncValidator(){return Ca(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(s.Dc($s,10),s.Dc(Hs,10),s.Dc(Es,10),s.Dc(Xa,8))},t.\u0275dir=s.yc({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s.oc([Ya]),s.mc,s.nc]}),t._ngModelWarningSentOnce=!1,t})();const Qa={provide:Fs,useExisting:Object(s.hb)(()=>to)};let to=(()=>{class t extends Fs{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new s.u}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return _a(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Oa(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);ya(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);ya(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Da(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>wa(e)),e.valueAccessor.registerOnTouched(()=>wa(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&_a(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=ka(this._validators);this.form.validator=Gs.compose([this.form.validator,t]);const e=Ca(this._asyncValidators);this.form.asyncValidator=Gs.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||la.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc($s,10),s.Dc(Hs,10))},t.\u0275dir=s.yc({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.Wc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.oc([Qa]),s.mc,s.nc]}),t})();const eo={provide:Fs,useExisting:Object(s.hb)(()=>io)};let io=(()=>{class t extends Va{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){ao(this._parent)&&la.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Fs,13),s.Dc($s,10),s.Dc(Hs,10))},t.\u0275dir=s.yc({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[s.oc([eo]),s.mc]}),t})();const no={provide:Fs,useExisting:Object(s.hb)(()=>so)};let so=(()=>{class t extends Fs{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ba(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return ka(this._validators)}get asyncValidator(){return Ca(this._asyncValidators)}_checkParentType(){ao(this._parent)&&la.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Fs,13),s.Dc($s,10),s.Dc(Hs,10))},t.\u0275dir=s.yc({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[s.oc([no]),s.mc]}),t})();function ao(t){return!(t instanceof io||t instanceof to||t instanceof so)}const oo={provide:zs,useExisting:Object(s.hb)(()=>ro)};let ro=(()=>{class t extends zs{constructor(t,e,i,n,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new s.u,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=Ea(this,n)}set isDisabled(t){la.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),Sa(e,this.viewModel)&&(Aa("formControlName",t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return ba(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ka(this._rawValidators)}get asyncValidator(){return Ca(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof io)&&this._parent instanceof Va?la.ngModelGroupException():this._parent instanceof io||this._parent instanceof to||this._parent instanceof so||la.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Fs,13),s.Dc($s,10),s.Dc(Hs,10),s.Dc(Es,10),s.Dc(Xa,8))},t.\u0275dir=s.yc({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s.oc([oo]),s.mc,s.nc]}),t._ngModelWarningSentOnce=!1,t})();const lo={provide:$s,useExisting:Object(s.hb)(()=>ho),multi:!0},co={provide:$s,useExisting:Object(s.hb)(()=>uo),multi:!0};let ho=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!==`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?Gs.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("required",e.required?"":null)},inputs:{required:"required"},features:[s.oc([lo])]}),t})(),uo=(()=>{class t extends ho{validate(t){return this.required?Gs.requiredTrue(t):null}}return t.\u0275fac=function(e){return po(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("required",e.required?"":null)},features:[s.oc([co]),s.mc]}),t})();const po=s.Lc(uo),mo={provide:$s,useExisting:Object(s.hb)(()=>go),multi:!0};let go=(()=>{class t{set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?Gs.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[s.oc([mo])]}),t})();const fo={provide:$s,useExisting:Object(s.hb)(()=>bo),multi:!0};let bo=(()=>{class t{ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Gs.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[s.oc([fo]),s.nc]}),t})();const _o={provide:$s,useExisting:Object(s.hb)(()=>vo),multi:!0};let vo=(()=>{class t{ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Gs.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[s.oc([_o]),s.nc]}),t})();const yo={provide:$s,useExisting:Object(s.hb)(()=>wo),multi:!0};let wo=(()=>{class t{ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Gs.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[s.oc([yo]),s.nc]}),t})(),xo=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})(),ko=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n=null,s=null,a=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(n=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,a=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new Na(i,{asyncValidators:s,updateOn:a,validators:n})}control(t,e,i){return new Fa(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new La(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof Fa||t instanceof Na||t instanceof La?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),Co=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[ea],imports:[xo]}),t})(),So=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Xa,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[ko,ea],imports:[xo]}),t})();const Io=["button"],Do=["*"],Eo=new s.x("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),Oo={provide:Es,useExisting:Object(s.hb)(()=>Ro),multi:!0};class Ao{}let Po=0;class To{constructor(t,e){this.source=t,this.value=e}}let Ro=(()=>{class t{constructor(t,e){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${Po++}`,this.valueChange=new s.u,this.change=new s.u,this.appearance=e&&e.appearance?e.appearance:"standard"}get name(){return this._name}set name(t){this._name=t,this._buttonToggles&&this._buttonToggles.forEach(t=>{t.name=this._name,t._markForCheck()})}get vertical(){return this._vertical}set vertical(t){this._vertical=di(t)}get value(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(t=>t.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=di(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._buttonToggles&&this._buttonToggles.forEach(t=>t._markForCheck())}ngOnInit(){this._selectionModel=new ws(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked))}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_emitChangeEvent(){const t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,i=new To(e,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(t,e,i=!1,n=!1){this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):n=!0,n?Promise.resolve(()=>this._updateModelValue(i)):this._updateModelValue(i)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(e=>null!=t.value&&e===t.value):t.value===this._rawValue)}_setSelectionByValue(t){if(this._rawValue=t,this._buttonToggles)if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),t.forEach(t=>this._selectValue(t))}else this._clearSelection(),this._selectValue(t)}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>t.checked=!1)}_selectValue(t){const e=this._buttonToggles.find(e=>null!=e.value&&e.value===t);e&&(e.checked=!0,this._selectionModel.select(e))}_updateModelValue(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.j),s.Dc(Eo,8))},t.\u0275dir=s.yc({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,No,!0),2&t&&s.md(n=s.Xc())&&(e._buttonToggles=n)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(s.qc("aria-disabled",e.disabled),s.tc("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[s.oc([Oo,{provide:Ao,useExisting:t}])]}),t})();class Mo{}const Fo=xn(Mo);let No=(()=>{class t extends Fo{constructor(t,e,i,n,a,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._focusMonitor=n,this._isSingleSelector=!1,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new s.u;const r=Number(a);this.tabIndex=r||0===r?r:null,this.buttonToggleGroup=t,this.appearance=o&&o.appearance?o.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){const e=di(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=di(t)}ngOnInit(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||`mat-button-toggle-${Po++}`,this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){const t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new To(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ro,8),s.Dc(s.j),s.Dc(s.r),s.Dc(Xi),s.Tc("tabindex"),s.Dc(Eo,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var i;1&t&&s.Fd(Io,!0),2&t&&s.md(i=s.Xc())&&(e._buttonElement=i.first)},hostAttrs:[1,"mat-button-toggle","mat-focus-indicator"],hostVars:11,hostBindings:function(t,e){1&t&&s.Wc("focus",(function(){return e.focus()})),2&t&&(s.qc("tabindex",-1)("id",e.id)("name",null),s.tc("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[s.mc],ngContentSelectors:Do,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(s.fd(),s.Jc(0,"button",0,1),s.Wc("click",(function(){return e._onButtonClick()})),s.Jc(2,"div",2),s.ed(3),s.Ic(),s.Ic(),s.Ec(4,"div",3),s.Ec(5,"div",4)),2&t){const t=s.nd(1);s.gd("id",e.buttonId)("disabled",e.disabled||null),s.qc("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.pc(5),s.gd("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[Kn],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px;padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 48px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),t})(),Lo=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn,Xn],vn]}),t})();const zo=["*",[["mat-card-footer"]]],Bo=["*","mat-card-footer"],Jo=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Vo=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],jo=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],$o=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let Ho=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),Uo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),Go=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),Wo=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),qo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),t})(),Ko=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),t})(),Xo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),t})(),Yo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),t})(),Zo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),t})(),Qo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),t})(),tr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),er=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:Bo,decls:2,vars:0,template:function(t,e){1&t&&(s.fd(zo),s.ed(0),s.ed(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),ir=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:Vo,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(s.fd(Jo),s.ed(0),s.Jc(1,"div",0),s.ed(2,1),s.Ic(),s.ed(3,2))},encapsulation:2,changeDetection:0}),t})(),nr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:$o,decls:4,vars:0,template:function(t,e){1&t&&(s.fd(jo),s.Jc(0,"div"),s.ed(1),s.Ic(),s.ed(2,1),s.ed(3,2))},encapsulation:2,changeDetection:0}),t})(),sr=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();const ar=["input"],or=function(){return{enterDuration:150}},rr=["*"],lr=new s.x("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),cr=new s.x("mat-checkbox-click-action");let dr=0;const hr={provide:Es,useExisting:Object(s.hb)(()=>gr),multi:!0};class ur{}class pr{constructor(t){this._elementRef=t}}const mr=kn(wn(xn(yn(pr))));let gr=(()=>{class t extends mr{constructor(t,e,i,n,a,o,r,l){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._clickAction=o,this._animationMode=r,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId=`mat-checkbox-${++dr}`,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.u,this.indeterminateChange=new s.u,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this._options.color),this.tabIndex=parseInt(a)||0,this._focusMonitor.monitor(t,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),e.markForCheck()})}),this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=di(t)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=di(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=di(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new ur;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(Xi),s.Dc(s.I),s.Tc("tabindex"),s.Dc(cr,8),s.Dc(Ee,8),s.Dc(lr,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;1&t&&(s.Fd(ar,!0),s.Fd(Kn,!0)),2&t&&(s.md(i=s.Xc())&&(e._inputElement=i.first),s.md(i=s.Xc())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Mc("id",e.id),s.qc("tabindex",null),s.tc("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s.oc([hr]),s.mc],ngContentSelectors:rr,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.fd(),s.Jc(0,"label",0,1),s.Jc(2,"div",2),s.Jc(3,"input",3,4),s.Wc("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),s.Ic(),s.Jc(5,"div",5),s.Ec(6,"div",6),s.Ic(),s.Ec(7,"div",7),s.Jc(8,"div",8),s.Zc(),s.Jc(9,"svg",9),s.Ec(10,"path",10),s.Ic(),s.Yc(),s.Ec(11,"div",11),s.Ic(),s.Ic(),s.Jc(12,"span",12,13),s.Wc("cdkObserveContent",(function(){return e._onLabelTextChange()})),s.Jc(14,"span",14),s.Bd(15,"\xa0"),s.Ic(),s.ed(16),s.Ic(),s.Ic()),2&t){const t=s.nd(1),i=s.nd(13);s.qc("for",e.inputId),s.pc(2),s.tc("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.pc(1),s.gd("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.qc("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),s.pc(2),s.gd("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.id(18,or))}},directives:[Kn,Ai],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const fr={provide:$s,useExisting:Object(s.hb)(()=>br),multi:!0};let br=(()=>{class t extends uo{}return t.\u0275fac=function(e){return _r(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[s.oc([fr]),s.mc]}),t})();const _r=s.Lc(br);let vr=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})(),yr=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[Xn,vn,Pi,vr],vn,vr]}),t})();function wr(t){return new si.a(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(Ss.a)(i):oi()).subscribe(e)})}var xr=i("VRyK");function kr(t,e,i,n){return Object(Je.a)(i)&&(n=i,i=void 0),n?kr(t,e,i).pipe(Object(ii.a)(t=>Object(ks.a)(t)?n(...t):n(t))):new si.a(n=>{!function t(e,i,n,s,a){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(i,n,a),o=()=>t.removeEventListener(i,n,a)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(i,n),o=()=>t.off(i,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(i,n),o=()=>t.removeListener(i,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,r=e.length;o1?Array.prototype.slice.call(arguments):t)}),n,i)})}class Cr extends Ue{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}class Sr extends We{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nPromise.resolve())(),Or={};function Ar(t){return t in Or&&(delete Or[t],!0)}const Pr={setImmediate(t){const e=Dr++;return Or[e]=!0,Er.then(()=>Ar(e)&&t()),e},clearImmediate(t){Ar(t)}};class Tr extends Ue{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=Pr.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Pr.clearImmediate(e),t.scheduled=void 0)}}class Rr extends We{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new Nr(t,e))}class Nr{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Lr(t,this.compare,this.keySelector))}}class Lr extends ze.a{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}var zr=i("l7GE"),Br=i("ZUHj");class Jr{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Vr(t,this.durationSelector))}}class Vr extends zr.a{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=Object(Br.a)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function jr(t){return!Object(ks.a)(t)&&t-parseFloat(t)+1>=0}function $r(t=0,e,i){let n=-1;return jr(e)?n=Number(e)<1?1:Number(e):Object(Re.a)(e)&&(i=e),Object(Re.a)(i)||(i=qe),new si.a(e=>{const s=jr(t)?t:+t-i.now();return i.schedule(Hr,s,{index:0,period:n,subscriber:e})})}function Hr(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function Ur(t,e=qe){return i=()=>$r(t,e),function(t){return t.lift(new Jr(i))};var i}function Gr(t){return e=>e.lift(new Wr(t))}class Wr{constructor(t){this.notifier=t}call(t,e){const i=new qr(t),n=Object(Br.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class qr extends zr.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}var Kr=i("51Dv");function Xr(t,e){return"function"==typeof e?i=>i.pipe(Xr((i,n)=>Object(Ss.a)(t(i,n)).pipe(Object(ii.a)((t,s)=>e(i,t,n,s))))):e=>e.lift(new Yr(t))}class Yr{constructor(t){this.project=t}call(t,e){return e.subscribe(new Zr(t,this.project))}}class Zr extends zr.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const s=new Kr.a(this,e,i),a=this.destination;a.add(s),this.innerSubscription=Object(Br.a)(this,t,void 0,void 0,s),this.innerSubscription!==s&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,i,n,s){this.destination.next(e)}}class Qr extends Ue{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class tl extends We{}const el=new tl(Qr);function il(t,e){return new si.a(e?i=>e.schedule(nl,0,{error:t,subscriber:i}):e=>e.error(t))}function nl({error:t,subscriber:e}){e.error(t)}let sl=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Ne(this.value);case"E":return il(this.error);case"C":return oi()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class al extends ze.a{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(al.dispatch,this.delay,new ol(t,this.destination)))}_next(t){this.scheduleMessage(sl.createNext(t))}_error(t){this.scheduleMessage(sl.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(sl.createComplete()),this.unsubscribe()}}class ol{constructor(t,e){this.notification=t,this.destination=e}}var rl=i("9ppp"),ll=i("Ylt2");class cl extends Pe.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new dl(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let a;if(this.closed)throw new rl.a;if(this.isStopped||this.hasError?a=Te.a.EMPTY:(this.observers.push(t),a=new ll.a(this,t)),n&&t.add(t=new al(t,n)),e)for(let o=0;oe&&(a=Math.max(a,s-e)),a>0&&n.splice(0,a),n}}class dl{constructor(t,e){this.time=t,this.value=e}}let hl=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new Pe.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new si.a(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Ur(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ne()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Qe(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>kr(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.I),s.Sc(_i),s.Sc(ve.e,8))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(s.I),Object(s.Sc)(_i),Object(s.Sc)(ve.e,8))},token:t,providedIn:"root"}),t})(),ul=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new Pe.a,this._elementScrolled=new si.a(t=>this.ngZone.runOutsideAngular(()=>kr(this.elementRef.nativeElement,"scroll").pipe(Gr(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=Ii()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Ii()?t.left=t.right:1==Ii()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==Ii()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==Ii()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(hl),s.Dc(s.I),s.Dc(nn,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),pl=(()=>{class t{constructor(t,e,i){this._platform=t,this._document=i,e.runOutsideAngular(()=>{const e=this._getWindow();this._change=t.isBrowser?Object(xr.a)(kr(e,"resize"),kr(e,"orientationchange")):Ne(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Ur(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(_i),s.Sc(s.I),s.Sc(ve.e,8))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(_i),Object(s.Sc)(s.I),Object(s.Sc)(ve.e,8))},token:t,providedIn:"root"}),t})(),ml=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[an,vi],an]}),t})();function gl(){throw Error("Host already has a portal attached")}class fl{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&gl(),this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class bl extends fl{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class _l extends fl{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class vl extends fl{constructor(t){super(),this.element=t instanceof s.r?t.nativeElement:t}}class yl{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&gl(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof bl?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof _l?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof vl?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class wl extends yl{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let xl=(()=>{class t extends _l{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y),s.Dc(s.cb))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[s.mc]}),t})(),kl=(()=>{class t extends yl{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new s.u,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.n),s.Dc(s.cb),s.Dc(ve.e))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.mc]}),t})(),Cl=(()=>{class t extends kl{}return t.\u0275fac=function(e){return Sl(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[s.oc([{provide:kl,useExisting:t}]),s.mc]}),t})();const Sl=s.Lc(Cl);let Il=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();class Dl{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const i=this._customTokens.get(t);return void 0!==i?i:this._parentInjector.get(t,e)}}class El{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=mi(-this._previousScrollPosition.left),t.style.top=mi(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.scrollBehavior=s}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function Ol(){return Error("Scroll strategy has already been attached.")}class Al{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw Ol();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Pl{enable(){}disable(){}attach(){}}function Tl(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Rl(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class Ml{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw Ol();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();Tl(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Fl=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new Pl,this.close=t=>new Al(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new El(this._viewportRuler,this._document),this.reposition=t=>new Ml(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(hl),s.Sc(pl),s.Sc(s.I),s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(hl),Object(s.Sc)(pl),Object(s.Sc)(s.I),Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})();class Nl{constructor(t){if(this.scrollStrategy=new Pl,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class Ll{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class zl{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function Bl(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function Jl(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}let Vl=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEventSubscriptions>0){e[i]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})();const jl=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let $l=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||jl){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEventsObservable=new si.a(t=>{const e=this._keydownEvents.subscribe(t);return this._keydownEventSubscriptions++,()=>{e.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new Pe.a,this._keydownEventSubscriptions=0,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEventsObservable}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=mi(this._config.width),t.height=mi(this._config.height),t.minWidth=mi(this._config.minWidth),t.minHeight=mi(this._config.minHeight),t.maxWidth=mi(this._config.maxWidth),t.maxHeight=mi(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;pi(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(Gr(Object(xr.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const Ul=/([A-Za-z%]+)$/;class Gl{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Pe.a,this._resizeSubscription=Te.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,n=[];let s;for(let a of this._preferredPositions){let o=this._getOriginPoint(t,a),r=this._getOverlayPoint(o,e,a),l=this._getOverlayFit(r,e,i,a);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,o);this._canFitWithFlexibleDimensions(l,r,i)?n.push({position:a,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,a)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Wl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){let{x:s,y:a}=t,o=this._getOffset(n,"x"),r=this._getOffset(n,"y");o&&(s+=o),r&&(a+=r);let l=0-a,c=a+e.height-i.height,d=this._subtractOverflows(e.width,0-s,s+e.width-i.width),h=this._subtractOverflows(e.height,l,c),u=d*h;return{visibleArea:u,isCompletelyWithinViewport:e.width*e.height===u,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:d==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,a=ql(this._overlayRef.getConfig().minHeight),o=ql(this._overlayRef.getConfig().minWidth),r=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=a&&a<=n)&&r}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=this._viewportRect,s=Math.max(t.x+e.width-n.right,0),a=Math.max(t.y+e.height-n.bottom,0),o=Math.max(n.top-i.top-t.y,0),r=Math.max(n.left-i.left-t.x,0);let l=0,c=0;return l=e.width<=n.width?r||-s:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)c=i.width-t.x+this._viewportMargin,r=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,r=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;r=2*e,l=t.x-e,r>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:a,left:l,bottom:o,right:c,width:r,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=mi(i.height),n.top=mi(i.top),n.bottom=mi(i.bottom),n.width=mi(i.width),n.left=mi(i.left),n.right=mi(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=mi(t)),s&&(n.maxWidth=mi(s))}this._lastBoundingBoxSize=i,Wl(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Wl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Wl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Wl(i,this._getExactOverlayY(e,t,n)),Wl(i,this._getExactOverlayX(e,t,n))}else i.position="static";let o="",r=this._getOffset(e,"x"),l=this._getOffset(e,"y");r&&(o+=`translateX(${r}px) `),l&&(o+=`translateY(${l}px)`),i.transform=o.trim(),a.maxHeight&&(n?i.maxHeight=mi(a.maxHeight):s&&(i.maxHeight="")),a.maxWidth&&(n?i.maxWidth=mi(a.maxWidth):s&&(i.maxWidth="")),Wl(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=a,"bottom"===t.overlayY?n.bottom=`${this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)}px`:n.top=mi(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},a=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=`${this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)}px`:s.left=mi(a.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Rl(t,i),isOriginOutsideView:Tl(t,i),isOverlayClipped:Rl(e,i),isOverlayOutsideView:Tl(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{Jl("originX",t.originX),Bl("originY",t.originY),Jl("overlayX",t.overlayX),Bl("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&pi(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.r)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Wl(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function ql(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(Ul);return i&&"px"!==i?null:parseFloat(e)}return t||null}class Kl{constructor(t,e,i,n,s,a,o){this._preferredPositions=[],this._positionStrategy=new Gl(i,n,s,a,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,n){const s=new Ll(t,e,i,n);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class Xl{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:a,maxHeight:o}=i,r=!("100%"!==n&&"100vw"!==n||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=r?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,r?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Yl=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new Xl}connectedTo(t,e,i){return new Kl(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Gl(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(pl),s.Sc(ve.e),s.Sc(_i),s.Sc($l))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(pl),Object(s.Sc)(ve.e),Object(s.Sc)(_i),Object(s.Sc)($l))},token:t,providedIn:"root"}),t})(),Zl=0,Ql=(()=>{class t{constructor(t,e,i,n,s,a,o,r,l,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=a,this._ngZone=o,this._document=r,this._directionality=l,this._location=c}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new Nl(t);return s.direction=s.direction||this._directionality.value,new Hl(n,e,i,s,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id=`cdk-overlay-${Zl++}`,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.g)),new wl(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Fl),s.Sc($l),s.Sc(s.n),s.Sc(Yl),s.Sc(Vl),s.Sc(s.y),s.Sc(s.I),s.Sc(ve.e),s.Sc(nn),s.Sc(ve.n,8))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();const tc=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ec=new s.x("cdk-connected-overlay-scroll-strategy");let ic=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),nc=(()=>{class t{constructor(t,e,i,n,a){this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Te.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new s.u,this.positionChange=new s.u,this.attach=new s.u,this.detach=new s.u,this.overlayKeydown=new s.u,this._templatePortal=new _l(e,i),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=di(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=di(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=di(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=di(t)}get push(){return this._push}set push(t){this._push=di(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=tc),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||Le(t)||(t.preventDefault(),this._detachOverlay())})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Nl({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe(t=>this.positionChange.emit(t)),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe()}_detachOverlay(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ql),s.Dc(s.Y),s.Dc(s.cb),s.Dc(ec),s.Dc(nn,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[s.nc]}),t})();const sc={provide:ec,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let ac=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Ql,sc],imports:[[an,Il,ml],ml]}),t})();const oc=["underline"],rc=["connectionContainer"],lc=["inputContainer"],cc=["label"];function dc(t,e){1&t&&(s.Hc(0),s.Jc(1,"div",14),s.Ec(2,"div",15),s.Ec(3,"div",16),s.Ec(4,"div",17),s.Ic(),s.Jc(5,"div",18),s.Ec(6,"div",15),s.Ec(7,"div",16),s.Ec(8,"div",17),s.Ic(),s.Gc())}function hc(t,e){1&t&&(s.Jc(0,"div",19),s.ed(1,1),s.Ic())}function uc(t,e){if(1&t&&(s.Hc(0),s.ed(1,2),s.Jc(2,"span"),s.Bd(3),s.Ic(),s.Gc()),2&t){const t=s.ad(2);s.pc(3),s.Cd(t._control.placeholder)}}function pc(t,e){1&t&&s.ed(0,3,["*ngSwitchCase","true"])}function mc(t,e){1&t&&(s.Jc(0,"span",23),s.Bd(1," *"),s.Ic())}function gc(t,e){if(1&t){const t=s.Kc();s.Jc(0,"label",20,21),s.Wc("cdkObserveContent",(function(){return s.rd(t),s.ad().updateOutlineGap()})),s.zd(2,uc,4,1,"ng-container",12),s.zd(3,pc,1,0,void 0,12),s.zd(4,mc,2,0,"span",22),s.Ic()}if(2&t){const t=s.ad();s.tc("mat-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),s.gd("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.qc("for",t._control.id)("aria-owns",t._control.id),s.pc(2),s.gd("ngSwitchCase",!1),s.pc(1),s.gd("ngSwitchCase",!0),s.pc(1),s.gd("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function fc(t,e){1&t&&(s.Jc(0,"div",24),s.ed(1,4),s.Ic())}function bc(t,e){if(1&t&&(s.Jc(0,"div",25,26),s.Ec(2,"span",27),s.Ic()),2&t){const t=s.ad();s.pc(2),s.tc("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function _c(t,e){if(1&t&&(s.Jc(0,"div"),s.ed(1,5),s.Ic()),2&t){const t=s.ad();s.gd("@transitionMessages",t._subscriptAnimationState)}}function vc(t,e){if(1&t&&(s.Jc(0,"div",31),s.Bd(1),s.Ic()),2&t){const t=s.ad(2);s.gd("id",t._hintLabelId),s.pc(1),s.Cd(t.hintLabel)}}function yc(t,e){if(1&t&&(s.Jc(0,"div",28),s.zd(1,vc,2,2,"div",29),s.ed(2,6),s.Ec(3,"div",30),s.ed(4,7),s.Ic()),2&t){const t=s.ad();s.gd("@transitionMessages",t._subscriptAnimationState),s.pc(1),s.gd("ngIf",t.hintLabel)}}const wc=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],xc=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let kc=0,Cc=(()=>{class t{constructor(){this.id=`mat-error-${kc++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("id",e.id)},inputs:{id:"id"}}),t})();const Sc={transitionMessages:o("transitionMessages",[h("enter",d({opacity:1,transform:"translateY(0%)"})),p("void => enter",[d({opacity:0,transform:"translateY(-100%)"}),r("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ic=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t}),t})();function Dc(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let Ec=0,Oc=(()=>{class t{constructor(){this.align="start",this.id=`mat-hint-${Ec++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.qc("id",e.id)("align",null),s.tc("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t})(),Ac=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-label"]]}),t})(),Pc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-placeholder"]]}),t})(),Tc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matPrefix",""]]}),t})(),Rc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matSuffix",""]]}),t})(),Mc=0;class Fc{constructor(t){this._elementRef=t}}const Nc=wn(Fc,"primary"),Lc=new s.x("MAT_FORM_FIELD_DEFAULT_OPTIONS"),zc=new s.x("MatFormField");let Bc=(()=>{class t extends Nc{constructor(t,e,i,n,s,a,o,r){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=a,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Pe.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId=`mat-hint-${Mc++}`,this._labelId=`mat-form-field-label-${Mc++}`,this._labelOptions=i||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==r,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=di(t)}get _shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}get _canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}get _labelChild(){return this._labelChildNonStatic||this._labelChildStatic}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(dn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Gr(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Gr(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(xr.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(dn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(dn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Gr(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!!this._labelChild}_shouldLabelFloat(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,kr(this._label.nativeElement,"transitionend").pipe(ri(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let t,e;this._hintChildren.forEach(i=>{if("start"===i.align){if(t||this.hintLabel)throw Dc("start");t=i}else if("end"===i.align){if(e)throw Dc("end");e=i}})}}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if("hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.id)}else this._errorChildren&&(t=this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),a=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const a=this._getStartEnd(s),o=this._getStartEnd(t.children[0].getBoundingClientRect());let r=0;for(const e of t.children)r+=e.offsetWidth;e=Math.abs(o-a)-5,i=r>0?.75*r+10:0}for(let o=0;o{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c,Pi]]}),t})();function Vc(t,e=qe){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new jc(n,e))}class jc{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new $c(t,this.delay,this.scheduler))}}class $c extends ze.a{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule($c.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new Hc(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(sl.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(sl.createComplete()),this.unsubscribe()}}class Hc{constructor(t,e){this.time=t,this.notification=e}}const Uc=["panel"];function Gc(t,e){if(1&t&&(s.Jc(0,"div",0,1),s.ed(2),s.Ic()),2&t){const t=s.ad();s.gd("id",t.id)("ngClass",t._classList)}}const Wc=["*"];let qc=0;class Kc{constructor(t,e){this.source=t,this.option=e}}class Xc{}const Yc=xn(Xc),Zc=new s.x("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let Qc=(()=>{class t extends Yc{constructor(t,e,i){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=Te.a.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new s.u,this.opened=new s.u,this.closed=new s.u,this.optionActivated=new s.u,this._classList={},this.id=`mat-autocomplete-${qc++}`,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=di(t)}set classList(t){this._classList=t&&t.length?t.split(" ").reduce((t,e)=>(t[e.trim()]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new zi(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new Kc(this,t);this.optionSelected.emit(e)}_setVisibilityClasses(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.j),s.Dc(s.r),s.Dc(Zc))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,rs,!0),s.vc(i,is,!0)),2&t&&(s.md(n=s.Xc())&&(e.options=n),s.md(n=s.Xc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(s.xd(s.Y,!0),s.Fd(Uc,!0)),2&t&&(s.md(i=s.Xc())&&(e.template=i.first),s.md(i=s.Xc())&&(e.panel=i.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[s.oc([{provide:os,useExisting:t}]),s.mc],ngContentSelectors:Wc,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(s.fd(),s.zd(0,Gc,3,2,"ng-template"))},directives:[ve.q],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),td=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),t})();const ed=new s.x("mat-autocomplete-scroll-strategy"),id={provide:ed,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},nd={provide:Es,useExisting:Object(s.hb)(()=>sd),multi:!0};let sd=(()=>{class t{constructor(t,e,i,n,s,a,o,r,l,c){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=o,this._formField=r,this._document=l,this._viewportRuler=c,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Te.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Pe.a,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=wr(()=>this.autocomplete&&this.autocomplete.options?Object(xr.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.asObservable().pipe(ri(1),Xr(()=>this.optionSelections))),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=di(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&(this._zone.runOutsideAngular(()=>{t.addEventListener("blur",this._windowBlurHandler)}),this._isInsideShadowRoot=!!Di(this._element.nativeElement))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Object(xr.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Qe(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Qe(()=>this._overlayAttached)):Ne()).pipe(Object(ii.a)(t=>t instanceof as?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(xr.a)(kr(this._document,"click"),kr(this._document,"touchend")).pipe(Qe(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(27===e&&t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption()}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_scrollToOption(){const t=this.autocomplete._keyManager.activeItemIndex||0,e=ls(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{const i=cs(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}_subscribeToClosingActions(){const t=this._zone.onStable.asObservable().pipe(ri(1)),e=this.autocomplete.options.changes.pipe(Ve(()=>this._positionStrategy.reapplyLastPosition()),Vc(0));return Object(xr.a)(t,e).pipe(Xr(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),ri(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!=t&&e.selected&&e.deselect()})}_attachOverlay(){if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new _l(this.autocomplete.template,this._viewContainerRef),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(t=>{(27===t.keyCode||38===t.keyCode&&t.altKey)&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})}))),t&&!t.hasAttached()&&(t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const e=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&e!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Nl({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},i={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};let n;n="above"===this.position?[i]:"below"===this.position?[e]:[e,i],t.withPositions(n)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Ql),s.Dc(s.cb),s.Dc(s.I),s.Dc(s.j),s.Dc(ed),s.Dc(nn,8),s.Dc(zc,9),s.Dc(ve.e,8),s.Dc(pl))},t.\u0275dir=s.yc({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&s.Wc("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&s.qc("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[s.oc([nd]),s.nc]}),t})(),ad=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[id],imports:[[ds,ac,vn,ve.c],ds,vn]}),t})();function od(t,e){}class rd{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const ld={dialogContainer:o("dialogContainer",[h("void, exit",d({opacity:0,transform:"scale(0.7)"})),h("enter",d({transform:"none"})),p("* => enter",r("150ms cubic-bezier(0, 0, 0.2, 1)",d({transform:"none",opacity:1}))),p("* => void, * => exit",r("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",d({opacity:0})))])};function cd(){throw Error("Attempting to attach dialog content after content is already attached")}let dd=(()=>{class t extends yl{constructor(t,e,i,n,a){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=a,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new s.u,this.attachDomPortal=t=>(this._portalOutlet.hasAttached()&&cd(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=a.ariaLabelledBy||null,this._document=n}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&cd(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&cd(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}_trapFocus(){const t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_onAnimationDone(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Hi),s.Dc(s.j),s.Dc(ve.e,8),s.Dc(rd))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var i;1&t&&s.xd(kl,!0),2&t&&s.md(i=s.Xc())&&(e._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.uc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(s.qc("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.Ed("@dialogContainer",e._state))},features:[s.mc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.zd(0,od,0,0,"ng-template",0)},directives:[kl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ld.dialogContainer]}}),t})(),hd=0;class ud{constructor(t,e,i=`mat-dialog-${hd++}`){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Pe.a,this._afterClosed=new Pe.a,this._beforeClosed=new Pe.a,this._state=0,e._id=i,e._animationStateChanged.pipe(Qe(t=>"done"===t.phaseName&&"enter"===t.toState),ri(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Qe(t=>"done"===t.phaseName&&"exit"===t.toState),ri(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._overlayRef.dispose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Qe(t=>27===t.keyCode&&!this.disableClose&&!Le(t))).subscribe(t=>{t.preventDefault(),this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Qe(t=>"start"===t.phaseName),ri(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._state=2,this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},e.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const pd=new s.x("MatDialogData"),md=new s.x("mat-dialog-default-options"),gd=new s.x("mat-dialog-scroll-strategy"),fd={provide:gd,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.block()}};let bd=(()=>{class t{constructor(t,e,i,n,s,a,o){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=a,this._overlayContainer=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe.a,this._afterOpenedAtThisLevel=new Pe.a,this._ariaHiddenElements=new Map,this.afterAllClosed=wr(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(dn(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}get _afterAllClosed(){const t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}open(t,e){if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new rd)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new Nl({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const i=s.y.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:rd,useValue:e}]}),n=new bl(dd,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const a=new ud(i,e,n.id);if(n.hasBackdrop&&i.backdropClick().subscribe(()=>{a.disableClose||a.close()}),t instanceof s.Y)e.attachTemplatePortal(new _l(t,null,{$implicit:n.data,dialogRef:a}));else{const i=this._createInjector(n,a,e),s=e.attachComponentPortal(new bl(t,n.viewContainerRef,i));a.componentInstance=s.instance}return a.updateSize(n.width,n.height).updatePosition(n.position),a}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,a=[{provide:dd,useValue:i},{provide:pd,useValue:t.data},{provide:ud,useValue:e}];return!t.direction||n&&n.get(nn,null)||a.push({provide:nn,useValue:{value:t.direction,change:Ne()}}),s.y.create({parent:n||this._injector,providers:a})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Ql),s.Sc(s.y),s.Sc(ve.n,8),s.Sc(md,8),s.Sc(gd),s.Sc(t,12),s.Sc($l))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),_d=0,vd=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=kd(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(ud,8),s.Dc(s.r),s.Dc(bd))},t.\u0275dir=s.yc({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&s.qc("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[s.nc]}),t})(),yd=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id=`mat-dialog-title-${_d++}`}ngOnInit(){this._dialogRef||(this._dialogRef=kd(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(ud,8),s.Dc(s.r),s.Dc(bd))},t.\u0275dir=s.yc({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Mc("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),wd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),xd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function kd(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}let Cd=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[bd,fd],imports:[[ac,Il,vn],vn]}),t})(),Sd=0,Id=(()=>{class t{constructor(){this._stateChanges=new Pe.a,this._openCloseAllActions=new Pe.a,this.id=`cdk-accordion-${Sd++}`,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=di(t)}openAll(){this._openCloseAll(!0)}closeAll(){this._openCloseAll(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete()}_openCloseAll(t){this.multi&&this._openCloseAllActions.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s.nc]}),t})(),Dd=0,Ed=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=Te.a.EMPTY,this.closed=new s.u,this.opened=new s.u,this.destroyed=new s.u,this.expandedChange=new s.u,this.id=`cdk-accordion-child-${Dd++}`,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=di(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Id,12),s.Dc(s.j),s.Dc(xs))},t.\u0275dir=s.yc({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s.oc([{provide:Id,useValue:void 0}])]}),t})(),Od=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();const Ad=["body"];function Pd(t,e){}const Td=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Rd=["mat-expansion-panel-header","*","mat-action-row"],Md=function(t,e){return{collapsedHeight:t,expandedHeight:e}},Fd=function(t,e){return{value:t,params:e}};function Nd(t,e){if(1&t&&s.Ec(0,"span",2),2&t){const t=s.ad();s.gd("@indicatorRotate",t._getExpandedState())}}const Ld=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],zd=["mat-panel-title","mat-panel-description","*"],Bd=new s.x("MAT_ACCORDION"),Jd={indicatorRotate:o("indicatorRotate",[h("collapsed, void",d({transform:"rotate(0deg)"})),h("expanded",d({transform:"rotate(180deg)"})),p("expanded <=> collapsed, void => collapsed",r("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:o("expansionHeight",[h("collapsed, void",d({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),h("expanded",d({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),p("expanded <=> collapsed, void => collapsed",l([g("@indicatorRotate",m(),{optional:!0}),r("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:o("bodyExpansion",[h("collapsed, void",d({height:"0px",visibility:"hidden"})),h("expanded",d({height:"*",visibility:"visible"})),p("expanded <=> collapsed, void => collapsed",r("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let Vd=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),jd=0;const $d=new s.x("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Hd=(()=>{class t extends Ed{constructor(t,e,i,n,a,o,r){super(t,e,i),this._viewContainerRef=n,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new s.u,this.afterCollapse=new s.u,this._inputChanges=new Pe.a,this._headerId=`mat-expansion-panel-header-${jd++}`,this._bodyAnimationDone=new Pe.a,this.accordion=t,this._document=a,this._bodyAnimationDone.pipe(Fr((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),r&&(this.hideToggle=r.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=di(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(dn(null),Qe(()=>this.expanded&&!this._portal),ri(1)).subscribe(()=>{this._portal=new _l(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Bd,12),s.Dc(s.j),s.Dc(xs),s.Dc(s.cb),s.Dc(ve.e),s.Dc(Ee,8),s.Dc($d,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Vd,!0),2&t&&s.md(n=s.Xc())&&(e._lazyContent=n.first)},viewQuery:function(t,e){var i;1&t&&s.Fd(Ad,!0),2&t&&s.md(i=s.Xc())&&(e._body=i.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.tc("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s.oc([{provide:Bd,useValue:void 0}]),s.mc,s.nc],ngContentSelectors:Rd,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.fd(Td),s.ed(0),s.Jc(1,"div",0,1),s.Wc("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),s.Jc(3,"div",2),s.ed(4,1),s.zd(5,Pd,0,0,"ng-template",3),s.Ic(),s.ed(6,2),s.Ic()),2&t&&(s.pc(1),s.gd("@bodyExpansion",e._getExpandedState())("id",e.id),s.qc("aria-labelledby",e._headerId),s.pc(4),s.gd("cdkPortalOutlet",e._portal))},directives:[kl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Jd.bodyExpansion]},changeDetection:0}),t})(),Ud=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),t})(),Gd=(()=>{class t{constructor(t,e,i,n,s){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._parentChangeSubscription=Te.a.EMPTY,this._animationsDisabled=!0;const a=t.accordion?t.accordion._stateChanges.pipe(Qe(t=>!(!t.hideToggle&&!t.togglePosition))):ai;this._parentChangeSubscription=Object(xr.a)(t.opened,t.closed,a,t._inputChanges.pipe(Qe(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Qe(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),i.monitor(e).subscribe(e=>{e&&t.accordion&&t.accordion._handleHeaderFocus(this)}),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}_animationStarted(){this._animationsDisabled=!1}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_keydown(t){switch(t.keyCode){case 32:case 13:Le(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t="program",e){this._focusMonitor.focusVia(this._element,t,e)}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Hd,1),s.Dc(s.r),s.Dc(Xi),s.Dc(s.j),s.Dc($d,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header"],hostVars:19,hostBindings:function(t,e){1&t&&(s.uc("@expansionHeight.start",(function(){return e._animationStarted()})),s.Wc("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(s.qc("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.Ed("@.disabled",e._animationsDisabled)("@expansionHeight",s.kd(16,Fd,e._getExpandedState(),s.kd(13,Md,e.collapsedHeight,e.expandedHeight))),s.tc("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:zd,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.fd(Ld),s.Jc(0,"span",0),s.ed(1),s.ed(2,1),s.ed(3,2),s.Ic(),s.zd(4,Nd,1,1,"span",1)),2&t&&(s.pc(4),s.gd("ngIf",e._showToggle()))},directives:[ve.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[Jd.indicatorRotate,Jd.expansionHeaderHeight]},changeDetection:0}),t})(),Wd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),qd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),Kd=(()=>{class t extends Id{constructor(){super(...arguments),this._ownHeaders=new s.O,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=di(t)}ngAfterContentInit(){this._headers.changes.pipe(dn(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Bi(this._ownHeaders).withWrap()}_handleHeaderKeydown(t){const{keyCode:e}=t,i=this._keyManager;36===e?Le(t)||(i.setFirstItemActive(),t.preventDefault()):35===e?Le(t)||(i.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}}return t.\u0275fac=function(e){return Xd(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Gd,!0),2&t&&s.md(n=s.Xc())&&(e._headers=n)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s.oc([{provide:Bd,useExisting:t}]),s.mc]}),t})();const Xd=s.Lc(Kd);let Yd=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c,Od,Il]]}),t})();const Zd=["*"],Qd=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],th=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],eh=new s.x("MAT_GRID_LIST");let ih=(()=>{class t{constructor(t,e){this._element=t,this._gridList=e,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round(hi(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(hi(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(eh,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&s.qc("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Zd,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"figure",0),s.ed(1),s.Ic())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),nh=(()=>{class t{constructor(t){this._element=t}ngAfterContentInit(){Vn(this._lines,this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Jn,!0),2&t&&s.md(n=s.Xc())&&(e._lines=n)},ngContentSelectors:th,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(s.fd(Qd),s.ed(0),s.Jc(1,"div",0),s.ed(2,1),s.Ic(),s.ed(3,2))},encapsulation:2,changeDetection:0}),t})(),sh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),t})(),ah=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),t})(),oh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),t})();class rh{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const t=Math.max(...this.tracker);return t>1?this.rowCount+t-1:this.rowCount}update(t,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(t=>this._trackTile(t))}_trackTile(t){const e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new lh(this.rowIndex,e)}_findMatchingGap(t){if(t>this.tracker.length)throw Error(`mat-grid-list: tile with colspan ${t} is wider than `+`grid with cols="${this.tracker.length}".`);let e=-1,i=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(i=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)))}while(i-e{t._setStyle("top",null),t._setStyle("height",null)})}}class uh extends dh{constructor(t){super(),this._parseRatio(t)}setRowStyles(t,e,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",mh(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",mh(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(t=>{t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})}_parseRatio(t){const e=t.split(":");if(2!==e.length)throw Error(`mat-grid-list: invalid ratio given for row-height: "${t}"`);this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class ph extends dh{setRowStyles(t,e){let i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(i,e)),t._setStyle("height",mh(this.getTileSize(i,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function mh(t){return`calc(${t})`}function gh(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let fh=(()=>{class t{constructor(t,e){this._element=t,this._dir=e,this._gutter="1px"}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round(hi(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=`${null==t?"":t}`}get rowHeight(){return this._rowHeight}set rowHeight(t){const e=`${null==t?"":t}`;e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: ')}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new ph:t&&t.indexOf(":")>-1?new uh(t):new hh(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new rh);const t=this._tileCoordinator,e=this._tiles.filter(t=>!t._gridList||t._gridList===this),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,e),this._tileStyler.init(this.gutterSize,t,this.cols,i),e.forEach((e,i)=>{const n=t.positions[i];this._tileStyler.setStyle(e,n.row,n.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(nn,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,ih,!0),2&t&&s.md(n=s.Xc())&&(e._tiles=n)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&s.qc("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[s.oc([{provide:eh,useExisting:t}])],ngContentSelectors:Zd,decls:2,vars:0,template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div"),s.ed(1),s.Ic())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),bh=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[$n,vn],$n,vn]}),t})();function _h(t){return function(e){const i=new vh(t),n=e.lift(i);return i.caught=n}}class vh{constructor(t){this.selector=t}call(t,e){return e.subscribe(new yh(t,this.selector,this.caught))}}class yh extends zr.a{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new Kr.a(this,void 0,void 0);this.add(n);const s=Object(Br.a)(this,i,void 0,void 0,n);s!==n&&this.add(s)}}}function wh(t){return e=>e.lift(new xh(t))}class xh{constructor(t){this.callback=t}call(t,e){return e.subscribe(new kh(t,this.callback))}}class kh extends ze.a{constructor(t,e){super(t),this.add(new Te.a(e))}}var Ch=i("w1tV"),Sh=i("5+tZ");function Ih(t,e){return Object(Sh.a)(t,e,1)}class Dh{}class Eh{}class Oh{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Oh?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Oh;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Oh?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Ah{encodeKey(t){return Ph(t)}encodeValue(t){return Ph(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Ph(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Th{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ah,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.split("&").forEach(t=>{const n=t.indexOf("="),[s,a]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],o=i.get(s)||[];o.push(a),i.set(s,o)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Th({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(t.value);-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Rh(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Mh(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Fh(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Nh{constructor(t,e,i,n){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new Oh),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),r)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new Nh(e,i,s,{params:l,headers:r,reportProgress:o,responseType:n,withCredentials:a})}}const Lh=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class zh{constructor(t,e=200,i="OK"){this.headers=t.headers||new Oh,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Bh extends zh{constructor(t={}){super(t),this.type=Lh.ResponseHeader}clone(t={}){return new Bh({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Jh extends zh{constructor(t={}){super(t),this.type=Lh.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Jh({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Vh extends zh{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function jh(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let $h=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof Nh)n=t;else{let s=void 0;s=i.headers instanceof Oh?i.headers:new Oh(i.headers);let a=void 0;i.params&&(a=i.params instanceof Th?i.params:new Th({fromObject:i.params})),n=new Nh(t,e,void 0!==i.body?i.body:null,{headers:s,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=Ne(n).pipe(Ih(t=>this.handler.handle(t)));if(t instanceof Nh||"events"===i.observe)return s;const a=s.pipe(Qe(t=>t instanceof Jh));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return a.pipe(Object(ii.a)(t=>t.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Th).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,jh(i,e))}post(t,e,i={}){return this.request("POST",t,jh(i,e))}put(t,e,i={}){return this.request("PUT",t,jh(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Dh))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();class Hh{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Uh=new s.x("HTTP_INTERCEPTORS");let Gh=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();const Wh=/^\)\]\}',?\n/;class qh{}let Kh=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),Xh=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new si.a(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",a=new Oh(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new Bh({headers:a,status:e,statusText:n,url:o}),s},o=()=>{let{headers:n,status:s,statusText:o,url:r}=a(),l=null;204!==s&&(l=void 0===i.response?i.responseText:i.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Wh,"");try{l=""!==l?JSON.parse(l):null}catch(d){l=t,c&&(c=!1,l={error:d,text:l})}}c?(e.next(new Jh({body:l,headers:n,status:s,statusText:o,url:r||void 0})),e.complete()):e.error(new Vh({error:l,headers:n,status:s,statusText:o,url:r||void 0}))},r=t=>{const{url:n}=a(),s=new Vh({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let l=!1;const c=n=>{l||(e.next(a()),l=!0);let s={type:Lh.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},d=t=>{let i={type:Lh.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",r),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",d)),i.send(n),e.next({type:Lh.Sent}),()=>{i.removeEventListener("error",r),i.removeEventListener("load",o),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",d)),i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(qh))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();const Yh=new s.x("XSRF_COOKIE_NAME"),Zh=new s.x("XSRF_HEADER_NAME");class Qh{}let tu=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(ve.O)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(ve.e),s.Sc(s.M),s.Sc(Yh))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),eu=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Qh),s.Sc(Zh))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),iu=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Uh,[]);this.chain=t.reduceRight((t,e)=>new Hh(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Eh),s.Sc(s.y))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),nu=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:eu,useClass:Gh}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Yh,useValue:e.cookieName}:[],e.headerName?{provide:Zh,useValue:e.headerName}:[]]}}}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[eu,{provide:Uh,useExisting:eu,multi:!0},{provide:Qh,useClass:tu},{provide:Yh,useValue:"XSRF-TOKEN"},{provide:Zh,useValue:"X-XSRF-TOKEN"}]}),t})(),su=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[$h,{provide:Dh,useClass:iu},Xh,{provide:Eh,useExisting:Xh},Kh,{provide:qh,useExisting:Kh}],imports:[[nu.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();const au=["*"];function ou(t){return Error(`Unable to find icon with the name "${t}"`)}function ru(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+`via Angular's DomSanitizer. Attempted URL was "${t}".`)}function lu(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+`Angular's DomSanitizer. Attempted literal was "${t}".`)}class cu{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let du=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new cu(i,n))}addSvgIconLiteralInNamespace(t,e,i,n){const a=this._sanitizer.sanitize(s.T.HTML,i);if(!a)throw lu(i);const o=this._createSvgElementForSingleIcon(a,n);return this._addSvgIconConfig(t,e,new cu(o,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new cu(e,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(s.T.HTML,e);if(!n)throw lu(e);const a=this._svgElementFromString(n);return this._addSvgIconSetConfig(t,new cu(a,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(s.T.RESOURCE_URL,t);if(!e)throw ru(t);const i=this._cachedIconsByUrl.get(e);return i?Ne(hu(i)):this._loadSvgIconFromConfig(new cu(t)).pipe(Ve(t=>this._cachedIconsByUrl.set(e,t)),Object(ii.a)(t=>hu(t)))}getNamedSvgIcon(t,e=""){const i=uu(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):il(ou(i))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?Ne(hu(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Ve(e=>t.svgElement=e),Object(ii.a)(t=>hu(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Ne(i):Is(e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(_h(e=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(s.T.RESOURCE_URL,t.url)} failed: ${e.message}`;return this._errorHandler?this._errorHandler.handleError(new Error(i)):console.error(i),Ne(null)})))).pipe(Object(ii.a)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw ou(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgElement){const e=this._extractSvgIconFromSet(n.svgElement,t,n.options);if(e)return e}}return null}_loadSvgIconFromConfig(t){return this._fetchUrl(t.url).pipe(Object(ii.a)(e=>this._createSvgElementForSingleIcon(e,t.options)))}_loadSvgIconSetFromConfig(t){return t.svgElement?Ne(t.svgElement):this._fetchUrl(t.url).pipe(Object(ii.a)(e=>(t.svgElement||(t.svgElement=this._svgElementFromString(e)),t.svgElement)))}_createSvgElementForSingleIcon(t,e){const i=this._svgElementFromString(t);return this._setSvgAttributes(i,e),i}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const a=this._svgElementFromString("");return a.appendChild(s),this._setSvgAttributes(a,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(e)),Object(Ch.a)());return this._inProgressUrlFetches.set(e,n),n}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(uu(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}}return t.\u0275fac=function(e){return new(e||t)(s.Sc($h,8),s.Sc(n.b),s.Sc(ve.e,8),s.Sc(s.t,8))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)($h,8),Object(s.Sc)(n.b),Object(s.Sc)(ve.e,8),Object(s.Sc)(s.t,8))},token:t,providedIn:"root"}),t})();function hu(t){return t.cloneNode(!0)}function uu(t,e){return t+":"+e}class pu{constructor(t){this._elementRef=t}}const mu=wn(pu),gu=new s.x("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(s.ib)(ve.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),fu=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],bu=fu.map(t=>`[${t}]`).join(", "),_u=/^url\(['"]?#(.*?)['"]?\)$/;let vu=(()=>{class t extends mu{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=di(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(e)if(this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);this._iconRegistry.getNamedSvgIcon(e,t).pipe(ri(1)).subscribe(t=>this._setSvgElement(t),i=>{const n=`Error retrieving icon ${t}:${e}! ${i.message}`;this._errorHandler?this._errorHandler.handleError(new Error(n)):console.error(n)})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(bu),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],a=s.getAttribute(t),o=a?a.match(_u):null;if(o){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(du),s.Tc("aria-hidden"),s.Dc(gu,8),s.Dc(s.t,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&s.tc("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[s.mc,s.nc],ngContentSelectors:au,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),yu=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();const wu=Si({passive:!0});let xu=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return ai;const e=gi(t),i=this._monitoredElements.get(e);if(i)return i.subject.asObservable();const n=new Pe.a,s="cdk-text-field-autofilled",a=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",a,wu),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",a,wu)}}),n.asObservable()}stopMonitoring(t){const e=gi(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(_i),s.Sc(s.I))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(_i),Object(s.Sc)(s.I))},token:t,providedIn:"root"}),t})(),ku=(()=>{class t{constructor(t,e){this._elementRef=t,this._autofillMonitor=e,this.cdkAutofill=new s.u}ngOnInit(){this._autofillMonitor.monitor(this._elementRef).subscribe(t=>this.cdkAutofill.emit(t))}ngOnDestroy(){this._autofillMonitor.stopMonitoring(this._elementRef)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(xu))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t})(),Cu=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new Pe.a,this._enabled=!0,this._previousMinRows=-1,this._document=n,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(t){this._minRows=hi(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=hi(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=di(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{kr(this._getWindow(),"resize").pipe(Ur(16),Gr(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=e.placeholder;e.classList.add("cdk-textarea-autosize-measuring"),e.placeholder="",e.style.height=`${e.scrollHeight-4}px`,e.classList.remove("cdk-textarea-autosize-measuring"),e.placeholder=n,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:e,selectionEnd:i}=t,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(_i),s.Dc(s.I),s.Dc(ve.e,8))},t.\u0275dir=s.yc({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&s.Wc("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t})(),Su=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vi]]}),t})(),Iu=(()=>{class t extends Cu{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(e){return Du(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[s.mc]}),t})();const Du=s.Lc(Iu),Eu=new s.x("MAT_INPUT_VALUE_ACCESSOR"),Ou=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Au=0;class Pu{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const Tu=Cn(Pu);let Ru=(()=>{class t extends Tu{constructor(t,e,i,n,s,a,o,r,l){super(a,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=r,this._uid=`mat-input-${Au++}`,this._isServer=!1,this._isNativeSelect=!1,this.focused=!1,this.stateChanges=new Pe.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>wi().has(t));const c=this._elementRef.nativeElement;this._inputValueAccessor=o||c,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===c.nodeName.toLowerCase(),this._isNativeSelect&&(this.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=di(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=di(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&wi().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=di(t)}ngOnInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_isTextarea(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){if(Ou.indexOf(this._type)>-1)throw Error(`Input type "${this._type}" isn't supported by matInput.`)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(_i),s.Dc(zs,10),s.Dc(Ja,8),s.Dc(to,8),s.Dc(Bn),s.Dc(Eu,10),s.Dc(xu),s.Dc(s.I))},t.\u0275dir=s.yc({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&s.Wc("blur",(function(){return e._focusChanged(!1)}))("focus",(function(){return e._focusChanged(!0)}))("input",(function(){return e._onInput()})),2&t&&(s.Mc("disabled",e.disabled)("required",e.required),s.qc("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),s.tc("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[s.oc([{provide:Ic,useExisting:t}]),s.mc,s.nc]}),t})(),Mu=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Bn],imports:[[Su,Jc],Su,Jc]}),t})(),Fu=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=di(t)}get inset(){return this._inset}set inset(t){this._inset=di(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(s.qc("aria-orientation",e.vertical?"vertical":"horizontal"),s.tc("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),Nu=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();const Lu=["*"],zu=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Bu=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Ju=["text"];function Vu(t,e){if(1&t&&s.Ec(0,"mat-pseudo-checkbox",5),2&t){const t=s.ad();s.gd("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const ju=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],$u=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];class Hu{}const Uu=yn(xn(Hu));class Gu{}const Wu=xn(Gu);let qu=(()=>{class t extends Uu{constructor(){super(...arguments),this._stateChanges=new Pe.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return Ku(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s.mc,s.nc],ngContentSelectors:Lu,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})();const Ku=s.Lc(qu);let Xu=(()=>{class t extends Uu{constructor(t){super(),this._elementRef=t,this._stateChanges=new Pe.a,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s.mc,s.nc],ngContentSelectors:Lu,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),Yu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),Zu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),Qu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),tp=(()=>{class t extends Wu{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new Pe.a,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Gr(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=di(t)}ngAfterContentInit(){Vn(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(qu,8),s.Dc(Xu,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,Yu,!0),s.vc(i,Zu,!0),s.vc(i,Jn,!0)),2&t&&(s.md(n=s.Xc())&&(e._avatar=n.first),s.md(n=s.Xc())&&(e._icon=n.first),s.md(n=s.Xc())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.tc("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.mc],ngContentSelectors:Bu,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(s.fd(zu),s.Jc(0,"div",0),s.Ec(1,"div",1),s.ed(2),s.Jc(3,"div",2),s.ed(4,1),s.Ic(),s.ed(5,2),s.Ic()),2&t&&(s.pc(1),s.gd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[Kn],encapsulation:2,changeDetection:0}),t})();class ep{}const ip=xn(ep);class np{}const sp=xn(np),ap={provide:Es,useExisting:Object(s.hb)(()=>lp),multi:!0};class op{constructor(t,e){this.source=t,this.option=e}}let rp=(()=>{class t extends sp{constructor(t,e,i){super(),this._element=t,this._changeDetector=e,this.selectionList=i,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(t){this._color=t}get value(){return this._value}set value(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(t){const e=di(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(t){const e=di(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}ngOnInit(){const t=this.selectionList;t._value&&t._value.some(e=>t.compareWith(e,this._value))&&this._setSelected(!0);const e=this._selected;Promise.resolve().then(()=>{(this._selected||e)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){Vn(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const t=this._hasFocus,e=this.selectionList._removeOptionFromList(this);t&&e&&e.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(Object(s.hb)(()=>lp)))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,Yu,!0),s.vc(i,Zu,!0),s.vc(i,Jn,!0)),2&t&&(s.md(n=s.Xc())&&(e._avatar=n.first),s.md(n=s.Xc())&&(e._icon=n.first),s.md(n=s.Xc())&&(e._lines=n))},viewQuery:function(t,e){var i;1&t&&s.Fd(Ju,!0),2&t&&s.md(i=s.Xc())&&(e._text=i.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.Wc("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(s.qc("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),s.tc("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[s.mc],ngContentSelectors:$u,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(s.fd(ju),s.Jc(0,"div",0),s.Ec(1,"div",1),s.zd(2,Vu,1,2,"mat-pseudo-checkbox",2),s.Jc(3,"div",3,4),s.ed(5),s.Ic(),s.ed(6,1),s.Ic()),2&t&&(s.tc("mat-list-item-content-reverse","after"==e.checkboxPosition),s.pc(1),s.gd("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),s.pc(1),s.gd("ngIf",e.selectionList.multiple))},directives:[Kn,ve.t,Yn],encapsulation:2,changeDetection:0}),t})(),lp=(()=>{class t extends ip{constructor(t,e,i){super(),this._element=t,this._changeDetector=i,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new s.u,this.tabIndex=0,this.color="accent",this.compareWith=(t,e)=>t===e,this._disabled=!1,this.selectedOptions=new ws(this._multiple),this._tabIndex=-1,this._onChange=t=>{},this._destroyed=new Pe.a,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(t){const e=di(t);if(e!==this._multiple){if(Object(s.jb)()&&this._contentInitialized)throw new Error("Cannot change `multiple` mode of mat-selection-list after initialization.");this._multiple=e,this.selectedOptions=new ws(this._multiple,this.selectedOptions.selected)}}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new Bi(this.options).withWrap().withTypeAhead().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Gr(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(dn(null),Gr(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Gr(this._destroyed)).subscribe(t=>{if(t.added)for(let e of t.added)e.selected=!0;if(t.removed)for(let e of t.removed)e.selected=!1})}ngOnChanges(t){const e=t.disableRipple,i=t.color;(e&&!e.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){this._setAllOptionsSelected(!0)}deselectAll(){this._setAllOptionsSelected(!1)}_setFocusedOption(t){this._keyManager.updateActiveItem(t)}_removeOptionFromList(t){const e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}_keydown(t){const e=t.keyCode,i=this._keyManager,n=i.activeItemIndex,s=Le(t);switch(e){case 32:case 13:s||i.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case 36:case 35:s||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:65===e&&this.multiple&&Le(t,"ctrlKey")&&!i.isTyping()?(this.options.find(t=>!t.selected)?this.selectAll():this.deselectAll(),t.preventDefault()):i.onKeydown(t)}this.multiple&&(38===e||40===e)&&t.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new op(this,t))}_onFocus(){const t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_setOptionsFromValues(t){this.options.forEach(t=>t._setSelected(!1)),t.forEach(t=>{const e=this.options.find(e=>!e.selected&&this.compareWith(e.value,t));e&&e._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_toggleFocusedOption(){let t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){let e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}_setAllOptionsSelected(t){let e=!1;this.options.forEach(i=>{i._setSelected(t)&&(e=!0)}),e&&this._reportValueChange()}_isValidIndex(t){return t>=0&&tt._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Tc("tabindex"),s.Dc(s.j))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-selection-list"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,rp,!0),2&t&&s.md(n=s.Xc())&&(e.options=n)},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(t,e){1&t&&s.Wc("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onTouched()}))("keydown",(function(t){return e._keydown(t)})),2&t&&s.qc("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[s.oc([ap]),s.mc,s.nc],ngContentSelectors:Lu,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})(),cp=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[$n,Xn,vn,Zn,ve.c],$n,vn,Zn,Nu]}),t})();const dp=["mat-menu-item",""],hp=["*"];function up(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",0),s.Wc("keydown",(function(e){return s.rd(t),s.ad()._handleKeydown(e)}))("click",(function(){return s.rd(t),s.ad().closed.emit("click")}))("@transformMenu.start",(function(e){return s.rd(t),s.ad()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return s.rd(t),s.ad()._onAnimationDone(e)})),s.Jc(1,"div",1),s.ed(2),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.gd("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.qc("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const pp={transformMenu:o("transformMenu",[h("void",d({opacity:0,transform:"scale(0.8)"})),p("void => enter",l([g(".mat-menu-content, .mat-mdc-menu-content",r("100ms linear",d({opacity:1}))),r("120ms cubic-bezier(0, 0, 0.2, 1)",d({transform:"scale(1)"}))])),p("* => void",r("100ms 25ms linear",d({opacity:0})))]),fadeInItems:o("fadeInItems",[h("showing",d({opacity:1})),p("void => *",[d({opacity:0}),r("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let mp=(()=>{class t{constructor(t,e,i,n,s,a,o){this._template=t,this._componentFactoryResolver=e,this._appRef=i,this._injector=n,this._viewContainerRef=s,this._document=a,this._changeDetectorRef=o,this._attached=new Pe.a}attach(t={}){this._portal||(this._portal=new _l(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new wl(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y),s.Dc(s.n),s.Dc(s.g),s.Dc(s.y),s.Dc(s.cb),s.Dc(ve.e),s.Dc(s.j))},t.\u0275dir=s.yc({type:t,selectors:[["ng-template","matMenuContent",""]]}),t})();const gp=new s.x("MAT_MENU_PANEL");class fp{}const bp=xn(yn(fp));let _p=(()=>{class t extends bp{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new Pe.a,this._focused=new Pe.a,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.monitor(this._elementRef,!1),n&&n.addItem&&n.addItem(this),this._document=e}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3;let i="";if(t.childNodes){const n=t.childNodes.length;for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.O,this._tabSubscription=Te.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Pe.a,this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.u,this.close=this.closed,this.panelId=`mat-menu-panel-${yp++}`}get xPosition(){return this._xPosition}set xPosition(t){"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=di(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=di(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Bi(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(dn(this._directDescendantItems),Xr(t=>Object(xr.a)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(dn(this._directDescendantItems),Xr(t=>Object(xr.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:Le(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case 36:case 35:Le(t)||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(dn(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(vp))},t.\u0275dir=s.yc({type:t,contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,mp,!0),s.vc(i,_p,!0),s.vc(i,_p,!1)),2&t&&(s.md(n=s.Xc())&&(e.lazyContent=n.first),s.md(n=s.Xc())&&(e._allItems=n),s.md(n=s.Xc())&&(e.items=n))},viewQuery:function(t,e){var i;1&t&&s.Fd(s.Y,!0),2&t&&s.md(i=s.Xc())&&(e.templateRef=i.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),xp=(()=>{class t extends wp{}return t.\u0275fac=function(e){return kp(e||t)},t.\u0275dir=s.yc({type:t,features:[s.mc]}),t})();const kp=s.Lc(xp);let Cp=(()=>{class t extends xp{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(vp))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[s.oc([{provide:gp,useExisting:xp},{provide:xp,useExisting:t}]),s.mc],ngContentSelectors:hp,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.fd(),s.zd(0,up,3,6,"ng-template"))},directives:[ve.q],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[pp.transformMenu,pp.fadeInItems]},changeDetection:0}),t})();const Sp=new s.x("mat-menu-scroll-strategy"),Ip={provide:Sp,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Dp=Si({passive:!0});let Ep=(()=>{class t{constructor(t,e,i,n,a,o,r,l){this._overlay=t,this._element=e,this._viewContainerRef=i,this._parentMenu=a,this._menuItemInstance=o,this._dir=r,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Te.a.EMPTY,this._hoverSubscription=Te.a.EMPTY,this._menuCloseSubscription=Te.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new s.u,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.u,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Dp),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=n}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMenu||this._parentMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Dp),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof xp&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof xp?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Qe(t=>"void"===t.toState),ri(1),Gr(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Nl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,o]=[n,s],[r,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=r="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(a="top"===n?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:a,overlayX:r,overlayY:n,offsetY:c},{originX:i,originY:a,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:o,overlayX:r,overlayY:s,offsetY:-c},{originX:i,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMenu?this._parentMenu.closed:Ne(),n=this._parentMenu?this._parentMenu._hovered().pipe(Qe(t=>t!==this._menuItemInstance),Qe(()=>this._menuOpen)):Ne();return Object(xr.a)(t,i,n,e)}_handleMousedown(t){Zi(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Qe(t=>t===this._menuItemInstance&&!t.disabled),Vc(0,Mr)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof xp&&this.menu._isAnimating?this.menu._animationDone.pipe(ri(1),Vc(0,Mr),Gr(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new _l(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ql),s.Dc(s.r),s.Dc(s.cb),s.Dc(Sp),s.Dc(xp,8),s.Dc(_p,10),s.Dc(nn,8),s.Dc(Xi))},t.\u0275dir=s.yc({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.Wc("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&s.qc("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),Op=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Ip],imports:[vn]}),t})(),Ap=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Ip],imports:[[ve.c,vn,Xn,ac,Op],Op]}),t})();const Pp={};function Tp(...t){let e=null,i=null;return Object(Re.a)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(ks.a)(t[0])&&(t=t[0]),Object(Me.a)(t,i).lift(new Rp(e))}class Rp{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Mp(t,this.resultSelector))}}class Mp extends zr.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Pp),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;ithis.total&&this.destination.next(t)}}const Lp=new Set;let zp,Bp=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Jp}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Lp.has(t))try{zp||(zp=document.createElement("style"),zp.setAttribute("type","text/css"),document.head.appendChild(zp)),zp.sheet&&(zp.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Lp.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(_i))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(_i))},token:t,providedIn:"root"}),t})();function Jp(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Vp=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new Pe.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return jp(pi(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=Tp(jp(pi(t)).map(t=>this._registerQuery(t).observable));return e=cn(e.pipe(ri(1)),e.pipe(t=>t.lift(new Fp(1)),Ke(0))),e.pipe(Object(ii.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new si.a(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(dn(e),Object(ii.a)(e=>({query:t,matches:e.matches})),Gr(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Bp),s.Sc(s.I))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(Bp),Object(s.Sc)(s.I))},token:t,providedIn:"root"}),t})();function jp(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const $p={tooltipState:o("state",[h("initial, void, hidden",d({opacity:0,transform:"scale(0)"})),h("visible",d({transform:"scale(1)"})),p("* => visible",r("200ms cubic-bezier(0, 0, 0.2, 1)",u([d({opacity:0,transform:"scale(0)",offset:0}),d({opacity:.5,transform:"scale(0.99)",offset:.5}),d({opacity:1,transform:"scale(1)",offset:1})]))),p("* => hidden",r("100ms cubic-bezier(0, 0, 0.2, 1)",d({opacity:0})))])},Hp=Si({passive:!0});function Up(t){return Error(`Tooltip position "${t}" is invalid.`)}const Gp=new s.x("mat-tooltip-scroll-strategy"),Wp={provide:Gp,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},qp=new s.x("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Kp=(()=>{class t{constructor(t,e,i,n,s,a,o,r,l,c,d,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=a,this._ariaDescriber=o,this._focusMonitor=r,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new Pe.a,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!Le(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),r.monitor(e).pipe(Gr(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&s.run(()=>this.show()):s.run(()=>this.hide(0))}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._disabled&&this.hide(0)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?`${t}`.trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngOnInit(){this._setupPointerEvents()}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((e,i)=>{t.removeEventListener(i,e,Hp)}),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new bl(Xp,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Gr(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Gr(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Gr(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e||"below"==e)i={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Up(e);i={originX:"end",originY:"center"}}const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e)i={overlayX:"center",overlayY:"bottom"};else if("below"==e)i={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Up(e);i={overlayX:"start",overlayY:"center"}}const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(ri(1),Gr(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEvents(){if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",()=>{clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)})}}else this._passiveListeners.set("mouseenter",()=>this.show()).set("mouseleave",()=>this.hide());this._passiveListeners.forEach((t,e)=>{this._elementRef.nativeElement.addEventListener(e,t,Hp)})}_disableNativeGesturesIfNecessary(){const t=this._elementRef.nativeElement,e=t.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==i&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ql),s.Dc(s.r),s.Dc(hl),s.Dc(s.cb),s.Dc(s.I),s.Dc(_i),s.Dc(Ni),s.Dc(Xi),s.Dc(Gp),s.Dc(nn,8),s.Dc(qp,8),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),Xp=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Pe.a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide.asObservable()}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.j),s.Dc(Vp))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e._handleBodyInteraction()}),!1,s.od),2&t&&s.yd("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.Jc(0,"div",0),s.Wc("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),s.bd(1,"async"),s.Bd(2),s.Ic()),2&t){var i;const t=null==(i=s.cd(1,5,e._isHandset))?null:i.matches;s.tc("mat-tooltip-handset",t),s.gd("ngClass",e.tooltipClass)("@state",e._visibility),s.pc(2),s.Cd(e.message)}},directives:[ve.q],pipes:[ve.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[$p.tooltipState]},changeDetection:0}),t})(),Yp=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Wp],imports:[[tn,ve.c,ac,vn],vn]}),t})();const Zp=["primaryValueBar"];class Qp{constructor(t){this._elementRef=t}}const tm=wn(Qp,"primary"),em=new s.x("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Object(s.ib)(ve.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let im=0,nm=(()=>{class t extends tm{constructor(t,e,i,n){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=i,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new s.u,this._animationEndSubscription=Te.a.EMPTY,this.mode="determinate",this.progressbarId=`mat-progress-bar-${im++}`;const a=n?n.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${a}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===i}get value(){return this._value}set value(t){this._value=sm(hi(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=sm(t||0)}_primaryTransform(){return{transform:`scaleX(${this.value/100})`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scaleX(${this.bufferValue/100})`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=kr(t,"transitionend").pipe(Qe(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(Ee,8),s.Dc(em,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var i;1&t&&s.Fd(Zp,!0),2&t&&s.md(i=s.Xc())&&(e._primaryValueBar=i.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(s.qc("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),s.tc("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[s.mc],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(s.Zc(),s.Jc(0,"svg",0),s.Jc(1,"defs"),s.Jc(2,"pattern",1),s.Ec(3,"circle",2),s.Ic(),s.Ic(),s.Ec(4,"rect",3),s.Ic(),s.Yc(),s.Ec(5,"div",4),s.Ec(6,"div",5,6),s.Ec(8,"div",7)),2&t&&(s.pc(2),s.gd("id",e.progressbarId),s.pc(2),s.qc("fill",e._rectangleFillValue),s.pc(1),s.gd("ngStyle",e._bufferTransform()),s.pc(1),s.gd("ngStyle",e._primaryTransform()))},directives:[ve.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function sm(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let am=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c,vn],vn]}),t})();function om(t,e){if(1&t&&(s.Zc(),s.Ec(0,"circle",3)),2&t){const t=s.ad();s.yd("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.qc("r",t._circleRadius)}}function rm(t,e){if(1&t&&(s.Zc(),s.Ec(0,"circle",3)),2&t){const t=s.ad();s.yd("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.qc("r",t._circleRadius)}}function lm(t,e){if(1&t&&(s.Zc(),s.Ec(0,"circle",3)),2&t){const t=s.ad();s.yd("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.qc("r",t._circleRadius)}}function cm(t,e){if(1&t&&(s.Zc(),s.Ec(0,"circle",3)),2&t){const t=s.ad();s.yd("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.qc("r",t._circleRadius)}}class dm{constructor(t){this._elementRef=t}}const hm=wn(dm,"primary"),um=new s.x("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let pm=(()=>{class t extends hm{constructor(e,i,n,s,a){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;o.has(n.head)||o.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!a&&!a._forceAnimations,a&&(a.diameter&&(this.diameter=a.diameter),a.strokeWidth&&(this.strokeWidth=a.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=hi(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=hi(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,hi(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Di(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}get _circleRadius(){return(this.diameter-10)/2}get _viewBox(){const t=2*this._circleRadius+this.strokeWidth;return`0 0 ${t} ${t}`}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 e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",i+""),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_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 t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(_i),s.Dc(ve.e,8),s.Dc(Ee,8),s.Dc(um))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(s.qc("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),s.yd("width",e.diameter,"px")("height",e.diameter,"px"),s.tc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[s.mc],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(t,e){1&t&&(s.Zc(),s.Jc(0,"svg",0),s.zd(1,om,1,9,"circle",1),s.zd(2,rm,1,7,"circle",2),s.Ic()),2&t&&(s.yd("width",e.diameter,"px")("height",e.diameter,"px"),s.gd("ngSwitch","indeterminate"===e.mode),s.qc("viewBox",e._viewBox),s.pc(1),s.gd("ngSwitchCase",!0),s.pc(1),s.gd("ngSwitchCase",!1))},directives:[ve.x,ve.y],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}),t._diameters=new WeakMap,t})(),mm=(()=>{class t extends pm{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(_i),s.Dc(ve.e,8),s.Dc(Ee,8),s.Dc(um))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(s.yd("width",e.diameter,"px")("height",e.diameter,"px"),s.tc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[s.mc],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(t,e){1&t&&(s.Zc(),s.Jc(0,"svg",0),s.zd(1,lm,1,9,"circle",1),s.zd(2,cm,1,7,"circle",2),s.Ic()),2&t&&(s.yd("width",e.diameter,"px")("height",e.diameter,"px"),s.gd("ngSwitch","indeterminate"===e.mode),s.qc("viewBox",e._viewBox),s.pc(1),s.gd("ngSwitchCase",!0),s.pc(1),s.gd("ngSwitchCase",!1))},directives:[ve.x,ve.y],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}),t})(),gm=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn,ve.c],vn]}),t})();const fm=["input"],bm=function(){return{enterDuration:150}},_m=["*"],vm=new s.x("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let ym=0;const wm={provide:Es,useExisting:Object(s.hb)(()=>km),multi:!0};class xm{constructor(t,e){this.source=t,this.value=e}}let km=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name=`mat-radio-group-${ym++}`,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new s.u}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=di(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new xm(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.j))},t.\u0275dir=s.yc({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Im,!0),2&t&&s.md(n=s.Xc())&&(e._radios=n)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[s.oc([wm])]}),t})();class Cm{constructor(t){this._elementRef=t}}const Sm=xn(kn(Cm));let Im=(()=>{class t extends Sm{constructor(t,e,i,n,a,o,r){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=a,this._animationMode=o,this._providerOverride=r,this._uniqueId=`mat-radio-${++ym}`,this.id=this._uniqueId,this.change=new s.u,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._removeUniqueSelectionListener=a.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=di(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(di(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=di(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new xm(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(km,8),s.Dc(s.r),s.Dc(s.j),s.Dc(Xi),s.Dc(xs),s.Dc(Ee,8),s.Dc(vm,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var i;1&t&&s.Fd(fm,!0),2&t&&s.md(i=s.Xc())&&(e._inputElement=i.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&s.Wc("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(s.qc("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),s.tc("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[s.mc],ngContentSelectors:_m,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(s.fd(),s.Jc(0,"label",0,1),s.Jc(2,"div",2),s.Ec(3,"div",3),s.Ec(4,"div",4),s.Jc(5,"input",5,6),s.Wc("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),s.Ic(),s.Jc(7,"div",7),s.Ec(8,"div",8),s.Ic(),s.Ic(),s.Jc(9,"div",9),s.Jc(10,"span",10),s.Bd(11,"\xa0"),s.Ic(),s.ed(12),s.Ic(),s.Ic()),2&t){const t=s.nd(1);s.qc("for",e.inputId),s.pc(5),s.gd("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),s.qc("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),s.pc(2),s.gd("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.id(18,bm)),s.pc(2),s.tc("mat-radio-label-before","before"==e.labelPosition)}},directives:[Kn],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),Dm=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[Xn,vn],vn]}),t})();const Em=["trigger"],Om=["panel"];function Am(t,e){if(1&t&&(s.Jc(0,"span",8),s.Bd(1),s.Ic()),2&t){const t=s.ad();s.pc(1),s.Cd(t.placeholder||"\xa0")}}function Pm(t,e){if(1&t&&(s.Jc(0,"span"),s.Bd(1),s.Ic()),2&t){const t=s.ad(2);s.pc(1),s.Cd(t.triggerValue||"\xa0")}}function Tm(t,e){1&t&&s.ed(0,0,["*ngSwitchCase","true"])}function Rm(t,e){if(1&t&&(s.Jc(0,"span",9),s.zd(1,Pm,2,1,"span",10),s.zd(2,Tm,1,0,void 0,11),s.Ic()),2&t){const t=s.ad();s.gd("ngSwitch",!!t.customTrigger),s.pc(2),s.gd("ngSwitchCase",!0)}}function Mm(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",12),s.Jc(1,"div",13,14),s.Wc("@transformPanel.done",(function(e){return s.rd(t),s.ad()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return s.rd(t),s.ad()._handleKeydown(e)})),s.ed(3,1),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.gd("@transformPanelWrap",void 0),s.pc(1),s.sc("mat-select-panel ",t._getPanelTheme(),""),s.yd("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.gd("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing")}}const Fm=[[["mat-select-trigger"]],"*"],Nm=["mat-select-trigger","*"],Lm={transformPanelWrap:o("transformPanelWrap",[p("* => void",g("@transformPanel",[m()],{optional:!0}))]),transformPanel:o("transformPanel",[h("void",d({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),h("showing",d({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),h("showing-multiple",d({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),p("void => *",r("120ms cubic-bezier(0, 0, 0.2, 1)")),p("* => void",r("100ms 25ms linear",d({opacity:0})))])};let zm=0;const Bm=new s.x("mat-select-scroll-strategy"),Jm=new s.x("MAT_SELECT_CONFIG"),Vm={provide:Bm,deps:[Ql],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class jm{constructor(t,e){this.source=t,this.value=e}}class $m{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const Hm=xn(kn(yn(Cn($m))));let Um=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-select-trigger"]]}),t})(),Gm=(()=>{class t extends Hm{constructor(t,e,i,n,a,o,r,l,c,d,h,u,p,m){super(a,n,r,l,d),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=o,this._parentFormField=c,this.ngControl=d,this._liveAnnouncer=p,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid=`mat-select-${zm++}`,this._destroy=new Pe.a,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new Pe.a,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=wr(()=>{const t=this.options;return t?t.changes.pipe(dn(t),Xr(()=>Object(xr.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(ri(1),Xr(()=>this.optionSelectionChanges))}),this.openedChange=new s.u,this._openedStream=this.openedChange.pipe(Qe(t=>t),Object(ii.a)(()=>{})),this._closedStream=this.openedChange.pipe(Qe(t=>!t),Object(ii.a)(()=>{})),this.selectionChange=new s.u,this.valueChange=new s.u,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id,m&&(null!=m.disableOptionCentering&&(this.disableOptionCentering=m.disableOptionCentering),null!=m.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=m.typeaheadDebounceInterval))}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=di(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=di(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=di(t)}get compareWith(){return this._compareWith}set compareWith(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.writeValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=hi(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ws(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Fr(),Gr(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(Gr(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Gr(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(dn(null),Gr(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.options&&this._setSelectionByValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,i=40===e||38===e||37===e||39===e,n=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&n&&!Le(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const i=this.selected;36===e||35===e?(36===e?s.setFirstItemActive():s.setLastItemActive(),t.preventDefault()):s.onKeydown(t);const n=this.selected;n&&i!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=40===i||38===i,s=e.isTyping();if(36===i||35===i)t.preventDefault(),36===i?e.setFirstItemActive():e.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(s||13!==i&&32!==i||!e.activeItem||Le(t))if(!s&&this._multiple&&65===i&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(ri(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(t=>this._selectValue(t)),this._sortValues()}else{this._selectionModel.clear();const e=this._selectValue(t);e?this._keyManager.setActiveItem(e):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(i){return Object(s.jb)()&&console.warn(i),!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new zi(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Gr(this._destroy)).subscribe(()=>{!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close()}),this._keyManager.change.pipe(Gr(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(xr.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Gr(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(xr.a)(...this.options.map(t=>t._stateChanges)).pipe(Gr(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()}),this._setOptionIds()}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new jm(this,e)),this._changeDetectorRef.markForCheck()}_setOptionIds(){this._optionIds=this.options.map(t=>t.id).join(" ")}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const t=this._keyManager.activeItemIndex||0,e=ls(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=cs(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,i,n)=>void 0!==e?e:t===i?n:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);s+=ls(s,this.options,this.optionGroups);const a=i/2;this._scrollTop=this._calculateOverlayScroll(s,a,n),this._offsetY=this._calculateOverlayOffsetY(s,a,n),this._checkOverlayWithinViewport(n)}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}_getAriaLabel(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}_getAriaLabelledby(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const a=0-(t.left+s-(i?n:0)),o=t.right+s-e.width+(i?0:n);a>0?s+=a+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,a=Math.floor(256/n);let o;return this._disableOptionCentering?0:(o=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-a))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-a-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):a>n?this._adjustPanelDown(a,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(pl),s.Dc(s.j),s.Dc(s.I),s.Dc(Bn),s.Dc(s.r),s.Dc(nn,8),s.Dc(Ja,8),s.Dc(to,8),s.Dc(zc,8),s.Dc(zs,10),s.Tc("tabindex"),s.Dc(Bm),s.Dc(Wi),s.Dc(Jm,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,Um,!0),s.vc(i,rs,!0),s.vc(i,is,!0)),2&t&&(s.md(n=s.Xc())&&(e.customTrigger=n.first),s.md(n=s.Xc())&&(e.options=n),s.md(n=s.Xc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(s.Fd(Em,!0),s.Fd(Om,!0),s.Fd(nc,!0)),2&t&&(s.md(i=s.Xc())&&(e.trigger=i.first),s.md(i=s.Xc())&&(e.panel=i.first),s.md(i=s.Xc())&&(e.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&s.Wc("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(s.qc("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),s.tc("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[s.oc([{provide:Ic,useExisting:t},{provide:os,useExisting:t}]),s.mc,s.nc],ngContentSelectors:Nm,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(s.fd(Fm),s.Jc(0,"div",0,1),s.Wc("click",(function(){return e.toggle()})),s.Jc(3,"div",2),s.zd(4,Am,2,1,"span",3),s.zd(5,Rm,3,2,"span",4),s.Ic(),s.Jc(6,"div",5),s.Ec(7,"div",6),s.Ic(),s.Ic(),s.zd(8,Mm,4,10,"ng-template",7),s.Wc("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=s.nd(1);s.pc(3),s.gd("ngSwitch",e.empty),s.pc(1),s.gd("ngSwitchCase",!0),s.pc(1),s.gd("ngSwitchCase",!1),s.pc(3),s.gd("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[ic,ve.x,ve.y,nc,ve.z,ve.q],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[Lm.transformPanelWrap,Lm.transformPanel]},changeDetection:0}),t})(),Wm=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Vm],imports:[[ve.c,ac,ds,vn],Jc,ds,vn]}),t})();const qm=["*"];function Km(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",2),s.Wc("click",(function(){return s.rd(t),s.ad()._onBackdropClicked()})),s.Ic()}if(2&t){const t=s.ad();s.tc("mat-drawer-shown",t._isShowingBackdrop())}}function Xm(t,e){1&t&&(s.Jc(0,"mat-drawer-content"),s.ed(1,2),s.Ic())}const Ym=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Zm=["mat-drawer","mat-drawer-content","*"];function Qm(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",2),s.Wc("click",(function(){return s.rd(t),s.ad()._onBackdropClicked()})),s.Ic()}if(2&t){const t=s.ad();s.tc("mat-drawer-shown",t._isShowingBackdrop())}}function tg(t,e){1&t&&(s.Jc(0,"mat-sidenav-content",3),s.ed(1,2),s.Ic())}const eg=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ig=["mat-sidenav","mat-sidenav-content","*"],ng={transformDrawer:o("transform",[h("open, open-instant",d({transform:"none",visibility:"visible"})),h("void",d({"box-shadow":"none",visibility:"hidden"})),p("void => open-instant",r("0ms")),p("void <=> open, open-instant => void",r("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function sg(t){throw Error(`A drawer was already declared for 'position="${t}"'`)}const ag=new s.x("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),og=new s.x("MAT_DRAWER_CONTAINER");let rg=(()=>{class t extends ul{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.j),s.Dc(Object(s.hb)(()=>cg)),s.Dc(s.r),s.Dc(hl),s.Dc(s.I))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.yd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.mc],ngContentSelectors:qm,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},encapsulation:2,changeDetection:0}),t})(),lg=(()=>{class t{constructor(t,e,i,n,a,o,r){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=a,this._doc=o,this._container=r,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Pe.a,this._animationEnd=new Pe.a,this._animationState="void",this.openedChange=new s.u(!0),this._destroyed=new Pe.a,this.onPositionChanged=new s.u,this._modeChanged=new Pe.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{kr(this._elementRef.nativeElement,"keydown").pipe(Qe(t=>27===t.keyCode&&!this.disableClose&&!Le(t)),Gr(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Fr((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=di(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=di(t)}get opened(){return this._opened}set opened(t){this.toggle(di(t))}get _openedStream(){return this.openedChange.pipe(Qe(t=>t),Object(ii.a)(()=>{}))}get openedStart(){return this._animationStarted.pipe(Qe(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Object(ii.a)(()=>{}))}get _closedStream(){return this.openedChange.pipe(Qe(t=>!t),Object(ii.a)(()=>{}))}get closedStart(){return this._animationStarted.pipe(Qe(t=>t.fromState!==t.toState&&"void"===t.toState),Object(ii.a)(()=>{}))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){if(!this.autoFocus)return;const t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}toggle(t=!this.opened,e="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(ri(1)).subscribe(e=>t(e?"open":"close"))})}get _width(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Hi),s.Dc(Xi),s.Dc(_i),s.Dc(s.I),s.Dc(ve.e,8),s.Dc(og,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.uc("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(s.qc("align",null),s.Ed("@transform",e._animationState),s.tc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:qm,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0),s.ed(1),s.Ic())},encapsulation:2,data:{animation:[ng.transformDrawer]},changeDetection:0}),t})(),cg=(()=>{class t{constructor(t,e,i,n,a,o=!1,r){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=r,this._drawers=new s.O,this.backdropClick=new s.u,this._destroyed=new Pe.a,this._doCheckSubject=new Pe.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Pe.a,t&&t.change.pipe(Gr(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(Gr(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=di(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:di(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(dn(this._allDrawers),Gr(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(dn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(Ke(10),Gr(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._width;else if("push"==this._left.mode){const i=this._left._width;t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._width;else if("push"==this._right.mode){const i=this._right._width;e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Qe(t=>t.fromState!==t.toState),Gr(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Gr(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Gr(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.asObservable().pipe(ri(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Gr(Object(xr.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?(null!=this._end&&sg("end"),this._end=t):(null!=this._start&&sg("start"),this._start=t)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawer()}_closeModalDrawer(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t.close())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(nn,8),s.Dc(s.r),s.Dc(s.I),s.Dc(s.j),s.Dc(pl),s.Dc(ag),s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,rg,!0),s.vc(i,lg,!0)),2&t&&(s.md(n=s.Xc())&&(e._content=n.first),s.md(n=s.Xc())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;1&t&&s.Fd(rg,!0),2&t&&s.md(i=s.Xc())&&(e._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s.oc([{provide:og,useExisting:t}])],ngContentSelectors:Zm,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(s.fd(Ym),s.zd(0,Km,1,2,"div",0),s.ed(1),s.ed(2,1),s.zd(3,Xm,2,0,"mat-drawer-content",1)),2&t&&(s.gd("ngIf",e.hasBackdrop),s.pc(3),s.gd("ngIf",!e._content))},directives:[ve.t,rg],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t})(),dg=(()=>{class t extends rg{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.j),s.Dc(Object(s.hb)(()=>pg)),s.Dc(s.r),s.Dc(hl),s.Dc(s.I))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.yd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.mc],ngContentSelectors:qm,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},encapsulation:2,changeDetection:0}),t})(),hg=(()=>{class t extends lg{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=di(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=hi(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=hi(t)}}return t.\u0275fac=function(e){return ug(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.qc("align",null),s.yd("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.tc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.mc],ngContentSelectors:qm,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0),s.ed(1),s.Ic())},encapsulation:2,data:{animation:[ng.transformDrawer]},changeDetection:0}),t})();const ug=s.Lc(hg);let pg=(()=>{class t extends cg{}return t.\u0275fac=function(e){return mg(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,dg,!0),s.vc(i,hg,!0)),2&t&&(s.md(n=s.Xc())&&(e._content=n.first),s.md(n=s.Xc())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s.oc([{provide:og,useExisting:t}]),s.mc],ngContentSelectors:ig,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.fd(eg),s.zd(0,Qm,1,2,"div",0),s.ed(1),s.ed(2,1),s.zd(3,tg,2,0,"mat-sidenav-content",1)),2&t&&(s.gd("ngIf",e.hasBackdrop),s.pc(3),s.gd("ngIf",!e._content))},directives:[ve.t,dg,ul],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t})();const mg=s.Lc(pg);let gg=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c,vn,ml,vi],vn]}),t})();const fg=["thumbContainer"],bg=["toggleBar"],_g=["input"],vg=function(){return{enterDuration:150}},yg=["*"],wg=new s.x("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let xg=0;const kg={provide:Es,useExisting:Object(s.hb)(()=>Dg),multi:!0};class Cg{constructor(t,e){this.source=t,this.checked=e}}class Sg{constructor(t){this._elementRef=t}}const Ig=kn(wn(xn(yn(Sg)),"accent"));let Dg=(()=>{class t extends Ig{constructor(t,e,i,n,a,o,r,l){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=o,this._animationMode=r,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId=`mat-slide-toggle-${++xg}`,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new s.u,this.toggleChange=new s.u,this.dragChange=new s.u,this.tabIndex=parseInt(n)||0}get required(){return this._required}set required(t){this._required=di(t)}get checked(){return this._checked}set checked(t){this._checked=di(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new Cg(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Xi),s.Dc(s.j),s.Tc("tabindex"),s.Dc(s.I),s.Dc(wg),s.Dc(Ee,8),s.Dc(nn,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;1&t&&(s.Fd(fg,!0),s.Fd(bg,!0),s.Fd(_g,!0)),2&t&&(s.md(i=s.Xc())&&(e._thumbEl=i.first),s.md(i=s.Xc())&&(e._thumbBarEl=i.first),s.md(i=s.Xc())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Mc("id",e.id),s.qc("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),s.tc("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[s.oc([kg]),s.mc],ngContentSelectors:yg,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.fd(),s.Jc(0,"label",0,1),s.Jc(2,"div",2,3),s.Jc(4,"input",4,5),s.Wc("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),s.Ic(),s.Jc(6,"div",6,7),s.Ec(8,"div",8),s.Jc(9,"div",9),s.Ec(10,"div",10),s.Ic(),s.Ic(),s.Ic(),s.Jc(11,"span",11,12),s.Wc("cdkObserveContent",(function(){return e._onLabelTextChange()})),s.Jc(13,"span",13),s.Bd(14,"\xa0"),s.Ic(),s.ed(15),s.Ic(),s.Ic()),2&t){const t=s.nd(1),i=s.nd(12);s.qc("for",e.inputId),s.pc(2),s.tc("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),s.pc(2),s.gd("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),s.qc("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.pc(5),s.gd("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.id(17,vg))}},directives:[Kn,Ai],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})();const Eg={provide:$s,useExisting:Object(s.hb)(()=>Og),multi:!0};let Og=(()=>{class t extends uo{}return t.\u0275fac=function(e){return Ag(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[s.oc([Eg]),s.mc]}),t})();const Ag=s.Lc(Og);let Pg=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})(),Tg=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[Pg,Xn,vn,Pi],Pg,vn]}),t})();function Rg(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",1),s.Jc(1,"button",2),s.Wc("click",(function(){return s.rd(t),s.ad().action()})),s.Bd(2),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(2),s.Cd(t.data.action)}}function Mg(t,e){}const Fg=Math.pow(2,31)-1;class Ng{constructor(t,e){this._overlayRef=e,this._afterDismissed=new Pe.a,this._afterOpened=new Pe.a,this._onAction=new Pe.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,Fg))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed.asObservable()}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction.asObservable()}}const Lg=new s.x("MatSnackBarData");class zg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Bg=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ng),s.Dc(Lg))},t.\u0275cmp=s.xc({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(s.Jc(0,"span"),s.Bd(1),s.Ic(),s.zd(2,Rg,3,1,"div",0)),2&t&&(s.pc(1),s.Cd(e.data.message),s.pc(1),s.gd("ngIf",e.hasAction))},directives:[ve.t,bs],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const Jg={snackBarState:o("state",[h("void, hidden",d({transform:"scale(0.8)",opacity:0})),h("visible",d({transform:"scale(1)",opacity:1})),p("* => visible",r("150ms cubic-bezier(0, 0, 0.2, 1)")),p("* => void, * => hidden",r("75ms cubic-bezier(0.4, 0.0, 1, 1)",d({opacity:0})))])};let Vg=(()=>{class t extends yl{constructor(t,e,i,n){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this.snackBarConfig=n,this._destroyed=!1,this._onExit=new Pe.a,this._onEnter=new Pe.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._role="assertive"!==n.politeness||n.announcementMessage?"off"===n.politeness?null:"status":"alert"}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:i}=t;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.asObservable().pipe(ri(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.I),s.Dc(s.r),s.Dc(s.j),s.Dc(zg))},t.\u0275cmp=s.xc({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var i;1&t&&s.xd(kl,!0),2&t&&s.md(i=s.Xc())&&(e._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&s.uc("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(s.qc("role",e._role),s.Ed("@state",e._animationState))},features:[s.mc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.zd(0,Mg,0,0,"ng-template",0)},directives:[kl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[Jg.snackBarState]}}),t})(),jg=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ac,Il,ve.c,vs,vn],vn]}),t})();const $g=new s.x("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new zg}});let Hg=(()=>{class t{constructor(t,e,i,n,s,a){this._overlay=t,this._live=e,this._injector=i,this._breakpointObserver=n,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",i){const n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:t,action:e},n.announcementMessage||(n.announcementMessage=t),this.openFromComponent(Bg,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const i=new Dl(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[zg,e]])),n=new bl(Vg,e.viewContainerRef,i),s=t.attach(n);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const i=Object.assign(Object.assign(Object.assign({},new zg),this._defaultConfig),e),n=this._createOverlay(i),a=this._attachSnackBarContainer(n,i),o=new Ng(a,n);if(t instanceof s.Y){const e=new _l(t,null,{$implicit:i.data,snackBarRef:o});o.instance=a.attachTemplatePortal(e)}else{const e=this._createInjector(i,o),n=new bl(t,void 0,e),s=a.attachComponentPortal(n);o.instance=s.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(Gr(n.detachments())).subscribe(t=>{const e=n.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")}),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}_createOverlay(t){const e=new Nl;e.direction=t.direction;let i=this._overlay.position().global();const n="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!n||"end"===t.horizontalPosition&&n,a=!s&&"center"!==t.horizontalPosition;return s?i.left("0"):a?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)}_createInjector(t,e){return new Dl(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[Ng,e],[Lg,t.data]]))}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(Ql),s.Sc(Wi),s.Sc(s.y),s.Sc(Vp),s.Sc(t,12),s.Sc($g))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(Ql),Object(s.Sc)(Wi),Object(s.Sc)(s.v),Object(s.Sc)(Vp),Object(s.Sc)(t,12),Object(s.Sc)($g))},token:t,providedIn:jg}),t})();const Ug=["*",[["mat-toolbar-row"]]],Gg=["*","mat-toolbar-row"];class Wg{constructor(t){this._elementRef=t}}const qg=wn(Wg);let Kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Xg=(()=>{class t extends qg{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){Object(s.jb)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(t=>!(t.classList&&t.classList.contains("mat-toolbar-row"))).filter(t=>t.nodeType!==(this._document?this._document.COMMENT_NODE:8)).some(t=>!(!t.textContent||!t.textContent.trim()))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(_i),s.Dc(ve.e))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Kg,!0),2&t&&s.md(n=s.Xc())&&(e._toolbarRows=n)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.tc("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.mc],ngContentSelectors:Gg,decls:2,vars:0,template:function(t,e){1&t&&(s.fd(Ug),s.ed(0),s.ed(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),t})(),Yg=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[vn],vn]}),t})();function Zg(t,e){1&t&&s.ed(0)}const Qg=["*"];function tf(t,e){}const ef=function(t){return{animationDuration:t}},nf=function(t,e){return{value:t,params:e}},sf=["tabBodyWrapper"],af=["tabHeader"];function of(t,e){}function rf(t,e){if(1&t&&s.zd(0,of,0,0,"ng-template",9),2&t){const t=s.ad().$implicit;s.gd("cdkPortalOutlet",t.templateLabel)}}function lf(t,e){if(1&t&&s.Bd(0),2&t){const t=s.ad().$implicit;s.Cd(t.textLabel)}}function cf(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",6),s.Wc("click",(function(){s.rd(t);const i=e.$implicit,n=e.index,a=s.ad(),o=s.nd(1);return a._handleClick(i,o,n)})),s.Jc(1,"div",7),s.zd(2,rf,1,1,"ng-template",8),s.zd(3,lf,1,1,"ng-template",8),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit,i=e.index,n=s.ad();s.tc("mat-tab-label-active",n.selectedIndex==i),s.gd("id",n._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||n.disableRipple),s.qc("tabIndex",n._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",n._tabs.length)("aria-controls",n._getTabContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),s.pc(2),s.gd("ngIf",t.templateLabel),s.pc(1),s.gd("ngIf",!t.templateLabel)}}function df(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-tab-body",10),s.Wc("_onCentered",(function(){return s.rd(t),s.ad()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return s.rd(t),s.ad()._setTabBodyWrapperHeight(e)})),s.Ic()}if(2&t){const t=e.$implicit,i=e.index,n=s.ad();s.tc("mat-tab-body-active",n.selectedIndex==i),s.gd("id",n._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",n.animationDuration),s.qc("aria-labelledby",n._getTabLabelId(i))}}const hf=["tabListContainer"],uf=["tabList"],pf=["nextPaginator"],mf=["previousPaginator"],gf=["mat-tab-nav-bar",""],ff=new s.x("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let bf=(()=>{class t{constructor(t,e,i,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=n}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(ff),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})(),_f=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["","matTabContent",""]]}),t})(),vf=(()=>{class t extends xl{}return t.\u0275fac=function(e){return yf(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.mc]}),t})();const yf=s.Lc(vf);class wf{}const xf=yn(wf),kf=new s.x("MAT_TAB_GROUP");let Cf=(()=>{class t extends xf{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new Pe.a,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){t&&(this._templateLabel=t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _l(this._explicitContent||this._implicitContent,this._viewContainerRef)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.cb),s.Dc(kf,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,vf,!0),s.wd(i,_f,!0,s.Y)),2&t&&(s.md(n=s.Xc())&&(e.templateLabel=n.first),s.md(n=s.Xc())&&(e._explicitContent=n.first))},viewQuery:function(t,e){var i;1&t&&s.xd(s.Y,!0),2&t&&s.md(i=s.Xc())&&(e._implicitContent=i.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.mc,s.nc],ngContentSelectors:Qg,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.zd(0,Zg,1,0,"ng-template"))},encapsulation:2}),t})();const Sf={translateTab:o("translateTab",[h("center, void, left-origin-center, right-origin-center",d({transform:"none"})),h("left",d({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),h("right",d({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),p("* => left, * => right, left => center, right => center",r("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),p("void => left-origin-center",[d({transform:"translate3d(-100%, 0, 0)"}),r("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),p("void => right-origin-center",[d({transform:"translate3d(100%, 0, 0)"}),r("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let If=(()=>{class t extends kl{constructor(t,e,i,n){super(t,e,n),this._host=i,this._centeringSub=Te.a.EMPTY,this._leavingSub=Te.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(dn(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.n),s.Dc(s.cb),s.Dc(Object(s.hb)(()=>Ef)),s.Dc(ve.e))},t.\u0275dir=s.yc({type:t,selectors:[["","matTabBodyHost",""]],features:[s.mc]}),t})(),Df=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=Te.a.EMPTY,this._translateTabComplete=new Pe.a,this._onCentering=new s.u,this._beforeCentering=new s.u,this._afterLeavingCenter=new s.u,this._onCentered=new s.u(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Fr((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(nn,8),s.Dc(s.j))},t.\u0275dir=s.yc({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),Ef=(()=>{class t extends Df{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(nn,8),s.Dc(s.j))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;1&t&&s.Fd(Cl,!0),2&t&&s.md(i=s.Xc())&&(e._portalHost=i.first)},hostAttrs:[1,"mat-tab-body"],features:[s.mc],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(s.Jc(0,"div",0,1),s.Wc("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),s.zd(2,tf,0,0,"ng-template",2),s.Ic()),2&t&&s.gd("@translateTab",s.kd(3,nf,e._position,s.jd(1,ef,e.animationDuration)))},directives:[If],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Sf.translateTab]}}),t})();const Of=new s.x("MAT_TABS_CONFIG");let Af=0;class Pf{}class Tf{constructor(t){this._elementRef=t}}const Rf=wn(xn(Tf),"primary");let Mf=(()=>{class t extends Rf{constructor(t,e,i,n){super(t),this._changeDetectorRef=e,this._animationMode=n,this._tabs=new s.O,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=Te.a.EMPTY,this._tabLabelSubscription=Te.a.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.u,this.focusChange=new s.u,this.animationDone=new s.u,this.selectedTabChange=new s.u(!0),this._groupId=Af++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=di(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=hi(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>!t._closestTabGroup||t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new Pf;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(xr.a)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(Of,8),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.mc]}),t})(),Ff=(()=>{class t extends Mf{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(Of,8),s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Cf,!0),2&t&&s.md(n=s.Xc())&&(e._allTabs=n)},viewQuery:function(t,e){var i;1&t&&(s.Fd(sf,!0),s.Fd(af,!0)),2&t&&(s.md(i=s.Xc())&&(e._tabBodyWrapper=i.first),s.md(i=s.Xc())&&(e._tabHeader=i.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&s.tc("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.oc([{provide:kf,useExisting:t}]),s.mc],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(s.Jc(0,"mat-tab-header",0,1),s.Wc("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),s.zd(2,cf,4,14,"div",2),s.Ic(),s.Jc(3,"div",3,4),s.zd(5,df,1,8,"mat-tab-body",5),s.Ic()),2&t&&(s.gd("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),s.pc(2),s.gd("ngForOf",e._tabs),s.pc(1),s.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.pc(2),s.gd("ngForOf",e._tabs))},directives:function(){return[jf,ve.s,zf,Kn,Yi,ve.t,kl,Ef]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class Nf{}const Lf=yn(Nf);let zf=(()=>{class t extends Lf{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(s.qc("aria-disabled",!!e.disabled),s.tc("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[s.mc]}),t})();const Bf=Si({passive:!0});let Jf=(()=>{class t{constructor(t,e,i,n,a,o,r){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=n,this._ngZone=a,this._platform=o,this._animationMode=r,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Pe.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Pe.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.u,this.indexFocused=new s.u,a.runOutsideAngular(()=>{kr(t.nativeElement,"mouseleave").pipe(Gr(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=hi(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){kr(this._previousPaginator.nativeElement,"touchstart",Bf).pipe(Gr(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),kr(this._nextPaginator.nativeElement,"touchstart",Bf).pipe(Gr(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Ne(null),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Bi(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Object(xr.a)(t,e,this._items.changes).pipe(Gr(this._destroyed)).subscribe(()=>{i(),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Gr(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Le(t))switch(t.keyCode){case 36:this._keyManager.setFirstItemActive(),t.preventDefault();break;case 35:this._keyManager.setLastItemActive(),t.preventDefault();break;case 13:case 32:this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t);break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e=this._platform,i="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:n,offsetWidth:s}=e.elementRef.nativeElement;let a,o;"ltr"==this._getLayoutDirection()?(a=n,o=a+s):(o=this._tabList.nativeElement.offsetWidth-n,a=o-s);const r=this.scrollDistance,l=this.scrollDistance+i;al&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),$r(650,100).pipe(Gr(Object(xr.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(pl),s.Dc(nn,8),s.Dc(s.I),s.Dc(_i),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),Vf=(()=>{class t extends Jf{constructor(t,e,i,n,s,a,o){super(t,e,i,n,s,a,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=di(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(pl),s.Dc(nn,8),s.Dc(s.I),s.Dc(_i),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,inputs:{disableRipple:"disableRipple"},features:[s.mc]}),t})(),jf=(()=>{class t extends Vf{constructor(t,e,i,n,s,a,o){super(t,e,i,n,s,a,o)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(pl),s.Dc(nn,8),s.Dc(s.I),s.Dc(_i),s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,zf,!1),2&t&&s.md(n=s.Xc())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(s.xd(bf,!0),s.xd(hf,!0),s.xd(uf,!0),s.Fd(pf,!0),s.Fd(mf,!0)),2&t&&(s.md(i=s.Xc())&&(e._inkBar=i.first),s.md(i=s.Xc())&&(e._tabListContainer=i.first),s.md(i=s.Xc())&&(e._tabList=i.first),s.md(i=s.Xc())&&(e._nextPaginator=i.first),s.md(i=s.Xc())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&s.tc("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.mc],ngContentSelectors:Qg,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0,1),s.Wc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),s.Ec(2,"div",2),s.Ic(),s.Jc(3,"div",3,4),s.Wc("keydown",(function(t){return e._handleKeydown(t)})),s.Jc(5,"div",5,6),s.Wc("cdkObserveContent",(function(){return e._onContentChanges()})),s.Jc(7,"div",7),s.ed(8),s.Ic(),s.Ec(9,"mat-ink-bar"),s.Ic(),s.Ic(),s.Jc(10,"div",8,9),s.Wc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),s.Ec(12,"div",2),s.Ic()),2&t&&(s.tc("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.gd("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.pc(5),s.tc("_mat-animation-noopable","NoopAnimations"===e._animationMode),s.pc(5),s.tc("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.gd("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Kn,Ai,bf],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center] .mat-tab-labels{justify-content:center}[mat-align-tabs=end] .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),$f=(()=>{class t extends Jf{constructor(t,e,i,n,s,a,o){super(t,n,s,e,i,a,o),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove(`mat-background-${this.backgroundColor}`),t&&e.add(`mat-background-${t}`),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=di(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe(dn(null),Gr(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(t){if(!this._items)return;const e=this._items.toArray();for(let i=0;i{class t extends $f{constructor(t,e,i,n,s,a,o){super(t,e,i,n,s,a,o)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(nn,8),s.Dc(s.I),s.Dc(s.j),s.Dc(pl),s.Dc(_i,8),s.Dc(Ee,8))},t.\u0275cmp=s.xc({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,qf,!0),2&t&&s.md(n=s.Xc())&&(e._items=n)},viewQuery:function(t,e){var i;1&t&&(s.xd(bf,!0),s.xd(hf,!0),s.xd(uf,!0),s.Fd(pf,!0),s.Fd(mf,!0)),2&t&&(s.md(i=s.Xc())&&(e._inkBar=i.first),s.md(i=s.Xc())&&(e._tabListContainer=i.first),s.md(i=s.Xc())&&(e._tabList=i.first),s.md(i=s.Xc())&&(e._nextPaginator=i.first),s.md(i=s.Xc())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&s.tc("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.mc],attrs:gf,ngContentSelectors:Qg,decls:13,vars:6,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0,1),s.Wc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),s.Ec(2,"div",2),s.Ic(),s.Jc(3,"div",3,4),s.Wc("keydown",(function(t){return e._handleKeydown(t)})),s.Jc(5,"div",5,6),s.Wc("cdkObserveContent",(function(){return e._onContentChanges()})),s.Jc(7,"div",7),s.ed(8),s.Ic(),s.Ec(9,"mat-ink-bar"),s.Ic(),s.Ic(),s.Jc(10,"div",8,9),s.Wc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),s.Ec(12,"div",2),s.Ic()),2&t&&(s.tc("mat-tab-header-pagination-disabled",e._disableScrollBefore),s.gd("matRippleDisabled",e._disableScrollBefore||e.disableRipple),s.pc(10),s.tc("mat-tab-header-pagination-disabled",e._disableScrollAfter),s.gd("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[Kn,Ai,bf],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center] .mat-tab-links{justify-content:center}[mat-align-tabs=end] .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t})();class Uf{}const Gf=kn(xn(yn(Uf)));let Wf=(()=>{class t extends Gf{constructor(t,e,i,n,s,a){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=s,this._isActive=!1,this.rippleConfig=i||{},this.tabIndex=parseInt(n)||0,"NoopAnimations"===a&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),s.monitor(e)}get active(){return this._isActive}set active(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc($f),s.Dc(s.r),s.Dc(qn,8),s.Tc("tabindex"),s.Dc(Xi),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,inputs:{active:"active"},features:[s.mc]}),t})(),qf=(()=>{class t extends Wf{constructor(t,e,i,n,s,a,o,r){super(t,e,s,a,o,r),this._tabLinkRipple=new Wn(this,i,e,n),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Hf),s.Dc(s.r),s.Dc(s.I),s.Dc(_i),s.Dc(qn,8),s.Tc("tabindex"),s.Dc(Xi),s.Dc(Ee,8))},t.\u0275dir=s.yc({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(s.qc("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),s.tc("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.mc]}),t})(),Kf=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c,vn,Il,Xn,Pi,tn],vn]}),t})();function Xf(t,e){if(1&t&&(s.Jc(0,"mat-option",19),s.Bd(1),s.Ic()),2&t){const t=e.$implicit;s.gd("value",t),s.pc(1),s.Dd(" ",t," ")}}function Yf(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-form-field",16),s.Jc(1,"mat-select",17),s.Wc("selectionChange",(function(e){return s.rd(t),s.ad(2)._changePageSize(e.value)})),s.zd(2,Xf,2,2,"mat-option",18),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.gd("color",t.color),s.pc(1),s.gd("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.pc(1),s.gd("ngForOf",t._displayedPageSizeOptions)}}function Zf(t,e){if(1&t&&(s.Jc(0,"div",20),s.Bd(1),s.Ic()),2&t){const t=s.ad(2);s.pc(1),s.Cd(t.pageSize)}}function Qf(t,e){if(1&t&&(s.Jc(0,"div",12),s.Jc(1,"div",13),s.Bd(2),s.Ic(),s.zd(3,Yf,3,5,"mat-form-field",14),s.zd(4,Zf,2,1,"div",15),s.Ic()),2&t){const t=s.ad();s.pc(2),s.Dd(" ",t._intl.itemsPerPageLabel," "),s.pc(1),s.gd("ngIf",t._displayedPageSizeOptions.length>1),s.pc(1),s.gd("ngIf",t._displayedPageSizeOptions.length<=1)}}function tb(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",21),s.Wc("click",(function(){return s.rd(t),s.ad().firstPage()})),s.Zc(),s.Jc(1,"svg",7),s.Ec(2,"path",22),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.gd("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.qc("aria-label",t._intl.firstPageLabel)}}function eb(t,e){if(1&t){const t=s.Kc();s.Zc(),s.Yc(),s.Jc(0,"button",23),s.Wc("click",(function(){return s.rd(t),s.ad().lastPage()})),s.Zc(),s.Jc(1,"svg",7),s.Ec(2,"path",24),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.gd("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.qc("aria-label",t._intl.lastPageLabel)}}let ib=(()=>{class t{constructor(){this.changes=new Pe.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,i)=>{if(0==i||0==e)return`0 of ${i}`;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.zc)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const nb={provide:ib,deps:[[new s.J,new s.U,ib]],useFactory:function(t){return t||new ib}},sb=new s.x("MAT_PAGINATOR_DEFAULT_OPTIONS");class ab{}const ob=yn(Sn(ab));let rb=(()=>{class t extends ob{constructor(t,e,i){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.u,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(hi(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=hi(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(hi(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>hi(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=di(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=di(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(ib),s.Dc(s.j),s.Dc(sb,8))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[s.mc],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.zd(2,Qf,5,3,"div",2),s.Jc(3,"div",3),s.Jc(4,"div",4),s.Bd(5),s.Ic(),s.zd(6,tb,3,5,"button",5),s.Jc(7,"button",6),s.Wc("click",(function(){return e.previousPage()})),s.Zc(),s.Jc(8,"svg",7),s.Ec(9,"path",8),s.Ic(),s.Ic(),s.Yc(),s.Jc(10,"button",9),s.Wc("click",(function(){return e.nextPage()})),s.Zc(),s.Jc(11,"svg",7),s.Ec(12,"path",10),s.Ic(),s.Ic(),s.zd(13,eb,3,5,"button",11),s.Ic(),s.Ic(),s.Ic()),2&t&&(s.pc(2),s.gd("ngIf",!e.hidePageSize),s.pc(3),s.Dd(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.pc(1),s.gd("ngIf",e.showFirstLastButtons),s.pc(1),s.gd("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.qc("aria-label",e._intl.previousPageLabel),s.pc(3),s.gd("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.qc("aria-label",e._intl.nextPageLabel),s.pc(3),s.gd("ngIf",e.showFirstLastButtons))},directives:[ve.t,bs,Kp,Bc,Gm,ve.s,rs],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),lb=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[nb],imports:[[ve.c,vs,Wm,Yp]]}),t})();const cb=["mat-sort-header",""];function db(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",3),s.Wc("@arrowPosition.start",(function(){return s.rd(t),s.ad()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return s.rd(t),s.ad()._disableViewStateAnimation=!1})),s.Ec(1,"div",4),s.Jc(2,"div",5),s.Ec(3,"div",6),s.Ec(4,"div",7),s.Ec(5,"div",8),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.gd("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),s.pc(2),s.gd("@indicator",t._getArrowDirectionState()),s.pc(1),s.gd("@leftPointer",t._getArrowDirectionState()),s.pc(1),s.gd("@rightPointer",t._getArrowDirectionState())}}const hb=["*"];class ub{}const pb=Sn(yn(ub));let mb=(()=>{class t extends pb{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new Pe.a,this.start="asc",this._direction="",this.sortChange=new s.u}get direction(){return this._direction}set direction(t){if(Object(s.jb)()&&t&&"asc"!==t&&"desc"!==t)throw function(t){return Error(`${t} is not a valid sort direction ('asc' or 'desc').`)}(t);this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=di(t)}register(t){if(!t.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(t.id))throw Error(`Cannot have two MatSortables with the same id (${t.id}).`);this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),i=e.indexOf(this.direction)+1;return i>=e.length&&(i=0),e[i]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return gb(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[s.mc,s.nc]}),t})();const gb=s.Lc(mb),fb=fn.ENTERING+" "+gn.STANDARD_CURVE,bb={indicator:o("indicator",[h("active-asc, asc",d({transform:"translateY(0px)"})),h("active-desc, desc",d({transform:"translateY(10px)"})),p("active-asc <=> active-desc",r(fb))]),leftPointer:o("leftPointer",[h("active-asc, asc",d({transform:"rotate(-45deg)"})),h("active-desc, desc",d({transform:"rotate(45deg)"})),p("active-asc <=> active-desc",r(fb))]),rightPointer:o("rightPointer",[h("active-asc, asc",d({transform:"rotate(45deg)"})),h("active-desc, desc",d({transform:"rotate(-45deg)"})),p("active-asc <=> active-desc",r(fb))]),arrowOpacity:o("arrowOpacity",[h("desc-to-active, asc-to-active, active",d({opacity:1})),h("desc-to-hint, asc-to-hint, hint",d({opacity:.54})),h("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",d({opacity:0})),p("* => asc, * => desc, * => active, * => hint, * => void",r("0ms")),p("* <=> *",r(fb))]),arrowPosition:o("arrowPosition",[p("* => desc-to-hint, * => desc-to-active",r(fb,u([d({transform:"translateY(-25%)"}),d({transform:"translateY(0)"})]))),p("* => hint-to-desc, * => active-to-desc",r(fb,u([d({transform:"translateY(0)"}),d({transform:"translateY(25%)"})]))),p("* => asc-to-hint, * => asc-to-active",r(fb,u([d({transform:"translateY(25%)"}),d({transform:"translateY(0)"})]))),p("* => hint-to-asc, * => active-to-asc",r(fb,u([d({transform:"translateY(0)"}),d({transform:"translateY(-25%)"})]))),h("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",d({transform:"translateY(0)"})),h("hint-to-desc, active-to-desc, desc",d({transform:"translateY(-25%)"})),h("hint-to-asc, active-to-asc, asc",d({transform:"translateY(25%)"}))]),allowChildren:o("allowChildren",[p("* <=> *",[g("@*",m(),{optional:!0})])])};let _b=(()=>{class t{constructor(){this.changes=new Pe.a,this.sortButtonLabel=t=>`Change sorting for ${t}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.zc)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const vb={provide:_b,deps:[[new s.J,new s.U,_b]],useFactory:function(t){return t||new _b}};class yb{}const wb=yn(yb);let xb=(()=>{class t extends wb{constructor(t,e,i,n,s,a){if(super(),this._intl=t,this._sort=i,this._columnDef=n,this._focusMonitor=s,this._elementRef=a,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",!i)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");this._rerenderSubscription=Object(xr.a)(i.sortChange,i._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()}),s&&a&&s.monitor(a,!0).subscribe(t=>this._setIndicatorHintVisible(!!t))}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=di(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngOnDestroy(){this._focusMonitor&&this._elementRef&&this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_handleClick(){if(this._isDisabled())return;this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(_b),s.Dc(s.j),s.Dc(mb,8),s.Dc("MAT_SORT_HEADER_COLUMN_DEF",8),s.Dc(Xi),s.Dc(s.r))},t.\u0275cmp=s.xc({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e._handleClick()}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(s.qc("aria-sort",e._getAriaSortAttribute()),s.tc("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[s.mc],attrs:cb,ngContentSelectors:hb,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button","mat-focus-indicator"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0),s.Jc(1,"button",1),s.ed(2),s.Ic(),s.zd(3,db,6,6,"div",2),s.Ic()),2&t&&(s.tc("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),s.pc(1),s.qc("disabled",e._isDisabled()||null)("aria-label",e._intl.sortButtonLabel(e.id)),s.pc(2),s.gd("ngIf",e._renderArrow()))},directives:[ve.t],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor;position:relative}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-button,[mat-sort-header].cdk-program-focused .mat-sort-header-button{border-bottom:solid 1px currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[bb.indicator,bb.leftPointer,bb.rightPointer,bb.arrowOpacity,bb.arrowPosition,bb.allowChildren]},changeDetection:0}),t})(),kb=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[vb],imports:[[ve.c]]}),t})();class Cb extends Pe.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new rl.a;return this._value}next(t){super.next(this._value=t)}}const Sb=[[["caption"]]],Ib=["caption"];function Db(t,e){if(1&t&&(s.Jc(0,"th",3),s.Bd(1),s.Ic()),2&t){const t=s.ad();s.yd("text-align",t.justify),s.pc(1),s.Dd(" ",t.headerText," ")}}function Eb(t,e){if(1&t&&(s.Jc(0,"td",4),s.Bd(1),s.Ic()),2&t){const t=e.$implicit,i=s.ad();s.yd("text-align",i.justify),s.pc(1),s.Dd(" ",i.dataAccessor(t,i.name)," ")}}function Ob(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=di(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const Ab=new s.x("CDK_TABLE"),Pb=new s.x("text-column-options");let Tb=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkCellDef",""]]}),t})(),Rb=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),Mb=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class Fb{}const Nb=Ob(Fb);let Lb=(()=>{class t extends Nb{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"))}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=di(t),this._hasStickyChanged=e!==this._stickyEnd}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Ab,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,Tb,!0),s.vc(i,Rb,!0),s.vc(i,Mb,!0)),2&t&&(s.md(n=s.Xc())&&(e.cell=n.first),s.md(n=s.Xc())&&(e.headerCell=n.first),s.md(n=s.Xc())&&(e.footerCell=n.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s.oc([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.mc]}),t})();class zb{constructor(t,e){e.nativeElement.classList.add(`cdk-column-${t.cssClassFriendlyName}`)}}let Bb=(()=>{class t extends zb{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Lb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.mc]}),t})(),Jb=(()=>{class t extends zb{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Lb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[s.mc]}),t})(),Vb=(()=>{class t extends zb{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Lb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[s.mc]}),t})(),jb=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof Ub?t.headerCell.template:this instanceof qb?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(t){s.Vc()},t.\u0275dir=s.yc({type:t,features:[s.nc]}),t})();class $b extends jb{}const Hb=Ob($b);let Ub=(()=>{class t extends Hb{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y),s.Dc(s.A),s.Dc(Ab,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.mc,s.nc]}),t})();class Gb extends jb{}const Wb=Ob(Gb);let qb=(()=>{class t extends Wb{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y),s.Dc(s.A),s.Dc(Ab,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.mc,s.nc]}),t})(),Kb=(()=>{class t extends jb{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y),s.Dc(s.A),s.Dc(Ab,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.mc]}),t})(),Xb=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.cb))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),Yb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Fc(0,0)},directives:[Xb],encapsulation:2}),t})(),Zb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Fc(0,0)},directives:[Xb],encapsulation:2}),t})(),Qb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Fc(0,0)},directives:[Xb],encapsulation:2}),t})();const t_=["top","bottom","left","right"];class e_{constructor(t,e,i,n=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._isBrowser=n}clearStickyPositioning(t,e){for(const i of t)if(i.nodeType===i.ELEMENT_NODE){this._removeStickyStyle(i,e);for(let t=0;tt)||i.some(t=>t);if(!t.length||!n||!this._isBrowser)return;const s=t[0],a=s.children.length,o=this._getCellWidths(s),r=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,i),c="rtl"===this.direction;for(const d of t)for(let t=0;t!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0)}_removeStickyStyle(t,e){for(const i of e)t.style[i]="";t.style.zIndex=this._getCalculatedZIndex(t),t_.some(e=>!!t.style[e])||(t.style.position="",t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i){t.classList.add(this._stickCellCss),t.style[e]=`${i}px`,t.style.cssText+="position: -webkit-sticky; position: sticky; ",t.style.zIndex=this._getCalculatedZIndex(t)}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const n of t_)t.style[n]&&(i+=e[n]);return i?`${i}`:""}_getCellWidths(t){const e=[],i=t.children;for(let n=0;n0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}}function i_(t){return Error(`Could not find column with id "${t}".`)}let n_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.cb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","rowOutlet",""]]}),t})(),s_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.cb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),a_=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.cb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),o_=(()=>{class t{constructor(t,e,i,n,s,a,o){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=o,this._onDestroy=new Pe.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new Cb({start:0,end:Number.MAX_VALUE}),n||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){Object(s.jb)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}.`),this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=di(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e)}ngAfterContentChecked(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),ys(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return;const e=this._rowOutlet.viewContainer;t.forEachOperation((t,i,n)=>{if(null==t.previousIndex)this._insertRow(t.item,n);else if(null==n)e.remove(i);else{const t=e.get(i);e.move(t,n)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this.updateStickyColumnStyles()}setHeaderRowDef(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0}setFooterRowDef(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),r_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{if(this._columnDefsByName.has(t.name))throw Error(`Duplicate column definition name provided: "${t.name}".`);this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=r_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=r_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=r_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);if(!this.multiTemplateDataRows&&t.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff();this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()}_switchDataSource(t){this._data=[],ys(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;if(ys(this.dataSource)?t=this.dataSource.connect(this):(e=this.dataSource)&&(e instanceof si.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Ne(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");var e;this._renderChangeSubscription=t.pipe(Gr(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}_addStickyColumnStyles(t,e){const i=Array.from(e.columns||[]).map(t=>{const e=this._columnDefsByName.get(t);if(!e)throw i_(t);return e}),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}if(!i.length)throw function(t){return Error("Could not find a matching row definition for the"+`provided row data: ${JSON.stringify(t)}`)}(t);return i}_insertRow(t,e){this._renderRow(this._rowOutlet,t.rowDef,e,{$implicit:t.data})}_renderRow(t,e,i,n={}){t.viewContainer.createEmbeddedView(e.template,n,i);for(let s of this._getCellTemplates(e))Xb.mostRecentCellOutlet&&Xb.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);if(!i)throw i_(e);return t.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlet:this._headerRowOutlet},{tag:"tbody",outlet:this._rowOutlet},{tag:"tfoot",outlet:this._footerRowOutlet}];for(const i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup"),e.appendChild(i.outlet.elementRef.nativeElement),t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows(),this.updateStickyColumnStyles()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&this.updateStickyColumnStyles()}_setupStickyStyler(){this._stickyStyler=new e_(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._platform.isBrowser),(this._dir?this._dir.change:Ne()).pipe(Gr(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.A),s.Dc(s.j),s.Dc(s.r),s.Tc("role"),s.Dc(nn,8),s.Dc(ve.e),s.Dc(_i))},t.\u0275cmp=s.xc({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,Lb,!0),s.vc(i,Kb,!0),s.vc(i,Ub,!0),s.vc(i,qb,!0)),2&t&&(s.md(n=s.Xc())&&(e._contentColumnDefs=n),s.md(n=s.Xc())&&(e._contentRowDefs=n),s.md(n=s.Xc())&&(e._contentHeaderRowDefs=n),s.md(n=s.Xc())&&(e._contentFooterRowDefs=n))},viewQuery:function(t,e){var i;1&t&&(s.xd(n_,!0),s.xd(s_,!0),s.xd(a_,!0)),2&t&&(s.md(i=s.Xc())&&(e._rowOutlet=i.first),s.md(i=s.Xc())&&(e._headerRowOutlet=i.first),s.md(i=s.Xc())&&(e._footerRowOutlet=i.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[s.oc([{provide:Ab,useExisting:t}])],ngContentSelectors:Ib,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.fd(Sb),s.ed(0),s.Fc(1,0),s.Fc(2,1),s.Fc(3,2))},directives:[s_,n_,a_],encapsulation:2}),t})();function r_(t,e){return t.concat(Array.from(e))}let l_=(()=>{class t{constructor(t,e){this._table=t,this._options=e,this.justify="start",this._options=e||{}}get name(){return this._name}set name(t){this._name=t,this._syncColumnDefName()}ngOnInit(){if(this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((t,e)=>t[e])),!this._table)throw Error("Text column could not find a parent table for registration.");this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef)}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const t=this.name;if(Object(s.jb)()&&!t)throw Error("Table text column must have a name.");return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(t):t[0].toUpperCase()+t.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(o_,8),s.Dc(Pb,8))},t.\u0275cmp=s.xc({type:t,selectors:[["cdk-text-column"]],viewQuery:function(t,e){var i;1&t&&(s.xd(Lb,!0),s.xd(Tb,!0),s.xd(Rb,!0)),2&t&&(s.md(i=s.Xc())&&(e.columnDef=i.first),s.md(i=s.Xc())&&(e.cell=i.first),s.md(i=s.Xc())&&(e.headerCell=i.first))},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(t,e){1&t&&(s.Hc(0,0),s.zd(1,Db,2,3,"th",1),s.zd(2,Eb,2,3,"td",2),s.Gc())},directives:[Lb,Rb,Tb,Bb,Vb],encapsulation:2}),t})(),c_=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();const d_=[[["caption"]]],h_=["caption"];function u_(t,e){if(1&t&&(s.Jc(0,"th",3),s.Bd(1),s.Ic()),2&t){const t=s.ad();s.yd("text-align",t.justify),s.pc(1),s.Dd(" ",t.headerText," ")}}function p_(t,e){if(1&t&&(s.Jc(0,"td",4),s.Bd(1),s.Ic()),2&t){const t=e.$implicit,i=s.ad();s.yd("text-align",i.justify),s.pc(1),s.Dd(" ",i.dataAccessor(t,i.name)," ")}}let m_=(()=>{class t extends o_{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky"}}return t.\u0275fac=function(e){return g_(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[s.oc([{provide:o_,useExisting:t},{provide:Ab,useExisting:t}]),s.mc],ngContentSelectors:h_,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.fd(d_),s.ed(0),s.Fc(1,0),s.Fc(2,1),s.Fc(3,2))},directives:[s_,n_,a_],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type,[dir=rtl] mat-header-cell:first-of-type,[dir=rtl] mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type,[dir=rtl] mat-header-cell:last-of-type,[dir=rtl] mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type,[dir=rtl] td.mat-cell:first-of-type,[dir=rtl] td.mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type,[dir=rtl] td.mat-cell:last-of-type,[dir=rtl] td.mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}\n'],encapsulation:2}),t})();const g_=s.Lc(m_);let f_=(()=>{class t extends Tb{}return t.\u0275fac=function(e){return b_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matCellDef",""]],features:[s.oc([{provide:Tb,useExisting:t}]),s.mc]}),t})();const b_=s.Lc(f_);let __=(()=>{class t extends Rb{}return t.\u0275fac=function(e){return v_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matHeaderCellDef",""]],features:[s.oc([{provide:Rb,useExisting:t}]),s.mc]}),t})();const v_=s.Lc(__);let y_=(()=>{class t extends Mb{}return t.\u0275fac=function(e){return w_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matFooterCellDef",""]],features:[s.oc([{provide:Mb,useExisting:t}]),s.mc]}),t})();const w_=s.Lc(y_);let x_=(()=>{class t extends Lb{}return t.\u0275fac=function(e){return k_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[s.oc([{provide:Lb,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.mc]}),t})();const k_=s.Lc(x_);let C_=(()=>{class t extends Bb{constructor(t,e){super(t,e),e.nativeElement.classList.add(`mat-column-${t.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Lb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[s.mc]}),t})(),S_=(()=>{class t extends Jb{constructor(t,e){super(t,e),e.nativeElement.classList.add(`mat-column-${t.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Lb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[s.mc]}),t})(),I_=(()=>{class t extends Vb{constructor(t,e){super(t,e),e.nativeElement.classList.add(`mat-column-${t.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Lb),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[s.mc]}),t})(),D_=(()=>{class t extends Ub{}return t.\u0275fac=function(e){return E_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[s.oc([{provide:Ub,useExisting:t}]),s.mc]}),t})();const E_=s.Lc(D_);let O_=(()=>{class t extends qb{}return t.\u0275fac=function(e){return A_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[s.oc([{provide:qb,useExisting:t}]),s.mc]}),t})();const A_=s.Lc(O_);let P_=(()=>{class t extends Kb{}return t.\u0275fac=function(e){return T_(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[s.oc([{provide:Kb,useExisting:t}]),s.mc]}),t})();const T_=s.Lc(P_);let R_=(()=>{class t extends Yb{}return t.\u0275fac=function(e){return M_(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[s.oc([{provide:Yb,useExisting:t}]),s.mc],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Fc(0,0)},directives:[Xb],encapsulation:2}),t})();const M_=s.Lc(R_);let F_=(()=>{class t extends Zb{}return t.\u0275fac=function(e){return N_(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[s.oc([{provide:Zb,useExisting:t}]),s.mc],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Fc(0,0)},directives:[Xb],encapsulation:2}),t})();const N_=s.Lc(F_);let L_=(()=>{class t extends Qb{}return t.\u0275fac=function(e){return z_(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[s.oc([{provide:Qb,useExisting:t}]),s.mc],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Fc(0,0)},directives:[Xb],encapsulation:2}),t})();const z_=s.Lc(L_);let B_=(()=>{class t extends l_{}return t.\u0275fac=function(e){return J_(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["mat-text-column"]],features:[s.mc],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(t,e){1&t&&(s.Hc(0,0),s.zd(1,u_,2,3,"th",1),s.zd(2,p_,2,3,"td",2),s.Gc())},directives:[x_,__,f_,C_,I_],encapsulation:2}),t})();const J_=s.Lc(B_);let V_=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[c_,vn]]}),t})();class j_ extends class{}{constructor(t=[]){super(),this._renderData=new Cb([]),this._filter=new Cb(""),this._internalPageChanges=new Pe.a,this._renderChangesSubscription=Te.a.EMPTY,this.sortingDataAccessor=(t,e)=>{const i=t[e];if(ui(i)){const t=Number(i);return t<9007199254740991?t:i}return i},this.sortData=(t,e)=>{const i=e.active,n=e.direction;return i&&""!=n?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,i),a=this.sortingDataAccessor(e,i),o=0;return null!=s&&null!=a?s>a?o=1:s{const i=Object.keys(t).reduce((e,i)=>e+t[i]+"\u25ec","").toLowerCase(),n=e.trim().toLowerCase();return-1!=i.indexOf(n)},this._data=new Cb(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){const t=this._sort?Object(xr.a)(this._sort.sortChange,this._sort.initialized):Ne(null),e=this._paginator?Object(xr.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Ne(null),i=Tp([this._data,this._filter]).pipe(Object(ii.a)(([t])=>this._filterData(t))),n=Tp([i,t]).pipe(Object(ii.a)(([t])=>this._orderData(t))),s=Tp([n,e]).pipe(Object(ii.a)(([t])=>this._pageData(t)));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=s.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=this.filter?t.filter(t=>this.filterPredicate(t,this.filter)):t,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderData}disconnect(){}}function $_(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function H_(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function U_(t,e){const i=e?"":"none";H_(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function G_(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function W_(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}const q_=Si({passive:!0}),K_=Si({passive:!1});class X_{constructor(t,e,i,n,s,a){this._config=e,this._document=i,this._ngZone=n,this._viewportRuler=s,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new Pe.a,this._pointerMoveSubscription=Te.a.EMPTY,this._pointerUpSubscription=Te.a.EMPTY,this._scrollSubscription=Te.a.EMPTY,this._resizeSubscription=Te.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Pe.a,this.started=new Pe.a,this.released=new Pe.a,this.ended=new Pe.a,this.entered=new Pe.a,this.exited=new Pe.a,this.dropped=new Pe.a,this.moved=this._moveEvents.asObservable(),this._pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{if(t.preventDefault(),!this._hasStartedDragging){const e=this._getPointerPositionOnPage(t);if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){if(!(Date.now()>=this._dragStartTime+this._getDragStartDelay(t)))return void this._endDragSequence(t);this._dropContainer&&this._dropContainer.isDragging()||(this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()));const e=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._updatePointerDirectionDelta(e),this._dropContainer)this._updateActiveDropContainer(e);else{const t=this._activeTransform;t.x=e.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=e.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:e,event:t,distance:this._getDragDistance(e),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=di(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){return this._handles=t.map(t=>gi(t)),this._handles.forEach(t=>U_(t,!1)),this._toggleNativeDragInteractions(),this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=gi(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,K_),e.addEventListener("touchstart",this._pointerDown,q_),this._initialTransform=void 0,this._rootElement=e),this}withBoundaryElement(t){return this._boundaryElement=t?gi(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&tv(this._rootElement),tv(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}enableHandle(t){this._disabledHandles.delete(t)}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}_sortFromLastPointerPosition(){const t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&tv(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&tv(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(t))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(t){if(this.started.next({source:this}),ev(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){const t=this._rootElement,i=t.parentNode,n=this._preview=this._createPreviewElement(),s=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(a,t),t.style.display="none",this._document.body.appendChild(i.replaceChild(s,t)),(e=this._document,e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body).appendChild(n),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var e}_initializeDragSequence(t,e){e.stopPropagation();const i=this.isDragging(),n=ev(e),s=!n&&0!==e.button,a=this._rootElement,o=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||o)return;this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor,a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(dn(null)).subscribe(()=>{this._scrollPosition=this._viewportRuler.getViewportScrollPosition()}),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());const r=this._previewTemplate;this._pickupPositionInElement=r&&r.template&&!r.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const l=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),a=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:s}),e.drop(this,i,this._initialContainer,a,s,this._initialIndex),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e}){let i=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!i&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(i=this._initialContainer),i&&i!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=i,this._dropContainer.enter(this,t,e,i===this._initialContainer&&i.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:i,currentIndex:i.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(t,e),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=Y_(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i){const e=t.viewContainer.createEmbeddedView(i,t.context);e.detectChanges(),n=iv(e,this._document),this._previewRef=e,t.matchSize?nv(n,this._rootElement):n.style.transform=Y_(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=Z_(t),nv(n,t)}return H_(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),U_(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=Y_(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=W_(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),a=W_(e,"transition-duration"),o=W_(e,"transition-delay");return G_(a[s])+G_(o[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=iv(this._placeholderRef,this._document)):i=Z_(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,a=ev(e)?e.targetTouches[0]:e;return{x:s.left-i.left+(a.pageX-s.left-this._scrollPosition.left),y:s.top-i.top+(a.pageY-s.top-this._scrollPosition.top)}}_getPointerPositionOnPage(t){const e=ev(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.pageX-this._scrollPosition.left,y:e.pageY-this._scrollPosition.top}}_getConstrainedPointerPosition(t){const e=this._getPointerPositionOnPage(t),i=this.constrainPosition?this.constrainPosition(e,this):e,n=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===n?i.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==n||(i.x=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,n=this._boundaryRect,s=this._previewRect,a=n.top+e,o=n.bottom-(s.height-e);i.x=Q_(i.x,n.left+t,n.right-(s.width-t)),i.y=Q_(i.y,a,o)}return i}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-s.x),o=Math.abs(i-s.y);return a>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,U_(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,K_),t.removeEventListener("touchstart",this._pointerDown,q_)}_applyRootElementTransform(t,e){const i=Y_(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,a=n.right-i.right,o=i.top-n.top,r=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),a>0&&(t-=a)):t=0,i.height>n.height?(o>0&&(e+=o),r>0&&(e-=r)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:ev(t)?e.touch:e?e.mouse:0}}function Y_(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function Z_(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.querySelectorAll("canvas");e.removeAttribute("id");for(let s=0;s!0,this.beforeStarted=new Pe.a,this.entered=new Pe.a,this.exited=new Pe.a,this.dropped=new Pe.a,this.sorted=new Pe.a,this._isDragging=!1,this._itemPositions=[],this._parentPositions=new Map,this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Te.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Pe.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=qe){return(!jr(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=qe),new si.a(i=>(i.add(e.schedule($_,t,{subscriber:i,counter:0,period:t})),i))}(0,Ir).pipe(Gr(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?uv(t,-2):2===this._verticalScrollDirection&&uv(t,2),1===this._horizontalScrollDirection?pv(t,-2):2===this._horizontalScrollDirection&&pv(t,2)})},this.element=gi(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){const t=gi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(t=>t._startReceiving(this)),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}enter(t,e,i,n){let s;this.start(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const a=this._activeDraggables,o=a.indexOf(t),r=t.getPlaceholderElement();let l=a[s];if(l===t&&(l=a[s+1]),o>-1&&a.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(r,e),a.splice(s,0,t)}else gi(this.element).appendChild(r),a.push(t);r.style.transform="",this._cacheItemPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,a){this._reset(),null==a&&(a=i.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:a,container:this,previousContainer:i,isPointerOverContainer:n,distance:s})}withItems(t){return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&this._cacheItems(),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=gi(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getItemIndex(t){return this._isDragging?cv("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!lv(this._clientRect,e,i))return;const s=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===a&&s.length>0)return;const o="horizontal"===this._orientation,r=cv(s,e=>e.drag===t),l=s[a],c=s[r].clientRect,d=l.clientRect,h=r>a?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=o?n.x:n.y;const u=this._getItemOffsetPx(c,d,h),p=this._getSiblingOffsetPx(r,s,h),m=s.slice();sv(s,r,a),this.sorted.next({previousIndex:r,currentIndex:a,container:this,item:t}),s.forEach((e,i)=>{if(m[i]===e)return;const n=e.drag===t,s=n?u:p,a=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,o?(a.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,rv(e.clientRect,0,s)):(a.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,rv(e.clientRect,s,0))})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.forEach((a,o)=>{o!==this._document&&a.clientRect&&!i&&lv(a.clientRect,t,e)&&([n,s]=function(t,e,i,n){const s=mv(e,n),a=gv(e,i);let o=0,r=0;if(s){const e=t.scrollTop;1===s?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(a){const e=t.scrollLeft;1===a?e>0&&(r=1):t.scrollWidth-e>t.clientWidth&&(r=2)}return[o,r]}(o,a.clientRect,t,e),(n||s)&&(i=o))}),!n&&!s){const{width:a,height:o}=this._viewportRuler.getViewportSize(),r={width:a,height:o,top:0,right:a,bottom:o,left:0};n=mv(r,e),s=gv(r,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_cacheParentPositions(){this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach(t=>{const e=hv(t);t===this.element&&(this._clientRect=e),this._parentPositions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:e})})}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,clientRect:hv(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=gi(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>t.getRootElement().style.transform=""),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,a=e[t+-1*i];let o=s[n?"width":"height"]*i;if(a){const t=n?"left":"top",e=n?"right":"bottom";-1===i?o-=a.clientRect[t]-s[e]:o+=s[t]-a.clientRect[e]}return o}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation;return cv(this._itemPositions,({drag:a,clientRect:o},r,l)=>{if(a===t)return l.length<2;if(n){const t=s?n.x:n.y;if(a===this._previousSwap.drag&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(o.left)&&e<=Math.floor(o.right):i>=Math.floor(o.top)&&i<=Math.floor(o.bottom)})}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_updateAfterScroll(t,e,i){const n=t===this._document?t.documentElement:t,s=this._parentPositions.get(t).scrollPosition,a=s.top-e,o=s.left-i;this._parentPositions.forEach((e,i)=>{e.clientRect&&t!==i&&n.contains(i)&&rv(e.clientRect,a,o)}),this._itemPositions.forEach(({clientRect:t})=>{rv(t,a,o)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}),s.top=e,s.left=i}_isOverContainer(t,e){return dv(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(n=>n._canReceive(t,e,i))}_canReceive(t,e,i){if(!dv(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=gi(this.element);return n===s||s.contains(n)}_startReceiving(t){const e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=t.target;if(this._parentPositions.get(e)){let t,i;if(e===this._document){const e=this._viewportRuler.getViewportScrollPosition();t=e.top,i=e.left}else t=e.scrollTop,i=e.scrollLeft;this._updateAfterScroll(e,t,i)}}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Di(gi(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}function rv(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function lv(t,e,i){const{top:n,right:s,bottom:a,left:o,width:r,height:l}=t,c=.05*r,d=.05*l;return i>n-d&&io-c&&e=n&&i<=s&&e>=a&&e<=o}function hv(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function uv(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function pv(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function mv(t,e){const{top:i,bottom:n,height:s}=t,a=.05*s;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}function gv(t,e){const{left:i,right:n,width:s}=t,a=.05*s;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}const fv=Si({passive:!1,capture:!0});let bv=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new Pe.a,this.pointerUp=new Pe.a,this.scroll=new Pe.a,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.size&&t.preventDefault()},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventDefaultWhileDragging,fv)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,fv)}startDragging(t,e){if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){const t=e.type.startsWith("touch"),i=t?"touchend":"mouseup";this._globalListeners.set(t?"touchmove":"mousemove",{handler:t=>this.pointerMove.next(t),options:fv}).set(i,{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:fv}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances.has(t)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.I),s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(s.I),Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})();const _v={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let vv=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=_v){return new X_(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new ov(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(ve.e),s.Sc(s.I),s.Sc(pl),s.Sc(bv))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(ve.e),Object(s.Sc)(s.I),Object(s.Sc)(pl),Object(s.Sc)(bv))},token:t,providedIn:"root"}),t})();const yv=new s.x("CDK_DRAG_PARENT");let wv=(()=>{class t{constructor(t,e){this.element=t,this._stateChanges=new Pe.a,this._disabled=!1,this._parentDrag=e,U_(t.nativeElement,!1)}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yv,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),t})(),xv=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),t})(),kv=(()=>{class t{constructor(t){this.templateRef=t,this._matchSize=!1}get matchSize(){return this._matchSize}set matchSize(t){this._matchSize=di(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),t})();const Cv=new s.x("CDK_DRAG_CONFIG"),Sv=new s.x("CDK_DROP_LIST");let Iv=(()=>{class t{constructor(t,e,i,n,a,o,r,l,c){this.element=t,this.dropContainer=e,this._document=i,this._ngZone=n,this._viewContainerRef=a,this._dir=r,this._changeDetectorRef=c,this._destroyed=new Pe.a,this.started=new s.u,this.released=new s.u,this.ended=new s.u,this.entered=new s.u,this.exited=new s.u,this.dropped=new s.u,this.moved=new si.a(t=>{const e=this._dragRef.moved.pipe(Object(ii.a)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:o&&null!=o.dragStartThreshold?o.dragStartThreshold:5,pointerDirectionChangeThreshold:o&&null!=o.pointerDirectionChangeThreshold?o.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,o&&this._assignDefaults(o),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=di(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.asObservable().pipe(ri(1),Gr(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(dn(this._handles),Ve(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._dragRef.withHandles(e)}),Xr(t=>Object(xr.a)(...t.map(t=>t._stateChanges.pipe(dn(t))))),Gr(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?Dv(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error("cdkDrag must be attached to an element node. "+`Currently attached to "${e.nodeName}".`);this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return Dv(this.element.nativeElement,t);const e=gi(t);if(Object(s.jb)()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:hi(i),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s),e&&t.withDirection(e.value)}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:a,draggingDisabled:o,rootElementSelector:r}=t;this.disabled=null!=o&&o,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),a&&(this.boundaryElement=a),r&&(this.rootElementSelector=r)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(Sv,12),s.Dc(ve.e),s.Dc(s.I),s.Dc(s.cb),s.Dc(Cv,8),s.Dc(nn,8),s.Dc(vv),s.Dc(s.j))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,kv,!0),s.vc(i,xv,!0),s.vc(i,wv,!0)),2&t&&(s.md(n=s.Xc())&&(e._previewTemplate=n.first),s.md(n=s.Xc())&&(e._placeholderTemplate=n.first),s.md(n=s.Xc())&&(e._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&s.tc("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[s.oc([{provide:yv,useExisting:t}]),s.nc]}),t})();function Dv(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let Ev=(()=>{class t{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=di(t)}ngOnDestroy(){this._items.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),t})(),Ov=0,Av=(()=>{class t{constructor(e,i,n,a,o,r,l){this.element=e,this._changeDetectorRef=n,this._dir=a,this._group=o,this._scrollDispatcher=r,this._destroyed=new Pe.a,this.connectedTo=[],this.id=`cdk-drop-list-${Ov++}`,this.enterPredicate=()=>!0,this.dropped=new s.u,this.entered=new s.u,this.exited=new s.u,this.sorted=new s.u,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),o&&o._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=di(t)}ngAfterContentInit(){if(this._scrollDispatcher){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t)}}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}start(){this._dropListRef.start()}drop(t,e,i,n){this._dropListRef.drop(t._dragRef,e,i._dropListRef,n,{x:0,y:0})}enter(t,e,i){this._dropListRef.enter(t._dragRef,e,i)}exit(t){this._dropListRef.exit(t._dragRef)}getItemIndex(t){return this._dropListRef.getItemIndex(t._dragRef)}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(dn(this._dir.value),Gr(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=pi(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=di(this.sortingDisabled),e.autoScrollDisabled=di(this.autoScrollDisabled),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:a}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=a||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(vv),s.Dc(s.j),s.Dc(nn,8),s.Dc(Ev,12),s.Dc(hl),s.Dc(Cv,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(s.Mc("id",e.id),s.tc("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[s.oc([{provide:Ev,useValue:void 0},{provide:Sv,useExisting:t}])]}),t._dropLists=[],t})(),Pv=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[vv]}),t})();class Tv{constructor(t,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),n=i.style;n.opacity="0",n.position="absolute",n.left=n.top="-999em",i.setAttribute("aria-hidden","true"),i.value=t,this._document.body.appendChild(i)}copy(){const t=this._textarea;let e=!1;try{if(t){const i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(GR){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let Rv=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new Tv(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(ve.e))},t.\u0275prov=Object(s.zc)({factory:function(){return new t(Object(s.Sc)(ve.e))},token:t,providedIn:"root"}),t})();const Mv=new s.x("CKD_COPY_TO_CLIPBOARD_CONFIG");let Fv=(()=>{class t{constructor(t,e,i){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new s.u,this._deprecatedCopied=this.copied,this._pending=new Set,i&&null!=i.attempts&&(this.attempts=i.attempts)}copy(t=this.attempts){if(t>1){let e=t;const i=this._clipboard.beginCopy(this.text);this._pending.add(i);const n=()=>{const t=i.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone?this._ngZone.runOutsideAngular(()=>setTimeout(n,1)):setTimeout(n,1)};n()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Rv),s.Dc(s.I),s.Dc(Mv,8))},t.\u0275dir=s.yc({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),t})(),Nv=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();function Lv(t){return _h(t)(this)}si.a.prototype.map=function(t,e){return Object(ii.a)(t,e)(this)},si.a.prototype.catch=Lv,si.a.prototype._catch=Lv,si.a.throw=il,si.a.throwError=il;const zv={default:{key:"default",background_color:"ghostwhite",alternate_color:"gray",css_label:"default-theme",social_theme:"material-light"},dark:{key:"dark",background_color:"#141414",alternate_color:"#695959",css_label:"dark-theme",social_theme:"material-dark"},light:{key:"light",background_color:"white",css_label:"light-theme",social_theme:"material-light"}};var Bv=i("6BPK");const Jv=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Vv(t){return function(e){return 0===t?oi():e.lift(new jv(t))}}class jv{constructor(t){if(this.total=t,this.total<0)throw new ni}call(t,e){return e.subscribe(new $v(t,this.total))}}class $v extends ze.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new Uv(t))}class Uv{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Gv(t,this.errorFactory))}}class Gv extends ze.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Wv(){return new Jv}function qv(t=null){return e=>e.lift(new Kv(t))}class Kv{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Xv(t,this.defaultValue))}}class Xv extends ze.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var Yv=i("SpAZ");function Zv(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Qe((e,i)=>t(e,i,n)):Yv.a,Vv(1),i?qv(e):Hv(()=>new Jv))}function Qv(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Qe((e,i)=>t(e,i,n)):Yv.a,ri(1),i?qv(e):Hv(()=>new Jv))}class ty{constructor(t,e,i){this.predicate=t,this.thisArg=e,this.source=i}call(t,e){return e.subscribe(new ey(t,this.predicate,this.thisArg,this.source))}}class ey extends ze.a{constructor(t,e,i,n){super(t),this.predicate=e,this.thisArg=i,this.source=n,this.index=0,this.thisArg=i||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(i){return void this.destination.error(i)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function iy(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new ny(t,e,i))}}class ny{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new sy(t,this.accumulator,this.seed,this.hasSeed))}}class sy extends ze.a{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var ay=i("mCNh");class oy{constructor(t,e){this.id=t,this.url=e}}class ry extends oy{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ly extends oy{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class cy extends oy{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class dy extends oy{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class hy extends oy{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uy extends oy{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class py extends oy{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class my extends oy{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gy extends oy{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fy{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class by{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _y{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vy{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yy{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wy{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xy{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let ky=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Ec(0,"router-outlet")},directives:function(){return[Ex]},encapsulation:2}),t})();class Cy{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Sy(t){return new Cy(t)}function Iy(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Dy(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthe.indexOf(t)>-1):t===e}function Fy(t){return Array.prototype.concat.apply([],t)}function Ny(t){return t.length>0?t[t.length-1]:null}function Ly(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function zy(t){return Object(s.Rb)(t)?t:Object(s.Sb)(t)?Object(Ss.a)(Promise.resolve(t)):Ne(t)}function By(t,e,i){return i?function(t,e){return Ry(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!$y(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children){if(!e.children[n])return!1;if(!t(e.children[n],i.children[n]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>My(t[i],e[i]))}(t.queryParams,e.queryParams)&&function t(e,i){return function e(i,n,s){if(i.segments.length>s.length)return!!$y(i.segments.slice(0,s.length),s)&&!n.hasChildren();if(i.segments.length===s.length){if(!$y(i.segments,s))return!1;for(const e in n.children){if(!i.children[e])return!1;if(!t(i.children[e],n.children[e]))return!1}return!0}{const t=s.slice(0,i.segments.length),a=s.slice(i.segments.length);return!!$y(i.segments,t)&&!!i.children.primary&&e(i.children.primary,n,a)}}(e,i,i.segments)}(t.root,e.root)}class Jy{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Sy(this.queryParams)),this._queryParamMap}toString(){return Wy.serialize(this)}}class Vy{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ly(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return qy(this)}}class jy{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Sy(this.parameters)),this._parameterMap}toString(){return tw(this)}}function $y(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function Hy(t,e){let i=[];return Ly(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),Ly(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}class Uy{}class Gy{parse(t){const e=new aw(t);return new Jy(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,i){if(!e.hasChildren())return qy(e);if(i){const i=e.children.primary?t(e.children.primary,!1):"",n=[];return Ly(e.children,(e,i)=>{"primary"!==i&&n.push(`${i}:${t(e,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=Hy(e,(i,n)=>"primary"===n?[t(e.children.primary,!1)]:[`${n}:${t(i,!1)}`]);return`${qy(e)}/(${i.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Xy(e)}=${Xy(t)}`).join("&"):`${Xy(e)}=${Xy(i)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Wy=new Gy;function qy(t){return t.segments.map(t=>tw(t)).join("/")}function Ky(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xy(t){return Ky(t).replace(/%3B/gi,";")}function Yy(t){return Ky(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zy(t){return decodeURIComponent(t)}function Qy(t){return Zy(t.replace(/\+/g,"%20"))}function tw(t){return`${Yy(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Yy(t)}=${Yy(e[t])}`).join("")}`;var e}const ew=/^[^\/()?;=#]+/;function iw(t){const e=t.match(ew);return e?e[0]:""}const nw=/^[^=?&#]+/,sw=/^[^?&#]+/;class aw{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vy([],{}):new Vy([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new Vy(t,e)),i}parseSegment(){const t=iw(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new jy(Zy(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=iw(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=iw(this.remaining);t&&(i=t,this.capture(i))}t[Zy(e)]=Zy(i)}parseQueryParam(t){const e=function(t){const e=t.match(nw);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(sw);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Qy(e),s=Qy(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=iw(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const a=this.parseChildren();e[s]=1===Object.keys(a).length?a.primary:new Vy([],a),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class ow{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=rw(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=rw(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=lw(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return lw(t,this._root).map(t=>t.value)}}function rw(t,e){if(t===e.value)return e;for(const i of e.children){const e=rw(t,i);if(e)return e}return null}function lw(t,e){if(t===e.value)return[e];for(const i of e.children){const n=lw(t,i);if(n.length)return n.unshift(e),n}return[]}class cw{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function dw(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class hw extends ow{constructor(t,e){super(t),this.snapshot=e,bw(this,t)}toString(){return this.snapshot.toString()}}function uw(t,e){const i=function(t,e){const i=new gw([],{},{},"",{},"primary",e,null,t.root,-1,{});return new fw("",new cw(i,[]))}(t,e),n=new Cb([new jy("",{})]),s=new Cb({}),a=new Cb({}),o=new Cb({}),r=new Cb(""),l=new pw(n,s,o,r,a,"primary",e,i.root);return l.snapshot=i.root,new hw(new cw(l,[]),i)}class pw{constructor(t,e,i,n,s,a,o,r){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=o,this._futureSnapshot=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(ii.a)(t=>Sy(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ii.a)(t=>Sy(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function mw(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(n))}class gw{constructor(t,e,i,n,s,a,o,r,l,c,d){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=o,this.routeConfig=r,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Sy(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Sy(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class fw extends ow{constructor(t,e){super(e),this.url=t,bw(this,e)}toString(){return _w(this._root)}}function bw(t,e){e.value._routerState=t,e.children.forEach(e=>bw(t,e))}function _w(t){const e=t.children.length>0?` { ${t.children.map(_w).join(", ")} } `:"";return`${t.value}${e}`}function vw(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Ry(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),Ry(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iRy(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||yw(t.parent,e.parent))}function ww(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function xw(t,e,i,n,s){let a={};return n&&Ly(n,(t,e)=>{a[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Jy(i.root===t?e:function t(e,i,n){const s={};return Ly(e.children,(e,a)=>{s[a]=e===i?n:t(e,i,n)}),new Vy(e.segments,s)}(i.root,t,e),a,s)}class kw{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&ww(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(n&&n!==Ny(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Cw{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Sw(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function Iw(t,e,i){if(t||(t=new Vy([],{})),0===t.segments.length&&t.hasChildren())return Dw(t,e,i);const n=function(t,e,i){let n=0,s=e;const a={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return a;const e=t.segments[s],o=Sw(i[n]),r=n0&&void 0===o)break;if(o&&r&&"object"==typeof r&&void 0===r.outlets){if(!Pw(o,r,e))return a;n+=2}else{if(!Pw(o,{},e))return a;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{null!==i&&(s[n]=Iw(t.children[n],e,i))}),Ly(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new Vy(t.segments,s)}}function Ew(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[i]=Ew(new Vy([],{}),0,t))}),e}function Aw(t){const e={};return Ly(t,(t,i)=>e[i]=`${t}`),e}function Pw(t,e,i){return t==i.path&&Ry(e,i.parameters)}class Tw{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),vw(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=dw(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),Ly(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet);if(i){const n=dw(t),s=t.value.component?i.children:e;Ly(n,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const n=dw(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new wy(t.value.snapshot))}),t.children.length&&this.forwardEvent(new vy(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(vw(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Rw(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function Rw(t){vw(t.value),t.children.forEach(Rw)}function Mw(t){return"function"==typeof t}function Fw(t){return t instanceof Jy}class Nw{constructor(t){this.segmentGroup=t||null}}class Lw{constructor(t){this.urlTree=t}}function zw(t){return new si.a(e=>e.error(new Nw(t)))}function Bw(t){return new si.a(e=>e.error(new Lw(t)))}function Jw(t){return new si.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Vw{constructor(t,e,i,n,a){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(s.G)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(ii.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(_h(t=>{if(t instanceof Lw)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Nw)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(ii.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(_h(t=>{if(t instanceof Nw)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new Vy([],{primary:t}):t;return new Jy(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Object(ii.a)(t=>new Vy([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){return function(t,e){if(0===Object.keys(t).length)return Ne({});const i=[],n=[],s={};return Ly(t,(t,a)=>{const o=e(a,t).pipe(Object(ii.a)(t=>s[a]=t));"primary"===a?i.push(o):n.push(o)}),Ne.apply(null,i.concat(n)).pipe(ln(),Zv(),Object(ii.a)(()=>s))}(i.children,(i,n)=>this.expandSegmentGroup(t,e,n,i))}expandSegment(t,e,i,n,s,a){return Ne(...i).pipe(Object(ii.a)(o=>this.expandSegmentAgainstRoute(t,e,i,o,n,s,a).pipe(_h(t=>{if(t instanceof Nw)return Ne(null);throw t}))),ln(),Qv(t=>!!t),_h((t,i)=>{if(t instanceof Jv||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,s))return Ne(new Vy([],{}));throw new Nw(e)}throw t}))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,n,s,a,o){return Uw(n)!==a?zw(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a):zw(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Bw(s):this.lineralizeSegments(i,s).pipe(Object(Sh.a)(i=>{const s=new Vy(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a){const{matched:o,consumedSegments:r,lastChild:l,positionalParamSegments:c}=jw(e,n,s);if(!o)return zw(e);const d=this.applyRedirectCommands(r,n.redirectTo,c);return n.redirectTo.startsWith("/")?Bw(d):this.lineralizeSegments(n,d).pipe(Object(Sh.a)(n=>this.expandSegment(t,e,i,n.concat(s.slice(l)),a,!1)))}matchSegmentAgainstRoute(t,e,i,n){if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(Object(ii.a)(t=>(i._loadedConfig=t,new Vy(n,{})))):Ne(new Vy(n,{}));const{matched:s,consumedSegments:a,lastChild:o}=jw(e,i,n);if(!s)return zw(e);const r=n.slice(o);return this.getChildConfig(t,i,n).pipe(Object(Sh.a)(t=>{const i=t.module,n=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some(i=>Hw(t,e,i)&&"primary"!==Uw(i))}(t,i,n)?{segmentGroup:$w(new Vy(e,function(t,e){const i={};i.primary=e;for(const n of t)""===n.path&&"primary"!==Uw(n)&&(i[Uw(n)]=new Vy([],{}));return i}(n,new Vy(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some(i=>Hw(t,e,i))}(t,i,n)?{segmentGroup:$w(new Vy(t.segments,function(t,e,i,n){const s={};for(const a of i)Hw(t,e,a)&&!n[Uw(a)]&&(s[Uw(a)]=new Vy([],{}));return Object.assign(Object.assign({},n),s)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,a,r,n);return 0===o.length&&s.hasChildren()?this.expandChildren(i,n,s).pipe(Object(ii.a)(t=>new Vy(a,t))):0===n.length&&0===o.length?Ne(new Vy(a,{})):this.expandSegment(i,s,n,o,"primary",!0).pipe(Object(ii.a)(t=>new Vy(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Ne(new Ey(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ne(e._loadedConfig):function(t,e,i){const n=e.canLoad;return n&&0!==n.length?Object(Ss.a)(n).pipe(Object(ii.a)(n=>{const s=t.get(n);let a;if(function(t){return t&&Mw(t.canLoad)}(s))a=s.canLoad(e,i);else{if(!Mw(s))throw new Error("Invalid CanLoad guard");a=s(e,i)}return zy(a)})).pipe(ln(),(s=t=>!0===t,t=>t.lift(new ty(s,void 0,t)))):Ne(!0);var s}(t.injector,e,i).pipe(Object(Sh.a)(i=>i?this.configLoader.load(t.injector,e).pipe(Object(ii.a)(t=>(e._loadedConfig=t,t))):function(t){return new si.a(e=>e.error(Iy(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Ne(new Ey([],t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Ne(i);if(n.numberOfChildren>1||!n.children.primary)return Jw(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new Jy(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Ly(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let a={};return Ly(e.children,(e,s)=>{a[s]=this.createSegmentGroup(t,e,i,n)}),new Vy(s,a)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function jw(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const n=(e.matcher||Dy)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function $w(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Vy(t.segments.concat(e.segments),e.children)}return t}function Hw(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function Uw(t){return t.outlet||"primary"}class Gw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ww{constructor(t,e){this.component=t,this.route=e}}function qw(t,e,i){const n=t._root;return function t(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const o=dw(i);return e.children.forEach(e=>{!function(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,r=i?i.value:null,l=n?n.getContext(e.value.outlet):null;if(r&&o.routeConfig===r.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!$y(t.url,e.url);case"pathParamsOrQueryParamsChange":return!$y(t.url,e.url)||!Ry(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yw(t,e)||!Ry(t.queryParams,e.queryParams);case"paramsChange":default:return!yw(t,e)}}(r,o,o.routeConfig.runGuardsAndResolvers);c?a.canActivateChecks.push(new Gw(s)):(o.data=r.data,o._resolvedData=r._resolvedData),t(e,i,o.component?l?l.children:null:n,s,a),c&&a.canDeactivateChecks.push(new Ww(l&&l.outlet&&l.outlet.component||null,r))}else r&&Xw(i,l,a),a.canActivateChecks.push(new Gw(s)),t(e,null,o.component?l?l.children:null:n,s,a)}(e,o[e.value.outlet],n,s.concat([e.value]),a),delete o[e.value.outlet]}),Ly(o,(t,e)=>Xw(t,n.getContext(e),a)),a}(n,e?e._root:null,i,[n.value])}function Kw(t,e,i){const n=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(n?n.module.injector:i).get(t)}function Xw(t,e,i){const n=dw(t),s=t.value;Ly(n,(t,n)=>{Xw(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Ww(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const Yw=Symbol("INITIAL_VALUE");function Zw(){return Xr(t=>Tp(...t.map(t=>t.pipe(ri(1),dn(Yw)))).pipe(iy((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==Yw)return t;if(n===Yw&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||Fw(n))return n}return t},t)},Yw),Qe(t=>t!==Yw),Object(ii.a)(t=>Fw(t)?t:!0===t),ri(1)))}function Qw(t,e){return null!==t&&e&&e(new yy(t)),Ne(!0)}function tx(t,e){return null!==t&&e&&e(new _y(t)),Ne(!0)}function ex(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Ne(n.map(n=>wr(()=>{const s=Kw(n,e,i);let a;if(function(t){return t&&Mw(t.canActivate)}(s))a=zy(s.canActivate(e,t));else{if(!Mw(s))throw new Error("Invalid CanActivate guard");a=zy(s(e,t))}return a.pipe(Qv())}))).pipe(Zw()):Ne(!0)}function ix(t,e,i){const n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>wr(()=>Ne(e.guards.map(s=>{const a=Kw(s,e.node,i);let o;if(function(t){return t&&Mw(t.canActivateChild)}(a))o=zy(a.canActivateChild(n,t));else{if(!Mw(a))throw new Error("Invalid CanActivateChild guard");o=zy(a(n,t))}return o.pipe(Qv())})).pipe(Zw())));return Ne(s).pipe(Zw())}class nx{}class sx{constructor(t,e,i,n,s,a){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a}recognize(){try{const t=rx(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new gw([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new cw(i,e),s=new fw(this.url,n);return this.inheritParamsAndData(s._root),Ne(s)}catch(t){return new si.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,i=mw(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=Hy(e,(e,i)=>this.processSegmentGroup(t,e,i));return function(t){const e={};t.forEach(t=>{const i=e[t.value.outlet];if(i){const e=i.url.map(t=>t.toString()).join("/"),n=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${n}'.`)}e[t.value.outlet]=t.value})}(i),i.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,i,n){for(const a of t)try{return this.processSegmentAgainstRoute(a,e,i,n)}catch(s){if(!(s instanceof nx))throw s}if(this.noLeftoversInUrl(e,i,n))return[];throw new nx}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo)throw new nx;if((t.outlet||"primary")!==n)throw new nx;let s,a=[],o=[];if("**"===t.path){const a=i.length>0?Ny(i).parameters:{};s=new gw(i,a,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dx(t),n,t.component,t,ax(e),ox(e)+i.length,hx(t))}else{const r=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new nx;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||Dy)(i,t,e);if(!n)throw new nx;const s={};Ly(n.posParams,(t,e)=>{s[e]=t.path});const a=n.consumed.length>0?Object.assign(Object.assign({},s),n.consumed[n.consumed.length-1].parameters):s;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:a}}(e,t,i);a=r.consumedSegments,o=i.slice(r.lastChild),s=new gw(a,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dx(t),n,t.component,t,ax(e),ox(e)+a.length,hx(t))}const r=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=rx(e,a,o,r,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(r,l);return[new cw(s,t)]}if(0===r.length&&0===c.length)return[new cw(s,[])];const d=this.processSegment(r,l,c,"primary");return[new cw(s,d)]}}function ax(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function ox(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function rx(t,e,i,n,s){if(i.length>0&&function(t,e,i){return i.some(i=>lx(t,e,i)&&"primary"!==cx(i))}(t,i,n)){const s=new Vy(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const a of i)if(""===a.path&&"primary"!==cx(a)){const i=new Vy([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[cx(a)]=i}return s}(t,e,n,new Vy(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>lx(t,e,i))}(t,i,n)){const a=new Vy(t.segments,function(t,e,i,n,s,a){const o={};for(const r of n)if(lx(t,i,r)&&!s[cx(r)]){const i=new Vy([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===a?t.segments.length:e.length,o[cx(r)]=i}return Object.assign(Object.assign({},s),o)}(t,e,i,n,t.children,s));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}const a=new Vy(t.segments,t.children);return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}function lx(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function cx(t){return t.outlet||"primary"}function dx(t){return t.data||{}}function hx(t){return t.resolve||{}}function ux(t,e,i,n){const s=Kw(t,e,n);return zy(s.resolve?s.resolve(e,i):s(e,i))}function px(t){return function(e){return e.pipe(Xr(e=>{const i=t(e);return i?Object(Ss.a)(i).pipe(Object(ii.a)(()=>e)):Object(Ss.a)([e])}))}}class mx{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const gx=new s.x("ROUTES");class fx{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(ii.a)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new Ey(Fy(n.injector.get(gx)).map(Ty),n)}))}loadModuleFactory(t){return"string"==typeof t?Object(Ss.a)(this.loader.load(t)):zy(t()).pipe(Object(Sh.a)(t=>t instanceof s.E?Ne(t):Object(Ss.a)(this.compiler.compileModuleAsync(t))))}}class bx{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function _x(t){throw t}function vx(t,e,i){return e.parse("/")}function yx(t,e){return Ne(null)}let wx=(()=>{class t{constructor(t,e,i,n,a,o,r,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Pe.a,this.errorHandler=_x,this.malformedUriErrorHandler=vx,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:yx,afterPreactivation:yx},this.urlHandlingStrategy=new bx,this.routeReuseStrategy=new mx,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(s.G),this.console=a.get(s.nb);const c=a.get(s.I);this.isNgZoneEnabled=c instanceof s.I,this.resetConfig(l),this.currentUrlTree=new Jy(new Vy([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new fx(o,r,t=>this.triggerEvent(new fy(t)),t=>this.triggerEvent(new by(t))),this.routerState=uw(this.currentUrlTree,this.rootComponentType),this.transitions=new Cb({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Qe(t=>0!==t.id),Object(ii.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Xr(t=>{let i=!1,n=!1;return Ne(t).pipe(Ve(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Xr(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ne(t).pipe(Xr(t=>{const i=this.transitions.getValue();return e.next(new ry(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?ai:[t]}),Xr(t=>Promise.resolve(t)),(n=this.ngModule.injector,s=this.configLoader,a=this.urlSerializer,o=this.config,function(t){return t.pipe(Xr(t=>function(t,e,i,n,s){return new Vw(t,e,i,n,s).apply()}(n,s,a,t.extractedUrl,o).pipe(Object(ii.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Ve(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return function(a){return a.pipe(Object(Sh.a)(a=>function(t,e,i,n,s="emptyOnly",a="legacy"){return new sx(t,e,i,n,s,a).recognize()}(t,e,a.urlAfterRedirects,i(a.urlAfterRedirects),n,s).pipe(Object(ii.a)(t=>Object.assign(Object.assign({},a),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ve(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Ve(t=>{const i=new hy(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,a,o;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:a,extras:o}=t,r=new ry(i,this.serializeUrl(n),s,a);e.next(r);const l=uw(n,this.rootComponentType).snapshot;return Ne(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ai}),px(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!o})}),Ve(t=>{const e=new uy(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(ii.a)(t=>Object.assign(Object.assign({},t),{guards:qw(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(i){return i.pipe(Object(Sh.a)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:o}}=i;return 0===o.length&&0===a.length?Ne(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(Ss.a)(t).pipe(Object(Sh.a)(t=>function(t,e,i,n,s){const a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return a&&0!==a.length?Ne(a.map(a=>{const o=Kw(a,e,s);let r;if(function(t){return t&&Mw(t.canDeactivate)}(o))r=zy(o.canDeactivate(t,e,i,n));else{if(!Mw(o))throw new Error("Invalid CanDeactivate guard");r=zy(o(t,e,i,n))}return r.pipe(Qv())})).pipe(Zw()):Ne(!0)}(t.component,t.route,i,e,n)),Qv(t=>!0!==t,!0))}(o,n,s,t).pipe(Object(Sh.a)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return Object(Ss.a)(e).pipe(Ih(e=>Object(Ss.a)([tx(e.route.parent,n),Qw(e.route,n),ix(t,e.path,i),ex(t,e.route,i)]).pipe(ln(),Qv(t=>!0!==t,!0))),Qv(t=>!0!==t,!0))}(n,a,t,e):Ne(i)),Object(ii.a)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Ve(t=>{if(Fw(t.guardsResult)){const e=Iy(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Ve(t=>{const e=new py(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Qe(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new cy(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),px(t=>{if(t.guards.canActivateChecks.length)return Ne(t).pipe(Ve(t=>{const e=new my(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(t){return t.pipe(Object(Sh.a)(t=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=t;return s.length?Object(Ss.a)(s).pipe(Ih(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Ne({});if(1===s.length){const a=s[0];return ux(t[a],e,i,n).pipe(Object(ii.a)(t=>({[a]:t})))}const a={};return Object(Ss.a)(s).pipe(Object(Sh.a)(s=>ux(t[s],e,i,n).pipe(Object(ii.a)(t=>(a[s]=t,t))))).pipe(Zv(),Object(ii.a)(()=>a))}(t._resolve,t,e,n).pipe(Object(ii.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),mw(t,i).resolve),null)))}(t.route,n,e,i)),function(t,e){return arguments.length>=2?function(i){return Object(ay.a)(iy(t,e),Vv(1),qv(e))(i)}:function(e){return Object(ay.a)(iy((e,i,n)=>t(e,i,n+1)),Vv(1))(e)}}((t,e)=>t),Object(ii.a)(e=>t)):Ne(t)}))}),Ve(t=>{const e=new gy(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,i}),px(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!o})}),Object(ii.a)(t=>{const e=function(t,e,i){const n=function t(e,i,n){if(n&&e.shouldReuseRoute(i.value,n.value.snapshot)){const s=n.value;s._futureSnapshot=i.value;const a=function(e,i,n){return i.children.map(i=>{for(const s of n.children)if(e.shouldReuseRoute(s.value.snapshot,i.value))return t(e,i,s);return t(e,i)})}(e,i,n);return new cw(s,a)}{const n=e.retrieve(i.value);if(n){const t=n.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(let n=0;nt(e,i));return new cw(n,a)}}var s}(t,e._root,i?i._root:void 0);return new hw(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Ve(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,a=this.routeReuseStrategy,o=t=>this.triggerEvent(t),Object(ii.a)(t=>(new Tw(a,t.targetRouterState,t.currentRouterState,o).activate(s),t))),Ve({next(){i=!0},complete(){i=!0}}),wh(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new cy(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(i),t.resolve(!1)}this.currentNavigation=null}),_h(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=Fw(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new cy(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const n=new dy(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(a){t.reject(a)}}var s;return ai}));var s,a,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const i="popstate"===t.type?"popstate":"hashchange",n=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,i,n,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Oy(t),this.config=t.map(Ty),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:a,preserveQueryParams:o,queryParamsHandling:r,preserveFragment:l}=e;Object(s.jb)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=i||this.routerState.root,d=l?this.currentUrlTree.fragment:a;let h=null;if(r)switch(r){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=n||null}else h=o?this.currentUrlTree.queryParams:n||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,i,n,s){if(0===i.length)return xw(e.root,e.root,e,n,s);const a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new kw(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return Ly(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new kw(i,e,n)}(i);if(a.toRoot())return xw(e.root,new Vy([],{}),e,n,s);const o=function(t,e,i){if(t.isAbsolute)return new Cw(e.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new Cw(i.snapshot._urlSegment,!0,0);const n=ww(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,a=i;for(;a>s;){if(a-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new Cw(n,!1,s-a)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(a,e,t),r=o.processChildren?Dw(o.segmentGroup,o.index,a.commands):Iw(o.segmentGroup,o.index,a.commands);return xw(o.segmentGroup,r,e,n,s)}(c,this.currentUrlTree,t,h,d)}navigateByUrl(t,e={skipLocationChange:!1}){Object(s.jb)()&&this.isNgZoneEnabled&&!s.I.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const i=Fw(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new ly(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,n,s){const a=this.getTransition();if(a&&"imperative"!==e&&"imperative"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(a&&"hashchange"==e&&"popstate"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(a&&"popstate"==e&&"hashchange"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,r,l;s?(o=s.resolve,r=s.reject,l=s.promise):l=new Promise((t,e)=>{o=t,r=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:o,reject:r,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,i,n){const s=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(s,"",Object.assign(Object.assign({},n),{navigationId:i}))}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){s.Vc()},t.\u0275dir=s.yc({type:t}),t})(),xx=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.jb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:Cx(this.skipLocationChange),replaceUrl:Cx(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Cx(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Cx(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(wx),s.Dc(pw),s.Tc("tabindex"),s.Dc(s.P),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),kx=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof ly&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.jb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n){if(0!==t||e||i||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:Cx(this.skipLocationChange),replaceUrl:Cx(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Cx(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Cx(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(wx),s.Dc(pw),s.Dc(ve.o))},t.\u0275dir=s.yc({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.Wc("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(s.Mc("href",e.href,s.td),s.qc("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.nc]}),t})();function Cx(t){return""===t||!!t}let Sx=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.element=e,this.renderer=i,this.link=n,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof ly&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(wx),s.Dc(s.r),s.Dc(s.P),s.Dc(xx,8),s.Dc(kx,8))},t.\u0275dir=s.yc({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,xx,!0),s.vc(i,kx,!0)),2&t&&(s.md(n=s.Xc())&&(e.links=n),s.md(n=s.Xc())&&(e.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[s.nc]}),t})();class Ix{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Dx,this.attachRef=null}}class Dx{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Ix,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Ex=(()=>{class t{constructor(t,e,i,n,a){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.u,this.deactivateEvents=new s.u,this.name=n||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new Ox(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Dx),s.Dc(s.cb),s.Dc(s.n),s.Tc("name"),s.Dc(s.j))},t.\u0275dir=s.yc({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Ox{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===pw?this.route:t===Dx?this.childContexts:this.parent.get(t,e)}}class Ax{}class Px{preload(t,e){return Ne(null)}}let Tx=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new fx(e,i,e=>t.triggerEvent(new fy(e)),e=>t.triggerEvent(new by(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Qe(t=>t instanceof ly),Ih(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.G);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return Object(Ss.a)(i).pipe(Object(rn.a)(),Object(ii.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(Sh.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(wx),s.Sc(s.F),s.Sc(s.k),s.Sc(s.y),s.Sc(Ax))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),Rx=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof ry?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ly&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof xy&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new xy(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){s.Vc()},t.\u0275dir=s.yc({type:t}),t})();const Mx=new s.x("ROUTER_CONFIGURATION"),Fx=new s.x("ROUTER_FORROOT_GUARD"),Nx=[ve.n,{provide:Uy,useClass:Gy},{provide:wx,useFactory:function(t,e,i,n,s,a,o,r={},l,c){const d=new wx(null,t,e,i,n,s,a,Fy(o));if(l&&(d.urlHandlingStrategy=l),c&&(d.routeReuseStrategy=c),r.errorHandler&&(d.errorHandler=r.errorHandler),r.malformedUriErrorHandler&&(d.malformedUriErrorHandler=r.malformedUriErrorHandler),r.enableTracing){const t=Object(ve.N)();d.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return r.onSameUrlNavigation&&(d.onSameUrlNavigation=r.onSameUrlNavigation),r.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=r.paramsInheritanceStrategy),r.urlUpdateStrategy&&(d.urlUpdateStrategy=r.urlUpdateStrategy),r.relativeLinkResolution&&(d.relativeLinkResolution=r.relativeLinkResolution),d},deps:[Uy,Dx,ve.n,s.y,s.F,s.k,gx,Mx,[class{},new s.J],[class{},new s.J]]},Dx,{provide:pw,useFactory:function(t){return t.routerState.root},deps:[wx]},{provide:s.F,useClass:s.V},Tx,Px,class{preload(t,e){return e().pipe(_h(()=>Ne(null)))}},{provide:Mx,useValue:{enableTracing:!1}}];function Lx(){return new s.H("Router",wx)}let zx=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Nx,jx(e),{provide:Fx,useFactory:Vx,deps:[[wx,new s.J,new s.U]]},{provide:Mx,useValue:i||{}},{provide:ve.o,useFactory:Jx,deps:[ve.D,[new s.w(ve.a),new s.J],Mx]},{provide:Rx,useFactory:Bx,deps:[wx,ve.H,Mx]},{provide:Ax,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Px},{provide:s.H,multi:!0,useFactory:Lx},[$x,{provide:s.d,multi:!0,useFactory:Hx,deps:[$x]},{provide:Gx,useFactory:Ux,deps:[$x]},{provide:s.b,multi:!0,useExisting:Gx}]]}}static forChild(e){return{ngModule:t,providers:[jx(e)]}}}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)(s.Sc(Fx,8),s.Sc(wx,8))}}),t})();function Bx(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Rx(t,e,i)}function Jx(t,e,i={}){return i.useHash?new ve.h(t,e):new ve.B(t,e)}function Vx(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function jx(t){return[{provide:s.a,multi:!0,useValue:t},{provide:gx,multi:!0,useValue:t}]}let $x=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Pe.a}appInitializer(){return this.injector.get(ve.m,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(wx),n=this.injector.get(Mx);if(this.isLegacyDisabled(n)||this.isLegacyEnabled(n))t(!0);else if("disabled"===n.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==n.initialNavigation)throw new Error(`Invalid initialNavigation options: '${n.initialNavigation}'`);i.hooks.afterPreactivation=()=>this.initNavigation?Ne(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Mx),i=this.injector.get(Tx),n=this.injector.get(Rx),a=this.injector.get(wx),o=this.injector.get(s.g);t===o.components[0]&&(this.isLegacyEnabled(e)?a.initialNavigation():this.isLegacyDisabled(e)&&a.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),a.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(s.Sc(s.y))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();function Hx(t){return t.appInitializer.bind(t)}function Ux(t){return t.bootstrapListener.bind(t)}const Gx=new s.x("Router Initializer");let Wx=(()=>{class t{constructor(t,e,i,n){this.http=t,this.router=e,this.document=i,this.snackBar=n,this.path="",this.audioFolder="",this.videoFolder="",this.startPath=null,this.startPathSSL=null,this.handShakeComplete=!1,this.THEMES_CONFIG=zv,this.settings_changed=new Cb(!1),this.auth_token="4241b401-7236-493e-92b5-b72696b9d853",this.session_id=null,this.httpOptions=null,this.http_params=null,this.unauthorized=!1,this.debugMode=!1,this.isLoggedIn=!1,this.token=null,this.user=null,this.permissions=null,this.available_permissions=null,this.reload_config=new Cb(!1),this.config_reloaded=new Cb(!1),this.service_initialized=new Cb(!1),this.initialized=!1,this.open_create_default_admin_dialog=new Cb(!1),this.config=null,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",Object(s.jb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/"),this.http_params=`apiKey=${this.auth_token}`,this.httpOptions={params:new Th({fromString:this.http_params})},Bv.get(t=>{this.session_id=Bv.x64hash128(t.map((function(t){return t.value})).join(),31),this.httpOptions.params=this.httpOptions.params.set("sessionID",this.session_id)});const a=window.location.href.includes("/player")||window.location.href.includes("/login");this.loadNavItems().subscribe(t=>{const e=this.debugMode?t:t.config_file;e&&(this.config=e.YoutubeDLMaterial,this.config.Advanced.multi_user_mode?localStorage.getItem("jwt_token")&&"null"!==localStorage.getItem("jwt_token")?(this.token=localStorage.getItem("jwt_token"),this.httpOptions.params=this.httpOptions.params.set("jwt",this.token),this.jwtAuth()):a?this.setInitialized():this.sendToLogin():this.setInitialized())}),this.reload_config.subscribe(t=>{t&&this.reloadConfig()})}canActivate(t,e){return new Promise(t=>{t(!0)})}setTheme(t){this.theme=this.THEMES_CONFIG[t]}startHandshake(t){return this.http.get(t+"geturl")}startHandshakeSSL(t){return this.http.get(t+"geturl")}reloadConfig(){this.loadNavItems().subscribe(t=>{const e=this.debugMode?t:t.config_file;e&&(this.config=e.YoutubeDLMaterial,this.config_reloaded.next(!0))})}getVideoFolder(){return this.http.get(this.startPath+"videofolder")}getAudioFolder(){return this.http.get(this.startPath+"audiofolder")}makeMP3(t,e,i,n=null,s=null,a=null,o=null,r=null){return this.http.post(this.path+"tomp3",{url:t,maxBitrate:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:o,ui_uid:r},this.httpOptions)}makeMP4(t,e,i,n=null,s=null,a=null,o=null,r=null){return this.http.post(this.path+"tomp4",{url:t,selectedHeight:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:o,ui_uid:r},this.httpOptions)}getFileStatusMp3(t){return this.http.post(this.path+"fileStatusMp3",{name:t},this.httpOptions)}getFileStatusMp4(t){return this.http.post(this.path+"fileStatusMp4",{name:t},this.httpOptions)}loadNavItems(){return Object(s.jb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config",this.httpOptions)}loadAsset(t){return this.http.get(`./assets/${t}`)}setConfig(t){return this.http.post(this.path+"setConfig",{new_config_file:t},this.httpOptions)}deleteFile(t,e,i=!1){return this.http.post(e?this.path+"deleteMp3":this.path+"deleteMp4",{uid:t,blacklistMode:i},this.httpOptions)}getMp3s(){return this.http.get(this.path+"getMp3s",this.httpOptions)}getMp4s(){return this.http.get(this.path+"getMp4s",this.httpOptions)}getFile(t,e,i=null){return this.http.post(this.path+"getFile",{uid:t,type:e,uuid:i},this.httpOptions)}downloadFileFromServer(t,e,i=null,n=null,s=null,a=null,o=null,r=null){return this.http.post(this.path+"downloadFile",{fileNames:t,type:e,zip_mode:Array.isArray(t),outputName:i,fullPathProvided:n,subscriptionName:s,subPlaylist:a,uuid:r,uid:o},{responseType:"blob",params:this.httpOptions.params})}uploadCookiesFile(t){return this.http.post(this.path+"uploadCookies",t,this.httpOptions)}downloadArchive(t){return this.http.post(this.path+"downloadArchive",{sub:t},{responseType:"blob",params:this.httpOptions.params})}getFileInfo(t,e,i){return this.http.post(this.path+"getVideoInfos",{fileNames:t,type:e,urlMode:i},this.httpOptions)}getLogs(t=50){return this.http.post(this.path+"logs",{lines:t},this.httpOptions)}isPinSet(){return this.http.post(this.path+"isPinSet",{},this.httpOptions)}setPin(t){return this.http.post(this.path+"setPin",{pin:t},this.httpOptions)}checkPin(t){return this.http.post(this.path+"checkPin",{input_pin:t},this.httpOptions)}generateNewAPIKey(){return this.http.post(this.path+"generateNewAPIKey",{},this.httpOptions)}enableSharing(t,e,i){return this.http.post(this.path+"enableSharing",{uid:t,type:e,is_playlist:i},this.httpOptions)}disableSharing(t,e,i){return this.http.post(this.path+"disableSharing",{uid:t,type:e,is_playlist:i},this.httpOptions)}createPlaylist(t,e,i,n){return this.http.post(this.path+"createPlaylist",{playlistName:t,fileNames:e,type:i,thumbnailURL:n},this.httpOptions)}getPlaylist(t,e,i=null){return this.http.post(this.path+"getPlaylist",{playlistID:t,type:e,uuid:i},this.httpOptions)}updatePlaylist(t){return this.http.post(this.path+"updatePlaylist",{playlist:t},this.httpOptions)}updatePlaylistFiles(t,e,i){return this.http.post(this.path+"updatePlaylistFiles",{playlistID:t,fileNames:e,type:i},this.httpOptions)}removePlaylist(t,e){return this.http.post(this.path+"deletePlaylist",{playlistID:t,type:e},this.httpOptions)}createSubscription(t,e,i=null,n=!1,s=!1,a=null,o=null){return this.http.post(this.path+"subscribe",{url:t,name:e,timerange:i,streamingOnly:n,audioOnly:s,customArgs:a,customFileOutput:o},this.httpOptions)}unsubscribe(t,e=!1){return this.http.post(this.path+"unsubscribe",{sub:t,deleteMode:e},this.httpOptions)}deleteSubscriptionFile(t,e,i,n){return this.http.post(this.path+"deleteSubscriptionFile",{sub:t,file:e,deleteForever:i,file_uid:n},this.httpOptions)}getSubscription(t){return this.http.post(this.path+"getSubscription",{id:t},this.httpOptions)}getAllSubscriptions(){return this.http.post(this.path+"getAllSubscriptions",{},this.httpOptions)}getCurrentDownloads(){return this.http.get(this.path+"downloads",this.httpOptions)}getCurrentDownload(t,e){return this.http.post(this.path+"download",{download_id:e,session_id:t},this.httpOptions)}clearDownloads(t=!1,e=null,i=null){return this.http.post(this.path+"clearDownloads",{delete_all:t,download_id:i,session_id:e||this.session_id},this.httpOptions)}updateServer(t){return this.http.post(this.path+"updateServer",{tag:t},this.httpOptions)}getUpdaterStatus(){return this.http.get(this.path+"updaterStatus",this.httpOptions)}getLatestGithubRelease(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest")}getAvailableRelease(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases")}afterLogin(t,e,i,n){this.isLoggedIn=!0,this.user=t,this.permissions=i,this.available_permissions=n,this.token=e,localStorage.setItem("jwt_token",this.token),this.httpOptions.params=this.httpOptions.params.set("jwt",this.token),this.setInitialized(),this.config_reloaded.next(!0),"/login"===this.router.url&&this.router.navigate(["/home"])}login(t,e){return this.http.post(this.path+"auth/login",{userid:t,password:e},this.httpOptions)}jwtAuth(){const t=this.http.post(this.path+"auth/jwtAuth",{},this.httpOptions);return t.subscribe(t=>{t.token&&this.afterLogin(t.user,t.token,t.permissions,t.available_permissions)},t=>{401===t.status&&this.sendToLogin(),console.log(t)}),t}logout(){this.user=null,this.permissions=null,this.isLoggedIn=!1,this.token=null,localStorage.setItem("jwt_token",null),"/login"!==this.router.url&&this.router.navigate(["/login"]),this.http_params=`apiKey=${this.auth_token}&sessionID=${this.session_id}`,this.httpOptions={params:new Th({fromString:this.http_params})}}register(t,e){return this.http.post(this.path+"auth/register",{userid:t,username:t,password:e},this.httpOptions)}sendToLogin(){this.checkAdminCreationStatus(),this.initialized||this.setInitialized(),"/login"!==this.router.url&&(this.router.navigate(["/login"]),this.openSnackBar("You must log in to access this page!"))}setInitialized(){this.service_initialized.next(!0),this.initialized=!0,this.config_reloaded.next(!0)}adminExists(){return this.http.post(this.path+"auth/adminExists",{},this.httpOptions)}createAdminAccount(t){return this.http.post(this.path+"auth/register",{userid:"admin",username:"admin",password:t},this.httpOptions)}checkAdminCreationStatus(t=!1){(t||this.config.Advanced.multi_user_mode)&&this.adminExists().subscribe(t=>{t.exists||this.open_create_default_admin_dialog.next(!0)})}changeUser(t){return this.http.post(this.path+"updateUser",{change_object:t},this.httpOptions)}deleteUser(t){return this.http.post(this.path+"deleteUser",{uid:t},this.httpOptions)}changeUserPassword(t,e){return this.http.post(this.path+"auth/changePassword",{user_uid:t,new_password:e},this.httpOptions)}getUsers(){return this.http.post(this.path+"getUsers",{},this.httpOptions)}getRoles(){return this.http.post(this.path+"getRoles",{},this.httpOptions)}setUserPermission(t,e,i){return this.http.post(this.path+"changeUserPermissions",{user_uid:t,permission:e,new_value:i},this.httpOptions)}setRolePermission(t,e,i){return this.http.post(this.path+"changeRolePermissions",{role:t,permission:e,new_value:i},this.httpOptions)}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Sc($h),s.Sc(wx),s.Sc(ve.e),s.Sc(Hg))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})();si.a.of=Ne;class qx{constructor(t){this.value=t}call(t,e){return e.subscribe(new Kx(t,this.value))}}class Kx extends ze.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function Xx(t,e,i){return Ve(t,e,i)(this)}function Yx(){return Xr(Yv.a)(this)}function Zx(t,e){if(1&t&&(s.Jc(0,"h4",5),s.Bd(1),s.Ic()),2&t){const t=s.ad();s.pc(1),s.Cd(t.dialog_title)}}function Qx(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"mat-form-field",6),s.Jc(2,"input",7),s.Wc("keyup.enter",(function(){return s.rd(t),s.ad().doAction()}))("ngModelChange",(function(e){return s.rd(t),s.ad().input=e})),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(2),s.gd("ngModel",t.input)("placeholder",t.input_placeholder)}}function tk(t,e){1&t&&(s.Jc(0,"div",8),s.Ec(1,"mat-spinner",9),s.Ic()),2&t&&(s.pc(1),s.gd("diameter",25))}si.a.prototype.mapTo=function(t){return function(t){return e=>e.lift(new qx(t))}(t)(this)},i("XypG"),si.a.fromEvent=kr,si.a.prototype.filter=function(t,e){return Qe(t,e)(this)},si.a.prototype.debounceTime=function(t,e=qe){return Ke(t,e)(this)},si.a.prototype.do=Xx,si.a.prototype._do=Xx,si.a.prototype.switch=Yx,si.a.prototype._switch=Yx;let ek=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.data=e,this.dialogRef=i,this.snackBar=n,this.pinSetChecked=!1,this.pinSet=!0,this.resetMode=!1,this.dialog_title="",this.input_placeholder=null,this.input="",this.button_label=""}ngOnInit(){this.data&&(this.resetMode=this.data.resetMode),this.resetMode?(this.pinSetChecked=!0,this.notSetLogic()):this.isPinSet()}isPinSet(){this.postsService.isPinSet().subscribe(t=>{this.pinSetChecked=!0,t.is_set?this.isSetLogic():this.notSetLogic()})}isSetLogic(){this.pinSet=!0,this.dialog_title="Pin Required",this.input_placeholder="Pin",this.button_label="Submit"}notSetLogic(){this.pinSet=!1,this.dialog_title="Set your pin",this.input_placeholder="New pin",this.button_label="Set Pin"}doAction(){this.pinSetChecked&&0!==this.input.length&&(this.pinSet?this.postsService.checkPin(this.input).subscribe(t=>{t.success?this.dialogRef.close(!0):(this.dialogRef.close(!1),this.openSnackBar("Pin is incorrect!"))}):this.postsService.setPin(this.input).subscribe(t=>{t.success?(this.dialogRef.close(!0),this.openSnackBar("Pin successfully set!")):(this.dialogRef.close(!1),this.openSnackBar("Failed to set pin!"))}))}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(pd),s.Dc(ud),s.Dc(Hg))},t.\u0275cmp=s.xc({type:t,selectors:[["app-check-or-set-pin-dialog"]],decls:8,vars:5,consts:[["mat-dialog-title","",4,"ngIf"],[2,"position","relative"],[4,"ngIf"],["class","spinner-div",4,"ngIf"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],["mat-dialog-title",""],["color","accent"],["type","password","matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],[1,"spinner-div"],[3,"diameter"]],template:function(t,e){1&t&&(s.zd(0,Zx,2,1,"h4",0),s.Jc(1,"mat-dialog-content"),s.Jc(2,"div",1),s.zd(3,Qx,3,2,"div",2),s.zd(4,tk,2,1,"div",3),s.Ic(),s.Ic(),s.Jc(5,"mat-dialog-actions"),s.Jc(6,"button",4),s.Wc("click",(function(){return e.doAction()})),s.Bd(7),s.Ic(),s.Ic()),2&t&&(s.gd("ngIf",e.pinSetChecked),s.pc(3),s.gd("ngIf",e.pinSetChecked),s.pc(1),s.gd("ngIf",!e.pinSetChecked),s.pc(2),s.gd("disabled",0===e.input.length),s.pc(1),s.Cd(e.button_label))},directives:[ve.t,wd,xd,bs,yd,Bc,Ru,Rs,Js,qa,mm],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),t})();const ik={ab:{name:"Abkhaz",nativeName:"\u0430\u04a7\u0441\u0443\u0430"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"\u12a0\u121b\u122d\u129b"},ar:{name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},an:{name:"Aragonese",nativeName:"Aragon\xe9s"},hy:{name:"Armenian",nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},as:{name:"Assamese",nativeName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",nativeName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0, \u043c\u0430\u0433\u04c0\u0430\u0440\u0443\u043b \u043c\u0430\u0446\u04c0"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"az\u0259rbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f"},bn:{name:"Bengali",nativeName:"\u09ac\u09be\u0982\u09b2\u09be"},bh:{name:"Bihari",nativeName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},my:{name:"Burmese",nativeName:"\u1017\u1019\u102c\u1005\u102c"},ca:{name:"Catalan; Valencian",nativeName:"Catal\xe0"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiChe\u0175a, chinyanja"},zh:{name:"Chinese",nativeName:"\u4e2d\u6587 (Zh\u014dngw\xe9n), \u6c49\u8bed, \u6f22\u8a9e"},cv:{name:"Chuvash",nativeName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"\u010desky, \u010de\u0161tina"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"\u078b\u07a8\u0788\u07ac\u0780\u07a8"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"E\u028begbe"},fo:{name:"Faroese",nativeName:"f\xf8royskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"fran\xe7ais, langue fran\xe7aise"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek, Modern",nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},gn:{name:"Guaran\xed",nativeName:"Ava\xf1e\u1ebd"},gu:{name:"Gujarati",nativeName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},ht:{name:"Haitian; Haitian Creole",nativeName:"Krey\xf2l ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, \u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew (modern)",nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940, \u0939\u093f\u0902\u0926\u0940"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"As\u1ee5s\u1ee5 Igbo"},ik:{name:"Inupiaq",nativeName:"I\xf1upiaq, I\xf1upiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"\xcdslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",nativeName:"\u65e5\u672c\u8a9e (\u306b\u307b\u3093\u3054\uff0f\u306b\u3063\u307d\u3093\u3054)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut, Greenlandic",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940, \u0643\u0634\u0645\u064a\u0631\u064a\u200e"},kk:{name:"Kazakh",nativeName:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},km:{name:"Khmer",nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a"},ki:{name:"Kikuyu, Gikuyu",nativeName:"G\u0129k\u0169y\u0169"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz, Kyrgyz",nativeName:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438"},kv:{name:"Komi",nativeName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"\ud55c\uad6d\uc5b4 (\u97d3\u570b\u8a9e), \uc870\uc120\ub9d0 (\u671d\u9bae\u8a9e)"},ku:{name:"Kurdish",nativeName:"Kurd\xee, \u0643\u0648\u0631\u062f\u06cc\u200e"},kj:{name:"Kwanyama, Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish, Letzeburgesch",nativeName:"L\xebtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish, Limburgan, Limburger",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Ling\xe1la"},lo:{name:"Lao",nativeName:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7"},lt:{name:"Lithuanian",nativeName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latvie\u0161u valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},ml:{name:"Malayalam",nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"M\u0101ori",nativeName:"te reo M\u0101ori"},mr:{name:"Marathi (Mar\u0101\u1e6dh\u012b)",nativeName:"\u092e\u0930\u093e\u0920\u0940"},mh:{name:"Marshallese",nativeName:"Kajin M\u0327aje\u013c"},mn:{name:"Mongolian",nativeName:"\u043c\u043e\u043d\u0433\u043e\u043b"},na:{name:"Nauru",nativeName:"Ekakair\u0169 Naoero"},nv:{name:"Navajo, Navaho",nativeName:"Din\xe9 bizaad, Din\xe9k\u02bceh\u01f0\xed"},nb:{name:"Norwegian Bokm\xe5l",nativeName:"Norsk bokm\xe5l"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"\ua188\ua320\ua4bf Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe, Ojibwa",nativeName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},cu:{name:"Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic",nativeName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian, Ossetic",nativeName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi, Punjabi",nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40, \u067e\u0646\u062c\u0627\u0628\u06cc\u200e"},pi:{name:"P\u0101li",nativeName:"\u092a\u093e\u0934\u093f"},fa:{name:"Persian",nativeName:"\u0641\u0627\u0631\u0633\u06cc"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto, Pushto",nativeName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",nativeName:"Portugu\xeas"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian, Moldavian, Moldovan",nativeName:"rom\xe2n\u0103"},ru:{name:"Russian",nativeName:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a"},sa:{name:"Sanskrit (Sa\u1e41sk\u1e5bta)",nativeName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"\u0938\u093f\u0928\u094d\u0927\u0940, \u0633\u0646\u068c\u064a\u060c \u0633\u0646\u062f\u06be\u06cc\u200e"},se:{name:"Northern Sami",nativeName:"Davvis\xe1megiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},sr:{name:"Serbian",nativeName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"G\xe0idhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala, Sinhalese",nativeName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",nativeName:"sloven\u010dina"},sl:{name:"Slovene",nativeName:"sloven\u0161\u010dina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"espa\xf1ol"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",nativeName:"\u0442\u043e\u04b7\u0438\u043a\u04e3, to\u011fik\u012b, \u062a\u0627\u062c\u06cc\u06a9\u06cc\u200e"},th:{name:"Thai",nativeName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",nativeName:"\u1275\u130d\u122d\u129b"},bo:{name:"Tibetan Standard, Tibetan, Central",nativeName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},tk:{name:"Turkmen",nativeName:"T\xfcrkmen, \u0422\u04af\u0440\u043a\u043c\u0435\u043d"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, \u170f\u1712\u1703\u1705\u1714 \u1706\u1704\u170e\u1713\u1704\u1714"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430, tatar\xe7a, \u062a\u0627\u062a\u0627\u0631\u0686\u0627\u200e"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur, Uyghur",nativeName:"Uy\u01a3urq\u0259, \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",nativeName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",nativeName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",nativeName:"zbek, \u040e\u0437\u0431\u0435\u043a, \u0623\u06c7\u0632\u0628\u06d0\u0643\u200e"},ve:{name:"Venda",nativeName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",nativeName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",nativeName:"Volap\xfck"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",nativeName:"Yor\xf9b\xe1"},za:{name:"Zhuang, Chuang",nativeName:"Sa\u026f cue\u014b\u0185, Saw cuengh"}},nk={uncategorized:{label:"Main"},network:{label:"Network"},geo_restriction:{label:"Geo Restriction"},video_selection:{label:"Video Selection"},download:{label:"Download"},filesystem:{label:"Filesystem"},thumbnail:{label:"Thumbnail"},verbosity:{label:"Verbosity"},workarounds:{label:"Workarounds"},video_format:{label:"Video Format"},subtitle:{label:"Subtitle"},authentication:{label:"Authentication"},adobe_pass:{label:"Adobe Pass"},post_processing:{label:"Post Processing"}},sk={uncategorized:[{key:"-h",alt:"--help",description:"Print this help text and exit"},{key:"--version",description:"Print program version and exit"},{key:"-U",alt:"--update",description:"Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)"},{key:"-i",alt:"--ignore-errors",description:"Continue on download errors, for example to skip unavailable videos in a playlist"},{key:"--abort-on-error",description:"Abort downloading of further videos (in the playlist or the command line) if an error occurs"},{key:"--dump-user-agent",description:"Display the current browser identification"},{key:"--list-extractors",description:"List all supported extractors"},{key:"--extractor-descriptions",description:"Output descriptions of all supported extractors"},{key:"--force-generic-extractor",description:"Force extraction to use the generic extractor"},{key:"--default-search",description:'Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube-dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit awarning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching.'},{key:"--ignore-config",description:"Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)"},{key:"--config-location",description:"Location of the configuration file; either the path to the config or its containing directory."},{key:"--flat-playlist",description:"Do not extract the videos of a playlist, only list them."},{key:"--mark-watched",description:"Mark videos watched (YouTube only)"},{key:"--no-mark-watched",description:"Do not mark videos watched (YouTube only)"},{key:"--no-color",description:"Do not emit color codes in output"}],network:[{key:"--proxy",description:'Use the specified HTTP/HTTPS/SOCKS proxy.To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection.'},{key:"--socket-timeout",description:"Time to wait before giving up, in seconds"},{key:"--source-address",description:"Client-side IP address to bind to"},{key:"-4",alt:"--force-ipv4",description:"Make all connections via IPv4"},{key:"-6",alt:"--force-ipv6",description:"Make all connections via IPv6"}],geo_restriction:[{key:"--geo-verification-proxy",description:"Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy', if the option is not present) is used for the actual downloading."},{key:"--geo-bypass",description:"Bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--no-geo-bypass",description:"Do not bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--geo-bypass-country",description:"Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code"},{key:"--geo-bypass-ip-block",description:"Force bypass geographic restriction with explicitly provided IP block in CIDR notation"}],video_selection:[{key:"--playlist-start",description:"Playlist video to start at (default is 1)"},{key:"--playlist-end",description:"Playlist video to end at (default is last)"},{key:"--playlist-items",description:'Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.'},{key:"--match-title",description:"Download only matching titles (regex orcaseless sub-string)"},{key:"--reject-title",description:"Skip download for matching titles (regex orcaseless sub-string)"},{key:"--max-downloads",description:"Abort after downloading NUMBER files"},{key:"--min-filesize",description:"Do not download any videos smaller than SIZE (e.g. 50k or 44.6m)"},{key:"--max-filesize",description:"Do not download any videos larger than SIZE (e.g. 50k or 44.6m)"},{key:"--date",description:"Download only videos uploaded in this date"},{key:"--datebefore",description:"Download only videos uploaded on or before this date (i.e. inclusive)"},{key:"--dateafter",description:"Download only videos uploaded on or after this date (i.e. inclusive)"},{key:"--min-views",description:"Do not download any videos with less than COUNT views"},{key:"--max-views",description:"Do not download any videos with more than COUNT views"},{key:"--match-filter",description:'Generic video filter. Specify any key (seethe "OUTPUT TEMPLATE" for a list of available keys) to match if the key is present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=, =) to compare against a number, key = \'LITERAL\' (like "uploader = \'Mike Smith\'", also works with !=) to match against a string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than 50 times (or the dislike functionality is not available at the given service), but who also have a description, use --match-filter'},{key:"--no-playlist",description:"Download only the video, if the URL refers to a video and a playlist."},{key:"--yes-playlist",description:"Download the playlist, if the URL refers to a video and a playlist."},{key:"--age-limit",description:"Download only videos suitable for the given age"},{key:"--download-archive",description:"Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it."},{key:"--include-ads",description:"Download advertisements as well (experimental)"}],download:[{key:"-r",alt:"--limit-rate",description:"Maximum download rate in bytes per second(e.g. 50K or 4.2M)"},{key:"-R",alt:"--retries",description:'Number of retries (default is 10), or "infinite".'},{key:"--fragment-retries",description:'Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM)'},{key:"--skip-unavailable-fragments",description:"Skip unavailable fragments (DASH, hlsnative and ISM)"},{key:"--abort-on-unavailable-fragment",description:"Abort downloading when some fragment is not available"},{key:"--keep-fragments",description:"Keep downloaded fragments on disk after downloading is finished; fragments are erased by default"},{key:"--buffer-size",description:"Size of download buffer (e.g. 1024 or 16K) (default is 1024)"},{key:"--no-resize-buffer",description:"Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE."},{key:"--http-chunk-size",description:"Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)"},{key:"--playlist-reverse",description:"Download playlist videos in reverse order"},{key:"--playlist-random",description:"Download playlist videos in random order"},{key:"--xattr-set-filesize",description:"Set file xattribute ytdl.filesize with expected file size"},{key:"--hls-prefer-native",description:"Use the native HLS downloader instead of ffmpeg"},{key:"--hls-prefer-ffmpeg",description:"Use ffmpeg instead of the native HLS downloader"},{key:"--hls-use-mpegts",description:"Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play it)"},{key:"--external-downloader",description:"Use the specified external downloader. Currently supports aria2c,avconv,axel,curl,ffmpeg,httpie,wget"},{key:"--external-downloader-args"}],filesystem:[{key:"-a",alt:"--batch-file",description:"File containing URLs to download ('-' for stdin), one URL per line. Lines starting with '#', ';' or ']' are considered as comments and ignored."},{key:"--id",description:"Use only video ID in file name"},{key:"-o",alt:"--output",description:'Output filename template, see the "OUTPUT TEMPLATE" for all the info'},{key:"--autonumber-start",description:"Specify the start value for %(autonumber)s (default is 1)"},{key:"--restrict-filenames",description:'Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames'},{key:"-w",alt:"--no-overwrites",description:"Do not overwrite files"},{key:"-c",alt:"--continue",description:"Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible."},{key:"--no-continue",description:"Do not resume partially downloaded files (restart from beginning)"},{key:"--no-part",description:"Do not use .part files - write directlyinto output file"},{key:"--no-mtime",description:"Do not use the Last-modified header to set the file modification time"},{key:"--write-description",description:"Write video description to a .description file"},{key:"--write-info-json",description:"Write video metadata to a .info.json file"},{key:"--write-annotations",description:"Write video annotations to a.annotations.xml file"},{key:"--load-info-json",description:'JSON file containing the video information (created with the "--write-info-json" option)'},{key:"--cookies",description:"File to read cookies from and dump cookie jar in"},{key:"--cache-dir",description:"Location in the file system where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are cached, but that may change."},{key:"--no-cache-dir",description:"Disable filesystem caching"},{key:"--rm-cache-dir",description:"Delete all filesystem cache files"}],thumbnail:[{key:"--write-thumbnail",description:"Write thumbnail image to disk"},{key:"--write-all-thumbnails",description:"Write all thumbnail image formats to disk"},{key:"--list-thumbnails",description:"Simulate and list all available thumbnail formats"}],verbosity:[{key:"-q",alt:"--quiet",description:"Activate quiet mode"},{key:"--no-warnings",description:"Ignore warnings"},{key:"-s",alt:"--simulate",description:"Do not download the video and do not writeanything to disk"},{key:"--skip-download",description:"Do not download the video"},{key:"-g",alt:"--get-url",description:"Simulate, quiet but print URL"},{key:"-e",alt:"--get-title",description:"Simulate, quiet but print title"},{key:"--get-id",description:"Simulate, quiet but print id"},{key:"--get-thumbnail",description:"Simulate, quiet but print thumbnail URL"},{key:"--get-description",description:"Simulate, quiet but print video description"},{key:"--get-duration",description:"Simulate, quiet but print video length"},{key:"--get-filename",description:"Simulate, quiet but print output filename"},{key:"--get-format",description:"Simulate, quiet but print output format"},{key:"-j",alt:"--dump-json",description:'Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys.'},{key:"-J",alt:"--dump-single-json",description:"Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line."},{key:"--print-json",description:"Be quiet and print the video information as JSON (video is still being downloaded)."},{key:"--newline",description:"Output progress bar as new lines"},{key:"--no-progress",description:"Do not print progress bar"},{key:"--console-title",description:"Display progress in console title bar"},{key:"-v",alt:"--verbose",description:"Print various debugging information"},{key:"--dump-pages",description:"Print downloaded pages encoded using base64 to debug problems (very verbose)"},{key:"--write-pages",description:"Write downloaded intermediary pages to files in the current directory to debug problems"},{key:"--print-traffic",description:"Display sent and read HTTP traffic"},{key:"-C",alt:"--call-home",description:"Contact the youtube-dl server for debugging"},{key:"--no-call-home",description:"Do NOT contact the youtube-dl server for debugging"}],workarounds:[{key:"--encoding",description:"Force the specified encoding (experimental)"},{key:"--no-check-certificate",description:"Suppress HTTPS certificate validation"},{key:"--prefer-insecure",description:"Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube)"},{key:"--user-agent",description:"Specify a custom user agent"},{key:"--referer",description:"Specify a custom referer, use if the video access is restricted to one domain"},{key:"--add-header",description:"Specify a custom HTTP header and its value, separated by a colon ':'. You can use this option multiple times"},{key:"--bidi-workaround",description:"Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH"},{key:"--sleep-interval",description:"Number of seconds to sleep before each download when used alone or a lower boundof a range for randomized sleep before each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval"},{key:"--max-sleep-interval",description:"Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only beused along with --min-sleep-interval"}],video_format:[{key:"-f",alt:"--format",description:'Video format code, see the "FORMAT SELECTION" for all the info'},{key:"--all-formats",description:"Download all available video formats"},{key:"--prefer-free-formats",description:"Prefer free video formats unless a specific one is requested"},{key:"-F",alt:"--list-formats",description:"List all available formats of requested videos"},{key:"--youtube-skip-dash-manifest",description:"Do not download the DASH manifests and related data on YouTube videos"},{key:"--merge-output-format",description:"If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required"}],subtitle:[{key:"--write-sub",description:"Write subtitle file"},{key:"--write-auto-sub",description:"Write automatically generated subtitle file (YouTube only)"},{key:"--all-subs",description:"Download all the available subtitles of the video"},{key:"--list-subs",description:"List all available subtitles for the video"},{key:"--sub-format",description:'Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"'},{key:"--sub-lang",description:"Languages of the subtitles to download (optional) separated by commas, use --list-subs"}],authentication:[{key:"-u",alt:"--username",description:"Login with this account ID"},{key:"-p",alt:"--password",description:"Account password. If this option is left out, youtube-dl will ask interactively."},{key:"-2",alt:"--twofactor",description:"Two-factor authentication code"},{key:"-n",alt:"--netrc",description:"Use .netrc authentication data"},{key:"--video-password",description:"Video password (vimeo, smotri, youku)"}],adobe_pass:[{key:"--ap-mso",description:"Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso"},{key:"--ap-username",description:"Multiple-system operator account login"},{key:"--ap-password",description:"Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively."},{key:"--ap-list-mso",description:"List all supported multiple-system operators"}],post_processing:[{key:"-x",alt:"--extract-audio",description:"Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)"},{key:"--audio-format",description:'Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without -x'},{key:"--audio-quality",description:"Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse)for VBR or a specific bitrate like 128K (default 5)"},{key:"--recode-video",description:"Encode the video to another format if necessary (currently supported:mp4|flv|ogg|webm|mkv|avi)"},{key:"--postprocessor-args",description:"Give these arguments to the postprocessor"},{key:"-k",alt:"--keep-video",description:"Keep the video file on disk after the post-processing; the video is erased by default"},{key:"--no-post-overwrites",description:"Do not overwrite post-processed files; the post-processed files are overwritten by default"},{key:"--embed-subs",description:"Embed subtitles in the video (only for mp4,webm and mkv videos)"},{key:"--embed-thumbnail",description:"Embed thumbnail in the audio as cover art"},{key:"--add-metadata",description:"Write metadata to the video file"},{key:"--metadata-from-title",description:"Parse additional metadata like song title/artist from the video title. The format syntax is the same as --output"},{key:"--xattrs",description:"Write metadata to the video file's xattrs (using dublin core and xdg standards)"},{key:"--fixup",description:"Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix file if we can, warn otherwise)"},{key:"--prefer-avconv",description:"Prefer avconv over ffmpeg for running the postprocessors"},{key:"--prefer-ffmpeg",description:"Prefer ffmpeg over avconv for running the postprocessors (default)"},{key:"--ffmpeg-location",description:"Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory."},{key:"--exec",description:"Execute a command on the file after downloading, similar to find's -exec syntax. Example: --exec"},{key:"--convert-subs",description:"Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)"}]},ak=["*"];class ok{constructor(t){this._elementRef=t}}const rk=kn(wn(xn(yn(ok)),"primary"),-1);let lk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),t})(),ck=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.yc({type:t,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),t})(),dk=(()=>{class t extends rk{constructor(t,e,i,n,a,o,r,l){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=o,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._selected=!1,this._selectable=!0,this._removable=!0,this._onFocus=new Pe.a,this._onBlur=new Pe.a,this.selectionChange=new s.u,this.destroyed=new s.u,this.removed=new s.u,this._addHostClassName(),this._chipRippleTarget=(l||document).createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new Wn(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===a,this.tabIndex=null!=r&&parseInt(r)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=di(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=di(t)}get removable(){return this._removable}set removable(t){this._removable=di(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.asObservable().pipe(ri(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}_markForCheck(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(_i),s.Dc(qn,8),s.Dc(Ee,8),s.Dc(s.j),s.Tc("tabindex"),s.Dc(ve.e,8))},t.\u0275dir=s.yc({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){var n;1&t&&(s.vc(i,lk,!0),s.vc(i,ck,!0),s.vc(i,hk,!0)),2&t&&(s.md(n=s.Xc())&&(e.avatar=n.first),s.md(n=s.Xc())&&(e.trailingIcon=n.first),s.md(n=s.Xc())&&(e.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&s.Wc("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(s.qc("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),s.tc("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[s.mc]}),t})(),hk=(()=>{class t{constructor(t,e){this._parentChip=t,e&&"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}_handleClick(t){const e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(dk),s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&s.Wc("click",(function(t){return e._handleClick(t)}))}}),t})();const uk=new s.x("mat-chips-default-options");class pk{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const mk=Cn(pk);let gk=0;class fk{constructor(t,e){this.source=t,this.value=e}}let bk=(()=>{class t extends mk{constructor(t,e,i,n,a,o,r){super(o,n,a,r),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new Pe.a,this._uid=`mat-chip-list-${gk++}`,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new s.u,this.valueChange=new s.u,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=di(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=di(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=di(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=di(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Object(xr.a)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Object(xr.a)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Object(xr.a)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Object(xr.a)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new Bi(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Gr(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Gr(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(dn(null),Gr(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new ws(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(36===t.keyCode?(this._keyManager.setFirstItemActive(),t.preventDefault()):35===t.keyCode?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new fk(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t.disabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.j),s.Dc(nn,8),s.Dc(Ja,8),s.Dc(to,8),s.Dc(Bn),s.Dc(zs,10))},t.\u0275cmp=s.xc({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,dk,!0),2&t&&s.md(n=s.Xc())&&(e.chips=n)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&s.Wc("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(s.Mc("id",e._uid),s.qc("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),s.tc("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[s.oc([{provide:Ic,useExisting:t}]),s.mc],ngContentSelectors:ak,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0),s.ed(1),s.Ic())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),_k=0,vk=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new s.u,this.placeholder="",this.id=`mat-chip-list-input-${_k++}`,this._disabled=!1,this._inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=di(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=di(t)}get empty(){return!this._inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}_keydown(t){t&&9===t.keyCode&&!Le(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this._inputElement.focus(t)}_isSeparatorKey(t){if(Le(t))return!1;const e=this.separatorKeyCodes,i=t.keyCode;return Array.isArray(e)?e.indexOf(i)>-1:e.has(i)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(uk))},t.\u0275dir=s.yc({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&s.Wc("keydown",(function(t){return e._keydown(t)}))("blur",(function(){return e._blur()}))("focus",(function(){return e._focus()}))("input",(function(){return e._onInput()})),2&t&&(s.Mc("id",e.id),s.qc("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[s.nc]}),t})();const yk={separatorKeyCodes:[13]};let wk=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Bn,{provide:uk,useValue:yk}]}),t})();const xk=["chipper"];var kk,Ck,Sk,Ik,Dk,Ek,Ok,Ak;function Pk(t,e){1&t&&(s.Jc(0,"mat-icon",27),s.Bd(1,"cancel"),s.Ic())}function Tk(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-chip",25),s.Wc("removed",(function(){s.rd(t);const i=e.index;return s.ad().remove(i)})),s.Bd(1),s.zd(2,Pk,2,0,"mat-icon",26),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad();s.gd("matTooltip",i.argsByKey[t]?i.argsByKey[t].description:null)("selectable",i.selectable)("removable",i.removable),s.pc(1),s.Dd(" ",t," "),s.pc(1),s.gd("ngIf",i.removable)}}function Rk(t,e){if(1&t&&(s.Jc(0,"mat-option",28),s.Ec(1,"span",29),s.bd(2,"highlight"),s.Jc(3,"button",30),s.Jc(4,"mat-icon"),s.Bd(5,"info"),s.Ic(),s.Ic(),s.Ic()),2&t){const t=e.$implicit,i=s.ad();s.gd("value",t.key),s.pc(1),s.gd("innerHTML",s.dd(2,3,t.key,i.chipCtrl.value),s.sd),s.pc(2),s.gd("matTooltip",t.description)}}function Mk(t,e){if(1&t&&(s.Jc(0,"mat-option",28),s.Ec(1,"span",29),s.bd(2,"highlight"),s.Jc(3,"button",30),s.Jc(4,"mat-icon"),s.Bd(5,"info"),s.Ic(),s.Ic(),s.Ic()),2&t){const t=e.$implicit,i=s.ad();s.gd("value",t.key),s.pc(1),s.gd("innerHTML",s.dd(2,3,t.key,i.stateCtrl.value),s.sd),s.pc(2),s.gd("matTooltip",t.description)}}function Fk(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",34),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad(2).setFirstArg(i.key)})),s.Jc(1,"div",35),s.Bd(2),s.Ic(),s.Bd(3,"\xa0\xa0"),s.Jc(4,"div",36),s.Jc(5,"mat-icon",37),s.Bd(6,"info"),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit;s.pc(2),s.Cd(t.key),s.pc(3),s.gd("matTooltip",t.description)}}function Nk(t,e){if(1&t&&(s.Hc(0),s.Jc(1,"button",31),s.Bd(2),s.Ic(),s.Jc(3,"mat-menu",null,32),s.zd(5,Fk,7,2,"button",33),s.Ic(),s.Gc()),2&t){const t=e.$implicit,i=s.nd(4),n=s.ad();s.pc(1),s.gd("matMenuTriggerFor",i),s.pc(1),s.Cd(n.argsInfo[t.key].label),s.pc(3),s.gd("ngForOf",t.value)}}kk=$localize`:Modify args title␟d9e83ac17026e70ef6e9c0f3240a3b2450367f40␟3653857180335075556:Modify youtube-dl args`,Ck=$localize`:Simulated args title␟7fc1946abe2b40f60059c6cd19975d677095fd19␟3319938540903314395:Simulated new args`,Sk=$localize`:Add arg card title␟0b71824ae71972f236039bed43f8d2323e8fd570␟7066397187762906016:Add an arg`,Ik=$localize`:Search args by category button␟c8b0e59eb491f2ac7505f0fbab747062e6b32b23␟827176536271704947:Search by category`,Dk=$localize`:Use arg value checkbox␟9eeb91caef5a50256dd87e1c4b7b3e8216479377␟5487374754798278253:Use arg value`,Ek=$localize`:Search args by category button␟7de2451ed3fb8d8b847979bd3f0c740b970f167b␟1014075402717090995:Add arg`,Ok=$localize`:Arg modifier cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,Ak=$localize`:Arg modifier modify button␟b2623aee44b70c9a4ba1fce16c8a593b0a4c7974␟3251759404563225821:Modify`;const Lk=["placeholder",$localize`:Arg value placeholder␟25d8ad5eba2ec24e68295a27d6a4bb9b49e3dacd␟9086775160067017111:Arg value`],zk=function(){return{standalone:!0}};function Bk(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"mat-form-field",14),s.Jc(2,"input",38),s.Pc(3,Lk),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().secondArg=e})),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(2),s.gd("ngModelOptions",s.id(3,zk))("disabled",!t.secondArgEnabled)("ngModel",t.secondArg)}}let Jk=(()=>{class t{transform(t,e){const i=e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").split(" ").filter(t=>t.length>0).join("|"):void 0,n=new RegExp(i,"gi");return e?t.replace(n,t=>`${t}`):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Cc({name:"highlight",type:t,pure:!0}),t})(),Vk=(()=>{class t{constructor(t,e,i){this.data=t,this.dialogRef=e,this.dialog=i,this.myGroup=new Fa,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new Fa,this.chipCtrl=new Fa,this.availableArgs=null,this.argsByCategory=null,this.argsByKey=null,this.argsInfo=null,this.chipInput="",this.visible=!0,this.selectable=!0,this.removable=!0,this.addOnBlur=!1,this.args_array=null,this.separatorKeysCodes=[13,188]}static forRoot(){return{ngModule:t,providers:[]}}ngOnInit(){this.data&&(this.modified_args=this.data.initial_args,this.generateArgsArray()),this.getAllPossibleArgs(),this.filteredOptions=this.stateCtrl.valueChanges.pipe(dn(""),Object(ii.a)(t=>this.filter(t))),this.filteredChipOptions=this.chipCtrl.valueChanges.pipe(dn(""),Object(ii.a)(t=>this.filter(t)))}ngAfterViewInit(){this.autoTrigger.panelClosingActions.subscribe(t=>{this.autoTrigger.activeOption&&(console.log(this.autoTrigger.activeOption.value),this.chipCtrl.setValue(this.autoTrigger.activeOption.value))})}filter(t){if(this.availableArgs)return this.availableArgs.filter(e=>e.key.toLowerCase().includes(t.toLowerCase()))}addArg(){this.modified_args||(this.modified_args=""),""!==this.modified_args&&(this.modified_args+=",,"),this.modified_args+=this.stateCtrl.value+(this.secondArgEnabled?",,"+this.secondArg:""),this.generateArgsArray()}canAddArg(){return this.stateCtrl.value&&""!==this.stateCtrl.value&&(!this.secondArgEnabled||this.secondArg&&""!==this.secondArg)}getFirstArg(){return new Promise(t=>{t(this.stateCtrl.value)})}getValueAsync(t){return new Promise(e=>{e(t)})}getAllPossibleArgs(){const t=sk,e=Object.keys(t).map((function(e){return t[e]})),i=[].concat.apply([],e),n=i.reduce((t,e)=>(t[e.key]=e,t),{});this.argsByKey=n,this.availableArgs=i,this.argsByCategory=t,this.argsInfo=nk}setFirstArg(t){this.stateCtrl.setValue(t)}add(t){const e=t.input,i=t.value;i&&0!==i.trim().length&&(this.args_array.push(i),this.modified_args.length>0&&(this.modified_args+=",,"),this.modified_args+=i,e&&(e.value=""))}remove(t){this.args_array.splice(t,1),this.modified_args=this.args_array.join(",,")}generateArgsArray(){this.args_array=0!==this.modified_args.trim().length?this.modified_args.split(",,"):[]}drop(t){sv(this.args_array,t.previousIndex,t.currentIndex),this.modified_args=this.args_array.join(",,")}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(pd),s.Dc(ud),s.Dc(bd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-arg-modifier-dialog"]],viewQuery:function(t,e){var i;1&t&&s.Fd(xk,!0,sd),2&t&&s.md(i=s.Xc())&&(e.autoTrigger=i.first)},features:[s.oc([Jk])],decls:55,vars:25,consts:[["mat-dialog-title",""],[1,"container"],[1,"row"],[1,"col-12"],[1,"mat-elevation-z6"],["aria-label","Args array","cdkDropList","","cdkDropListDisabled","","cdkDropListOrientation","horizontal",1,"example-chip",3,"cdkDropListDropped"],["chipList",""],["cdkDrag","",3,"matTooltip","selectable","removable","removed",4,"ngFor","ngForOf"],["color","accent",2,"width","100%"],["matInput","",2,"width","100%",3,"formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["chipper",""],["autochip","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-elevation-z6","my-2"],["color","accent",2,"width","75%"],["matInput","","placeholder","Arg",3,"matAutocomplete","formControl"],["auto","matAutocomplete"],["argsByCategoryMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-stroked-button","",2,"margin-bottom","15px",3,"matMenuTriggerFor"],["color","accent",3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngIf"],["mat-stroked-button","","color","accent",3,"disabled","click"],["mat-button","",3,"mat-dialog-close"],["mat-button","","color","accent",3,"mat-dialog-close"],["cdkDrag","",3,"matTooltip","selectable","removable","removed"],["matChipRemove","",4,"ngIf"],["matChipRemove",""],[3,"value"],[3,"innerHTML"],["mat-icon-button","",2,"float","right",3,"matTooltip"],["mat-menu-item","",3,"matMenuTriggerFor"],["subMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[2,"display","inline-block"],[1,"info-menu-icon"],[3,"matTooltip"],["matInput","",3,"ngModelOptions","disabled","ngModel","ngModelChange",6,"placeholder"]],template:function(t,e){if(1&t&&(s.Jc(0,"h4",0),s.Nc(1,kk),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div",1),s.Jc(4,"div",2),s.Jc(5,"div",3),s.Jc(6,"mat-card",4),s.Jc(7,"h6"),s.Nc(8,Ck),s.Ic(),s.Jc(9,"mat-chip-list",5,6),s.Wc("cdkDropListDropped",(function(t){return e.drop(t)})),s.zd(11,Tk,3,5,"mat-chip",7),s.Ic(),s.Jc(12,"mat-form-field",8),s.Jc(13,"input",9,10),s.Wc("matChipInputTokenEnd",(function(t){return e.add(t)})),s.Ic(),s.Ic(),s.Jc(15,"mat-autocomplete",null,11),s.zd(17,Rk,6,6,"mat-option",12),s.bd(18,"async"),s.Ic(),s.Ic(),s.Ic(),s.Jc(19,"div",3),s.Jc(20,"mat-card",13),s.Jc(21,"h6"),s.Nc(22,Sk),s.Ic(),s.Jc(23,"form"),s.Jc(24,"div"),s.Jc(25,"mat-form-field",14),s.Ec(26,"input",15),s.Ic(),s.Jc(27,"mat-autocomplete",null,16),s.zd(29,Mk,6,6,"mat-option",12),s.bd(30,"async"),s.Ic(),s.Jc(31,"div"),s.Jc(32,"mat-menu",null,17),s.zd(34,Nk,6,3,"ng-container",18),s.bd(35,"keyvalue"),s.Ic(),s.Jc(36,"button",19),s.Hc(37),s.Nc(38,Ik),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(39,"div"),s.Jc(40,"mat-checkbox",20),s.Wc("ngModelChange",(function(t){return e.secondArgEnabled=t})),s.Hc(41),s.Nc(42,Dk),s.Gc(),s.Ic(),s.Ic(),s.zd(43,Bk,4,4,"div",21),s.Ic(),s.Jc(44,"div"),s.Jc(45,"button",22),s.Wc("click",(function(){return e.addArg()})),s.Hc(46),s.Nc(47,Ek),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(48,"mat-dialog-actions"),s.Jc(49,"button",23),s.Hc(50),s.Nc(51,Ok),s.Gc(),s.Ic(),s.Jc(52,"button",24),s.Hc(53),s.Nc(54,Ak),s.Gc(),s.Ic(),s.Ic()),2&t){const t=s.nd(10),i=s.nd(16),n=s.nd(28),a=s.nd(33);s.pc(11),s.gd("ngForOf",e.args_array),s.pc(2),s.gd("formControl",e.chipCtrl)("matAutocomplete",i)("matChipInputFor",t)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur),s.pc(4),s.gd("ngForOf",s.cd(18,18,e.filteredChipOptions)),s.pc(9),s.gd("matAutocomplete",n)("formControl",e.stateCtrl),s.pc(3),s.gd("ngForOf",s.cd(30,20,e.filteredOptions)),s.pc(5),s.gd("ngForOf",s.cd(35,22,e.argsByCategory)),s.pc(2),s.gd("matMenuTriggerFor",a),s.pc(4),s.gd("ngModelOptions",s.id(24,zk))("ngModel",e.secondArgEnabled),s.pc(3),s.gd("ngIf",e.secondArgEnabled),s.pc(2),s.gd("disabled",!e.canAddArg()),s.pc(4),s.gd("mat-dialog-close",null),s.pc(3),s.gd("mat-dialog-close",e.modified_args)}},directives:[yd,wd,er,bk,Av,ve.s,Bc,Ru,Rs,sd,vk,Js,Za,Qc,Ka,Vs,Ja,Cp,bs,Ep,gr,qa,ve.t,xd,vd,dk,Iv,Kp,vu,hk,rs,_p],pipes:[ve.b,ve.l,Jk],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),t})();const jk=["fileSelector"];function $k(t,e){if(1&t&&(s.Jc(0,"div",8),s.Bd(1),s.Ic()),2&t){const t=s.ad(2);s.pc(1),s.Cd(t.dropZoneLabel)}}function Hk(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"input",9),s.Wc("click",(function(e){return s.rd(t),s.ad(2).openFileSelector(e)})),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(1),s.hd("value",t.browseBtnLabel),s.gd("className",t.browseBtnClassName)}}function Uk(t,e){if(1&t&&(s.zd(0,$k,2,1,"div",6),s.zd(1,Hk,2,2,"div",7)),2&t){const t=s.ad();s.gd("ngIf",t.dropZoneLabel),s.pc(1),s.gd("ngIf",t.showBrowseBtn)}}function Gk(t,e){}const Wk=function(t){return{openFileSelector:t}};class qk{constructor(t,e){this.relativePath=t,this.fileEntry=e}}let Kk=(()=>{let t=class{constructor(t){this.template=t}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.Y))},t.\u0275dir=s.yc({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]}),t})();var Xk=function(t,e,i,n){var s,a=arguments.length,o=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(o=(a<3?s(o):a>3?s(e,i,o):s(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},Yk=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};let Zk=(()=>{let t=class{constructor(t,e){this.zone=t,this.renderer=e,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new s.u,this.onFileOver=new s.u,this.onFileLeave=new s.u,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=t=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",t=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",t=>{this.globalDraggingInProgress=!1})}get disabled(){return this._disabled}set disabled(t){this._disabled=null!=t&&"false"!==`${t}`}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(t){this.useDragEnter?this.preventAndStop(t):this.isDropzoneDisabled()||this.useDragEnter||(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(t)),this.preventAndStop(t))}onDragEnter(t){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(t)),this.preventAndStop(t))}onDragLeave(t){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(t)),this.preventAndStop(t))}dropFiles(t){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,t.dataTransfer)){let e;t.dataTransfer.dropEffect="copy",e=t.dataTransfer.items?t.dataTransfer.items:t.dataTransfer.files,this.preventAndStop(t),this.checkFiles(e)}}uploadFiles(t){!this.isDropzoneDisabled()&&t.target&&(this.checkFiles(t.target.files||[]),this.resetFileInput())}checkFiles(t){for(let e=0;e{t(i)}},e=new qk(t.name,t);this.addToQueue(e)}}this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=$r(200,200).subscribe(()=>{if(this.files.length>0&&0===this.numOfActiveReadEntries){const t=this.files;this.files=[],this.onFileDrop.emit(t)}})}traverseFileTree(t,e){if(t.isFile){const i=new qk(e,t);this.files.push(i)}else{e+="/";const i=t.createReader();let n=[];const s=()=>{this.numOfActiveReadEntries++,i.readEntries(i=>{if(i.length)n=n.concat(i),s();else if(0===n.length){const i=new qk(e,t);this.zone.run(()=>{this.addToQueue(i)})}else for(let t=0;t{this.traverseFileTree(n[t],e+n[t].name)});this.numOfActiveReadEntries--})};s()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const t=this.fileSelector.nativeElement,e=t.parentElement,i=this.getHelperFormElement(),n=this.getFileInputPlaceholderElement();e!==i&&(this.renderer.insertBefore(e,n,t),this.renderer.appendChild(i,t),i.reset(),this.renderer.insertBefore(e,t,n),this.renderer.removeChild(e,n))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}canGetAsEntry(t){return!!t.webkitGetAsEntry}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(t){this.files.push(t)}preventAndStop(t){t.stopPropagation(),t.preventDefault()}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.I),s.Dc(s.P))},t.\u0275cmp=s.xc({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,Kk,!0,s.Y),2&t&&s.md(n=s.Xc())&&(e.contentTemplate=n.first)},viewQuery:function(t,e){var i;1&t&&s.xd(jk,!0),2&t&&s.md(i=s.Xc())&&(e.fileSelector=i.first)},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[[3,"className","drop","dragover","dragenter","dragleave"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"accept","multiple","change"],["fileSelector",""],["defaultContentTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"className","value","click"]],template:function(t,e){if(1&t&&(s.Jc(0,"div",0),s.Wc("drop",(function(t){return e.dropFiles(t)}))("dragover",(function(t){return e.onDragOver(t)}))("dragenter",(function(t){return e.onDragEnter(t)}))("dragleave",(function(t){return e.onDragLeave(t)})),s.Jc(1,"div",1),s.Jc(2,"input",2,3),s.Wc("change",(function(t){return e.uploadFiles(t)})),s.Ic(),s.zd(4,Uk,2,2,"ng-template",null,4,s.Ad),s.zd(6,Gk,0,0,"ng-template",5),s.Ic(),s.Ic()),2&t){const t=s.nd(5);s.tc("ngx-file-drop__drop-zone--over",e.isDraggingOverDropZone),s.gd("className",e.dropZoneClassName),s.pc(1),s.gd("className",e.contentClassName),s.pc(1),s.gd("accept",e.accept)("multiple",e.multiple),s.qc("directory",e.directory||void 0)("webkitdirectory",e.directory||void 0)("mozdirectory",e.directory||void 0)("msdirectory",e.directory||void 0)("odirectory",e.directory||void 0),s.pc(4),s.gd("ngTemplateOutlet",e.contentTemplate||t)("ngTemplateOutletContext",s.jd(13,Wk,e.openFileSelector))}},directives:[ve.A,ve.t],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{height:100px;margin:auto;border:2px dotted #0782d0;border-radius:30px}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:rgba(147,147,147,.5)}.ngx-file-drop__content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100px;color:#0782d0}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]}),Xk([Object(s.z)(),Yk("design:type",String)],t.prototype,"accept",void 0),Xk([Object(s.z)(),Yk("design:type",Boolean)],t.prototype,"directory",void 0),Xk([Object(s.z)(),Yk("design:type",Boolean)],t.prototype,"multiple",void 0),Xk([Object(s.z)(),Yk("design:type",String)],t.prototype,"dropZoneLabel",void 0),Xk([Object(s.z)(),Yk("design:type",String)],t.prototype,"dropZoneClassName",void 0),Xk([Object(s.z)(),Yk("design:type",Boolean)],t.prototype,"useDragEnter",void 0),Xk([Object(s.z)(),Yk("design:type",String)],t.prototype,"contentClassName",void 0),Xk([Object(s.z)(),Yk("design:type",Boolean),Yk("design:paramtypes",[Boolean])],t.prototype,"disabled",null),Xk([Object(s.z)(),Yk("design:type",Boolean)],t.prototype,"showBrowseBtn",void 0),Xk([Object(s.z)(),Yk("design:type",String)],t.prototype,"browseBtnClassName",void 0),Xk([Object(s.z)(),Yk("design:type",String)],t.prototype,"browseBtnLabel",void 0),Xk([Object(s.K)(),Yk("design:type",s.u)],t.prototype,"onFileDrop",void 0),Xk([Object(s.K)(),Yk("design:type",s.u)],t.prototype,"onFileOver",void 0),Xk([Object(s.K)(),Yk("design:type",s.u)],t.prototype,"onFileLeave",void 0),Xk([Object(s.p)(Kk,{read:s.Y}),Yk("design:type",s.Y)],t.prototype,"contentTemplate",void 0),Xk([Object(s.bb)("fileSelector",{static:!0}),Yk("design:type",s.r)],t.prototype,"fileSelector",void 0),t=Xk([Yk("design:paramtypes",[s.I,s.P])],t),t})(),Qk=(()=>{let t=class{};return t.\u0275mod=s.Bc({type:t,bootstrap:function(){return[Zk]}}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[],imports:[[ve.c]]}),t})();var tC,eC,iC,nC;function sC(t,e){1&t&&(s.Jc(0,"div"),s.Jc(1,"div"),s.Hc(2),s.Nc(3,nC),s.Gc(),s.Ic(),s.Jc(4,"div",11),s.Jc(5,"button",12),s.Wc("click",(function(){return(0,e.openFileSelector)()})),s.Bd(6,"Browse Files"),s.Ic(),s.Ic(),s.Ic())}function aC(t,e){1&t&&s.Ec(0,"mat-spinner",16),2&t&&s.gd("diameter",38)}function oC(t,e){if(1&t){const t=s.Kc();s.Jc(0,"tr"),s.Jc(1,"td",13),s.Jc(2,"strong"),s.Bd(3),s.Ic(),s.Ic(),s.Jc(4,"td"),s.Jc(5,"button",14),s.Wc("click",(function(){return s.rd(t),s.ad().uploadFile()})),s.Jc(6,"mat-icon"),s.Bd(7,"publish"),s.Ic(),s.zd(8,aC,1,1,"mat-spinner",15),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad();s.pc(3),s.Cd(t.relativePath),s.pc(2),s.gd("disabled",i.uploading||i.uploaded),s.pc(3),s.gd("ngIf",i.uploading)}}tC=$localize`:Cookies uploader dialog title␟ebadf946ae90f13ecd0c70f09edbc0f983af8a0f␟3873596794856864418:Upload new cookies`,eC=$localize`:Cookies upload warning␟85e0725c870b28458fd3bbba905397d890f00a69␟8128925538914530324:NOTE: Uploading new cookies will overrride your previous cookies. Also note that cookies are instance-wide, not per-user.`,iC=$localize`:Close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,nC=$localize`:Drag and Drop␟98a8a42e5efffe17ab786636ed0139b4c7032d0e␟5214302308131956174:Drag and Drop`;let rC=(()=>{class t{constructor(t){this.postsService=t,this.files=[],this.uploading=!1,this.uploaded=!1}ngOnInit(){}dropped(t){this.files=t,this.uploading=!1,this.uploaded=!1}uploadFile(){this.uploading=!0;for(const t of this.files)t.fileEntry.isFile&&t.fileEntry.file(e=>{const i=new FormData;i.append("cookies",e,t.relativePath),this.postsService.uploadCookiesFile(i).subscribe(t=>{this.uploading=!1,t.success&&(this.uploaded=!0,this.postsService.openSnackBar("Cookies successfully uploaded!"))},t=>{this.uploading=!1})})}fileOver(t){}fileLeave(t){}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-cookies-uploader-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"center"],["accept",".txt","dropZoneLabel","Drop files here",3,"multiple","onFileDrop","onFileOver","onFileLeave"],["ngx-file-drop-content-tmp",""],[2,"margin-top","15px"],[2,"font-size","14px"],[2,"margin-top","10px"],[1,"table"],[1,"upload-name-style"],[4,"ngFor","ngForOf"],["mat-dialog-close","","mat-stroked-button","",2,"margin-bottom","5px"],[2,"margin-top","6px"],["mat-stroked-button","",3,"click"],[2,"vertical-align","middle"],["matTooltip","Upload","mat-mini-fab","",2,"float","right",3,"disabled","click"],["class","spinner",3,"diameter",4,"ngIf"],[1,"spinner",3,"diameter"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Nc(1,tC),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div"),s.Jc(4,"div",1),s.Jc(5,"ngx-file-drop",2),s.Wc("onFileDrop",(function(t){return e.dropped(t)}))("onFileOver",(function(t){return e.fileOver(t)}))("onFileLeave",(function(t){return e.fileLeave(t)})),s.zd(6,sC,7,0,"ng-template",3),s.Ic(),s.Jc(7,"div",4),s.Jc(8,"p",5),s.Nc(9,eC),s.Ic(),s.Ic(),s.Jc(10,"div",6),s.Jc(11,"table",7),s.Jc(12,"tbody",8),s.zd(13,oC,9,3,"tr",9),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(14,"mat-dialog-actions"),s.Jc(15,"button",10),s.Hc(16),s.Nc(17,iC),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.pc(5),s.gd("multiple",!1),s.pc(8),s.gd("ngForOf",e.files))},directives:[yd,wd,Zk,Kk,ve.s,xd,bs,vd,Kp,vu,ve.t,mm],styles:[".spinner[_ngcontent-%COMP%]{bottom:1px;left:.5px;position:absolute}"]}),t})();var lC,cC;function dC(t,e){1&t&&(s.Jc(0,"h6"),s.Bd(1,"Update in progress"),s.Ic())}function hC(t,e){1&t&&(s.Jc(0,"h6"),s.Bd(1,"Update failed"),s.Ic())}function uC(t,e){1&t&&(s.Jc(0,"h6"),s.Bd(1,"Update succeeded!"),s.Ic())}function pC(t,e){1&t&&s.Ec(0,"mat-progress-bar",7)}function mC(t,e){1&t&&s.Ec(0,"mat-progress-bar",8)}function gC(t,e){if(1&t&&(s.Jc(0,"p",9),s.Bd(1),s.Ic()),2&t){const t=s.ad(2);s.pc(1),s.Cd(t.updateStatus.details)}}function fC(t,e){if(1&t&&(s.Jc(0,"div"),s.Jc(1,"div",3),s.zd(2,dC,2,0,"h6",1),s.zd(3,hC,2,0,"h6",1),s.zd(4,uC,2,0,"h6",1),s.Ic(),s.zd(5,pC,1,0,"mat-progress-bar",4),s.zd(6,mC,1,0,"mat-progress-bar",5),s.zd(7,gC,2,1,"p",6),s.Ic()),2&t){const t=s.ad();s.pc(2),s.gd("ngIf",t.updateStatus.updating),s.pc(1),s.gd("ngIf",!t.updateStatus.updating&&t.updateStatus.error),s.pc(1),s.gd("ngIf",!t.updateStatus.updating&&!t.updateStatus.error),s.pc(1),s.gd("ngIf",t.updateStatus.updating),s.pc(1),s.gd("ngIf",!t.updateStatus.updating),s.pc(1),s.gd("ngIf",t.updateStatus.details)}}lC=$localize`:Update progress dialog title␟91ecce65f1d23f9419d1c953cd6b7bc7f91c110e␟7113575027620819093:Updater`,cC=$localize`:Close update progress dialog␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let bC=(()=>{class t{constructor(t,e){this.postsService=t,this.snackBar=e,this.updateStatus=null,this.updateInterval=250,this.errored=!1}ngOnInit(){this.getUpdateProgress(),setInterval(()=>{this.updateStatus.updating&&this.getUpdateProgress()},250)}getUpdateProgress(){this.postsService.getUpdaterStatus().subscribe(t=>{t&&(this.updateStatus=t,this.updateStatus&&this.updateStatus.error&&this.openSnackBar("Update failed. Check logs for more details."))})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg))},t.\u0275cmp=s.xc({type:t,selectors:[["app-update-progress-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-button","","mat-dialog-close",""],[2,"margin-bottom","8px"],["mode","indeterminate",4,"ngIf"],["mode","determinate","value","100",4,"ngIf"],["style","margin-top: 4px; font-size: 13px;",4,"ngIf"],["mode","indeterminate"],["mode","determinate","value","100"],[2,"margin-top","4px","font-size","13px"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Nc(1,lC),s.Ic(),s.Jc(2,"mat-dialog-content"),s.zd(3,fC,8,6,"div",1),s.Ic(),s.Jc(4,"mat-dialog-actions"),s.Jc(5,"button",2),s.Hc(6),s.Nc(7,cC),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.pc(3),s.gd("ngIf",e.updateStatus))},directives:[yd,wd,ve.t,xd,bs,vd,nm],styles:[""]}),t})();var _C;function vC(t,e){if(1&t&&(s.Jc(0,"mat-option",6),s.Bd(1),s.Ic()),2&t){const t=e.$implicit,i=s.ad(2);s.gd("value",t.tag_name),s.pc(1),s.Dd(" ",t.tag_name+(t===i.latestStableRelease?" - Latest Stable":"")+(t.tag_name===i.CURRENT_VERSION?" - Current Version":"")," ")}}function yC(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",3),s.Jc(1,"mat-form-field"),s.Jc(2,"mat-select",4),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().selectedVersion=e})),s.zd(3,vC,2,2,"mat-option",5),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(2),s.gd("ngModel",t.selectedVersion),s.pc(1),s.gd("ngForOf",t.availableVersionsFiltered)}}function wC(t,e){1&t&&(s.Hc(0),s.Bd(1,"Upgrade to"),s.Gc())}function xC(t,e){1&t&&(s.Hc(0),s.Bd(1,"Downgrade to"),s.Gc())}function kC(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",3),s.Jc(1,"button",7),s.Wc("click",(function(){return s.rd(t),s.ad().updateServer()})),s.Jc(2,"mat-icon"),s.Bd(3,"update"),s.Ic(),s.Bd(4,"\xa0\xa0 "),s.zd(5,wC,2,0,"ng-container",8),s.zd(6,xC,2,0,"ng-container",8),s.Bd(7),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(5),s.gd("ngIf",t.selectedVersion>t.CURRENT_VERSION),s.pc(1),s.gd("ngIf",t.selectedVersion{class t{constructor(t,e){this.postsService=t,this.dialog=e,this.availableVersions=null,this.availableVersionsFiltered=[],this.versionsShowLimit=5,this.latestStableRelease=null,this.selectedVersion=null,this.CURRENT_VERSION="v4.0"}ngOnInit(){this.getAvailableVersions()}updateServer(){this.postsService.updateServer(this.selectedVersion).subscribe(t=>{t.success&&this.openUpdateProgressDialog()})}getAvailableVersions(){this.availableVersionsFiltered=[],this.postsService.getAvailableRelease().subscribe(t=>{this.availableVersions=t;for(let e=0;e=this.versionsShowLimit)break;this.availableVersionsFiltered.push(t)}})}openUpdateProgressDialog(){this.dialog.open(bC,{minWidth:"300px",minHeight:"200px"})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(bd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-updater"]],decls:6,vars:2,consts:[[2,"display","block"],[2,"display","inline-block"],["style","display: inline-block; margin-left: 15px;",4,"ngIf"],[2,"display","inline-block","margin-left","15px"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent","mat-raised-button","",3,"click"],[4,"ngIf"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.Hc(2),s.Nc(3,_C),s.Gc(),s.Ic(),s.zd(4,yC,4,2,"div",2),s.zd(5,kC,8,3,"div",2),s.Ic()),2&t&&(s.pc(4),s.gd("ngIf",e.availableVersions),s.pc(1),s.gd("ngIf",e.selectedVersion&&e.selectedVersion!==e.CURRENT_VERSION))},directives:[ve.t,Bc,Gm,Js,qa,ve.s,rs,bs,vu],styles:[""]}),t})();var SC;SC=$localize`:Register user dialog title␟b7ff2e2b909c53abe088fe60b9f4b6ac7757247f␟1815535846517216306:Register a user`;const IC=["placeholder",$localize`:User name placeholder␟024886ca34a6f309e3e51c2ed849320592c3faaa␟5312727456282218392:User name`],DC=["placeholder",$localize`:Password placeholder␟c32ef07f8803a223a83ed17024b38e8d82292407␟1431416938026210429:Password`];var EC,OC;EC=$localize`:Register user button␟cfc2f436ec2beffb042e7511a73c89c372e86a6c␟3301086086650990787:Register`,OC=$localize`:Close button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let AC=(()=>{class t{constructor(t,e){this.postsService=t,this.dialogRef=e,this.usernameInput="",this.passwordInput=""}ngOnInit(){}createUser(){this.postsService.register(this.usernameInput,this.passwordInput).subscribe(t=>{this.dialogRef.close(t.user?t.user:{error:"Unknown error"})},t=>{this.dialogRef.close({error:t})})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(ud))},t.\u0275cmp=s.xc({type:t,selectors:[["app-add-user-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["matInput","","type","password",3,"ngModel","ngModelChange",6,"placeholder"],["color","accent","mat-raised-button","",3,"click"],["mat-dialog-close","","mat-button",""]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Nc(1,SC),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div"),s.Jc(4,"mat-form-field"),s.Jc(5,"input",1),s.Pc(6,IC),s.Wc("ngModelChange",(function(t){return e.usernameInput=t})),s.Ic(),s.Ic(),s.Ic(),s.Jc(7,"div"),s.Jc(8,"mat-form-field"),s.Jc(9,"input",2),s.Pc(10,DC),s.Wc("ngModelChange",(function(t){return e.passwordInput=t})),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(11,"mat-dialog-actions"),s.Jc(12,"button",3),s.Wc("click",(function(){return e.createUser()})),s.Hc(13),s.Nc(14,EC),s.Gc(),s.Ic(),s.Jc(15,"button",4),s.Hc(16),s.Nc(17,OC),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.pc(5),s.gd("ngModel",e.usernameInput),s.pc(4),s.gd("ngModel",e.passwordInput))},directives:[yd,wd,Bc,Ru,Rs,Js,qa,xd,bs,vd],styles:[""]}),t})();var PC,TC,RC;function MC(t,e){if(1&t&&(s.Jc(0,"h4",3),s.Hc(1),s.Nc(2,TC),s.Gc(),s.Bd(3),s.Ic()),2&t){const t=s.ad();s.pc(3),s.Dd("\xa0-\xa0",t.user.name,"")}}PC=$localize`:Close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,TC=$localize`:Manage user dialog title␟2bd201aea09e43fbfd3cd15ec0499b6755302329␟4975588549700433407:Manage user`,RC=$localize`:User UID␟29c97c8e76763bb15b6d515648fa5bd1eb0f7510␟1937680469704133878:User UID:`;const FC=["placeholder",$localize`:New password placeholder␟e70e209561583f360b1e9cefd2cbb1fe434b6229␟3588415639242079458:New password`];var NC,LC,zC,BC;function JC(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-list-item",8),s.Jc(1,"h3",9),s.Bd(2),s.Ic(),s.Jc(3,"span",9),s.Jc(4,"mat-radio-group",10),s.Wc("change",(function(i){s.rd(t);const n=e.$implicit;return s.ad(2).changeUserPermissions(i,n)}))("ngModelChange",(function(i){s.rd(t);const n=e.$implicit;return s.ad(2).permissions[n]=i})),s.Jc(5,"mat-radio-button",11),s.Hc(6),s.Nc(7,LC),s.Gc(),s.Ic(),s.Jc(8,"mat-radio-button",12),s.Hc(9),s.Nc(10,zC),s.Gc(),s.Ic(),s.Jc(11,"mat-radio-button",13),s.Hc(12),s.Nc(13,BC),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(2);s.pc(2),s.Cd(i.permissionToLabel[t]?i.permissionToLabel[t]:t),s.pc(2),s.gd("disabled","settings"===t&&i.postsService.user.uid===i.user.uid)("ngModel",i.permissions[t]),s.qc("aria-label","Give user permission for "+t)}}function VC(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-dialog-content"),s.Jc(1,"p"),s.Hc(2),s.Nc(3,RC),s.Gc(),s.Bd(4),s.Ic(),s.Jc(5,"div"),s.Jc(6,"mat-form-field",4),s.Jc(7,"input",5),s.Pc(8,FC),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().newPasswordInput=e})),s.Ic(),s.Ic(),s.Jc(9,"button",6),s.Wc("click",(function(){return s.rd(t),s.ad().setNewPassword()})),s.Hc(10),s.Nc(11,NC),s.Gc(),s.Ic(),s.Ic(),s.Jc(12,"div"),s.Jc(13,"mat-list"),s.zd(14,JC,14,4,"mat-list-item",7),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(4),s.Dd("\xa0",t.user.uid,""),s.pc(3),s.gd("ngModel",t.newPasswordInput),s.pc(2),s.gd("disabled",0===t.newPasswordInput.length),s.pc(5),s.gd("ngForOf",t.available_permissions)}}NC=$localize`:Set new password␟6498fa1b8f563988f769654a75411bb8060134b9␟4099895221156718403:Set new password`,LC=$localize`:Use default␟40da072004086c9ec00d125165da91eaade7f541␟1641415171855135728:Use default`,zC=$localize`:Yes␟4f20f2d5a6882190892e58b85f6ccbedfa737952␟2807800733729323332:Yes`,BC=$localize`:No␟3d3ae7deebc5949b0c1c78b9847886a94321d9fd␟3542042671420335679:No`;let jC=(()=>{class t{constructor(t,e){this.postsService=t,this.data=e,this.user=null,this.newPasswordInput="",this.available_permissions=null,this.permissions=null,this.permissionToLabel={filemanager:"File manager",settings:"Settings access",subscriptions:"Subscriptions",sharing:"Share files",advanced_download:"Use advanced download mode",downloads_manager:"Use downloads manager"},this.settingNewPassword=!1,this.data&&(this.user=this.data.user,this.available_permissions=this.postsService.available_permissions,this.parsePermissions())}ngOnInit(){}parsePermissions(){this.permissions={};for(let t=0;t{})}setNewPassword(){this.settingNewPassword=!0,this.postsService.changeUserPassword(this.user.uid,this.newPasswordInput).subscribe(t=>{this.newPasswordInput="",this.settingNewPassword=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(pd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-manage-user"]],decls:6,vars:2,consts:[["mat-dialog-title","",4,"ngIf"],[4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-dialog-title",""],[2,"margin-right","15px"],["matInput","","type","password",3,"ngModel","ngModelChange",6,"placeholder"],["mat-raised-button","","color","accent",3,"disabled","click"],["role","listitem",4,"ngFor","ngForOf"],["role","listitem"],["matLine",""],[3,"disabled","ngModel","change","ngModelChange"],["value","default"],["value","yes"],["value","no"]],template:function(t,e){1&t&&(s.zd(0,MC,4,1,"h4",0),s.zd(1,VC,15,4,"mat-dialog-content",1),s.Jc(2,"mat-dialog-actions"),s.Jc(3,"button",2),s.Hc(4),s.Nc(5,PC),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.gd("ngIf",e.user),s.pc(1),s.gd("ngIf",e.user))},directives:[ve.t,xd,bs,vd,yd,wd,Bc,Ru,Rs,Js,qa,Xu,ve.s,tp,Jn,km,Im],styles:[".mat-radio-button[_ngcontent-%COMP%]{margin-right:10px;margin-top:5px}"]}),t})();var $C,HC,UC,GC;function WC(t,e){if(1&t&&(s.Jc(0,"h4",3),s.Hc(1),s.Nc(2,HC),s.Gc(),s.Bd(3),s.Ic()),2&t){const t=s.ad();s.pc(3),s.Dd("\xa0-\xa0",t.role.name,"")}}function qC(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-list-item",5),s.Jc(1,"h3",6),s.Bd(2),s.Ic(),s.Jc(3,"span",6),s.Jc(4,"mat-radio-group",7),s.Wc("change",(function(i){s.rd(t);const n=e.$implicit,a=s.ad(2);return a.changeRolePermissions(i,n,a.permissions[n])}))("ngModelChange",(function(i){s.rd(t);const n=e.$implicit;return s.ad(2).permissions[n]=i})),s.Jc(5,"mat-radio-button",8),s.Hc(6),s.Nc(7,UC),s.Gc(),s.Ic(),s.Jc(8,"mat-radio-button",9),s.Hc(9),s.Nc(10,GC),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(2);s.pc(2),s.Cd(i.permissionToLabel[t]?i.permissionToLabel[t]:t),s.pc(2),s.gd("disabled","settings"===t&&"admin"===i.role.name)("ngModel",i.permissions[t]),s.qc("aria-label","Give role permission for "+t)}}function KC(t,e){if(1&t&&(s.Jc(0,"mat-dialog-content"),s.Jc(1,"mat-list"),s.zd(2,qC,11,4,"mat-list-item",4),s.Ic(),s.Ic()),2&t){const t=s.ad();s.pc(2),s.gd("ngForOf",t.available_permissions)}}$C=$localize`:Close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,HC=$localize`:Manage role dialog title␟57c6c05d8ebf4ef1180c2705033c044f655bb2c4␟6937165687043532169:Manage role`,UC=$localize`:Yes␟4f20f2d5a6882190892e58b85f6ccbedfa737952␟2807800733729323332:Yes`,GC=$localize`:No␟3d3ae7deebc5949b0c1c78b9847886a94321d9fd␟3542042671420335679:No`;let XC=(()=>{class t{constructor(t,e,i){this.postsService=t,this.dialogRef=e,this.data=i,this.role=null,this.available_permissions=null,this.permissions=null,this.permissionToLabel={filemanager:"File manager",settings:"Settings access",subscriptions:"Subscriptions",sharing:"Share files",advanced_download:"Use advanced download mode",downloads_manager:"Use downloads manager"},this.data&&(this.role=this.data.role,this.available_permissions=this.postsService.available_permissions,this.parsePermissions())}ngOnInit(){}parsePermissions(){this.permissions={};for(let t=0;t{t.success||(this.permissions[e]="yes"===this.permissions[e]?"no":"yes")},t=>{this.permissions[e]="yes"===this.permissions[e]?"no":"yes"})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(ud),s.Dc(pd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-manage-role"]],decls:6,vars:2,consts:[["mat-dialog-title","",4,"ngIf"],[4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-dialog-title",""],["role","listitem",4,"ngFor","ngForOf"],["role","listitem"],["matLine",""],[3,"disabled","ngModel","change","ngModelChange"],["value","yes"],["value","no"]],template:function(t,e){1&t&&(s.zd(0,WC,4,1,"h4",0),s.zd(1,KC,3,1,"mat-dialog-content",1),s.Jc(2,"mat-dialog-actions"),s.Jc(3,"button",2),s.Hc(4),s.Nc(5,$C),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.gd("ngIf",e.role),s.pc(1),s.gd("ngIf",e.role))},directives:[ve.t,xd,bs,vd,yd,wd,Xu,ve.s,tp,Jn,km,Js,qa,Im],styles:[".mat-radio-button[_ngcontent-%COMP%]{margin-right:10px;margin-top:5px}"]}),t})();var YC,ZC,QC,tS,eS;function iS(t,e){1&t&&(s.Jc(0,"mat-header-cell",24),s.Hc(1),s.Nc(2,QC),s.Gc(),s.Ic())}function nS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"span"),s.Jc(1,"span",26),s.Jc(2,"mat-form-field"),s.Jc(3,"input",27),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(3).constructedObject.name=e})),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(3);s.pc(3),s.gd("ngModel",t.constructedObject.name)}}function sS(t,e){if(1&t&&s.Bd(0),2&t){const t=s.ad().$implicit;s.Dd(" ",t.name," ")}}function aS(t,e){if(1&t&&(s.Jc(0,"mat-cell"),s.zd(1,nS,4,1,"span",0),s.zd(2,sS,1,1,"ng-template",null,25,s.Ad),s.Ic()),2&t){const t=e.$implicit,i=s.nd(3),n=s.ad(2);s.pc(1),s.gd("ngIf",n.editObject&&n.editObject.uid===t.uid)("ngIfElse",i)}}function oS(t,e){1&t&&(s.Jc(0,"mat-header-cell",24),s.Hc(1),s.Nc(2,tS),s.Gc(),s.Ic())}function rS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"span"),s.Jc(1,"span",26),s.Jc(2,"mat-form-field"),s.Jc(3,"mat-select",29),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(3).constructedObject.role=e})),s.Jc(4,"mat-option",30),s.Bd(5,"Admin"),s.Ic(),s.Jc(6,"mat-option",31),s.Bd(7,"User"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(3);s.pc(3),s.gd("ngModel",t.constructedObject.role)}}function lS(t,e){if(1&t&&s.Bd(0),2&t){const t=s.ad().$implicit;s.Dd(" ",t.role," ")}}function cS(t,e){if(1&t&&(s.Jc(0,"mat-cell"),s.zd(1,rS,8,1,"span",0),s.zd(2,lS,1,1,"ng-template",null,28,s.Ad),s.Ic()),2&t){const t=e.$implicit,i=s.nd(3),n=s.ad(2);s.pc(1),s.gd("ngIf",n.editObject&&n.editObject.uid===t.uid)("ngIfElse",i)}}function dS(t,e){1&t&&(s.Jc(0,"mat-header-cell",24),s.Hc(1),s.Nc(2,eS),s.Gc(),s.Ic())}function hS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"span"),s.Jc(1,"button",35),s.Wc("click",(function(){s.rd(t);const e=s.ad().$implicit;return s.ad(2).finishEditing(e.uid)})),s.Jc(2,"mat-icon"),s.Bd(3,"done"),s.Ic(),s.Ic(),s.Jc(4,"button",36),s.Wc("click",(function(){return s.rd(t),s.ad(3).disableEditMode()})),s.Jc(5,"mat-icon"),s.Bd(6,"cancel"),s.Ic(),s.Ic(),s.Ic()}}function uS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",37),s.Wc("click",(function(){s.rd(t);const e=s.ad().$implicit;return s.ad(2).enableEditMode(e.uid)})),s.Jc(1,"mat-icon"),s.Bd(2,"edit"),s.Ic(),s.Ic()}}function pS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-cell"),s.zd(1,hS,7,0,"span",0),s.zd(2,uS,3,0,"ng-template",null,32,s.Ad),s.Jc(4,"button",33),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad(2).manageUser(i.uid)})),s.Jc(5,"mat-icon"),s.Bd(6,"settings"),s.Ic(),s.Ic(),s.Jc(7,"button",34),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad(2).removeUser(i.uid)})),s.Jc(8,"mat-icon"),s.Bd(9,"delete"),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit,i=s.nd(3),n=s.ad(2);s.pc(1),s.gd("ngIf",n.editObject&&n.editObject.uid===t.uid)("ngIfElse",i),s.pc(3),s.gd("disabled",n.editObject&&n.editObject.uid===t.uid),s.pc(3),s.gd("disabled",n.editObject&&n.editObject.uid===t.uid||t.uid===n.postsService.user.uid)}}function mS(t,e){1&t&&s.Ec(0,"mat-header-row")}function gS(t,e){1&t&&s.Ec(0,"mat-row")}function fS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",38),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad(2).openModifyRole(i)})),s.Bd(1),s.Ic()}if(2&t){const t=e.$implicit;s.pc(1),s.Cd(t.name)}}function bS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"div",3),s.Jc(2,"div",4),s.Jc(3,"div",5),s.Jc(4,"div",6),s.Jc(5,"mat-form-field"),s.Jc(6,"input",7),s.Wc("keyup",(function(e){return s.rd(t),s.ad().applyFilter(e.target.value)})),s.Ic(),s.Ic(),s.Ic(),s.Jc(7,"div",8),s.Jc(8,"mat-table",9,10),s.Hc(10,11),s.zd(11,iS,3,0,"mat-header-cell",12),s.zd(12,aS,4,2,"mat-cell",13),s.Gc(),s.Hc(13,14),s.zd(14,oS,3,0,"mat-header-cell",12),s.zd(15,cS,4,2,"mat-cell",13),s.Gc(),s.Hc(16,15),s.zd(17,dS,3,0,"mat-header-cell",12),s.zd(18,pS,10,4,"mat-cell",13),s.Gc(),s.zd(19,mS,1,0,"mat-header-row",16),s.zd(20,gS,1,0,"mat-row",17),s.Ic(),s.Ec(21,"mat-paginator",18,19),s.Jc(23,"button",20),s.Wc("click",(function(){return s.rd(t),s.ad().openAddUserDialog()})),s.Hc(24),s.Nc(25,YC),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(26,"button",21),s.Hc(27),s.Nc(28,ZC),s.Gc(),s.Ic(),s.Jc(29,"mat-menu",null,22),s.zd(31,fS,2,1,"button",23),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.nd(30),e=s.ad();s.pc(8),s.gd("dataSource",e.dataSource),s.pc(11),s.gd("matHeaderRowDef",e.displayedColumns),s.pc(1),s.gd("matRowDefColumns",e.displayedColumns),s.pc(1),s.gd("length",e.length)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions),s.pc(2),s.gd("disabled",!e.users),s.pc(3),s.gd("matMenuTriggerFor",t),s.pc(5),s.gd("ngForOf",e.roles)}}function _S(t,e){1&t&&s.Ec(0,"mat-spinner")}YC=$localize`:Add users button␟4d92a0395dd66778a931460118626c5794a3fc7a␟506553185810307410:Add Users`,ZC=$localize`:Edit role␟b0d7dd8a1b0349622d6e0c6e643e24a9ea0efa1d␟7421160648436431593:Edit Role`,QC=$localize`:Username users table header␟746f64ddd9001ac456327cd9a3d5152203a4b93c␟5277049347608663780: User name `,tS=$localize`:Role users table header␟52c1447c1ec9570a2a3025c7e566557b8d19ed92␟2803298218425845065: Role `,eS=$localize`:Actions users table header␟59a8c38db3091a63ac1cb9590188dc3a972acfb3␟4360239040231802726: Actions `;let vS=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.dialog=i,this.dialogRef=n,this.displayedColumns=["name","role","actions"],this.dataSource=new j_,this.deleteDialogContentSubstring="Are you sure you want delete user ",this.length=100,this.pageSize=5,this.pageSizeOptions=[5,10,25,100],this.editObject=null,this.constructedObject={},this.roles=null}ngOnInit(){this.getArray(),this.getRoles()}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}afterGetData(){this.dataSource.sort=this.sort}setPageSizeOptions(t){this.pageSizeOptions=t.split(",").map(t=>+t)}applyFilter(t){t=(t=t.trim()).toLowerCase(),this.dataSource.filter=t}getArray(){this.postsService.getUsers().subscribe(t=>{this.users=t.users,this.createAndSortData(),this.afterGetData()})}getRoles(){this.postsService.getRoles().subscribe(t=>{this.roles=[];const e=t.roles,i=Object.keys(e);for(let n=0;n{t&&!t.error?(this.openSnackBar("Successfully added user "+t.name),this.getArray()):t&&t.error&&this.openSnackBar("Failed to add user")})}finishEditing(t){let e=!1;if(this.constructedObject&&this.constructedObject.name&&this.constructedObject.role&&!yS(this.constructedObject.name)&&!yS(this.constructedObject.role)){e=!0;const i=this.indexOfUser(t);this.users[i]=this.constructedObject,this.constructedObject={},this.editObject=null,this.setUser(this.users[i]),this.createAndSortData()}}enableEditMode(t){if(this.uidInUserList(t)&&this.indexOfUser(t)>-1){const e=this.indexOfUser(t);this.editObject=this.users[e],this.constructedObject.name=this.users[e].name,this.constructedObject.uid=this.users[e].uid,this.constructedObject.role=this.users[e].role}}disableEditMode(){this.editObject=null}uidInUserList(t){for(let e=0;e{this.getArray()})}manageUser(t){const e=this.indexOfUser(t);this.dialog.open(jC,{data:{user:this.users[e]},width:"65vw"})}removeUser(t){this.postsService.deleteUser(t).subscribe(t=>{this.getArray()},t=>{this.getArray()})}createAndSortData(){this.users.sort((t,e)=>e.name>t.name);const t=[];for(let e=0;e{this.getRoles()})}closeDialog(){this.dialogRef.close()}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg),s.Dc(bd),s.Dc(ud))},t.\u0275cmp=s.xc({type:t,selectors:[["app-modify-users"]],viewQuery:function(t,e){var i;1&t&&(s.Fd(rb,!0),s.Fd(mb,!0)),2&t&&(s.md(i=s.Xc())&&(e.paginator=i.first),s.md(i=s.Xc())&&(e.sort=i.first))},inputs:{pageSize:"pageSize"},decls:4,vars:2,consts:[[4,"ngIf","ngIfElse"],[1,"centered",2,"position","absolute"],["loading",""],[2,"padding","15px"],[1,"row"],[1,"table","table-responsive","px-5","pb-4","pt-2"],[1,"example-header"],["matInput","","placeholder","Search",3,"keyup"],[1,"example-container","mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","role"],["matColumnDef","actions"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],["paginator",""],["color","primary","mat-raised-button","",2,"float","left","top","-45px","left","15px",3,"disabled","click"],["color","primary","mat-raised-button","",1,"edit-role",3,"matMenuTriggerFor"],["edit_roles_menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-sort-header",""],["noteditingname",""],[2,"width","80%"],["matInput","","type","text",2,"font-size","12px",3,"ngModel","ngModelChange"],["noteditingemail",""],[3,"ngModel","ngModelChange"],["value","admin"],["value","user"],["notediting",""],["mat-icon-button","","matTooltip","Manage user",3,"disabled","click"],["mat-icon-button","","matTooltip","Delete user",3,"disabled","click"],["mat-icon-button","","color","primary","matTooltip","Finish editing user",3,"click"],["mat-icon-button","","matTooltip","Cancel editing user",3,"click"],["mat-icon-button","","matTooltip","Edit user",3,"click"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(s.zd(0,bS,32,9,"div",0),s.Jc(1,"div",1),s.zd(2,_S,1,0,"ng-template",null,2,s.Ad),s.Ic()),2&t){const t=s.nd(3);s.gd("ngIf",e.dataSource)("ngIfElse",t)}},directives:[ve.t,Bc,Ru,m_,mb,x_,__,f_,D_,P_,rb,bs,Ep,Cp,ve.s,C_,xb,I_,Rs,Js,qa,Gm,rs,Kp,vu,R_,L_,_p,mm],styles:[".edit-role[_ngcontent-%COMP%]{position:relative;top:-50px;left:35px}"]}),t})();function yS(t){return null===t||null!==t.match(/^ *$/)}const wS=["placeholder",$localize`:Logs placeholder␟fd59fb984749fcdb5e386ae85faec82f8e5ac098␟3745032841365555599:Logs will appear here`];var xS,kS;function CS(t,e){1&t&&(s.Jc(0,"div",8),s.Ec(1,"mat-spinner",9),s.Ic()),2&t&&(s.pc(1),s.gd("diameter",32))}xS=$localize`:Copy to clipboard button text␟3a6e5a6aa78ca864f6542410c5dafb6334538106␟8738732372986673558:Copy to clipboard`,kS=$localize`:Label for lines select in logger view␟5009630cdf32ab4f1c78737b9617b8773512c05a␟1273958037222279236:Lines:`;let SS=(()=>{class t{constructor(t){this.postsService=t,this.logs=null,this.requested_lines=50,this.logs_loading=!1}ngOnInit(){this.getLogs()}getLogs(){this.logs||(this.logs_loading=!0),this.postsService.getLogs(0!==this.requested_lines?this.requested_lines:null).subscribe(t=>{this.logs_loading=!1,t.logs?this.logs=t.logs:this.postsService.openSnackBar("Failed to retrieve logs!")},t=>{this.logs_loading=!1,console.error(t),this.postsService.openSnackBar("Failed to retrieve logs!")})}copiedLogsToClipboard(){this.postsService.openSnackBar("Logs copied to clipboard!")}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-logs-viewer"]],decls:24,vars:9,consts:[[2,"height","100%"],["style","position: absolute; top: 40%; left: 50%",4,"ngIf"],["matInput","","readonly","",2,"height","275px",3,"ngModel","ngModelChange",6,"placeholder"],["mat-flat-button","","color","primary",2,"margin-top","12px",3,"cdkCopyToClipboard","click"],[2,"float","right"],[2,"width","75px"],[3,"ngModel","selectionChange","ngModelChange"],[3,"value"],[2,"position","absolute","top","40%","left","50%"],[3,"diameter"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.zd(1,CS,2,1,"div",1),s.Jc(2,"textarea",2),s.Pc(3,wS),s.Wc("ngModelChange",(function(t){return e.logs=t})),s.Ic(),s.Jc(4,"div"),s.Jc(5,"button",3),s.Wc("click",(function(){return e.copiedLogsToClipboard()})),s.Hc(6),s.Nc(7,xS),s.Gc(),s.Ic(),s.Jc(8,"div",4),s.Hc(9),s.Nc(10,kS),s.Gc(),s.Bd(11,"\xa0 "),s.Jc(12,"mat-form-field",5),s.Jc(13,"mat-select",6),s.Wc("selectionChange",(function(){return e.getLogs()}))("ngModelChange",(function(t){return e.requested_lines=t})),s.Jc(14,"mat-option",7),s.Bd(15,"10"),s.Ic(),s.Jc(16,"mat-option",7),s.Bd(17,"25"),s.Ic(),s.Jc(18,"mat-option",7),s.Bd(19,"50"),s.Ic(),s.Jc(20,"mat-option",7),s.Bd(21,"100"),s.Ic(),s.Jc(22,"mat-option",7),s.Bd(23,"All"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.gd("ngIf",e.logs_loading),s.pc(1),s.gd("ngModel",e.logs),s.pc(3),s.gd("cdkCopyToClipboard",e.logs),s.pc(8),s.gd("ngModel",e.requested_lines),s.pc(1),s.gd("value",10),s.pc(2),s.gd("value",25),s.pc(2),s.gd("value",50),s.pc(2),s.gd("value",100),s.pc(2),s.gd("value",0))},directives:[ve.t,Ru,Rs,Js,qa,bs,Fv,Bc,Gm,rs,mm],styles:[""]}),t})();var IS;IS=$localize`:Settings title␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`;const DS=["label",$localize`:Main settings label␟82421c3e46a0453a70c42900eab51d58d79e6599␟3815928829326879804:Main`],ES=["label",$localize`:Downloader settings label␟0ba25ad86a240576c4f20a2fada4722ebba77b1e␟5385813889746830226:Downloader`],OS=["label",$localize`:Extra settings label␟d5f69691f9f05711633128b5a3db696783266b58␟7419412790104674886:Extra`],AS=["label",$localize`:Host settings label␟bc2e854e111ecf2bd7db170da5e3c2ed08181d88␟6201638315245239510:Advanced`];var PS,TS;PS=$localize`:Settings save button␟52c9a103b812f258bcddc3d90a6e3f46871d25fe␟3768927257183755959:Save`,TS=$localize`:Settings cancel and close button␟fe8fd36dbf5deee1d56564965787a782a66eba44␟1370226763724525124:{VAR_SELECT, select, true {Close} false {Cancel} other {otha}}`,TS=s.Rc(TS,{VAR_SELECT:"\ufffd0\ufffd"});const RS=["placeholder",$localize`:URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var MS;MS=$localize`:URL setting input hint␟54c512cca1923ab72faf1a0bd98d3d172469629a␟5463756323010996100:URL this app will be accessed from, without the port.`;const FS=["placeholder",$localize`:Port input placeholder␟cb2741a46e3560f6bc6dfd99d385e86b08b26d72␟6117946241126833991:Port`];var NS,LS;function zS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-form-field",13),s.Jc(4,"input",14),s.Pc(5,RS),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Host.url=e})),s.Ic(),s.Jc(6,"mat-hint"),s.Hc(7),s.Nc(8,MS),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(9,"div",15),s.Jc(10,"mat-form-field",13),s.Jc(11,"input",14),s.Pc(12,FS),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Host.port=e})),s.Ic(),s.Jc(13,"mat-hint"),s.Hc(14),s.Nc(15,NS),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(4),s.gd("ngModel",t.new_config.Host.url),s.pc(7),s.gd("ngModel",t.new_config.Host.port)}}NS=$localize`:Port setting input hint␟22e8f1d0423a3b784fe40fab187b92c06541b577␟12816402920404434:The desired port. Default is 17442.`,LS=$localize`:Multi user mode setting␟d4477669a560750d2064051a510ef4d7679e2f3e␟8189972369495207275:Multi-user mode`;const BS=["placeholder",$localize`:Users base path placeholder␟2eb03565fcdce7a7a67abc277a936a32fcf51557␟553126943997197705:Users base path`];var JS,VS;function jS(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Advanced.multi_user_mode=e})),s.Hc(4),s.Nc(5,LS),s.Gc(),s.Ic(),s.Ic(),s.Jc(6,"div",17),s.Jc(7,"mat-form-field",18),s.Jc(8,"input",19),s.Pc(9,BS),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Users.base_path=e})),s.Ic(),s.Jc(10,"mat-hint"),s.Hc(11),s.Nc(12,JS),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.Advanced.multi_user_mode),s.pc(5),s.gd("disabled",!t.new_config.Advanced.multi_user_mode)("ngModel",t.new_config.Users.base_path)}}JS=$localize`:Users base path hint␟a64505c41150663968e277ec9b3ddaa5f4838798␟7466856953916038997:Base path for users and their downloaded videos.`,VS=$localize`:Use encryption setting␟cbe16a57be414e84b6a68309d08fad894df797d6␟5503616660881623306:Use encryption`;const $S=["placeholder",$localize`:Cert file path input placeholder␟0c1875a79b7ecc792cc1bebca3e063e40b5764f9␟2857997144709025078:Cert file path`],HS=["placeholder",$localize`:Key file path input placeholder␟736551b93461d2de64b118cf4043eee1d1c2cb2c␟2320113463068090884:Key file path`];function US(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Encryption["use-encryption"]=e})),s.Hc(4),s.Nc(5,VS),s.Gc(),s.Ic(),s.Ic(),s.Jc(6,"div",20),s.Jc(7,"mat-form-field",13),s.Jc(8,"input",21),s.Pc(9,$S),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Encryption["cert-file-path"]=e})),s.Ic(),s.Ic(),s.Ic(),s.Jc(10,"div",20),s.Jc(11,"mat-form-field",13),s.Jc(12,"input",21),s.Pc(13,HS),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Encryption["key-file-path"]=e})),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.Encryption["use-encryption"]),s.pc(5),s.gd("disabled",!t.new_config.Encryption["use-encryption"])("ngModel",t.new_config.Encryption["cert-file-path"]),s.pc(4),s.gd("disabled",!t.new_config.Encryption["use-encryption"])("ngModel",t.new_config.Encryption["key-file-path"])}}var GS;GS=$localize`:Allow subscriptions setting␟4e3120311801c4acd18de7146add2ee4a4417773␟5800596718492516574:Allow subscriptions`;const WS=["placeholder",$localize`:Subscriptions base path input setting placeholder␟4bee2a4bef2d26d37c9b353c278e24e5cd309ce3␟6919010605968316948:Subscriptions base path`];var qS;qS=$localize`:Subscriptions base path setting input hint␟bc9892814ee2d119ae94378c905ea440a249b84a␟2622759576830659218:Base path for videos from your subscribed channels and playlists. It is relative to YTDL-Material's root folder.`;const KS=["placeholder",$localize`:Check interval input setting placeholder␟5bef4b25ba680da7fff06b86a91b1fc7e6a926e3␟5349606203941321178:Check interval`];var XS,YS,ZS,QS,tI,eI,iI,nI,sI,aI;function oI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Subscriptions.allow_subscriptions=e})),s.Hc(4),s.Nc(5,GS),s.Gc(),s.Ic(),s.Ic(),s.Jc(6,"div",20),s.Jc(7,"mat-form-field",13),s.Jc(8,"input",21),s.Pc(9,WS),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Subscriptions.subscriptions_base_path=e})),s.Ic(),s.Jc(10,"mat-hint"),s.Hc(11),s.Nc(12,qS),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(13,"div",22),s.Jc(14,"mat-form-field",13),s.Jc(15,"input",21),s.Pc(16,KS),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Subscriptions.subscriptions_check_interval=e})),s.Ic(),s.Jc(17,"mat-hint"),s.Hc(18),s.Nc(19,XS),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(20,"div",23),s.Jc(21,"mat-checkbox",24),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Subscriptions.subscriptions_use_youtubedl_archive=e})),s.Hc(22),s.Nc(23,YS),s.Gc(),s.Ic(),s.Jc(24,"p"),s.Jc(25,"a",25),s.Hc(26),s.Nc(27,ZS),s.Gc(),s.Ic(),s.Bd(28,"\xa0"),s.Hc(29),s.Nc(30,QS),s.Gc(),s.Ic(),s.Jc(31,"p"),s.Hc(32),s.Nc(33,tI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.Subscriptions.allow_subscriptions),s.pc(5),s.gd("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_base_path),s.pc(7),s.gd("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_check_interval),s.pc(6),s.gd("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_use_youtubedl_archive)}}function rI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-form-field"),s.Jc(4,"mat-label"),s.Hc(5),s.Nc(6,eI),s.Gc(),s.Ic(),s.Jc(7,"mat-select",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Themes.default_theme=e})),s.Jc(8,"mat-option",26),s.Hc(9),s.Nc(10,iI),s.Gc(),s.Ic(),s.Jc(11,"mat-option",27),s.Hc(12),s.Nc(13,nI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(14,"div",28),s.Jc(15,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Themes.allow_theme_change=e})),s.Hc(16),s.Nc(17,sI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(7),s.gd("ngModel",t.new_config.Themes.default_theme),s.pc(8),s.gd("ngModel",t.new_config.Themes.allow_theme_change)}}function lI(t,e){if(1&t&&(s.Jc(0,"mat-option",32),s.Bd(1),s.Ic()),2&t){const t=e.$implicit,i=s.ad(3);s.gd("value",t),s.pc(1),s.Dd(" ",i.all_locales[t].nativeName," ")}}function cI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-form-field",29),s.Jc(4,"mat-label"),s.Hc(5),s.Nc(6,aI),s.Gc(),s.Ic(),s.Jc(7,"mat-select",30),s.Wc("selectionChange",(function(e){return s.rd(t),s.ad(2).localeSelectChanged(e.value)}))("valueChange",(function(e){return s.rd(t),s.ad(2).initialLocale=e})),s.zd(8,lI,2,2,"mat-option",31),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(7),s.gd("value",t.initialLocale),s.pc(1),s.gd("ngForOf",t.supported_locales)}}function dI(t,e){if(1&t&&(s.zd(0,zS,16,2,"div",9),s.Ec(1,"mat-divider"),s.zd(2,jS,13,3,"div",9),s.Ec(3,"mat-divider"),s.zd(4,US,14,5,"div",9),s.Ec(5,"mat-divider"),s.zd(6,oI,34,7,"div",9),s.Ec(7,"mat-divider"),s.zd(8,rI,18,2,"div",9),s.Ec(9,"mat-divider"),s.zd(10,cI,9,2,"div",9)),2&t){const t=s.ad();s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config)}}XS=$localize`:Check interval setting input hint␟0f56a7449b77630c114615395bbda4cab398efd8␟1580663059483543498:Unit is seconds, only include numbers.`,YS=$localize`:Use youtube-dl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`,ZS=$localize`:youtube-dl archive explanation prefix link␟fa9fe4255231dd1cc6b29d3d254a25cb7c764f0f␟6707903974690925048:With youtube-dl's archive`,QS=$localize`:youtube-dl archive explanation middle␟09006404cccc24b7a8f8d1ce0b39f2761ab841d8␟954972440308853962:feature, downloaded videos from your subscriptions get recorded in a text file in the subscriptions archive sub-directory.`,tI=$localize`:youtube-dl archive explanation suffix␟29ed79a98fc01e7f9537777598e31dbde3aa7981␟6686872891691588730:This enables the ability to permanently delete videos from your subscriptions without unsubscribing, and allows you to record which videos you downloaded in case of data loss.`,eI=$localize`:Theme select label␟27a56aad79d8b61269ed303f11664cc78bcc2522␟7103588127254721505:Theme`,iI=$localize`:Default theme label␟ff7cee38a2259526c519f878e71b964f41db4348␟5607669932062416162:Default`,nI=$localize`:Dark theme label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`,sI=$localize`:Allow theme change setting␟7a6bacee4c31cb5c0ac2d24274fb4610d8858602␟8325128210832071900:Allow theme change`,aI=$localize`:Language select label␟fe46ccaae902ce974e2441abe752399288298619␟2826581353496868063:Language`;const hI=["placeholder",$localize`:Audio folder path input placeholder␟ab2756805742e84ad0cc0468f4be2d8aa9f855a5␟3475061775640312711:Audio folder path`];var uI;uI=$localize`:Aduio path setting input hint␟c2c89cdf45d46ea64d2ed2f9ac15dfa4d77e26ca␟3848357852843054025:Path for audio only downloads. It is relative to YTDL-Material's root folder.`;const pI=["placeholder",$localize`:Video folder path input placeholder␟46826331da1949bd6fb74624447057099c9d20cd␟3354965786971797948:Video folder path`];var mI;mI=$localize`:Video path setting input hint␟17c92e6d47a213fa95b5aa344b3f258147123f93␟2955739827391836971:Path for video downloads. It is relative to YTDL-Material's root folder.`;const gI=["placeholder",$localize`:Custom args input placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var fI,bI,_I;function vI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-form-field",13),s.Jc(4,"input",14),s.Pc(5,hI),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Downloader["path-audio"]=e})),s.Ic(),s.Jc(6,"mat-hint"),s.Hc(7),s.Nc(8,uI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(9,"div",22),s.Jc(10,"mat-form-field",13),s.Jc(11,"input",14),s.Pc(12,pI),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Downloader["path-video"]=e})),s.Ic(),s.Jc(13,"mat-hint"),s.Hc(14),s.Nc(15,mI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(16,"div",22),s.Jc(17,"mat-form-field",33),s.Jc(18,"textarea",34),s.Pc(19,gI),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Downloader.custom_args=e})),s.Ic(),s.Jc(20,"mat-hint"),s.Hc(21),s.Nc(22,fI),s.Gc(),s.Ic(),s.Jc(23,"button",35),s.Wc("click",(function(){return s.rd(t),s.ad(2).openArgsModifierDialog()})),s.Jc(24,"mat-icon"),s.Bd(25,"edit"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(26,"div",23),s.Jc(27,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Downloader.use_youtubedl_archive=e})),s.Hc(28),s.Nc(29,bI),s.Gc(),s.Ic(),s.Jc(30,"p"),s.Bd(31,"Note: This setting only applies to downloads on the Home page. If you would like to use youtube-dl archive functionality in subscriptions, head down to the Subscriptions section."),s.Ic(),s.Ic(),s.Jc(32,"div",12),s.Jc(33,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Downloader.safe_download_override=e})),s.Hc(34),s.Nc(35,_I),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(4),s.gd("ngModel",t.new_config.Downloader["path-audio"]),s.pc(7),s.gd("ngModel",t.new_config.Downloader["path-video"]),s.pc(7),s.gd("ngModel",t.new_config.Downloader.custom_args),s.pc(9),s.gd("ngModel",t.new_config.Downloader.use_youtubedl_archive),s.pc(6),s.gd("ngModel",t.new_config.Downloader.safe_download_override)}}function yI(t,e){if(1&t&&s.zd(0,vI,36,5,"div",9),2&t){const t=s.ad();s.gd("ngIf",t.new_config)}}fI=$localize`:Custom args setting input hint␟6b995e7130b4d667eaab6c5f61b362ace486d26d␟5003828392179181130:Global custom args for downloads on the home page. Args are delimited using two commas like so: ,,`,bI=$localize`:Use youtubedl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`,_I=$localize`:Safe download override setting␟d01715b75228878a773ae6d059acc639d4898a03␟8028244888189462244:Safe download override`;const wI=["placeholder",$localize`:Top title input placeholder␟61f8fd90b5f8cb20c70371feb2ee5e1fac5a9095␟1974727764328838461:Top title`];var xI,kI,CI,SI,II,DI,EI,OI;function AI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-form-field",13),s.Jc(4,"input",14),s.Pc(5,wI),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.title_top=e})),s.Ic(),s.Ec(6,"mat-hint"),s.Ic(),s.Ic(),s.Jc(7,"div",20),s.Jc(8,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.file_manager_enabled=e})),s.Hc(9),s.Nc(10,xI),s.Gc(),s.Ic(),s.Ic(),s.Jc(11,"div",20),s.Jc(12,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.enable_downloads_manager=e})),s.Hc(13),s.Nc(14,kI),s.Gc(),s.Ic(),s.Ic(),s.Jc(15,"div",20),s.Jc(16,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.allow_quality_select=e})),s.Hc(17),s.Nc(18,CI),s.Gc(),s.Ic(),s.Ic(),s.Jc(19,"div",20),s.Jc(20,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.download_only_mode=e})),s.Hc(21),s.Nc(22,SI),s.Gc(),s.Ic(),s.Ic(),s.Jc(23,"div",20),s.Jc(24,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.allow_multi_download_mode=e})),s.Hc(25),s.Nc(26,II),s.Gc(),s.Ic(),s.Ic(),s.Jc(27,"div",20),s.Jc(28,"mat-checkbox",24),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Extra.settings_pin_required=e})),s.Hc(29),s.Nc(30,DI),s.Gc(),s.Ic(),s.Jc(31,"button",36),s.Wc("click",(function(){return s.rd(t),s.ad(2).setNewPin()})),s.Hc(32),s.Nc(33,EI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(4),s.gd("ngModel",t.new_config.Extra.title_top),s.pc(4),s.gd("ngModel",t.new_config.Extra.file_manager_enabled),s.pc(4),s.gd("ngModel",t.new_config.Extra.enable_downloads_manager),s.pc(4),s.gd("ngModel",t.new_config.Extra.allow_quality_select),s.pc(4),s.gd("ngModel",t.new_config.Extra.download_only_mode),s.pc(4),s.gd("ngModel",t.new_config.Extra.allow_multi_download_mode),s.pc(4),s.gd("disabled",t.new_config.Advanced.multi_user_mode)("ngModel",t.new_config.Extra.settings_pin_required),s.pc(3),s.gd("disabled",!t.new_config.Extra.settings_pin_required)}}xI=$localize`:File manager enabled setting␟78d3531417c0d4ba4c90f0d4ae741edc261ec8df␟488432415925701010:File manager enabled`,kI=$localize`:Downloads manager enabled setting␟a5a1be0a5df07de9eec57f5d2a86ed0204b2e75a␟316726944811110918:Downloads manager enabled`,CI=$localize`:Allow quality seelct setting␟c33bd5392b39dbed36b8e5a1145163a15d45835f␟2252491142626131446:Allow quality select`,SI=$localize`:Download only mode setting␟bda5508e24e0d77debb28bcd9194d8fefb1cfb92␟2765258699599899343:Download only mode`,II=$localize`:Allow multi-download mode setting␟09d31c803a7252658694e1e3176b97f5655a3fe3␟1457782201611151239:Allow multi-download mode`,DI=$localize`:Require pin for settings setting␟d8b47221b5af9e9e4cd5cb434d76fc0c91611409␟8888472341408176239:Require pin for settings`,EI=$localize`:Set new pin button␟f5ec7b2cdf87d41154f4fcbc86e856314409dcb9␟5079149426228636902:Set New Pin`,OI=$localize`:Enable Public API key setting␟1c4dbce56d96b8974aac24a02f7ab2ee81415014␟1129973800849533636:Enable Public API`;const PI=["placeholder",$localize`:Public API Key setting placeholder␟23bd81dcc30b74d06279a26d7a42e8901c1b124e␟5137591319364175431:Public API Key`];var TI,RI,MI;function FI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.API.use_API_key=e})),s.Hc(4),s.Nc(5,OI),s.Gc(),s.Ic(),s.Ic(),s.Jc(6,"div",37),s.Jc(7,"div",38),s.Jc(8,"mat-form-field",13),s.Jc(9,"input",19),s.Pc(10,PI),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.API.API_key=e})),s.Ic(),s.Jc(11,"mat-hint"),s.Jc(12,"a",39),s.Hc(13),s.Nc(14,TI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(15,"div",40),s.Jc(16,"button",41),s.Wc("click",(function(){return s.rd(t),s.ad(2).generateAPIKey()})),s.Hc(17),s.Nc(18,RI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.API.use_API_key),s.pc(6),s.gd("disabled",!t.new_config.API.use_API_key)("ngModel",t.new_config.API.API_key)}}TI=$localize`:View API docs setting hint␟41016a73d8ad85e6cb26dffa0a8fab9fe8f60d8e␟7819423665857999846:View documentation`,RI=$localize`:Generate key button␟1b258b258b4cc475ceb2871305b61756b0134f4a␟5193539160604294602:Generate`,MI=$localize`:Use YouTube API setting␟d5d7c61349f3b0859336066e6d453fc35d334fe5␟921806454742404419:Use YouTube API`;const NI=["placeholder",$localize`:Youtube API Key setting placeholder␟ce10d31febb3d9d60c160750570310f303a22c22␟8352766560503075759:Youtube API Key`];var LI,zI,BI,JI,VI,jI,$I,HI,UI,GI,WI,qI,KI,XI,YI,ZI;function QI(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.API.use_youtube_API=e})),s.Hc(4),s.Nc(5,MI),s.Gc(),s.Ic(),s.Ic(),s.Jc(6,"div",37),s.Jc(7,"mat-form-field",13),s.Jc(8,"input",19),s.Pc(9,NI),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.API.youtube_API_key=e})),s.Ic(),s.Jc(10,"mat-hint"),s.Jc(11,"a",42),s.Hc(12),s.Nc(13,LI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.API.use_youtube_API),s.pc(5),s.gd("disabled",!t.new_config.API.use_youtube_API)("ngModel",t.new_config.API.youtube_API_key)}}function tD(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"h6"),s.Bd(4,"Chrome"),s.Ic(),s.Jc(5,"p"),s.Jc(6,"a",43),s.Hc(7),s.Nc(8,zI),s.Gc(),s.Ic(),s.Bd(9,"\xa0"),s.Hc(10),s.Nc(11,BI),s.Gc(),s.Ic(),s.Jc(12,"p"),s.Hc(13),s.Nc(14,JI),s.Gc(),s.Ic(),s.Ec(15,"mat-divider",44),s.Ic(),s.Jc(16,"div",20),s.Jc(17,"h6"),s.Bd(18,"Firefox"),s.Ic(),s.Jc(19,"p"),s.Jc(20,"a",45),s.Hc(21),s.Nc(22,VI),s.Gc(),s.Ic(),s.Bd(23,"\xa0"),s.Hc(24),s.Nc(25,jI),s.Gc(),s.Ic(),s.Jc(26,"p"),s.Jc(27,"a",46),s.Hc(28),s.Nc(29,$I),s.Gc(),s.Ic(),s.Bd(30,"\xa0"),s.Hc(31),s.Nc(32,HI),s.Gc(),s.Ic(),s.Ec(33,"mat-divider",44),s.Ic(),s.Jc(34,"div",20),s.Jc(35,"h6"),s.Bd(36,"Bookmarklet"),s.Ic(),s.Jc(37,"p"),s.Hc(38),s.Nc(39,UI),s.Gc(),s.Ic(),s.Jc(40,"mat-checkbox",47),s.Wc("change",(function(e){return s.rd(t),s.ad(2).bookmarkletAudioOnlyChanged(e)})),s.Hc(41),s.Nc(42,GI),s.Gc(),s.Ic(),s.Jc(43,"p"),s.Jc(44,"a",48),s.Bd(45,"YTDL-Bookmarklet"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(44),s.gd("href",t.generated_bookmarklet_code,s.td)}}function eD(t,e){if(1&t&&(s.zd(0,AI,34,9,"div",9),s.Ec(1,"mat-divider"),s.zd(2,FI,19,3,"div",9),s.Ec(3,"mat-divider"),s.zd(4,QI,14,3,"div",9),s.Ec(5,"mat-divider"),s.zd(6,tD,46,1,"div",9)),2&t){const t=s.ad();s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config)}}function iD(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",12),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Advanced.use_default_downloading_agent=e})),s.Hc(4),s.Nc(5,WI),s.Gc(),s.Ic(),s.Ic(),s.Jc(6,"div",20),s.Jc(7,"mat-form-field"),s.Jc(8,"mat-label"),s.Hc(9),s.Nc(10,qI),s.Gc(),s.Ic(),s.Jc(11,"mat-select",24),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Advanced.custom_downloading_agent=e})),s.Jc(12,"mat-option",50),s.Bd(13,"aria2c"),s.Ic(),s.Jc(14,"mat-option",51),s.Bd(15,"avconv"),s.Ic(),s.Jc(16,"mat-option",52),s.Bd(17,"axel"),s.Ic(),s.Jc(18,"mat-option",53),s.Bd(19,"curl"),s.Ic(),s.Jc(20,"mat-option",54),s.Bd(21,"ffmpeg"),s.Ic(),s.Jc(22,"mat-option",55),s.Bd(23,"httpie"),s.Ic(),s.Jc(24,"mat-option",56),s.Bd(25,"wget"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(26,"div",57),s.Jc(27,"mat-form-field"),s.Jc(28,"mat-label"),s.Hc(29),s.Nc(30,KI),s.Gc(),s.Ic(),s.Jc(31,"mat-select",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Advanced.logger_level=e})),s.Jc(32,"mat-option",58),s.Bd(33,"Debug"),s.Ic(),s.Jc(34,"mat-option",59),s.Bd(35,"Verbose"),s.Ic(),s.Jc(36,"mat-option",60),s.Bd(37,"Info"),s.Ic(),s.Jc(38,"mat-option",61),s.Bd(39,"Warn"),s.Ic(),s.Jc(40,"mat-option",62),s.Bd(41,"Error"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(42,"div",20),s.Jc(43,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Advanced.allow_advanced_download=e})),s.Hc(44),s.Nc(45,XI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.Advanced.use_default_downloading_agent),s.pc(8),s.gd("disabled",t.new_config.Advanced.use_default_downloading_agent)("ngModel",t.new_config.Advanced.custom_downloading_agent),s.pc(20),s.gd("ngModel",t.new_config.Advanced.logger_level),s.pc(12),s.gd("ngModel",t.new_config.Advanced.allow_advanced_download)}}function nD(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"div",11),s.Jc(2,"div",23),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).new_config.Advanced.use_cookies=e})),s.Hc(4),s.Nc(5,YI),s.Gc(),s.Ic(),s.Jc(6,"button",63),s.Wc("click",(function(){return s.rd(t),s.ad(2).openCookiesUploaderDialog()})),s.Hc(7),s.Nc(8,ZI),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(3),s.gd("ngModel",t.new_config.Advanced.use_cookies)}}function sD(t,e){1&t&&(s.Jc(0,"div",64),s.Ec(1,"app-updater"),s.Ic())}function aD(t,e){if(1&t&&(s.zd(0,iD,46,5,"div",9),s.Ec(1,"mat-divider"),s.zd(2,nD,9,1,"div",9),s.Ec(3,"mat-divider"),s.zd(4,sD,2,0,"div",49)),2&t){const t=s.ad();s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config),s.pc(2),s.gd("ngIf",t.new_config)}}LI=$localize`:Youtube API Key setting hint␟8602e313cdfa7c4cc475ccbe86459fce3c3fd986␟3231872778665115286:Generating a key is easy!`,zI=$localize`:Chrome ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,BI=$localize`:Chrome click here suffix␟7f09776373995003161235c0c8d02b7f91dbc4df␟2498765655243362925:to download the official YoutubeDL-Material Chrome extension manually.`,JI=$localize`:Chrome setup suffix␟5b5296423906ab3371fdb2b5a5aaa83acaa2ee52␟8028660067162629884:You must manually load the extension and modify the extension's settings to set the frontend URL.`,VI=$localize`:Firefox ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,jI=$localize`:Firefox click here suffix␟9a2ec6da48771128384887525bdcac992632c863␟8910153976238540666:to install the official YoutubeDL-Material Firefox extension right off the Firefox extensions page.`,$I=$localize`:Firefox setup prefix link␟eb81be6b49e195e5307811d1d08a19259d411f37␟3930152199106610543:Detailed setup instructions.`,HI=$localize`:Firefox setup suffix␟cb17ff8fe3961cf90f44bee97c88a3f3347a7e55␟5226296152980000564:Not much is required other than changing the extension's settings to set the frontend URL.`,UI=$localize`:Bookmarklet instructions␟61b81b11aad0b9d970ece2fce18405f07eac69c2␟907045314542317789:Drag the link below to your bookmarks, and you're good to go! Just navigate to the YouTube video you'd like to download, and click the bookmark.`,GI=$localize`:Generate audio only bookmarklet checkbox␟c505d6c5de63cc700f0aaf8a4b31fae9e18024e5␟7868265792526063076:Generate 'audio only' bookmarklet`,WI=$localize`:Use default downloading agent setting␟5fab47f146b0a4b809dcebf3db9da94df6299ea1␟1862425442411516950:Use default downloading agent`,qI=$localize`:Custom downloader select label␟ec71e08aee647ea4a71fd6b7510c54d84a797ca6␟13573305706839101:Select a downloader`,KI=$localize`:Logger level select label␟00e274c496b094a019f0679c3fab3945793f3335␟6118371693924897057:Select a logger level`,XI=$localize`:Allow advanced downloading setting␟dc3d990391c944d1fbfc7cfb402f7b5e112fb3a8␟4097058672287489906:Allow advanced download`,YI=$localize`:Use cookies setting␟431e5f3a0dde88768d1074baedd65266412b3f02␟7284221456145715230:Use Cookies`,ZI=$localize`:Set cookies button␟80651a7ad1229ea6613557d3559f702cfa5aecf5␟7799461682551341531:Set Cookies`;const oD=["label",$localize`:Users settings label␟4d13a9cd5ed3dcee0eab22cb25198d43886942be␟4555457172864212828:Users`];var rD;function lD(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-tab",1),s.Pc(1,oD),s.Jc(2,"div",65),s.Jc(3,"mat-checkbox",16),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().new_config.Users.allow_registration=e})),s.Hc(4),s.Nc(5,rD),s.Gc(),s.Ic(),s.Ic(),s.Ec(6,"app-modify-users"),s.Ic()}if(2&t){const t=s.ad();s.pc(3),s.gd("ngModel",t.new_config.Users.allow_registration)}}rD=$localize`:Allow registration setting␟37224420db54d4bc7696f157b779a7225f03ca9d␟7605921570763703610:Allow user registration`;const cD=["label",$localize`:Logs settings label␟eb3d5aefff38a814b76da74371cbf02c0789a1ef␟4804785061014590286:Logs`];function dD(t,e){1&t&&(s.Jc(0,"div",66),s.Ec(1,"app-logs-viewer"),s.Ic())}function hD(t,e){1&t&&(s.Jc(0,"mat-tab",1),s.Pc(1,cD),s.zd(2,dD,2,0,"ng-template",3),s.Ic())}let uD=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.sanitizer=i,this.dialog=n,this.all_locales=ik,this.supported_locales=["en","es","de"],this.initialLocale=localStorage.getItem("locale"),this.initial_config=null,this.new_config=null,this.loading_config=!1,this.generated_bookmarklet_code=null,this.bookmarkletAudioOnly=!1,this._settingsSame=!0,this.latestGithubRelease=null,this.CURRENT_VERSION="v4.0"}get settingsAreTheSame(){return this._settingsSame=this.settingsSame(),this._settingsSame}set settingsAreTheSame(t){this._settingsSame=t}ngOnInit(){this.getConfig(),this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode()),this.getLatestGithubRelease()}getConfig(){this.initial_config=this.postsService.config,this.new_config=JSON.parse(JSON.stringify(this.initial_config))}settingsSame(){return JSON.stringify(this.new_config)===JSON.stringify(this.initial_config)}saveSettings(){this.postsService.setConfig({YoutubeDLMaterial:this.new_config}).subscribe(t=>{t.success&&(!this.initial_config.Advanced.multi_user_mode&&this.new_config.Advanced.multi_user_mode&&this.postsService.checkAdminCreationStatus(!0),this.initial_config=JSON.parse(JSON.stringify(this.new_config)),this.postsService.reload_config.next(!0))},t=>{console.error("Failed to save config!")})}setNewPin(){this.dialog.open(ek,{data:{resetMode:!0}})}generateAPIKey(){this.postsService.generateNewAPIKey().subscribe(t=>{t.new_api_key&&(this.initial_config.API.API_key=t.new_api_key,this.new_config.API.API_key=t.new_api_key)})}localeSelectChanged(t){localStorage.setItem("locale",t),this.openSnackBar("Language successfully changed! Reload to update the page.")}generateBookmarklet(){this.bookmarksite("YTDL-Material",this.generated_bookmarklet_code)}generateBookmarkletCode(){return`javascript:(function()%7Bwindow.open('${window.location.href.split("#")[0]+"#/home;url="}' + encodeURIComponent(window.location) + ';audioOnly=${this.bookmarkletAudioOnly}')%7D)()`}bookmarkletAudioOnlyChanged(t){this.bookmarkletAudioOnly=t.checked,this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode())}bookmarksite(t,e){if(document.all)window.external.AddFavorite(e,t);else if(window.chrome)this.openSnackBar("Chrome users must drag the 'Alternate URL' link to your bookmarks.");else if(window.sidebar)window.sidebar.addPanel(t,e,"");else if(window.opera&&window.print){const i=document.createElement("a");i.setAttribute("href",e),i.setAttribute("title",t),i.setAttribute("rel","sidebar"),i.click()}}openArgsModifierDialog(){this.dialog.open(Vk,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe(t=>{null!=t&&(this.new_config.Downloader.custom_args=t)})}getLatestGithubRelease(){this.postsService.getLatestGithubRelease().subscribe(t=>{this.latestGithubRelease=t})}openCookiesUploaderDialog(){this.dialog.open(rC,{width:"65vw"})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg),s.Dc(n.b),s.Dc(bd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-settings"]],decls:32,vars:5,consts:[["mat-dialog-title",""],[6,"label"],["matTabContent","","style","padding: 15px;"],["matTabContent",""],["label","Users",4,"ngIf"],["label","Logs",4,"ngIf"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12","mt-3"],["color","accent",1,"text-field"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mb-4"],["color","accent",3,"ngModel","ngModelChange"],[1,"col-12","mt-3","mb-4"],[1,"text-field"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-5"],[1,"col-12","mt-4"],["color","accent",3,"disabled","ngModel","ngModelChange"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-download-only-new-videos-from-a-playlist"],["value","default"],["value","dark"],[1,"col-12","mb-2"],["color","accent"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent",1,"text-field",2,"margin-right","12px"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-icon-button","",1,"args-edit-button",3,"click"],["mat-stroked-button","",2,"margin-left","15px","margin-bottom","10px",3,"disabled","click"],[1,"col-12","mb-3"],[1,"enable-api-key-div"],["target","_blank","href","https://stoplight.io/p/docs/gh/tzahi12345/youtubedl-material"],[1,"api-key-div"],["matTooltip-i18n","","matTooltip","This will delete your old API key!","mat-stroked-button","",3,"click"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/chrome-extension/youtubedl-material-chrome-extension.zip?raw=true"],[1,"ext-divider"],["href","https://addons.mozilla.org/en-US/firefox/addon/youtubedl-material/","target","_blank"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/wiki/Firefox-Extension","target","_blank"],[3,"change"],["target","_blank",3,"href"],["class","container-fluid mt-1",4,"ngIf"],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"col-12","mt-2","mb-1"],["value","debug"],["value","verbose"],["value","info"],["value","warn"],["value","error"],["mat-stroked-button","",1,"checkbox-button",3,"click"],[1,"container-fluid","mt-1"],[2,"margin-left","48px","margin-top","24px"],[2,"margin-left","48px","margin-top","24px","height","340px"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Nc(1,IS),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"mat-tab-group"),s.Jc(4,"mat-tab",1),s.Pc(5,DS),s.zd(6,dI,11,6,"ng-template",2),s.Ic(),s.Jc(7,"mat-tab",1),s.Pc(8,ES),s.zd(9,yI,1,1,"ng-template",3),s.Ic(),s.Jc(10,"mat-tab",1),s.Pc(11,OS),s.zd(12,eD,7,4,"ng-template",3),s.Ic(),s.Jc(13,"mat-tab",1),s.Pc(14,AS),s.zd(15,aD,5,3,"ng-template",3),s.Ic(),s.zd(16,lD,7,1,"mat-tab",4),s.zd(17,hD,3,0,"mat-tab",5),s.Ic(),s.Ic(),s.Jc(18,"mat-dialog-actions"),s.Jc(19,"div",6),s.Jc(20,"button",7),s.Wc("click",(function(){return e.saveSettings()})),s.Jc(21,"mat-icon"),s.Bd(22,"done"),s.Ic(),s.Bd(23,"\xa0\xa0 "),s.Hc(24),s.Nc(25,PS),s.Gc(),s.Ic(),s.Jc(26,"button",8),s.Jc(27,"mat-icon"),s.Bd(28,"cancel"),s.Ic(),s.Bd(29,"\xa0\xa0 "),s.Jc(30,"span"),s.Nc(31,TS),s.Ic(),s.Ic(),s.Ic(),s.Ic()),2&t&&(s.pc(16),s.gd("ngIf",e.postsService.config&&e.postsService.config.Advanced.multi_user_mode),s.pc(1),s.gd("ngIf",e.postsService.config),s.pc(3),s.gd("disabled",e.settingsSame()),s.pc(6),s.gd("mat-dialog-close",!1),s.pc(5),s.Qc(e.settingsAreTheSame+""),s.Oc(31))},directives:[yd,wd,Ff,Cf,_f,ve.t,xd,bs,vu,vd,Fu,Bc,Ru,Rs,ho,Js,qa,Oc,gr,Ac,Gm,rs,ve.s,Kp,CC,vS,SS],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px;top:20px}.enable-api-key-div[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:15px}.api-key-div[_ngcontent-%COMP%], .enable-api-key-div[_ngcontent-%COMP%]{display:inline-block}.text-field[_ngcontent-%COMP%]{min-width:30%}.checkbox-button[_ngcontent-%COMP%]{margin-left:15px;margin-bottom:12px;bottom:4px}"]}),t})();var pD,mD,gD,fD,bD,_D,vD,yD,wD,xD;function kD(t,e){1&t&&(s.Jc(0,"span",12),s.Ec(1,"mat-spinner",13),s.Bd(2,"\xa0"),s.Hc(3),s.Nc(4,wD),s.Gc(),s.Ic()),2&t&&(s.pc(1),s.gd("diameter",22))}function CD(t,e){1&t&&(s.Jc(0,"mat-icon",14),s.Bd(1,"done"),s.Ic())}function SD(t,e){if(1&t&&(s.Jc(0,"a",2),s.Hc(1),s.Nc(2,xD),s.Gc(),s.Bd(3),s.Ic()),2&t){const t=s.ad();s.gd("href",t.latestUpdateLink,s.td),s.pc(3),s.Dd(" - ",t.latestGithubRelease.tag_name,"")}}function ID(t,e){1&t&&(s.Jc(0,"span"),s.Bd(1,"You are up to date."),s.Ic())}pD=$localize`:About dialog title␟cec82c0a545f37420d55a9b6c45c20546e82f94e␟8863443674032361244:About YoutubeDL-Material`,mD=$localize`:About first paragraph␟199c17e5d6a419313af3c325f06dcbb9645ca618␟7048705050249868840:is an open-source YouTube downloader built under Google's Material Design specifications. You can seamlessly download your favorite videos as video or audio files, and even subscribe to your favorite channels and playlists to keep updated with their new videos.`,gD=$localize`:About second paragraph␟bc0ad0ee6630acb7fcb7802ec79f5a0ee943c1a7␟786314306504588277:has some awesome features included! An extensive API, Docker support, and localization (translation) support. Read up on all the supported features by clicking on the GitHub icon above.`,fD=$localize`:Version label␟a45e3b05f0529dc5246d70ef62304c94426d4c81␟5296103174605274070:Installed version:`,bD=$localize`:Update through settings menu hint␟189b28aaa19b3c51c6111ad039c4fd5e2a22e370␟41092526824232895:You can update from the settings menu.`,_D=$localize`:About bug prefix␟b33536f59b94ec935a16bd6869d836895dc5300c␟3353248286278121979:Found a bug or have a suggestion?`,vD=$localize`:About bug click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,yD=$localize`:About bug suffix␟e1f398f38ff1534303d4bb80bd6cece245f24016␟1971178156716923826:to create an issue!`,wD=$localize`:Checking for updates text␟e22f3a5351944f3a1a10cfc7da6f65dfbe0037fe␟9163379406577397382:Checking for updates...`,xD=$localize`:View latest update␟a16e92385b4fd9677bb830a4b796b8b79c113290␟509090351011426949:Update available`;let DD=(()=>{class t{constructor(t){this.postsService=t,this.projectLink="https://github.com/Tzahi12345/YoutubeDL-Material",this.issuesLink="https://github.com/Tzahi12345/YoutubeDL-Material/issues",this.latestUpdateLink="https://github.com/Tzahi12345/YoutubeDL-Material/releases/latest",this.latestGithubRelease=null,this.checking_for_updates=!0,this.current_version_tag="v4.0"}ngOnInit(){this.getLatestGithubRelease()}getLatestGithubRelease(){this.postsService.getLatestGithubRelease().subscribe(t=>{this.checking_for_updates=!1,this.latestGithubRelease=t})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-about-dialog"]],decls:49,vars:7,consts:[["mat-dialog-title","",2,"position","relative"],[1,"logo-image"],["target","_blank",3,"href"],["src","assets/images/GitHub-64px.png",2,"width","32px"],["src","assets/images/logo_128px.png",2,"width","32px","margin-left","15px"],[2,"margin-bottom","5px"],[2,"margin-top","10px"],["style","display: inline-block",4,"ngIf"],["class","version-checked-icon",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","","mat-dialog-close","",2,"margin-bottom","5px"],[2,"display","inline-block"],[1,"version-spinner",3,"diameter"],[1,"version-checked-icon"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Hc(1),s.Nc(2,pD),s.Gc(),s.Jc(3,"span",1),s.Jc(4,"a",2),s.Ec(5,"img",3),s.Ic(),s.Ec(6,"img",4),s.Ic(),s.Ic(),s.Jc(7,"mat-dialog-content"),s.Jc(8,"div",5),s.Jc(9,"p"),s.Jc(10,"i"),s.Bd(11,"YoutubeDL-Material"),s.Ic(),s.Bd(12,"\xa0"),s.Hc(13),s.Nc(14,mD),s.Gc(),s.Ic(),s.Jc(15,"p"),s.Jc(16,"i"),s.Bd(17,"YoutubeDL-Material"),s.Ic(),s.Bd(18,"\xa0"),s.Hc(19),s.Nc(20,gD),s.Gc(),s.Ic(),s.Ec(21,"mat-divider"),s.Jc(22,"h5",6),s.Bd(23,"Installation details:"),s.Ic(),s.Jc(24,"p"),s.Hc(25),s.Nc(26,fD),s.Gc(),s.Bd(27),s.zd(28,kD,5,1,"span",7),s.zd(29,CD,2,0,"mat-icon",8),s.Bd(30,"\xa0\xa0"),s.zd(31,SD,4,2,"a",9),s.Bd(32,". "),s.Hc(33),s.Nc(34,bD),s.Gc(),s.zd(35,ID,2,0,"span",10),s.Ic(),s.Jc(36,"p"),s.Hc(37),s.Nc(38,_D),s.Gc(),s.Bd(39,"\xa0"),s.Jc(40,"a",2),s.Hc(41),s.Nc(42,vD),s.Gc(),s.Ic(),s.Bd(43,"\xa0"),s.Hc(44),s.Nc(45,yD),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(46,"mat-dialog-actions"),s.Jc(47,"button",11),s.Bd(48,"Close"),s.Ic(),s.Ic()),2&t&&(s.pc(4),s.gd("href",e.projectLink,s.td),s.pc(23),s.Dd("\xa0",e.current_version_tag," - "),s.pc(1),s.gd("ngIf",e.checking_for_updates),s.pc(1),s.gd("ngIf",!e.checking_for_updates),s.pc(2),s.gd("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name!==e.current_version_tag),s.pc(4),s.gd("ngIf",!e.checking_for_updates&&e.latestGithubRelease.tag_name===e.current_version_tag),s.pc(5),s.gd("href",e.issuesLink,s.td))},directives:[yd,wd,Fu,ve.t,xd,bs,vd,mm,vu],styles:["i[_ngcontent-%COMP%]{margin-right:1px}.version-spinner[_ngcontent-%COMP%]{top:4px;margin-right:5px;margin-left:5px;display:inline-block}.version-checked-icon[_ngcontent-%COMP%]{top:5px;margin-left:2px;position:relative;margin-right:-3px}.logo-image[_ngcontent-%COMP%]{position:absolute;top:-10px;right:-10px}"]}),t})();var ED,OD,AD,PD,TD,RD,MD,FD;function ND(t,e){if(1&t&&(s.Jc(0,"div"),s.Jc(1,"div"),s.Jc(2,"strong"),s.Hc(3),s.Nc(4,PD),s.Gc(),s.Ic(),s.Bd(5),s.Ic(),s.Jc(6,"div"),s.Jc(7,"strong"),s.Hc(8),s.Nc(9,TD),s.Gc(),s.Ic(),s.Bd(10),s.Ic(),s.Jc(11,"div"),s.Jc(12,"strong"),s.Hc(13),s.Nc(14,RD),s.Gc(),s.Ic(),s.Bd(15),s.bd(16,"date"),s.Ic(),s.Ec(17,"div",6),s.Ic()),2&t){const t=s.ad();s.pc(5),s.Dd("\xa0",t.postsService.user.name," "),s.pc(5),s.Dd("\xa0",t.postsService.user.uid," "),s.pc(5),s.Dd("\xa0",t.postsService.user.created?s.cd(16,3,t.postsService.user.created):"N/A"," ")}}function LD(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"h5"),s.Jc(2,"mat-icon"),s.Bd(3,"warn"),s.Ic(),s.Hc(4),s.Nc(5,MD),s.Gc(),s.Ic(),s.Jc(6,"button",7),s.Wc("click",(function(){return s.rd(t),s.ad().loginClicked()})),s.Hc(7),s.Nc(8,FD),s.Gc(),s.Ic(),s.Ic()}}ED=$localize`:User profile dialog title␟42ff677ec14f111e88bd6cdd30145378e994d1bf␟3496181279436331299:Your Profile`,OD=$localize`:Close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,AD=$localize`:Logout␟bb694b49d408265c91c62799c2b3a7e3151c824d␟3797778920049399855:Logout`,PD=$localize`:Name␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`,TD=$localize`:UID␟ac9d09de42edca1296371e4d801349c9096ac8de␟5524669285756836501:UID:`,RD=$localize`:Created␟a5ed099ffc9e96f6970df843289ade8a7d20ab9f␟1616250945945379783:Created:`,MD=$localize`:Not logged in notification␟fa96f2137af0a24e6d6d54c598c0af7d5d5ad344␟276791482480581557:You are not logged in.`,FD=$localize`:Login␟6765b4c916060f6bc42d9bb69e80377dbcb5e4e9␟2454050363478003966:Login`;let zD=(()=>{class t{constructor(t,e,i){this.postsService=t,this.router=e,this.dialogRef=i}ngOnInit(){}loginClicked(){this.router.navigate(["/login"]),this.dialogRef.close()}logoutClicked(){this.postsService.logout(),this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(wx),s.Dc(ud))},t.\u0275cmp=s.xc({type:t,selectors:[["app-user-profile-dialog"]],decls:14,vars:2,consts:[["mat-dialog-title",""],[4,"ngIf"],[2,"width","100%"],[2,"position","relative"],["mat-stroked-button","","mat-dialog-close","","color","primary"],["mat-stroked-button","","color","warn",2,"position","absolute","right","0px",3,"click"],[2,"margin-top","20px"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Nc(1,ED),s.Ic(),s.Jc(2,"mat-dialog-content"),s.zd(3,ND,18,5,"div",1),s.zd(4,LD,9,0,"div",1),s.Ic(),s.Jc(5,"mat-dialog-actions"),s.Jc(6,"div",2),s.Jc(7,"div",3),s.Jc(8,"button",4),s.Hc(9),s.Nc(10,OD),s.Gc(),s.Ic(),s.Jc(11,"button",5),s.Wc("click",(function(){return e.logoutClicked()})),s.Hc(12),s.Nc(13,AD),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic()),2&t&&(s.pc(3),s.gd("ngIf",e.postsService.isLoggedIn&&e.postsService.user),s.pc(1),s.gd("ngIf",!e.postsService.isLoggedIn||!e.postsService.user))},directives:[yd,wd,ve.t,xd,bs,vd,vu],pipes:[ve.f],styles:[""]}),t})();var BD,JD;BD=$localize`:Create admin account dialog title␟a1dbca87b9f36d2b06a5cbcffb5814c4ae9b798a␟1671378244656756701:Create admin account`,JD=$localize`:No default admin detected explanation␟2d2adf3ca26a676bca2269295b7455a26fd26980␟1428648941210584739:No default admin account detected. This will create and set the password for an admin account with the user name as 'admin'.`;const VD=["placeholder",$localize`:Password␟c32ef07f8803a223a83ed17024b38e8d82292407␟1431416938026210429:Password`];var jD;function $D(t,e){1&t&&s.Ec(0,"mat-spinner",7),2&t&&s.gd("diameter",25)}jD=$localize`:Create␟70a67e04629f6d412db0a12d51820b480788d795␟5674286808255988565:Create`;let HD=(()=>{class t{constructor(t,e){this.postsService=t,this.dialogRef=e,this.creating=!1,this.input=""}ngOnInit(){}create(){this.creating=!0,this.postsService.createAdminAccount(this.input).subscribe(t=>{this.creating=!1,this.dialogRef.close(!!t.success)},t=>{console.log(t),this.dialogRef.close(!1)})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(ud))},t.\u0275cmp=s.xc({type:t,selectors:[["app-set-default-admin-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],[2,"position","relative"],["color","accent"],["type","password","matInput","",3,"ngModel","keyup.enter","ngModelChange",6,"placeholder"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],[1,"spinner-div"],[3,"diameter",4,"ngIf"],[3,"diameter"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Hc(1),s.Nc(2,BD),s.Gc(),s.Ic(),s.Jc(3,"mat-dialog-content"),s.Jc(4,"div"),s.Jc(5,"p"),s.Nc(6,JD),s.Ic(),s.Ic(),s.Jc(7,"div",1),s.Jc(8,"div"),s.Jc(9,"mat-form-field",2),s.Jc(10,"input",3),s.Pc(11,VD),s.Wc("keyup.enter",(function(){return e.create()}))("ngModelChange",(function(t){return e.input=t})),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(12,"mat-dialog-actions"),s.Jc(13,"button",4),s.Wc("click",(function(){return e.create()})),s.Hc(14),s.Nc(15,jD),s.Gc(),s.Ic(),s.Jc(16,"div",5),s.zd(17,$D,1,1,"mat-spinner",6),s.Ic(),s.Ic()),2&t&&(s.pc(10),s.gd("ngModel",e.input),s.pc(3),s.gd("disabled",0===e.input.length),s.pc(4),s.gd("ngIf",e.creating))},directives:[yd,wd,Bc,Ru,Rs,Js,qa,xd,bs,ve.t,mm],styles:[".spinner-div[_ngcontent-%COMP%]{position:relative;left:10px;bottom:5px}"]}),t})();const UD=["sidenav"],GD=["hamburgerMenu"];var WD,qD,KD,XD,YD,ZD,QD,tE;function eE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",21,22),s.Wc("click",(function(){return s.rd(t),s.ad().toggleSidenav()})),s.Jc(2,"mat-icon"),s.Bd(3,"menu"),s.Ic(),s.Ic()}}function iE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",23),s.Wc("click",(function(){return s.rd(t),s.ad().goBack()})),s.Jc(1,"mat-icon"),s.Bd(2,"arrow_back"),s.Ic(),s.Ic()}}function nE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",13),s.Wc("click",(function(){return s.rd(t),s.ad().openProfileDialog()})),s.Jc(1,"mat-icon"),s.Bd(2,"person"),s.Ic(),s.Jc(3,"span"),s.Nc(4,qD),s.Ic(),s.Ic()}}function sE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",13),s.Wc("click",(function(e){return s.rd(t),s.ad().themeMenuItemClicked(e)})),s.Jc(1,"mat-icon"),s.Bd(2),s.Ic(),s.Jc(3,"span"),s.Nc(4,KD),s.Ic(),s.Ec(5,"mat-slide-toggle",24),s.Ic()}if(2&t){const t=s.ad();s.pc(2),s.Cd("default"===t.postsService.theme.key?"brightness_5":"brightness_2"),s.pc(3),s.gd("checked","dark"===t.postsService.theme.key)}}function aE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",13),s.Wc("click",(function(){return s.rd(t),s.ad().openSettingsDialog()})),s.Jc(1,"mat-icon"),s.Bd(2,"settings"),s.Ic(),s.Jc(3,"span"),s.Nc(4,XD),s.Ic(),s.Ic()}}function oE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"a",25),s.Wc("click",(function(){return s.rd(t),s.ad(),s.nd(27).close()})),s.Hc(1),s.Nc(2,YD),s.Gc(),s.Ic()}}function rE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"a",26),s.Wc("click",(function(){return s.rd(t),s.ad(),s.nd(27).close()})),s.Hc(1),s.Nc(2,ZD),s.Gc(),s.Ic()}}function lE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"a",27),s.Wc("click",(function(){return s.rd(t),s.ad(),s.nd(27).close()})),s.Hc(1),s.Nc(2,QD),s.Gc(),s.Ic()}}function cE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"a",28),s.Wc("click",(function(){return s.rd(t),s.ad(),s.nd(27).close()})),s.Hc(1),s.Nc(2,tE),s.Gc(),s.Ic()}}WD=$localize`:About menu label␟004b222ff9ef9dd4771b777950ca1d0e4cd4348a␟1726363342938046830:About`,qD=$localize`:Profile menu label␟994363f08f9fbfa3b3994ff7b35c6904fdff18d8␟4915431133669985304:Profile`,KD=$localize`:Dark mode toggle label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`,XD=$localize`:Settings menu label␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`,YD=$localize`:Navigation menu Home Page title␟92eee6be6de0b11c924e3ab27db30257159c0a7c␟2821179408673282599:Home`,ZD=$localize`:Navigation menu Login Page title␟6765b4c916060f6bc42d9bb69e80377dbcb5e4e9␟2454050363478003966:Login`,QD=$localize`:Navigation menu Subscriptions Page title␟357064ca9d9ac859eb618e28e8126fa32be049e2␟1812379335568847528:Subscriptions`,tE=$localize`:Navigation menu Downloads Page title␟822fab38216f64e8166d368b59fe756ca39d301b␟9040361513231775562:Downloads`;let dE=(()=>{class t{constructor(t,e,i,n,s,a){this.postsService=t,this.snackBar=e,this.dialog=i,this.router=n,this.overlayContainer=s,this.elementRef=a,this.THEMES_CONFIG=zv,this.topBarTitle="Youtube Downloader",this.defaultTheme=null,this.allowThemeChange=null,this.allowSubscriptions=!1,this.enableDownloadsManager=!1,this.settingsPinRequired=!0,this.navigator=null,this.navigator=localStorage.getItem("player_navigator"),this.router.events.subscribe(t=>{t instanceof ry?this.navigator=localStorage.getItem("player_navigator"):t instanceof ly&&this.hamburgerMenuButton&&this.hamburgerMenuButton.nativeElement&&this.hamburgerMenuButton.nativeElement.blur()}),this.postsService.config_reloaded.subscribe(t=>{t&&this.loadConfig()})}toggleSidenav(){this.sidenav.toggle()}loadConfig(){this.topBarTitle=this.postsService.config.Extra.title_top,this.settingsPinRequired=this.postsService.config.Extra.settings_pin_required;const t=this.postsService.config.Themes;this.defaultTheme=t?this.postsService.config.Themes.default_theme:"default",this.allowThemeChange=!t||this.postsService.config.Themes.allow_theme_change,this.allowSubscriptions=this.postsService.config.Subscriptions.allow_subscriptions,this.enableDownloadsManager=this.postsService.config.Extra.enable_downloads_manager,localStorage.getItem("theme")||this.setTheme(t?this.defaultTheme:"default")}setTheme(t){let e=null;this.THEMES_CONFIG[t]?(localStorage.getItem("theme")&&(e=localStorage.getItem("theme"),this.THEMES_CONFIG[e]||(console.log("bad theme found, setting to default"),null===this.defaultTheme?console.error("No default theme detected"):(localStorage.setItem("theme",this.defaultTheme),e=localStorage.getItem("theme")))),localStorage.setItem("theme",t),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor=this.THEMES_CONFIG[t].background_color,this.postsService.setTheme(t),this.onSetTheme(this.THEMES_CONFIG[t].css_label,e?this.THEMES_CONFIG[e].css_label:e)):console.error("Invalid theme: "+t)}onSetTheme(t,e){e&&(document.body.classList.remove(e),this.overlayContainer.getContainerElement().classList.remove(e)),this.overlayContainer.getContainerElement().classList.add(t),this.componentCssClass=t}flipTheme(){"default"===this.postsService.theme.key?this.setTheme("dark"):"dark"===this.postsService.theme.key&&this.setTheme("default")}themeMenuItemClicked(t){this.flipTheme(),t.stopPropagation()}ngOnInit(){localStorage.getItem("theme")&&this.setTheme(localStorage.getItem("theme")),this.postsService.open_create_default_admin_dialog.subscribe(t=>{t&&this.dialog.open(HD).afterClosed().subscribe(t=>{t?"/login"!==this.router.url&&this.router.navigate(["/login"]):console.error("Failed to create default admin account. See logs for details.")})})}goBack(){this.navigator?this.router.navigateByUrl(this.navigator):this.router.navigate(["/home"])}openSettingsDialog(){this.settingsPinRequired?this.openPinDialog():this.actuallyOpenSettingsDialog()}actuallyOpenSettingsDialog(){this.dialog.open(uD,{width:"80vw"})}openPinDialog(){this.dialog.open(ek,{}).afterClosed().subscribe(t=>{t&&this.actuallyOpenSettingsDialog()})}openAboutDialog(){this.dialog.open(DD,{width:"80vw"})}openProfileDialog(){this.dialog.open(zD,{width:"60vw"})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg),s.Dc(bd),s.Dc(wx),s.Dc($l),s.Dc(s.r))},t.\u0275cmp=s.xc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.Fd(UD,!0),s.Fd(GD,!0,s.r)),2&t&&(s.md(i=s.Xc())&&(e.sidenav=i.first),s.md(i=s.Xc())&&(e.hamburgerMenuButton=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&s.rc(e.componentCssClass)},decls:35,vars:15,consts:[[2,"width","100%","height","100%"],[1,"mat-elevation-z3",2,"position","relative","z-index","10"],["color","primary",1,"sticky-toolbar","top-toolbar"],["width","100%","height","100%",1,"flex-row"],[1,"flex-column",2,"text-align","left","margin-top","1px"],["style","outline: none","mat-icon-button","","aria-label","Toggle side navigation",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"flex-column",2,"text-align","center","margin-top","5px"],[2,"font-size","22px","text-shadow","#141414 0.25px 0.25px 1px"],[1,"flex-column",2,"text-align","right","align-items","flex-end"],["mat-icon-button","",3,"matMenuTriggerFor"],["menuSettings","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"sidenav-container",2,"height","calc(100% - 64px)"],[2,"height","100%"],["sidenav",""],["mat-list-item","","routerLink","/home",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/login",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/subscriptions",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/downloads",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Toggle side navigation",2,"outline","none",3,"click"],["hamburgerMenu",""],["mat-icon-button","",3,"click"],[1,"theme-slide-toggle",3,"checked"],["mat-list-item","","routerLink","/home",3,"click"],["mat-list-item","","routerLink","/login",3,"click"],["mat-list-item","","routerLink","/subscriptions",3,"click"],["mat-list-item","","routerLink","/downloads",3,"click"]],template:function(t,e){if(1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.Jc(2,"mat-toolbar",2),s.Jc(3,"div",3),s.Jc(4,"div",4),s.zd(5,eE,4,0,"button",5),s.zd(6,iE,3,0,"button",6),s.Ic(),s.Jc(7,"div",7),s.Jc(8,"div",8),s.Bd(9),s.Ic(),s.Ic(),s.Jc(10,"div",9),s.Jc(11,"button",10),s.Jc(12,"mat-icon"),s.Bd(13,"more_vert"),s.Ic(),s.Ic(),s.Jc(14,"mat-menu",null,11),s.zd(16,nE,5,0,"button",12),s.zd(17,sE,6,2,"button",12),s.zd(18,aE,5,0,"button",12),s.Jc(19,"button",13),s.Wc("click",(function(){return e.openAboutDialog()})),s.Jc(20,"mat-icon"),s.Bd(21,"info"),s.Ic(),s.Jc(22,"span"),s.Nc(23,WD),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(24,"div",14),s.Jc(25,"mat-sidenav-container",15),s.Jc(26,"mat-sidenav",null,16),s.Jc(28,"mat-nav-list"),s.zd(29,oE,3,0,"a",17),s.zd(30,rE,3,0,"a",18),s.zd(31,lE,3,0,"a",19),s.zd(32,cE,3,0,"a",20),s.Ic(),s.Ic(),s.Jc(33,"mat-sidenav-content"),s.Ec(34,"router-outlet"),s.Ic(),s.Ic(),s.Ic(),s.Ic()),2&t){const t=s.nd(15);s.yd("background",e.postsService.theme?e.postsService.theme.background_color:null,s.wc),s.pc(5),s.gd("ngIf","/player"!==e.router.url.split(";")[0]),s.pc(1),s.gd("ngIf","/player"===e.router.url.split(";")[0]),s.pc(3),s.Dd(" ",e.topBarTitle," "),s.pc(2),s.gd("matMenuTriggerFor",t),s.pc(5),s.gd("ngIf",e.postsService.isLoggedIn),s.pc(1),s.gd("ngIf",e.allowThemeChange),s.pc(1),s.gd("ngIf",!e.postsService.isLoggedIn||e.postsService.permissions.includes("settings")),s.pc(11),s.gd("ngIf",e.postsService.config&&(!e.postsService.config.Advanced.multi_user_mode||e.postsService.isLoggedIn)),s.pc(1),s.gd("ngIf",e.postsService.config&&e.postsService.config.Advanced.multi_user_mode&&!e.postsService.isLoggedIn),s.pc(1),s.gd("ngIf",e.postsService.config&&e.allowSubscriptions&&(!e.postsService.config.Advanced.multi_user_mode||e.postsService.isLoggedIn&&e.postsService.permissions.includes("subscriptions"))),s.pc(1),s.gd("ngIf",e.postsService.config&&e.enableDownloadsManager&&(!e.postsService.config.Advanced.multi_user_mode||e.postsService.isLoggedIn&&e.postsService.permissions.includes("downloads_manager"))),s.pc(1),s.yd("background",e.postsService.theme?e.postsService.theme.background_color:null,s.wc)}},directives:[Xg,ve.t,bs,Ep,vu,Cp,_p,pg,hg,qu,dg,Ex,Dg,tp,kx],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-basis:100%;flex:1}.theme-slide-toggle[_ngcontent-%COMP%]{top:2px;left:10px;position:relative;pointer-events:none}.sidenav-container[_ngcontent-%COMP%]{z-index:-1!important}.top-toolbar[_ngcontent-%COMP%]{height:64px}"]}),t})();function hE(t,e,i,n){return new(i||(i=Promise))((function(s,a){function o(t){try{l(n.next(t))}catch(e){a(e)}}function r(t){try{l(n.throw(t))}catch(e){a(e)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,r)}l((n=n.apply(t,e||[])).next())}))}var uE=i("Iab2");class pE{constructor(t){this.id=t&&t.id||null,this.title=t&&t.title||null,this.desc=t&&t.desc||null,this.thumbnailUrl=t&&t.thumbnailUrl||null,this.uploaded=t&&t.uploaded||null,this.videoUrl=t&&t.videoUrl||`https://www.youtube.com/watch?v=${this.id}`,this.uploaded=function(t){const e=new Date(t),i=gE(e.getMonth()+1),n=gE(e.getDate()),s=e.getFullYear();let a;a=e.getHours();const o=gE(e.getMinutes());let r="AM";const l=parseInt(a,10);return l>12?(r="PM",a=l-12):0===l&&(a="12"),a=gE(a),i+"-"+n+"-"+s+" "+a+":"+o+" "+r}(Date.parse(this.uploaded))}}let mE=(()=>{class t{constructor(t){this.http=t,this.url="https://www.googleapis.com/youtube/v3/search",this.key=null}initializeAPI(t){this.key=t}search(t){if(this.ValidURL(t))return new si.a;const e=[`q=${t}`,`key=${this.key}`,"part=snippet","type=video","maxResults=5"].join("&");return this.http.get(`${this.url}?${e}`).map(t=>t.items.map(t=>new pE({id:t.id.videoId,title:t.snippet.title,desc:t.snippet.description,thumbnailUrl:t.snippet.thumbnails.high.url,uploaded:t.snippet.publishedAt})))}ValidURL(t){return new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Sc($h))},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function gE(t){return t<10?"0"+t:t}var fE;fE=$localize`:Create a playlist dialog title␟17f0ea5d2d7a262b0e875acc70475f102aee84e6␟3949911572988594237:Create a playlist`;const bE=["placeholder",$localize`:Playlist name placeholder␟cff1428d10d59d14e45edec3c735a27b5482db59␟8953033926734869941:Name`];var _E,vE;function yE(t,e){1&t&&(s.Jc(0,"mat-label"),s.Hc(1),s.Nc(2,_E),s.Gc(),s.Ic())}function wE(t,e){1&t&&(s.Jc(0,"mat-label"),s.Hc(1),s.Nc(2,vE),s.Gc(),s.Ic())}function xE(t,e){if(1&t&&(s.Jc(0,"mat-option",8),s.Bd(1),s.Ic()),2&t){const t=e.$implicit;s.gd("value",t.id),s.pc(1),s.Cd(t.id)}}function kE(t,e){1&t&&(s.Jc(0,"div",9),s.Ec(1,"mat-spinner",10),s.Ic()),2&t&&(s.pc(1),s.gd("diameter",25))}_E=$localize`:Audio files title␟f47e2d56dd8a145b2e9599da9730c049d52962a2␟253926325379303932:Audio files`,vE=$localize`:Videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const CE=function(){return{standalone:!0}};let SE=(()=>{class t{constructor(t,e,i){this.data=t,this.postsService=e,this.dialogRef=i,this.filesToSelectFrom=null,this.type=null,this.filesSelect=new Fa,this.name="",this.create_in_progress=!1}ngOnInit(){this.data&&(this.filesToSelectFrom=this.data.filesToSelectFrom,this.type=this.data.type)}createPlaylist(){const t=this.getThumbnailURL();this.create_in_progress=!0,this.postsService.createPlaylist(this.name,this.filesSelect.value,this.type,t).subscribe(t=>{this.create_in_progress=!1,this.dialogRef.close(!!t.success)})}getThumbnailURL(){for(let t=0;t1?"first-result-card":"",i===n.results.length-1&&n.results.length>1?"last-result-card":"",1===n.results.length?"only-result-card":"")),s.pc(2),s.Dd(" ",t.title," "),s.pc(2),s.Dd(" ",t.uploaded," ")}}function $E(t,e){if(1&t&&(s.Jc(0,"div",33),s.zd(1,jE,12,7,"span",27),s.Ic()),2&t){const t=s.ad();s.pc(1),s.gd("ngForOf",t.results)}}var HE,UE,GE,WE;function qE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-checkbox",39),s.Wc("change",(function(e){return s.rd(t),s.ad().multiDownloadModeChanged(e)}))("ngModelChange",(function(e){return s.rd(t),s.ad().multiDownloadMode=e})),s.Hc(1),s.Nc(2,HE),s.Gc(),s.Ic()}if(2&t){const t=s.ad();s.gd("disabled",t.current_download)("ngModel",t.multiDownloadMode)}}function KE(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",40),s.Wc("click",(function(){return s.rd(t),s.ad().cancelDownload()})),s.Hc(1),s.Nc(2,UE),s.Gc(),s.Ic()}}HE=$localize`:Multi-download Mode checkbox␟96a01fafe135afc58b0f8071a4ab00234495ce18␟1215999553275961560: Multi-download Mode `,UE=$localize`:Cancel download button␟6a3777f913cf3f288664f0632b9f24794fdcc24e␟6991067716289442185: Cancel `,GE=$localize`:Advanced download mode panel␟322ed150e02666fe2259c5b4614eac7066f4ffa0␟7427754392029374006: Advanced `,WE=$localize`:Use custom args checkbox␟4e4c721129466be9c3862294dc40241b64045998␟5091669664044282329: Use custom args `;const XE=["placeholder",$localize`:Custom args placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var YE,ZE;YE=$localize`:Custom Args input hint␟a6911c2157f1b775284bbe9654ce5eb30cf45d7f␟1027155491043285709: No need to include URL, just everything after. Args are delimited using two commas like so: ,, `,ZE=$localize`:Use custom output checkbox␟3a92a3443c65a52f37ca7efb8f453b35dbefbf29␟5904983012542242085: Use custom output `;const QE=["placeholder",$localize`:Custom output placeholder␟d9c02face477f2f9cdaae318ccee5f89856851fb␟3075663591125020403:Custom output`];var tO,eO,iO,nO;function sO(t,e){if(1&t&&(s.Jc(0,"p"),s.Hc(1),s.Nc(2,iO),s.Gc(),s.Bd(3," \xa0"),s.Jc(4,"i"),s.Bd(5),s.Ic(),s.Ic()),2&t){const t=s.ad(2);s.pc(5),s.Cd(t.simulatedOutput)}}tO=$localize`:Youtube-dl output template documentation link␟fcfd4675b4c90f08d18d3abede9a9a4dff4cfdc7␟4895326106573044490:Documentation`,eO=$localize`:Custom Output input hint␟19d1ae64d94d28a29b2c57ae8671aace906b5401␟3584692608114953661:Path is relative to the config download path. Don't include extension.`,iO=$localize`:Simulated command label␟b7ffe7c6586d6f3f18a9246806a7c7d5538ab43e␟4637303589735709945: Simulated command: `,nO=$localize`:Use authentication checkbox␟8fad10737d3e3735a6699a4d89cbf6c20f6bb55f␟294759932648923187: Use authentication `;const aO=["placeholder",$localize`:YT Username placeholder␟08c74dc9762957593b91f6eb5d65efdfc975bf48␟5248717555542428023:Username`];function oO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",52),s.Jc(1,"mat-checkbox",46),s.Wc("change",(function(e){return s.rd(t),s.ad(2).youtubeAuthEnabledChanged(e)}))("ngModelChange",(function(e){return s.rd(t),s.ad(2).youtubeAuthEnabled=e})),s.Hc(2),s.Nc(3,nO),s.Gc(),s.Ic(),s.Jc(4,"mat-form-field",53),s.Jc(5,"input",49),s.Pc(6,aO),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).youtubeUsername=e})),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(1),s.gd("disabled",t.current_download)("ngModel",t.youtubeAuthEnabled)("ngModelOptions",s.id(6,LE)),s.pc(4),s.gd("ngModel",t.youtubeUsername)("ngModelOptions",s.id(7,LE))("disabled",!t.youtubeAuthEnabled)}}const rO=["placeholder",$localize`:YT Password placeholder␟c32ef07f8803a223a83ed17024b38e8d82292407␟1431416938026210429:Password`];function lO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",52),s.Jc(1,"mat-form-field",54),s.Jc(2,"input",55),s.Pc(3,rO),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad(2).youtubePassword=e})),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(2),s.gd("ngModel",t.youtubePassword)("ngModelOptions",s.id(3,LE))("disabled",!t.youtubeAuthEnabled)}}function cO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",0),s.Jc(1,"form",41),s.Jc(2,"mat-expansion-panel",42),s.Jc(3,"mat-expansion-panel-header"),s.Jc(4,"mat-panel-title"),s.Hc(5),s.Nc(6,GE),s.Gc(),s.Ic(),s.Ic(),s.zd(7,sO,6,1,"p",43),s.Jc(8,"div",44),s.Jc(9,"div",5),s.Jc(10,"div",45),s.Jc(11,"mat-checkbox",46),s.Wc("change",(function(e){return s.rd(t),s.ad().customArgsEnabledChanged(e)}))("ngModelChange",(function(e){return s.rd(t),s.ad().customArgsEnabled=e})),s.Hc(12),s.Nc(13,WE),s.Gc(),s.Ic(),s.Jc(14,"button",47),s.Wc("click",(function(){return s.rd(t),s.ad().openArgsModifierDialog()})),s.Jc(15,"mat-icon"),s.Bd(16,"edit"),s.Ic(),s.Ic(),s.Jc(17,"mat-form-field",48),s.Jc(18,"input",49),s.Pc(19,XE),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().customArgs=e})),s.Ic(),s.Jc(20,"mat-hint"),s.Hc(21),s.Nc(22,YE),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(23,"div",45),s.Jc(24,"mat-checkbox",46),s.Wc("change",(function(e){return s.rd(t),s.ad().customOutputEnabledChanged(e)}))("ngModelChange",(function(e){return s.rd(t),s.ad().customOutputEnabled=e})),s.Hc(25),s.Nc(26,ZE),s.Gc(),s.Ic(),s.Jc(27,"mat-form-field",48),s.Jc(28,"input",49),s.Pc(29,QE),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().customOutput=e})),s.Ic(),s.Jc(30,"mat-hint"),s.Jc(31,"a",50),s.Hc(32),s.Nc(33,tO),s.Gc(),s.Ic(),s.Bd(34,". "),s.Hc(35),s.Nc(36,eO),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.zd(37,oO,7,8,"div",51),s.zd(38,lO,4,4,"div",51),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(7),s.gd("ngIf",t.simulatedOutput),s.pc(4),s.gd("disabled",t.current_download)("ngModel",t.customArgsEnabled)("ngModelOptions",s.id(15,LE)),s.pc(7),s.gd("ngModel",t.customArgs)("ngModelOptions",s.id(16,LE))("disabled",!t.customArgsEnabled),s.pc(6),s.gd("disabled",t.current_download)("ngModel",t.customOutputEnabled)("ngModelOptions",s.id(17,LE)),s.pc(4),s.gd("ngModel",t.customOutput)("ngModelOptions",s.id(18,LE))("disabled",!t.customOutputEnabled),s.pc(9),s.gd("ngIf",!t.youtubeAuthDisabledOverride),s.pc(1),s.gd("ngIf",!t.youtubeAuthDisabledOverride)}}function dO(t,e){1&t&&s.Ec(0,"mat-divider",2)}function hO(t,e){if(1&t){const t=s.Kc();s.Hc(0),s.Jc(1,"app-download-item",60),s.Wc("cancelDownload",(function(e){return s.rd(t),s.ad(3).cancelDownload(e)})),s.Ic(),s.zd(2,dO,1,0,"mat-divider",61),s.Gc()}if(2&t){const t=s.ad(),e=t.$implicit,i=t.index,n=s.ad(2);s.pc(1),s.gd("download",e)("queueNumber",i+1),s.pc(1),s.gd("ngIf",i!==n.downloads.length-1)}}function uO(t,e){if(1&t&&(s.Jc(0,"div",5),s.zd(1,hO,3,3,"ng-container",43),s.Ic()),2&t){const t=e.$implicit,i=s.ad(2);s.pc(1),s.gd("ngIf",i.current_download!==t&&t.downloading)}}function pO(t,e){if(1&t&&(s.Jc(0,"div",56),s.Jc(1,"mat-card",57),s.Jc(2,"div",58),s.zd(3,uO,2,1,"div",59),s.Ic(),s.Ic(),s.Ic()),2&t){const t=s.ad();s.pc(3),s.gd("ngForOf",t.downloads)}}function mO(t,e){if(1&t&&(s.Jc(0,"div",67),s.Ec(1,"mat-progress-bar",68),s.Ec(2,"br"),s.Ic()),2&t){const t=s.ad(2);s.gd("ngClass",t.percentDownloaded-0>99?"make-room-for-spinner":"equal-sizes"),s.pc(1),s.hd("value",t.percentDownloaded)}}function gO(t,e){1&t&&(s.Jc(0,"div",69),s.Ec(1,"mat-spinner",32),s.Ic()),2&t&&(s.pc(1),s.gd("diameter",25))}function fO(t,e){1&t&&s.Ec(0,"mat-progress-bar",70)}function bO(t,e){if(1&t&&(s.Jc(0,"div",62),s.Jc(1,"div",63),s.zd(2,mO,3,2,"div",64),s.zd(3,gO,2,1,"div",65),s.zd(4,fO,1,0,"ng-template",null,66,s.Ad),s.Ic(),s.Ec(6,"br"),s.Ic()),2&t){const t=s.nd(5),e=s.ad();s.pc(2),s.gd("ngIf",e.current_download.percent_complete&&e.current_download.percent_complete>15)("ngIfElse",t),s.pc(1),s.gd("ngIf",e.percentDownloaded-0>99)}}function _O(t,e){}var vO,yO,wO,xO,kO,CO,SO,IO;function DO(t,e){1&t&&s.Ec(0,"mat-progress-bar",82)}function EO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-grid-tile"),s.Jc(1,"app-file-card",79,80),s.Wc("removeFile",(function(e){return s.rd(t),s.ad(3).removeFromMp3(e)})),s.Ic(),s.zd(3,DO,1,0,"mat-progress-bar",81),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(3);s.pc(1),s.gd("file",t)("title",t.title)("name",t.id)("uid",t.uid)("thumbnailURL",t.thumbnailURL)("length",t.duration)("isAudio",!0)("use_youtubedl_archive",i.use_youtubedl_archive),s.pc(2),s.gd("ngIf",i.downloading_content.audio[t.id])}}function OO(t,e){1&t&&s.Ec(0,"mat-progress-bar",82)}function AO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-grid-tile"),s.Jc(1,"app-file-card",84,80),s.Wc("removeFile",(function(){s.rd(t);const i=e.$implicit,n=e.index;return s.ad(4).removePlaylistMp3(i.id,n)})),s.Ic(),s.zd(3,OO,1,0,"mat-progress-bar",81),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(4);s.pc(1),s.gd("title",t.name)("name",t.id)("thumbnailURL",i.playlist_thumbnails[t.id])("length",null)("isAudio",!0)("playlist",t)("count",t.fileNames.length)("use_youtubedl_archive",i.use_youtubedl_archive),s.pc(2),s.gd("ngIf",i.downloading_content.audio[t.id])}}function PO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-grid-list",83),s.Wc("resize",(function(e){return s.rd(t),s.ad(3).onResize(e)}),!1,s.qd),s.zd(1,AO,4,9,"mat-grid-tile",27),s.Ic()}if(2&t){const t=s.ad(3);s.gd("cols",t.files_cols),s.pc(1),s.gd("ngForOf",t.playlists.audio)}}function TO(t,e){1&t&&(s.Jc(0,"div"),s.Hc(1),s.Nc(2,CO),s.Gc(),s.Ic())}function RO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"mat-grid-list",74),s.Wc("resize",(function(e){return s.rd(t),s.ad(2).onResize(e)}),!1,s.qd),s.zd(2,EO,4,9,"mat-grid-tile",27),s.Ic(),s.Ec(3,"mat-divider"),s.Jc(4,"div",75),s.Jc(5,"h6"),s.Nc(6,kO),s.Ic(),s.Ic(),s.zd(7,PO,2,2,"mat-grid-list",76),s.Jc(8,"div",77),s.Jc(9,"button",78),s.Wc("click",(function(){return s.rd(t),s.ad(2).openCreatePlaylistDialog("audio")})),s.Jc(10,"mat-icon"),s.Bd(11,"add"),s.Ic(),s.Ic(),s.Ic(),s.zd(12,TO,3,0,"div",43),s.Ic()}if(2&t){const t=s.ad(2);s.pc(1),s.gd("cols",t.files_cols),s.pc(1),s.gd("ngForOf",t.mp3s),s.pc(5),s.gd("ngIf",t.playlists.audio.length>0),s.pc(5),s.gd("ngIf",0===t.playlists.audio.length)}}function MO(t,e){1&t&&s.Ec(0,"mat-progress-bar",82)}function FO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-grid-tile"),s.Jc(1,"app-file-card",79,85),s.Wc("removeFile",(function(e){return s.rd(t),s.ad(3).removeFromMp4(e)})),s.Ic(),s.zd(3,MO,1,0,"mat-progress-bar",81),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(3);s.pc(1),s.gd("file",t)("title",t.title)("name",t.id)("uid",t.uid)("thumbnailURL",t.thumbnailURL)("length",t.duration)("isAudio",!1)("use_youtubedl_archive",i.use_youtubedl_archive),s.pc(2),s.gd("ngIf",i.downloading_content.video[t.id])}}function NO(t,e){1&t&&s.Ec(0,"mat-progress-bar",82)}function LO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-grid-tile"),s.Jc(1,"app-file-card",84,85),s.Wc("removeFile",(function(){s.rd(t);const i=e.$implicit,n=e.index;return s.ad(4).removePlaylistMp4(i.id,n)})),s.Ic(),s.zd(3,NO,1,0,"mat-progress-bar",81),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(4);s.pc(1),s.gd("title",t.name)("name",t.id)("thumbnailURL",i.playlist_thumbnails[t.id])("length",null)("isAudio",!1)("playlist",t)("count",t.fileNames.length)("use_youtubedl_archive",i.use_youtubedl_archive),s.pc(2),s.gd("ngIf",i.downloading_content.video[t.id])}}function zO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-grid-list",83),s.Wc("resize",(function(e){return s.rd(t),s.ad(3).onResize(e)}),!1,s.qd),s.zd(1,LO,4,9,"mat-grid-tile",27),s.Ic()}if(2&t){const t=s.ad(3);s.gd("cols",t.files_cols),s.pc(1),s.gd("ngForOf",t.playlists.video)}}function BO(t,e){1&t&&(s.Jc(0,"div"),s.Hc(1),s.Nc(2,IO),s.Gc(),s.Ic())}function JO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"mat-grid-list",74),s.Wc("resize",(function(e){return s.rd(t),s.ad(2).onResize(e)}),!1,s.qd),s.zd(2,FO,4,9,"mat-grid-tile",27),s.Ic(),s.Ec(3,"mat-divider"),s.Jc(4,"div",75),s.Jc(5,"h6"),s.Nc(6,SO),s.Ic(),s.Ic(),s.zd(7,zO,2,2,"mat-grid-list",76),s.Jc(8,"div",77),s.Jc(9,"button",78),s.Wc("click",(function(){return s.rd(t),s.ad(2).openCreatePlaylistDialog("video")})),s.Jc(10,"mat-icon"),s.Bd(11,"add"),s.Ic(),s.Ic(),s.Ic(),s.zd(12,BO,3,0,"div",43),s.Ic()}if(2&t){const t=s.ad(2);s.pc(1),s.gd("cols",t.files_cols),s.pc(1),s.gd("ngForOf",t.mp4s),s.pc(5),s.gd("ngIf",t.playlists.video.length>0),s.pc(5),s.gd("ngIf",0===t.playlists.video.length)}}function VO(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",71),s.Jc(1,"mat-accordion"),s.Jc(2,"mat-expansion-panel",72),s.Wc("opened",(function(){return s.rd(t),s.ad().accordionOpened("audio")}))("closed",(function(){return s.rd(t),s.ad().accordionClosed("audio")}))("mouseleave",(function(){return s.rd(t),s.ad().accordionLeft("audio")}))("mouseenter",(function(){return s.rd(t),s.ad().accordionEntered("audio")})),s.Jc(3,"mat-expansion-panel-header"),s.Jc(4,"mat-panel-title"),s.Hc(5),s.Nc(6,vO),s.Gc(),s.Ic(),s.Jc(7,"mat-panel-description"),s.Hc(8),s.Nc(9,yO),s.Gc(),s.Ic(),s.Ic(),s.zd(10,RO,13,4,"div",73),s.Ic(),s.Jc(11,"mat-expansion-panel",72),s.Wc("opened",(function(){return s.rd(t),s.ad().accordionOpened("video")}))("closed",(function(){return s.rd(t),s.ad().accordionClosed("video")}))("mouseleave",(function(){return s.rd(t),s.ad().accordionLeft("video")}))("mouseenter",(function(){return s.rd(t),s.ad().accordionEntered("video")})),s.Jc(12,"mat-expansion-panel-header"),s.Jc(13,"mat-panel-title"),s.Hc(14),s.Nc(15,wO),s.Gc(),s.Ic(),s.Jc(16,"mat-panel-description"),s.Hc(17),s.Nc(18,xO),s.Gc(),s.Ic(),s.Ic(),s.zd(19,JO,13,4,"div",73),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(),e=s.nd(38),i=s.nd(40);s.pc(10),s.gd("ngIf",t.mp3s.length>0)("ngIfElse",e),s.pc(9),s.gd("ngIf",t.mp4s.length>0)("ngIfElse",i)}}function jO(t,e){}function $O(t,e){}vO=$localize`:Audio files title␟4a0dada6e841a425de3e5006e6a04df26c644fa5␟520791250454025553: Audio `,yO=$localize`:Audio files description␟9779715ac05308973d8f1c8658b29b986e92450f␟3371870979788549262: Your audio files are here `,wO=$localize`:Video files title␟9d2b62bb0b91e2e17fb4177a7e3d6756a2e6ee33␟429855630861441368: Video `,xO=$localize`:Video files description␟960582a8b9d7942716866ecfb7718309728f2916␟691504174199627518: Your video files are here `,kO=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,CO=$localize`:No video playlists available text␟78bd81adb4609b68cfa4c589222bdc233ba1faaa␟5049342015162771379: No playlists available. Create one from your downloading audio files by clicking the blue plus button. `,SO=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,IO=$localize`:No video playlists available text␟0f59c46ca29e9725898093c9ea6b586730d0624e␟6806070849891381327: No playlists available. Create one from your downloading video files by clicking the blue plus button. `;let HO=!1,UO=!1,GO=!1,WO=!1,qO=(()=>{class t{constructor(t,e,i,n,s,a,o){this.postsService=t,this.youtubeSearch=e,this.snackBar=i,this.router=n,this.dialog=s,this.platform=a,this.route=o,this.youtubeAuthDisabledOverride=!1,this.iOS=!1,this.determinateProgress=!1,this.downloadingfile=!1,this.multiDownloadMode=!1,this.customArgsEnabled=!1,this.customArgs=null,this.customOutputEnabled=!1,this.customOutput=null,this.youtubeAuthEnabled=!1,this.youtubeUsername=null,this.youtubePassword=null,this.urlError=!1,this.path="",this.url="",this.exists="",this.autoStartDownload=!1,this.fileManagerEnabled=!1,this.allowQualitySelect=!1,this.downloadOnlyMode=!1,this.allowMultiDownloadMode=!1,this.use_youtubedl_archive=!1,this.globalCustomArgs=null,this.allowAdvancedDownload=!1,this.useDefaultDownloadingAgent=!0,this.customDownloadingAgent=null,this.cachedAvailableFormats={},this.youtubeSearchEnabled=!1,this.youtubeAPIKey=null,this.results_loading=!1,this.results_showing=!0,this.results=[],this.mp3s=[],this.mp4s=[],this.files_cols=null,this.playlists={audio:[],video:[]},this.playlist_thumbnails={},this.downloading_content={audio:{},video:{}},this.downloads=[],this.current_download=null,this.urlForm=new Fa("",[Gs.required]),this.qualityOptions={video:[{resolution:null,value:"",label:"Max"},{resolution:"3840x2160",value:"2160",label:"2160p (4K)"},{resolution:"2560x1440",value:"1440",label:"1440p"},{resolution:"1920x1080",value:"1080",label:"1080p"},{resolution:"1280x720",value:"720",label:"720p"},{resolution:"720x480",value:"480",label:"480p"},{resolution:"480x360",value:"360",label:"360p"},{resolution:"360x240",value:"240",label:"240p"},{resolution:"256x144",value:"144",label:"144p"}],audio:[{kbitrate:null,value:"",label:"Max"},{kbitrate:"256",value:"256K",label:"256 Kbps"},{kbitrate:"160",value:"160K",label:"160 Kbps"},{kbitrate:"128",value:"128K",label:"128 Kbps"},{kbitrate:"96",value:"96K",label:"96 Kbps"},{kbitrate:"70",value:"70K",label:"70 Kbps"},{kbitrate:"50",value:"50K",label:"50 Kbps"},{kbitrate:"32",value:"32K",label:"32 Kbps"}]},this.selectedQuality="",this.formats_loading=!1,this.last_valid_url="",this.last_url_check=0,this.test_download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1,error:!1},this.simulatedOutput="",this.audioOnly=!1}configLoad(){return hE(this,void 0,void 0,(function*(){yield this.loadConfig(),this.autoStartDownload&&this.downloadClicked(),setInterval(()=>this.getSimulatedOutput(),1e3)}))}loadConfig(){return hE(this,void 0,void 0,(function*(){if(this.fileManagerEnabled=this.postsService.config.Extra.file_manager_enabled,this.downloadOnlyMode=this.postsService.config.Extra.download_only_mode,this.allowMultiDownloadMode=this.postsService.config.Extra.allow_multi_download_mode,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.use_youtubedl_archive=this.postsService.config.Downloader.use_youtubedl_archive,this.globalCustomArgs=this.postsService.config.Downloader.custom_args,this.youtubeSearchEnabled=this.postsService.config.API&&this.postsService.config.API.use_youtube_API&&this.postsService.config.API.youtube_API_key,this.youtubeAPIKey=this.youtubeSearchEnabled?this.postsService.config.API.youtube_API_key:null,this.allowQualitySelect=this.postsService.config.Extra.allow_quality_select,this.allowAdvancedDownload=this.postsService.config.Advanced.allow_advanced_download&&(!this.postsService.isLoggedIn||this.postsService.permissions.includes("advanced_download")),this.useDefaultDownloadingAgent=this.postsService.config.Advanced.use_default_downloading_agent,this.customDownloadingAgent=this.postsService.config.Advanced.custom_downloading_agent,this.fileManagerEnabled&&(this.getMp3s(),this.getMp4s()),this.youtubeSearchEnabled&&this.youtubeAPIKey&&(this.youtubeSearch.initializeAPI(this.youtubeAPIKey),this.attachToInput()),this.allowAdvancedDownload){null!==localStorage.getItem("customArgsEnabled")&&(this.customArgsEnabled="true"===localStorage.getItem("customArgsEnabled")),null!==localStorage.getItem("customOutputEnabled")&&(this.customOutputEnabled="true"===localStorage.getItem("customOutputEnabled")),null!==localStorage.getItem("youtubeAuthEnabled")&&(this.youtubeAuthEnabled="true"===localStorage.getItem("youtubeAuthEnabled"));const t=localStorage.getItem("customArgs"),e=localStorage.getItem("customOutput"),i=localStorage.getItem("youtubeUsername");t&&"null"!==t&&(this.customArgs=t),e&&"null"!==e&&(this.customOutput=e),i&&"null"!==i&&(this.youtubeUsername=i)}return setInterval(()=>{this.current_download&&this.getCurrentDownload()},500),!0}))}ngOnInit(){this.postsService.initialized?this.configLoad():this.postsService.service_initialized.subscribe(t=>{t&&this.configLoad()}),this.postsService.config_reloaded.subscribe(t=>{t&&this.loadConfig()}),this.iOS=this.platform.IOS,null!==localStorage.getItem("audioOnly")&&(this.audioOnly="true"===localStorage.getItem("audioOnly")),null!==localStorage.getItem("multiDownloadMode")&&(this.multiDownloadMode="true"===localStorage.getItem("multiDownloadMode")),this.route.snapshot.paramMap.get("url")&&(this.url=decodeURIComponent(this.route.snapshot.paramMap.get("url")),this.audioOnly="true"===this.route.snapshot.paramMap.get("audioOnly"),this.autoStartDownload=!0),this.setCols()}getMp3s(){this.postsService.getMp3s().subscribe(t=>{const e=t.mp3s,i=t.playlists;JSON.stringify(this.mp3s)!==JSON.stringify(e)&&(this.mp3s=e),this.playlists.audio=i;for(let n=0;n{console.log(t)})}getMp4s(){this.postsService.getMp4s().subscribe(t=>{const e=t.mp4s,i=t.playlists;JSON.stringify(this.mp4s)!==JSON.stringify(e)&&(this.mp4s=e),this.playlists.video=i;for(let n=0;n{console.log(t)})}setCols(){this.files_cols=window.innerWidth<=350?1:window.innerWidth<=500?2:window.innerWidth<=750?3:4}goToFile(t,e,i){e?this.downloadHelperMp3(t,i,!1,!1,null,!0):this.downloadHelperMp4(t,i,!1,!1,null,!0)}goToPlaylist(t,e){const i=this.getPlaylistObjectByID(t,e);i?this.downloadOnlyMode?(this.downloading_content[e][t]=!0,this.downloadPlaylist(i.fileNames,e,i.name,t)):(localStorage.setItem("player_navigator",this.router.url),this.router.navigate(["/player",{fileNames:i.fileNames.join("|nvr|"),type:e,id:t,uid:t}])):console.error(`Playlist with ID ${t} not found!`)}getPlaylistObjectByID(t,e){for(let i=0;i{t.success&&(this.playlists.audio.splice(e,1),this.openSnackBar("Playlist successfully removed.","")),this.getMp3s()})}removeFromMp4(t){for(let e=0;e{t.success&&(this.playlists.video.splice(e,1),this.openSnackBar("Playlist successfully removed.","")),this.getMp4s()})}downloadHelperMp3(t,e,i=!1,n=!1,s=null,a=!1){if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||a)if(!1===n&&this.downloadOnlyMode&&!this.iOS)if(i){const e=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"audio",e)}else this.downloadAudioFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(i?["/player",{fileNames:t.join("|nvr|"),type:"audio"}]:["/player",{type:"audio",uid:e}]);this.removeDownloadFromCurrentDownloads(s),this.fileManagerEnabled&&(this.getMp3s(),setTimeout(()=>{this.audioFileCards.forEach(t=>{t.onHoverResponse()})},200))}downloadHelperMp4(t,e,i=!1,n=!1,s=null,a=!1){if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||a)if(!1===n&&this.downloadOnlyMode)if(i){const e=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"video",e)}else this.downloadVideoFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(i?["/player",{fileNames:t.join("|nvr|"),type:"video"}]:["/player",{type:"video",uid:e}]);this.removeDownloadFromCurrentDownloads(s),this.fileManagerEnabled&&(this.getMp4s(),setTimeout(()=>{this.videoFileCards.forEach(t=>{t.onHoverResponse()})},200))}downloadClicked(){if(this.ValidURL(this.url)){this.urlError=!1,this.path="";const t=this.customArgsEnabled?this.customArgs:null,e=this.customOutputEnabled?this.customOutput:null,i=this.youtubeAuthEnabled&&this.youtubeUsername?this.youtubeUsername:null,n=this.youtubeAuthEnabled&&this.youtubePassword?this.youtubePassword:null;if(this.allowAdvancedDownload&&(t&&localStorage.setItem("customArgs",t),e&&localStorage.setItem("customOutput",e),i&&localStorage.setItem("youtubeUsername",i)),this.audioOnly){const s={uid:Object(IE.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;let a=null;""!==this.selectedQuality&&(a=this.getSelectedAudioFormat()),this.postsService.makeMP3(this.url,""===this.selectedQuality?null:this.selectedQuality,a,t,e,i,n,s.uid).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.audiopathEncoded,this.current_download=null,"-1"!==this.path&&this.downloadHelperMp3(this.path,t.uid,e,!1,s)},t=>{this.downloadingfile=!1,this.current_download=null,s.downloading=!1;const e=this.downloads.indexOf(s);-1!==e&&this.downloads.splice(e),this.openSnackBar("Download failed!","OK.")})}else{const s={uid:Object(IE.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;const a=this.getSelectedVideoFormat();this.postsService.makeMP4(this.url,""===this.selectedQuality?null:this.selectedQuality,a,t,e,i,n,s.uid).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.videopathEncoded,this.current_download=null,"-1"!==this.path&&this.downloadHelperMp4(this.path,t.uid,e,!1,s)},t=>{this.downloadingfile=!1,this.current_download=null,s.downloading=!1;const e=this.downloads.indexOf(s);-1!==e&&this.downloads.splice(e),this.openSnackBar("Download failed!","OK.")})}this.multiDownloadMode&&(this.url="",this.downloadingfile=!1)}else this.urlError=!0}cancelDownload(t=null){t?this.removeDownloadFromCurrentDownloads(t):(this.downloadingfile=!1,this.current_download.downloading=!1,this.current_download=null)}getSelectedAudioFormat(){return""===this.selectedQuality?null:this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats?this.cachedAvailableFormats[this.url].formats.audio[this.selectedQuality].format_id:null}getSelectedVideoFormat(){if(""===this.selectedQuality)return null;if(this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats){const t=this.cachedAvailableFormats[this.url].formats.video;if(t.best_audio_format&&""!==this.selectedQuality)return t[this.selectedQuality].format_id+"+"+t.best_audio_format}return null}getDownloadByUID(t){const e=this.downloads.findIndex(e=>e.uid===t);return-1!==e?this.downloads[e]:null}removeDownloadFromCurrentDownloads(t){this.current_download===t&&(this.current_download=null);const e=this.downloads.indexOf(t);return-1!==e&&(this.downloads.splice(e,1),!0)}downloadAudioFile(t){this.downloading_content.audio[t]=!0,this.postsService.downloadFileFromServer(t,"audio").subscribe(e=>{this.downloading_content.audio[t]=!1;const i=e;Object(uE.saveAs)(i,decodeURIComponent(t)+".mp3"),this.fileManagerEnabled||this.postsService.deleteFile(t,!0).subscribe(t=>{this.getMp3s()})})}downloadVideoFile(t){this.downloading_content.video[t]=!0,this.postsService.downloadFileFromServer(t,"video").subscribe(e=>{this.downloading_content.video[t]=!1;const i=e;Object(uE.saveAs)(i,decodeURIComponent(t)+".mp4"),this.fileManagerEnabled||this.postsService.deleteFile(t,!1).subscribe(t=>{this.getMp4s()})})}downloadPlaylist(t,e,i=null,n=null){this.postsService.downloadFileFromServer(t,e,i).subscribe(t=>{n&&(this.downloading_content[e][n]=!1);const s=t;Object(uE.saveAs)(s,i+".zip")})}clearInput(){this.url="",this.results_showing=!1}onInputBlur(){this.results_showing=!1}visitURL(t){window.open(t)}useURL(t){this.results_showing=!1,this.url=t}inputChanged(t){""!==t&&t?this.ValidURL(t)&&(this.results_showing=!1):this.results_showing=!1}ValidURL(t){const e=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t);return!!e&&(new RegExp(/(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'<> #]+)/),e&&Date.now()-this.last_url_check>1e3&&(t!==this.last_valid_url&&this.allowQualitySelect&&this.getURLInfo(t),this.last_valid_url=t),e)}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}getURLInfo(t){t.includes("playlist")||(this.cachedAvailableFormats[t]||(this.cachedAvailableFormats[t]={}),this.cachedAvailableFormats[t]&&this.cachedAvailableFormats[t].formats||(this.cachedAvailableFormats[t].formats_loading=!0,this.postsService.getFileInfo([t],"irrelevant",!0).subscribe(e=>{this.cachedAvailableFormats[t].formats_loading=!1;const i=e.result;if(!i||!i.formats)return void this.errorFormats(t);const n=this.getAudioAndVideoFormats(i.formats);this.cachedAvailableFormats[t].formats={audio:n[0],video:n[1]}},e=>{this.errorFormats(t)})))}getSimulatedOutput(){const t=this.globalCustomArgs&&""!==this.globalCustomArgs;let e=[];const i=["youtube-dl",this.url];if(this.customArgsEnabled&&this.customArgs)return this.simulatedOutput=i.join(" ")+" "+this.customArgs.split(",,").join(" "),this.simulatedOutput;e.push(...i);const n=this.audioOnly?this.audioFolderPath:this.videoFolderPath,s=this.audioOnly?".mp3":".mp4";let a=["-o",n+"%(title)s"+s];if(this.customOutputEnabled&&this.customOutput&&(a=["-o",n+this.customOutput+s]),this.useDefaultDownloadingAgent||"aria2c"!==this.customDownloadingAgent||e.push("--external-downloader","aria2c"),e.push(...a),this.audioOnly){const t=[],i=this.getSelectedAudioFormat();i?t.push("-f",i):this.selectedQuality&&t.push("--audio-quality",this.selectedQuality),e.splice(2,0,...t),e.push("-x","--audio-format","mp3","--write-info-json","--print-json")}else{let t=["-f","bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"];const i=this.getSelectedVideoFormat();i?t=["-f",i]:this.selectedQuality&&(t=[`bestvideo[height=${this.selectedQuality}]+bestaudio/best[height=${this.selectedQuality}]`]),e.splice(2,0,...t),e.push("--write-info-json","--print-json")}return this.use_youtubedl_archive&&e.push("--download-archive","archive.txt"),t&&(e=e.concat(this.globalCustomArgs.split(",,"))),this.simulatedOutput=e.join(" "),this.simulatedOutput}errorFormats(t){this.cachedAvailableFormats[t].formats_loading=!1,console.error("Could not load formats for url "+t)}attachToInput(){si.a.fromEvent(this.urlInput.nativeElement,"keyup").map(t=>t.target.value).filter(t=>t.length>1).debounceTime(250).do(()=>this.results_loading=!0).map(t=>this.youtubeSearch.search(t)).switch().subscribe(t=>{this.results_loading=!1,""!==this.url&&t&&t.length>0?(this.results=t,this.results_showing=!0):this.results_showing=!1},t=>{console.log(t),this.results_loading=!1,this.results_showing=!1},()=>{this.results_loading=!1})}onResize(t){this.setCols()}videoModeChanged(t){this.selectedQuality="",localStorage.setItem("audioOnly",t.checked.toString())}multiDownloadModeChanged(t){localStorage.setItem("multiDownloadMode",t.checked.toString())}customArgsEnabledChanged(t){localStorage.setItem("customArgsEnabled",t.checked.toString()),!0===t.checked&&this.customOutputEnabled&&(this.customOutputEnabled=!1,localStorage.setItem("customOutputEnabled","false"),this.youtubeAuthEnabled=!1,localStorage.setItem("youtubeAuthEnabled","false"))}customOutputEnabledChanged(t){localStorage.setItem("customOutputEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}youtubeAuthEnabledChanged(t){localStorage.setItem("youtubeAuthEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}getAudioAndVideoFormats(t){const e={},i={};for(let n=0;ni&&(e=a.format_id,i=a.bitrate)}return e}accordionEntered(t){"audio"===t?(HO=!0,this.audioFileCards.forEach(t=>{t.onHoverResponse()})):"video"===t&&(UO=!0,this.videoFileCards.forEach(t=>{t.onHoverResponse()}))}accordionLeft(t){"audio"===t?HO=!1:"video"===t&&(UO=!1)}accordionOpened(t){"audio"===t?GO=!0:"video"===t&&(WO=!0)}accordionClosed(t){"audio"===t?GO=!1:"video"===t&&(WO=!1)}openCreatePlaylistDialog(t){this.dialog.open(SE,{data:{filesToSelectFrom:"audio"===t?this.mp3s:this.mp4s,type:t}}).afterClosed().subscribe(e=>{e?("audio"===t&&this.getMp3s(),"video"===t&&this.getMp4s(),this.openSnackBar("Successfully created playlist!","")):!1===e&&this.openSnackBar("ERROR: failed to create playlist!","")})}openArgsModifierDialog(){this.dialog.open(Vk,{data:{initial_args:this.customArgs}}).afterClosed().subscribe(t=>{null!=t&&(this.customArgs=t)})}getCurrentDownload(){if(!this.current_download)return;const t=this.current_download.ui_uid?this.current_download.ui_uid:this.current_download.uid;this.postsService.getCurrentDownload(this.postsService.session_id,t).subscribe(e=>{e.download&&t===e.download.ui_uid&&(this.current_download=e.download,this.percentDownloaded=this.current_download.percent_complete)})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(mE),s.Dc(Hg),s.Dc(wx),s.Dc(bd),s.Dc(_i),s.Dc(pw))},t.\u0275cmp=s.xc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.Fd(DE,!0,s.r),s.Fd(EE,!0),s.Fd(OE,!0)),2&t&&(s.md(i=s.Xc())&&(e.urlInput=i.first),s.md(i=s.Xc())&&(e.audioFileCards=i),s.md(i=s.Xc())&&(e.videoFileCards=i))},decls:41,vars:16,consts:[[1,"big","demo-basic"],["id","card",2,"margin-right","20px","margin-left","20px",3,"ngClass"],[2,"position","relative"],[1,"example-form"],[1,"container-fluid"],[1,"row"],[1,"col-12",3,"ngClass"],["color","accent",1,"example-full-width"],["matInput","","type","url","name","url",2,"padding-right","25px",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["urlinput",""],["type","button","mat-icon-button","",1,"input-clear-button",3,"click"],["class","col-7 col-sm-3",4,"ngIf"],["class","results-div",4,"ngIf"],[2,"float","left","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["style","float: right; margin-top: -12px",3,"disabled","ngModel","change","ngModelChange",4,"ngIf"],["type","submit","mat-stroked-button","","color","accent",2,"margin-left","8px","margin-bottom","8px",3,"disabled","click"],["style","float: right","mat-stroked-button","","color","warn",3,"click",4,"ngIf"],["class","big demo-basic",4,"ngIf"],["style","margin-top: 15px;","class","big demo-basic",4,"ngIf"],["class","centered big","id","bar_div",4,"ngIf","ngIfElse"],["nofile",""],["style","margin: 20px",4,"ngIf"],["nomp3s",""],["nomp4s",""],[1,"col-7","col-sm-3"],["color","accent",2,"display","inline-block","width","inherit","min-width","120px"],[3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["class","spinner-div",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value"],[1,"spinner-div"],[3,"diameter"],[1,"results-div"],[1,"result-card","mat-elevation-z7",3,"ngClass"],[1,"search-card-title"],[2,"font-size","12px","margin-bottom","10px"],["mat-flat-button","","color","primary",2,"float","left",3,"click"],["mat-stroked-button","","color","primary",2,"float","right",3,"click"],[2,"float","right","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["mat-stroked-button","","color","warn",2,"float","right",3,"click"],[2,"margin-left","20px","margin-right","20px"],[1,"big","no-border-radius-top"],[4,"ngIf"],[1,"container",2,"padding-bottom","20px"],[1,"col-12","col-sm-6"],["color","accent",2,"z-index","999",3,"disabled","ngModel","ngModelOptions","change","ngModelChange"],["mat-icon-button","",1,"edit-button",3,"click"],["color","accent",1,"advanced-input",2,"margin-bottom","42px"],["matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["class","col-12 col-sm-6 mt-2",4,"ngIf"],[1,"col-12","col-sm-6","mt-2"],["color","accent",1,"advanced-input"],["color","accent",1,"advanced-input",2,"margin-top","31px"],["type","password","matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],[1,"big","demo-basic",2,"margin-top","15px"],["id","card",2,"margin-right","20px","margin-left","20px"],[1,"container"],["class","row",4,"ngFor","ngForOf"],[2,"width","100%",3,"download","queueNumber","cancelDownload"],["style","position: relative",4,"ngIf"],["id","bar_div",1,"centered","big"],[1,"margined"],["style","display: inline-block; width: 100%; padding-left: 20px",3,"ngClass",4,"ngIf","ngIfElse"],["class","spinner",4,"ngIf"],["indeterminateprogress",""],[2,"display","inline-block","width","100%","padding-left","20px",3,"ngClass"],["mode","determinate",2,"border-radius","5px",3,"value"],[1,"spinner"],["mode","indeterminate",2,"border-radius","5px"],[2,"margin","20px"],[1,"big",3,"opened","closed","mouseleave","mouseenter"],[4,"ngIf","ngIfElse"],["rowHeight","150px",2,"margin-bottom","15px",3,"cols","resize"],[2,"width","100%","text-align","center","margin-top","10px"],["rowHeight","150px",3,"cols","resize",4,"ngIf"],[1,"add-playlist-button"],["mat-fab","",3,"click"],[3,"file","title","name","uid","thumbnailURL","length","isAudio","use_youtubedl_archive","removeFile"],["audiofilecard",""],["class","download-progress-bar","mode","indeterminate",4,"ngIf"],["mode","indeterminate",1,"download-progress-bar"],["rowHeight","150px",3,"cols","resize"],[3,"title","name","thumbnailURL","length","isAudio","playlist","count","use_youtubedl_archive","removeFile"],["videofilecard",""]],template:function(t,e){if(1&t&&(s.Ec(0,"br"),s.Jc(1,"div",0),s.Jc(2,"mat-card",1),s.Jc(3,"mat-card-title"),s.Hc(4),s.Nc(5,AE),s.Gc(),s.Ic(),s.Jc(6,"mat-card-content"),s.Jc(7,"div",2),s.Jc(8,"form",3),s.Jc(9,"div",4),s.Jc(10,"div",5),s.Jc(11,"div",6),s.Jc(12,"mat-form-field",7),s.Jc(13,"input",8,9),s.Wc("keyup.enter",(function(){return e.downloadClicked()}))("ngModelChange",(function(t){return e.inputChanged(t)}))("ngModelChange",(function(t){return e.url=t})),s.Ic(),s.Ic(),s.Jc(15,"button",10),s.Wc("click",(function(){return e.clearInput()})),s.Jc(16,"mat-icon"),s.Bd(17,"clear"),s.Ic(),s.Ic(),s.Ic(),s.zd(18,zE,8,5,"div",11),s.Ic(),s.Ic(),s.zd(19,$E,2,1,"div",12),s.Ic(),s.Ec(20,"br"),s.Jc(21,"mat-checkbox",13),s.Wc("change",(function(t){return e.videoModeChanged(t)}))("ngModelChange",(function(t){return e.audioOnly=t})),s.Hc(22),s.Nc(23,PE),s.Gc(),s.Ic(),s.zd(24,qE,3,2,"mat-checkbox",14),s.Ic(),s.Ic(),s.Jc(25,"mat-card-actions"),s.Jc(26,"button",15),s.Wc("click",(function(){return e.downloadClicked()})),s.Hc(27),s.Nc(28,TE),s.Gc(),s.Ic(),s.zd(29,KE,3,0,"button",16),s.Ic(),s.Ic(),s.Ic(),s.zd(30,cO,39,19,"div",17),s.zd(31,pO,4,1,"div",18),s.Ec(32,"br"),s.zd(33,bO,7,3,"div",19),s.zd(34,_O,0,0,"ng-template",null,20,s.Ad),s.zd(36,VO,20,4,"div",21),s.zd(37,jO,0,0,"ng-template",null,22,s.Ad),s.zd(39,$O,0,0,"ng-template",null,23,s.Ad)),2&t){const t=s.nd(35);s.pc(2),s.gd("ngClass",e.allowAdvancedDownload?"no-border-radius-bottom":null),s.pc(9),s.gd("ngClass",e.allowQualitySelect?"col-sm-9":null),s.pc(2),s.gd("ngModel",e.url)("placeholder","URL"+(e.youtubeSearchEnabled?" or search":"")),s.pc(5),s.gd("ngIf",e.allowQualitySelect),s.pc(1),s.gd("ngIf",e.results_showing),s.pc(2),s.gd("disabled",e.current_download)("ngModel",e.audioOnly),s.pc(3),s.gd("ngIf",e.allowMultiDownloadMode),s.pc(2),s.gd("disabled",e.downloadingfile),s.pc(3),s.gd("ngIf",!!e.current_download),s.pc(1),s.gd("ngIf",e.allowAdvancedDownload),s.pc(1),s.gd("ngIf",e.multiDownloadMode&&e.downloads.length>0&&!e.current_download),s.pc(2),s.gd("ngIf",e.current_download&&e.current_download.downloading)("ngIfElse",t),s.pc(3),s.gd("ngIf",e.fileManagerEnabled&&(!e.postsService.isLoggedIn||e.postsService.permissions.includes("filemanager")))}},styles:[".demo-card[_ngcontent-%COMP%]{margin:16px}.demo-basic[_ngcontent-%COMP%]{padding:0}.demo-basic[_ngcontent-%COMP%] .mat-card-content[_ngcontent-%COMP%]{padding:16px}mat-toolbar.top[_ngcontent-%COMP%]{height:60px;width:100%;text-align:center}.big[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.example-full-width[_ngcontent-%COMP%]{width:100%}.example-80-width[_ngcontent-%COMP%]{width:80%}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:24px}.spinner[_ngcontent-%COMP%]{position:absolute;display:inline-block;margin-left:-28px;margin-top:-10px}.make-room-for-spinner[_ngcontent-%COMP%]{padding-right:40px}.equal-sizes[_ngcontent-%COMP%]{padding-right:20px}.search-card-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.input-clear-button[_ngcontent-%COMP%]{position:absolute;right:5px;top:22px}.spinner-div[_ngcontent-%COMP%]{display:inline-block;position:absolute;top:15px;right:-40px}.margined[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.results-div[_ngcontent-%COMP%]{position:relative;top:-15px}.first-result-card[_ngcontent-%COMP%]{border-radius:4px 4px 0 0!important}.last-result-card[_ngcontent-%COMP%]{border-radius:0 0 4px 4px!important}.only-result-card[_ngcontent-%COMP%]{border-radius:4px!important}.result-card[_ngcontent-%COMP%]{height:120px;border-radius:0;padding-bottom:5px}.download-progress-bar[_ngcontent-%COMP%]{z-index:999;position:absolute;bottom:0;width:150px;border-radius:0 0 4px 4px;overflow:hidden;bottom:12px}.add-playlist-button[_ngcontent-%COMP%]{float:right}.advanced-input[_ngcontent-%COMP%]{width:100%}.edit-button[_ngcontent-%COMP%]{margin-left:10px;top:-5px}.no-border-radius-bottom[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.no-border-radius-top[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}@media (max-width:576px){.download-progress-bar[_ngcontent-%COMP%]{width:125px}}"]}),t})();si.a.merge=xr.a;var KO,XO,YO,ZO,QO,tA,eA,iA=i("zuWl"),nA=i.n(iA);KO=$localize`:Video name property␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`,XO=$localize`:Video URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,YO=$localize`:Video ID property␟c6eb45d085384903e53ab001a3513d1de6a1dbac␟6975318892267864632:Uploader:`,ZO=$localize`:Video file size property␟109c6f4a5e46efb933612ededfaf52a13178b7e0␟8712868262622854125:File size:`,QO=$localize`:Video path property␟bd630d8669b16e5f264ec4649d9b469fe03e5ff4␟2612252809311306032:Path:`,tA=$localize`:Video upload date property␟a67e7d843cef735c79d5ef1c8ba4af3e758912bb␟73382088968432490:Upload Date:`,eA=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let sA=(()=>{class t{constructor(t){this.data=t}ngOnInit(){this.filesize=nA.a,this.data&&(this.file=this.data.file)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(pd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-video-info-dialog"]],decls:56,vars:8,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-label"],[1,"info-item-value"],["target","_blank",3,"href"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Bd(1),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div",1),s.Jc(4,"div",2),s.Jc(5,"strong"),s.Hc(6),s.Nc(7,KO),s.Gc(),s.Bd(8,"\xa0"),s.Ic(),s.Ic(),s.Jc(9,"div",3),s.Bd(10),s.Ic(),s.Ic(),s.Jc(11,"div",1),s.Jc(12,"div",2),s.Jc(13,"strong"),s.Hc(14),s.Nc(15,XO),s.Gc(),s.Bd(16,"\xa0"),s.Ic(),s.Ic(),s.Jc(17,"div",3),s.Jc(18,"a",4),s.Bd(19),s.Ic(),s.Ic(),s.Ic(),s.Jc(20,"div",1),s.Jc(21,"div",2),s.Jc(22,"strong"),s.Hc(23),s.Nc(24,YO),s.Gc(),s.Bd(25,"\xa0"),s.Ic(),s.Ic(),s.Jc(26,"div",3),s.Bd(27),s.Ic(),s.Ic(),s.Jc(28,"div",1),s.Jc(29,"div",2),s.Jc(30,"strong"),s.Hc(31),s.Nc(32,ZO),s.Gc(),s.Bd(33,"\xa0"),s.Ic(),s.Ic(),s.Jc(34,"div",3),s.Bd(35),s.Ic(),s.Ic(),s.Jc(36,"div",1),s.Jc(37,"div",2),s.Jc(38,"strong"),s.Hc(39),s.Nc(40,QO),s.Gc(),s.Bd(41,"\xa0"),s.Ic(),s.Ic(),s.Jc(42,"div",3),s.Bd(43),s.Ic(),s.Ic(),s.Jc(44,"div",1),s.Jc(45,"div",2),s.Jc(46,"strong"),s.Hc(47),s.Nc(48,tA),s.Gc(),s.Bd(49,"\xa0"),s.Ic(),s.Ic(),s.Jc(50,"div",3),s.Bd(51),s.Ic(),s.Ic(),s.Ic(),s.Jc(52,"mat-dialog-actions"),s.Jc(53,"button",5),s.Hc(54),s.Nc(55,eA),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.Cd(e.file.title),s.pc(9),s.Cd(e.file.title),s.pc(8),s.gd("href",e.file.url,s.td),s.pc(1),s.Cd(e.file.url),s.pc(8),s.Cd(e.file.uploader?e.file.uploader:"N/A"),s.pc(8),s.Cd(e.file.size?e.filesize(e.file.size):"N/A"),s.pc(8),s.Cd(e.file.path?e.file.path:"N/A"),s.pc(8),s.Cd(e.file.upload_date?e.file.upload_date:"N/A"))},directives:[yd,wd,xd,bs,vd],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px;width:100%}.info-item-value[_ngcontent-%COMP%]{font-size:13px;display:inline-block;width:70%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.info-item-label[_ngcontent-%COMP%]{display:inline-block;width:30%;vertical-align:top}.a-wrap[_ngcontent-%COMP%]{word-wrap:break-word}"]}),t})();var aA;aA=$localize`:Modify playlist dialog title␟4f389e41e4592f7f9bb76abdd8af4afdfb13f4f1␟6411548663373200045:Modify playlist`;const oA=["placeholder",$localize`:Name␟cff1428d10d59d14e45edec3c735a27b5482db59␟8953033926734869941:Name`];function rA(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-button-toggle",11),s.Jc(1,"div"),s.Jc(2,"div",12),s.Bd(3),s.Ic(),s.Jc(4,"button",13),s.Wc("click",(function(){s.rd(t);const i=e.index;return s.ad().removeContent(i)})),s.Jc(5,"mat-icon"),s.Bd(6,"cancel"),s.Ic(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit;s.gd("checked",!1),s.pc(3),s.Cd(t)}}function lA(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",14),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad().addContent(i)})),s.Bd(1),s.Ic()}if(2&t){const t=e.$implicit;s.pc(1),s.Cd(t)}}let cA=(()=>{class t{constructor(t,e,i){this.data=t,this.postsService=e,this.dialogRef=i,this.original_playlist=null,this.playlist=null,this.available_files=[],this.all_files=[],this.playlist_updated=!1}ngOnInit(){this.data&&(this.playlist=JSON.parse(JSON.stringify(this.data.playlist)),this.original_playlist=JSON.parse(JSON.stringify(this.data.playlist)),this.getFiles())}getFiles(){"audio"===this.playlist.type?this.postsService.getMp3s().subscribe(t=>{this.processFiles(t.mp3s)}):this.postsService.getMp4s().subscribe(t=>{this.processFiles(t.mp4s)})}processFiles(t=null){t&&(this.all_files=t.map(t=>t.id)),this.available_files=this.all_files.filter(t=>!this.playlist.fileNames.includes(t))}updatePlaylist(){this.postsService.updatePlaylist(this.playlist).subscribe(t=>{this.playlist_updated=!0,this.postsService.openSnackBar("Playlist updated successfully."),this.getPlaylist()})}playlistChanged(){return JSON.stringify(this.playlist)===JSON.stringify(this.original_playlist)}getPlaylist(){this.postsService.getPlaylist(this.playlist.id,this.playlist.type,null).subscribe(t=>{t.playlist&&(this.playlist=t.playlist,this.original_playlist=JSON.parse(JSON.stringify(this.playlist)))})}addContent(t){this.playlist.fileNames.push(t),this.processFiles()}removeContent(t){this.playlist.fileNames.splice(t,1),this.processFiles()}drop(t){sv(this.playlist.fileNames,t.previousIndex,t.currentIndex)}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(pd),s.Dc(Wx),s.Dc(ud))},t.\u0275cmp=s.xc({type:t,selectors:[["app-modify-playlist"]],decls:20,vars:7,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["cdkDropList","","vertical","","name","videoSelect","aria-label","Video Select",1,"media-list",2,"width","80%","left","9%",3,"cdkDropListDropped"],["group","matButtonToggleGroup"],["class","media-box","cdkDrag","",3,"checked",4,"ngFor","ngForOf"],[1,"add-content-button"],["mat-stroked-button","",3,"disabled","matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-raised-button","","color","accent",3,"disabled","click"],["cdkDrag","",1,"media-box",3,"checked"],[1,"playlist-item-text"],["mat-icon-button","",1,"remove-item-button",3,"click"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(s.Jc(0,"h4",0),s.Hc(1),s.Nc(2,aA),s.Gc(),s.Ic(),s.Jc(3,"mat-dialog-content"),s.Jc(4,"div"),s.Jc(5,"mat-form-field",1),s.Jc(6,"input",2),s.Pc(7,oA),s.Wc("ngModelChange",(function(t){return e.playlist.name=t})),s.Ic(),s.Ic(),s.Ic(),s.Jc(8,"mat-button-toggle-group",3,4),s.Wc("cdkDropListDropped",(function(t){return e.drop(t)})),s.zd(10,rA,7,2,"mat-button-toggle",5),s.Ic(),s.Jc(11,"div",6),s.Jc(12,"button",7),s.Bd(13,"Add more content"),s.Ic(),s.Ic(),s.Jc(14,"mat-menu",null,8),s.zd(16,lA,2,1,"button",9),s.Ic(),s.Ic(),s.Jc(17,"mat-dialog-actions"),s.Jc(18,"button",10),s.Wc("click",(function(){return e.updatePlaylist()})),s.Bd(19,"Save"),s.Ic(),s.Ic()),2&t){const t=s.nd(15);s.pc(6),s.gd("ngModel",e.playlist.name),s.pc(4),s.gd("ngForOf",e.playlist.fileNames),s.pc(2),s.gd("disabled",0===e.available_files.length)("matMenuTriggerFor",t),s.pc(4),s.gd("ngForOf",e.available_files),s.pc(2),s.gd("disabled",!e.playlistChanged())("disabled",e.playlistChanged())}},directives:[yd,wd,Bc,Ru,Rs,Js,qa,Ro,Av,ve.s,bs,Ep,Cp,xd,No,Iv,vu,_p],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.media-box[_ngcontent-%COMP%]:last-child{border:none}.media-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .media-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.add-content-button[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:10px}.remove-item-button[_ngcontent-%COMP%]{right:10px;position:absolute;top:4px}.playlist-item-text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%;margin:0 auto}"]}),t})();const dA=new si.a(Be.a);function hA(t,e){t.className=t.className.replace(e,"")}function uA(t,e){t.className.includes(e)||(t.className+=` ${e}`)}function pA(){return"undefined"!=typeof window?window.navigator:void 0}function mA(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function gA(t){return"img"===t.nodeName.toLowerCase()}function fA(t,e,i){return gA(t)?i&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage=`url('${e}')`,t}function bA(t){return e=>{const i=e.parentElement.getElementsByTagName("source");for(let n=0;n{gA(e)&&mA(e)&&t(e),i&&fA(e,i,n)}}const xA=wA(_A),kA=wA(vA),CA=wA(yA),SA={finally:({element:t})=>{uA(t,"ng-lazyloaded"),hA(t,"ng-lazyloading")},loadImage:({element:t,useSrcset:e,imagePath:i,decode:n})=>{let s;if(gA(t)&&mA(t)){const n=t.parentNode.cloneNode(!0);s=n.getElementsByTagName("img")[0],vA(s),fA(s,i,e)}else s=new Image,gA(t)&&t.sizes&&(s.sizes=t.sizes),e&&"srcset"in s?s.srcset=i:s.src=i;return n&&s.decode?s.decode().then(()=>i):new Promise((t,e)=>{s.onload=()=>t(i),s.onerror=()=>e(null)})},setErrorImage:({element:t,errorImagePath:e,useSrcset:i})=>{CA(t,e,i),uA(t,"ng-failed-lazyloaded")},setLoadedImage:({element:t,imagePath:e,useSrcset:i})=>{kA(t,e,i)},setup:({element:t,defaultImagePath:e,useSrcset:i})=>{xA(t,e,i),uA(t,"ng-lazyloading"),function(t,e){return t.className&&t.className.includes("ng-lazyloaded")}(t)&&hA(t,"ng-lazyloaded")},isBot:t=>!(!t||!t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(t.userAgent)},IA=new WeakMap,DA=new Pe.a;function EA(t){t.forEach(t=>DA.next(t))}const OA={},AA=t=>{const e=t.scrollContainer||OA,i={root:t.scrollContainer||null};t.offset&&(i.rootMargin=`${t.offset}px`);let n=IA.get(e);return n||(n=new IntersectionObserver(EA,i),IA.set(e,n)),n.observe(t.element),si.a.create(e=>{const i=DA.pipe(Qe(e=>e.target===t.element)).subscribe(e);return()=>{i.unsubscribe(),n.unobserve(t.element)}})},PA=Object.assign({},SA,{isVisible:({event:t})=>t.isIntersecting,getObservable:(t,e=AA)=>t.customObservable?t.customObservable:e(t)}),TA=Object.assign({},SA,{isVisible:()=>!0,getObservable:()=>Ne("load"),loadImage:({imagePath:t})=>[t]});let RA=(()=>{let t=class{constructor(t,e,i,n){this.onStateChange=new s.u,this.onLoad=new s.u,this.elementRef=t,this.ngZone=e,this.propertyChanges$=new cl,this.platformId=i,this.hooks=function(t,e){const i=PA,n=e&&e.isBot?e.isBot:i.isBot;if(n(pA(),t))return Object.assign(TA,{isBot:n});if(!e)return i;const s={};return Object.assign(s,e.preset?e.preset:i),Object.keys(e).filter(t=>"preset"!==t).forEach(t=>{s[t]=e[t]}),s}(i,n)}ngOnChanges(){!0!==this.debug||this.debugSubscription||(this.debugSubscription=this.onStateChange.subscribe(t=>console.log(t))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange})}ngAfterContentInit(){if(Object(ve.J)(this.platformId)&&!this.hooks.isBot(pA(),this.platformId))return null;this.ngZone.runOutsideAngular(()=>{this.loadSubscription=this.propertyChanges$.pipe(Ve(t=>t.onStateChange.emit({reason:"setup"})),Ve(t=>this.hooks.setup(t)),Xr(t=>t.imagePath?this.hooks.getObservable(t).pipe(function(t,e){return i=>i.pipe(Ve(t=>e.onStateChange.emit({reason:"observer-emit",data:t})),Qe(i=>t.isVisible({element:e.element,event:i,offset:e.offset,scrollContainer:e.scrollContainer})),ri(1),Ve(()=>e.onStateChange.emit({reason:"start-loading"})),Object(Sh.a)(()=>t.loadImage(e)),Ve(()=>e.onStateChange.emit({reason:"mount-image"})),Ve(i=>t.setLoadedImage({element:e.element,imagePath:i,useSrcset:e.useSrcset})),Ve(()=>e.onStateChange.emit({reason:"loading-succeeded"})),Object(ii.a)(()=>!0),_h(i=>(e.onStateChange.emit({reason:"loading-failed",data:i}),t.setErrorImage(e),Ne(!1))),Ve(()=>{e.onStateChange.emit({reason:"finally"}),t.finally(e)}))}(this.hooks,t)):dA)).subscribe(t=>this.onLoad.emit(t))})}ngOnDestroy(){var t,e;null===(t=this.loadSubscription)||void 0===t||t.unsubscribe(),null===(e=this.debugSubscription)||void 0===e||e.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(s.I),s.Dc(s.M),s.Dc("options",8))},t.\u0275dir=s.yc({type:t,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange",onLoad:"onLoad"},features:[s.nc]}),t})();var MA;let FA=(()=>{let t=MA=class{static forRoot(t){return{ngModule:MA,providers:[{provide:"options",useValue:t}]}}};return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)}}),t})();var NA,LA,zA,BA,JA,VA,jA;function $A(t,e){if(1&t&&(s.Jc(0,"div"),s.Hc(1),s.Nc(2,VA),s.Gc(),s.Bd(3),s.Ic()),2&t){const t=s.ad();s.pc(3),s.Dd("\xa0",t.count,"")}}function HA(t,e){1&t&&s.Ec(0,"span")}function UA(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",12),s.Jc(1,"img",13),s.Wc("error",(function(e){return s.rd(t),s.ad().onImgError(e)}))("onLoad",(function(e){return s.rd(t),s.ad().imageLoaded(e)})),s.Ic(),s.zd(2,HA,1,0,"span",5),s.Ic()}if(2&t){const t=s.ad();s.pc(1),s.gd("id",t.type)("lazyLoad",t.thumbnailURL)("customObservable",t.scrollAndLoad),s.pc(1),s.gd("ngIf",!t.image_loaded)}}function GA(t,e){if(1&t&&(s.Jc(0,"button",14),s.Jc(1,"mat-icon"),s.Bd(2,"more_vert"),s.Ic(),s.Ic()),2&t){s.ad();const t=s.nd(15);s.gd("matMenuTriggerFor",t)}}function WA(t,e){if(1&t&&(s.Jc(0,"button",14),s.Jc(1,"mat-icon"),s.Bd(2,"more_vert"),s.Ic(),s.Ic()),2&t){s.ad();const t=s.nd(28);s.gd("matMenuTriggerFor",t)}}function qA(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",9),s.Wc("click",(function(){return s.rd(t),s.ad().deleteFile(!0)})),s.Jc(1,"mat-icon"),s.Bd(2,"delete_forever"),s.Ic(),s.Hc(3),s.Nc(4,jA),s.Gc(),s.Ic()}}NA=$localize`:File or playlist ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,LA=$localize`:Playlist edit button␟28f86ffd419b869711aa13f5e5ff54be6d70731c␟7585826646011739428:Edit`,zA=$localize`:Delete playlist␟826b25211922a1b46436589233cb6f1a163d89b7␟7022070615528435141:Delete`,BA=$localize`:Video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,JA=$localize`:Delete video button␟826b25211922a1b46436589233cb6f1a163d89b7␟7022070615528435141:Delete`,VA=$localize`:Playlist video count␟e684046d73bcee88e82f7ff01e2852789a05fc32␟6836949342567686088:Count:`,jA=$localize`:Delete and blacklist video button␟34504b488c24c27e68089be549f0eeae6ebaf30b␟593208667984994894:Delete and blacklist`;let KA=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.mainComponent=i,this.dialog=n,this.isAudio=!0,this.removeFile=new s.u,this.playlist=null,this.count=null,this.use_youtubedl_archive=!1,this.image_loaded=!1,this.image_errored=!1,this.scrollSubject=new Pe.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}ngOnInit(){if(this.type=this.isAudio?"audio":"video",this.file&&this.file.url&&this.file.url.includes("youtu")){const t=this.playlist?6:3,e=this.file.url.indexOf(this.playlist?"?list=":"?v=")+t;this.name=this.file.url.substring(e,this.file.url.length)}}deleteFile(t=!1){this.playlist?this.removeFile.emit(this.name):this.postsService.deleteFile(this.uid,this.isAudio,t).subscribe(t=>{t?(this.openSnackBar("Delete success!","OK."),this.removeFile.emit(this.name)):this.openSnackBar("Delete failed!","OK.")},t=>{this.openSnackBar("Delete failed!","OK.")})}openVideoInfoDialog(){this.dialog.open(sA,{data:{file:this.file},minWidth:"50vw"})}editPlaylistDialog(){const t=this.dialog.open(cA,{data:{playlist:this.playlist,width:"65vw"}});t.afterClosed().subscribe(e=>{t.componentInstance.playlist_updated&&(this.playlist=t.componentInstance.original_playlist,this.title=this.playlist.name,this.count=this.playlist.fileNames.length)})}onImgError(t){this.image_errored=!0}onHoverResponse(){this.scrollSubject.next()}imageLoaded(t){this.image_loaded=!0}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg),s.Dc(qO),s.Dc(bd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",uid:"uid",thumbnailURL:"thumbnailURL",isAudio:"isAudio",playlist:"playlist",count:"count",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{removeFile:"removeFile"},decls:40,vars:7,consts:[[1,"example-card","mat-elevation-z6"],[2,"padding","5px"],[2,"height","52px"],["href","javascript:void(0)",1,"file-link",3,"click"],[1,"max-two-lines"],[4,"ngIf"],["class","img-div",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["playlist_menu","matMenu"],["mat-menu-item","",3,"click"],["action_menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"id","lazyLoad","customObservable","error","onLoad"],["mat-icon-button","",1,"deleteButton",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&(s.Jc(0,"mat-card",0),s.Jc(1,"div",1),s.Jc(2,"div",2),s.Jc(3,"div"),s.Jc(4,"b"),s.Jc(5,"a",3),s.Wc("click",(function(){return e.playlist?e.mainComponent.goToPlaylist(e.name,e.type):e.mainComponent.goToFile(e.name,e.isAudio,e.uid)})),s.Bd(6),s.Ic(),s.Ic(),s.Ic(),s.Jc(7,"span",4),s.Hc(8),s.Nc(9,NA),s.Gc(),s.Bd(10),s.Ic(),s.zd(11,$A,4,1,"div",5),s.Ic(),s.zd(12,UA,3,4,"div",6),s.Ic(),s.zd(13,GA,3,1,"button",7),s.Jc(14,"mat-menu",null,8),s.Jc(16,"button",9),s.Wc("click",(function(){return e.editPlaylistDialog()})),s.Jc(17,"mat-icon"),s.Bd(18,"edit"),s.Ic(),s.Hc(19),s.Nc(20,LA),s.Gc(),s.Ic(),s.Jc(21,"button",9),s.Wc("click",(function(){return e.deleteFile()})),s.Jc(22,"mat-icon"),s.Bd(23,"delete_forever"),s.Ic(),s.Hc(24),s.Nc(25,zA),s.Gc(),s.Ic(),s.Ic(),s.zd(26,WA,3,1,"button",7),s.Jc(27,"mat-menu",null,10),s.Jc(29,"button",9),s.Wc("click",(function(){return e.openVideoInfoDialog()})),s.Jc(30,"mat-icon"),s.Bd(31,"info"),s.Ic(),s.Hc(32),s.Nc(33,BA),s.Gc(),s.Ic(),s.Jc(34,"button",9),s.Wc("click",(function(){return e.deleteFile()})),s.Jc(35,"mat-icon"),s.Bd(36,"delete"),s.Ic(),s.Hc(37),s.Nc(38,JA),s.Gc(),s.Ic(),s.zd(39,qA,5,0,"button",11),s.Ic(),s.Ic()),2&t&&(s.pc(6),s.Cd(e.title),s.pc(4),s.Dd("\xa0",e.name,""),s.pc(1),s.gd("ngIf",e.playlist),s.pc(1),s.gd("ngIf",!e.image_errored&&e.thumbnailURL),s.pc(1),s.gd("ngIf",e.playlist),s.pc(13),s.gd("ngIf",!e.playlist),s.pc(13),s.gd("ngIf",e.use_youtubedl_archive))},directives:[er,ve.t,Cp,_p,vu,RA,bs,Ep],styles:[".example-card[_ngcontent-%COMP%]{width:150px;height:125px;padding:0}.deleteButton[_ngcontent-%COMP%]{top:-5px;right:-5px;position:absolute}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:100%}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{height:60px;padding:0;margin:8px 0 0 -5px;width:calc(100% + 10px);overflow:hidden;border-radius:0 0 4px 4px}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;-webkit-box-orient:vertical;-webkit-line-clamp:2}.file-link[_ngcontent-%COMP%], .max-two-lines[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.file-link[_ngcontent-%COMP%]{width:80%;white-space:nowrap;display:block}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:125px!important}}"]}),t})();function XA(t,e){1&t&&(s.Jc(0,"div",6),s.Ec(1,"mat-spinner",7),s.Ic()),2&t&&(s.pc(1),s.gd("diameter",25))}let YA=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.inputText="",this.inputSubmitted=!1,this.doneEmitter=null,this.onlyEmitOnDone=!1}ngOnInit(){this.inputTitle=this.data.inputTitle,this.inputPlaceholder=this.data.inputPlaceholder,this.submitText=this.data.submitText,this.data.doneEmitter&&(this.doneEmitter=this.data.doneEmitter,this.onlyEmitOnDone=!0)}enterPressed(){this.inputText&&(this.onlyEmitOnDone?(this.doneEmitter.emit(this.inputText),this.inputSubmitted=!0):this.dialogRef.close(this.inputText))}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(ud),s.Dc(pd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-input-dialog"]],decls:12,vars:6,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Bd(1),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div"),s.Jc(4,"mat-form-field",1),s.Jc(5,"input",2),s.Wc("keyup.enter",(function(){return e.enterPressed()}))("ngModelChange",(function(t){return e.inputText=t})),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(6,"mat-dialog-actions"),s.Jc(7,"button",3),s.Bd(8,"Cancel"),s.Ic(),s.Jc(9,"button",4),s.Wc("click",(function(){return e.enterPressed()})),s.Bd(10),s.Ic(),s.zd(11,XA,2,1,"div",5),s.Ic()),2&t&&(s.pc(1),s.Cd(e.inputTitle),s.pc(4),s.gd("ngModel",e.inputText)("placeholder",e.inputPlaceholder),s.pc(4),s.gd("disabled",!e.inputText),s.pc(1),s.Cd(e.submitText),s.pc(1),s.gd("ngIf",e.inputSubmitted))},directives:[yd,wd,Bc,Ru,Rs,Js,qa,xd,bs,vd,ve.t,mm],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),t})();var ZA,QA;ZA=$localize`:Enable sharing checkbox␟1f6d14a780a37a97899dc611881e6bc971268285␟3852386690131857488:Enable sharing`,QA=$localize`:Use timestamp␟6580b6a950d952df847cb3d8e7176720a740adc8␟2355512602260135881:Use timestamp`;const tP=["placeholder",$localize`:Seconds␟4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c␟8874012390997067175:Seconds`];var eP,iP,nP,sP,aP;function oP(t,e){1&t&&(s.Hc(0),s.Nc(1,nP),s.Gc())}function rP(t,e){1&t&&(s.Hc(0),s.Nc(1,sP),s.Gc())}function lP(t,e){1&t&&(s.Hc(0),s.Nc(1,aP),s.Gc())}eP=$localize`:Copy to clipboard button␟3a6e5a6aa78ca864f6542410c5dafb6334538106␟8738732372986673558:Copy to clipboard`,iP=$localize`:Close button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,nP=$localize`:Share playlist dialog title␟a249a5ae13e0835383885aaf697d2890cc3e53e9␟3024429387570590252:Share playlist`,sP=$localize`:Share video dialog title␟15da89490e04496ca9ea1e1b3d44fb5efd4a75d9␟1305889615005911428:Share video`,aP=$localize`:Share audio dialog title␟1d540dcd271b316545d070f9d182c372d923aadd␟3735500696745720245:Share audio`;let cP=(()=>{class t{constructor(t,e,i,n){this.data=t,this.router=e,this.snackBar=i,this.postsService=n,this.type=null,this.uid=null,this.uuid=null,this.share_url=null,this.default_share_url=null,this.sharing_enabled=null,this.is_playlist=null,this.current_timestamp=null,this.timestamp_enabled=!1}ngOnInit(){if(this.data){this.type=this.data.type,this.uid=this.data.uid,this.uuid=this.data.uuid,this.sharing_enabled=this.data.sharing_enabled,this.is_playlist=this.data.is_playlist,this.current_timestamp=(this.data.current_timestamp/1e3).toFixed(2);const t=this.is_playlist?";id=":";uid=";this.default_share_url=window.location.href.split(";")[0]+t+this.uid,this.uuid&&(this.default_share_url+=";uuid="+this.uuid),this.share_url=this.default_share_url}}timestampInputChanged(t){if(!this.timestamp_enabled)return void(this.share_url=this.default_share_url);const e=t.target.value;this.share_url=e>0?this.default_share_url+";timestamp="+e:this.default_share_url}useTimestampChanged(){this.timestampInputChanged({target:{value:this.current_timestamp}})}copiedToClipboard(){this.openSnackBar("Copied to clipboard!")}sharingChanged(t){t.checked?this.postsService.enableSharing(this.uid,this.type,this.is_playlist).subscribe(t=>{t.success?(this.openSnackBar("Sharing enabled."),this.sharing_enabled=!0):this.openSnackBar("Failed to enable sharing.")},t=>{this.openSnackBar("Failed to enable sharing - server error.")}):this.postsService.disableSharing(this.uid,this.type,this.is_playlist).subscribe(t=>{t.success?(this.openSnackBar("Sharing disabled."),this.sharing_enabled=!1):this.openSnackBar("Failed to disable sharing.")},t=>{this.openSnackBar("Failed to disable sharing - server error.")})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(pd),s.Dc(wx),s.Dc(Hg),s.Dc(Wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-share-media-dialog"]],decls:28,vars:12,consts:[["mat-dialog-title",""],[4,"ngIf"],[3,"checked","change"],[2,"margin-right","15px",3,"ngModel","change","ngModelChange"],["matInput","","type","number",3,"ngModel","disabled","ngModelChange","change",6,"placeholder"],[2,"width","100%"],["matInput","",3,"disabled","readonly","value"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","cdkCopyToClipboard","click"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.zd(1,oP,2,0,"ng-container",1),s.zd(2,rP,2,0,"ng-container",1),s.zd(3,lP,2,0,"ng-container",1),s.Ic(),s.Jc(4,"mat-dialog-content"),s.Jc(5,"div"),s.Jc(6,"div"),s.Jc(7,"mat-checkbox",2),s.Wc("change",(function(t){return e.sharingChanged(t)})),s.Hc(8),s.Nc(9,ZA),s.Gc(),s.Ic(),s.Ic(),s.Jc(10,"div"),s.Jc(11,"mat-checkbox",3),s.Wc("change",(function(){return e.useTimestampChanged()}))("ngModelChange",(function(t){return e.timestamp_enabled=t})),s.Hc(12),s.Nc(13,QA),s.Gc(),s.Ic(),s.Jc(14,"mat-form-field"),s.Jc(15,"input",4),s.Pc(16,tP),s.Wc("ngModelChange",(function(t){return e.current_timestamp=t}))("change",(function(t){return e.timestampInputChanged(t)})),s.Ic(),s.Ic(),s.Ic(),s.Jc(17,"div"),s.Jc(18,"mat-form-field",5),s.Ec(19,"input",6),s.Ic(),s.Ic(),s.Jc(20,"div",7),s.Jc(21,"button",8),s.Wc("click",(function(){return e.copiedToClipboard()})),s.Hc(22),s.Nc(23,eP),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(24,"mat-dialog-actions"),s.Jc(25,"button",9),s.Hc(26),s.Nc(27,iP),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.gd("ngIf",e.is_playlist),s.pc(1),s.gd("ngIf",!e.is_playlist&&"video"===e.type),s.pc(1),s.gd("ngIf",!e.is_playlist&&"audio"===e.type),s.pc(4),s.gd("checked",e.sharing_enabled),s.pc(4),s.gd("ngModel",e.timestamp_enabled),s.pc(4),s.gd("ngModel",e.current_timestamp)("disabled",!e.timestamp_enabled),s.pc(4),s.gd("disabled",!e.sharing_enabled)("readonly",!0)("value",e.share_url),s.pc(2),s.gd("disabled",!e.sharing_enabled)("cdkCopyToClipboard",e.share_url))},directives:[yd,ve.t,wd,gr,Js,qa,Bc,Ru,Qs,Rs,bs,Fv,xd,vd],styles:[""]}),t})();const dP=["*"],hP=["volumeBar"],uP=function(t){return{dragging:t}};function pP(t,e){if(1&t&&s.Ec(0,"span",2),2&t){const t=e.$implicit;s.yd("width",null==t.$$style?null:t.$$style.width)("left",null==t.$$style?null:t.$$style.left)}}function mP(t,e){1&t&&s.Ec(0,"span",2)}function gP(t,e){1&t&&(s.Jc(0,"span"),s.Bd(1,"LIVE"),s.Ic())}function fP(t,e){if(1&t&&(s.Jc(0,"span"),s.Bd(1),s.bd(2,"vgUtc"),s.Ic()),2&t){const t=s.ad();s.pc(1),s.Cd(s.dd(2,1,t.getTime(),t.vgFormat))}}function bP(t,e){if(1&t&&(s.Jc(0,"option",4),s.Bd(1),s.Ic()),2&t){const t=e.$implicit;s.gd("value",t.id)("selected",!0===t.selected),s.pc(1),s.Dd(" ",t.label," ")}}function _P(t,e){if(1&t&&(s.Jc(0,"option",4),s.Bd(1),s.Ic()),2&t){const t=e.$implicit,i=s.ad();s.gd("value",t.qualityIndex.toString())("selected",t.qualityIndex===(null==i.bitrateSelected?null:i.bitrateSelected.qualityIndex)),s.pc(1),s.Dd(" ",t.label," ")}}let vP=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t.VG_ENDED="ended",t.VG_PAUSED="paused",t.VG_PLAYING="playing",t.VG_LOADING="waiting",t})(),yP=(()=>{let t=class{constructor(){this.medias={},this.playerReadyEvent=new s.u(!0),this.isPlayerReady=!1}onPlayerReady(t){this.fsAPI=t,this.isPlayerReady=!0,this.playerReadyEvent.emit(this)}getDefaultMedia(){for(const t in this.medias)if(this.medias[t])return this.medias[t]}getMasterMedia(){let t;for(const e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=this.medias[e];break}return t||this.getDefaultMedia()}isMasterDefined(){let t=!1;for(const e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=!0;break}return t}getMediaById(t=null){let e=this.medias[t];return t&&"*"!==t||(e=this),e}play(){for(const t in this.medias)this.medias[t]&&this.medias[t].play()}pause(){for(const t in this.medias)this.medias[t]&&this.medias[t].pause()}get duration(){return this.$$getAllProperties("duration")}set currentTime(t){this.$$setAllProperties("currentTime",t)}get currentTime(){return this.$$getAllProperties("currentTime")}set state(t){this.$$setAllProperties("state",t)}get state(){return this.$$getAllProperties("state")}set volume(t){this.$$setAllProperties("volume",t)}get volume(){return this.$$getAllProperties("volume")}set playbackRate(t){this.$$setAllProperties("playbackRate",t)}get playbackRate(){return this.$$getAllProperties("playbackRate")}get canPlay(){return this.$$getAllProperties("canPlay")}get canPlayThrough(){return this.$$getAllProperties("canPlayThrough")}get isMetadataLoaded(){return this.$$getAllProperties("isMetadataLoaded")}get isWaiting(){return this.$$getAllProperties("isWaiting")}get isCompleted(){return this.$$getAllProperties("isCompleted")}get isLive(){return this.$$getAllProperties("isLive")}get isMaster(){return this.$$getAllProperties("isMaster")}get time(){return this.$$getAllProperties("time")}get buffer(){return this.$$getAllProperties("buffer")}get buffered(){return this.$$getAllProperties("buffered")}get subscriptions(){return this.$$getAllProperties("subscriptions")}get textTracks(){return this.$$getAllProperties("textTracks")}seekTime(t,e=!1){for(const i in this.medias)this.medias[i]&&this.$$seek(this.medias[i],t,e)}$$seek(t,e,i=!1){let n,s=t.duration;i?(this.isMasterDefined()&&(s=this.getMasterMedia().duration),n=e*s/100):n=e,t.currentTime=n}addTextTrack(t,e,i){for(const n in this.medias)this.medias[n]&&this.$$addTextTrack(this.medias[n],t,e,i)}$$addTextTrack(t,e,i,n){t.addTextTrack(e,i,n)}$$getAllProperties(t){const e={};let i;for(const n in this.medias)this.medias[n]&&(e[n]=this.medias[n]);switch(Object.keys(e).length){case 0:switch(t){case"state":i=vP.VG_PAUSED;break;case"playbackRate":case"volume":i=1;break;case"time":i={current:0,total:0,left:0}}break;case 1:i=e[Object.keys(e)[0]][t];break;default:i=e[this.getMasterMedia().id][t]}return i}$$setAllProperties(t,e){for(const i in this.medias)this.medias[i]&&(this.medias[i][t]=e)}registerElement(t){this.videogularElement=t}registerMedia(t){this.medias[t.id]=t}unregisterMedia(t){delete this.medias[t.id]}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),wP=(()=>{let t=class{constructor(t,e){this.API=e,this.checkInterval=50,this.currentPlayPos=0,this.lastPlayPos=0,this.subscriptions=[],this.isBuffering=!1,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe(t=>this.onUpdateBuffer(t)))}onUpdateBuffer(t){this.isBuffering=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-buffering"]],hostVars:2,hostBindings:function(t,e){2&t&&s.tc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:3,vars:0,consts:[[1,"vg-buffering"],[1,"bufferingContainer"],[1,"loadingSpinner"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.Ec(2,"div",2),s.Ic(),s.Ic())},styles:["\n vg-buffering {\n display: none;\n z-index: 201;\n }\n vg-buffering.is-buffering {\n display: block;\n }\n\n .vg-buffering {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n }\n .vg-buffering .bufferingContainer {\n width: 100%;\n position: absolute;\n cursor: pointer;\n top: 50%;\n margin-top: -50px;\n zoom: 1;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n /* Loading Spinner\n * http://www.alessioatzeni.com/blog/css3-loading-animation-loop/\n */\n .vg-buffering .loadingSpinner {\n background-color: rgba(0, 0, 0, 0);\n border: 5px solid rgba(255, 255, 255, 1);\n opacity: .9;\n border-top: 5px solid rgba(0, 0, 0, 0);\n border-left: 5px solid rgba(0, 0, 0, 0);\n border-radius: 50px;\n box-shadow: 0 0 35px #FFFFFF;\n width: 50px;\n height: 50px;\n margin: 0 auto;\n -moz-animation: spin .5s infinite linear;\n -webkit-animation: spin .5s infinite linear;\n }\n .vg-buffering .loadingSpinner .stop {\n -webkit-animation-play-state: paused;\n -moz-animation-play-state: paused;\n }\n @-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(360deg);\n }\n }\n @-moz-keyframes spinoff {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(-360deg);\n }\n }\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n @-webkit-keyframes spinoff {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(-360deg);\n }\n }\n "],encapsulation:2}),t})(),xP=(()=>{let t=class{};return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c]]}),t})(),kP=(()=>{let t=class{constructor(){this.isHiddenSubject=new Pe.a,this.isHidden=this.isHiddenSubject.asObservable()}state(t){this.isHiddenSubject.next(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),CP=(()=>{let t=class{constructor(t,e,i){this.API=t,this.ref=e,this.hidden=i,this.isAdsPlaying="initial",this.hideControls=!1,this.vgAutohide=!1,this.vgAutohideTime=3,this.subscriptions=[],this.elem=e.nativeElement}ngOnInit(){this.mouseMove$=kr(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=kr(this.API.videogularElement,"touchstart"),this.subscriptions.push(this.touchStart$.subscribe(this.show.bind(this))),this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.play.subscribe(this.onPlay.bind(this))),this.subscriptions.push(this.target.subscriptions.pause.subscribe(this.onPause.bind(this))),this.subscriptions.push(this.target.subscriptions.startAds.subscribe(this.onStartAds.bind(this))),this.subscriptions.push(this.target.subscriptions.endAds.subscribe(this.onEndAds.bind(this)))}ngAfterViewInit(){this.vgAutohide?this.hide():this.show()}onPlay(){this.vgAutohide&&this.hide()}onPause(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1)}onStartAds(){this.isAdsPlaying="none"}onEndAds(){this.isAdsPlaying="initial"}hide(){this.vgAutohide&&(clearTimeout(this.timer),this.hideAsync())}show(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1),this.vgAutohide&&this.hideAsync()}hideAsync(){this.API.state===vP.VG_PLAYING&&(this.timer=setTimeout(()=>{this.hideControls=!0,this.hidden.state(!0)},1e3*this.vgAutohideTime))}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(yP),s.Dc(s.r),s.Dc(kP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-controls"]],hostVars:4,hostBindings:function(t,e){2&t&&(s.yd("pointer-events",e.isAdsPlaying),s.tc("hide",e.hideControls))},inputs:{vgAutohide:"vgAutohide",vgAutohideTime:"vgAutohideTime",vgFor:"vgFor"},ngContentSelectors:dP,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},styles:["\n vg-controls {\n position: absolute;\n display: flex;\n width: 100%;\n height: 50px;\n z-index: 300;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: bottom 1s;\n -khtml-transition: bottom 1s;\n -moz-transition: bottom 1s;\n -ms-transition: bottom 1s;\n transition: bottom 1s;\n }\n vg-controls.hide {\n bottom: -50px;\n }\n "],encapsulation:2}),t})(),SP=(()=>{let t=class{static getZIndex(){let t,e=1;const i=document.getElementsByTagName("*");for(let n=0,s=i.length;ne&&(e=t+1);return e}static isMobileDevice(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")}static isiOSDevice(){return navigator.userAgent.match(/ip(hone|ad|od)/i)&&!navigator.userAgent.match(/(iemobile)[\/\s]?([\w\.]*)/i)}static isCordova(){return-1===document.URL.indexOf("http://")&&-1===document.URL.indexOf("https://")}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.zc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),IP=(()=>{let t=class{constructor(){this.nativeFullscreen=!0,this.isFullscreen=!1,this.onChangeFullscreen=new s.u}init(t,e){this.videogularElement=t,this.medias=e;const i={w3:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",onchange:"fullscreenchange",onerror:"fullscreenerror"},newWebkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},oldWebkit:{enabled:"webkitIsFullScreen",element:"webkitCurrentFullScreenElement",request:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},moz:{enabled:"mozFullScreen",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",onchange:"mozfullscreenchange",onerror:"mozfullscreenerror"},ios:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitEnterFullscreen",exit:"webkitExitFullscreen",onchange:"webkitendfullscreen",onerror:"webkitfullscreenerror"},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",onchange:"MSFullscreenChange",onerror:"MSFullscreenError"}};for(const s in i)if(i[s].enabled in document){this.polyfill=i[s];break}if(SP.isiOSDevice()&&(this.polyfill=i.ios),this.isAvailable=null!=this.polyfill,null==this.polyfill)return;let n;switch(this.polyfill.onchange){case"mozfullscreenchange":n=document;break;case"webkitendfullscreen":n=this.medias.toArray()[0].elem;break;default:n=t}this.fsChangeSubscription=kr(n,this.polyfill.onchange).subscribe(()=>{this.onFullscreenChange()})}onFullscreenChange(){this.isFullscreen=!!document[this.polyfill.element],this.onChangeFullscreen.emit(this.isFullscreen)}toggleFullscreen(t=null){this.isFullscreen?this.exit():this.request(t)}request(t){t||(t=this.videogularElement),this.isFullscreen=!0,this.onChangeFullscreen.emit(!0),this.isAvailable&&this.nativeFullscreen&&(SP.isMobileDevice()?((!this.polyfill.enabled&&t===this.videogularElement||SP.isiOSDevice())&&(t=this.medias.toArray()[0].elem),this.enterElementInFullScreen(t)):this.enterElementInFullScreen(this.videogularElement))}enterElementInFullScreen(t){t[this.polyfill.request]()}exit(){this.isFullscreen=!1,this.onChangeFullscreen.emit(!1),this.isAvailable&&this.nativeFullscreen&&document[this.polyfill.exit]()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t})(),DP=(()=>{let t=class{constructor(t,e,i){this.API=e,this.fsAPI=i,this.isFullscreen=!1,this.subscriptions=[],this.ariaValue="normal mode",this.elem=t.nativeElement,this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this)))}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onChangeFullscreen(t){this.ariaValue=t?"fullscren mode":"normal mode",this.isFullscreen=t}onClick(){this.changeFullscreenState()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeFullscreenState())}changeFullscreenState(){let t=this.target;this.target instanceof yP&&(t=null),this.fsAPI.toggleFullscreen(t)}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP),s.Dc(IP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-fullscreen"]],hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},decls:1,vars:5,consts:[["tabindex","0","role","button","aria-label","fullscreen button",1,"icon"]],template:function(t,e){1&t&&s.Ec(0,"div",0),2&t&&(s.tc("vg-icon-fullscreen",!e.isFullscreen)("vg-icon-fullscreen_exit",e.isFullscreen),s.qc("aria-valuetext",e.ariaValue))},styles:["\n vg-fullscreen {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n\n vg-fullscreen .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),EP=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue="unmuted",this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.currentVolume=this.target.volume}onClick(){this.changeMuteState()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeMuteState())}changeMuteState(){const t=this.getVolume();0===t?(0===this.target.volume&&0===this.currentVolume&&(this.currentVolume=1),this.target.volume=this.currentVolume):(this.currentVolume=t,this.target.volume=0)}getVolume(){const t=this.target?this.target.volume:0;return this.ariaValue=t?"unmuted":"muted",t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-mute"]],hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:9,consts:[["tabindex","0","role","button","aria-label","mute button",1,"icon"]],template:function(t,e){1&t&&s.Ec(0,"div",0),2&t&&(s.tc("vg-icon-volume_up",e.getVolume()>=.75)("vg-icon-volume_down",e.getVolume()>=.25&&e.getVolume()<.75)("vg-icon-volume_mute",e.getVolume()>0&&e.getVolume()<.25)("vg-icon-volume_off",0===e.getVolume()),s.qc("aria-valuetext",e.ariaValue))},styles:["\n vg-mute {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-mute .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),OP=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement,this.isDragging=!1}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.ariaValue=100*this.getVolume()}onClick(t){this.setVolume(this.calculateVolume(t.clientX))}onMouseDown(t){this.mouseDownPosX=t.clientX,this.isDragging=!0}onDrag(t){this.isDragging&&this.setVolume(this.calculateVolume(t.clientX))}onStopDrag(t){this.isDragging&&(this.isDragging=!1,this.mouseDownPosX===t.clientX&&this.setVolume(this.calculateVolume(t.clientX)))}arrowAdjustVolume(t){38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()+10)))):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()-10))))}calculateVolume(t){const e=this.volumeBarRef.nativeElement.getBoundingClientRect();return(t-e.left)/e.width*100}setVolume(t){this.target.volume=Math.max(0,Math.min(1,t/100)),this.ariaValue=100*this.target.volume}getVolume(){return this.target?this.target.volume:0}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-volume"]],viewQuery:function(t,e){var i;1&t&&s.xd(hP,!0),2&t&&s.md(i=s.Xc())&&(e.volumeBarRef=i.first)},hostBindings:function(t,e){1&t&&s.Wc("mousemove",(function(t){return e.onDrag(t)}),!1,s.pd)("mouseup",(function(t){return e.onStopDrag(t)}),!1,s.pd)("keydown",(function(t){return e.arrowAdjustVolume(t)}))},inputs:{vgFor:"vgFor"},decls:5,vars:9,consts:[["tabindex","0","role","slider","aria-label","volume level","aria-level","polite","aria-valuemin","0","aria-valuemax","100","aria-orientation","horizontal",1,"volumeBar",3,"click","mousedown"],["volumeBar",""],[1,"volumeBackground",3,"ngClass"],[1,"volumeValue"],[1,"volumeKnob"]],template:function(t,e){1&t&&(s.Jc(0,"div",0,1),s.Wc("click",(function(t){return e.onClick(t)}))("mousedown",(function(t){return e.onMouseDown(t)})),s.Jc(2,"div",2),s.Ec(3,"div",3),s.Ec(4,"div",4),s.Ic(),s.Ic()),2&t&&(s.qc("aria-valuenow",e.ariaValue)("aria-valuetext",e.ariaValue+"%"),s.pc(2),s.gd("ngClass",s.jd(7,uP,e.isDragging)),s.pc(1),s.yd("width",85*e.getVolume()+"%"),s.pc(1),s.yd("left",85*e.getVolume()+"%"))},directives:[ve.q],styles:["\n vg-volume {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 100px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-volume .volumeBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n vg-volume .volumeBackground {\n display: flex;\n flex-grow: 1;\n height: 5px;\n pointer-events: none;\n background-color: #333;\n }\n vg-volume .volumeValue {\n display: flex;\n height: 5px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeKnob {\n position: absolute;\n width: 15px; height: 15px;\n left: 0; top: 50%;\n transform: translateY(-50%);\n border-radius: 15px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeBackground.dragging .volumeValue,\n vg-volume .volumeBackground.dragging .volumeKnob {\n transition: none;\n }\n "],encapsulation:2}),t})(),AP=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue=vP.VG_PAUSED,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onClick(){this.playPause()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.playPause())}playPause(){switch(this.getState()){case vP.VG_PLAYING:this.target.pause();break;case vP.VG_PAUSED:case vP.VG_ENDED:this.target.play()}}getState(){return this.ariaValue=this.target?this.target.state:vP.VG_PAUSED,this.ariaValue}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-play-pause"]],hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:6,consts:[["tabindex","0","role","button",1,"icon"]],template:function(t,e){1&t&&s.Ec(0,"div",0),2&t&&(s.tc("vg-icon-pause","playing"===e.getState())("vg-icon-play_arrow","paused"===e.getState()||"ended"===e.getState()),s.qc("aria-label","paused"===e.getState()?"play":"pause")("aria-valuetext",e.ariaValue))},styles:["\n vg-play-pause {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-play-pause .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),PP=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue=1,this.elem=t.nativeElement,this.playbackValues=["0.5","1.0","1.5","2.0"],this.playbackIndex=1}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onClick(){this.updatePlaybackSpeed()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.updatePlaybackSpeed())}updatePlaybackSpeed(){this.playbackIndex=++this.playbackIndex%this.playbackValues.length,this.target instanceof yP?this.target.playbackRate=this.playbackValues[this.playbackIndex]:this.target.playbackRate[this.vgFor]=this.playbackValues[this.playbackIndex]}getPlaybackRate(){return this.ariaValue=this.target?this.target.playbackRate:1,this.ariaValue}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-playback-button"]],hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{playbackValues:"playbackValues",vgFor:"vgFor"},decls:2,vars:2,consts:[["tabindex","0","role","button","aria-label","playback speed button",1,"button"]],template:function(t,e){1&t&&(s.Jc(0,"span",0),s.Bd(1),s.Ic()),2&t&&(s.qc("aria-valuetext",e.ariaValue),s.pc(1),s.Dd(" ",e.getPlaybackRate(),"x "))},styles:["\n vg-playback-button {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n vg-playback-button .button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n }\n "],encapsulation:2}),t})(),TP=(()=>{let t=class{constructor(t,e,i){this.API=e,this.hideScrubBar=!1,this.vgSlider=!0,this.isSeeking=!1,this.wasPlaying=!1,this.subscriptions=[],this.elem=t.nativeElement,this.subscriptions.push(i.isHidden.subscribe(t=>this.onHideScrubBar(t)))}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}seekStart(){this.target.canPlay&&(this.isSeeking=!0,this.target.state===vP.VG_PLAYING&&(this.wasPlaying=!0),this.target.pause())}seekMove(t){if(this.isSeeking){const e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.time.current=e*this.target.time.total/100,this.target.seekTime(e,!0)}}seekEnd(t){if(this.isSeeking=!1,this.target.canPlay){const e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.seekTime(e,!0),this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}}touchEnd(){this.isSeeking=!1,this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}getTouchOffset(t){let e=0,i=t.target;for(;i;)e+=i.offsetLeft,i=i.offsetParent;return t.touches[0].pageX-e}onMouseDownScrubBar(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(t.offsetX)))}onMouseMoveScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(t.offsetX)}onMouseUpScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekEnd(t.offsetX)}onTouchStartScrubBar(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(this.getTouchOffset(t))))}onTouchMoveScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(this.getTouchOffset(t))}onTouchCancelScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}onTouchEndScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}arrowAdjustVolume(t){this.target&&(38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.target.seekTime((this.target.time.current+5e3)/1e3,!1)):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.target.seekTime((this.target.time.current-5e3)/1e3,!1)))}getPercentage(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}onHideScrubBar(t){this.hideScrubBar=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP),s.Dc(kP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-scrub-bar"]],hostVars:2,hostBindings:function(t,e){1&t&&s.Wc("mousedown",(function(t){return e.onMouseDownScrubBar(t)}))("mousemove",(function(t){return e.onMouseMoveScrubBar(t)}),!1,s.pd)("mouseup",(function(t){return e.onMouseUpScrubBar(t)}),!1,s.pd)("touchstart",(function(t){return e.onTouchStartScrubBar(t)}))("touchmove",(function(t){return e.onTouchMoveScrubBar(t)}),!1,s.pd)("touchcancel",(function(t){return e.onTouchCancelScrubBar(t)}),!1,s.pd)("touchend",(function(t){return e.onTouchEndScrubBar(t)}),!1,s.pd)("keydown",(function(t){return e.arrowAdjustVolume(t)})),2&t&&s.tc("hide",e.hideScrubBar)},inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},ngContentSelectors:dP,decls:2,vars:2,consts:[["tabindex","0","role","slider","aria-label","scrub bar","aria-level","polite","aria-valuemin","0","aria-valuemax","100",1,"scrubBar"]],template:function(t,e){1&t&&(s.fd(),s.Jc(0,"div",0),s.ed(1),s.Ic()),2&t&&s.qc("aria-valuenow",e.getPercentage())("aria-valuetext",e.getPercentage()+"%")},styles:["\n vg-scrub-bar {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: absolute;\n width: 100%;\n height: 5px;\n bottom: 50px;\n margin: 0;\n cursor: pointer;\n align-items: center;\n background: rgba(0, 0, 0, 0.75);\n z-index: 250;\n -webkit-transition: bottom 1s, opacity 0.5s;\n -khtml-transition: bottom 1s, opacity 0.5s;\n -moz-transition: bottom 1s, opacity 0.5s;\n -ms-transition: bottom 1s, opacity 0.5s;\n transition: bottom 1s, opacity 0.5s;\n }\n vg-scrub-bar .scrubBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n height: 100%;\n }\n vg-controls vg-scrub-bar {\n position: relative;\n bottom: 0;\n background: transparent;\n height: 50px;\n flex-grow: 1;\n flex-basis: 0;\n margin: 0 10px;\n -webkit-transition: initial;\n -khtml-transition: initial;\n -moz-transition: initial;\n -ms-transition: initial;\n transition: initial;\n }\n vg-scrub-bar.hide {\n bottom: 0;\n opacity: 0;\n }\n vg-controls vg-scrub-bar.hide {\n bottom: initial;\n opacity: initial;\n }\n "],encapsulation:2}),t})(),RP=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getBufferTime(){let t="0%";return this.target&&this.target.buffer&&this.target.buffered.length&&(t=0===this.target.time.total?"0%":this.target.buffer.end/this.target.time.total*100+"%"),t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-scrub-bar-buffering-time"]],inputs:{vgFor:"vgFor"},decls:1,vars:2,consts:[[1,"background"]],template:function(t,e){1&t&&s.Ec(0,"div",0),2&t&&s.yd("width",e.getBufferTime())},styles:["\n vg-scrub-bar-buffering-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-buffering-time .background {\n background-color: rgba(255, 255, 255, 0.3);\n }\n vg-controls vg-scrub-bar-buffering-time {\n position: absolute;\n top: calc(50% - 3px);\n }\n vg-controls vg-scrub-bar-buffering-time .background {\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n "],encapsulation:2}),t})(),MP=(()=>{let t=class{constructor(t,e){this.API=e,this.onLoadedMetadataCalled=!1,this.cuePoints=[],this.subscriptions=[],this.totalCues=0,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.loadedMetadata.subscribe(this.onLoadedMetadata.bind(this))),this.onLoadedMetadataCalled&&this.onLoadedMetadata()}onLoadedMetadata(){if(this.vgCuePoints){this.cuePoints=[];for(let t=0,e=this.vgCuePoints.length;t=0?this.vgCuePoints[t].endTime:this.vgCuePoints[t].startTime+1)-this.vgCuePoints[t].startTime);let i="0",n="0";"number"==typeof e&&this.target.time.total&&(n=100*e/this.target.time.total+"%",i=100*this.vgCuePoints[t].startTime/Math.round(this.target.time.total/1e3)+"%"),this.vgCuePoints[t].$$style={width:n,left:i},this.cuePoints.push(this.vgCuePoints[t])}}}updateCuePoints(){this.target?this.onLoadedMetadata():this.onLoadedMetadataCalled=!0}ngOnChanges(t){t.vgCuePoints.currentValue&&this.updateCuePoints()}ngDoCheck(){this.vgCuePoints&&this.totalCues!==this.vgCuePoints.length&&(this.totalCues=this.vgCuePoints.length,this.updateCuePoints())}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-scrub-bar-cue-points"]],inputs:{vgCuePoints:"vgCuePoints",vgFor:"vgFor"},features:[s.nc],decls:2,vars:1,consts:[[1,"cue-point-container"],["class","cue-point",3,"width","left",4,"ngFor","ngForOf"],[1,"cue-point"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.zd(1,pP,1,4,"span",1),s.Ic()),2&t&&(s.pc(1),s.gd("ngForOf",e.cuePoints))},directives:[ve.s],styles:["\n vg-scrub-bar-cue-points {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-cue-points .cue-point-container .cue-point {\n position: absolute;\n height: 5px;\n background-color: rgba(255, 204, 0, 0.7);\n }\n vg-controls vg-scrub-bar-cue-points {\n position: absolute;\n top: calc(50% - 3px);\n }\n "],encapsulation:2}),t})(),FP=(()=>{let t=class{constructor(t,e){this.API=e,this.vgSlider=!1,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getPercentage(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-scrub-bar-current-time"]],inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},decls:2,vars:3,consts:[[1,"background"],["class","slider",4,"ngIf"],[1,"slider"]],template:function(t,e){1&t&&(s.Ec(0,"div",0),s.zd(1,mP,1,0,"span",1)),2&t&&(s.yd("width",e.getPercentage()),s.pc(1),s.gd("ngIf",e.vgSlider))},directives:[ve.t],styles:["\n vg-scrub-bar-current-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-current-time .background {\n background-color: white;\n }\n vg-controls vg-scrub-bar-current-time {\n position: absolute;\n top: calc(50% - 3px);\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n vg-controls vg-scrub-bar-current-time .background {\n border: 1px solid white;\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n\n vg-scrub-bar-current-time .slider{\n background: white;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n box-shadow: 0px 0px 10px black;\n margin-top: -5px;\n margin-left: -10px;\n }\n "],encapsulation:2}),t})(),NP=(()=>{let t=class{transform(t,e){const i=new Date(t);let n=e,s=i.getUTCSeconds(),a=i.getUTCMinutes(),o=i.getUTCHours();return s<10&&(s="0"+s),a<10&&(a="0"+a),o<10&&(o="0"+o),n=n.replace(/ss/g,s),n=n.replace(/mm/g,a),n=n.replace(/hh/g,o),n}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Cc({name:"vgUtc",type:t,pure:!0}),t})(),LP=(()=>{let t=class{constructor(t,e){this.API=e,this.vgProperty="current",this.vgFormat="mm:ss",this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getTime(){let t=0;return this.target&&(t=Math.round(this.target.time[this.vgProperty]),t=isNaN(t)||this.target.isLive?0:t),t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:dP,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(s.fd(),s.zd(0,gP,2,0,"span",0),s.zd(1,fP,3,4,"span",0),s.ed(2)),2&t&&(s.gd("ngIf",null==e.target?null:e.target.isLive),s.pc(1),s.gd("ngIf",!(null!=e.target&&e.target.isLive)))},directives:[ve.t],pipes:[NP],styles:["\n vg-time-display {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 60px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n pointer-events: none;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n "],encapsulation:2}),t})(),zP=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor);const t=Array.from(this.API.getMasterMedia().elem.children).filter(t=>"TRACK"===t.tagName).filter(t=>"subtitles"===t.kind).map(t=>({label:t.label,selected:!0===t.default,id:t.srclang}));this.tracks=[...t,{id:null,label:"Off",selected:t.every(t=>!1===t.selected)}];const e=this.tracks.filter(t=>!0===t.selected)[0];this.trackSelected=e.id,this.ariaValue=e.label}selectTrack(t){this.trackSelected="null"===t?null:t,this.ariaValue="No track selected",Array.from(this.API.getMasterMedia().elem.textTracks).forEach(e=>{e.language===t?(this.ariaValue=e.label,e.mode="showing"):e.mode="hidden"})}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-track-selector"]],inputs:{vgFor:"vgFor"},decls:5,vars:5,consts:[[1,"container"],[1,"track-selected"],["tabindex","0","aria-label","track selector",1,"trackSelector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.Bd(2),s.Ic(),s.Jc(3,"select",2),s.Wc("change",(function(t){return e.selectTrack(t.target.value)})),s.zd(4,bP,2,3,"option",3),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.tc("vg-icon-closed_caption",!e.trackSelected),s.pc(1),s.Dd(" ",e.trackSelected||""," "),s.pc(1),s.qc("aria-valuetext",e.ariaValue),s.pc(1),s.gd("ngForOf",e.tracks))},directives:[ve.s],styles:["\n vg-track-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-track-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-track-selector select.trackSelector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-track-selector select.trackSelector::-ms-expand {\n display: none;\n }\n vg-track-selector select.trackSelector option {\n color: #000;\n }\n vg-track-selector .track-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-track-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),t})(),BP=(()=>{let t=class{constructor(t,e){this.API=e,this.onBitrateChange=new s.u,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){}ngOnChanges(t){t.bitrates.currentValue&&t.bitrates.currentValue.length&&this.bitrates.forEach(t=>t.label=(t.label||Math.round(t.bitrate/1e3)).toString())}selectBitrate(t){this.bitrateSelected=this.bitrates[t],this.onBitrateChange.emit(this.bitrates[t])}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-quality-selector"]],inputs:{bitrates:"bitrates"},outputs:{onBitrateChange:"onBitrateChange"},features:[s.nc],decls:5,vars:5,consts:[[1,"container"],[1,"quality-selected"],["tabindex","0","aria-label","quality selector",1,"quality-selector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.Bd(2),s.Ic(),s.Jc(3,"select",2),s.Wc("change",(function(t){return e.selectBitrate(t.target.value)})),s.zd(4,_P,2,3,"option",3),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.tc("vg-icon-hd",!e.bitrateSelected),s.pc(1),s.Dd(" ",null==e.bitrateSelected?null:e.bitrateSelected.label," "),s.pc(1),s.qc("aria-valuetext",e.ariaValue),s.pc(1),s.gd("ngForOf",e.bitrates))},directives:[ve.s],styles:["\n vg-quality-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-quality-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-quality-selector select.quality-selector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-quality-selector select.quality-selector::-ms-expand {\n display: none;\n }\n vg-quality-selector select.quality-selector option {\n color: #000;\n }\n vg-quality-selector .quality-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-quality-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),t})(),JP=(()=>{let t=class{};return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[kP],imports:[[ve.c]]}),t})(),VP=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.zc({token:t,factory:t.\u0275fac}),t.VG_ABORT="abort",t.VG_CAN_PLAY="canplay",t.VG_CAN_PLAY_THROUGH="canplaythrough",t.VG_DURATION_CHANGE="durationchange",t.VG_EMPTIED="emptied",t.VG_ENCRYPTED="encrypted",t.VG_ENDED="ended",t.VG_ERROR="error",t.VG_LOADED_DATA="loadeddata",t.VG_LOADED_METADATA="loadedmetadata",t.VG_LOAD_START="loadstart",t.VG_PAUSE="pause",t.VG_PLAY="play",t.VG_PLAYING="playing",t.VG_PROGRESS="progress",t.VG_RATE_CHANGE="ratechange",t.VG_SEEK="seek",t.VG_SEEKED="seeked",t.VG_SEEKING="seeking",t.VG_STALLED="stalled",t.VG_SUSPEND="suspend",t.VG_TIME_UPDATE="timeupdate",t.VG_VOLUME_CHANGE="volumechange",t.VG_WAITING="waiting",t.VG_LOAD="load",t.VG_ENTER="enter",t.VG_EXIT="exit",t.VG_START_ADS="startads",t.VG_END_ADS="endads",t})(),jP=(()=>{let t=class{constructor(t,e){this.api=t,this.ref=e,this.state=vP.VG_PAUSED,this.time={current:0,total:0,left:0},this.buffer={end:0},this.canPlay=!1,this.canPlayThrough=!1,this.isMetadataLoaded=!1,this.isWaiting=!1,this.isCompleted=!1,this.isLive=!1,this.isBufferDetected=!1,this.checkInterval=200,this.currentPlayPos=0,this.lastPlayPos=0,this.playAtferSync=!1,this.bufferDetected=new Pe.a}ngOnInit(){this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:kr(this.elem,VP.VG_ABORT),canPlay:kr(this.elem,VP.VG_CAN_PLAY),canPlayThrough:kr(this.elem,VP.VG_CAN_PLAY_THROUGH),durationChange:kr(this.elem,VP.VG_DURATION_CHANGE),emptied:kr(this.elem,VP.VG_EMPTIED),encrypted:kr(this.elem,VP.VG_ENCRYPTED),ended:kr(this.elem,VP.VG_ENDED),error:kr(this.elem,VP.VG_ERROR),loadedData:kr(this.elem,VP.VG_LOADED_DATA),loadedMetadata:kr(this.elem,VP.VG_LOADED_METADATA),loadStart:kr(this.elem,VP.VG_LOAD_START),pause:kr(this.elem,VP.VG_PAUSE),play:kr(this.elem,VP.VG_PLAY),playing:kr(this.elem,VP.VG_PLAYING),progress:kr(this.elem,VP.VG_PROGRESS),rateChange:kr(this.elem,VP.VG_RATE_CHANGE),seeked:kr(this.elem,VP.VG_SEEKED),seeking:kr(this.elem,VP.VG_SEEKING),stalled:kr(this.elem,VP.VG_STALLED),suspend:kr(this.elem,VP.VG_SUSPEND),timeUpdate:kr(this.elem,VP.VG_TIME_UPDATE),volumeChange:kr(this.elem,VP.VG_VOLUME_CHANGE),waiting:kr(this.elem,VP.VG_WAITING),startAds:kr(this.elem,VP.VG_START_ADS),endAds:kr(this.elem,VP.VG_END_ADS),mutation:new si.a(t=>{const e=new MutationObserver(e=>{t.next(e)});return e.observe(this.elem,{childList:!0,attributes:!0}),()=>{e.disconnect()}}),bufferDetected:this.bufferDetected},this.mutationObs=this.subscriptions.mutation.subscribe(this.onMutation.bind(this)),this.canPlayObs=this.subscriptions.canPlay.subscribe(this.onCanPlay.bind(this)),this.canPlayThroughObs=this.subscriptions.canPlayThrough.subscribe(this.onCanPlayThrough.bind(this)),this.loadedMetadataObs=this.subscriptions.loadedMetadata.subscribe(this.onLoadMetadata.bind(this)),this.waitingObs=this.subscriptions.waiting.subscribe(this.onWait.bind(this)),this.progressObs=this.subscriptions.progress.subscribe(this.onProgress.bind(this)),this.endedObs=this.subscriptions.ended.subscribe(this.onComplete.bind(this)),this.playingObs=this.subscriptions.playing.subscribe(this.onStartPlaying.bind(this)),this.playObs=this.subscriptions.play.subscribe(this.onPlay.bind(this)),this.pauseObs=this.subscriptions.pause.subscribe(this.onPause.bind(this)),this.timeUpdateObs=this.subscriptions.timeUpdate.subscribe(this.onTimeUpdate.bind(this)),this.volumeChangeObs=this.subscriptions.volumeChange.subscribe(this.onVolumeChange.bind(this)),this.errorObs=this.subscriptions.error.subscribe(this.onError.bind(this)),this.vgMaster&&this.api.playerReadyEvent.subscribe(()=>{this.prepareSync()})}prepareSync(){const t=[];for(const e in this.api.medias)this.api.medias[e]&&t.push(this.api.medias[e].subscriptions.canPlay);this.canPlayAllSubscription=Tp(t).pipe(Object(ii.a)((...t)=>{t.some(t=>4===t.target.readyState)&&!this.syncSubscription&&(this.startSync(),this.syncSubscription.unsubscribe())})).subscribe()}startSync(){this.syncSubscription=$r(0,1e3).subscribe(()=>{for(const t in this.api.medias)if(this.api.medias[t]!==this){const e=this.api.medias[t].currentTime-this.currentTime;e<-.3||e>.3?(this.playAtferSync=this.state===vP.VG_PLAYING,this.pause(),this.api.medias[t].pause(),this.api.medias[t].currentTime=this.currentTime):this.playAtferSync&&(this.play(),this.api.medias[t].play(),this.playAtferSync=!1)}})}onMutation(t){for(let e=0,i=t.length;e0&&i.target.src.indexOf("blob:")<0){this.loadMedia();break}}else if("childList"===i.type&&i.removedNodes.length&&"source"===i.removedNodes[0].nodeName.toLowerCase()){this.loadMedia();break}}}loadMedia(){this.vgMedia.pause(),this.vgMedia.currentTime=0,this.stopBufferCheck(),this.isBufferDetected=!0,this.bufferDetected.next(this.isBufferDetected),setTimeout(()=>this.vgMedia.load(),10)}play(){if(!(this.playPromise||this.state!==vP.VG_PAUSED&&this.state!==vP.VG_ENDED))return this.playPromise=this.vgMedia.play(),this.playPromise&&this.playPromise.then&&this.playPromise.catch&&this.playPromise.then(()=>{this.playPromise=null}).catch(()=>{this.playPromise=null}),this.playPromise}pause(){this.playPromise?this.playPromise.then(()=>{this.vgMedia.pause()}):this.vgMedia.pause()}get id(){let t=void 0;return this.vgMedia&&(t=this.vgMedia.id),t}get duration(){return this.vgMedia.duration}set currentTime(t){this.vgMedia.currentTime=t}get currentTime(){return this.vgMedia.currentTime}set volume(t){this.vgMedia.volume=t}get volume(){return this.vgMedia.volume}set playbackRate(t){this.vgMedia.playbackRate=t}get playbackRate(){return this.vgMedia.playbackRate}get buffered(){return this.vgMedia.buffered}get textTracks(){return this.vgMedia.textTracks}onCanPlay(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlay=!0,this.ref.detectChanges()}onCanPlayThrough(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlayThrough=!0,this.ref.detectChanges()}onLoadMetadata(t){this.isMetadataLoaded=!0,this.time={current:0,left:0,total:1e3*this.duration},this.state=vP.VG_PAUSED;const e=Math.round(this.time.total);this.isLive=e===1/0,this.ref.detectChanges()}onWait(t){this.isWaiting=!0,this.ref.detectChanges()}onComplete(t){this.isCompleted=!0,this.state=vP.VG_ENDED,this.ref.detectChanges()}onStartPlaying(t){this.state=vP.VG_PLAYING,this.ref.detectChanges()}onPlay(t){this.state=vP.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}onPause(t){this.state=vP.VG_PAUSED,this.vgMaster&&(this.playAtferSync||this.syncSubscription.unsubscribe()),this.stopBufferCheck(),this.ref.detectChanges()}onTimeUpdate(t){const e=this.buffered.length-1;this.time={current:1e3*this.currentTime,total:this.time.total,left:1e3*(this.duration-this.currentTime)},e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}onProgress(t){const e=this.buffered.length-1;e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}onVolumeChange(t){this.ref.detectChanges()}onError(t){this.ref.detectChanges()}bufferCheck(){const t=1/this.checkInterval;this.currentPlayPos=this.currentTime,!this.isBufferDetected&&this.currentPlayPosthis.lastPlayPos+t&&(this.isBufferDetected=!1),this.bufferDetected.closed||this.bufferDetected.next(this.isBufferDetected),this.lastPlayPos=this.currentPlayPos}startBufferCheck(){this.checkBufferSubscription=$r(0,this.checkInterval).subscribe(()=>{this.bufferCheck()})}stopBufferCheck(){this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected)}seekTime(t,e=!1){let i;i=e?t*this.duration/100:t,this.currentTime=i}addTextTrack(t,e,i,n){const s=this.vgMedia.addTextTrack(t,e,i);return n&&(s.mode=n),s}ngOnDestroy(){this.vgMedia.src="",this.mutationObs.unsubscribe(),this.canPlayObs.unsubscribe(),this.canPlayThroughObs.unsubscribe(),this.loadedMetadataObs.unsubscribe(),this.waitingObs.unsubscribe(),this.progressObs.unsubscribe(),this.endedObs.unsubscribe(),this.playingObs.unsubscribe(),this.playObs.unsubscribe(),this.pauseObs.unsubscribe(),this.timeUpdateObs.unsubscribe(),this.volumeChangeObs.unsubscribe(),this.errorObs.unsubscribe(),this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.syncSubscription&&this.syncSubscription.unsubscribe(),this.bufferDetected.complete(),this.bufferDetected.unsubscribe(),this.api.unregisterMedia(this)}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(yP),s.Dc(s.j))},t.\u0275dir=s.yc({type:t,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),t})(),$P=(()=>{let t=class{constructor(t){this.ref=t,this.onEnterCuePoint=new s.u,this.onUpdateCuePoint=new s.u,this.onExitCuePoint=new s.u,this.onCompleteCuePoint=new s.u,this.subscriptions=[],this.cuesSubscriptions=[],this.totalCues=0}ngOnInit(){this.onLoad$=kr(this.ref.nativeElement,VP.VG_LOAD),this.subscriptions.push(this.onLoad$.subscribe(this.onLoad.bind(this)))}onLoad(t){if(t.target&&t.target.track){const e=t.target.track.cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}else if(t.target&&t.target.textTracks&&t.target.textTracks.length){const e=t.target.textTracks[0].cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}}updateCuePoints(t){this.cuesSubscriptions.forEach(t=>t.unsubscribe());for(let e=0,i=t.length;et.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r))},t.\u0275dir=s.yc({type:t,selectors:[["","vgCuePoints",""]],outputs:{onEnterCuePoint:"onEnterCuePoint",onUpdateCuePoint:"onUpdateCuePoint",onExitCuePoint:"onExitCuePoint",onCompleteCuePoint:"onCompleteCuePoint"}}),t})(),HP=(()=>{let t=class{constructor(t,e,i,n){this.api=e,this.fsAPI=i,this.controlsHidden=n,this.isFullscreen=!1,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.onPlayerReady=new s.u,this.onMediaReady=new s.u,this.subscriptions=[],this.elem=t.nativeElement,this.api.registerElement(this.elem)}ngAfterContentInit(){this.medias.toArray().forEach(t=>{this.api.registerMedia(t)}),this.fsAPI.init(this.elem,this.medias),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.api.onPlayerReady(this.fsAPI),this.onPlayerReady.emit(this.api)}onChangeFullscreen(t){this.fsAPI.nativeFullscreen?this.isNativeFullscreen=t:(this.isFullscreen=t,this.zIndex=t?SP.getZIndex().toString():"auto")}onHideControls(t){this.areControlsHidden=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP),s.Dc(IP),s.Dc(kP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-player"]],contentQueries:function(t,e,i){var n;1&t&&s.vc(i,jP,!1),2&t&&s.md(n=s.Xc())&&(e.medias=n)},hostVars:8,hostBindings:function(t,e){2&t&&(s.yd("z-index",e.zIndex),s.tc("fullscreen",e.isFullscreen)("native-fullscreen",e.isNativeFullscreen)("controls-hidden",e.areControlsHidden))},outputs:{onPlayerReady:"onPlayerReady",onMediaReady:"onMediaReady"},features:[s.oc([yP,IP,kP])],ngContentSelectors:dP,decls:1,vars:0,template:function(t,e){1&t&&(s.fd(),s.ed(0))},styles:["\n vg-player {\n font-family: 'videogular';\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n overflow: hidden;\n background-color: black;\n }\n vg-player.fullscreen {\n position: fixed;\n left: 0;\n top: 0;\n }\n vg-player.native-fullscreen.controls-hidden {\n cursor: none;\n }\n "],encapsulation:2}),t})(),UP=(()=>{let t=class{};return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[yP,IP,SP,kP,vP,VP]}),t})(),GP=(()=>{let t=class{constructor(t,e,i,n){this.API=e,this.fsAPI=i,this.controlsHidden=n,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.subscriptions=[],this.isBuffering=!1,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe(t=>this.onUpdateBuffer(t)))}onUpdateBuffer(t){this.isBuffering=t}onChangeFullscreen(t){this.fsAPI.nativeFullscreen&&(this.isNativeFullscreen=t)}onHideControls(t){this.areControlsHidden=t}onClick(){switch(this.getState()){case vP.VG_PLAYING:this.target.pause();break;case vP.VG_PAUSED:case vP.VG_ENDED:this.target.play()}}getState(){let t=vP.VG_PAUSED;if(this.target)if(this.target.state instanceof Array){for(let e=0,i=this.target.state.length;et.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.Dc(s.r),s.Dc(yP),s.Dc(IP),s.Dc(kP))},t.\u0275cmp=s.xc({type:t,selectors:[["vg-overlay-play"]],hostVars:2,hostBindings:function(t,e){1&t&&s.Wc("click",(function(){return e.onClick()})),2&t&&s.tc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:2,vars:6,consts:[[1,"vg-overlay-play"],[1,"overlay-play-container"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Ec(1,"div",1),s.Ic()),2&t&&(s.tc("native-fullscreen",e.isNativeFullscreen)("controls-hidden",e.areControlsHidden),s.pc(1),s.tc("vg-icon-play_arrow","playing"!==e.getState()))},styles:["\n vg-overlay-play {\n z-index: 200;\n }\n vg-overlay-play.is-buffering {\n display: none;\n }\n vg-overlay-play .vg-overlay-play {\n transition: all 0.5s;\n cursor: pointer;\n position: absolute;\n display: block;\n color: white;\n width: 100%;\n height: 100%;\n font-size: 80px;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n vg-overlay-play .vg-overlay-play.native-fullscreen.controls-hidden {\n cursor: none;\n }\n vg-overlay-play .vg-overlay-play .overlay-play-container.vg-icon-play_arrow {\n pointer-events: none;\n width: 100%;\n height: 100%;\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 80px;\n }\n vg-overlay-play .vg-overlay-play:hover {\n filter: alpha(opacity=100);\n opacity: 1;\n }\n vg-overlay-play .vg-overlay-play:hover .overlay-play-container.vg-icon-play_arrow:before {\n transform: scale(1.2);\n }\n "],encapsulation:2}),t})(),WP=(()=>{let t=class{};return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[ve.c]]}),t})();function qP(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-button-toggle",12),s.Wc("click",(function(){s.rd(t);const i=e.$implicit,n=e.index;return s.ad(2).onClickPlaylistItem(i,n)})),s.Bd(1),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(2);s.gd("checked",i.currentItem.title===t.title)("value",t.title),s.pc(1),s.Cd(t.label)}}var KP;function XP(t,e){1&t&&s.Ec(0,"mat-spinner",17),2&t&&s.gd("diameter",25)}function YP(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",13),s.Jc(1,"div",14),s.zd(2,XP,1,1,"mat-spinner",15),s.Ic(),s.Jc(3,"button",16),s.Wc("click",(function(){return s.rd(t),s.ad(2).updatePlaylist()})),s.Hc(4),s.Nc(5,KP),s.Gc(),s.Bd(6,"\xa0"),s.Jc(7,"mat-icon"),s.Bd(8,"update"),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad(2);s.pc(2),s.gd("ngIf",t.playlist_updating),s.pc(1),s.gd("disabled",t.playlist_updating)}}function ZP(t,e){1&t&&s.Ec(0,"mat-spinner",23),2&t&&s.gd("diameter",50)}function QP(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",24),s.Wc("click",(function(){return s.rd(t),s.ad(3).namePlaylistDialog()})),s.Jc(1,"mat-icon",19),s.Bd(2,"favorite"),s.Ic(),s.Ic()}}function tT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",25),s.Wc("click",(function(){return s.rd(t),s.ad(3).openShareDialog()})),s.Jc(1,"mat-icon",19),s.Bd(2,"share"),s.Ic(),s.Ic()}}function eT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"button",18),s.Wc("click",(function(){return s.rd(t),s.ad(2).downloadContent()})),s.Jc(2,"mat-icon",19),s.Bd(3,"save"),s.Ic(),s.zd(4,ZP,1,1,"mat-spinner",20),s.Ic(),s.zd(5,QP,3,0,"button",21),s.zd(6,tT,3,0,"button",22),s.Ic()}if(2&t){const t=s.ad(2);s.pc(1),s.gd("disabled",t.downloading),s.pc(3),s.gd("ngIf",t.downloading),s.pc(1),s.gd("ngIf",!t.id),s.pc(1),s.gd("ngIf",!t.is_shared&&t.id&&(!t.postsService.isLoggedIn||t.postsService.permissions.includes("sharing")))}}function iT(t,e){1&t&&s.Ec(0,"mat-spinner",23),2&t&&s.gd("diameter",50)}function nT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",25),s.Wc("click",(function(){return s.rd(t),s.ad(3).openShareDialog()})),s.Jc(1,"mat-icon",19),s.Bd(2,"share"),s.Ic(),s.Ic()}}function sT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"button",18),s.Wc("click",(function(){return s.rd(t),s.ad(2).downloadFile()})),s.Jc(2,"mat-icon",19),s.Bd(3,"save"),s.Ic(),s.zd(4,iT,1,1,"mat-spinner",20),s.Ic(),s.zd(5,nT,3,0,"button",22),s.Ic()}if(2&t){const t=s.ad(2);s.pc(1),s.gd("disabled",t.downloading),s.pc(3),s.gd("ngIf",t.downloading),s.pc(1),s.gd("ngIf",!t.is_shared&&t.uid&&"false"!==t.uid&&"subscription"!==t.type&&(!t.postsService.isLoggedIn||t.postsService.permissions.includes("sharing")))}}function aT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"div",1),s.Jc(2,"div",2),s.Jc(3,"div",3),s.Jc(4,"vg-player",4),s.Wc("onPlayerReady",(function(e){return s.rd(t),s.ad().onPlayerReady(e)})),s.Ec(5,"video",5,6),s.Ic(),s.Ic(),s.Jc(7,"div",7),s.Jc(8,"mat-button-toggle-group",8,9),s.Wc("cdkDropListDropped",(function(e){return s.rd(t),s.ad().drop(e)})),s.zd(10,qP,2,3,"mat-button-toggle",10),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.zd(11,YP,9,2,"div",11),s.zd(12,eT,7,4,"div",0),s.zd(13,sT,6,3,"div",0),s.Ic()}if(2&t){const t=s.nd(6),e=s.ad();s.pc(1),s.gd("ngClass","audio"===e.type?null:"container-video"),s.pc(2),s.gd("ngClass","audio"===e.type?"my-2 px-1":"video-col"),s.pc(1),s.yd("background-color","audio"===e.type?"transparent":"black"),s.pc(1),s.gd("ngClass","audio"===e.type?"audio-styles":"video-styles")("vgMedia",t)("src",e.currentItem.src,s.td),s.pc(3),s.gd("cdkDropListSortingDisabled",!e.id),s.pc(2),s.gd("ngForOf",e.playlist),s.pc(1),s.gd("ngIf",e.id&&e.playlistChanged()),s.pc(1),s.gd("ngIf",e.playlist.length>1),s.pc(1),s.gd("ngIf",1===e.playlist.length)}}KP=$localize`:Playlist save changes button␟5b3075e8dc3f3921ec316b0bd83b6d14a06c1a4f␟7000649363168371045:Save changes`;let oT=(()=>{class t{constructor(t,e,i,n,s){this.postsService=t,this.route=e,this.dialog=i,this.router=n,this.snackBar=s,this.playlist=[],this.original_playlist=null,this.playlist_updating=!1,this.show_player=!1,this.currentIndex=0,this.currentItem=null,this.id=null,this.uid=null,this.subscriptionName=null,this.subPlaylist=null,this.uuid=null,this.timestamp=null,this.is_shared=!1,this.db_playlist=null,this.db_file=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=null,this.sharingEnabled=null,this.url=null,this.name=null,this.downloading=!1,this.original_volume=null}onResize(t){this.innerWidth=window.innerWidth}ngOnInit(){this.innerWidth=window.innerWidth,this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.uid=this.route.snapshot.paramMap.get("uid"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),this.url=this.route.snapshot.paramMap.get("url"),this.name=this.route.snapshot.paramMap.get("name"),this.uuid=this.route.snapshot.paramMap.get("uuid"),this.timestamp=this.route.snapshot.paramMap.get("timestamp"),this.postsService.initialized?this.processConfig():this.postsService.service_initialized.subscribe(t=>{t&&this.processConfig()})}processConfig(){this.baseStreamPath=this.postsService.path,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.subscriptionFolderPath=this.postsService.config.Subscriptions.subscriptions_base_path,this.fileNames=this.route.snapshot.paramMap.get("fileNames")?this.route.snapshot.paramMap.get("fileNames").split("|nvr|"):null,this.fileNames||this.type||(this.is_shared=!0),this.uid&&!this.id?this.getFile():this.id&&this.getPlaylistFiles(),this.url?(this.playlist=[],this.playlist.push({title:this.name,label:this.name,src:this.url,type:"video/mp4"}),this.currentItem=this.playlist[0],this.currentIndex=0,this.show_player=!0):(this.subscriptionName||this.fileNames)&&(this.show_player=!0,this.parseFileNames())}getFile(){const t=!!this.fileNames;this.postsService.getFile(this.uid,null,this.uuid).subscribe(e=>{this.db_file=e.file,this.db_file?(this.sharingEnabled=this.db_file.sharingEnabled,this.fileNames||this.id||(this.fileNames=[this.db_file.id],this.type=this.db_file.isAudio?"audio":"video",t||this.parseFileNames()),this.db_file.sharingEnabled||!this.uuid?this.show_player=!0:t||this.openSnackBar("Error: Sharing has been disabled for this video!","Dismiss")):this.openSnackBar("Failed to get file information from the server.","Dismiss")})}getPlaylistFiles(){this.postsService.getPlaylist(this.id,null,this.uuid).subscribe(t=>{t.playlist?(this.db_playlist=t.playlist,this.fileNames=this.db_playlist.fileNames,this.type=t.type,this.show_player=!0,this.parseFileNames()):this.openSnackBar("Failed to load playlist!","")},t=>{this.openSnackBar("Failed to load playlist!","")})}parseFileNames(){let t=null;"audio"===this.type?t="audio/mp3":"video"===this.type?t="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'."),this.playlist=[];for(let e=0;ethis.saveVolume(this.api),2e3),this.api.getDefaultMedia().subscriptions.loadedMetadata.subscribe(this.playVideo.bind(this)),this.api.getDefaultMedia().subscriptions.ended.subscribe(this.nextVideo.bind(this)),this.timestamp&&this.api.seekTime(+this.timestamp)}saveVolume(t){this.original_volume!==t.volume&&(localStorage.setItem("player_volume",t.volume),this.original_volume=t.volume)}nextVideo(){this.currentIndex!==this.playlist.length-1&&(this.currentIndex++,this.currentItem=this.playlist[this.currentIndex])}playVideo(){this.api.play()}onClickPlaylistItem(t,e){this.currentIndex=e,this.currentItem=t}getFileInfos(){const t=this.getFileNames();this.postsService.getFileInfo(t,this.type,!1).subscribe(t=>{})}getFileNames(){const t=[];for(let e=0;e{this.downloading=!1,saveAs(t,e+".zip")},t=>{console.log(t),this.downloading=!1})}downloadFile(){const t="audio"===this.type?".mp3":".mp4",e=this.playlist[0].title;this.downloading=!0,this.postsService.downloadFileFromServer(e,this.type,null,null,this.subscriptionName,this.subPlaylist,this.is_shared?this.db_file.uid:null,this.uuid).subscribe(i=>{this.downloading=!1,saveAs(i,e+t)},t=>{console.log(t),this.downloading=!1})}namePlaylistDialog(){const t=new s.u,e=this.dialog.open(YA,{width:"300px",data:{inputTitle:"Name the playlist",inputPlaceholder:"Name",submitText:"Favorite",doneEmitter:t}});t.subscribe(t=>{if(t){const i=this.getFileNames();this.postsService.createPlaylist(t,i,this.type,null).subscribe(i=>{if(i.success){e.close();const n=i.new_playlist;this.db_playlist=n,this.openSnackBar("Playlist '"+t+"' successfully created!",""),this.playlistPostCreationHandler(n.id)}})}})}playlistPostCreationHandler(t){this.id=t,this.router.navigateByUrl(this.router.url+";id="+t)}drop(t){sv(this.playlist,t.previousIndex,t.currentIndex)}playlistChanged(){return JSON.stringify(this.playlist)!==this.original_playlist}updatePlaylist(){const t=this.getFileNames();this.playlist_updating=!0,this.postsService.updatePlaylistFiles(this.id,t,this.type).subscribe(e=>{if(this.playlist_updating=!1,e.success){const e=t.join("|nvr|");this.router.navigate(["/player",{fileNames:e,type:this.type,id:this.id}]),this.openSnackBar("Successfully updated playlist.",""),this.original_playlist=JSON.stringify(this.playlist)}else this.openSnackBar("ERROR: Failed to update playlist.","")})}openShareDialog(){this.dialog.open(cP,{data:{uid:this.id?this.id:this.uid,type:this.type,sharing_enabled:this.id?this.db_playlist.sharingEnabled:this.db_file.sharingEnabled,is_playlist:!!this.id,uuid:this.postsService.isLoggedIn?this.postsService.user.uid:null,current_timestamp:this.api.time.current},width:"60vw"}).afterClosed().subscribe(t=>{this.id?this.getPlaylistFiles():this.getFile()})}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(pw),s.Dc(bd),s.Dc(wx),s.Dc(Hg))},t.\u0275cmp=s.xc({type:t,selectors:[["app-player"]],hostBindings:function(t,e){1&t&&s.Wc("resize",(function(t){return e.onResize(t)}),!1,s.qd)},decls:1,vars:1,consts:[[4,"ngIf"],[1,"container",3,"ngClass"],[1,"row",2,"max-width","100%","margin-left","0px","height","70vh"],[1,"col",3,"ngClass"],[3,"onPlayerReady"],["id","singleVideo","preload","auto","controls","",1,"video-player",3,"ngClass","vgMedia","src"],["media",""],[1,"col-12","my-2"],["cdkDropList","","vertical","","name","videoSelect","aria-label","Video Select",2,"width","80%","left","9%",3,"cdkDropListSortingDisabled","cdkDropListDropped"],["group","matButtonToggleGroup"],["cdkDrag","","class","toggle-button",3,"checked","value","click",4,"ngFor","ngForOf"],["class","update-playlist-button-div",4,"ngIf"],["cdkDrag","",1,"toggle-button",3,"checked","value","click"],[1,"update-playlist-button-div"],[1,"spinner-div"],[3,"diameter",4,"ngIf"],["color","primary","mat-raised-button","",3,"disabled","click"],[3,"diameter"],["color","primary","mat-fab","",1,"save-button",3,"disabled","click"],[1,"save-icon"],["class","spinner",3,"diameter",4,"ngIf"],["color","accent","class","favorite-button","color","primary","mat-fab","",3,"click",4,"ngIf"],["class","share-button","color","primary","mat-fab","",3,"click",4,"ngIf"],[1,"spinner",3,"diameter"],["color","accent","color","primary","mat-fab","",1,"favorite-button",3,"click"],["color","primary","mat-fab","",1,"share-button",3,"click"]],template:function(t,e){1&t&&s.zd(0,aT,14,12,"div",0),2&t&&s.gd("ngIf",e.playlist.length>0&&e.show_player)},directives:[ve.t,ve.q,HP,jP,Ro,Av,ve.s,No,Iv,bs,vu,mm],styles:[".video-player[_ngcontent-%COMP%]{margin:0 auto;min-width:300px}.video-player[_ngcontent-%COMP%]:focus{outline:none}.audio-styles[_ngcontent-%COMP%]{height:50px;background-color:transparent;width:100%}.video-styles[_ngcontent-%COMP%]{width:100%} .mat-button-toggle-label-content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.container-video[_ngcontent-%COMP%]{max-width:100%;padding-left:0;padding-right:0}.progress-bar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:-1px}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:fixed;bottom:25px}.favorite-button[_ngcontent-%COMP%], .share-button[_ngcontent-%COMP%]{left:25px;position:fixed;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px;height:100%}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}.update-playlist-button-div[_ngcontent-%COMP%]{float:right;margin-right:30px;margin-top:25px;margin-bottom:15px}.spinner-div[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-right:12px;top:8px}"]}),t})();var rT;rT=$localize`:Subscribe dialog title␟a9806cf78ce00eb2613eeca11354a97e033377b8␟4500902888758611270:Subscribe to playlist or channel`;const lT=["placeholder",$localize`:Subscription URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var cT;cT=$localize`:Subscription URL input hint␟93efc99ae087fc116de708ecd3ace86ca237cf30␟6758330192665823220:The playlist or channel URL`;const dT=["placeholder",$localize`:Subscription custom name placeholder␟08f5d0ef937ae17feb1b04aff15ad88911e87baf␟1402261878731426139:Custom name`];var hT,uT,pT;hT=$localize`:Download all uploads subscription setting␟ea30873bd3f0d5e4fb2378eec3f0a1db77634a28␟2789218157148692814:Download all uploads`,uT=$localize`:Streaming-only mode␟c76a955642714b8949ff3e4b4990864a2e2cac95␟4743212858568319264:Audio-only mode`,pT=$localize`:Streaming-only mode␟408ca4911457e84a348cecf214f02c69289aa8f1␟1474682218975380155:Streaming-only mode`;const mT=["placeholder",$localize`:Subscription custom args placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var gT;gT=$localize`:Custom args hint␟f432e1a8d6adb12e612127978ce2e0ced933959c␟6149317832585935644:These are added after the standard args.`;const fT=["placeholder",$localize`:Subscription custom file output placeholder␟98b6ec9ec138186d663e64770267b67334353d63␟4096999545370137829:Custom file output`];var bT,_T,vT,yT,wT;function xT(t,e){if(1&t&&(s.Jc(0,"mat-option",22),s.Bd(1),s.Ic()),2&t){const t=e.$implicit,i=s.ad(2);s.gd("value",t+(1===i.timerange_amount?"":"s")),s.pc(1),s.Dd(" ",t+(1===i.timerange_amount?"":"s")," ")}}function kT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",6),s.Hc(1),s.Nc(2,wT),s.Gc(),s.Jc(3,"mat-form-field",18),s.Jc(4,"input",19),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().timerange_amount=e})),s.Ic(),s.Ic(),s.Jc(5,"mat-select",20),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().timerange_unit=e})),s.zd(6,xT,2,2,"mat-option",21),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(4),s.gd("ngModel",t.timerange_amount),s.pc(1),s.gd("ngModel",t.timerange_unit),s.pc(1),s.gd("ngForOf",t.time_units)}}function CT(t,e){1&t&&(s.Jc(0,"div",23),s.Ec(1,"mat-spinner",24),s.Ic()),2&t&&(s.pc(1),s.gd("diameter",25))}bT=$localize`:Custom output template documentation link␟fcfd4675b4c90f08d18d3abede9a9a4dff4cfdc7␟4895326106573044490:Documentation`,_T=$localize`:Custom Output input hint␟19d1ae64d94d28a29b2c57ae8671aace906b5401␟3584692608114953661:Path is relative to the config download path. Don't include extension.`,vT=$localize`:Subscribe cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,yT=$localize`:Subscribe button␟d0336848b0c375a1c25ba369b3481ee383217a4f␟1144407473317535723:Subscribe`,wT=$localize`:Download time range prefix␟28a678e9cabf86e44c32594c43fa0e890135c20f␟2424458468042538424:Download videos uploaded in the last`;let ST=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.dialog=i,this.dialogRef=n,this.timerange_unit="days",this.download_all=!0,this.url=null,this.name=null,this.subscribing=!1,this.streamingOnlyMode=!1,this.audioOnlyMode=!1,this.customFileOutput="",this.customArgs="",this.time_units=["day","week","month","year"]}ngOnInit(){}subscribeClicked(){if(this.url&&""!==this.url){if(!this.download_all&&!this.timerange_amount)return void this.openSnackBar("You must specify an amount of time");this.subscribing=!0;let t=null;this.download_all||(t="now-"+this.timerange_amount.toString()+this.timerange_unit),this.postsService.createSubscription(this.url,this.name,t,this.streamingOnlyMode,this.audioOnlyMode,this.customArgs,this.customFileOutput).subscribe(t=>{this.subscribing=!1,t.new_sub?this.dialogRef.close(t.new_sub):(t.error&&this.openSnackBar("ERROR: "+t.error),this.dialogRef.close())})}}openArgsModifierDialog(){this.dialog.open(Vk,{data:{initial_args:this.customArgs}}).afterClosed().subscribe(t=>{null!=t&&(this.customArgs=t)})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg),s.Dc(bd),s.Dc(ud))},t.\u0275cmp=s.xc({type:t,selectors:[["app-subscribe-dialog"]],decls:63,vars:11,consts:[["mat-dialog-title",""],[1,"container-fluid"],[1,"row"],[1,"col-12","mb-4"],["color","accent"],["matInput","","required","","aria-required","true",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-3"],[3,"ngModel","ngModelChange"],["class","col-12",4,"ngIf"],[3,"disabled","ngModel","ngModelChange"],[1,"col-12","mb-3"],["mat-icon-button","",1,"args-edit-button",3,"click"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],["color","accent",2,"width","50px","text-align","center"],["type","number","matInput","",3,"ngModel","ngModelChange"],["color","accent",1,"unit-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Nc(1,rT),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div",1),s.Jc(4,"div",2),s.Jc(5,"div",3),s.Jc(6,"mat-form-field",4),s.Jc(7,"input",5),s.Pc(8,lT),s.Wc("ngModelChange",(function(t){return e.url=t})),s.Ic(),s.Jc(9,"mat-hint"),s.Hc(10),s.Nc(11,cT),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ec(12,"mat-divider"),s.Jc(13,"div",1),s.Jc(14,"div",2),s.Jc(15,"div",6),s.Jc(16,"mat-form-field",4),s.Jc(17,"input",7),s.Pc(18,dT),s.Wc("ngModelChange",(function(t){return e.name=t})),s.Ic(),s.Ic(),s.Ic(),s.Jc(19,"div",8),s.Jc(20,"mat-checkbox",9),s.Wc("ngModelChange",(function(t){return e.download_all=t})),s.Hc(21),s.Nc(22,hT),s.Gc(),s.Ic(),s.Ic(),s.zd(23,kT,7,3,"div",10),s.Jc(24,"div",6),s.Jc(25,"div"),s.Jc(26,"mat-checkbox",9),s.Wc("ngModelChange",(function(t){return e.audioOnlyMode=t})),s.Hc(27),s.Nc(28,uT),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(29,"div",6),s.Jc(30,"div"),s.Jc(31,"mat-checkbox",11),s.Wc("ngModelChange",(function(t){return e.streamingOnlyMode=t})),s.Hc(32),s.Nc(33,pT),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(34,"div",12),s.Jc(35,"mat-form-field",4),s.Jc(36,"input",7),s.Pc(37,mT),s.Wc("ngModelChange",(function(t){return e.customArgs=t})),s.Ic(),s.Jc(38,"button",13),s.Wc("click",(function(){return e.openArgsModifierDialog()})),s.Jc(39,"mat-icon"),s.Bd(40,"edit"),s.Ic(),s.Ic(),s.Jc(41,"mat-hint"),s.Hc(42),s.Nc(43,gT),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Jc(44,"div",6),s.Jc(45,"mat-form-field",4),s.Jc(46,"input",7),s.Pc(47,fT),s.Wc("ngModelChange",(function(t){return e.customFileOutput=t})),s.Ic(),s.Jc(48,"mat-hint"),s.Jc(49,"a",14),s.Hc(50),s.Nc(51,bT),s.Gc(),s.Ic(),s.Bd(52,". "),s.Hc(53),s.Nc(54,_T),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(55,"mat-dialog-actions"),s.Jc(56,"button",15),s.Hc(57),s.Nc(58,vT),s.Gc(),s.Ic(),s.Jc(59,"button",16),s.Wc("click",(function(){return e.subscribeClicked()})),s.Hc(60),s.Nc(61,yT),s.Gc(),s.Ic(),s.zd(62,CT,2,1,"div",17),s.Ic()),2&t&&(s.pc(7),s.gd("ngModel",e.url),s.pc(10),s.gd("ngModel",e.name),s.pc(3),s.gd("ngModel",e.download_all),s.pc(3),s.gd("ngIf",!e.download_all),s.pc(3),s.gd("ngModel",e.audioOnlyMode),s.pc(5),s.gd("disabled",e.audioOnlyMode)("ngModel",e.streamingOnlyMode),s.pc(5),s.gd("ngModel",e.customArgs),s.pc(10),s.gd("ngModel",e.customFileOutput),s.pc(13),s.gd("disabled",!e.url),s.pc(3),s.gd("ngIf",e.subscribing))},directives:[yd,wd,Bc,Ru,Rs,ho,Js,qa,Oc,Fu,gr,ve.t,bs,vu,xd,vd,Qs,Gm,ve.s,rs,mm],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px}"]}),t})();var IT,DT,ET,OT,AT,PT,TT;function RT(t,e){if(1&t&&(s.Jc(0,"div",1),s.Jc(1,"strong"),s.Hc(2),s.Nc(3,TT),s.Gc(),s.Bd(4,"\xa0"),s.Ic(),s.Jc(5,"span",2),s.Bd(6),s.Ic(),s.Ic()),2&t){const t=s.ad();s.pc(6),s.Cd(t.sub.archive)}}IT=$localize`:Subscription type property␟e78c0d60ac39787f62c9159646fe0b3c1ed55a1d␟2736556170366900089:Type:`,DT=$localize`:Subscription URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,ET=$localize`:Subscription ID property␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,OT=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,AT=$localize`:Export Archive button␟8efc77bf327659c0fec1f518cf48a98cdcd9dddf␟5613381975493898311:Export Archive`,PT=$localize`:Unsubscribe button␟3042bd3ad8dffcfeca5fd1ae6159fd1047434e95␟1698114086921246480:Unsubscribe`,TT=$localize`:Subscription ID property␟a44d86aa1e6c20ced07aca3a7c081d8db9ded1c6␟2158775445713924699:Archive:`;let MT=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.postsService=i,this.sub=null,this.unsubbedEmitter=null}ngOnInit(){this.data&&(this.sub=this.data.sub,this.unsubbedEmitter=this.data.unsubbedEmitter)}unsubscribe(){this.postsService.unsubscribe(this.sub,!0).subscribe(t=>{this.unsubbedEmitter.emit(!0),this.dialogRef.close()})}downloadArchive(){this.postsService.downloadArchive(this.sub).subscribe(t=>{saveAs(t,"archive.txt")})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(ud),s.Dc(pd),s.Dc(Wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-subscription-info-dialog"]],decls:36,vars:5,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-value"],["class","info-item",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","","color","accent",3,"click"],[1,"spacer"],["mat-button","","color","warn",3,"click"]],template:function(t,e){1&t&&(s.Jc(0,"h4",0),s.Bd(1),s.Ic(),s.Jc(2,"mat-dialog-content"),s.Jc(3,"div",1),s.Jc(4,"strong"),s.Hc(5),s.Nc(6,IT),s.Gc(),s.Bd(7,"\xa0"),s.Ic(),s.Jc(8,"span",2),s.Bd(9),s.Ic(),s.Ic(),s.Jc(10,"div",1),s.Jc(11,"strong"),s.Hc(12),s.Nc(13,DT),s.Gc(),s.Bd(14,"\xa0"),s.Ic(),s.Jc(15,"span",2),s.Bd(16),s.Ic(),s.Ic(),s.Jc(17,"div",1),s.Jc(18,"strong"),s.Hc(19),s.Nc(20,ET),s.Gc(),s.Bd(21,"\xa0"),s.Ic(),s.Jc(22,"span",2),s.Bd(23),s.Ic(),s.Ic(),s.zd(24,RT,7,1,"div",3),s.Ic(),s.Jc(25,"mat-dialog-actions"),s.Jc(26,"button",4),s.Hc(27),s.Nc(28,OT),s.Gc(),s.Ic(),s.Jc(29,"button",5),s.Wc("click",(function(){return e.downloadArchive()})),s.Hc(30),s.Nc(31,AT),s.Gc(),s.Ic(),s.Ec(32,"span",6),s.Jc(33,"button",7),s.Wc("click",(function(){return e.unsubscribe()})),s.Hc(34),s.Nc(35,PT),s.Gc(),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.Cd(e.sub.name),s.pc(8),s.Cd(e.sub.isPlaylist?"Playlist":"Channel"),s.pc(7),s.Cd(e.sub.url),s.pc(7),s.Cd(e.sub.id),s.pc(1),s.gd("ngIf",e.sub.archive))},directives:[yd,wd,ve.t,xd,bs,vd],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px}.info-item-value[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),t})();var FT,NT,LT,zT,BT,JT,VT;function jT(t,e){if(1&t&&(s.Jc(0,"strong"),s.Bd(1),s.Ic()),2&t){const t=s.ad().$implicit;s.pc(1),s.Cd(t.name)}}function $T(t,e){1&t&&(s.Jc(0,"div"),s.Hc(1),s.Nc(2,zT),s.Gc(),s.Ic())}function HT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-list-item"),s.Jc(1,"a",9),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad().goToSubscription(i)})),s.zd(2,jT,2,1,"strong",10),s.zd(3,$T,3,0,"div",10),s.Ic(),s.Jc(4,"button",11),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad().showSubInfo(i)})),s.Jc(5,"mat-icon"),s.Bd(6,"info"),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit;s.pc(2),s.gd("ngIf",t.name),s.pc(1),s.gd("ngIf",!t.name)}}function UT(t,e){1&t&&(s.Jc(0,"div",12),s.Jc(1,"p"),s.Nc(2,BT),s.Ic(),s.Ic())}function GT(t,e){1&t&&(s.Jc(0,"div",14),s.Hc(1),s.Nc(2,JT),s.Gc(),s.Ic())}function WT(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-list-item"),s.Jc(1,"a",9),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad().goToSubscription(i)})),s.Jc(2,"strong"),s.Bd(3),s.Ic(),s.zd(4,GT,3,0,"div",13),s.Ic(),s.Jc(5,"button",11),s.Wc("click",(function(){s.rd(t);const i=e.$implicit;return s.ad().showSubInfo(i)})),s.Jc(6,"mat-icon"),s.Bd(7,"info"),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit;s.pc(3),s.Cd(t.name),s.pc(1),s.gd("ngIf",!t.name)}}function qT(t,e){1&t&&(s.Jc(0,"div",12),s.Jc(1,"p"),s.Nc(2,VT),s.Ic(),s.Ic())}function KT(t,e){1&t&&(s.Jc(0,"div",15),s.Ec(1,"mat-progress-bar",16),s.Ic())}FT=$localize`:Subscriptions title␟e2319dec5b4ccfb6ed9f55ccabd63650a8fdf547␟3180145612302390475:Your subscriptions`,NT=$localize`:Subscriptions channels title␟807cf11e6ac1cde912496f764c176bdfdd6b7e19␟8181077408762380407:Channels`,LT=$localize`:Subscriptions playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,zT=$localize`:Subscription playlist not available text␟29b89f751593e1b347eef103891b7a1ff36ec03f␟973700466393519727:Name not available. Channel retrieval in progress.`,BT=$localize`:No channel subscriptions text␟4636cd4a1379c50d471e98786098c4d39e1e82ad␟2560406180065361139:You have no channel subscriptions.`,JT=$localize`:Subscription playlist not available text␟2e0a410652cb07d069f576b61eab32586a18320d␟4161141077899894301:Name not available. Playlist retrieval in progress.`,VT=$localize`:No playlist subscriptions text␟587b57ced54965d8874c3fd0e9dfedb987e5df04␟3403368727234976136:You have no playlist subscriptions.`;let XT=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.postsService=e,this.router=i,this.snackBar=n,this.playlist_subscriptions=[],this.channel_subscriptions=[],this.subscriptions=null,this.subscriptions_loading=!1}ngOnInit(){this.postsService.initialized&&this.getSubscriptions(),this.postsService.service_initialized.subscribe(t=>{t&&this.getSubscriptions()})}getSubscriptions(){this.subscriptions_loading=!0,this.subscriptions=null,this.postsService.getAllSubscriptions().subscribe(t=>{if(this.channel_subscriptions=[],this.playlist_subscriptions=[],this.subscriptions_loading=!1,this.subscriptions=t.subscriptions,this.subscriptions)for(let e=0;e{this.subscriptions_loading=!1,console.error("Failed to get subscriptions"),this.openSnackBar("ERROR: Failed to get subscriptions!","OK.")})}goToSubscription(t){this.router.navigate(["/subscription",{id:t.id}])}openSubscribeDialog(){this.dialog.open(ST,{maxWidth:500,width:"80vw"}).afterClosed().subscribe(t=>{t&&(t.isPlaylist?this.playlist_subscriptions.push(t):this.channel_subscriptions.push(t))})}showSubInfo(t){const e=new s.u;this.dialog.open(MT,{data:{sub:t,unsubbedEmitter:e}}),e.subscribe(e=>{e&&(this.openSnackBar(`${t.name} successfully deleted!`),this.getSubscriptions())})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(bd),s.Dc(Wx),s.Dc(wx),s.Dc(Hg))},t.\u0275cmp=s.xc({type:t,selectors:[["app-subscriptions"]],decls:19,vars:5,consts:[[2,"text-align","center","margin-bottom","15px"],[2,"width","80%","margin","0 auto"],[2,"text-align","center"],[1,"sub-nav-list"],[4,"ngFor","ngForOf"],["style","width: 80%; margin: 0 auto; padding-left: 15px;",4,"ngIf"],[2,"text-align","center","margin-top","10px"],["style","margin: 0 auto; width: 80%",4,"ngIf"],["mat-fab","",1,"add-subscription-button",3,"click"],["matLine","","href","javascript:void(0)",1,"a-list-item",3,"click"],[4,"ngIf"],["mat-icon-button","",3,"click"],[2,"width","80%","margin","0 auto","padding-left","15px"],["class","content-loading-div",4,"ngIf"],[1,"content-loading-div"],[2,"margin","0 auto","width","80%"],["mode","indeterminate"]],template:function(t,e){1&t&&(s.Ec(0,"br"),s.Jc(1,"h2",0),s.Nc(2,FT),s.Ic(),s.Ec(3,"mat-divider",1),s.Ec(4,"br"),s.Jc(5,"h4",2),s.Nc(6,NT),s.Ic(),s.Jc(7,"mat-nav-list",3),s.zd(8,HT,7,2,"mat-list-item",4),s.Ic(),s.zd(9,UT,3,0,"div",5),s.Jc(10,"h4",6),s.Nc(11,LT),s.Ic(),s.Jc(12,"mat-nav-list",3),s.zd(13,WT,8,2,"mat-list-item",4),s.Ic(),s.zd(14,qT,3,0,"div",5),s.zd(15,KT,2,0,"div",7),s.Jc(16,"button",8),s.Wc("click",(function(){return e.openSubscribeDialog()})),s.Jc(17,"mat-icon"),s.Bd(18,"add"),s.Ic(),s.Ic()),2&t&&(s.pc(8),s.gd("ngForOf",e.channel_subscriptions),s.pc(1),s.gd("ngIf",0===e.channel_subscriptions.length&&e.subscriptions),s.pc(4),s.gd("ngForOf",e.playlist_subscriptions),s.pc(1),s.gd("ngIf",0===e.playlist_subscriptions.length&&e.subscriptions),s.pc(1),s.gd("ngIf",e.subscriptions_loading))},directives:[Fu,qu,ve.s,ve.t,bs,vu,tp,Jn,nm],styles:[".add-subscription-button[_ngcontent-%COMP%]{position:fixed;bottom:30px;right:30px}.subscription-card[_ngcontent-%COMP%]{height:200px;width:300px}.content-loading-div[_ngcontent-%COMP%]{position:absolute;width:200px;height:50px;bottom:-18px}.a-list-item[_ngcontent-%COMP%]{height:48px;padding-top:12px!important}.sub-nav-list[_ngcontent-%COMP%]{margin:0 auto;width:80%}"]}),t})();var YT,ZT,QT,tR;function eR(t,e){if(1&t){const t=s.Kc();s.Jc(0,"button",4),s.Wc("click",(function(){return s.rd(t),s.ad().deleteForever()})),s.Jc(1,"mat-icon"),s.Bd(2,"delete_forever"),s.Ic(),s.Hc(3),s.Nc(4,tR),s.Gc(),s.Ic()}}function iR(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",10),s.Jc(1,"img",11),s.Wc("error",(function(e){return s.rd(t),s.ad().onImgError(e)})),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(1),s.gd("src",t.file.thumbnailURL,s.td)}}YT=$localize`:Video duration label␟2054791b822475aeaea95c0119113de3200f5e1c␟7115285952699064699:Length:`,ZT=$localize`:Subscription video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,QT=$localize`:Delete and redownload subscription video button␟94e01842dcee90531caa52e4147f70679bac87fe␟8460889291602192517:Delete and redownload`,tR=$localize`:Delete forever subscription video button␟2031adb51e07a41844e8ba7704b054e98345c9c1␟880206287081443054:Delete forever`;let nR=(()=>{class t{constructor(t,e,i){this.snackBar=t,this.postsService=e,this.dialog=i,this.image_errored=!1,this.image_loaded=!1,this.formattedDuration=null,this.use_youtubedl_archive=!1,this.goToFileEmit=new s.u,this.reloadSubscription=new s.u,this.scrollSubject=new Pe.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}ngOnInit(){this.file.duration&&(this.formattedDuration=function(t){const e=~~(t/3600),i=~~(t%3600/60),n=~~t%60;let s="";return e>0&&(s+=e+":"+(i<10?"0":"")),s+=i+":"+(n<10?"0":""),s+=""+n,s}(this.file.duration))}onImgError(t){this.image_errored=!0}onHoverResponse(){this.scrollSubject.next()}imageLoaded(t){this.image_loaded=!0}goToFile(){this.goToFileEmit.emit({name:this.file.id,url:this.file.requested_formats?this.file.requested_formats[0].url:this.file.url})}openSubscriptionInfoDialog(){this.dialog.open(sA,{data:{file:this.file},minWidth:"50vw"})}deleteAndRedownload(){this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!1,this.file.uid).subscribe(t=>{this.reloadSubscription.emit(!0),this.openSnackBar(`Successfully deleted file: '${this.file.id}'`,"Dismiss.")})}deleteForever(){this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!0,this.file.uid).subscribe(t=>{this.reloadSubscription.emit(!0),this.openSnackBar(`Successfully deleted file: '${this.file.id}'`,"Dismiss.")})}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Hg),s.Dc(Wx),s.Dc(bd))},t.\u0275cmp=s.xc({type:t,selectors:[["app-subscription-file-card"]],inputs:{file:"file",sub:"sub",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{goToFileEmit:"goToFileEmit",reloadSubscription:"reloadSubscription"},decls:27,vars:5,consts:[[2,"position","relative","width","fit-content"],[1,"duration-time"],["mat-icon-button","",1,"menuButton",3,"matMenuTriggerFor"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["matRipple","",1,"example-card","mat-elevation-z6",3,"click"],[2,"padding","5px"],["class","img-div",4,"ngIf"],[1,"max-two-lines"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"src","error"]],template:function(t,e){if(1&t&&(s.Jc(0,"div",0),s.Jc(1,"div",1),s.Hc(2),s.Nc(3,YT),s.Gc(),s.Bd(4),s.Ic(),s.Jc(5,"button",2),s.Jc(6,"mat-icon"),s.Bd(7,"more_vert"),s.Ic(),s.Ic(),s.Jc(8,"mat-menu",null,3),s.Jc(10,"button",4),s.Wc("click",(function(){return e.openSubscriptionInfoDialog()})),s.Jc(11,"mat-icon"),s.Bd(12,"info"),s.Ic(),s.Hc(13),s.Nc(14,ZT),s.Gc(),s.Ic(),s.Jc(15,"button",4),s.Wc("click",(function(){return e.deleteAndRedownload()})),s.Jc(16,"mat-icon"),s.Bd(17,"restore"),s.Ic(),s.Hc(18),s.Nc(19,QT),s.Gc(),s.Ic(),s.zd(20,eR,5,0,"button",5),s.Ic(),s.Jc(21,"mat-card",6),s.Wc("click",(function(){return e.goToFile()})),s.Jc(22,"div",7),s.zd(23,iR,2,1,"div",8),s.Jc(24,"span",9),s.Jc(25,"strong"),s.Bd(26),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ic()),2&t){const t=s.nd(9);s.pc(4),s.Dd("\xa0",e.formattedDuration," "),s.pc(1),s.gd("matMenuTriggerFor",t),s.pc(15),s.gd("ngIf",e.sub.archive&&e.use_youtubedl_archive),s.pc(3),s.gd("ngIf",!e.image_errored&&e.file.thumbnailURL),s.pc(3),s.Cd(e.file.title)}},directives:[bs,Ep,vu,Cp,_p,ve.t,er,Kn],styles:[".example-card[_ngcontent-%COMP%]{width:200px;height:200px;padding:0;cursor:pointer}.menuButton[_ngcontent-%COMP%]{right:0;top:-1px;position:absolute;z-index:999}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:200px;height:112.5px;-o-object-fit:cover;object-fit:cover}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{max-height:80px;padding:0;margin:32px 0 0 -5px;width:calc(100% + 10px)}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:5px;position:absolute}.duration-time[_ngcontent-%COMP%]{position:absolute;left:5px;top:5px;z-index:99999}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:175px!important}.image[_ngcontent-%COMP%]{width:175px}}"]}),t})();function sR(t,e){if(1&t&&(s.Jc(0,"h2",9),s.Bd(1),s.Ic()),2&t){const t=s.ad();s.pc(1),s.Dd(" ",t.subscription.name," ")}}var aR;aR=$localize`:Subscription videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const oR=["placeholder",$localize`:Subscription videos search placeholder␟7e892ba15f2c6c17e83510e273b3e10fc32ea016␟4580988005648117665:Search`];function rR(t,e){if(1&t&&(s.Jc(0,"mat-option",25),s.Bd(1),s.Ic()),2&t){const t=e.$implicit;s.gd("value",t.value),s.pc(1),s.Dd(" ",t.value.label," ")}}function lR(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div",26),s.Jc(1,"app-subscription-file-card",27),s.Wc("reloadSubscription",(function(){return s.rd(t),s.ad(2).getSubscription()}))("goToFileEmit",(function(e){return s.rd(t),s.ad(2).goToFile(e)})),s.Ic(),s.Ic()}if(2&t){const t=e.$implicit,i=s.ad(2);s.pc(1),s.gd("file",t)("sub",i.subscription)("use_youtubedl_archive",i.use_youtubedl_archive)}}function cR(t,e){if(1&t){const t=s.Kc();s.Jc(0,"div"),s.Jc(1,"div",10),s.Jc(2,"div",11),s.Jc(3,"div",12),s.Jc(4,"mat-select",13),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().filterProperty=e}))("selectionChange",(function(e){return s.rd(t),s.ad().filterOptionChanged(e.value)})),s.zd(5,rR,2,2,"mat-option",14),s.bd(6,"keyvalue"),s.Ic(),s.Ic(),s.Jc(7,"div",12),s.Jc(8,"button",15),s.Wc("click",(function(){return s.rd(t),s.ad().toggleModeChange()})),s.Jc(9,"mat-icon"),s.Bd(10),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Ec(11,"div",16),s.Jc(12,"div",16),s.Jc(13,"h4",17),s.Nc(14,aR),s.Ic(),s.Ic(),s.Jc(15,"div",18),s.Jc(16,"mat-form-field",19),s.Jc(17,"input",20),s.Pc(18,oR),s.Wc("focus",(function(){return s.rd(t),s.ad().searchIsFocused=!0}))("blur",(function(){return s.rd(t),s.ad().searchIsFocused=!1}))("ngModelChange",(function(e){return s.rd(t),s.ad().search_text=e}))("ngModelChange",(function(e){return s.rd(t),s.ad().onSearchInputChanged(e)})),s.Ic(),s.Jc(19,"mat-icon",21),s.Bd(20,"search"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.Jc(21,"div",22),s.Jc(22,"div",23),s.zd(23,lR,2,3,"div",24),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(4),s.gd("ngModel",t.filterProperty),s.pc(1),s.gd("ngForOf",s.cd(6,6,t.filterProperties)),s.pc(5),s.Cd(t.descendingMode?"arrow_downward":"arrow_upward"),s.pc(6),s.gd("ngClass",t.searchIsFocused?"search-bar-focused":"search-bar-unfocused"),s.pc(1),s.gd("ngModel",t.search_text),s.pc(6),s.gd("ngForOf",t.filtered_files)}}function dR(t,e){1&t&&s.Ec(0,"mat-spinner",28),2&t&&s.gd("diameter",50)}let hR=(()=>{class t{constructor(t,e,i){this.postsService=t,this.route=e,this.router=i,this.id=null,this.subscription=null,this.files=null,this.filtered_files=null,this.use_youtubedl_archive=!1,this.search_mode=!1,this.search_text="",this.searchIsFocused=!1,this.descendingMode=!0,this.filterProperties={upload_date:{key:"upload_date",label:"Upload Date",property:"upload_date"},name:{key:"name",label:"Name",property:"title"},file_size:{key:"file_size",label:"File Size",property:"size"},duration:{key:"duration",label:"Duration",property:"duration"}},this.filterProperty=this.filterProperties.upload_date,this.downloading=!1}ngOnInit(){this.route.snapshot.paramMap.get("id")&&(this.id=this.route.snapshot.paramMap.get("id"),this.postsService.service_initialized.subscribe(t=>{t&&(this.getConfig(),this.getSubscription())}));const t=localStorage.getItem("filter_property");t&&this.filterProperties[t]&&(this.filterProperty=this.filterProperties[t])}goBack(){this.router.navigate(["/subscriptions"])}getSubscription(){this.postsService.getSubscription(this.id).subscribe(t=>{this.subscription=t.subscription,this.files=t.files,this.search_mode?this.filterFiles(this.search_text):this.filtered_files=this.files,this.filterByProperty(this.filterProperty.property)})}getConfig(){this.use_youtubedl_archive=this.postsService.config.Subscriptions.subscriptions_use_youtubedl_archive}goToFile(t){const e=t.name,i=t.url;localStorage.setItem("player_navigator",this.router.url),this.router.navigate(this.subscription.streamingOnly?["/player",{name:e,url:i}]:["/player",{fileNames:e,type:this.subscription.type?this.subscription.type:"video",subscriptionName:this.subscription.name,subPlaylist:this.subscription.isPlaylist,uuid:this.postsService.user?this.postsService.user.uid:null}])}onSearchInputChanged(t){t.length>0?(this.search_mode=!0,this.filterFiles(t)):this.search_mode=!1}filterFiles(t){const e=t.toLowerCase();this.filtered_files=this.files.filter(t=>t.id.toLowerCase().includes(e))}filterByProperty(t){this.filtered_files=this.filtered_files.sort(this.descendingMode?(e,i)=>e[t]>i[t]?-1:1:(e,i)=>e[t]>i[t]?1:-1)}filterOptionChanged(t){this.filterByProperty(t.property),localStorage.setItem("filter_property",t.key)}toggleModeChange(){this.descendingMode=!this.descendingMode,this.filterByProperty(this.filterProperty.property)}downloadContent(){const t=[];for(let e=0;e{this.downloading=!1,saveAs(t,this.subscription.name+".zip")},t=>{console.log(t),this.downloading=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(pw),s.Dc(wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-subscription"]],decls:13,vars:4,consts:[[2,"margin-top","14px"],["mat-icon-button","",1,"back-button",3,"click"],[2,"margin-bottom","15px"],["style","text-align: center;",4,"ngIf"],[2,"width","80%","margin","0 auto"],[4,"ngIf"],["color","primary","mat-fab","",1,"save-button",3,"disabled","click"],[1,"save-icon"],["class","spinner",3,"diameter",4,"ngIf"],[2,"text-align","center"],[1,"flex-grid"],[1,"filter-select-parent"],[2,"display","inline-block"],[2,"width","110px",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","",3,"click"],[1,"col"],[2,"text-align","center","margin-bottom","20px"],[1,"col",2,"top","-12px"],["color","accent",1,"search-bar",3,"ngClass"],["type","text","matInput","",1,"search-input",3,"ngModel","focus","blur","ngModelChange",6,"placeholder"],["matSuffix",""],[1,"container"],[1,"row","justify-content-center"],["class","col-6 col-lg-4 mb-2 mt-2 sub-file-col",4,"ngFor","ngForOf"],[3,"value"],[1,"col-6","col-lg-4","mb-2","mt-2","sub-file-col"],[3,"file","sub","use_youtubedl_archive","reloadSubscription","goToFileEmit"],[1,"spinner",3,"diameter"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.Jc(1,"button",1),s.Wc("click",(function(){return e.goBack()})),s.Jc(2,"mat-icon"),s.Bd(3,"arrow_back"),s.Ic(),s.Ic(),s.Jc(4,"div",2),s.zd(5,sR,2,1,"h2",3),s.Ic(),s.Ec(6,"mat-divider",4),s.Ec(7,"br"),s.zd(8,cR,24,8,"div",5),s.Jc(9,"button",6),s.Wc("click",(function(){return e.downloadContent()})),s.Jc(10,"mat-icon",7),s.Bd(11,"save"),s.Ic(),s.zd(12,dR,1,1,"mat-spinner",8),s.Ic(),s.Ic()),2&t&&(s.pc(5),s.gd("ngIf",e.subscription),s.pc(3),s.gd("ngIf",e.subscription),s.pc(1),s.gd("disabled",e.downloading),s.pc(3),s.gd("ngIf",e.downloading))},directives:[bs,vu,ve.t,Fu,Gm,Js,qa,ve.s,Bc,ve.q,Ru,Rs,Rc,rs,nR,mm],pipes:[ve.l],styles:[".sub-file-col[_ngcontent-%COMP%]{max-width:240px}.back-button[_ngcontent-%COMP%]{float:left;position:absolute;left:15px}.filter-select-parent[_ngcontent-%COMP%]{position:absolute;top:0;left:20px;display:block}.search-bar[_ngcontent-%COMP%]{transition:all .5s ease;position:relative;float:right}.search-bar-unfocused[_ngcontent-%COMP%]{width:100px}.search-input[_ngcontent-%COMP%]{transition:all .5s ease}.search-bar-focused[_ngcontent-%COMP%]{width:100%}.flex-grid[_ngcontent-%COMP%]{width:100%;display:block;position:relative}.col[_ngcontent-%COMP%]{width:33%;display:inline-block}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:absolute;bottom:25px}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}"]}),t})();var uR,pR;function mR(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-tab",9),s.Jc(1,"div",3),s.Jc(2,"mat-form-field"),s.Jc(3,"input",4),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().registrationUsernameInput=e})),s.Ic(),s.Ic(),s.Ic(),s.Jc(4,"div"),s.Jc(5,"mat-form-field"),s.Jc(6,"input",10),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().registrationPasswordInput=e})),s.Ic(),s.Ic(),s.Ic(),s.Jc(7,"div"),s.Jc(8,"mat-form-field"),s.Jc(9,"input",11),s.Wc("ngModelChange",(function(e){return s.rd(t),s.ad().registrationPasswordConfirmationInput=e})),s.Ic(),s.Ic(),s.Ic(),s.Jc(10,"div",6),s.Jc(11,"button",7),s.Wc("click",(function(){return s.rd(t),s.ad().register()})),s.Hc(12),s.Nc(13,pR),s.Gc(),s.Ic(),s.Ic(),s.Ic()}if(2&t){const t=s.ad();s.pc(3),s.gd("ngModel",t.registrationUsernameInput),s.pc(3),s.gd("ngModel",t.registrationPasswordInput),s.pc(3),s.gd("ngModel",t.registrationPasswordConfirmationInput),s.pc(2),s.gd("disabled",t.registering)}}uR=$localize`:Login␟6765b4c916060f6bc42d9bb69e80377dbcb5e4e9␟2454050363478003966:Login`,pR=$localize`:Register␟cfc2f436ec2beffb042e7511a73c89c372e86a6c␟3301086086650990787:Register`;let gR=(()=>{class t{constructor(t,e,i){this.postsService=t,this.snackBar=e,this.router=i,this.selectedTabIndex=0,this.loginUsernameInput="",this.loginPasswordInput="",this.loggingIn=!1,this.registrationEnabled=!1,this.registrationUsernameInput="",this.registrationPasswordInput="",this.registrationPasswordConfirmationInput="",this.registering=!1}ngOnInit(){this.postsService.isLoggedIn&&this.router.navigate(["/home"]),this.postsService.service_initialized.subscribe(t=>{t&&(this.postsService.config.Advanced.multi_user_mode||this.router.navigate(["/home"]),this.registrationEnabled=this.postsService.config.Users&&this.postsService.config.Users.allow_registration)})}login(){""!==this.loginPasswordInput&&(this.loggingIn=!0,this.postsService.login(this.loginUsernameInput,this.loginPasswordInput).subscribe(t=>{this.loggingIn=!1,t.token?this.postsService.afterLogin(t.user,t.token,t.permissions,t.available_permissions):this.openSnackBar("Login failed, unknown error.")},t=>{this.loggingIn=!1;const e=t.status;this.openSnackBar(401===e?"User name or password is incorrect!":404===e?"Login failed, cannot connect to the server.":"Login failed, unknown error.")}))}register(){this.registrationUsernameInput&&""!==this.registrationUsernameInput?this.registrationPasswordInput&&""!==this.registrationPasswordInput?this.registrationPasswordConfirmationInput&&""!==this.registrationPasswordConfirmationInput?this.registrationPasswordInput===this.registrationPasswordConfirmationInput?(this.registering=!0,this.postsService.register(this.registrationUsernameInput,this.registrationPasswordInput).subscribe(t=>{this.registering=!1,t&&t.user?(this.openSnackBar(`User ${t.user.name} successfully registered.`),this.loginUsernameInput=t.user.name,this.selectedTabIndex=0):this.openSnackBar("Failed to register user, unknown error.")},t=>{this.registering=!1,t&&t.error&&"string"==typeof t.error?this.openSnackBar(t.error):console.log(t)})):this.openSnackBar("Password confirmation is incorrect!"):this.openSnackBar("Password confirmation is required!"):this.openSnackBar("Password is required!"):this.openSnackBar("User name is required!")}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(Hg),s.Dc(wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-login"]],decls:14,vars:5,consts:[[1,"login-card"],[3,"selectedIndex","selectedIndexChange"],["label","Login"],[2,"margin-top","10px"],["matInput","","placeholder","User name",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange","keyup.enter"],[2,"margin-bottom","10px","margin-top","10px"],["color","primary","mat-raised-button","",3,"disabled","click"],["label","Register",4,"ngIf"],["label","Register"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Confirm Password",3,"ngModel","ngModelChange"]],template:function(t,e){1&t&&(s.Jc(0,"mat-card",0),s.Jc(1,"mat-tab-group",1),s.Wc("selectedIndexChange",(function(t){return e.selectedTabIndex=t})),s.Jc(2,"mat-tab",2),s.Jc(3,"div",3),s.Jc(4,"mat-form-field"),s.Jc(5,"input",4),s.Wc("ngModelChange",(function(t){return e.loginUsernameInput=t})),s.Ic(),s.Ic(),s.Ic(),s.Jc(6,"div"),s.Jc(7,"mat-form-field"),s.Jc(8,"input",5),s.Wc("ngModelChange",(function(t){return e.loginPasswordInput=t}))("keyup.enter",(function(){return e.login()})),s.Ic(),s.Ic(),s.Ic(),s.Jc(9,"div",6),s.Jc(10,"button",7),s.Wc("click",(function(){return e.login()})),s.Hc(11),s.Nc(12,uR),s.Gc(),s.Ic(),s.Ic(),s.Ic(),s.zd(13,mR,14,4,"mat-tab",8),s.Ic(),s.Ic()),2&t&&(s.pc(1),s.gd("selectedIndex",e.selectedTabIndex),s.pc(4),s.gd("ngModel",e.loginUsernameInput),s.pc(3),s.gd("ngModel",e.loginPasswordInput),s.pc(2),s.gd("disabled",e.loggingIn),s.pc(3),s.gd("ngIf",e.registrationEnabled))},directives:[er,Ff,Cf,Bc,Ru,Rs,Js,qa,bs,ve.t],styles:[".login-card[_ngcontent-%COMP%]{max-width:600px;width:80%;margin:20px auto 0}"]}),t})();var fR,bR,_R,vR,yR,wR;function xR(t,e){1&t&&(s.Jc(0,"mat-icon",10),s.Bd(1,"done"),s.Ic())}function kR(t,e){1&t&&(s.Jc(0,"mat-icon",11),s.Bd(1,"error"),s.Ic())}function CR(t,e){if(1&t&&(s.Jc(0,"div"),s.Jc(1,"strong"),s.Hc(2),s.Nc(3,_R),s.Gc(),s.Ic(),s.Ec(4,"br"),s.Bd(5),s.Ic()),2&t){const t=s.ad(2);s.pc(5),s.Dd(" ",t.download.error," ")}}function SR(t,e){if(1&t&&(s.Jc(0,"div"),s.Jc(1,"strong"),s.Hc(2),s.Nc(3,vR),s.Gc(),s.Ic(),s.Bd(4),s.bd(5,"date"),s.Ic()),2&t){const t=s.ad(2);s.pc(4),s.Dd("\xa0",s.dd(5,1,t.download.timestamp_start,"medium")," ")}}function IR(t,e){if(1&t&&(s.Jc(0,"div"),s.Jc(1,"strong"),s.Hc(2),s.Nc(3,yR),s.Gc(),s.Ic(),s.Bd(4),s.bd(5,"date"),s.Ic()),2&t){const t=s.ad(2);s.pc(4),s.Dd("\xa0",s.dd(5,1,t.download.timestamp_end,"medium")," ")}}function DR(t,e){if(1&t&&(s.Jc(0,"div"),s.Jc(1,"strong"),s.Hc(2),s.Nc(3,wR),s.Gc(),s.Ic(),s.Bd(4),s.Ic()),2&t){const t=s.ad(2);s.pc(4),s.Dd("\xa0",t.download.fileNames.join(", ")," ")}}function ER(t,e){if(1&t&&(s.Jc(0,"mat-expansion-panel",12),s.Jc(1,"mat-expansion-panel-header"),s.Jc(2,"div"),s.Hc(3),s.Nc(4,bR),s.Gc(),s.Ic(),s.Jc(5,"div",13),s.Jc(6,"div",14),s.Jc(7,"mat-panel-description"),s.Bd(8),s.bd(9,"date"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.zd(10,CR,6,1,"div",15),s.zd(11,SR,6,4,"div",15),s.zd(12,IR,6,4,"div",15),s.zd(13,DR,5,1,"div",15),s.Ic()),2&t){const t=s.ad();s.pc(8),s.Cd(s.dd(9,5,t.download.timestamp_start,"medium")),s.pc(2),s.gd("ngIf",t.download.error),s.pc(1),s.gd("ngIf",t.download.timestamp_start),s.pc(1),s.gd("ngIf",t.download.timestamp_end),s.pc(1),s.gd("ngIf",t.download.fileNames)}}fR=$localize`:Download ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,bR=$localize`:Details␟4f8b2bb476981727ab34ed40fde1218361f92c45␟5028777105388019087:Details`,_R=$localize`:Error label␟e9aff8e6df2e2bf6299ea27bb2894c70bc48bd4d␟7911469195681429827:An error has occurred:`,vR=$localize`:Download start label␟77b0c73840665945b25bd128709aa64c8f017e1c␟2437792661281269671:Download start:`,yR=$localize`:Download end label␟08ff9375ec078065bcdd7637b7ea65fce2979266␟8797064057284793198:Download end:`,wR=$localize`:File path(s) label␟ad127117f9471612f47d01eae09709da444a36a4␟3348508922595416508:File path(s):`;let OR=(()=>{class t{constructor(){this.download={uid:null,type:"audio",percent_complete:0,complete:!1,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,timestamp_start:null,timestamp_end:null,is_playlist:!1,error:!1},this.cancelDownload=new s.u,this.queueNumber=null,this.url_id=null}ngOnInit(){if(this.download&&this.download.url&&this.download.url.includes("youtu")){const t=this.download.is_playlist?6:3,e=this.download.url.indexOf(this.download.is_playlist?"?list=":"?v=")+t;this.url_id=this.download.url.substring(e,this.download.url.length)}}cancelTheDownload(){this.cancelDownload.emit(this.download)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.xc({type:t,selectors:[["app-download-item"]],inputs:{download:"download",queueNumber:"queueNumber"},outputs:{cancelDownload:"cancelDownload"},decls:17,vars:11,consts:[[3,"rowHeight","cols"],[3,"colspan"],[2,"display","inline-block","text-align","center","width","100%"],[1,"shorten"],[3,"value","mode"],["style","margin-left: 25px; cursor: default","matTooltip","The download is complete","matTooltip-i18n","",4,"ngIf"],["style","margin-left: 25px; cursor: default","matTooltip","An error has occurred","matTooltip-i18n","",4,"ngIf"],["mat-icon-button","","color","warn",2,"margin-bottom","2px",3,"click"],["fontSet","material-icons-outlined"],["class","ignore-margin",4,"ngIf"],["matTooltip","The download is complete","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],["matTooltip","An error has occurred","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],[1,"ignore-margin"],[2,"width","100%"],[2,"float","right"],[4,"ngIf"]],template:function(t,e){1&t&&(s.Jc(0,"div"),s.Jc(1,"mat-grid-list",0),s.Jc(2,"mat-grid-tile",1),s.Jc(3,"div",2),s.Jc(4,"span",3),s.Hc(5),s.Nc(6,fR),s.Gc(),s.Bd(7),s.Ic(),s.Ic(),s.Ic(),s.Jc(8,"mat-grid-tile",1),s.Ec(9,"mat-progress-bar",4),s.zd(10,xR,2,0,"mat-icon",5),s.zd(11,kR,2,0,"mat-icon",6),s.Ic(),s.Jc(12,"mat-grid-tile",1),s.Jc(13,"button",7),s.Wc("click",(function(){return e.cancelTheDownload()})),s.Jc(14,"mat-icon",8),s.Bd(15,"cancel"),s.Ic(),s.Ic(),s.Ic(),s.Ic(),s.zd(16,ER,14,8,"mat-expansion-panel",9),s.Ic()),2&t&&(s.pc(1),s.gd("rowHeight",50)("cols",24),s.pc(1),s.gd("colspan",7),s.pc(5),s.Dd("\xa0",e.url_id?e.url_id:e.download.uid,""),s.pc(1),s.gd("colspan",13),s.pc(1),s.gd("value",e.download.complete||e.download.error?100:e.download.percent_complete)("mode",e.download.complete||0!==e.download.percent_complete||e.download.error?"determinate":"indeterminate"),s.pc(1),s.gd("ngIf",e.download.complete),s.pc(1),s.gd("ngIf",e.download.error),s.pc(1),s.gd("colspan",4),s.pc(4),s.gd("ngIf",e.download.timestamp_start))},directives:[fh,ih,nm,ve.t,bs,vu,Kp,Hd,Gd,Wd],pipes:[ve.f],styles:[".shorten[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}.mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.ignore-margin[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px;margin-bottom:-15px}"]}),t})();var AR,PR,TR;function RR(t,e){1&t&&(s.Jc(0,"span"),s.Bd(1,"\xa0"),s.Hc(2),s.Nc(3,PR),s.Gc(),s.Ic())}function MR(t,e){if(1&t){const t=s.Kc();s.Jc(0,"mat-card",11),s.Jc(1,"app-download-item",12),s.Wc("cancelDownload",(function(){s.rd(t);const e=s.ad().$implicit,i=s.ad(2).$implicit;return s.ad().clearDownload(i.key,e.value.uid)})),s.Ic(),s.Ic()}if(2&t){const t=s.ad(),e=t.$implicit,i=t.index;s.pc(1),s.gd("download",e.value)("queueNumber",i+1)}}function FR(t,e){if(1&t&&(s.Jc(0,"div",9),s.zd(1,MR,2,2,"mat-card",10),s.Ic()),2&t){const t=e.$implicit;s.pc(1),s.gd("ngIf",t.value)}}function NR(t,e){if(1&t){const t=s.Kc();s.Hc(0),s.Jc(1,"mat-card",3),s.Jc(2,"h4",4),s.Hc(3),s.Nc(4,AR),s.Gc(),s.Bd(5),s.zd(6,RR,4,0,"span",2),s.Ic(),s.Jc(7,"div",5),s.Jc(8,"div",6),s.zd(9,FR,2,1,"div",7),s.bd(10,"keyvalue"),s.Ic(),s.Ic(),s.Jc(11,"div"),s.Jc(12,"button",8),s.Wc("click",(function(){s.rd(t);const e=s.ad().$implicit;return s.ad().clearDownloads(e.key)})),s.Bd(13,"Clear all downloads"),s.Ic(),s.Ic(),s.Ic(),s.Gc()}if(2&t){const t=s.ad().$implicit,e=s.ad();s.pc(5),s.Dd("\xa0",t.key," "),s.pc(1),s.gd("ngIf",t.key===e.postsService.session_id),s.pc(3),s.gd("ngForOf",s.dd(10,3,t.value,e.sort_downloads))}}function LR(t,e){if(1&t&&(s.Jc(0,"div"),s.zd(1,NR,14,6,"ng-container",2),s.Ic()),2&t){const t=e.$implicit,i=s.ad();s.pc(1),s.gd("ngIf",i.keys(t.value).length>0)}}function zR(t,e){1&t&&(s.Jc(0,"div"),s.Jc(1,"h4",4),s.Nc(2,TR),s.Ic(),s.Ic())}AR=$localize`:Session ID␟a1ad8b1be9be43b5183bd2c3186d4e19496f2a0b␟98219539077594180:Session ID:`,PR=$localize`:Current session␟eb98135e35af26a9a326ee69bd8ff104d36dd8ec␟2634265024545519524:(current)`,TR=$localize`:No downloads label␟7117fc42f860e86d983bfccfcf2654e5750f3406␟6454341788755868274:No downloads available!`;let BR=(()=>{class t{constructor(t,e){this.postsService=t,this.router=e,this.downloads_check_interval=1e3,this.downloads={},this.interval_id=null,this.keys=Object.keys,this.valid_sessions_length=0,this.sort_downloads=(t,e)=>e.value.timestamp_start-t.value.timestamp_start}ngOnInit(){this.getCurrentDownloads(),this.interval_id=setInterval(()=>{this.getCurrentDownloads()},this.downloads_check_interval),this.postsService.service_initialized.subscribe(t=>{t&&(this.postsService.config.Extra.enable_downloads_manager||this.router.navigate(["/home"]))})}ngOnDestroy(){this.interval_id&&clearInterval(this.interval_id)}getCurrentDownloads(){this.postsService.getCurrentDownloads().subscribe(t=>{t.downloads&&this.assignNewValues(t.downloads)})}clearDownload(t,e){this.postsService.clearDownloads(!1,t,e).subscribe(t=>{})}clearDownloads(t){this.postsService.clearDownloads(!1,t).subscribe(t=>{t.success&&(this.downloads=t.downloads)})}clearAllDownloads(){this.postsService.clearDownloads(!0).subscribe(t=>{t.success&&(this.downloads=t.downloads)})}assignNewValues(t){const e=Object.keys(t),i=Object.keys(this.downloads).filter(t=>-1===e.indexOf(t));for(const n of i)delete this.downloads[n];for(let n=0;n-1===a.indexOf(t));for(const e of t)console.log("removing missing download id"),delete this.downloads[i][e]}if(this.downloads[i])for(let e=0;e0){t=!0;break}return t}}var e;return t.\u0275fac=function(e){return new(e||t)(s.Dc(Wx),s.Dc(wx))},t.\u0275cmp=s.xc({type:t,selectors:[["app-downloads"]],decls:4,vars:4,consts:[[2,"padding","20px"],[4,"ngFor","ngForOf"],[4,"ngIf"],[2,"padding-bottom","30px","margin-bottom","15px"],[2,"text-align","center"],[1,"container"],[1,"row"],["class","col-12 my-1",4,"ngFor","ngForOf"],["mat-stroked-button","","color","warn",2,"top","15px",3,"click"],[1,"col-12","my-1"],["class","mat-elevation-z3",4,"ngIf"],[1,"mat-elevation-z3"],[3,"download","queueNumber","cancelDownload"]],template:function(t,e){1&t&&(s.Jc(0,"div",0),s.zd(1,LR,2,1,"div",1),s.bd(2,"keyvalue"),s.zd(3,zR,3,0,"div",2),s.Ic()),2&t&&(s.pc(1),s.gd("ngForOf",s.cd(2,2,e.downloads)),s.pc(2),s.gd("ngIf",e.downloads&&!e.downloadsValid()))},directives:[ve.s,ve.t,er,bs,OR],pipes:[ve.l],styles:[""],data:{animation:[o("list",[p(":enter",[g("@items",(e=m(),{type:12,timings:100,animation:e}),{optional:!0})])]),o("items",[p(":enter",[d({transform:"scale(0.5)",opacity:0}),r("500ms cubic-bezier(.8,-0.6,0.2,1.5)",d({transform:"scale(1)",opacity:1}))]),p(":leave",[d({transform:"scale(1)",opacity:1,height:"*"}),r("1s cubic-bezier(.8,-0.6,0.2,1.5)",d({transform:"scale(0.5)",opacity:0,height:"0px",margin:"0px"}))])])]}}),t})();const JR=[{path:"home",component:qO,canActivate:[Wx]},{path:"player",component:oT,canActivate:[Wx]},{path:"subscriptions",component:XT,canActivate:[Wx]},{path:"subscription",component:hR,canActivate:[Wx]},{path:"login",component:gR},{path:"downloads",component:BR},{path:"",redirectTo:"/home",pathMatch:"full"}];let VR=(()=>{class t{}return t.\u0275mod=s.Bc({type:t}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},imports:[[zx.forRoot(JR,{useHash:!0})],zx]}),t})();var jR=i("2Yyj"),$R=i.n(jR);function HR({element:t}){return"video"===t.id?UO||WO:HO||GO}Object(ve.K)($R.a,"es");let UR=(()=>{class t{}return t.\u0275mod=s.Bc({type:t,bootstrap:[dE]}),t.\u0275inj=s.Ac({factory:function(e){return new(e||t)},providers:[Wx],imports:[[ve.c,n.a,Ae,zn,Dm,Co,Mu,Wm,So,su,Yg,sr,jg,vs,yr,gg,yu,cp,bh,Yd,am,gm,Lo,Xn,Ap,Cd,Tg,Ap,ad,Kf,Yp,lb,kb,V_,wk,Pv,Nv,Qk,UP,JP,WP,xP,FA.forRoot({isVisible:HR}),zx,VR]]}),t})();s.ud(qO,[ve.q,ve.r,ve.s,ve.t,ve.A,ve.w,ve.x,ve.y,ve.z,ve.u,ve.v,km,Im,sn,Ka,ua,fa,Rs,Qs,sa,As,ha,ga,ia,Js,Vs,ho,bo,vo,wo,uo,go,qa,Ua,Ja,ku,Cu,Cc,Bc,Oc,Ac,Pc,Tc,Rc,Ru,Iu,Gm,Um,rs,is,Za,to,ro,io,so,Xg,Kg,er,ir,nr,Ho,Uo,Go,Wo,qo,Xo,Yo,Zo,Ko,Qo,tr,Vg,bs,_s,gr,br,lg,cg,rg,hg,pg,dg,vu,Xu,qu,tp,Yu,Jn,Zu,Qu,Yn,lp,rp,Fu,fh,ih,nh,ah,oh,sh,Kd,Hd,Ud,Gd,qd,Wd,Vd,nm,pm,mm,Ro,No,Kn,Cp,_p,Ep,mp,dd,vd,yd,wd,xd,Og,Dg,Qc,sd,td,Ff,vf,Cf,Hf,qf,_f,Kp,Xp,rb,mb,xb,m_,__,D_,x_,f_,P_,y_,O_,C_,I_,S_,R_,L_,F_,B_,bk,dk,vk,hk,lk,ck,Av,Ev,Iv,wv,kv,xv,Fv,Zk,Kk,jP,$P,HP,CP,DP,EP,OP,AP,PP,TP,RP,MP,FP,LP,zP,BP,GP,wP,RA,Ex,xx,kx,Sx,ky,dE,KA,qO,oT,YA,SE,OR,XT,ST,hR,nR,MT,uD,ek,DD,sA,Vk,CC,bC,cP,gR,BR,zD,HD,vS,AC,jC,XC,rC,SS,cA],[ve.b,ve.G,ve.p,ve.k,ve.E,ve.g,ve.C,ve.F,ve.d,ve.f,ve.i,ve.j,ve.l,NP,Jk])},xDdU:function(t,e,i){var n,s,a=i("4fRq"),o=i("I2ZF"),r=0,l=0;t.exports=function(t,e,i){var c=e&&i||0,d=e||[],h=(t=t||{}).node||n,u=void 0!==t.clockseq?t.clockseq:s;if(null==h||null==u){var p=a();null==h&&(h=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==u&&(u=s=16383&(p[6]<<8|p[7]))}var m=void 0!==t.msecs?t.msecs:(new Date).getTime(),g=void 0!==t.nsecs?t.nsecs:l+1,f=m-r+(g-l)/1e4;if(f<0&&void 0===t.clockseq&&(u=u+1&16383),(f<0||m>r)&&void 0===t.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");r=m,l=g,s=u;var b=(1e4*(268435455&(m+=122192928e5))+g)%4294967296;d[c++]=b>>>24&255,d[c++]=b>>>16&255,d[c++]=b>>>8&255,d[c++]=255&b;var _=m/4294967296*1e4&268435455;d[c++]=_>>>8&255,d[c++]=255&_,d[c++]=_>>>24&15|16,d[c++]=_>>>16&255,d[c++]=u>>>8|128,d[c++]=255&u;for(var v=0;v<6;++v)d[c+v]=h[v];return e||o(d)}},xk4V:function(t,e,i){var n=i("4fRq"),s=i("I2ZF");t.exports=function(t,e,i){var a=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var r=0;r<16;++r)e[a+r]=o[r];return e||s(o)}},zuWl:function(t,e,i){"use strict";!function(e){var i=/^(b|B)$/,n={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},s={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function a(t){var e,a,o,r,l,c,d,h,u,p,m,g,f,b,_,v=1=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,r=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return r=e.done,e},e:function(e){o=!0,a=e},f:function(){try{r||null==n.return||n.return()}finally{if(o)throw a}}}}function _createSuper(e){return function(){var t,i=_getPrototypeOf(e);if(_isNativeReflectConstruct()){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(i,arguments,n)}else t=i.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!t||i.length!==t);n=!0);}catch(c){a=!0,r=c}finally{try{n||null==s.return||s.return()}finally{if(a)throw r}}return i}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i>>((3&t)<<3)&255;return a}}},"6BPK":function(e,t,i){var n,a;!function(r,o,s){"use strict";"undefined"!=typeof window&&i("PDX0")?void 0===(a="function"==typeof(n=s)?n.call(t,i,t,e):n)||(e.exports=a):e.exports?e.exports=s():o.exports?o.exports=s():o.Fingerprint2=s()}(0,this,(function(){"use strict";var e=function(e,t){var i=[0,0,0,0];return i[3]+=(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3]+(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=e[2]+t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=e[1]+t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=e[0]+t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},t=function(e,t){var i=[0,0,0,0];return i[3]+=(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3]*(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=e[2]*t[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=e[3]*t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=e[1]*t[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=e[2]*t[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=e[3]*t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},i=function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:[e[1]<<(t-=32)|e[0]>>>32-t,e[0]<>>32-t]},n=function(e,t){return 0==(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=t(e,[4283543511,3981806797]),e=a(e,[0,e[0]>>>1]),e=t(e,[3301882366,444984403]),a(e,[0,e[0]>>>1])},o=function(o,s){for(var c=(o=o||"").length%16,l=o.length-c,u=[0,s=s||0],d=[0,s],h=[0,0],p=[0,0],f=[2277735313,289559509],m=[1291169091,658871167],g=0;g>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)},s={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},c=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var i=0,n=e.length;it.name?1:e.name=0?"Windows Phone":t.indexOf("win")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?"iOS":t.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e)return!0;if(void 0!==i){if((i=i.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(i.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(i.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===i.indexOf("win")&&-1===i.indexOf("linux")&&-1===i.indexOf("mac"))!=("Other"===e))return!0}return n.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e}())}},{key:"hasLiedBrowser",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),i=navigator.productSub;if(("Chrome"==(e=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==i)return!0;var n,a=eval.toString().length;if(37===a&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===a&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===a&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(r){try{r.toSource(),n=!0}catch(o){n=!1}}return n&&"Firefox"!==e&&"Other"!==e}())}},{key:"touchSupport",getData:function(e){e(function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(i){e=!1}return[t,e,"ontouchstart"in window]}())}},{key:"fonts",getData:function(e,t){var i=["monospace","sans-serif","serif"],n=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];t.fonts.extendedJsFonts&&(n=n.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),n=(n=n.concat(t.fonts.userDefinedFonts)).filter((function(e,t){return n.indexOf(e)===t}));var a=document.getElementsByTagName("body")[0],r=document.createElement("div"),o=document.createElement("div"),s={},c={},l=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e},u=function(e,t){var i=l();return i.style.fontFamily="'"+e+"',"+t,i},d=function(e){for(var t=!1,n=0;n=e.components.length)t(i.data);else{var o=e.components[n];if(e.excludes[o.key])a(!1);else{if(!r&&o.pauseBefore)return n-=1,void setTimeout((function(){a(!0)}),1);try{o.getData((function(e){i.addPreprocessedComponent(o.key,e),a(!1)}),e)}catch(s){i.addPreprocessedComponent(o.key,String(s)),a(!1)}}}}(!1)},g.getPromise=function(e){return new Promise((function(t,i){g.get(e,t)}))},g.getV18=function(e,t){return null==t&&(t=e,e={}),g.get(e,(function(i){for(var n=[],a=0;a=t.status}function n(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(i)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,r=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,r,o){var s=a.URL||a.webkitURL,c=document.createElement("a");c.download=r=r||e.name||"download",c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?n(c):i(c.href)?t(e,r,o):n(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){n(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,a,r){if(a=a||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,r),a);else if(i(e))t(e,a,r);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout((function(){n(o)}))}}:function(e,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return t(e,i,n);var o="application/octet-stream"===e.type,s=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},l.readAsDataURL(e)}else{var u=a.URL||a.webkitURL,d=u.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});a.saveAs=r.saveAs=r,e.exports=r})?n.apply(t,[]):n)||(e.exports=a)},PDX0:function(e,t){(function(t){e.exports=t}).call(this,{})},XypG:function(e,t){},ZAI4:function(e,t,i){"use strict";i.r(t),i.d(t,"isVisible",(function(){return dB})),i.d(t,"AppModule",(function(){return pB}));var n=i("jhN1"),a=i("fXoL"),r=function e(){_classCallCheck(this,e)};function o(e,t){return{type:7,name:e,definitions:t,options:{}}}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:t}}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function u(e){return{type:6,styles:e,offset:null}}function d(e,t,i){return{type:0,name:e,styles:t,options:i}}function h(e){return{type:5,steps:e}}function p(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:i}}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function m(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:i}}function g(e){Promise.resolve(null).then(e)}var v=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+i}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;g((function(){return e._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}(),b=function(){function e(t){var i=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,a=0,r=0,o=this.players.length;0==o?g((function(){return i._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++n==o&&i._onFinish()})),e.onDestroy((function(){++a==o&&i._onDestroy()})),e.onStart((function(){++r==o&&i._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(e){return e.init()}))}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))}},{key:"pause",value:function(){this.players.forEach((function(e){return e.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(e){return e.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(e){return e.destroy()})),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach((function(e){var i=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(i)}))}},{key:"getPosition",value:function(){var e=0;return this.players.forEach((function(t){var i=t.getPosition();e=Math.min(i,e)})),e}},{key:"beforeDestroy",value:function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}();function _(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function y(e){switch(e.length){case 0:return new v;case 1:return e[0];default:return new b(e)}}function k(e,t,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],c=-1,l=null;if(n.forEach((function(e){var i=e.offset,n=i==c,u=n&&l||{};Object.keys(e).forEach((function(i){var n=i,s=e[i];if("offset"!==i)switch(n=t.normalizePropertyName(n,o),s){case"!":s=a[i];break;case"*":s=r[i];break;default:s=t.normalizeStyleValue(i,n,s,o)}u[n]=s})),n||s.push(u),l=u,c=i})),o.length){var u="\n - ";throw new Error("Unable to animate due to the following errors:".concat(u).concat(o.join(u)))}return s}function w(e,t,i,n){switch(t){case"start":e.onStart((function(){return n(i&&C(i,"start",e))}));break;case"done":e.onDone((function(){return n(i&&C(i,"done",e))}));break;case"destroy":e.onDestroy((function(){return n(i&&C(i,"destroy",e))}))}}function C(e,t,i){var n=i.totalTime,a=x(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==n?e.totalTime:n,!!i.disabled),r=e._data;return null!=r&&(a._data=r),a}function x(e,t,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:i,toState:n,phaseName:a,totalTime:r,disabled:!!o}}function S(e,t,i){var n;return e instanceof Map?(n=e.get(t))||e.set(t,n=i):(n=e[t])||(n=e[t]=i),n}function I(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var O=function(e,t){return!1},D=function(e,t){return!1},E=function(e,t,i){return[]},A=_();(A||"undefined"!=typeof Element)&&(O=function(e,t){return e.contains(t)},D=function(){if(A||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,i){return t.apply(e,[i])}:D}(),E=function(e,t,i){var n=[];if(i)n.push.apply(n,_toConsumableArray(e.querySelectorAll(t)));else{var a=e.querySelector(t);a&&n.push(a)}return n});var T=null,P=!1;function R(e){T||(T=("undefined"!=typeof document?document.body:null)||{},P=!!T.style&&"WebkitAppearance"in T.style);var t=!0;return T.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in T.style)&&P)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in T.style),t}var M=D,L=O,j=E;function F(e){var t={};return Object.keys(e).forEach((function(i){var n=i.replace(/([a-z])([A-Z])/g,"$1-$2");t[n]=e[i]})),t}var N,z=((N=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return R(e)}},{key:"matchesElement",value:function(e,t){return M(e,t)}},{key:"containsElement",value:function(e,t){return L(e,t)}},{key:"query",value:function(e,t,i){return j(e,t,i)}},{key:"computeStyle",value:function(e,t,i){return i||""}},{key:"animate",value:function(e,t,i,n,a){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new v(i,n)}}]),e}()).\u0275fac=function(e){return new(e||N)},N.\u0275prov=a.zc({token:N,factory:N.\u0275fac}),N),B=function(){var e=function e(){_classCallCheck(this,e)};return e.NOOP=new z,e}();function J(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:V(parseFloat(t[1]),t[2])}function V(e,t){switch(t){case"s":return 1e3*e;default:return e}}function H(e,t,i){return e.hasOwnProperty("duration")?e:function(e,t,i){var n,a=0,r="";if("string"==typeof e){var o=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};n=V(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(a=V(parseFloat(s),o[4]));var c=o[5];c&&(r=c)}else n=e;if(!i){var l=!1,u=t.length;n<0&&(t.push("Duration values below 0 are not allowed for this animation step."),l=!0),a<0&&(t.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&t.splice(u,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:n,delay:a,easing:r}}(e,t,i)}function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach((function(i){t[i]=e[i]})),t}function G(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var n in e)i[n]=e[n];else U(e,i);return i}function W(e,t,i){return i?t+":"+i+";":""}function q(e){for(var t="",i=0;i *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,i);if("function"==typeof n)return void t.push(n);e=n}var a=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==a||a.length<4)return i.push('The provided transition expression "'.concat(e,'" is not supported')),t;var r=a[1],o=a[2],s=a[3];t.push(le(r,s)),"<"!=o[0]||"*"==r&&"*"==s||t.push(le(s,r))}(e,a,n)})):a.push(i),a),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:me(e.options)}}},{key:"visitSequence",value:function(e,t){var i=this;return{type:2,steps:e.steps.map((function(e){return re(i,e,t)})),options:me(e.options)}}},{key:"visitGroup",value:function(e,t){var i=this,n=t.currentTime,a=0,r=e.steps.map((function(e){t.currentTime=n;var r=re(i,e,t);return a=Math.max(a,t.currentTime),r}));return t.currentTime=a,{type:3,steps:r,options:me(e.options)}}},{key:"visitAnimate",value:function(e,t){var i,n=function(e,t){var i=null;if(e.hasOwnProperty("duration"))i=e;else if("number"==typeof e)return ge(H(e,t).duration,0,"");var n=e;if(n.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var a=ge(0,0,"");return a.dynamic=!0,a.strValue=n,a}return ge((i=i||H(n,t)).duration,i.delay,i.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;var a=e.styles?e.styles:u({});if(5==a.type)i=this.visitKeyframes(a,t);else{var r=e.styles,o=!1;if(!r){o=!0;var s={};n.easing&&(s.easing=n.easing),r=u(s)}t.currentTime+=n.duration+n.delay;var c=this.visitStyle(r,t);c.isEmptyStep=o,i=c}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(e,t){var i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}},{key:"_makeStyleAst",value:function(e,t){var i=[];Array.isArray(e.styles)?e.styles.forEach((function(e){"string"==typeof e?"*"==e?i.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):i.push(e)})):i.push(e.styles);var n=!1,a=null;return i.forEach((function(e){if(fe(e)){var t=e,i=t.easing;if(i&&(a=i,delete t.easing),!n)for(var r in t)if(t[r].toString().indexOf("{{")>=0){n=!0;break}}})),{type:6,styles:i,easing:a,offset:e.offset,containsDynamicStyles:n,options:null}}},{key:"_validateStyleAst",value:function(e,t){var i=this,n=t.currentAnimateTimings,a=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach((function(e){"string"!=typeof e&&Object.keys(e).forEach((function(n){if(i._driver.validateStyleProperty(n)){var o,s,c,l,u,d=t.collectedStyles[t.currentQuerySelector],h=d[n],p=!0;h&&(r!=a&&r>=h.startTime&&a<=h.endTime&&(t.errors.push('The CSS property "'.concat(n,'" that exists between the times of "').concat(h.startTime,'ms" and "').concat(h.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(r,'ms" and "').concat(a,'ms"')),p=!1),r=h.startTime),p&&(d[n]={startTime:r,endTime:a}),t.options&&(o=e[n],s=t.options,c=t.errors,l=s.params||{},(u=Z(o)).length&&u.forEach((function(e){l.hasOwnProperty(e)||c.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})))}else t.errors.push('The provided animation property "'.concat(n,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(e,t){var i=this,n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;var a=0,r=[],o=!1,s=!1,c=0,l=e.steps.map((function(e){var n=i._makeStyleAst(e,t),l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach((function(e){if(fe(e)&&e.hasOwnProperty("offset")){var i=e;t=parseFloat(i.offset),delete i.offset}}));else if(fe(e)&&e.hasOwnProperty("offset")){var i=e;t=parseFloat(i.offset),delete i.offset}return t}(n.styles),u=0;return null!=l&&(a++,u=n.offset=l),s=s||u<0||u>1,o=o||u0&&a0?a==h?1:d*a:r[a],s=o*m;t.currentTime=p+f.delay+s,f.duration=s,i._validateStyleAst(e,t),e.offset=o,n.styles.push(e)})),n}},{key:"visitReference",value:function(e,t){return{type:8,animation:re(this,X(e.animation),t),options:me(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:me(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:me(e.options)}}},{key:"visitQuery",value:function(e,t){var i=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;var a=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return":self"==e}));return t&&(e=e.replace(ue,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(e){return".ng-trigger-"+e.substr(1)})).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),r=a[0],o=a[1];t.currentQuerySelector=i.length?i+" "+r:r,S(t.collectedStyles,t.currentQuerySelector,{});var s=re(this,X(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:s,originalSelector:e.selector,options:me(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var i="full"===e.timings?{duration:0,delay:0,easing:"full"}:H(e.timings,t.errors,!0);return{type:12,animation:re(this,X(e.animation),t),timings:i,options:null}}}]),e}(),pe=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function fe(e){return!Array.isArray(e)&&"object"==typeof e}function me(e){var t;return e?(e=U(e)).params&&(e.params=(t=e.params)?U(t):null):e={},e}function ge(e,t,i){return{duration:e,delay:t,easing:i}}function ve(e,t,i,n,a,r){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:i,postStyleProps:n,duration:a,delay:r,totalTime:a+r,easing:o,subTimeline:s}}var be=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var i,n=this._map.get(e);n||this._map.set(e,n=[]),(i=n).push.apply(i,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),_e=new RegExp(":enter","g"),ye=new RegExp(":leave","g");function ke(e,t,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new we).buildKeyframes(e,t,i,n,a,r,o,s,c,l)}var we=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,i,n,a,r,o,s,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new be;var u=new xe(e,t,c,n,a,l,[]);u.options=s,u.currentTimeline.setStyles([r],null,u.errors,s),re(this,i,u);var d=u.timelines.filter((function(e){return e.containsAnimation()}));if(d.length&&Object.keys(o).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([o],null,u.errors,s)}return d.length?d.map((function(e){return e.buildKeyframes()})):[ve(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var i=t.subInstructions.consume(t.element);if(i){var n=t.createSubContext(e.options),a=t.currentTimeline.currentTime,r=this._visitSubInstructions(i,n,n.options);a!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,i){var n=t.currentTimeline.currentTime,a=null!=i.duration?J(i.duration):null,r=null!=i.delay?J(i.delay):null;return 0!==a&&e.forEach((function(e){var i=t.appendInstructionToTimeline(e,a,r);n=Math.max(n,i.duration+i.delay)})),n}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),re(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var i=this,n=t.subContextCount,a=t,r=e.options;if(r&&(r.params||r.delay)&&((a=t.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Ce);var o=J(r.delay);a.delayNextStep(o)}e.steps.length&&(e.steps.forEach((function(e){return re(i,e,a)})),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>n&&a.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var i=this,n=[],a=t.currentTimeline.currentTime,r=e.options&&e.options.delay?J(e.options.delay):0;e.steps.forEach((function(o){var s=t.createSubContext(e.options);r&&s.delayNextStep(r),re(i,o,s),a=Math.max(a,s.currentTimeline.currentTime),n.push(s.currentTimeline)})),n.forEach((function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)})),t.transformIntoNewTimeline(a),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var i=e.strValue;return H(t.params?Q(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var i=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),n.snapshotCurrentStyles());var a=e.style;5==a.type?this.visitKeyframes(a,t):(t.incrementTime(i.duration),this.visitStyle(a,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var i=t.currentTimeline,n=t.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();var a=n&&n.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(a):i.setStyles(e.styles,a,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var i=t.currentAnimateTimings,n=t.currentTimeline.duration,a=i.duration,r=t.createSubContext().currentTimeline;r.easing=i.easing,e.styles.forEach((function(e){r.forwardTime((e.offset||0)*a),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(n+a),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var i=this,n=t.currentTimeline.currentTime,a=e.options||{},r=a.delay?J(a.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ce);var o=n,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!a.optional,t.errors);t.currentQueryTotal=s.length;var c=null;s.forEach((function(n,a){t.currentQueryIndex=a;var s=t.createSubContext(e.options,n);r&&s.delayNextStep(r),n===t.element&&(c=s.currentTimeline),re(i,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var i=t.parentContext,n=t.currentTimeline,a=e.timings,r=Math.abs(a.duration),o=r*(t.currentQueryTotal-1),s=r*t.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":s=o-s;break;case"full":s=i.currentStaggerTime}var c=t.currentTimeline;s&&c.delayNextStep(s);var l=c.currentTime;re(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=n.currentTime-l+(n.startTime-i.currentTimeline.startTime)}}]),e}(),Ce={},xe=function(){function e(t,i,n,a,r,o,s,c){_classCallCheck(this,e),this._driver=t,this.element=i,this.subInstructions=n,this._enterClassName=a,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ce,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Se(this._driver,i,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"updateOptions",value:function(e,t){var i=this;if(e){var n=e,a=this.options;null!=n.duration&&(a.duration=J(n.duration)),null!=n.delay&&(a.delay=J(n.delay));var r=n.params;if(r){var o=a.params;o||(o=this.options.params={}),Object.keys(r).forEach((function(e){t&&o.hasOwnProperty(e)||(o[e]=Q(r[e],o,i.errors))}))}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var i=e.params={};Object.keys(t).forEach((function(e){i[e]=t[e]}))}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=i||this.element,r=new e(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Ce,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,i){var n={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},a=new Ie(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(a),n}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,i,n,a,r){var o=[];if(n&&o.push(this.element),e.length>0){e=(e=e.replace(_e,"."+this._enterClassName)).replace(ye,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=i);0!==i&&(s=i<0?s.slice(s.length+i,s.length):s.slice(0,i)),o.push.apply(o,_toConsumableArray(s))}return a||0!=o.length||r.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),o}},{key:"params",get:function(){return this.options.params}}]),e}(),Se=function(){function e(t,i,n,a){_classCallCheck(this,e),this._driver=t,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,i){return this.applyStylesToKeyframe(),new e(this._driver,t,i||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,i,n){var a=this;t&&(this._previousKeyframe.easing=t);var r=n&&n.params||{},o=function(e,t){var i,n={};return e.forEach((function(e){"*"===e?(i=i||Object.keys(t)).forEach((function(e){n[e]="*"})):G(e,!1,n)})),n}(e,this._globalTimelineStyles);Object.keys(o).forEach((function(e){var t=Q(o[e],r,i);a._pendingStyles[e]=t,a._localTimelineStyles.hasOwnProperty(e)||(a._backFill[e]=a._globalTimelineStyles.hasOwnProperty(e)?a._globalTimelineStyles[e]:"*"),a._updateStyle(e,t)}))}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,i=Object.keys(t);0!=i.length&&(this._pendingStyles={},i.forEach((function(i){e._currentKeyframe[i]=t[i]})),Object.keys(this._localTimelineStyles).forEach((function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])})))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach((function(t){var i=e._localTimelineStyles[t];e._pendingStyles[t]=i,e._updateStyle(t,i)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach((function(i){var n=t._styleSummary[i],a=e._styleSummary[i];(!n||a.time>n.time)&&t._updateStyle(i,a.value)}))}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration,a=[];this._keyframes.forEach((function(r,o){var s=G(r,!0);Object.keys(s).forEach((function(e){var n=s[e];"!"==n?t.add(e):"*"==n&&i.add(e)})),n||(s.offset=o/e.duration),a.push(s)}));var r=t.size?ee(t.values()):[],o=i.size?ee(i.values()):[];if(n){var s=a[0],c=U(s);s.offset=0,c.offset=1,a=[s,c]}return ve(this.element,a,r,o,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),Ie=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s){var c,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,i),(c=t.call(this,e,n,s.delay)).element=n,c.keyframes=a,c.preStyleProps=r,c.postStyleProps=o,c._stretchStartingKeyframe=l,c.timings={duration:s.duration,delay:s.delay,easing:s.easing},c}return _createClass(i,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,i=t.delay,n=t.duration,a=t.easing;if(this._stretchStartingKeyframe&&i){var r=[],o=n+i,s=i/o,c=G(e[0],!1);c.offset=0,r.push(c);var l=G(e[0],!1);l.offset=Oe(s),r.push(l);for(var u=e.length-1,d=1;d<=u;d++){var h=G(e[d],!1);h.offset=Oe((i+h.offset*n)/o),r.push(h)}n=o,i=0,a="",e=r}return ve(this.element,e,this.preStyleProps,this.postStyleProps,n,i,a,!0)}}]),i}(Se);function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=Math.pow(10,t-1);return Math.round(e*i)/i}var De=function e(){_classCallCheck(this,e)},Ee=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"normalizePropertyName",value:function(e,t){return ie(e)}},{key:"normalizeStyleValue",value:function(e,t,i,n){var a="",r=i.toString().trim();if(Ae[t]&&0!==i&&"0"!==i)if("number"==typeof i)a="px";else{var o=i.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&n.push("Please provide a CSS unit value for ".concat(e,":").concat(i))}return r+a}}]),i}(De),Ae=function(e){var t={};return e.forEach((function(e){return t[e]=!0})),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Te(e,t,i,n,a,r,o,s,c,l,u,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:a,fromState:i,fromStyles:r,toState:n,toStyles:o,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:h}}var Pe={},Re=function(){function e(t,i,n){_classCallCheck(this,e),this._triggerName=t,this.ast=i,this._stateStyles=n}return _createClass(e,[{key:"match",value:function(e,t,i,n){return function(e,t,i,n,a){return e.some((function(e){return e(t,i,n,a)}))}(this.ast.matchers,e,t,i,n)}},{key:"buildStyles",value:function(e,t,i){var n=this._stateStyles["*"],a=this._stateStyles[e],r=n?n.buildStyles(t,i):{};return a?a.buildStyles(t,i):r}},{key:"build",value:function(e,t,i,n,a,r,o,s,c,l){var u=[],d=this.ast.options&&this.ast.options.params||Pe,h=this.buildStyles(i,o&&o.params||Pe,u),p=s&&s.params||Pe,f=this.buildStyles(n,p,u),m=new Set,g=new Map,v=new Map,b="void"===n,_={params:Object.assign(Object.assign({},d),p)},y=l?[]:ke(e,t,this.ast.animation,a,r,h,f,_,c,u),k=0;if(y.forEach((function(e){k=Math.max(e.duration+e.delay,k)})),u.length)return Te(t,this._triggerName,i,n,b,h,f,[],[],g,v,k,u);y.forEach((function(e){var i=e.element,n=S(g,i,{});e.preStyleProps.forEach((function(e){return n[e]=!0}));var a=S(v,i,{});e.postStyleProps.forEach((function(e){return a[e]=!0})),i!==t&&m.add(i)}));var w=ee(m.values());return Te(t,this._triggerName,i,n,b,h,f,y,w,g,v,k)}}]),e}(),Me=function(){function e(t,i){_classCallCheck(this,e),this.styles=t,this.defaultParams=i}return _createClass(e,[{key:"buildStyles",value:function(e,t){var i={},n=U(this.defaultParams);return Object.keys(e).forEach((function(t){var i=e[t];null!=i&&(n[t]=i)})),this.styles.styles.forEach((function(e){if("string"!=typeof e){var a=e;Object.keys(a).forEach((function(e){var r=a[e];r.length>1&&(r=Q(r,n,t)),i[e]=r}))}})),i}}]),e}(),Le=function(){function e(t,i){var n=this;_classCallCheck(this,e),this.name=t,this.ast=i,this.transitionFactories=[],this.states={},i.states.forEach((function(e){n.states[e.name]=new Me(e.style,e.options&&e.options.params||{})})),je(this.states,"true","1"),je(this.states,"false","0"),i.transitions.forEach((function(e){n.transitionFactories.push(new Re(t,e,n.states))})),this.fallbackTransition=new Re(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(e,[{key:"matchTransition",value:function(e,t,i,n){return this.transitionFactories.find((function(a){return a.match(e,t,i,n)}))||null}},{key:"matchStyles",value:function(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function je(e,t,i){e.hasOwnProperty(t)?e.hasOwnProperty(i)||(e[i]=e[t]):e.hasOwnProperty(i)&&(e[t]=e[i])}var Fe=new be,Ne=function(){function e(t,i,n){_classCallCheck(this,e),this.bodyNode=t,this._driver=i,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var i=[],n=de(this._driver,t,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: ".concat(i.join("\n")));this._animations[e]=n}},{key:"_buildPlayer",value:function(e,t,i){var n=e.element,a=k(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(n,a,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var i,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=this._animations[e],s=new Map;if(o?(i=ke(this._driver,t,o,"ng-enter","ng-leave",{},{},a,Fe,r)).forEach((function(e){var t=S(s,e.element,{});e.postStyleProps.forEach((function(e){return t[e]=null}))})):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error("Unable to create the animation due to the following errors: ".concat(r.join("\n")));s.forEach((function(e,t){Object.keys(e).forEach((function(i){e[i]=n._driver.computeStyle(t,i,"*")}))}));var c=y(i.map((function(e){var t=s.get(e.element);return n._buildPlayer(e,{},t)})));return this._playersById[e]=c,c.onDestroy((function(){return n.destroy(e)})),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,i,n){var a=x(t,"","","");return w(this._getPlayer(e),i,a,n),function(){}}},{key:"command",value:function(e,t,i,n){if("register"!=i)if("create"!=i){var a=this._getPlayer(e);switch(i){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,n[0]||{});else this.register(e,n[0])}}]),e}(),ze=[],Be={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Je={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ve=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=i;var n,a=t&&t.hasOwnProperty("value");if(this.value=null!=(n=a?t.value:t)?n:null,a){var r=U(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var i=this.options.params;Object.keys(t).forEach((function(e){null==i[e]&&(i[e]=t[e])}))}}},{key:"params",get:function(){return this.options.params}}]),e}(),He=new Ve("void"),Ue=function(){function e(t,i,n){_classCallCheck(this,e),this.id=t,this.hostElement=i,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ye(i,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,i,n){var a,r=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(i,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==i||0==i.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(a=i)&&"done"!=a)throw new Error('The provided animation trigger event "'.concat(i,'" for the animation trigger "').concat(t,'" is not supported!'));var o=S(this._elementListeners,e,[]),s={name:t,phase:i,callback:n};o.push(s);var c=S(this._engine.statesByElement,e,{});return c.hasOwnProperty(t)||(Ye(e,"ng-trigger"),Ye(e,"ng-trigger-"+t),c[t]=He),function(){r._engine.afterFlush((function(){var e=o.indexOf(s);e>=0&&o.splice(e,1),r._triggers[t]||delete c[t]}))}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,i){var n=this,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=this._getTrigger(t),o=new We(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Ye(e,"ng-trigger"),Ye(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var c=s[t],l=new Ve(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s[t]=l,c||(c=He),"void"===l.value||c.value!==l.value){var u=S(this._engine.playersByElement,e,[]);u.forEach((function(e){e.namespaceId==n.id&&e.triggerName==t&&e.queued&&e.destroy()}));var d=r.matchTransition(c.value,l.value,e,l.params),h=!1;if(!d){if(!a)return;d=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:c,toState:l,player:o,isFallbackTransition:h}),h||(Ye(e,"ng-animate-queued"),o.onStart((function(){Ze(e,"ng-animate-queued")}))),o.onDone((function(){var t=n.players.indexOf(o);t>=0&&n.players.splice(t,1);var i=n._engine.playersByElement.get(e);if(i){var a=i.indexOf(o);a>=0&&i.splice(a,1)}})),this.players.push(o),u.push(o),o}if(!function(e,t){var i=Object.keys(e),n=Object.keys(t);if(i.length!=n.length)return!1;for(var a=0;a=0){for(var n=!1,a=i;a>=0;a--)if(this.driver.containsElement(this._namespaceList[a].hostElement,t)){this._namespaceList.splice(a+1,0,e),n=!0;break}n||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}},{key:"registerTrigger",value:function(e,t,i){var n=this._namespaceLookup[e];n&&n.register(t,i)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var i=this;if(e){var n=this._fetchNamespace(e);this.afterFlush((function(){i.namespacesByHostElement.delete(n.hostElement),delete i._namespaceLookup[e];var t=i._namespaceList.indexOf(n);t>=0&&i._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((function(){return n.destroy(t)}))}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,i=this.statesByElement.get(e);if(i)for(var n=Object.keys(i),a=0;a=0&&this.collectedLeaveElements.splice(r,1)}if(e){var o=this._fetchNamespace(e);o&&o.insertNode(t,i)}n&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ye(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ze(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,i,n){if(qe(t)){var a=e?this._fetchNamespace(e):null;if(a?a.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n),i){var r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n)}}else this._onRemovalComplete(t,n)}},{key:"markElementAsRemoved",value:function(e,t,i,n){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,i,n,a){return qe(t)?this._fetchNamespace(e).listen(t,i,n,a):function(){}}},{key:"_buildInstruction",value:function(e,t,i,n,a){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,n,e.fromState.options,e.toState.options,t,a)}},{key:"destroyInnerAnimations",value:function(e){var t=this,i=this.driver.query(e,".ng-trigger",!0);i.forEach((function(e){return t.destroyActiveAnimationsForElement(e)})),0!=this.playersByQueriedElement.size&&(i=this.driver.query(e,".ng-animating",!0)).forEach((function(e){return t.finishActiveQueriedAnimationOnElement(e)}))}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach((function(e){e.queued?e.markedForDestroy=!0:e.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach((function(e){return e.finish()}))}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise((function(t){if(e.players.length)return y(e.players).onDone((function(){return t()}));t()}))}},{key:"processLeaveNode",value:function(e){var t=this,i=e.__ng_removed;if(i&&i.setForRemoval){if(e.__ng_removed=Be,i.namespaceId){this.destroyInnerAnimations(e);var n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((function(e){t.markElementAsDisabled(e,!1)}))}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,i){return e._balanceNamespaceList(t,i)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var n=0;n=0;D--)this._namespaceList[D].drainQueuedTransitions(t).forEach((function(e){var t=e.player,r=e.element;if(I.push(t),i.collectedEnterElements.length){var u=r.__ng_removed;if(u&&u.setForMove)return void t.destroy()}var h=!d||!i.driver.containsElement(d,r),p=C.get(r),m=f.get(r),g=i._buildInstruction(e,n,m,p,h);if(!g.errors||!g.errors.length)return h||e.isFallbackTransition?(t.onStart((function(){return K(r,g.fromStyles)})),t.onDestroy((function(){return $(r,g.toStyles)})),void a.push(t)):(g.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),n.append(r,g.timelines),o.push({instruction:g,player:t,element:r}),g.queriedElements.forEach((function(e){return S(s,e,[]).push(t)})),g.preStyleProps.forEach((function(e,t){var i=Object.keys(e);if(i.length){var n=c.get(t);n||c.set(t,n=new Set),i.forEach((function(e){return n.add(e)}))}})),void g.postStyleProps.forEach((function(e,t){var i=Object.keys(e),n=l.get(t);n||l.set(t,n=new Set),i.forEach((function(e){return n.add(e)}))})));O.push(g)}));if(O.length){var E=[];O.forEach((function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach((function(e){return E.push("- ".concat(e,"\n"))}))})),I.forEach((function(e){return e.destroy()})),this.reportError(E)}var A=new Map,T=new Map;o.forEach((function(e){var t=e.element;n.has(t)&&(T.set(t,t),i._beforeAnimationBuild(e.player.namespaceId,e.instruction,A))})),a.forEach((function(e){var t=e.element;i._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){S(A,t,[]).push(e),e.destroy()}))}));var P=g.filter((function(e){return et(e,c,l)})),R=new Map;Ke(R,this.driver,b,l,"*").forEach((function(e){et(e,c,l)&&P.push(e)}));var M=new Map;p.forEach((function(e,t){Ke(M,i.driver,new Set(e),c,"!")})),P.forEach((function(e){var t=R.get(e),i=M.get(e);R.set(e,Object.assign(Object.assign({},t),i))}));var L=[],j=[],F={};o.forEach((function(e){var t=e.element,o=e.player,s=e.instruction;if(n.has(t)){if(u.has(t))return o.onDestroy((function(){return $(t,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void a.push(o);var c=F;if(T.size>1){for(var l=t,d=[];l=l.parentNode;){var h=T.get(l);if(h){c=h;break}d.push(l)}d.forEach((function(e){return T.set(e,c)}))}var p=i._buildAnimation(o.namespaceId,s,A,r,M,R);if(o.setRealPlayer(p),c===F)L.push(o);else{var f=i.playersByElement.get(c);f&&f.length&&(o.parentPlayer=y(f)),a.push(o)}}else K(t,s.fromStyles),o.onDestroy((function(){return $(t,s.toStyles)})),j.push(o),u.has(t)&&a.push(o)})),j.forEach((function(e){var t=r.get(e.element);if(t&&t.length){var i=y(t);e.setRealPlayer(i)}})),a.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var N=0;N0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new v(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach((function(t){t.players.forEach((function(t){t.queued&&e.push(t)}))})),e}}]),e}(),We=function(){function e(t,i,n){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=i,this.element=n,this._player=new v,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((function(i){t._queuedCallbacks[i].forEach((function(t){return w(e,i,void 0,t)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,i=this._player;i.triggerCallback&&e.onStart((function(){return i.triggerCallback("start")})),e.onDone((function(){return t.finish()})),e.onDestroy((function(){return t.destroy()}))}},{key:"_queueEvent",value:function(e,t){S(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function qe(e){return e&&1===e.nodeType}function $e(e,t){var i=e.style.display;return e.style.display=null!=t?t:"none",i}function Ke(e,t,i,n,a){var r=[];i.forEach((function(e){return r.push($e(e))}));var o=[];n.forEach((function(i,n){var r={};i.forEach((function(e){var i=r[e]=t.computeStyle(n,e,a);i&&0!=i.length||(n.__ng_removed=Je,o.push(n))})),e.set(n,r)}));var s=0;return i.forEach((function(e){return $e(e,r[s++])})),o}function Xe(e,t){var i=new Map;if(e.forEach((function(e){return i.set(e,[])})),0==t.length)return i;var n=new Set(t),a=new Map;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var r=a.get(t);if(r)return r;var o=t.parentNode;return r=i.has(o)?o:n.has(o)?1:e(o),a.set(t,r),r}(e);1!==t&&i.get(t).push(e)})),i}function Ye(e,t){if(e.classList)e.classList.add(t);else{var i=e.$$classes;i||(i=e.$$classes={}),i[t]=!0}}function Ze(e,t){if(e.classList)e.classList.remove(t);else{var i=e.$$classes;i&&delete i[t]}}function Qe(e,t,i){y(i).onDone((function(){return e.processLeaveNode(t)}))}function et(e,t,i){var n=i.get(e);if(!n)return!1;var a=t.get(e);return a?n.forEach((function(e){return a.add(e)})):t.set(e,n),i.delete(e),!0}var tt=function(){function e(t,i,n){var a=this;_classCallCheck(this,e),this.bodyNode=t,this._driver=i,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Ge(t,i,n),this._timelineEngine=new Ne(t,i,n),this._transitionEngine.onRemovalComplete=function(e,t){return a.onRemovalComplete(e,t)}}return _createClass(e,[{key:"registerTrigger",value:function(e,t,i,n,a){var r=e+"-"+n,o=this._triggerCache[r];if(!o){var s=[],c=de(this._driver,a,s);if(s.length)throw new Error('The animation trigger "'.concat(n,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));o=function(e,t){return new Le(e,t)}(n,c),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(t,n,o)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,i,n){this._transitionEngine.insertNode(e,t,i,n)}},{key:"onRemove",value:function(e,t,i,n){this._transitionEngine.removeNode(e,t,n||!1,i)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,i,n){if("@"==i.charAt(0)){var a=_slicedToArray(I(i),2),r=a[0],o=a[1];this._timelineEngine.command(r,t,o,n)}else this._transitionEngine.trigger(e,t,i,n)}},{key:"listen",value:function(e,t,i,n,a){if("@"==i.charAt(0)){var r=_slicedToArray(I(i),2),o=r[0],s=r[1];return this._timelineEngine.listen(o,t,s,a)}return this._transitionEngine.listen(e,t,i,n,a)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function it(e,t){var i=null,n=null;return Array.isArray(t)&&t.length?(i=at(t[0]),t.length>1&&(n=at(t[t.length-1]))):t&&(i=at(t)),i||n?new nt(e,i,n):null}var nt=function(){var e=function(){function e(t,i,n){_classCallCheck(this,e),this._element=t,this._startStyles=i,this._endStyles=n,this._state=0;var a=e.initialStylesByElement.get(t);a||e.initialStylesByElement.set(t,a={}),this._initialStyles=a}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&$(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&($(this._element,this._initialStyles),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(K(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(K(this._element,this._endStyles),this._endStyles=null),$(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function at(e){for(var t=null,i=Object.keys(e),n=0;n=this._delay&&i>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ut(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,i,n;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,i=ht(e,"").split(","),(n=lt(i,t))>=0&&(i.splice(n,1),dt(e,"",i.join(","))))}}]),e}();function st(e,t,i){dt(e,"PlayState",i,ct(e,t))}function ct(e,t){var i=ht(e,"");return i.indexOf(",")>0?lt(i.split(","),t):lt([i],t)}function lt(e,t){for(var i=0;i=0)return i;return-1}function ut(e,t,i){i?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function dt(e,t,i,n){var a="animation"+t;if(null!=n){var r=e.style[a];if(r.length){var o=r.split(",");o[n]=i,i=o.join(",")}}e.style[a]=i}function ht(e,t){return e.style["animation"+t]}var pt=function(){function e(t,i,n,a,r,o,s,c){_classCallCheck(this,e),this.element=t,this.keyframes=i,this.animationName=n,this._duration=a,this._delay=r,this._finalStyles=s,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=a+r,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new ot(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return e.finish()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var i=this._state>=3;Object.keys(this._finalStyles).forEach((function(n){"offset"!=n&&(t[n]=i?e._finalStyles[n]:oe(e.element,n))}))}this.currentSnapshot=t}}]),e}(),ft=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this)).element=e,a._startingStyles={},a.__initialized=!1,a._styles=F(n),a}return _createClass(i,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),_get(_getPrototypeOf(i.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),_get(_getPrototypeOf(i.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var i=e._startingStyles[t];i?e.element.style.setProperty(t,i):e.element.style.removeProperty(t)})),this._startingStyles=null,_get(_getPrototypeOf(i.prototype),"destroy",this).call(this))}}]),i}(v),mt=function(){function e(){_classCallCheck(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return R(e)}},{key:"matchesElement",value:function(e,t){return M(e,t)}},{key:"containsElement",value:function(e,t){return L(e,t)}},{key:"query",value:function(e,t,i){return j(e,t,i)}},{key:"computeStyle",value:function(e,t,i){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,i){i=i.map((function(e){return F(e)}));var n="@keyframes ".concat(t," {\n"),a="";i.forEach((function(e){a=" ";var t=parseFloat(e.offset);n+="".concat(a).concat(100*t,"% {\n"),a+=" ",Object.keys(e).forEach((function(t){var i=e[t];switch(t){case"offset":return;case"easing":return void(i&&(n+="".concat(a,"animation-timing-function: ").concat(i,";\n")));default:return void(n+="".concat(a).concat(t,": ").concat(i,";\n"))}})),n+="".concat(a,"}\n")})),n+="}\n";var r=document.createElement("style");return r.innerHTML=n,r}},{key:"animate",value:function(e,t,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;o&&this._notifyFaultyScrubber();var s=r.filter((function(e){return e instanceof pt})),c={};ne(i,n)&&s.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return c[e]=t[e]}))}));var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach((function(e){Object.keys(e).forEach((function(i){"offset"!=i&&"easing"!=i&&(t[i]=e[i])}))})),t}(t=ae(e,t,c));if(0==i)return new ft(e,l);var u="gen_css_kf_".concat(this._count++),d=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(d);var h=it(e,t),p=new pt(e,t,u,i,n,a,l,h);return p.onDestroy((function(){var e;(e=d).parentNode.removeChild(e)})),p}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}(),gt=function(){function e(t,i,n,a){_classCallCheck(this,e),this.element=t,this.keyframes=i,this.options=n,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return e._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,i){return e.animate(t,i)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(i){"offset"!=i&&(t[i]=e._finished?e._finalKeyframe[i]:oe(e.element,i))})),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),vt=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(bt().toString()),this._cssKeyframesDriver=new mt}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return R(e)}},{key:"matchesElement",value:function(e,t){return M(e,t)}},{key:"containsElement",value:function(e,t){return L(e,t)}},{key:"query",value:function(e,t,i){return j(e,t,i)}},{key:"computeStyle",value:function(e,t,i){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,i,n,a,r);var s={duration:i,delay:n,fill:0==n?"both":"forwards"};a&&(s.easing=a);var c={},l=r.filter((function(e){return e instanceof gt}));ne(i,n)&&l.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return c[e]=t[e]}))}));var u=it(e,t=ae(e,t=t.map((function(e){return G(e,!1)})),c));return new gt(e,t,s,u)}}]),e}();function bt(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var _t,yt=i("ofXK"),kt=((_t=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var r;return _classCallCheck(this,i),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:a.db.None,styles:[],data:{animation:[]}}),r}return _createClass(i,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var i=Array.isArray(e)?l(e):e;return xt(this._renderer,null,t,"register",[i]),new wt(t,this._renderer)}}]),i}(r)).\u0275fac=function(e){return new(e||_t)(a.Sc(a.Q),a.Sc(yt.e))},_t.\u0275prov=a.zc({token:_t,factory:_t.\u0275fac}),_t),wt=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this))._id=e,a._renderer=n,a}return _createClass(i,[{key:"create",value:function(e,t){return new Ct(this._id,e,t||{},this._renderer)}}]),i}(function(){return function e(){_classCallCheck(this,e)}}()),Ct=function(){function e(t,i,n,a){_classCallCheck(this,e),this.id=t,this.element=i,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n=0&&e1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),i)}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var i=!1,n=void 0;try{this.work(e)}catch(a){i=!0,n=!!a&&a||new Error(a)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,i=t.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),i}(function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){return _classCallCheck(this,i),t.call(this)}return _createClass(i,[{key:"schedule",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),i}(jt.a)),Kt=function(){var e=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=i}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(i,t)}}]),e}();return e.now=function(){return Date.now()},e}(),Xt=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Kt.now;return _classCallCheck(this,i),(n=t.call(this,e,(function(){return i.delegate&&i.delegate!==_assertThisInitialized(n)?i.delegate.now():a()}))).actions=[],n.active=!1,n.scheduled=void 0,n}return _createClass(i,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return i.delegate&&i.delegate!==this?i.delegate.schedule(e,t,n):_get(_getPrototypeOf(i.prototype),"schedule",this).call(this,e,t,n)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}}]),i}(Kt),Yt=new Xt($t);function Zt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt;return function(i){return i.lift(new Qt(e,t))}}var Qt=function(){function e(t,i){_classCallCheck(this,e),this.dueTime=t,this.scheduler=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new ei(e,this.dueTime,this.scheduler))}}]),e}(),ei=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e)).dueTime=n,r.scheduler=a,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return _createClass(i,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ti,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),i}(Vt.a);function ti(e){e.debouncedNext()}function ii(e,t){return function(i){return i.lift(new ni(e,t))}}var ni=function(){function e(t,i){_classCallCheck(this,e),this.predicate=t,this.thisArg=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new ai(e,this.predicate,this.thisArg))}}]),e}(),ai=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e)).predicate=n,r.thisArg=a,r.count=0,r}return _createClass(i,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}]),i}(Vt.a),ri=i("lJxs"),oi=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),si=i("HDdC"),ci=new si.a((function(e){return e.complete()}));function li(e){return e?function(e){return new si.a((function(t){return e.schedule((function(){return t.complete()}))}))}(e):ci}function ui(e){return function(t){return 0===e?li():t.lift(new hi(e))}}var di,hi=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new oi}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new pi(e,this.total))}}]),e}(),pi=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).total=n,a.count=0,a}return _createClass(i,[{key:"_next",value:function(e){var t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}]),i}(Vt.a);function fi(e){return null!=e&&"false"!=="".concat(e)}function mi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return gi(e)?Number(e):t}function gi(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function vi(e){return Array.isArray(e)?e:[e]}function bi(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function _i(e){return e instanceof a.r?e.nativeElement:e}try{di="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(fB){di=!1}var yi,ki,wi,Ci,xi,Si,Ii=((wi=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?Object(yt.I)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!di)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}).\u0275fac=function(e){return new(e||wi)(a.Sc(a.M,8))},wi.\u0275prov=Object(a.zc)({factory:function(){return new wi(Object(a.Sc)(a.M,8))},token:wi,providedIn:"root"}),wi),Oi=((ki=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ki}),ki.\u0275inj=a.Ac({factory:function(e){return new(e||ki)}}),ki),Di=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ei(){if(yi)return yi;if("object"!=typeof document||!document)return yi=new Set(Di);var e=document.createElement("input");return yi=new Set(Di.filter((function(t){return e.setAttribute("type",t),e.type===t})))}function Ai(e){return function(){if(null==Ci&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Ci=!0}}))}finally{Ci=Ci||!1}return Ci}()?e:!!e.capture}function Ti(){if("object"!=typeof document||!document)return 0;if(null==xi){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.height="1px",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",e.appendChild(i),document.body.appendChild(e),xi=0,0===e.scrollLeft&&(e.scrollLeft=1,xi=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return xi}function Pi(e){if(function(){if(null==Si){var e="undefined"!=typeof document?document.head:null;Si=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Si}()){var t=e.getRootNode?e.getRootNode():null;if(t instanceof ShadowRoot)return t}return null}var Ri,Mi,Li,ji,Fi=((ji=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||ji)},ji.\u0275prov=Object(a.zc)({factory:function(){return new ji},token:ji,providedIn:"root"}),ji),Ni=((Li=function(){function e(t){_classCallCheck(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach((function(t,i){return e._cleanupObserver(i)}))}},{key:"observe",value:function(e){var t=this,i=_i(e);return new si.a((function(e){var n=t._observeElement(i).subscribe(e);return function(){n.unsubscribe(),t._unobserveElement(i)}}))}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new Lt.a,i=this._mutationObserverFactory.create((function(e){return t.next(e)}));i&&i.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:i,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),i=t.observer,n=t.stream;i&&i.disconnect(),n.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||Li)(a.Sc(Fi))},Li.\u0275prov=Object(a.zc)({factory:function(){return new Li(Object(a.Sc)(Fi))},token:Li,providedIn:"root"}),Li),zi=((Mi=function(){function e(t,i,n){_classCallCheck(this,e),this._contentObserver=t,this._elementRef=i,this._ngZone=n,this.event=new a.u,this._disabled=!1,this._currentSubscription=null}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){e._currentSubscription=(e.debounce?t.pipe(Zt(e.debounce)):t).subscribe(e.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=mi(e),this._subscribe()}}]),e}()).\u0275fac=function(e){return new(e||Mi)(a.Dc(Ni),a.Dc(a.r),a.Dc(a.I))},Mi.\u0275dir=a.yc({type:Mi,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),Mi),Bi=((Ri=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Ri}),Ri.\u0275inj=a.Ac({factory:function(e){return new(e||Ri)},providers:[Fi]}),Ri);function Ji(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Vi,Hi,Ui=0,Gi=new Map,Wi=null,qi=((Vi=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),Gi.set(t,{messageElement:t,referenceCount:0})):Gi.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))}},{key:"removeDescription",value:function(e,t){if(this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var i=Gi.get(t);i&&0===i.referenceCount&&this._deleteMessageElement(t)}Wi&&0===Wi.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t-1&&t!==i._activeItemIndex&&(i._activeItemIndex=t)}}))}return _createClass(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;if(this._items.length&&this._items.some((function(e){return"function"!=typeof e.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Gt((function(t){return e._pressedLetters.push(t)})),Zt(t),ii((function(){return e._pressedLetters.length>0})),Object(ri.a)((function(){return e._pressedLetters.join("")}))).subscribe((function(t){for(var i=e._getItemsArray(),n=1;n-1}));switch(i){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((n||Jt(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(i>=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],e.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),n=t[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),i=1;i<=t.length;i++){var n=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[n]))return void this.setActiveItem(n)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof a.O?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),e}(),Ki=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(i.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),i}($i),Xi=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments))._origin="program",e}return _createClass(i,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){_get(_getPrototypeOf(i.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),i}($i),Yi=((Hi=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,i=function(e){try{return e.frameElement}catch(fB){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(i){var n=i&&i.nodeName.toLowerCase();if(-1===Qi(i))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===n)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(i))return!1}var a=e.nodeName.toLowerCase(),r=Qi(e);if(e.hasAttribute("contenteditable"))return-1!==r;if("iframe"===a)return!1;if("audio"===a){if(!e.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===a){if(!e.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==a||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),i="input"===t&&e.type;return"text"===i||"password"===i||"select"===t||"textarea"===t}(e))&&e.tabIndex>=0}},{key:"isFocusable",value:function(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Zi(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)}}]),e}()).\u0275fac=function(e){return new(e||Hi)(a.Sc(Ii))},Hi.\u0275prov=Object(a.zc)({factory:function(){return new Hi(Object(a.Sc)(Ii))},token:Hi,providedIn:"root"}),Hi);function Zi(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Qi(e){if(!Zi(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var en,tn=function(){function e(t,i,n,a){var r=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=i,this._ngZone=n,this._document=a,this._hasAttached=!1,this.startAnchorListener=function(){return r.focusLastTabbableElement()},this.endAnchorListener=function(){return r.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return _createClass(e,[{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], ")+"[cdkFocusRegion".concat(e,"], ")+"[cdk-focus-".concat(e,"]")),i=0;i=0;i--){var n=t[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[i]):null;if(n)return n}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(ui(1)).subscribe(e)}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}}]),e}(),nn=((en=function(){function e(t,i,n){_classCallCheck(this,e),this._checker=t,this._ngZone=i,this._document=n}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new tn(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||en)(a.Sc(Yi),a.Sc(a.I),a.Sc(yt.e))},en.\u0275prov=Object(a.zc)({factory:function(){return new en(Object(a.Sc)(Yi),Object(a.Sc)(a.I),Object(a.Sc)(yt.e))},token:en,providedIn:"root"}),en);"undefined"!=typeof Element&∈var an,rn,on,sn=new a.x("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),cn=new a.x("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),ln=((an=function(){function e(t,i,n,a){_classCallCheck(this,e),this._ngZone=i,this._defaultOptions=a,this._document=n,this._liveElement=t||this._createLiveElement()}return _createClass(e,[{key:"announce",value:function(e){for(var t,i,n,a=this,r=this._defaultOptions,o=arguments.length,s=new Array(o>1?o-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Bt(null);var n=_i(e);if(this._elementInfo.has(n)){var a=this._elementInfo.get(n);return a.checkChildren=i,a.subject.asObservable()}var r={unlisten:function(){},checkChildren:i,subject:new Lt.a};this._elementInfo.set(n,r),this._incrementMonitoredElementCount();var o=function(e){return t._onFocus(e,n)},s=function(e){return t._onBlur(e,n)};return this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",o,!0),n.addEventListener("blur",s,!0)})),r.unlisten=function(){n.removeEventListener("focus",o,!0),n.removeEventListener("blur",s,!0)},r.subject.asObservable()}},{key:"stopMonitoring",value:function(e){var t=_i(e),i=this._elementInfo.get(t);i&&(i.unlisten(),i.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())}},{key:"focusVia",value:function(e,t,i){var n=_i(e);this._setOriginForCurrentEventQueue(t),"function"==typeof n.focus&&n.focus(i)}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach((function(t,i){return e.stopMonitoring(i)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,i){i?e.classList.add(t):e.classList.remove(t)}},{key:"_setClasses",value:function(e,t){this._elementInfo.get(e)&&(this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t))}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular((function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout((function(){return t._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(e){var t=e.target;return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var i=this._elementInfo.get(t);if(i&&(i.checkChildren||t===e.target)){var n=this._origin;n||(n=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"),this._setClasses(t,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}}},{key:"_onBlur",value:function(e,t){var i=this._elementInfo.get(t);!i||i.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(i.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run((function(){return e.next(t)}))}},{key:"_incrementMonitoredElementCount",value:function(){var e=this;1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular((function(){var t=e._getDocument(),i=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,dn),t.addEventListener("mousedown",e._documentMousedownListener,dn),t.addEventListener("touchstart",e._documentTouchstartListener,dn),i.addEventListener("focus",e._windowFocusListener)}))}},{key:"_decrementMonitoredElementCount",value:function(){if(!--this._monitoredElementCount){var e=this._getDocument(),t=this._getWindow();e.removeEventListener("keydown",this._documentKeydownListener,dn),e.removeEventListener("mousedown",this._documentMousedownListener,dn),e.removeEventListener("touchstart",this._documentTouchstartListener,dn),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),e}()).\u0275fac=function(e){return new(e||on)(a.Sc(a.I),a.Sc(Ii),a.Sc(yt.e,8),a.Sc(un,8))},on.\u0275prov=Object(a.zc)({factory:function(){return new on(Object(a.Sc)(a.I),Object(a.Sc)(Ii),Object(a.Sc)(yt.e,8),Object(a.Sc)(un,8))},token:on,providedIn:"root"}),on),pn=((rn=function(){function e(t,i){var n=this;_classCallCheck(this,e),this._elementRef=t,this._focusMonitor=i,this.cdkFocusChange=new a.u,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(e){return n.cdkFocusChange.emit(e)}))}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||rn)(a.Dc(a.r),a.Dc(hn))},rn.\u0275dir=a.yc({type:rn,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),rn);function fn(e){return 0===e.buttons}var mn,gn,vn,bn,_n,yn=((gn=function(){function e(t,i){_classCallCheck(this,e),this._platform=t,this._document=i}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=(this._document.defaultView.getComputedStyle(e).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),t){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||gn)(a.Sc(Ii),a.Sc(yt.e))},gn.\u0275prov=Object(a.zc)({factory:function(){return new gn(Object(a.Sc)(Ii),Object(a.Sc)(yt.e))},token:gn,providedIn:"root"}),gn),kn=((mn=function e(t){_classCallCheck(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275mod=a.Bc({type:mn}),mn.\u0275inj=a.Ac({factory:function(e){return new(e||mn)(a.Sc(yn))},imports:[[Oi,Bi]]}),mn),wn=new a.x("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(a.ib)(yt.e)}}),Cn=((_n=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new a.u,t){var i=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||i;this.value="ltr"===n||"rtl"===n?n:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||_n)(a.Sc(wn,8))},_n.\u0275prov=Object(a.zc)({factory:function(){return new _n(Object(a.Sc)(wn,8))},token:_n,providedIn:"root"}),_n),xn=((bn=function(){function e(){_classCallCheck(this,e),this._dir="ltr",this._isInitialized=!1,this.change=new a.u}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}},{key:"dir",get:function(){return this._dir},set:function(e){var t=this._dir,i=e?e.toLowerCase():e;this._rawDir=e,this._dir="ltr"===i||"rtl"===i?i:"ltr",t!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}}]),e}()).\u0275fac=function(e){return new(e||bn)},bn.\u0275dir=a.yc({type:bn,selectors:[["","dir",""]],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("dir",t._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[a.oc([{provide:Cn,useExisting:bn}])]}),bn),Sn=((vn=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:vn}),vn.\u0275inj=a.Ac({factory:function(e){return new(e||vn)}}),vn),In=new a.ab("9.2.0"),On=i("bHdf");function Dn(){return Object(On.a)(1)}function En(){return Dn()(Bt.apply(void 0,arguments))}function An(){for(var e=arguments.length,t=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return function(e){_inherits(n,e);var i=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var a=arguments.length,r=new Array(a),o=0;o0?i:e}},{key:"localeChanges",get:function(){return this._localeChanges}}]),e}(),Xn=new a.x("mat-date-formats");try{qn="undefined"!=typeof Intl}catch(fB){qn=!1}var Yn={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Zn=ta(31,(function(e){return String(e+1)})),Qn={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ea=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ta(e,t){for(var i=Array(e),n=0;n11)throw Error('Invalid month index "'.concat(t,'". Month index has to be between 0 and 11.'));if(i<1)throw Error('Invalid date "'.concat(i,'". Date has to be greater than 0.'));var n=this._createDateWithOverflow(e,t,i);if(n.getMonth()!=t)throw Error('Invalid date "'.concat(i,'" for month with index "').concat(t,'".'));return n}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}},{key:"format",value:function(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(qn){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var i=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(i,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var i=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(i)!=((this.getMonth(e)+t)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(ea.test(e)){var t=new Date(e);if(this.isValid(t))return t}}return _get(_getPrototypeOf(i.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,i){var n=new Date(e,t,i);return e>=0&&e<100&&n.setFullYear(this.getYear(n)-1900),n}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.format(i)}}]),i}(Kn)).\u0275fac=function(e){return new(e||na)(a.Sc($n,8),a.Sc(Ii))},na.\u0275prov=a.zc({token:na,factory:na.\u0275fac}),na),ca=((ia=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ia}),ia.\u0275inj=a.Ac({factory:function(e){return new(e||ia)},providers:[{provide:Kn,useClass:sa}],imports:[[Oi]]}),ia),la={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},ua=((oa=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:oa}),oa.\u0275inj=a.Ac({factory:function(e){return new(e||oa)},providers:[{provide:Xn,useValue:la}],imports:[[ca]]}),oa),da=((ra=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}()).\u0275fac=function(e){return new(e||ra)},ra.\u0275prov=Object(a.zc)({factory:function(){return new ra},token:ra,providedIn:"root"}),ra),ha=((aa=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||aa)},aa.\u0275dir=a.yc({type:aa,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),aa);function pa(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe(An(e)).subscribe((function(e){var n=e.length;fa(t,"".concat(i,"-2-line"),!1),fa(t,"".concat(i,"-3-line"),!1),fa(t,"".concat(i,"-multi-line"),!1),2===n||3===n?fa(t,"".concat(i,"-").concat(n,"-line"),!0):n>3&&fa(t,"".concat(i,"-multi-line"),!0)}))}function fa(e,t,i){var n=e.nativeElement.classList;i?n.add(t):n.remove(t)}var ma,ga,va,ba,_a,ya,ka,wa=((ma=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ma}),ma.\u0275inj=a.Ac({factory:function(e){return new(e||ma)},imports:[[Bn],Bn]}),ma),Ca=function(){function e(t,i,n){_classCallCheck(this,e),this._renderer=t,this.element=i,this.config=n,this.state=3}return _createClass(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),xa={enterDuration:450,exitDuration:400},Sa=Ai({passive:!0}),Ia=function(){function e(t,i,n,a){var r=this;_classCallCheck(this,e),this._target=t,this._ngZone=i,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=function(e){var t=fn(e),i=r._lastTouchStartEvent&&Date.now()2&&void 0!==arguments[2]?arguments[2]:{},a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},xa),n.animation);n.centered&&(e=a.left+a.width/2,t=a.top+a.height/2);var o=n.radius||function(e,t,i){var n=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),a=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));return Math.sqrt(n*n+a*a)}(e,t,a),s=e-a.left,c=t-a.top,l=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left="".concat(s-o,"px"),u.style.top="".concat(c-o,"px"),u.style.height="".concat(2*o,"px"),u.style.width="".concat(2*o,"px"),null!=n.color&&(u.style.backgroundColor=n.color),u.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";var d=new Ca(this,u,n);return d.state=0,this._activeRipples.add(d),n.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone((function(){var e=d===i._mostRecentTransientRipple;d.state=1,n.persistent||e&&i._isPointerDown||d.fadeOut()}),l),d}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var i=e.element,n=Object.assign(Object.assign({},xa),e.config.animation);i.style.transitionDuration="".concat(n.exitDuration,"ms"),i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone((function(){e.state=3,i.parentNode.removeChild(i)}),n.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(e){return e.fadeOut()}))}},{key:"setupTriggerEvents",value:function(e){var t=this,i=_i(e);i&&i!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular((function(){t._triggerEvents.forEach((function(e,t){i.addEventListener(t,e,Sa)}))})),this._triggerElement=i)}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(e,t)}))}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&this._triggerEvents.forEach((function(t,i){e._triggerElement.removeEventListener(i,t,Sa)}))}}]),e}(),Oa=new a.x("mat-ripple-global-options"),Da=((_a=function(){function e(t,i,n,a,r){_classCallCheck(this,e),this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new Ia(this,i,t,n),"NoopAnimations"===r&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}return _createClass(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),e}()).\u0275fac=function(e){return new(e||_a)(a.Dc(a.r),a.Dc(a.I),a.Dc(Ii),a.Dc(Oa,8),a.Dc(Pt,8))},_a.\u0275dir=a.yc({type:_a,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),_a),Ea=((ba=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ba}),ba.\u0275inj=a.Ac({factory:function(e){return new(e||ba)},imports:[[Bn,Oi],Bn]}),ba),Aa=((va=function e(t){_classCallCheck(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||va)(a.Dc(Pt,8))},va.\u0275cmp=a.xc({type:va,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&a.tc("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),va),Ta=((ga=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ga}),ga.\u0275inj=a.Ac({factory:function(e){return new(e||ga)}}),ga),Pa=Jn((function e(){_classCallCheck(this,e)})),Ra=0,Ma=((ya=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments))._labelId="mat-optgroup-label-".concat(Ra++),e}return i}(Pa)).\u0275fac=function(e){return La(e||ya)},ya.\u0275cmp=a.xc({type:ya,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(e,t){2&e&&(a.qc("aria-disabled",t.disabled.toString())("aria-labelledby",t._labelId),a.tc("mat-optgroup-disabled",t.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[a.mc],ngContentSelectors:Pn,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(e,t){1&e&&(a.fd(Tn),a.Jc(0,"label",0),a.Bd(1),a.ed(2),a.Ic(),a.ed(3,1)),2&e&&(a.gd("id",t._labelId),a.pc(1),a.Dd("",t.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),ya),La=a.Lc(Ma),ja=0,Fa=function e(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,e),this.source=t,this.isUserInput=i},Na=new a.x("MAT_OPTION_PARENT_COMPONENT"),za=((ka=function(){function e(t,i,n,r){_classCallCheck(this,e),this._element=t,this._changeDetectorRef=i,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(ja++),this.onSelectionChange=new a.u,this._stateChanges=new Lt.a}return _createClass(e,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var i=this._getHostElement();"function"==typeof i.focus&&i.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||Jt(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Fa(this,e))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=fi(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),e}()).\u0275fac=function(e){return new(e||ka)(a.Dc(a.r),a.Dc(a.j),a.Dc(Na,8),a.Dc(Ma,8))},ka.\u0275cmp=a.xc({type:ka,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t._selectViaInteraction()}))("keydown",(function(e){return t._handleKeydown(e)})),2&e&&(a.Mc("id",t.id),a.qc("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),a.tc("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Ln,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(e,t){1&e&&(a.fd(),a.zd(0,Rn,1,2,"mat-pseudo-checkbox",0),a.Jc(1,"span",1),a.ed(2),a.Ic(),a.Ec(3,"div",2)),2&e&&(a.gd("ngIf",t.multiple),a.pc(3),a.gd("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[yt.t,Da,Aa],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),ka);function Ba(e,t,i){if(i.length){for(var n=t.toArray(),a=i.toArray(),r=0,o=0;oi+n?Math.max(0,a-n+t):i}var Va,Ha,Ua,Ga,Wa=((Va=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Va}),Va.\u0275inj=a.Ac({factory:function(e){return new(e||Va)},imports:[[Ea,yt.c,Ta]]}),Va),qa=new a.x("mat-label-global-options"),$a=["mat-button",""],Ka=["*"],Xa=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Ya=Vn(Jn(Hn((function e(t){_classCallCheck(this,e),this._elementRef=t})))),Za=((Ga=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;_classCallCheck(this,i),(r=t.call(this,e))._focusMonitor=n,r._animationMode=a,r.isRoundButton=r._hasHostAttributes("mat-fab","mat-mini-fab"),r.isIconButton=r._hasHostAttributes("mat-icon-button");var o,s=_createForOfIteratorHelper(Xa);try{for(s.s();!(o=s.n()).done;){var c=o.value;r._hasHostAttributes(c)&&r._getHostElement().classList.add(c)}}catch(l){s.e(l)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),r._focusMonitor.monitor(r._elementRef,!0),r.isRoundButton&&(r.color="accent"),r}return _createClass(i,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),e,t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),Ga),Qa=((Ua=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){return _classCallCheck(this,i),t.call(this,n,e,a)}return _createClass(i,[{key:"_haltDisabledEvents",value:function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}]),i}(Za)).\u0275fac=function(e){return new(e||Ua)(a.Dc(hn),a.Dc(a.r),a.Dc(Pt,8))},Ua.\u0275cmp=a.xc({type:Ua,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){1&e&&a.Wc("click",(function(e){return t._haltDisabledEvents(e)})),2&e&&(a.qc("tabindex",t.disabled?-1:t.tabIndex||0)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString()),a.tc("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[a.mc],attrs:$a,ngContentSelectors:Ka,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"span",0),a.ed(1),a.Ic(),a.Ec(2,"div",1),a.Ec(3,"div",2)),2&e&&(a.pc(2),a.tc("mat-button-ripple-round",t.isRoundButton||t.isIconButton),a.gd("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Da],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),Ua),er=((Ha=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Ha}),Ha.\u0275inj=a.Ac({factory:function(e){return new(e||Ha)},imports:[[Ea,Bn],Bn]}),Ha);function tr(e){return e&&"function"==typeof e.connect}var ir,nr=function(){function e(){var t=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this._multiple=i,this._emitChanges=a,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Lt.a,n&&n.length&&(i?n.forEach((function(e){return t._markSelected(e)})):this._markSelected(n[0]),this._selectedToEmit.length=0)}return _createClass(e,[{key:"select",value:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),e}(),ar=((ir=function(){function e(){_classCallCheck(this,e),this._listeners=[]}return _createClass(e,[{key:"notify",value:function(e,t){var i,n=_createForOfIteratorHelper(this._listeners);try{for(n.s();!(i=n.n()).done;)(0,i.value)(e,t)}catch(a){n.e(a)}finally{n.f()}}},{key:"listen",value:function(e){var t=this;return this._listeners.push(e),function(){t._listeners=t._listeners.filter((function(t){return e!==t}))}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),e}()).\u0275fac=function(e){return new(e||ir)},ir.\u0275prov=Object(a.zc)({factory:function(){return new ir},token:ir,providedIn:"root"}),ir),rr=i("DH7j"),or=i("XoHu"),sr=i("Cfvw");function cr(){for(var e=arguments.length,t=new Array(e),i=0;ie?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return Ar(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return Ar(e.value)||Rr.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){if(Ar(t.value))return null;var i=t.value?t.value.length:0;return ie?{maxlength:{requiredLength:e,actualLength:i}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),i=new RegExp(n)):(n=t.toString(),i=t),function(e){if(Ar(e.value))return null;var t=e.value;return i.test(t)?null:{pattern:{requiredPattern:n,actualValue:t}}}):e.nullValidator;var i,n}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(Lr);return 0==t.length?null:function(e){return Fr(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(Lr);return 0==t.length?null:function(e){return cr(function(e,t){return t.map((function(t){return t(e)}))}(e,t).map(jr)).pipe(Object(ri.a)(Fr))}}}]),e}();function Lr(e){return null!=e}function jr(e){var t=Object(a.Sb)(e)?Object(sr.a)(e):e;if(!Object(a.Rb)(t))throw new Error("Expected validator to return Promise or Observable.");return t}function Fr(e){var t={};return e.forEach((function(e){t=null!=e?Object.assign(Object.assign({},t),e):t})),0===Object.keys(t).length?null:t}function Nr(e){return e.validate?function(t){return e.validate(t)}:e}function zr(e){return e.validate?function(t){return e.validate(t)}:e}var Br,Jr,Vr,Hr,Ur={provide:fr,useExisting:Object(a.hb)((function(){return Gr})),multi:!0},Gr=((Br=function(){function e(t,i){_classCallCheck(this,e),this._renderer=t,this._elementRef=i,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||Br)(a.Dc(a.P),a.Dc(a.r))},Br.\u0275dir=a.yc({type:Br,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&a.Wc("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[a.oc([Ur])]}),Br),Wr={provide:fr,useExisting:Object(a.hb)((function(){return $r})),multi:!0},qr=((Vr=function(){function e(){_classCallCheck(this,e),this._accessors=[]}return _createClass(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(i){t._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}()).\u0275fac=function(e){return new(e||Vr)},Vr.\u0275prov=a.zc({token:Vr,factory:Vr.\u0275fac}),Vr),$r=((Jr=function(){function e(t,i,n,a){_classCallCheck(this,e),this._renderer=t,this._elementRef=i,this._registry=n,this._injector=a,this.onChange=function(){},this.onTouched=function(){}}return _createClass(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Ir),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}]),e}()).\u0275fac=function(e){return new(e||Jr)(a.Dc(a.P),a.Dc(a.r),a.Dc(qr),a.Dc(a.y))},Jr.\u0275dir=a.yc({type:Jr,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&a.Wc("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[a.oc([Wr])]}),Jr),Kr={provide:fr,useExisting:Object(a.hb)((function(){return Xr})),multi:!0},Xr=((Hr=function(){function e(t,i){_classCallCheck(this,e),this._renderer=t,this._elementRef=i,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||Hr)(a.Dc(a.P),a.Dc(a.r))},Hr.\u0275dir=a.yc({type:Hr,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&a.Wc("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[a.oc([Kr])]}),Hr),Yr='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Zr='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Qr='\n
\n
\n \n
\n
',eo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"controlParentException",value:function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(Yr))}},{key:"ngModelGroupException",value:function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '.concat(Zr,"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(Qr))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ".concat(Yr))}},{key:"groupParentException",value:function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(Zr))}},{key:"arrayParentException",value:function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}},{key:"disabledAttrWarning",value:function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}},{key:"ngModelWarning",value:function(e){console.warn("\n It looks like you're using ngModel on the same form field as ".concat(e,". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/").concat("formControl"===e?"FormControlDirective":"FormControlName","#use-with-ngmodel\n "))}}]),e}(),to={provide:fr,useExisting:Object(a.hb)((function(){return ro})),multi:!0};function io(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var no,ao,ro=((ao=function(){function e(t,i){_classCallCheck(this,e),this._renderer=t,this._elementRef=i,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=a.Tb}return _createClass(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var i=io(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(i){t.value=t._getOptionValue(i),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,i=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(i){var n=[];if(i.hasOwnProperty("selectedOptions"))for(var a=i.selectedOptions,r=0;r1?"path: '".concat(e.path.join(" -> "),"'"):e.path[0]?"name: '".concat(e.path,"'"):"unspecified name attribute",new Error("".concat(t," ").concat(i))}function yo(e){return null!=e?Mr.compose(e.map(Nr)):null}function ko(e){return null!=e?Mr.composeAsync(e.map(zr)):null}function wo(e,t){if(!e.hasOwnProperty("model"))return!1;var i=e.model;return!!i.isFirstChange()||!Object(a.Tb)(t,i.currentValue)}var Co=[gr,Xr,Gr,ro,ho,$r];function xo(e,t){e._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}))}function So(e,t){if(!t)return null;Array.isArray(t)||_o(e,"Value accessor was not provided as an array for form control with");var i=void 0,n=void 0,a=void 0;return t.forEach((function(t){var r;t.constructor===_r?i=t:(r=t,Co.some((function(e){return r.constructor===e}))?(n&&_o(e,"More than one built-in value accessor matches form control with"),n=t):(a&&_o(e,"More than one custom value accessor matches form control with"),a=t))})),a||n||i||(_o(e,"No valid value accessor for form control with"),null)}function Io(e,t){var i=e.indexOf(t);i>-1&&e.splice(i,1)}function Oo(e,t,i,n){Object(a.jb)()&&"never"!==n&&((null!==n&&"once"!==n||t._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(eo.ngModelWarning(e),t._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function Do(e){var t=Ao(e)?e.validators:e;return Array.isArray(t)?yo(t):t||null}function Eo(e,t){var i=Ao(t)?t.asyncValidators:e;return Array.isArray(i)?ko(i):i||null}function Ao(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var To,Po,Ro,Mo,Lo,jo,Fo,No,zo,Bo=function(){function e(t,i){_classCallCheck(this,e),this.validator=t,this.asyncValidator=i,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(e,[{key:"setValidators",value:function(e){this.validator=Do(e)}},{key:"setAsyncValidators",value:function(e){this.asyncValidator=Eo(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var i=jr(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe((function(i){return t.setErrors(i,{emitEvent:e})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,i){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var n=e;return t.forEach((function(e){n=n instanceof Vo?n.controls.hasOwnProperty(e)?n.controls[e]:null:n instanceof Ho&&n.at(e)||null})),n}(this,e)}},{key:"getError",value:function(e,t){var i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new a.u,this.statusChanges=new a.u}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls((function(t){return t.status===e}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(e){return e.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(e){return e.touched}))}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Ao(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),Jo=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,i),(e=t.call(this,Do(a),Eo(r,a)))._onChange=[],e._applyFormState(n),e._setUpdateStrategy(a),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return _createClass(i,[{key:"setValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach((function(e){return e(t.value,!1!==i.emitViewToModelChange)})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),i}(Bo),Vo=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,Do(n),Eo(a,n))).controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return _createClass(i,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach((function(n){t._throwIfControlMissing(n),t.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(n){t.controls[n]&&t.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(i,n){i.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(e,t,i){return e[i]=t instanceof Jo?t.value:t.getRawValue(),e}))}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach((function(i){return e(t.controls[i],i)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){var t=this,i=!1;return this._forEachChild((function(n,a){i=i||t.contains(a)&&e(n)})),i}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},(function(t,i,n){return(i.enabled||e.disabled)&&(t[n]=i.value),t}))}},{key:"_reduceChildren",value:function(e,t){var i=e;return this._forEachChild((function(e,n){i=t(i,e,n)})),i}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,i){if(void 0===e[i])throw new Error("Must supply a value for form control with name: '".concat(i,"'."))}))}}]),i}(Bo),Ho=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,Do(n),Eo(a,n))).controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return _createClass(i,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach((function(e,n){t._throwIfControlMissing(n),t.at(n).setValue(e,{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e,n){t.at(n)&&t.at(n).patchValue(e,{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(i,n){i.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map((function(e){return e instanceof Jo?e.value:e.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach((function(t,i){e(t,i)}))}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))}},{key:"_anyControls",value:function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,i){if(void 0===e[i])throw new Error("Must supply a value for form control at index: ".concat(i,"."))}))}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(i){t.e(i)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),i}(Bo),Uo={provide:kr,useExisting:Object(a.hb)((function(){return Wo}))},Go=Promise.resolve(null),Wo=((Po=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var r;return _classCallCheck(this,i),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new a.u,r.form=new Vo({},yo(e),ko(n)),r}return _createClass(i,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;Go.then((function(){var i=t._findContainer(e.path);e.control=i.registerControl(e.name,e.control),mo(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Go.then((function(){var i=t._findContainer(e.path);i&&i.removeControl(e.name),Io(t._directives,e)}))}},{key:"addFormGroup",value:function(e){var t=this;Go.then((function(){var i=t._findContainer(e.path),n=new Vo({});vo(n,e),i.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(e){var t=this;Go.then((function(){var i=t._findContainer(e.path);i&&i.removeControl(e.name)}))}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var i=this;Go.then((function(){i.form.get(e.path).setValue(t)}))}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,xo(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),i}(kr)).\u0275fac=function(e){return new(e||Po)(a.Dc(Tr,10),a.Dc(Pr,10))},Po.\u0275dir=a.yc({type:Po,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&a.Wc("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.oc([Uo]),a.mc]}),Po),qo=((To=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return fo(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return yo(this._validators)}},{key:"asyncValidator",get:function(){return ko(this._asyncValidators)}}]),i}(kr)).\u0275fac=function(e){return $o(e||To)},To.\u0275dir=a.yc({type:To,features:[a.mc]}),To),$o=a.Lc(qo),Ko=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"modelParentException",value:function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '.concat(Yr,'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n '))}},{key:"formGroupNameException",value:function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ".concat(Zr,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(Qr))}},{key:"missingNameException",value:function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}},{key:"modelGroupParentException",value:function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ".concat(Zr,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(Qr))}}]),e}(),Xo={provide:kr,useExisting:Object(a.hb)((function(){return Yo}))},Yo=((Ro=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this))._parent=e,r._validators=n,r._asyncValidators=a,r}return _createClass(i,[{key:"_checkParentType",value:function(){this._parent instanceof i||this._parent instanceof Wo||Ko.modelGroupParentException()}}]),i}(qo)).\u0275fac=function(e){return new(e||Ro)(a.Dc(kr,5),a.Dc(Tr,10),a.Dc(Pr,10))},Ro.\u0275dir=a.yc({type:Ro,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a.oc([Xo]),a.mc]}),Ro),Zo={provide:Ir,useExisting:Object(a.hb)((function(){return es}))},Qo=Promise.resolve(null),es=((Lo=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o){var s;return _classCallCheck(this,i),(s=t.call(this)).control=new Jo,s._registered=!1,s.update=new a.u,s._parent=e,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=So(_assertThisInitialized(s),o),s}return _createClass(i,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),wo(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){mo(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof Yo)&&this._parent instanceof qo?Ko.formGroupNameException():this._parent instanceof Yo||this._parent instanceof Wo||Ko.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ko.missingNameException()}},{key:"_updateValue",value:function(e){var t=this;Qo.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(e){var t=this,i=e.isDisabled.currentValue,n=""===i||i&&"false"!==i;Qo.then((function(){n&&!t.control.disabled?t.control.disable():!n&&t.control.disabled&&t.control.enable()}))}},{key:"path",get:function(){return this._parent?fo(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return yo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ko(this._rawAsyncValidators)}}]),i}(Ir)).\u0275fac=function(e){return new(e||Lo)(a.Dc(kr,9),a.Dc(Tr,10),a.Dc(Pr,10),a.Dc(fr,10))},Lo.\u0275dir=a.yc({type:Lo,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a.oc([Zo]),a.mc,a.nc]}),Lo),ts=((Mo=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Mo)},Mo.\u0275dir=a.yc({type:Mo,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Mo),is=new a.x("NgModelWithFormControlWarning"),ns={provide:Ir,useExisting:Object(a.hb)((function(){return as}))},as=((jo=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o){var s;return _classCallCheck(this,i),(s=t.call(this))._ngModelWarningConfig=o,s.update=new a.u,s._ngModelWarningSent=!1,s._rawValidators=e||[],s._rawAsyncValidators=n||[],s.valueAccessor=So(_assertThisInitialized(s),r),s}return _createClass(i,[{key:"ngOnChanges",value:function(e){this._isControlChanged(e)&&(mo(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),wo(e,this.viewModel)&&(Oo("formControl",i,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}},{key:"isDisabled",set:function(e){eo.disabledAttrWarning()}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return yo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ko(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),i}(Ir)).\u0275fac=function(e){return new(e||jo)(a.Dc(Tr,10),a.Dc(Pr,10),a.Dc(fr,10),a.Dc(is,8))},jo.\u0275dir=a.yc({type:jo,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a.oc([ns]),a.mc,a.nc]}),jo._ngModelWarningSentOnce=!1,jo),rs={provide:kr,useExisting:Object(a.hb)((function(){return os}))},os=((Fo=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var r;return _classCallCheck(this,i),(r=t.call(this))._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new a.u,r}return _createClass(i,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return mo(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){Io(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);vo(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);vo(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,xo(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach((function(t){var i=e.form.get(t.path);t.control!==i&&(function(e,t){t.valueAccessor.registerOnChange((function(){return bo(t)})),t.valueAccessor.registerOnTouched((function(){return bo(t)})),t._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),t._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),e&&e._clearChangeFns()}(t.control,t),i&&mo(i,t),t.control=i)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange((function(){return e._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var e=yo(this._validators);this.form.validator=Mr.compose([this.form.validator,e]);var t=ko(this._asyncValidators);this.form.asyncValidator=Mr.composeAsync([this.form.asyncValidator,t])}},{key:"_checkFormPresent",value:function(){this.form||eo.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),i}(kr)).\u0275fac=function(e){return new(e||Fo)(a.Dc(Tr,10),a.Dc(Pr,10))},Fo.\u0275dir=a.yc({type:Fo,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&a.Wc("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.oc([rs]),a.mc,a.nc]}),Fo),ss={provide:kr,useExisting:Object(a.hb)((function(){return cs}))},cs=((No=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this))._parent=e,r._validators=n,r._asyncValidators=a,r}return _createClass(i,[{key:"_checkParentType",value:function(){ds(this._parent)&&eo.groupParentException()}}]),i}(qo)).\u0275fac=function(e){return new(e||No)(a.Dc(kr,13),a.Dc(Tr,10),a.Dc(Pr,10))},No.\u0275dir=a.yc({type:No,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[a.oc([ss]),a.mc]}),No),ls={provide:kr,useExisting:Object(a.hb)((function(){return us}))},us=((zo=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this))._parent=e,r._validators=n,r._asyncValidators=a,r}return _createClass(i,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){ds(this._parent)&&eo.arrayParentException()}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return fo(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return yo(this._validators)}},{key:"asyncValidator",get:function(){return ko(this._asyncValidators)}}]),i}(kr)).\u0275fac=function(e){return new(e||zo)(a.Dc(kr,13),a.Dc(Tr,10),a.Dc(Pr,10))},zo.\u0275dir=a.yc({type:zo,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[a.oc([ls]),a.mc]}),zo);function ds(e){return!(e instanceof cs||e instanceof os||e instanceof us)}var hs,ps,fs,ms,gs,vs,bs,_s,ys,ks,ws,Cs,xs,Ss,Is,Os,Ds,Es,As,Ts,Ps,Rs,Ms,Ls,js,Fs,Ns,zs,Bs,Js,Vs,Hs,Us,Gs={provide:Ir,useExisting:Object(a.hb)((function(){return Ws}))},Ws=((hs=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s){var c;return _classCallCheck(this,i),(c=t.call(this))._ngModelWarningConfig=s,c._added=!1,c.update=new a.u,c._ngModelWarningSent=!1,c._parent=e,c._rawValidators=n||[],c._rawAsyncValidators=r||[],c.valueAccessor=So(_assertThisInitialized(c),o),c}return _createClass(i,[{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),wo(e,this.viewModel)&&(Oo("formControlName",i,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_checkParentType",value:function(){!(this._parent instanceof cs)&&this._parent instanceof qo?eo.ngModelGroupException():this._parent instanceof cs||this._parent instanceof os||this._parent instanceof us||eo.controlParentException()}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(e){eo.disabledAttrWarning()}},{key:"path",get:function(){return fo(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return yo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ko(this._rawAsyncValidators)}}]),i}(Ir)).\u0275fac=function(e){return new(e||hs)(a.Dc(kr,13),a.Dc(Tr,10),a.Dc(Pr,10),a.Dc(fr,10),a.Dc(is,8))},hs.\u0275dir=a.yc({type:hs,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a.oc([Gs]),a.mc,a.nc]}),hs._ngModelWarningSentOnce=!1,hs),qs={provide:Tr,useExisting:Object(a.hb)((function(){return Ks})),multi:!0},$s={provide:Tr,useExisting:Object(a.hb)((function(){return Xs})),multi:!0},Ks=((fs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validate",value:function(e){return this.required?Mr.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!=="".concat(e),this._onChange&&this._onChange()}}]),e}()).\u0275fac=function(e){return new(e||fs)},fs.\u0275dir=a.yc({type:fs,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("required",t.required?"":null)},inputs:{required:"required"},features:[a.oc([qs])]}),fs),Xs=((ps=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"validate",value:function(e){return this.required?Mr.requiredTrue(e):null}}]),i}(Ks)).\u0275fac=function(e){return Ys(e||ps)},ps.\u0275dir=a.yc({type:ps,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("required",t.required?"":null)},features:[a.oc([$s]),a.mc]}),ps),Ys=a.Lc(Xs),Zs={provide:Tr,useExisting:Object(a.hb)((function(){return Qs})),multi:!0},Qs=((ms=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validate",value:function(e){return this._enabled?Mr.email(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"email",set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}}]),e}()).\u0275fac=function(e){return new(e||ms)},ms.\u0275dir=a.yc({type:ms,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[a.oc([Zs])]}),ms),ec={provide:Tr,useExisting:Object(a.hb)((function(){return tc})),multi:!0},tc=((gs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnChanges",value:function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null==this.minlength?null:this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=Mr.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),e}()).\u0275fac=function(e){return new(e||gs)},gs.\u0275dir=a.yc({type:gs,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[a.oc([ec]),a.nc]}),gs),ic={provide:Tr,useExisting:Object(a.hb)((function(){return nc})),multi:!0},nc=((vs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null!=this.maxlength?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=Mr.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),e}()).\u0275fac=function(e){return new(e||vs)},vs.\u0275dir=a.yc({type:vs,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[a.oc([ic]),a.nc]}),vs),ac={provide:Tr,useExisting:Object(a.hb)((function(){return rc})),multi:!0},rc=((ws=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnChanges",value:function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=Mr.pattern(this.pattern)}}]),e}()).\u0275fac=function(e){return new(e||ws)},ws.\u0275dir=a.yc({type:ws,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[a.oc([ac]),a.nc]}),ws),oc=((ks=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ks}),ks.\u0275inj=a.Ac({factory:function(e){return new(e||ks)}}),ks),sc=((ys=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this._reduceControls(e),n=null,a=null,r=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(n=null!=t.validators?t.validators:null,a=null!=t.asyncValidators?t.asyncValidators:null,r=null!=t.updateOn?t.updateOn:void 0):(n=null!=t.validator?t.validator:null,a=null!=t.asyncValidator?t.asyncValidator:null)),new Vo(i,{asyncValidators:a,updateOn:r,validators:n})}},{key:"control",value:function(e,t,i){return new Jo(e,t,i)}},{key:"array",value:function(e,t,i){var n=this,a=e.map((function(e){return n._createControl(e)}));return new Ho(a,t,i)}},{key:"_reduceControls",value:function(e){var t=this,i={};return Object.keys(e).forEach((function(n){i[n]=t._createControl(e[n])})),i}},{key:"_createControl",value:function(e){return e instanceof Jo||e instanceof Vo||e instanceof Ho?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||ys)},ys.\u0275prov=a.zc({token:ys,factory:ys.\u0275fac}),ys),cc=((_s=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:_s}),_s.\u0275inj=a.Ac({factory:function(e){return new(e||_s)},providers:[qr],imports:[oc]}),_s),lc=((bs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:is,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275mod=a.Bc({type:bs}),bs.\u0275inj=a.Ac({factory:function(e){return new(e||bs)},providers:[sc,qr],imports:[oc]}),bs),uc=["button"],dc=["*"],hc=new a.x("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),pc={provide:fr,useExisting:Object(a.hb)((function(){return vc})),multi:!0},fc=function e(){_classCallCheck(this,e)},mc=0,gc=function e(t,i){_classCallCheck(this,e),this.source=t,this.value=i},vc=((Cs=function(){function e(t,i){_classCallCheck(this,e),this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=function(){},this._onTouched=function(){},this._name="mat-button-toggle-group-".concat(mc++),this.valueChange=new a.u,this.change=new a.u,this.appearance=i&&i.appearance?i.appearance:"standard"}return _createClass(e,[{key:"ngOnInit",value:function(){this._selectionModel=new nr(this.multiple,void 0,!1)}},{key:"ngAfterContentInit",value:function(){var e;(e=this._selectionModel).select.apply(e,_toConsumableArray(this._buttonToggles.filter((function(e){return e.checked}))))}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_emitChangeEvent",value:function(){var e=this.selected,t=Array.isArray(e)?e[e.length-1]:e,i=new gc(t,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}},{key:"_syncButtonToggle",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||e.checked||(this.selected.checked=!1),this._selectionModel?t?this._selectionModel.select(e):this._selectionModel.deselect(e):a=!0,a?Promise.resolve((function(){return i._updateModelValue(n)})):this._updateModelValue(n)}},{key:"_isSelected",value:function(e){return this._selectionModel&&this._selectionModel.isSelected(e)}},{key:"_isPrechecked",value:function(e){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some((function(t){return null!=e.value&&t===e.value})):e.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._rawValue=e,this._buttonToggles)if(this.multiple&&e){if(!Array.isArray(e))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),e.forEach((function(e){return t._selectValue(e)}))}else this._clearSelection(),this._selectValue(e)}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach((function(e){return e.checked=!1}))}},{key:"_selectValue",value:function(e){var t=this._buttonToggles.find((function(t){return null!=t.value&&t.value===e}));t&&(t.checked=!0,this._selectionModel.select(t))}},{key:"_updateModelValue",value:function(e){e&&this._emitChangeEvent(),this.valueChange.emit(this.value)}},{key:"name",get:function(){return this._name},set:function(e){var t=this;this._name=e,this._buttonToggles&&this._buttonToggles.forEach((function(e){e.name=t._name,e._markForCheck()}))}},{key:"vertical",get:function(){return this._vertical},set:function(e){this._vertical=fi(e)}},{key:"value",get:function(){var e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map((function(e){return e.value})):e[0]?e[0].value:void 0},set:function(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}},{key:"selected",get:function(){var e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=fi(e)}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e),this._buttonToggles&&this._buttonToggles.forEach((function(e){return e._markForCheck()}))}}]),e}()).\u0275fac=function(e){return new(e||Cs)(a.Dc(a.j),a.Dc(hc,8))},Cs.\u0275dir=a.yc({type:Cs,selectors:[["mat-button-toggle-group"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,_c,!0),2&e&&a.md(n=a.Xc())&&(t._buttonToggles=n)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(e,t){2&e&&(a.qc("aria-disabled",t.disabled),a.tc("mat-button-toggle-vertical",t.vertical)("mat-button-toggle-group-appearance-standard","standard"===t.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[a.oc([pc,{provide:fc,useExisting:Cs}])]}),Cs),bc=Hn((function e(){_classCallCheck(this,e)})),_c=((Ss=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c){var l;_classCallCheck(this,i),(l=t.call(this))._changeDetectorRef=n,l._elementRef=r,l._focusMonitor=o,l._isSingleSelector=!1,l._checked=!1,l.ariaLabelledby=null,l._disabled=!1,l.change=new a.u;var u=Number(s);return l.tabIndex=u||0===u?u:null,l.buttonToggleGroup=e,l.appearance=c&&c.appearance?c.appearance:"standard",l}return _createClass(i,[{key:"ngOnInit",value:function(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||"mat-button-toggle-".concat(mc++),this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(e){this._buttonElement.nativeElement.focus(e)}},{key:"_onButtonClick",value:function(){var e=!!this._isSingleSelector||!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new gc(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(e){this._appearance=e}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(e){var t=fi(e);t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(e){this._disabled=fi(e)}}]),i}(bc)).\u0275fac=function(e){return new(e||Ss)(a.Dc(vc,8),a.Dc(a.j),a.Dc(a.r),a.Dc(hn),a.Tc("tabindex"),a.Dc(hc,8))},Ss.\u0275cmp=a.xc({type:Ss,selectors:[["mat-button-toggle"]],viewQuery:function(e,t){var i;1&e&&a.Fd(uc,!0),2&e&&a.md(i=a.Xc())&&(t._buttonElement=i.first)},hostAttrs:[1,"mat-button-toggle","mat-focus-indicator"],hostVars:11,hostBindings:function(e,t){1&e&&a.Wc("focus",(function(){return t.focus()})),2&e&&(a.qc("tabindex",-1)("id",t.id)("name",null),a.tc("mat-button-toggle-standalone",!t.buttonToggleGroup)("mat-button-toggle-checked",t.checked)("mat-button-toggle-disabled",t.disabled)("mat-button-toggle-appearance-standard","standard"===t.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[a.mc],ngContentSelectors:dc,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(e,t){if(1&e&&(a.fd(),a.Jc(0,"button",0,1),a.Wc("click",(function(){return t._onButtonClick()})),a.Jc(2,"div",2),a.ed(3),a.Ic(),a.Ic(),a.Ec(4,"div",3),a.Ec(5,"div",4)),2&e){var i=a.nd(1);a.gd("id",t.buttonId)("disabled",t.disabled||null),a.qc("tabindex",t.disabled?-1:t.tabIndex)("aria-pressed",t.checked)("name",t.name||null)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby),a.pc(5),a.gd("matRippleTrigger",i)("matRippleDisabled",t.disableRipple||t.disabled)}},directives:[Da],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px;padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 48px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),Ss),yc=((xs=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:xs}),xs.\u0275inj=a.Ac({factory:function(e){return new(e||xs)},imports:[[Bn,Ea],Bn]}),xs),kc=["*",[["mat-card-footer"]]],wc=["*","mat-card-footer"],Cc=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],xc=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],Sc=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],Ic=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],Oc=((Bs=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Bs)},Bs.\u0275dir=a.yc({type:Bs,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Bs),Dc=((zs=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||zs)},zs.\u0275dir=a.yc({type:zs,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),zs),Ec=((Ns=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ns)},Ns.\u0275dir=a.yc({type:Ns,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Ns),Ac=((Fs=function e(){_classCallCheck(this,e),this.align="start"}).\u0275fac=function(e){return new(e||Fs)},Fs.\u0275dir=a.yc({type:Fs,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("mat-card-actions-align-end","end"===t.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Fs),Tc=((js=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||js)},js.\u0275dir=a.yc({type:js,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),js),Pc=((Ls=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ls)},Ls.\u0275dir=a.yc({type:Ls,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Ls),Rc=((Ms=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ms)},Ms.\u0275dir=a.yc({type:Ms,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),Ms),Mc=((Rs=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Rs)},Rs.\u0275dir=a.yc({type:Rs,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),Rs),Lc=((Ps=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ps)},Ps.\u0275dir=a.yc({type:Ps,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),Ps),jc=((Ts=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ts)},Ts.\u0275dir=a.yc({type:Ts,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),Ts),Fc=((As=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||As)},As.\u0275dir=a.yc({type:As,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),As),Nc=((Es=function e(t){_classCallCheck(this,e),this._animationMode=t}).\u0275fac=function(e){return new(e||Es)(a.Dc(Pt,8))},Es.\u0275cmp=a.xc({type:Es,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:wc,decls:2,vars:0,template:function(e,t){1&e&&(a.fd(kc),a.ed(0),a.ed(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),Es),zc=((Ds=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ds)},Ds.\u0275cmp=a.xc({type:Ds,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:xc,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(a.fd(Cc),a.ed(0),a.Jc(1,"div",0),a.ed(2,1),a.Ic(),a.ed(3,2))},encapsulation:2,changeDetection:0}),Ds),Bc=((Os=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Os)},Os.\u0275cmp=a.xc({type:Os,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:Ic,decls:4,vars:0,template:function(e,t){1&e&&(a.fd(Sc),a.Jc(0,"div"),a.ed(1),a.Ic(),a.ed(2,1),a.ed(3,2))},encapsulation:2,changeDetection:0}),Os),Jc=((Is=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Is}),Is.\u0275inj=a.Ac({factory:function(e){return new(e||Is)},imports:[[Bn],Bn]}),Is),Vc=["input"],Hc=function(){return{enterDuration:150}},Uc=["*"],Gc=new a.x("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),Wc=new a.x("mat-checkbox-click-action"),qc=0,$c={provide:fr,useExisting:Object(a.hb)((function(){return Yc})),multi:!0},Kc=function e(){_classCallCheck(this,e)},Xc=Un(Vn(Hn(Jn((function e(t){_classCallCheck(this,e),this._elementRef=t}))))),Yc=((Js=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l,u){var d;return _classCallCheck(this,i),(d=t.call(this,e))._changeDetectorRef=n,d._focusMonitor=r,d._ngZone=o,d._clickAction=c,d._animationMode=l,d._options=u,d.ariaLabel="",d.ariaLabelledby=null,d._uniqueId="mat-checkbox-".concat(++qc),d.id=d._uniqueId,d.labelPosition="after",d.name=null,d.change=new a.u,d.indeterminateChange=new a.u,d._onTouched=function(){},d._currentAnimationClass="",d._currentCheckState=0,d._controlValueAccessorChangeFn=function(){},d._checked=!1,d._disabled=!1,d._indeterminate=!1,d._options=d._options||{},d._options.color&&(d.color=d._options.color),d.tabIndex=parseInt(s)||0,d._focusMonitor.monitor(e,!0).subscribe((function(e){e||Promise.resolve().then((function(){d._onTouched(),n.markForCheck()}))})),d._clickAction=d._clickAction||d._options.clickAction,d}return _createClass(i,[{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,i=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);var n=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){i.classList.remove(n)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var e=new Kc;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t=this;e.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){t._indeterminate=!1,t.indeterminateChange.emit(t._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,e,t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var i="";switch(e){case 0:if(1===t)i="unchecked-checked";else{if(3!=t)return"";i="unchecked-indeterminate"}break;case 2:i=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(i)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=fi(e)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=fi(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=fi(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),i}(Xc)).\u0275fac=function(e){return new(e||Js)(a.Dc(a.r),a.Dc(a.j),a.Dc(hn),a.Dc(a.I),a.Tc("tabindex"),a.Dc(Wc,8),a.Dc(Pt,8),a.Dc(Gc,8))},Js.\u0275cmp=a.xc({type:Js,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var i;1&e&&(a.Fd(Vc,!0),a.Fd(Da,!0)),2&e&&(a.md(i=a.Xc())&&(t._inputElement=i.first),a.md(i=a.Xc())&&(t.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(a.Mc("id",t.id),a.qc("tabindex",null),a.tc("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[a.oc([$c]),a.mc],ngContentSelectors:Uc,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(a.fd(),a.Jc(0,"label",0,1),a.Jc(2,"div",2),a.Jc(3,"input",3,4),a.Wc("change",(function(e){return t._onInteractionEvent(e)}))("click",(function(e){return t._onInputClick(e)})),a.Ic(),a.Jc(5,"div",5),a.Ec(6,"div",6),a.Ic(),a.Ec(7,"div",7),a.Jc(8,"div",8),a.Zc(),a.Jc(9,"svg",9),a.Ec(10,"path",10),a.Ic(),a.Yc(),a.Ec(11,"div",11),a.Ic(),a.Ic(),a.Jc(12,"span",12,13),a.Wc("cdkObserveContent",(function(){return t._onLabelTextChange()})),a.Jc(14,"span",14),a.Bd(15,"\xa0"),a.Ic(),a.ed(16),a.Ic(),a.Ic()),2&e){var i=a.nd(1),n=a.nd(13);a.qc("for",t.inputId),a.pc(2),a.tc("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),a.pc(1),a.gd("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),a.qc("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked()),a.pc(2),a.gd("matRippleTrigger",i)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",a.id(18,Hc))}},directives:[Da,zi],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),Js),Zc={provide:Tr,useExisting:Object(a.hb)((function(){return Qc})),multi:!0},Qc=((Vs=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Xs)).\u0275fac=function(e){return el(e||Vs)},Vs.\u0275dir=a.yc({type:Vs,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[a.oc([Zc]),a.mc]}),Vs),el=a.Lc(Qc),tl=((Us=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Us}),Us.\u0275inj=a.Ac({factory:function(e){return new(e||Us)}}),Us),il=((Hs=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Hs}),Hs.\u0275inj=a.Ac({factory:function(e){return new(e||Hs)},imports:[[Ea,Bn,Bi,tl],Bn,tl]}),Hs);function nl(e){return new si.a((function(t){var i;try{i=e()}catch(n){return void t.error(n)}return(i?Object(sr.a)(i):li()).subscribe(t)}))}var al=i("VRyK");function rl(e,t,i,n){return Object(Ut.a)(i)&&(n=i,i=void 0),n?rl(e,t,i).pipe(Object(ri.a)((function(e){return Object(rr.a)(e)?n.apply(void 0,_toConsumableArray(e)):n(e)}))):new si.a((function(n){!function e(t,i,n,a,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var s=t;t.addEventListener(i,n,r),o=function(){return s.removeEventListener(i,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var c=t;t.on(i,n),o=function(){return c.off(i,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var l=t;t.addListener(i,n),o=function(){return l.removeListener(i,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,d=t.length;u1?Array.prototype.slice.call(arguments):e)}),n,i)}))}var ol=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e,n)).scheduler=e,a.work=n,a}return _createClass(i,[{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return _get(_getPrototypeOf(i.prototype),"recycleAsyncId",this).call(this,e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),i}($t),sl=new(function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,i=this.actions,n=-1,a=i.length;e=e||i.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=hl(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return _get(_getPrototypeOf(i.prototype),"recycleAsyncId",this).call(this,e,t,n);0===e.actions.length&&(pl(t),e.scheduled=void 0)}}]),i}($t),ml=new(function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,i=this.actions,n=-1,a=i.length;e=e||i.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n=0}function xl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=-1;return Cl(t)?n=Number(t)<1?1:Number(t):Object(Ft.a)(t)&&(i=t),Object(Ft.a)(i)||(i=Yt),new si.a((function(t){var a=Cl(e)?e:+e-i.now();return i.schedule(Sl,a,{index:0,period:n,subscriber:t})}))}function Sl(e){var t=e.index,i=e.period,n=e.subscriber;if(n.next(t),!n.closed){if(-1===i)return n.complete();e.index=t+1,this.schedule(e,i)}}function Il(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt;return t=function(){return xl(e,i)},function(e){return e.lift(new kl(t))}}function Ol(e){return function(t){return t.lift(new Dl(e))}}var Dl=function(){function e(t){_classCallCheck(this,e),this.notifier=t}return _createClass(e,[{key:"call",value:function(e,t){var i=new El(e),n=Object(yl.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),t.subscribe(i)):i}}]),e}(),El=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this,e)).seenValue=!1,n}return _createClass(i,[{key:"notifyNext",value:function(e,t,i,n,a){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),i}(_l.a),Al=i("51Dv");function Tl(e,t){return"function"==typeof t?function(i){return i.pipe(Tl((function(i,n){return Object(sr.a)(e(i,n)).pipe(Object(ri.a)((function(e,a){return t(i,e,n,a)})))})))}:function(t){return t.lift(new Pl(e))}}var Pl=function(){function e(t){_classCallCheck(this,e),this.project=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Rl(e,this.project))}}]),e}(),Rl=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).project=n,a.index=0,a}return _createClass(i,[{key:"_next",value:function(e){var t,i=this.index++;try{t=this.project(e,i)}catch(n){return void this.destination.error(n)}this._innerSub(t,e,i)}},{key:"_innerSub",value:function(e,t,i){var n=this.innerSubscription;n&&n.unsubscribe();var a=new Al.a(this,t,i),r=this.destination;r.add(a),this.innerSubscription=Object(yl.a)(this,e,void 0,void 0,a),this.innerSubscription!==a&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||_get(_getPrototypeOf(i.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(i.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,i,n,a){this.destination.next(t)}}]),i}(_l.a),Ml=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e,n)).scheduler=e,a.work=n,a}return _createClass(i,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(i.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(i.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0||null===n&&this.delay>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,e,t,n):e.flush(this)}}]),i}($t),Ll=new(function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Xt))(Ml);function jl(e,t){return new si.a(t?function(i){return t.schedule(Fl,0,{error:e,subscriber:i})}:function(t){return t.error(e)})}function Fl(e){var t=e.error;e.subscriber.error(t)}var Nl,zl,Bl,Jl,Vl,Hl=((Nl=function(){function e(t,i,n){_classCallCheck(this,e),this.kind=t,this.value=i,this.error=n,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}},{key:"accept",value:function(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Bt(this.value);case"E":return jl(this.error);case"C":return li()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new Nl("C"),Nl.undefinedValueNotification=new Nl("N",void 0),Nl),Ul=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,i),(a=t.call(this,e)).scheduler=n,a.delay=r,a}return _createClass(i,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(i.dispatch,this.delay,new Gl(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(Hl.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(Hl.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Hl.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,i=e.destination;t.observe(i),this.unsubscribe()}}]),i}(Vt.a),Gl=function e(t,i){_classCallCheck(this,e),this.notification=t,this.destination=i},Wl=i("9ppp"),ql=i("Ylt2"),$l=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,r=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,i),(e=t.call(this)).scheduler=r,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=n<1?1:n,e._windowTime=a<1?1:a,a===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _createClass(i,[{key:"nextInfiniteTimeWindow",value:function(e){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new Kl(this._getNow(),e)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,i=this._infiniteTimeWindow,n=i?this._events:this._trimBufferThenGetEvents(),a=this.scheduler,r=n.length;if(this.closed)throw new Wl.a;if(this.isStopped||this.hasError?t=jt.a.EMPTY:(this.observers.push(e),t=new ql.a(this,e)),a&&e.add(e=new Ul(e,a)),i)for(var o=0;ot&&(r=Math.max(r,a-t)),r>0&&n.splice(0,r),n}}]),i}(Lt.a),Kl=function e(t,i){_classCallCheck(this,e),this.time=t,this.value=i},Xl=((Vl=function(){function e(t,i,n){_classCallCheck(this,e),this._ngZone=t,this._platform=i,this._scrolled=new Lt.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}return _createClass(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe((function(){return t._scrolled.next(e)})))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new si.a((function(i){e._globalSubscription||e._addGlobalListener();var n=t>0?e._scrolled.pipe(Il(t)).subscribe(i):e._scrolled.subscribe(i);return e._scrolledCount++,function(){n.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):Bt()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(t,i){return e.deregister(i)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var i=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(ii((function(e){return!e||i.indexOf(e)>-1})))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,i=[];return this.scrollContainers.forEach((function(n,a){t._scrollableContainsElement(a,e)&&i.push(a)})),i}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var i=t.nativeElement,n=e.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return rl(e._getWindow().document,"scroll").subscribe((function(){return e._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||Vl)(a.Sc(a.I),a.Sc(Ii),a.Sc(yt.e,8))},Vl.\u0275prov=Object(a.zc)({factory:function(){return new Vl(Object(a.Sc)(a.I),Object(a.Sc)(Ii),Object(a.Sc)(yt.e,8))},token:Vl,providedIn:"root"}),Vl),Yl=((Jl=function(){function e(t,i,n,a){var r=this;_classCallCheck(this,e),this.elementRef=t,this.scrollDispatcher=i,this.ngZone=n,this.dir=a,this._destroyed=new Lt.a,this._elementScrolled=new si.a((function(e){return r.ngZone.runOutsideAngular((function(){return rl(r.elementRef.nativeElement,"scroll").pipe(Ol(r._destroyed)).subscribe(e)}))}))}return _createClass(e,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(e){var t=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=i?e.end:e.start),null==e.right&&(e.right=i?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),i&&0!=Ti()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Ti()?e.left=e.right:1==Ti()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}},{key:"measureScrollOffset",value:function(e){var t=this.elementRef.nativeElement;if("top"==e)return t.scrollTop;if("bottom"==e)return t.scrollHeight-t.clientHeight-t.scrollTop;var i=this.dir&&"rtl"==this.dir.value;return"start"==e?e=i?"right":"left":"end"==e&&(e=i?"left":"right"),i&&2==Ti()?"left"==e?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft:i&&1==Ti()?"left"==e?t.scrollLeft+t.scrollWidth-t.clientWidth:-t.scrollLeft:"left"==e?t.scrollLeft:t.scrollWidth-t.clientWidth-t.scrollLeft}}]),e}()).\u0275fac=function(e){return new(e||Jl)(a.Dc(a.r),a.Dc(Xl),a.Dc(a.I),a.Dc(Cn,8))},Jl.\u0275dir=a.yc({type:Jl,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Jl),Zl=((Bl=function(){function e(t,i,n){var a=this;_classCallCheck(this,e),this._platform=t,this._document=n,i.runOutsideAngular((function(){var e=a._getWindow();a._change=t.isBrowser?Object(al.a)(rl(e,"resize"),rl(e,"orientationchange")):Bt(),a._invalidateCache=a.change().subscribe((function(){return a._updateViewportSize()}))}))}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),i=t.width,n=t.height;return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+i,height:n,width:i}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._getDocument(),t=this._getWindow(),i=e.documentElement,n=i.getBoundingClientRect();return{top:-n.top||e.body.scrollTop||t.scrollY||i.scrollTop||0,left:-n.left||e.body.scrollLeft||t.scrollX||i.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(Il(e)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||Bl)(a.Sc(Ii),a.Sc(a.I),a.Sc(yt.e,8))},Bl.\u0275prov=Object(a.zc)({factory:function(){return new Bl(Object(a.Sc)(Ii),Object(a.Sc)(a.I),Object(a.Sc)(yt.e,8))},token:Bl,providedIn:"root"}),Bl),Ql=((zl=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:zl}),zl.\u0275inj=a.Ac({factory:function(e){return new(e||zl)},imports:[[Sn,Oi],Sn]}),zl);function eu(){throw Error("Host already has a portal attached")}var tu,iu,nu,au,ru=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&eu(),this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),e}(),ou=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this)).component=e,o.viewContainerRef=n,o.injector=a,o.componentFactoryResolver=r,o}return i}(ru),su=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this)).templateRef=e,r.viewContainerRef=n,r.context=a,r}return _createClass(i,[{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(i.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(i.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),i}(ru),cu=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this)).element=e instanceof a.r?e.nativeElement:e,n}return i}(ru),lu=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&eu(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof ou?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof su?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof cu?(this._attachedPortal=e,this.attachDomPortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),uu=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o){var s;return _classCallCheck(this,i),(s=t.call(this)).outletElement=e,s._componentFactoryResolver=n,s._appRef=a,s._defaultInjector=r,s.attachDomPortal=function(e){if(!s._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var t=e.element;if(!t.parentNode)throw Error("DOM portal content must be attached to a parent node.");var n=s._document.createComment("dom-portal");t.parentNode.insertBefore(n,t),s.outletElement.appendChild(t),_get(_getPrototypeOf(i.prototype),"setDisposeFn",_assertThisInitialized(s)).call(_assertThisInitialized(s),(function(){n.parentNode&&n.parentNode.replaceChild(t,n)}))},s._document=o,s}return _createClass(i,[{key:"attachComponentPortal",value:function(e){var t,i=this,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn((function(){return t.destroy()}))):(t=n.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn((function(){i._appRef.detachView(t.hostView),t.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,i=e.viewContainerRef,n=i.createEmbeddedView(e.templateRef,e.context);return n.detectChanges(),n.rootNodes.forEach((function(e){return t.outletElement.appendChild(e)})),this.setDisposeFn((function(){var e=i.indexOf(n);-1!==e&&i.remove(e)})),n}},{key:"dispose",value:function(){_get(_getPrototypeOf(i.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),i}(lu),du=((nu=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){return _classCallCheck(this,i),t.call(this,e,n)}return i}(su)).\u0275fac=function(e){return new(e||nu)(a.Dc(a.Y),a.Dc(a.cb))},nu.\u0275dir=a.yc({type:nu,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[a.mc]}),nu),hu=((iu=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r){var o;return _classCallCheck(this,i),(o=t.call(this))._componentFactoryResolver=e,o._viewContainerRef=n,o._isInitialized=!1,o.attached=new a.u,o.attachDomPortal=function(e){if(!o._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var t=e.element;if(!t.parentNode)throw Error("DOM portal content must be attached to a parent node.");var n=o._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized(o)),t.parentNode.insertBefore(n,t),o._getRootNode().appendChild(t),_get(_getPrototypeOf(i.prototype),"setDisposeFn",_assertThisInitialized(o)).call(_assertThisInitialized(o),(function(){n.parentNode&&n.parentNode.replaceChild(t,n)}))},o._document=r,o}return _createClass(i,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=t.createComponent(n,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),_get(_getPrototypeOf(i.prototype),"setDisposeFn",this).call(this,(function(){return a.destroy()})),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(i.prototype),"setDisposeFn",this).call(this,(function(){return t._viewContainerRef.clear()})),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(i.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(i.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),i}(lu)).\u0275fac=function(e){return new(e||iu)(a.Dc(a.n),a.Dc(a.cb),a.Dc(yt.e))},iu.\u0275dir=a.yc({type:iu,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.mc]}),iu),pu=((tu=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(hu)).\u0275fac=function(e){return fu(e||tu)},tu.\u0275dir=a.yc({type:tu,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[a.oc([{provide:hu,useExisting:tu}]),a.mc]}),tu),fu=a.Lc(pu),mu=((au=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:au}),au.\u0275inj=a.Ac({factory:function(e){return new(e||au)}}),au),gu=function(){function e(t,i){_classCallCheck(this,e),this._parentInjector=t,this._customTokens=i}return _createClass(e,[{key:"get",value:function(e,t){var i=this._customTokens.get(e);return void 0!==i?i:this._parentInjector.get(e,t)}}]),e}(),vu=function(){function e(t,i){_classCallCheck(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}return _createClass(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=bi(-this._previousScrollPosition.left),e.style.top=bi(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,i=this._document.body.style,n=t.scrollBehavior||"",a=i.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=n,i.scrollBehavior=a}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}();function bu(){return Error("Scroll strategy has already been attached.")}var _u=function(){function e(t,i,n,a){var r=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=i,this._viewportRuler=n,this._config=a,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run((function(){return r._overlayRef.detach()}))}}return _createClass(e,[{key:"attach",value:function(e){if(this._overlayRef)throw bu();this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe((function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()}))):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),yu=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function ku(e,t){return t.some((function(t){return e.bottomt.bottom||e.rightt.right}))}function wu(e,t){return t.some((function(t){return e.topt.bottom||e.leftt.right}))}var Cu,xu=function(){function e(t,i,n,a){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=n,this._config=a,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){if(this._overlayRef)throw bu();this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),i=e._viewportRuler.getViewportSize(),n=i.width,a=i.height;ku(t,[{width:n,height:a,bottom:a,right:n,top:0,left:0}])&&(e.disable(),e._ngZone.run((function(){return e._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),Su=((Cu=function e(t,i,n,a){var r=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=n,this.noop=function(){return new yu},this.close=function(e){return new _u(r._scrollDispatcher,r._ngZone,r._viewportRuler,e)},this.block=function(){return new vu(r._viewportRuler,r._document)},this.reposition=function(e){return new xu(r._scrollDispatcher,r._viewportRuler,r._ngZone,e)},this._document=a}).\u0275fac=function(e){return new(e||Cu)(a.Sc(Xl),a.Sc(Zl),a.Sc(a.I),a.Sc(yt.e))},Cu.\u0275prov=Object(a.zc)({factory:function(){return new Cu(Object(a.Sc)(Xl),Object(a.Sc)(Zl),Object(a.Sc)(a.I),Object(a.Sc)(yt.e))},token:Cu,providedIn:"root"}),Cu),Iu=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new yu,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var i=0,n=Object.keys(t);i-1;n--)if(t[n]._keydownEventSubscriptions>0){t[n]._keydownEvents.next(e);break}},this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(e){this.remove(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),e}()).\u0275fac=function(e){return new(e||Tu)(a.Sc(yt.e))},Tu.\u0275prov=Object(a.zc)({factory:function(){return new Tu(Object(a.Sc)(yt.e))},token:Tu,providedIn:"root"}),Tu),Mu=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),Lu=((Pu=function(){function e(t,i){_classCallCheck(this,e),this._platform=i,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(e||Mu)for(var t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),i=0;ip&&(p=g,h=m)}}catch(v){f.e(v)}finally{f.f()}return this._isPushed=!1,void this._applyPosition(h.position,h.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&zu(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var i;if("center"==t.originX)i=e.left+e.width/2;else{var n=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;i="start"==t.originX?n:a}return{x:i,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,i){var n,a;return n="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,a="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+n,y:e.y+a}}},{key:"_getOverlayFit",value:function(e,t,i,n){var a=e.x,r=e.y,o=this._getOffset(n,"x"),s=this._getOffset(n,"y");o&&(a+=o),s&&(r+=s);var c=0-r,l=r+t.height-i.height,u=this._subtractOverflows(t.width,0-a,a+t.width-i.width),d=this._subtractOverflows(t.height,c,l),h=u*d;return{visibleArea:h,isCompletelyWithinViewport:t.width*t.height===h,fitsInViewportVertically:d===t.height,fitsInViewportHorizontally:u==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,i){if(this._hasFlexibleDimensions){var n=i.bottom-t.y,a=i.right-t.x,r=Bu(this._overlayRef.getConfig().minHeight),o=Bu(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=o&&o<=a;return(e.fitsInViewportVertically||null!=r&&r<=n)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var n,a,r=this._viewportRect,o=Math.max(e.x+t.width-r.right,0),s=Math.max(e.y+t.height-r.bottom,0),c=Math.max(r.top-i.top-e.y,0),l=Math.max(r.left-i.left-e.x,0);return n=t.width<=r.width?l||-o:e.xd&&!this._isInitialRender&&!this._growAfterOpen&&(n=e.y-d/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)s=c.width-e.x+this._viewportMargin,r=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)o=e.x,r=c.right-e.x;else{var h=Math.min(c.right-e.x+c.left,e.x),p=this._lastBoundingBoxSize.width;r=2*h,o=e.x-h,r>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.x-p/2)}return{top:n,left:o,bottom:a,right:s,width:r,height:i}}},{key:"_setBoundingBoxStyles",value:function(e,t){var i=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{var a=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.height=bi(i.height),n.top=bi(i.top),n.bottom=bi(i.bottom),n.width=bi(i.width),n.left=bi(i.left),n.right=bi(i.right),n.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",n.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",a&&(n.maxHeight=bi(a)),r&&(n.maxWidth=bi(r))}this._lastBoundingBoxSize=i,zu(this._boundingBox.style,n)}},{key:"_resetBoundingBoxStyles",value:function(){zu(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){zu(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var i={},n=this._hasExactPosition(),a=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){var o=this._viewportRuler.getViewportScrollPosition();zu(i,this._getExactOverlayY(t,e,o)),zu(i,this._getExactOverlayX(t,e,o))}else i.position="static";var s="",c=this._getOffset(t,"x"),l=this._getOffset(t,"y");c&&(s+="translateX(".concat(c,"px) ")),l&&(s+="translateY(".concat(l,"px)")),i.transform=s.trim(),r.maxHeight&&(n?i.maxHeight=bi(r.maxHeight):a&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=bi(r.maxWidth):a&&(i.maxWidth="")),zu(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(e,t,i){var n={top:"",bottom:""},a=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i));var r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return a.y-=r,"bottom"===e.overlayY?n.bottom="".concat(this._document.documentElement.clientHeight-(a.y+this._overlayRect.height),"px"):n.top=bi(a.y),n}},{key:"_getExactOverlayX",value:function(e,t,i){var n={left:"",right:""},a=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?n.right="".concat(this._document.documentElement.clientWidth-(a.x+this._overlayRect.width),"px"):n.left=bi(a.x),n}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map((function(e){return e.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:wu(e,i),isOriginOutsideView:ku(e,i),isOverlayClipped:wu(t,i),isOverlayOutsideView:ku(t,i)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),n=i.width,a=i.height,r=i.maxWidth,o=i.maxHeight,s=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),c=!("100%"!==a&&"100vh"!==a||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),$u=((Vu=function(){function e(t,i,n,a){_classCallCheck(this,e),this._viewportRuler=t,this._document=i,this._platform=n,this._overlayContainer=a}return _createClass(e,[{key:"global",value:function(){return new qu}},{key:"connectedTo",value:function(e,t,i){return new Wu(t,i,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new Nu(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||Vu)(a.Sc(Zl),a.Sc(yt.e),a.Sc(Ii),a.Sc(Lu))},Vu.\u0275prov=Object(a.zc)({factory:function(){return new Vu(Object(a.Sc)(Zl),Object(a.Sc)(yt.e),Object(a.Sc)(Ii),Object(a.Sc)(Lu))},token:Vu,providedIn:"root"}),Vu),Ku=0,Xu=((Ju=function(){function e(t,i,n,a,r,o,s,c,l,u){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=a,this._keyboardDispatcher=r,this._injector=o,this._ngZone=s,this._document=c,this._directionality=l,this._location=u}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),i=this._createPaneElement(t),n=this._createPortalOutlet(i),a=new Iu(e);return a.direction=a.direction||this._directionality.value,new ju(n,t,i,a,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-".concat(Ku++),t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(a.g)),new uu(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||Ju)(a.Sc(Su),a.Sc(Lu),a.Sc(a.n),a.Sc($u),a.Sc(Ru),a.Sc(a.y),a.Sc(a.I),a.Sc(yt.e),a.Sc(Cn),a.Sc(yt.n,8))},Ju.\u0275prov=a.zc({token:Ju,factory:Ju.\u0275fac}),Ju),Yu=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Zu=new a.x("cdk-connected-overlay-scroll-strategy"),Qu=((Uu=function e(t){_classCallCheck(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||Uu)(a.Dc(a.r))},Uu.\u0275dir=a.yc({type:Uu,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Uu),ed=((Hu=function(){function e(t,i,n,r,o){_classCallCheck(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=jt.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new a.u,this.positionChange=new a.u,this.attach=new a.u,this.detach=new a.u,this.overlayKeydown=new a.u,this._templatePortal=new su(i,n),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=Yu),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(t){e.overlayKeydown.next(t),27!==t.keyCode||Jt(t)||(t.preventDefault(),e._detachOverlay())}))}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Iu({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,i=this.positions.map((function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}}));return e.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this,t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe((function(t){return e.positionChange.emit(t)})),t}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((function(t){e.backdropClick.emit(t)})):this._backdropSubscription.unsubscribe()}},{key:"_detachOverlay",value:function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=fi(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=fi(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=fi(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=fi(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=fi(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),e}()).\u0275fac=function(e){return new(e||Hu)(a.Dc(Xu),a.Dc(a.Y),a.Dc(a.cb),a.Dc(Zu),a.Dc(Cn,8))},Hu.\u0275dir=a.yc({type:Hu,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[a.nc]}),Hu),td={provide:Zu,deps:[Xu],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},id=((Gu=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Gu}),Gu.\u0275inj=a.Ac({factory:function(e){return new(e||Gu)},providers:[Xu,td],imports:[[Sn,mu,Ql],Ql]}),Gu),nd=["underline"],ad=["connectionContainer"],rd=["inputContainer"],od=["label"];function sd(e,t){1&e&&(a.Hc(0),a.Jc(1,"div",14),a.Ec(2,"div",15),a.Ec(3,"div",16),a.Ec(4,"div",17),a.Ic(),a.Jc(5,"div",18),a.Ec(6,"div",15),a.Ec(7,"div",16),a.Ec(8,"div",17),a.Ic(),a.Gc())}function cd(e,t){1&e&&(a.Jc(0,"div",19),a.ed(1,1),a.Ic())}function ld(e,t){if(1&e&&(a.Hc(0),a.ed(1,2),a.Jc(2,"span"),a.Bd(3),a.Ic(),a.Gc()),2&e){var i=a.ad(2);a.pc(3),a.Cd(i._control.placeholder)}}function ud(e,t){1&e&&a.ed(0,3,["*ngSwitchCase","true"])}function dd(e,t){1&e&&(a.Jc(0,"span",23),a.Bd(1," *"),a.Ic())}function hd(e,t){if(1&e){var i=a.Kc();a.Jc(0,"label",20,21),a.Wc("cdkObserveContent",(function(){return a.rd(i),a.ad().updateOutlineGap()})),a.zd(2,ld,4,1,"ng-container",12),a.zd(3,ud,1,0,void 0,12),a.zd(4,dd,2,0,"span",22),a.Ic()}if(2&e){var n=a.ad();a.tc("mat-empty",n._control.empty&&!n._shouldAlwaysFloat)("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat)("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),a.gd("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),a.qc("for",n._control.id)("aria-owns",n._control.id),a.pc(2),a.gd("ngSwitchCase",!1),a.pc(1),a.gd("ngSwitchCase",!0),a.pc(1),a.gd("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function pd(e,t){1&e&&(a.Jc(0,"div",24),a.ed(1,4),a.Ic())}function fd(e,t){if(1&e&&(a.Jc(0,"div",25,26),a.Ec(2,"span",27),a.Ic()),2&e){var i=a.ad();a.pc(2),a.tc("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function md(e,t){if(1&e&&(a.Jc(0,"div"),a.ed(1,5),a.Ic()),2&e){var i=a.ad();a.gd("@transitionMessages",i._subscriptAnimationState)}}function gd(e,t){if(1&e&&(a.Jc(0,"div",31),a.Bd(1),a.Ic()),2&e){var i=a.ad(2);a.gd("id",i._hintLabelId),a.pc(1),a.Cd(i.hintLabel)}}function vd(e,t){if(1&e&&(a.Jc(0,"div",28),a.zd(1,gd,2,2,"div",29),a.ed(2,6),a.Ec(3,"div",30),a.ed(4,7),a.Ic()),2&e){var i=a.ad();a.gd("@transitionMessages",i._subscriptAnimationState),a.pc(1),a.gd("ngIf",i.hintLabel)}}var bd,_d,yd=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],kd=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],wd=0,Cd=((bd=function e(){_classCallCheck(this,e),this.id="mat-error-".concat(wd++)}).\u0275fac=function(e){return new(e||bd)},bd.\u0275dir=a.yc({type:bd,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("id",t.id)},inputs:{id:"id"}}),bd),xd={transitionMessages:o("transitionMessages",[d("enter",u({opacity:1,transform:"translateY(0%)"})),p("void => enter",[u({opacity:0,transform:"translateY(-100%)"}),s("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Sd=((_d=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||_d)},_d.\u0275dir=a.yc({type:_d}),_d);function Id(e){return Error("A hint was already declared for 'align=\"".concat(e,"\"'."))}var Od,Dd,Ed,Ad,Td,Pd,Rd,Md=0,Ld=((Td=function e(){_classCallCheck(this,e),this.align="start",this.id="mat-hint-".concat(Md++)}).\u0275fac=function(e){return new(e||Td)},Td.\u0275dir=a.yc({type:Td,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(a.qc("id",t.id)("align",null),a.tc("mat-right","end"==t.align))},inputs:{align:"align",id:"id"}}),Td),jd=((Ad=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ad)},Ad.\u0275dir=a.yc({type:Ad,selectors:[["mat-label"]]}),Ad),Fd=((Ed=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ed)},Ed.\u0275dir=a.yc({type:Ed,selectors:[["mat-placeholder"]]}),Ed),Nd=((Dd=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Dd)},Dd.\u0275dir=a.yc({type:Dd,selectors:[["","matPrefix",""]]}),Dd),zd=((Od=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Od)},Od.\u0275dir=a.yc({type:Od,selectors:[["","matSuffix",""]]}),Od),Bd=0,Jd=Vn((function e(t){_classCallCheck(this,e),this._elementRef=t}),"primary"),Vd=new a.x("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Hd=new a.x("MatFormField"),Ud=((Rd=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=t.call(this,e))._elementRef=e,u._changeDetectorRef=n,u._dir=r,u._defaults=o,u._platform=s,u._ngZone=c,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new Lt.a,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-".concat(Bd++),u._labelId="mat-form-field-label-".concat(Bd++),u._labelOptions=a||{},u.floatLabel=u._getDefaultFloatLabelState(),u._animationsEnabled="NoopAnimations"!==l,u.appearance=o&&o.appearance?o.appearance:"legacy",u._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,u}return _createClass(i,[{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(An(null)).subscribe((function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Ol(this._destroyed)).subscribe((function(){return e._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.asObservable().pipe(Ol(e._destroyed)).subscribe((function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()}))})),Object(al.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(An(null)).subscribe((function(){e._processHints(),e._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(An(null)).subscribe((function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(Ol(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e.updateOutlineGap()}))})):e.updateOutlineGap()}))}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!!this._labelChild}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,rl(this._label.nativeElement,"transitionend").pipe(ui(1)).subscribe((function(){e._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){var e,t,i=this;this._hintChildren&&this._hintChildren.forEach((function(n){if("start"===n.align){if(e||i.hintLabel)throw Id("start");e=n}else if("end"===n.align){if(t)throw Id("end");t=n}}))}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if("hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find((function(e){return"start"===e.align})):null,i=this._hintChildren?this._hintChildren.find((function(e){return"end"===e.align})):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),i&&e.push(i.id)}else this._errorChildren&&(e=this._errorChildren.map((function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,i=0,n=this._connectionContainerRef.nativeElement,a=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=n.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var s,c=this._getStartEnd(o),l=this._getStartEnd(e.children[0].getBoundingClientRect()),u=0,d=_createForOfIteratorHelper(e.children);try{for(d.s();!(s=d.n()).done;)u+=s.value.offsetWidth}catch(f){d.e(f)}finally{d.f()}t=Math.abs(l-c)-5,i=u>0?.75*u+10:0}for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:Yt,n=(t=e)instanceof Date&&!isNaN(+t)?+e-i.now():Math.abs(e);return function(e){return e.lift(new qd(n,i))}}var qd=function(){function e(t,i){_classCallCheck(this,e),this.delay=t,this.scheduler=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new $d(e,this.delay,this.scheduler))}}]),e}(),$d=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e)).delay=n,r.scheduler=a,r.queue=[],r.active=!1,r.errored=!1,r}return _createClass(i,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(i.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,i=new Kd(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Hl.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Hl.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,i=t.queue,n=e.scheduler,a=e.destination;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(a);if(i.length>0){var r=Math.max(0,i[0].time-n.now());this.schedule(e,r)}else this.unsubscribe(),t.active=!1}}]),i}(Vt.a),Kd=function e(t,i){_classCallCheck(this,e),this.time=t,this.notification=i},Xd=["panel"];function Yd(e,t){if(1&e&&(a.Jc(0,"div",0,1),a.ed(2),a.Ic()),2&e){var i=a.ad();a.gd("id",i.id)("ngClass",i._classList)}}var Zd,Qd,eh,th,ih=["*"],nh=0,ah=function e(t,i){_classCallCheck(this,e),this.source=t,this.option=i},rh=Hn((function e(){_classCallCheck(this,e)})),oh=new a.x("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),sh=((Qd=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r){var o;return _classCallCheck(this,i),(o=t.call(this))._changeDetectorRef=e,o._elementRef=n,o._activeOptionChanges=jt.a.EMPTY,o.showPanel=!1,o._isOpen=!1,o.displayWith=null,o.optionSelected=new a.u,o.opened=new a.u,o.closed=new a.u,o.optionActivated=new a.u,o._classList={},o.id="mat-autocomplete-".concat(nh++),o._autoActiveFirstOption=!!r.autoActiveFirstOption,o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new Ki(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe((function(t){e.optionActivated.emit({source:e,option:e.options.toArray()[t]||null})})),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(e){var t=new ah(this,e);this.optionSelected.emit(t)}},{key:"_setVisibilityClasses",value:function(e){e["mat-autocomplete-visible"]=this.showPanel,e["mat-autocomplete-hidden"]=!this.showPanel}},{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(e){this._autoActiveFirstOption=fi(e)}},{key:"classList",set:function(e){this._classList=e&&e.length?e.split(" ").reduce((function(e,t){return e[t.trim()]=!0,e}),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}}]),i}(rh)).\u0275fac=function(e){return new(e||Qd)(a.Dc(a.j),a.Dc(a.r),a.Dc(oh))},Qd.\u0275cmp=a.xc({type:Qd,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,za,!0),a.vc(i,Ma,!0)),2&e&&(a.md(n=a.Xc())&&(t.options=n),a.md(n=a.Xc())&&(t.optionGroups=n))},viewQuery:function(e,t){var i;1&e&&(a.xd(a.Y,!0),a.Fd(Xd,!0)),2&e&&(a.md(i=a.Xc())&&(t.template=i.first),a.md(i=a.Xc())&&(t.panel=i.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[a.oc([{provide:Na,useExisting:Qd}]),a.mc],ngContentSelectors:ih,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(a.fd(),a.zd(0,Yd,3,2,"ng-template"))},directives:[yt.q],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),Qd),ch=((Zd=function e(t){_classCallCheck(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||Zd)(a.Dc(a.r))},Zd.\u0275dir=a.yc({type:Zd,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),Zd),lh=new a.x("mat-autocomplete-scroll-strategy"),uh={provide:lh,deps:[Xu],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},dh={provide:fr,useExisting:Object(a.hb)((function(){return hh})),multi:!0},hh=((th=function(){function e(t,i,n,a,r,o,s,c,l,u){var d=this;_classCallCheck(this,e),this._element=t,this._overlay=i,this._viewContainerRef=n,this._zone=a,this._changeDetectorRef=r,this._dir=s,this._formField=c,this._document=l,this._viewportRuler=u,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=jt.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Lt.a,this._windowBlurHandler=function(){d._canOpenOnNextFocus=d._document.activeElement!==d._element.nativeElement||d.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=nl((function(){return d.autocomplete&&d.autocomplete.options?Object(al.a).apply(void 0,_toConsumableArray(d.autocomplete.options.map((function(e){return e.onSelectionChange})))):d._zone.onStable.asObservable().pipe(ui(1),Tl((function(){return d.optionSelections})))})),this._scrollStrategy=o}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this,t=this._getWindow();void 0!==t&&(this._zone.runOutsideAngular((function(){t.addEventListener("blur",e._windowBlurHandler)})),this._isInsideShadowRoot=!!Pi(this._element.nativeElement))}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"_getOutsideClickStream",value:function(){var e=this;return Object(al.a)(rl(this._document,"click"),rl(this._document,"touchend")).pipe(ii((function(t){var i=e._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,n=e._formField?e._formField._elementRef.nativeElement:null;return e._overlayAttached&&i!==e._element.nativeElement&&(!n||!n.contains(i))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(i)})))}},{key:"writeValue",value:function(e){var t=this;Promise.resolve(null).then((function(){return t._setTriggerValue(e)}))}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;if(27===t&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var i=this.autocomplete._keyManager.activeItem,n=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption()}}},{key:"_handleInput",value:function(e){var t=e.target,i=t.value;"number"===t.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_scrollToOption",value:function(){var e=this.autocomplete._keyManager.activeItemIndex||0,t=Ba(e,this.autocomplete.options,this.autocomplete.optionGroups);if(0===e&&1===t)this.autocomplete._setScrollTop(0);else{var i=Ja(e+t,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}},{key:"_subscribeToClosingActions",value:function(){var e=this,t=this._zone.onStable.asObservable().pipe(ui(1)),i=this.autocomplete.options.changes.pipe(Gt((function(){return e._positionStrategy.reapplyLastPosition()})),Wd(0));return Object(al.a)(t,i).pipe(Tl((function(){var t=e.panelOpen;return e._resetActiveItem(),e.autocomplete._setVisibility(),e.panelOpen&&(e._overlayRef.updatePosition(),t!==e.panelOpen&&e.autocomplete.opened.emit()),e.panelClosingActions})),ui(1)).subscribe((function(t){return e._setValueAndClose(t)}))}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(e){var t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,i=null!=t?t:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}},{key:"_setValueAndClose",value:function(e){e&&e.source&&(this._clearPreviousSelectedOption(e.source),this._setTriggerValue(e.source.value),this._onChange(e.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(e.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach((function(t){t!=e&&t.selected&&t.deselect()}))}},{key:"_attachOverlay",value:function(){var e=this;if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");var t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new su(this.autocomplete.template,this._viewContainerRef),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe((function(t){(27===t.keyCode||38===t.keyCode&&t.altKey)&&(e._resetActiveItem(),e._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())})),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe((function(){e.panelOpen&&t&&t.updateSize({width:e._getPanelWidth()})})))),t&&!t.hasAttached()&&(t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){return new Iu({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var t,i={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},n={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};t="above"===this.position?[n]:"below"===this.position?[i]:[i,n],e.withPositions(t)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=fi(e)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var e=this;return Object(al.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ii((function(){return e._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ii((function(){return e._overlayAttached}))):Bt()).pipe(Object(ri.a)((function(e){return e instanceof Fa?e:null})))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),e}()).\u0275fac=function(e){return new(e||th)(a.Dc(a.r),a.Dc(Xu),a.Dc(a.cb),a.Dc(a.I),a.Dc(a.j),a.Dc(lh),a.Dc(Cn,8),a.Dc(Hd,9),a.Dc(yt.e,8),a.Dc(Zl))},th.\u0275dir=a.yc({type:th,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&a.Wc("focusin",(function(){return t._handleFocus()}))("blur",(function(){return t._onTouched()}))("input",(function(e){return t._handleInput(e)}))("keydown",(function(e){return t._handleKeydown(e)})),2&e&&a.qc("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",!t.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[a.oc([dh]),a.nc]}),th),ph=((eh=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:eh}),eh.\u0275inj=a.Ac({factory:function(e){return new(e||eh)},providers:[uh],imports:[[Wa,id,Bn,yt.c],Wa,Bn]}),eh);function fh(e,t){}var mh=function e(){_classCallCheck(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},gh={dialogContainer:o("dialogContainer",[d("void, exit",u({opacity:0,transform:"scale(0.7)"})),d("enter",u({transform:"none"})),p("* => enter",s("150ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"none",opacity:1}))),p("* => void, * => exit",s("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",u({opacity:0})))])};function vh(){throw Error("Attempting to attach dialog content after content is already attached")}var bh,_h,yh,kh,wh,Ch,xh=((bh=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s){var c;return _classCallCheck(this,i),(c=t.call(this))._elementRef=e,c._focusTrapFactory=n,c._changeDetectorRef=r,c._config=s,c._elementFocusedBeforeDialogWasOpened=null,c._state="enter",c._animationStateChanged=new a.u,c.attachDomPortal=function(e){return c._portalOutlet.hasAttached()&&vh(),c._savePreviouslyFocusedElement(),c._portalOutlet.attachDomPortal(e)},c._ariaLabelledBy=s.ariaLabelledBy||null,c._document=o,c}return _createClass(i,[{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached()&&vh(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached()&&vh(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_trapFocus",value:function(){var e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var t=this._document.activeElement;t===e||e.contains(t)||e.focus()}}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,i=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==i&&!i.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var e=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return e._elementRef.nativeElement.focus()})))}},{key:"_onAnimationDone",value:function(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)}},{key:"_onAnimationStart",value:function(e){this._animationStateChanged.emit(e)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),i}(lu)).\u0275fac=function(e){return new(e||bh)(a.Dc(a.r),a.Dc(nn),a.Dc(a.j),a.Dc(yt.e,8),a.Dc(mh))},bh.\u0275cmp=a.xc({type:bh,selectors:[["mat-dialog-container"]],viewQuery:function(e,t){var i;1&e&&a.xd(hu,!0),2&e&&a.md(i=a.Xc())&&(t._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&a.uc("@dialogContainer.start",(function(e){return t._onAnimationStart(e)}))("@dialogContainer.done",(function(e){return t._onAnimationDone(e)})),2&e&&(a.qc("id",t._id)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),a.Ed("@dialogContainer",t._state))},features:[a.mc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&a.zd(0,fh,0,0,"ng-template",0)},directives:[hu],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[gh.dialogContainer]}}),bh),Sh=0,Ih=function(){function e(t,i){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(Sh++);_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=i,this.id=a,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Lt.a,this._afterClosed=new Lt.a,this._beforeClosed=new Lt.a,this._state=0,i._id=a,i._animationStateChanged.pipe(ii((function(e){return"done"===e.phaseName&&"enter"===e.toState})),ui(1)).subscribe((function(){n._afterOpened.next(),n._afterOpened.complete()})),i._animationStateChanged.pipe(ii((function(e){return"done"===e.phaseName&&"exit"===e.toState})),ui(1)).subscribe((function(){clearTimeout(n._closeFallbackTimeout),n._overlayRef.dispose()})),t.detachments().subscribe((function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()})),t.keydownEvents().pipe(ii((function(e){return 27===e.keyCode&&!n.disableClose&&!Jt(e)}))).subscribe((function(e){e.preventDefault(),n.close()}))}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(ii((function(e){return"start"===e.phaseName})),ui(1)).subscribe((function(i){t._beforeClosed.next(e),t._beforeClosed.complete(),t._state=2,t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout((function(){t._overlayRef.dispose()}),i.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}(),Oh=new a.x("MatDialogData"),Dh=new a.x("mat-dialog-default-options"),Eh=new a.x("mat-dialog-scroll-strategy"),Ah={provide:Eh,deps:[Xu],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},Th=((Ch=function(){function e(t,i,n,a,r,o,s){var c=this;_classCallCheck(this,e),this._overlay=t,this._injector=i,this._defaultOptions=a,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Lt.a,this._afterOpenedAtThisLevel=new Lt.a,this._ariaHiddenElements=new Map,this.afterAllClosed=nl((function(){return c.openDialogs.length?c._afterAllClosed:c._afterAllClosed.pipe(An(void 0))})),this._scrollStrategy=r}return _createClass(e,[{key:"open",value:function(e,t){var i=this;if((t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new mh)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'.concat(t.id,'" exists already. The dialog id must be unique.'));var n=this._createOverlay(t),a=this._attachDialogContainer(n,t),r=this._attachDialogContent(e,a,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe((function(){return i._removeOpenDialog(r)})),this.afterOpened.next(r),r}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find((function(t){return t.id===e}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new Iu({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var i=a.y.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:mh,useValue:t}]}),n=new ou(xh,t.viewContainerRef,i,t.componentFactoryResolver);return e.attach(n).instance}},{key:"_attachDialogContent",value:function(e,t,i,n){var r=new Ih(i,t,n.id);if(n.hasBackdrop&&i.backdropClick().subscribe((function(){r.disableClose||r.close()})),e instanceof a.Y)t.attachTemplatePortal(new su(e,null,{$implicit:n.data,dialogRef:r}));else{var o=this._createInjector(n,r,t),s=t.attachComponentPortal(new ou(e,n.viewContainerRef,o));r.componentInstance=s.instance}return r.updateSize(n.width,n.height).updatePosition(n.position),r}},{key:"_createInjector",value:function(e,t,i){var n=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:xh,useValue:i},{provide:Oh,useValue:e.data},{provide:Ih,useValue:t}];return!e.direction||n&&n.get(Cn,null)||r.push({provide:Cn,useValue:{value:e.direction,change:Bt()}}),a.y.create({parent:n||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,i=t.length-1;i>-1;i--){var n=t[i];n===e||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_afterAllClosed",get:function(){var e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel}}]),e}()).\u0275fac=function(e){return new(e||Ch)(a.Sc(Xu),a.Sc(a.y),a.Sc(yt.n,8),a.Sc(Dh,8),a.Sc(Eh),a.Sc(Ch,12),a.Sc(Lu))},Ch.\u0275prov=a.zc({token:Ch,factory:Ch.\u0275fac}),Ch),Ph=0,Rh=((wh=function(){function e(t,i,n){_classCallCheck(this,e),this.dialogRef=t,this._elementRef=i,this._dialog=n,this.type="button"}return _createClass(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=Fh(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}}]),e}()).\u0275fac=function(e){return new(e||wh)(a.Dc(Ih,8),a.Dc(a.r),a.Dc(Th))},wh.\u0275dir=a.yc({type:wh,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.dialogRef.close(t.dialogResult)})),2&e&&a.qc("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[a.nc]}),wh),Mh=((kh=function(){function e(t,i,n){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=i,this._dialog=n,this.id="mat-dialog-title-".concat(Ph++)}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=Fh(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)}))}}]),e}()).\u0275fac=function(e){return new(e||kh)(a.Dc(Ih,8),a.Dc(a.r),a.Dc(Th))},kh.\u0275dir=a.yc({type:kh,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&a.Mc("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),kh),Lh=((yh=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||yh)},yh.\u0275dir=a.yc({type:yh,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),yh),jh=((_h=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||_h)},_h.\u0275dir=a.yc({type:_h,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),_h);function Fh(e,t){for(var i=e.nativeElement.parentElement;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?t.find((function(e){return e.id===i.id})):null}var Nh,zh,Bh,Jh,Vh=((Jh=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Jh}),Jh.\u0275inj=a.Ac({factory:function(e){return new(e||Jh)},providers:[Th,Ah],imports:[[id,mu,Bn],Bn]}),Jh),Hh=0,Uh=((Bh=function(){function e(){_classCallCheck(this,e),this._stateChanges=new Lt.a,this._openCloseAllActions=new Lt.a,this.id="cdk-accordion-".concat(Hh++),this._multi=!1}return _createClass(e,[{key:"openAll",value:function(){this._openCloseAll(!0)}},{key:"closeAll",value:function(){this._openCloseAll(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_openCloseAll",value:function(e){this.multi&&this._openCloseAllActions.next(e)}},{key:"multi",get:function(){return this._multi},set:function(e){this._multi=fi(e)}}]),e}()).\u0275fac=function(e){return new(e||Bh)},Bh.\u0275dir=a.yc({type:Bh,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a.nc]}),Bh),Gh=0,Wh=((zh=function(){function e(t,i,n){var r=this;_classCallCheck(this,e),this.accordion=t,this._changeDetectorRef=i,this._expansionDispatcher=n,this._openCloseAllSubscription=jt.a.EMPTY,this.closed=new a.u,this.opened=new a.u,this.destroyed=new a.u,this.expandedChange=new a.u,this.id="cdk-accordion-child-".concat(Gh++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen((function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe((function(t){e.disabled||(e.expanded=t)}))}},{key:"expanded",get:function(){return this._expanded},set:function(e){e=fi(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e)}}]),e}()).\u0275fac=function(e){return new(e||zh)(a.Dc(Uh,12),a.Dc(a.j),a.Dc(ar))},zh.\u0275dir=a.yc({type:zh,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a.oc([{provide:Uh,useValue:void 0}])]}),zh),qh=((Nh=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Nh}),Nh.\u0275inj=a.Ac({factory:function(e){return new(e||Nh)}}),Nh),$h=["body"];function Kh(e,t){}var Xh=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Yh=["mat-expansion-panel-header","*","mat-action-row"],Zh=function(e,t){return{collapsedHeight:e,expandedHeight:t}},Qh=function(e,t){return{value:e,params:t}};function ep(e,t){if(1&e&&a.Ec(0,"span",2),2&e){var i=a.ad();a.gd("@indicatorRotate",i._getExpandedState())}}var tp,ip,np,ap,rp,op,sp,cp,lp,up,dp,hp,pp,fp=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],mp=["mat-panel-title","mat-panel-description","*"],gp=new a.x("MAT_ACCORDION"),vp={indicatorRotate:o("indicatorRotate",[d("collapsed, void",u({transform:"rotate(0deg)"})),d("expanded",u({transform:"rotate(180deg)"})),p("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:o("expansionHeight",[d("collapsed, void",u({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),d("expanded",u({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),p("expanded <=> collapsed, void => collapsed",c([m("@indicatorRotate",f(),{optional:!0}),s("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:o("bodyExpansion",[d("collapsed, void",u({height:"0px",visibility:"hidden"})),d("expanded",u({height:"*",visibility:"visible"})),p("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},bp=((tp=function e(t){_classCallCheck(this,e),this._template=t}).\u0275fac=function(e){return new(e||tp)(a.Dc(a.Y))},tp.\u0275dir=a.yc({type:tp,selectors:[["ng-template","matExpansionPanelContent",""]]}),tp),_p=0,yp=new a.x("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),kp=((sp=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=t.call(this,e,n,r))._viewContainerRef=o,u._animationMode=c,u._hideToggle=!1,u.afterExpand=new a.u,u.afterCollapse=new a.u,u._inputChanges=new Lt.a,u._headerId="mat-expansion-panel-header-".concat(_p++),u._bodyAnimationDone=new Lt.a,u.accordion=e,u._document=s,u._bodyAnimationDone.pipe(gl((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){"void"!==e.fromState&&("expanded"===e.toState?u.afterExpand.emit():"collapsed"===e.toState&&u.afterCollapse.emit())})),l&&(u.hideToggle=l.hideToggle),u}return _createClass(i,[{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe(An(null),ii((function(){return e.expanded&&!e._portal})),ui(1)).subscribe((function(){e._portal=new su(e._lazyContent._template,e._viewContainerRef)}))}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}},{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=fi(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}}]),i}(Wh)).\u0275fac=function(e){return new(e||sp)(a.Dc(gp,12),a.Dc(a.j),a.Dc(ar),a.Dc(a.cb),a.Dc(yt.e),a.Dc(Pt,8),a.Dc(yp,8))},sp.\u0275cmp=a.xc({type:sp,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,bp,!0),2&e&&a.md(n=a.Xc())&&(t._lazyContent=n.first)},viewQuery:function(e,t){var i;1&e&&a.Fd($h,!0),2&e&&a.md(i=a.Xc())&&(t._body=i.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&a.tc("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[a.oc([{provide:gp,useValue:void 0}]),a.mc,a.nc],ngContentSelectors:Yh,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(a.fd(Xh),a.ed(0),a.Jc(1,"div",0,1),a.Wc("@bodyExpansion.done",(function(e){return t._bodyAnimationDone.next(e)})),a.Jc(3,"div",2),a.ed(4,1),a.zd(5,Kh,0,0,"ng-template",3),a.Ic(),a.ed(6,2),a.Ic()),2&e&&(a.pc(1),a.gd("@bodyExpansion",t._getExpandedState())("id",t.id),a.qc("aria-labelledby",t._headerId),a.pc(4),a.gd("cdkPortalOutlet",t._portal))},directives:[hu],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[vp.bodyExpansion]},changeDetection:0}),sp),wp=((op=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||op)},op.\u0275dir=a.yc({type:op,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),op),Cp=((rp=function(){function e(t,i,n,a,r){var o=this;_classCallCheck(this,e),this.panel=t,this._element=i,this._focusMonitor=n,this._changeDetectorRef=a,this._parentChangeSubscription=jt.a.EMPTY,this._animationsDisabled=!0;var s=t.accordion?t.accordion._stateChanges.pipe(ii((function(e){return!(!e.hideToggle&&!e.togglePosition)}))):ci;this._parentChangeSubscription=Object(al.a)(t.opened,t.closed,s,t._inputChanges.pipe(ii((function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)})))).subscribe((function(){return o._changeDetectorRef.markForCheck()})),t.closed.pipe(ii((function(){return t._containsFocus()}))).subscribe((function(){return n.focusVia(i,"program")})),n.monitor(i).subscribe((function(e){e&&t.accordion&&t.accordion._handleHeaderFocus(o)})),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}return _createClass(e,[{key:"_animationStarted",value:function(){this._animationsDisabled=!1}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_keydown",value:function(e){switch(e.keyCode){case 32:case 13:Jt(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._element,e,t)}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}},{key:"disabled",get:function(){return this.panel.disabled}}]),e}()).\u0275fac=function(e){return new(e||rp)(a.Dc(kp,1),a.Dc(a.r),a.Dc(hn),a.Dc(a.j),a.Dc(yp,8))},rp.\u0275cmp=a.xc({type:rp,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header"],hostVars:19,hostBindings:function(e,t){1&e&&(a.uc("@expansionHeight.start",(function(){return t._animationStarted()})),a.Wc("click",(function(){return t._toggle()}))("keydown",(function(e){return t._keydown(e)}))),2&e&&(a.qc("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),a.Ed("@.disabled",t._animationsDisabled)("@expansionHeight",a.kd(16,Qh,t._getExpandedState(),a.kd(13,Zh,t.collapsedHeight,t.expandedHeight))),a.tc("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:mp,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(a.fd(fp),a.Jc(0,"span",0),a.ed(1),a.ed(2,1),a.ed(3,2),a.Ic(),a.zd(4,ep,1,1,"span",1)),2&e&&(a.pc(4),a.gd("ngIf",t._showToggle()))},directives:[yt.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[vp.indicatorRotate,vp.expansionHeaderHeight]},changeDetection:0}),rp),xp=((ap=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ap)},ap.\u0275dir=a.yc({type:ap,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),ap),Sp=((np=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||np)},np.\u0275dir=a.yc({type:np,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),np),Ip=((ip=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments))._ownHeaders=new a.O,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe(An(this._headers)).subscribe((function(t){e._ownHeaders.reset(t.filter((function(t){return t.panel.accordion===e}))),e._ownHeaders.notifyOnChanges()})),this._keyManager=new Xi(this._ownHeaders).withWrap()}},{key:"_handleHeaderKeydown",value:function(e){var t=e.keyCode,i=this._keyManager;36===t?Jt(e)||(i.setFirstItemActive(),e.preventDefault()):35===t?Jt(e)||(i.setLastItemActive(),e.preventDefault()):this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=fi(e)}}]),i}(Uh)).\u0275fac=function(e){return Op(e||ip)},ip.\u0275dir=a.yc({type:ip,selectors:[["mat-accordion"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,Cp,!0),2&e&&a.md(n=a.Xc())&&(t._headers=n)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a.oc([{provide:gp,useExisting:ip}]),a.mc]}),ip),Op=a.Lc(Ip),Dp=((cp=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:cp}),cp.\u0275inj=a.Ac({factory:function(e){return new(e||cp)},imports:[[yt.c,qh,mu]]}),cp),Ep=["*"],Ap=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],Tp=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],Pp=new a.x("MAT_GRID_LIST"),Rp=((pp=function(){function e(t,i){_classCallCheck(this,e),this._element=t,this._gridList=i,this._rowspan=1,this._colspan=1}return _createClass(e,[{key:"_setStyle",value:function(e,t){this._element.nativeElement.style[e]=t}},{key:"rowspan",get:function(){return this._rowspan},set:function(e){this._rowspan=Math.round(mi(e))}},{key:"colspan",get:function(){return this._colspan},set:function(e){this._colspan=Math.round(mi(e))}}]),e}()).\u0275fac=function(e){return new(e||pp)(a.Dc(a.r),a.Dc(Pp,8))},pp.\u0275cmp=a.xc({type:pp,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(e,t){2&e&&a.qc("rowspan",t.rowspan)("colspan",t.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Ep,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"figure",0),a.ed(1),a.Ic())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),pp),Mp=((hp=function(){function e(t){_classCallCheck(this,e),this._element=t}return _createClass(e,[{key:"ngAfterContentInit",value:function(){pa(this._lines,this._element)}}]),e}()).\u0275fac=function(e){return new(e||hp)(a.Dc(a.r))},hp.\u0275cmp=a.xc({type:hp,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,ha,!0),2&e&&a.md(n=a.Xc())&&(t._lines=n)},ngContentSelectors:Tp,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(e,t){1&e&&(a.fd(Ap),a.ed(0),a.Jc(1,"div",0),a.ed(2,1),a.Ic(),a.ed(3,2))},encapsulation:2,changeDetection:0}),hp),Lp=((dp=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||dp)},dp.\u0275dir=a.yc({type:dp,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),dp),jp=((up=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||up)},up.\u0275dir=a.yc({type:up,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),up),Fp=((lp=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||lp)},lp.\u0275dir=a.yc({type:lp,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),lp),Np=function(){function e(){_classCallCheck(this,e),this.columnIndex=0,this.rowIndex=0}return _createClass(e,[{key:"update",value:function(e,t){var i=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(e),this.tracker.fill(0,0,this.tracker.length),this.positions=t.map((function(e){return i._trackTile(e)}))}},{key:"_trackTile",value:function(e){var t=this._findMatchingGap(e.colspan);return this._markTilePosition(t,e),this.columnIndex=t+e.colspan,new zp(this.rowIndex,t)}},{key:"_findMatchingGap",value:function(e){if(e>this.tracker.length)throw Error("mat-grid-list: tile with colspan ".concat(e," is wider than ")+'grid with cols="'.concat(this.tracker.length,'".'));var t=-1,i=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(t)):-1!=(t=this.tracker.indexOf(0,this.columnIndex))?(i=this._findGapEndIndex(t),this.columnIndex=t+1):(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(t))}while(i-t1?this.rowCount+e-1:this.rowCount}}]),e}(),zp=function e(t,i){_classCallCheck(this,e),this.row=t,this.col=i},Bp=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,Jp=function(){function e(){_classCallCheck(this,e),this._rows=0,this._rowspan=0}return _createClass(e,[{key:"init",value:function(e,t,i,n){this._gutterSize=Wp(e),this._rows=t.rowCount,this._rowspan=t.rowspan,this._cols=i,this._direction=n}},{key:"getBaseTileSize",value:function(e,t){return"(".concat(e,"% - (").concat(this._gutterSize," * ").concat(t,"))")}},{key:"getTilePosition",value:function(e,t){return 0===t?"0":Gp("(".concat(e," + ").concat(this._gutterSize,") * ").concat(t))}},{key:"getTileSize",value:function(e,t){return"(".concat(e," * ").concat(t,") + (").concat(t-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(e,t,i){var n=100/this._cols,a=(this._cols-1)/this._cols;this.setColStyles(e,i,n,a),this.setRowStyles(e,t,n,a)}},{key:"setColStyles",value:function(e,t,i,n){var a=this.getBaseTileSize(i,n);e._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(a,t)),e._setStyle("width",Gp(this.getTileSize(a,e.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(e){return"".concat(this._rowspan," * ").concat(this.getTileSize(e,1))}},{key:"getComputedHeight",value:function(){return null}}]),e}(),Vp=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this)).fixedRowHeight=e,n}return _createClass(i,[{key:"init",value:function(e,t,n,a){if(_get(_getPrototypeOf(i.prototype),"init",this).call(this,e,t,n,a),this.fixedRowHeight=Wp(this.fixedRowHeight),!Bp.test(this.fixedRowHeight))throw Error('Invalid value "'.concat(this.fixedRowHeight,'" set as rowHeight.'))}},{key:"setRowStyles",value:function(e,t){e._setStyle("top",this.getTilePosition(this.fixedRowHeight,t)),e._setStyle("height",Gp(this.getTileSize(this.fixedRowHeight,e.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",Gp("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(e){e._setListStyle(["height",null]),e._tiles&&e._tiles.forEach((function(e){e._setStyle("top",null),e._setStyle("height",null)}))}}]),i}(Jp),Hp=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this))._parseRatio(e),n}return _createClass(i,[{key:"setRowStyles",value:function(e,t,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),e._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,t)),e._setStyle("paddingTop",Gp(this.getTileSize(this.baseTileHeight,e.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",Gp("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(e){e._setListStyle(["paddingBottom",null]),e._tiles.forEach((function(e){e._setStyle("marginTop",null),e._setStyle("paddingTop",null)}))}},{key:"_parseRatio",value:function(e){var t=e.split(":");if(2!==t.length)throw Error('mat-grid-list: invalid ratio given for row-height: "'.concat(e,'"'));this.rowHeightRatio=parseFloat(t[0])/parseFloat(t[1])}}]),i}(Jp),Up=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"setRowStyles",value:function(e,t){var i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);e._setStyle("top",this.getTilePosition(i,t)),e._setStyle("height",Gp(this.getTileSize(i,e.rowspan)))}},{key:"reset",value:function(e){e._tiles&&e._tiles.forEach((function(e){e._setStyle("top",null),e._setStyle("height",null)}))}}]),i}(Jp);function Gp(e){return"calc(".concat(e,")")}function Wp(e){return e.match(/([A-Za-z%]+)$/)?e:"".concat(e,"px")}var qp,$p,Kp=(($p=function(){function e(t,i){_classCallCheck(this,e),this._element=t,this._dir=i,this._gutter="1px"}return _createClass(e,[{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: ')}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(e){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===e?new Up:e&&e.indexOf(":")>-1?new Hp(e):new Vp(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new Np);var t=this._tileCoordinator,i=this._tiles.filter((function(t){return!t._gridList||t._gridList===e})),n=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,i),this._tileStyler.init(this.gutterSize,t,this.cols,n),i.forEach((function(i,n){var a=t.positions[n];e._tileStyler.setStyle(i,a.row,a.col)})),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}},{key:"cols",get:function(){return this._cols},set:function(e){this._cols=Math.max(1,Math.round(mi(e)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(e){this._gutter="".concat(null==e?"":e)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(e){var t="".concat(null==e?"":e);t!==this._rowHeight&&(this._rowHeight=t,this._setTileStyler(this._rowHeight))}}]),e}()).\u0275fac=function(e){return new(e||$p)(a.Dc(a.r),a.Dc(Cn,8))},$p.\u0275cmp=a.xc({type:$p,selectors:[["mat-grid-list"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,Rp,!0),2&e&&a.md(n=a.Xc())&&(t._tiles=n)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("cols",t.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[a.oc([{provide:Pp,useExisting:$p}])],ngContentSelectors:Ep,decls:2,vars:0,template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div"),a.ed(1),a.Ic())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),$p),Xp=((qp=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:qp}),qp.\u0275inj=a.Ac({factory:function(e){return new(e||qp)},imports:[[wa,Bn],wa,Bn]}),qp);function Yp(e){return function(t){var i=new Zp(e),n=t.lift(i);return i.caught=n}}var Zp=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Qp(e,this.selector,this.caught))}}]),e}(),Qp=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e)).selector=n,r.caught=a,r}return _createClass(i,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(r){return void _get(_getPrototypeOf(i.prototype),"error",this).call(this,r)}this._unsubscribeAndRecycle();var n=new Al.a(this,void 0,void 0);this.add(n);var a=Object(yl.a)(this,t,void 0,void 0,n);a!==n&&this.add(a)}}}]),i}(_l.a);function ef(e){return function(t){return t.lift(new tf(e))}}var tf=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new nf(e,this.callback))}}]),e}(),nf=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).add(new jt.a(n)),a}return i}(Vt.a),af=i("w1tV"),rf=i("5+tZ");function of(e,t){return Object(rf.a)(e,t,1)}var sf=function e(){_classCallCheck(this,e)},cf=function e(){_classCallCheck(this,e)},lf=function(){function e(t){var i=this;_classCallCheck(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){i.headers=new Map,t.split("\n").forEach((function(e){var t=e.indexOf(":");if(t>0){var n=e.slice(0,t),a=n.toLowerCase(),r=e.slice(t+1).trim();i.maybeSetNormalizedName(n,a),i.headers.has(a)?i.headers.get(a).push(r):i.headers.set(a,[r])}}))}:function(){i.headers=new Map,Object.keys(t).forEach((function(e){var n=t[e],a=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(i.headers.set(a,n),i.maybeSetNormalizedName(e,a))}))}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(e){return t.applyUpdate(e)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach((function(i){t.headers.set(i,e.headers.get(i)),t.normalizedNames.set(i,e.normalizedNames.get(i))}))}},{key:"clone",value:function(t){var i=new e;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([t]),i}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);var n=("a"===e.op?this.headers.get(t):void 0)||[];n.push.apply(n,_toConsumableArray(i)),this.headers.set(t,n);break;case"d":var a=e.value;if(a){var r=this.headers.get(t);if(!r)return;0===(r=r.filter((function(e){return-1===a.indexOf(e)}))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,r)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(i){return e(t.normalizedNames.get(i),t.headers.get(i))}))}}]),e}(),uf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return df(e)}},{key:"encodeValue",value:function(e){return df(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function df(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var hf=function(){function e(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new uf,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var i=new Map;return e.length>0&&e.split("&").forEach((function(e){var n=e.indexOf("="),a=_slicedToArray(-1==n?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,n)),t.decodeValue(e.slice(n+1))],2),r=a[0],o=a[1],s=i.get(r)||[];s.push(o),i.set(r,s)})),i}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach((function(e){var n=i.fromObject[e];t.map.set(e,Array.isArray(n)?n:[n])}))):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map((function(t){var i=e.encoder.encodeKey(t);return e.map.get(t).map((function(t){return i+"="+e.encoder.encodeValue(t)})).join("&")})).filter((function(e){return""!==e})).join("&")}},{key:"clone",value:function(t){var i=new e({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat([t]),i}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(t){return e.map.set(t,e.cloneFrom.map.get(t))})),this.updates.forEach((function(t){switch(t.op){case"a":case"s":var i=("a"===t.op?e.map.get(t.param):void 0)||[];i.push(t.value),e.map.set(t.param,i);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var n=e.map.get(t.param)||[],a=n.indexOf(t.value);-1!==a&&n.splice(a,1),n.length>0?e.map.set(t.param,n):e.map.delete(t.param)}})),this.cloneFrom=this.updates=null)}}]),e}();function pf(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function ff(e){return"undefined"!=typeof Blob&&e instanceof Blob}function mf(e){return"undefined"!=typeof FormData&&e instanceof FormData}var gf=function(){function e(t,i,n,a){var r;if(_classCallCheck(this,e),this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||a?(this.body=void 0!==n?n:null,r=a):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new lf),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=i;else{var s=i.indexOf("?");this.urlWithParams=i+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=t.method||this.method,n=t.url||this.url,a=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((function(e,i){return e.set(i,t.setHeaders[i])}),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((function(e,i){return e.set(i,t.setParams[i])}),l)),new e(i,n,r,{params:l,headers:c,reportProgress:s,responseType:a,withCredentials:o})}}]),e}(),vf=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}(),bf=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new lf,this.status=void 0!==t.status?t.status:i,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},_f=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(e=t.call(this,n)).type=vf.ResponseHeader,e}return _createClass(i,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),i}(bf),yf=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(e=t.call(this,n)).type=vf.Response,e.body=void 0!==n.body?n.body:null,e}return _createClass(i,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),i}(bf),kf=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),n.error=e.error||null,n}return i}(bf);function wf(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Cf,xf,Sf,If,Of,Df,Ef,Af,Tf,Pf=((Cf=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var i,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof gf)i=e;else{var r=void 0;r=a.headers instanceof lf?a.headers:new lf(a.headers);var o=void 0;a.params&&(o=a.params instanceof hf?a.params:new hf({fromObject:a.params})),i=new gf(e,t,void 0!==a.body?a.body:null,{headers:r,params:o,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials})}var s=Bt(i).pipe(of((function(e){return n.handler.handle(e)})));if(e instanceof gf||"events"===a.observe)return s;var c=s.pipe(ii((function(e){return e instanceof yf})));switch(a.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return c.pipe(Object(ri.a)((function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return c.pipe(Object(ri.a)((function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return c.pipe(Object(ri.a)((function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));case"json":default:return c.pipe(Object(ri.a)((function(e){return e.body})))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new hf).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,wf(i,t))}},{key:"post",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,wf(i,t))}},{key:"put",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,wf(i,t))}}]),e}()).\u0275fac=function(e){return new(e||Cf)(a.Sc(sf))},Cf.\u0275prov=a.zc({token:Cf,factory:Cf.\u0275fac}),Cf),Rf=function(){function e(t,i){_classCallCheck(this,e),this.next=t,this.interceptor=i}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Mf=new a.x("HTTP_INTERCEPTORS"),Lf=((xf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||xf)},xf.\u0275prov=a.zc({token:xf,factory:xf.\u0275fac}),xf),jf=/^\)\]\}',?\n/,Ff=function e(){_classCallCheck(this,e)},Nf=((If=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||If)},If.\u0275prov=a.zc({token:If,factory:If.\u0275fac}),If),zf=((Sf=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new si.a((function(i){var n=t.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((function(e,t){return n.setRequestHeader(e,t.join(","))})),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var a=e.detectContentTypeHeader();null!==a&&n.setRequestHeader("Content-Type",a)}if(e.responseType){var r=e.responseType.toLowerCase();n.responseType="json"!==r?r:"text"}var o=e.serializeBody(),s=null,c=function(){if(null!==s)return s;var t=1223===n.status?204:n.status,i=n.statusText||"OK",a=new lf(n.getAllResponseHeaders()),r=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return s=new _f({headers:a,status:t,statusText:i,url:r})},l=function(){var t=c(),a=t.headers,r=t.status,o=t.statusText,s=t.url,l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);var u=r>=200&&r<300;if("json"===e.responseType&&"string"==typeof l){var d=l;l=l.replace(jf,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=d,u&&(u=!1,l={error:h,text:l})}}u?(i.next(new yf({body:l,headers:a,status:r,statusText:o,url:s||void 0})),i.complete()):i.error(new kf({error:l,headers:a,status:r,statusText:o,url:s||void 0}))},u=function(e){var t=c().url,a=new kf({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:t||void 0});i.error(a)},d=!1,h=function(t){d||(i.next(c()),d=!0);var a={type:vf.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(a.total=t.total),"text"===e.responseType&&n.responseText&&(a.partialText=n.responseText),i.next(a)},p=function(e){var t={type:vf.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),i.next(t)};return n.addEventListener("load",l),n.addEventListener("error",u),e.reportProgress&&(n.addEventListener("progress",h),null!==o&&n.upload&&n.upload.addEventListener("progress",p)),n.send(o),i.next({type:vf.Sent}),function(){n.removeEventListener("error",u),n.removeEventListener("load",l),e.reportProgress&&(n.removeEventListener("progress",h),null!==o&&n.upload&&n.upload.removeEventListener("progress",p)),n.abort()}}))}}]),e}()).\u0275fac=function(e){return new(e||Sf)(a.Sc(Ff))},Sf.\u0275prov=a.zc({token:Sf,factory:Sf.\u0275fac}),Sf),Bf=new a.x("XSRF_COOKIE_NAME"),Jf=new a.x("XSRF_HEADER_NAME"),Vf=function e(){_classCallCheck(this,e)},Hf=((Tf=function(){function e(t,i,n){_classCallCheck(this,e),this.doc=t,this.platform=i,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(yt.O)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||Tf)(a.Sc(yt.e),a.Sc(a.M),a.Sc(Bf))},Tf.\u0275prov=a.zc({token:Tf,factory:Tf.\u0275fac}),Tf),Uf=((Af=function(){function e(t,i){_classCallCheck(this,e),this.tokenService=t,this.headerName=i}return _createClass(e,[{key:"intercept",value:function(e,t){var i=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||i.startsWith("http://")||i.startsWith("https://"))return t.handle(e);var n=this.tokenService.getToken();return null===n||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,n)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Af)(a.Sc(Vf),a.Sc(Jf))},Af.\u0275prov=a.zc({token:Af,factory:Af.\u0275fac}),Af),Gf=((Ef=function(){function e(t,i){_classCallCheck(this,e),this.backend=t,this.injector=i,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Mf,[]);this.chain=t.reduceRight((function(e,t){return new Rf(e,t)}),this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Ef)(a.Sc(cf),a.Sc(a.y))},Ef.\u0275prov=a.zc({token:Ef,factory:Ef.\u0275fac}),Ef),Wf=((Df=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Uf,useClass:Lf}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Bf,useValue:t.cookieName}:[],t.headerName?{provide:Jf,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=a.Bc({type:Df}),Df.\u0275inj=a.Ac({factory:function(e){return new(e||Df)},providers:[Uf,{provide:Mf,useExisting:Uf,multi:!0},{provide:Vf,useClass:Hf},{provide:Bf,useValue:"XSRF-TOKEN"},{provide:Jf,useValue:"X-XSRF-TOKEN"}]}),Df),qf=((Of=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Of}),Of.\u0275inj=a.Ac({factory:function(e){return new(e||Of)},providers:[Pf,{provide:sf,useClass:Gf},zf,{provide:cf,useExisting:zf},Nf,{provide:Ff,useExisting:Nf}],imports:[[Wf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Of),$f=["*"];function Kf(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function Xf(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function Yf(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var Zf,Qf=function e(t,i){_classCallCheck(this,e),this.options=i,t.nodeName?this.svgElement=t:this.url=t},em=((Zf=function(){function e(t,i,n,a){_classCallCheck(this,e),this._httpClient=t,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return _createClass(e,[{key:"addSvgIcon",value:function(e,t,i){return this.addSvgIconInNamespace("",e,t,i)}},{key:"addSvgIconLiteral",value:function(e,t,i){return this.addSvgIconLiteralInNamespace("",e,t,i)}},{key:"addSvgIconInNamespace",value:function(e,t,i,n){return this._addSvgIconConfig(e,t,new Qf(i,n))}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,i,n){var r=this._sanitizer.sanitize(a.T.HTML,i);if(!r)throw Yf(i);var o=this._createSvgElementForSingleIcon(r,n);return this._addSvgIconConfig(e,t,new Qf(o,n))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,i){return this._addSvgIconSetConfig(e,new Qf(t,i))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,i){var n=this._sanitizer.sanitize(a.T.HTML,t);if(!n)throw Yf(t);var r=this._svgElementFromString(n);return this._addSvgIconSetConfig(e,new Qf(r,i))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,i=this._sanitizer.sanitize(a.T.RESOURCE_URL,e);if(!i)throw Xf(e);var n=this._cachedIconsByUrl.get(i);return n?Bt(tm(n)):this._loadSvgIconFromConfig(new Qf(e)).pipe(Gt((function(e){return t._cachedIconsByUrl.set(i,e)})),Object(ri.a)((function(e){return tm(e)})))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=im(t,e),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);var a=this._iconSetConfigs.get(t);return a?this._getSvgFromIconSetConfigs(e,a):jl(Kf(i))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgElement?Bt(tm(e.svgElement)):this._loadSvgIconFromConfig(e).pipe(Gt((function(t){return e.svgElement=t})),Object(ri.a)((function(e){return tm(e)})))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var i=this,n=this._extractIconWithNameFromAnySet(e,t);return n?Bt(n):cr(t.filter((function(e){return!e.svgElement})).map((function(e){return i._loadSvgIconSetFromConfig(e).pipe(Yp((function(t){var n="Loading icon set URL: ".concat(i._sanitizer.sanitize(a.T.RESOURCE_URL,e.url)," failed: ").concat(t.message);return i._errorHandler?i._errorHandler.handleError(new Error(n)):console.error(n),Bt(null)})))}))).pipe(Object(ri.a)((function(){var n=i._extractIconWithNameFromAnySet(e,t);if(!n)throw Kf(e);return n})))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var i=t.length-1;i>=0;i--){var n=t[i];if(n.svgElement){var a=this._extractSvgIconFromSet(n.svgElement,e,n.options);if(a)return a}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchUrl(e.url).pipe(Object(ri.a)((function(i){return t._createSvgElementForSingleIcon(i,e.options)})))}},{key:"_loadSvgIconSetFromConfig",value:function(e){var t=this;return e.svgElement?Bt(e.svgElement):this._fetchUrl(e.url).pipe(Object(ri.a)((function(i){return e.svgElement||(e.svgElement=t._svgElementFromString(i)),e.svgElement})))}},{key:"_createSvgElementForSingleIcon",value:function(e,t){var i=this._svgElementFromString(e);return this._setSvgAttributes(i,t),i}},{key:"_extractSvgIconFromSet",value:function(e,t,i){var n=e.querySelector('[id="'.concat(t,'"]'));if(!n)return null;var a=n.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,i);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),i);var r=this._svgElementFromString("");return r.appendChild(a),this._setSvgAttributes(r,i)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var i=t.querySelector("svg");if(!i)throw Error(" tag not found");return i}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),i=e.attributes,n=0;n0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var i=this._elementRef.nativeElement,n=i.value;if(t||this._minRows!==this._previousMinRows||n!==this._previousValue){var a=i.placeholder;i.classList.add("cdk-textarea-autosize-measuring"),i.placeholder="",i.style.height="".concat(i.scrollHeight-4,"px"),i.classList.remove("cdk-textarea-autosize-measuring"),i.placeholder=a,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return e._scrollToCaretPosition(i)})):setTimeout((function(){return e._scrollToCaretPosition(i)}))})),this._previousValue=n,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var t=e.selectionStart,i=e.selectionEnd,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==e||e.setSelectionRange(t,i)}},{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=mi(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=mi(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=fi(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}}]),e}()).\u0275fac=function(e){return new(e||sm)(a.Dc(a.r),a.Dc(Ii),a.Dc(a.I),a.Dc(yt.e,8))},sm.\u0275dir=a.yc({type:sm,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&a.Wc("input",(function(){return t._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),sm),Sm=((om=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:om}),om.\u0275inj=a.Ac({factory:function(e){return new(e||om)},imports:[[Oi]]}),om),Im=((rm=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"matAutosizeMinRows",get:function(){return this.minRows},set:function(e){this.minRows=e}},{key:"matAutosizeMaxRows",get:function(){return this.maxRows},set:function(e){this.maxRows=e}},{key:"matAutosize",get:function(){return this.enabled},set:function(e){this.enabled=e}},{key:"matTextareaAutosize",get:function(){return this.enabled},set:function(e){this.enabled=e}}]),i}(xm)).\u0275fac=function(e){return Om(e||rm)},rm.\u0275dir=a.yc({type:rm,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[a.mc]}),rm),Om=a.Lc(Im),Dm=new a.x("MAT_INPUT_VALUE_ACCESSOR"),Em=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Am=0,Tm=Gn((function e(t,i,n,a){_classCallCheck(this,e),this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=a})),Pm=((pm=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s,c,l,u){var d;_classCallCheck(this,i),(d=t.call(this,s,r,o,a))._elementRef=e,d._platform=n,d.ngControl=a,d._autofillMonitor=l,d._uid="mat-input-".concat(Am++),d._isServer=!1,d._isNativeSelect=!1,d.focused=!1,d.stateChanges=new Lt.a,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(e){return Ei().has(e)}));var h=d._elementRef.nativeElement;return d._inputValueAccessor=c||h,d._previousNativeValue=d.value,d.id=d.id,n.IOS&&u.runOutsideAngular((function(){e.nativeElement.addEventListener("keyup",(function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))}))})),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===h.nodeName.toLowerCase(),d._isNativeSelect&&(d.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),d}return _createClass(i,[{key:"ngOnInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()}))}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_isTextarea",value:function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){if(Em.indexOf(this._type)>-1)throw Error('Input type "'.concat(this._type,"\" isn't supported by matInput."))}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=fi(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=fi(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&Ei().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=fi(e)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}}]),i}(Tm)).\u0275fac=function(e){return new(e||pm)(a.Dc(a.r),a.Dc(Ii),a.Dc(Ir,10),a.Dc(Wo,8),a.Dc(os,8),a.Dc(da),a.Dc(Dm,10),a.Dc(wm),a.Dc(a.I))},pm.\u0275dir=a.yc({type:pm,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(e,t){1&e&&a.Wc("blur",(function(){return t._focusChanged(!1)}))("focus",(function(){return t._focusChanged(!0)}))("input",(function(){return t._onInput()})),2&e&&(a.Mc("disabled",t.disabled)("required",t.required),a.qc("id",t.id)("placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-describedby",t._ariaDescribedby||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),a.tc("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[a.oc([{provide:Sd,useExisting:pm}]),a.mc,a.nc]}),pm),Rm=((hm=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:hm}),hm.\u0275inj=a.Ac({factory:function(e){return new(e||hm)},providers:[da],imports:[[Sm,Gd],Sm,Gd]}),hm),Mm=((dm=function(){function e(){_classCallCheck(this,e),this._vertical=!1,this._inset=!1}return _createClass(e,[{key:"vertical",get:function(){return this._vertical},set:function(e){this._vertical=fi(e)}},{key:"inset",get:function(){return this._inset},set:function(e){this._inset=fi(e)}}]),e}()).\u0275fac=function(e){return new(e||dm)},dm.\u0275cmp=a.xc({type:dm,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(a.qc("aria-orientation",t.vertical?"vertical":"horizontal"),a.tc("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),dm),Lm=((um=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:um}),um.\u0275inj=a.Ac({factory:function(e){return new(e||um)},imports:[[Bn],Bn]}),um),jm=["*"],Fm=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Nm=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],zm=["text"];function Bm(e,t){if(1&e&&a.Ec(0,"mat-pseudo-checkbox",5),2&e){var i=a.ad();a.gd("state",i.selected?"checked":"unchecked")("disabled",i.disabled)}}var Jm,Vm,Hm,Um,Gm,Wm,qm,$m,Km,Xm=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Ym=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],Zm=Jn(Hn((function e(){_classCallCheck(this,e)}))),Qm=Hn((function e(){_classCallCheck(this,e)})),eg=((Jm=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments))._stateChanges=new Lt.a,e}return _createClass(i,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Zm)).\u0275fac=function(e){return tg(e||Jm)},Jm.\u0275cmp=a.xc({type:Jm,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[a.mc,a.nc],ngContentSelectors:jm,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.ed(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Jm),tg=a.Lc(eg),ig=((Wm=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this))._elementRef=e,n._stateChanges=new Lt.a,"action-list"===n._getListType()&&e.nativeElement.classList.add("mat-action-list"),n}return _createClass(i,[{key:"_getListType",value:function(){var e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Zm)).\u0275fac=function(e){return new(e||Wm)(a.Dc(a.r))},Wm.\u0275cmp=a.xc({type:Wm,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[a.mc,a.nc],ngContentSelectors:jm,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.ed(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Wm),ng=((Gm=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Gm)},Gm.\u0275dir=a.yc({type:Gm,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Gm),ag=((Um=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Um)},Um.\u0275dir=a.yc({type:Um,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Um),rg=((Hm=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Hm)},Hm.\u0275dir=a.yc({type:Hm,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Hm),og=((Vm=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;_classCallCheck(this,i),(o=t.call(this))._element=e,o._isInteractiveList=!1,o._destroyed=new Lt.a,o._disabled=!1,o._isInteractiveList=!!(a||r&&"action-list"===r._getListType()),o._list=a||r;var s=o._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),o._list&&o._list._stateChanges.pipe(Ol(o._destroyed)).subscribe((function(){n.markForCheck()})),o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){pa(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=fi(e)}}]),i}(Qm)).\u0275fac=function(e){return new(e||Vm)(a.Dc(a.r),a.Dc(a.j),a.Dc(eg,8),a.Dc(ig,8))},Vm.\u0275cmp=a.xc({type:Vm,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,ng,!0),a.vc(i,ag,!0),a.vc(i,ha,!0)),2&e&&(a.md(n=a.Xc())&&(t._avatar=n.first),a.md(n=a.Xc())&&(t._icon=n.first),a.md(n=a.Xc())&&(t._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&a.tc("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[a.mc],ngContentSelectors:Nm,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(a.fd(Fm),a.Jc(0,"div",0),a.Ec(1,"div",1),a.ed(2),a.Jc(3,"div",2),a.ed(4,1),a.Ic(),a.ed(5,2),a.Ic()),2&e&&(a.pc(1),a.gd("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[Da],encapsulation:2,changeDetection:0}),Vm),sg=Hn((function e(){_classCallCheck(this,e)})),cg=Hn((function e(){_classCallCheck(this,e)})),lg={provide:fr,useExisting:Object(a.hb)((function(){return hg})),multi:!0},ug=function e(t,i){_classCallCheck(this,e),this.source=t,this.option=i},dg=((Km=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this))._element=e,r._changeDetector=n,r.selectionList=a,r._selected=!1,r._disabled=!1,r._hasFocus=!1,r.checkboxPosition="after",r._inputsInitialized=!1,r}return _createClass(i,[{key:"ngOnInit",value:function(){var e=this,t=this.selectionList;t._value&&t._value.some((function(i){return t.compareWith(i,e._value)}))&&this._setSelected(!0);var i=this._selected;Promise.resolve().then((function(){(e._selected||i)&&(e.selected=!0,e._changeDetector.markForCheck())})),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){pa(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var e=this;this.selected&&Promise.resolve().then((function(){e.selected=!1}));var t=this._hasFocus,i=this.selectionList._removeOptionFromList(this);t&&i&&i.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"color",get:function(){return this._color||this.selectionList.color},set:function(e){this._color=e}},{key:"value",get:function(){return this._value},set:function(e){this.selected&&e!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=e}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(e){var t=fi(e);t!==this._disabled&&(this._disabled=t,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(e){var t=fi(e);t!==this._selected&&(this._setSelected(t),this.selectionList._reportValueChange())}}]),i}(cg)).\u0275fac=function(e){return new(e||Km)(a.Dc(a.r),a.Dc(a.j),a.Dc(Object(a.hb)((function(){return hg}))))},Km.\u0275cmp=a.xc({type:Km,selectors:[["mat-list-option"]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,ng,!0),a.vc(i,ag,!0),a.vc(i,ha,!0)),2&e&&(a.md(n=a.Xc())&&(t._avatar=n.first),a.md(n=a.Xc())&&(t._icon=n.first),a.md(n=a.Xc())&&(t._lines=n))},viewQuery:function(e,t){var i;1&e&&a.Fd(zm,!0),2&e&&a.md(i=a.Xc())&&(t._text=i.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&a.Wc("focus",(function(){return t._handleFocus()}))("blur",(function(){return t._handleBlur()}))("click",(function(){return t._handleClick()})),2&e&&(a.qc("aria-selected",t.selected)("aria-disabled",t.disabled)("tabindex",-1),a.tc("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)("mat-primary","primary"===t.color)("mat-accent","primary"!==t.color&&"warn"!==t.color)("mat-warn","warn"===t.color)("mat-list-single-selected-option",t.selected&&!t.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[a.mc],ngContentSelectors:Ym,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,t){1&e&&(a.fd(Xm),a.Jc(0,"div",0),a.Ec(1,"div",1),a.zd(2,Bm,1,2,"mat-pseudo-checkbox",2),a.Jc(3,"div",3,4),a.ed(5),a.Ic(),a.ed(6,1),a.Ic()),2&e&&(a.tc("mat-list-item-content-reverse","after"==t.checkboxPosition),a.pc(1),a.gd("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()),a.pc(1),a.gd("ngIf",t.selectionList.multiple))},directives:[Da,yt.t,Aa],encapsulation:2,changeDetection:0}),Km),hg=(($m=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r){var o;return _classCallCheck(this,i),(o=t.call(this))._element=e,o._changeDetector=r,o._multiple=!0,o._contentInitialized=!1,o.selectionChange=new a.u,o.tabIndex=0,o.color="accent",o.compareWith=function(e,t){return e===t},o._disabled=!1,o.selectedOptions=new nr(o._multiple),o._tabIndex=-1,o._onChange=function(e){},o._destroyed=new Lt.a,o._onTouched=function(){},o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._contentInitialized=!0,this._keyManager=new Xi(this.options).withWrap().withTypeAhead().skipPredicate((function(){return!1})).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Ol(this._destroyed)).subscribe((function(){e._allowFocusEscape()})),this.options.changes.pipe(An(null),Ol(this._destroyed)).subscribe((function(){e._updateTabIndex()})),this.selectedOptions.changed.pipe(Ol(this._destroyed)).subscribe((function(e){if(e.added){var t,i=_createForOfIteratorHelper(e.added);try{for(i.s();!(t=i.n()).done;)t.value.selected=!0}catch(r){i.e(r)}finally{i.f()}}if(e.removed){var n,a=_createForOfIteratorHelper(e.removed);try{for(a.s();!(n=a.n()).done;)n.value.selected=!1}catch(r){a.e(r)}finally{a.f()}}}))}},{key:"ngOnChanges",value:function(e){var t=e.disableRipple,i=e.color;(t&&!t.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(e){this._element.nativeElement.focus(e)}},{key:"selectAll",value:function(){this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"_removeOptionFromList",value:function(e){var t=this._getOptionIndex(e);return t>-1&&this._keyManager.activeItemIndex===t&&(t>0?this._keyManager.updateActiveItem(t-1):0===t&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(t+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(e){var t=e.keyCode,i=this._keyManager,n=i.activeItemIndex,a=Jt(e);switch(t){case 32:case 13:a||i.isTyping()||(this._toggleFocusedOption(),e.preventDefault());break;case 36:case 35:a||(36===t?i.setFirstItemActive():i.setLastItemActive(),e.preventDefault());break;default:65===t&&this.multiple&&Jt(e,"ctrlKey")&&!i.isTyping()?(this.options.find((function(e){return!e.selected}))?this.selectAll():this.deselectAll(),e.preventDefault()):i.onKeydown(e)}this.multiple&&(38===t||40===t)&&e.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}},{key:"_emitChangeEvent",value:function(e){this.selectionChange.emit(new ug(this,e))}},{key:"_onFocus",value:function(){var e=this._keyManager.activeItemIndex;e&&-1!==e?this._keyManager.setActiveItem(e):this._keyManager.setFirstItemActive()}},{key:"writeValue",value:function(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"_setOptionsFromValues",value:function(e){var t=this;this.options.forEach((function(e){return e._setSelected(!1)})),e.forEach((function(e){var i=t.options.find((function(i){return!i.selected&&t.compareWith(i.value,e)}));i&&i._setSelected(!0)}))}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter((function(e){return e.selected})).map((function(e){return e.value}))}},{key:"_toggleFocusedOption",value:function(){var e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){var t=this.options.toArray()[e];!t||t.disabled||!this._multiple&&t.selected||(t.toggle(),this._emitChangeEvent(t))}}},{key:"_setAllOptionsSelected",value:function(e){var t=!1;this.options.forEach((function(i){i._setSelected(e)&&(t=!0)})),t&&this._reportValueChange()}},{key:"_isValidIndex",value:function(e){return e>=0&&e*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),$m),pg=((qm=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:qm}),qm.\u0275inj=a.Ac({factory:function(e){return new(e||qm)},imports:[[wa,Ea,Bn,Ta,yt.c],wa,Bn,Ta,Lm]}),qm),fg=["mat-menu-item",""],mg=["*"];function gg(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",0),a.Wc("keydown",(function(e){return a.rd(i),a.ad()._handleKeydown(e)}))("click",(function(){return a.rd(i),a.ad().closed.emit("click")}))("@transformMenu.start",(function(e){return a.rd(i),a.ad()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return a.rd(i),a.ad()._onAnimationDone(e)})),a.Jc(1,"div",1),a.ed(2),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.gd("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),a.qc("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var vg,bg,_g,yg,kg,wg,Cg,xg,Sg={transformMenu:o("transformMenu",[d("void",u({opacity:0,transform:"scale(0.8)"})),p("void => enter",c([m(".mat-menu-content, .mat-mdc-menu-content",s("100ms linear",u({opacity:1}))),s("120ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"scale(1)"}))])),p("* => void",s("100ms 25ms linear",u({opacity:0})))]),fadeInItems:o("fadeInItems",[d("showing",u({opacity:1})),p("void => *",[u({opacity:0}),s("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ig=((vg=function(){function e(t,i,n,a,r,o,s){_classCallCheck(this,e),this._template=t,this._componentFactoryResolver=i,this._appRef=n,this._injector=a,this._viewContainerRef=r,this._document=o,this._changeDetectorRef=s,this._attached=new Lt.a}return _createClass(e,[{key:"attach",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new su(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new uu(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var t=this._template.elementRef.nativeElement;t.parentNode.insertBefore(this._outlet.outletElement,t),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),e}()).\u0275fac=function(e){return new(e||vg)(a.Dc(a.Y),a.Dc(a.n),a.Dc(a.g),a.Dc(a.y),a.Dc(a.cb),a.Dc(yt.e),a.Dc(a.j))},vg.\u0275dir=a.yc({type:vg,selectors:[["ng-template","matMenuContent",""]]}),vg),Og=new a.x("MAT_MENU_PANEL"),Dg=Hn(Jn((function e(){_classCallCheck(this,e)}))),Eg=((bg=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this))._elementRef=e,o._focusMonitor=a,o._parentMenu=r,o.role="menuitem",o._hovered=new Lt.a,o._focused=new Lt.a,o._highlighted=!1,o._triggersSubmenu=!1,a&&a.monitor(o._elementRef,!1),r&&r.addItem&&r.addItem(_assertThisInitialized(o)),o._document=n,o}return _createClass(i,[{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){var e=this._elementRef.nativeElement,t=this._document?this._document.TEXT_NODE:3,i="";if(e.childNodes)for(var n=e.childNodes.length,a=0;a0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.asObservable().pipe(ui(1)).subscribe((function(){return e._focusFirstItem(t)})):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var i=this._directDescendantItems.first._getHostElement().parentElement;i;){if("menu"===i.getAttribute("role")){i.focus();break}i=i.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z".concat(Math.min(4+e,24)),i=Object.keys(this._classList).find((function(e){return e.startsWith("mat-elevation-z")}));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,i=this._classList;i["mat-menu-before"]="before"===e,i["mat-menu-after"]="after"===e,i["mat-menu-above"]="above"===t,i["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(An(this._allItems)).subscribe((function(t){e._directDescendantItems.reset(t.filter((function(t){return t._parentMenu===e}))),e._directDescendantItems.notifyOnChanges()}))}},{key:"xPosition",get:function(){return this._xPosition},set:function(e){"before"!==e&&"after"!==e&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){"above"!==e&&"below"!==e&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=fi(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=fi(e)}},{key:"panelClass",set:function(e){var t=this,i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach((function(e){t._classList[e]=!1})),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach((function(e){t._classList[e]=!0})),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}}]),e}()).\u0275fac=function(e){return new(e||yg)(a.Dc(a.r),a.Dc(a.I),a.Dc(Ag))},yg.\u0275dir=a.yc({type:yg,contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,Ig,!0),a.vc(i,Eg,!0),a.vc(i,Eg,!1)),2&e&&(a.md(n=a.Xc())&&(t.lazyContent=n.first),a.md(n=a.Xc())&&(t._allItems=n),a.md(n=a.Xc())&&(t.items=n))},viewQuery:function(e,t){var i;1&e&&a.Fd(a.Y,!0),2&e&&a.md(i=a.Xc())&&(t.templateRef=i.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),yg),Rg=((_g=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Pg)).\u0275fac=function(e){return Mg(e||_g)},_g.\u0275dir=a.yc({type:_g,features:[a.mc]}),_g),Mg=a.Lc(Rg),Lg=((kg=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){return _classCallCheck(this,i),t.call(this,e,n,a)}return i}(Rg)).\u0275fac=function(e){return new(e||kg)(a.Dc(a.r),a.Dc(a.I),a.Dc(Ag))},kg.\u0275cmp=a.xc({type:kg,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[a.oc([{provide:Og,useExisting:Rg},{provide:Rg,useExisting:kg}]),a.mc],ngContentSelectors:mg,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(a.fd(),a.zd(0,gg,3,6,"ng-template"))},directives:[yt.q],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[Sg.transformMenu,Sg.fadeInItems]},changeDetection:0}),kg),jg=new a.x("mat-menu-scroll-strategy"),Fg={provide:jg,deps:[Xu],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Ng=Ai({passive:!0}),zg=((xg=function(){function e(t,i,n,r,o,s,c,l){var u=this;_classCallCheck(this,e),this._overlay=t,this._element=i,this._viewContainerRef=n,this._parentMenu=o,this._menuItemInstance=s,this._dir=c,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=jt.a.EMPTY,this._hoverSubscription=jt.a.EMPTY,this._menuCloseSubscription=jt.a.EMPTY,this._handleTouchStart=function(){return u._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new a.u,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.u,this.onMenuClose=this.menuClosed,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ng),s&&(s._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ng),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),i=t.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return e.closeMenu()})),this._initMenu(),this.menu instanceof Rg&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(){var e=this;if(this._overlayRef&&this.menuOpen){var t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof Rg?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(ii((function(e){return"void"===e.toState})),ui(1),Ol(t.lazyContent._attached)).subscribe({next:function(){return t.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new Iu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe((function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")}))}},{key:"_setPosition",value:function(e){var t=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=t[0],n=t[1],a=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),r=a[0],o=a[1],s=r,c=o,l=i,u=n,d=0;this.triggersSubmenu()?(u=i="before"===this.menu.xPosition?"start":"end",n=l="end"===i?"start":"end",d="bottom"===r?8:-8):this.menu.overlapTrigger||(s="top"===r?"bottom":"top",c="top"===o?"bottom":"top"),e.withPositions([{originX:i,originY:s,overlayX:l,overlayY:r,offsetY:d},{originX:n,originY:s,overlayX:u,overlayY:r,offsetY:d},{originX:i,originY:c,overlayX:l,overlayY:o,offsetY:-d},{originX:n,originY:c,overlayX:u,overlayY:o,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),n=this._parentMenu?this._parentMenu.closed:Bt(),a=this._parentMenu?this._parentMenu._hovered().pipe(ii((function(t){return t!==e._menuItemInstance})),ii((function(){return e._menuOpen}))):Bt();return Object(al.a)(t,n,a,i)}},{key:"_handleMousedown",value:function(e){fn(e)||(this._openedBy=0===e.button?"mouse":null,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(ii((function(t){return t===e._menuItemInstance&&!t.disabled})),Wd(0,ml)).subscribe((function(){e._openedBy="mouse",e.menu instanceof Rg&&e.menu._isAnimating?e.menu._animationDone.pipe(ui(1),Wd(0,ml),Ol(e._parentMenu._hovered())).subscribe((function(){return e.openMenu()})):e.openMenu()})))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new su(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.asObservable().subscribe((function(e){t._destroyMenu(),"click"!==e&&"tab"!==e||!t._parentMenu||t._parentMenu.closed.emit(e)}))))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),e}()).\u0275fac=function(e){return new(e||xg)(a.Dc(Xu),a.Dc(a.r),a.Dc(a.cb),a.Dc(jg),a.Dc(Rg,8),a.Dc(Eg,10),a.Dc(Cn,8),a.Dc(hn))},xg.\u0275dir=a.yc({type:xg,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&a.Wc("mousedown",(function(e){return t._handleMousedown(e)}))("keydown",(function(e){return t._handleKeydown(e)}))("click",(function(e){return t._handleClick(e)})),2&e&&a.qc("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),xg),Bg=((Cg=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Cg}),Cg.\u0275inj=a.Ac({factory:function(e){return new(e||Cg)},providers:[Fg],imports:[Bn]}),Cg),Jg=((wg=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:wg}),wg.\u0275inj=a.Ac({factory:function(e){return new(e||wg)},providers:[Fg],imports:[[yt.c,Bn,Ea,id,Bg],Bg]}),wg),Vg={};function Hg(){for(var e=arguments.length,t=new Array(e),i=0;ithis.total&&this.destination.next(e)}}]),i}(Vt.a),Xg=new Set,Yg=((Gg=function(){function e(t){_classCallCheck(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Zg}return _createClass(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!Xg.has(e))try{Ug||((Ug=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Ug)),Ug.sheet&&(Ug.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),Xg.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||Gg)(a.Sc(Ii))},Gg.\u0275prov=Object(a.zc)({factory:function(){return new Gg(Object(a.Sc)(Ii))},token:Gg,providedIn:"root"}),Gg);function Zg(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var Qg,ev=((Qg=function(){function e(t,i){_classCallCheck(this,e),this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new Lt.a}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return tv(vi(e)).some((function(e){return t._registerQuery(e).mql.matches}))}},{key:"observe",value:function(e){var t=this,i=Hg(tv(vi(e)).map((function(e){return t._registerQuery(e).observable})));return(i=En(i.pipe(ui(1)),i.pipe((function(e){return e.lift(new $g(1))}),Zt(0)))).pipe(Object(ri.a)((function(e){var t={matches:!1,breakpoints:{}};return e.forEach((function(e){t.matches=t.matches||e.matches,t.breakpoints[e.query]=e.matches})),t})))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var i=this._mediaMatcher.matchMedia(e),n={observable:new si.a((function(e){var n=function(i){return t._zone.run((function(){return e.next(i)}))};return i.addListener(n),function(){i.removeListener(n)}})).pipe(An(i),Object(ri.a)((function(t){return{query:e,matches:t.matches}})),Ol(this._destroySubject)),mql:i};return this._queries.set(e,n),n}}]),e}()).\u0275fac=function(e){return new(e||Qg)(a.Sc(Yg),a.Sc(a.I))},Qg.\u0275prov=Object(a.zc)({factory:function(){return new Qg(Object(a.Sc)(Yg),Object(a.Sc)(a.I))},token:Qg,providedIn:"root"}),Qg);function tv(e){return e.map((function(e){return e.split(",")})).reduce((function(e,t){return e.concat(t)})).map((function(e){return e.trim()}))}var iv={tooltipState:o("state",[d("initial, void, hidden",u({opacity:0,transform:"scale(0)"})),d("visible",u({transform:"scale(1)"})),p("* => visible",s("200ms cubic-bezier(0, 0, 0.2, 1)",h([u({opacity:0,transform:"scale(0)",offset:0}),u({opacity:.5,transform:"scale(0.99)",offset:.5}),u({opacity:1,transform:"scale(1)",offset:1})]))),p("* => hidden",s("100ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:0})))])},nv=Ai({passive:!0});function av(e){return Error('Tooltip position "'.concat(e,'" is invalid.'))}var rv,ov,sv,cv,lv=new a.x("mat-tooltip-scroll-strategy"),uv={provide:lv,deps:[Xu],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},dv=new a.x("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),hv=((sv=function(){function e(t,i,n,a,r,o,s,c,l,u,d,h){var p=this;_classCallCheck(this,e),this._overlay=t,this._elementRef=i,this._scrollDispatcher=n,this._viewContainerRef=a,this._ngZone=r,this._platform=o,this._ariaDescriber=s,this._focusMonitor=c,this._dir=u,this._defaultOptions=d,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new Lt.a,this._handleKeydown=function(e){p._isTooltipVisible()&&27===e.keyCode&&!Jt(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run((function(){return p.hide(0)})))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),c.monitor(i).pipe(Ol(this._destroyed)).subscribe((function(e){e?"keyboard"===e&&r.run((function(){return p.show()})):r.run((function(){return p.hide(0)}))})),r.runOutsideAngular((function(){i.nativeElement.addEventListener("keydown",p._handleKeydown)}))}return _createClass(e,[{key:"ngOnInit",value:function(){this._setupPointerEvents()}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(t,i){e.removeEventListener(i,t,nv)})),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var i=this._createOverlay();this._detach(),this._portal=this._portal||new ou(pv,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ol(this._destroyed)).subscribe((function(){return e._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return i.positionChanges.pipe(Ol(this._destroyed)).subscribe((function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run((function(){return e.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Ol(this._destroyed)).subscribe((function(){return e._detach()})),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),i.main),Object.assign(Object.assign({},t.fallback),i.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i||"below"==i)e={originX:"center",originY:"above"==i?"top":"bottom"};else if("before"==i||"left"==i&&t||"right"==i&&!t)e={originX:"start",originY:"center"};else{if(!("after"==i||"right"==i&&t||"left"==i&&!t))throw av(i);e={originX:"end",originY:"center"}}var n=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:n.x,originY:n.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i)e={overlayX:"center",overlayY:"bottom"};else if("below"==i)e={overlayX:"center",overlayY:"top"};else if("before"==i||"left"==i&&t||"right"==i&&!t)e={overlayX:"end",overlayY:"center"};else{if(!("after"==i||"right"==i&&t||"left"==i&&!t))throw av(i);e={overlayX:"start",overlayY:"center"}}var n=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:n.x,overlayY:n.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(ui(1),Ol(this._destroyed)).subscribe((function(){e._tooltipInstance&&e._overlayRef.updatePosition()})))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEvents",value:function(){var e=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var t=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",(function(){clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout((function(){return e.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return e.show()})).set("mouseleave",(function(){return e.hide()}));this._passiveListeners.forEach((function(t,i){e._elementRef.nativeElement.addEventListener(i,t,nv)}))}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this._elementRef.nativeElement,t=e.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(t.userSelect=t.msUserSelect=t.webkitUserSelect=t.MozUserSelect="none"),"on"!==i&&e.draggable||(t.webkitUserDrag="none"),t.touchAction="none",t.webkitTapHighlightColor="transparent")}},{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e),this._disabled&&this.hide(0)}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=e?"".concat(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),e}()).\u0275fac=function(e){return new(e||sv)(a.Dc(Xu),a.Dc(a.r),a.Dc(Xl),a.Dc(a.cb),a.Dc(a.I),a.Dc(Ii),a.Dc(qi),a.Dc(hn),a.Dc(lv),a.Dc(Cn,8),a.Dc(dv,8),a.Dc(a.r))},sv.\u0275dir=a.yc({type:sv,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),sv),pv=((ov=function(){function e(t,i){_classCallCheck(this,e),this._changeDetectorRef=t,this._breakpointObserver=i,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Lt.a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return _createClass(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()}),e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()}),e)}},{key:"afterHidden",value:function(){return this._onHide.asObservable()}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||ov)(a.Dc(a.j),a.Dc(ev))},ov.\u0275cmp=a.xc({type:ov,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t._handleBodyInteraction()}),!1,a.od),2&e&&a.yd("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(a.Jc(0,"div",0),a.Wc("@state.start",(function(){return t._animationStart()}))("@state.done",(function(e){return t._animationDone(e)})),a.bd(1,"async"),a.Bd(2),a.Ic()),2&e){var i,n=null==(i=a.cd(1,5,t._isHandset))?null:i.matches;a.tc("mat-tooltip-handset",n),a.gd("ngClass",t.tooltipClass)("@state",t._visibility),a.pc(2),a.Cd(t.message)}},directives:[yt.q],pipes:[yt.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[iv.tooltipState]},changeDetection:0}),ov),fv=((rv=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:rv}),rv.\u0275inj=a.Ac({factory:function(e){return new(e||rv)},providers:[uv],imports:[[kn,yt.c,id,Bn],Bn]}),rv),mv=["primaryValueBar"],gv=Vn((function e(t){_classCallCheck(this,e),this._elementRef=t}),"primary"),vv=new a.x("mat-progress-bar-location",{providedIn:"root",factory:function(){var e=Object(a.ib)(yt.e),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),bv=0,_v=((cv=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o){var s;_classCallCheck(this,i),(s=t.call(this,e))._elementRef=e,s._ngZone=n,s._animationMode=r,s._isNoopAnimation=!1,s._value=0,s._bufferValue=0,s.animationEnd=new a.u,s._animationEndSubscription=jt.a.EMPTY,s.mode="determinate",s.progressbarId="mat-progress-bar-".concat(bv++);var c=o?o.getPathname().split("#")[0]:"";return s._rectangleFillValue="url('".concat(c,"#").concat(s.progressbarId,"')"),s._isNoopAnimation="NoopAnimations"===r,s}return _createClass(i,[{key:"_primaryTransform",value:function(){return{transform:"scaleX(".concat(this.value/100,")")}}},{key:"_bufferTransform",value:function(){return"buffer"===this.mode?{transform:"scaleX(".concat(this.bufferValue/100,")")}:null}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.runOutsideAngular((function(){var t=e._primaryValueBar.nativeElement;e._animationEndSubscription=rl(t,"transitionend").pipe(ii((function(e){return e.target===t}))).subscribe((function(){"determinate"!==e.mode&&"buffer"!==e.mode||e._ngZone.run((function(){return e.animationEnd.next({value:e.value})}))}))}))}},{key:"ngOnDestroy",value:function(){this._animationEndSubscription.unsubscribe()}},{key:"value",get:function(){return this._value},set:function(e){this._value=yv(mi(e)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(e){this._bufferValue=yv(e||0)}}]),i}(gv)).\u0275fac=function(e){return new(e||cv)(a.Dc(a.r),a.Dc(a.I),a.Dc(Pt,8),a.Dc(vv,8))},cv.\u0275cmp=a.xc({type:cv,selectors:[["mat-progress-bar"]],viewQuery:function(e,t){var i;1&e&&a.Fd(mv,!0),2&e&&a.md(i=a.Xc())&&(t._primaryValueBar=i.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,t){2&e&&(a.qc("aria-valuenow","indeterminate"===t.mode||"query"===t.mode?null:t.value)("mode",t.mode),a.tc("_mat-animation-noopable",t._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[a.mc],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(e,t){1&e&&(a.Zc(),a.Jc(0,"svg",0),a.Jc(1,"defs"),a.Jc(2,"pattern",1),a.Ec(3,"circle",2),a.Ic(),a.Ic(),a.Ec(4,"rect",3),a.Ic(),a.Yc(),a.Ec(5,"div",4),a.Ec(6,"div",5,6),a.Ec(8,"div",7)),2&e&&(a.pc(2),a.gd("id",t.progressbarId),a.pc(2),a.qc("fill",t._rectangleFillValue),a.pc(1),a.gd("ngStyle",t._bufferTransform()),a.pc(1),a.gd("ngStyle",t._primaryTransform()))},directives:[yt.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),cv);function yv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(t,Math.min(i,e))}var kv,wv=((kv=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:kv}),kv.\u0275inj=a.Ac({factory:function(e){return new(e||kv)},imports:[[yt.c,Bn],Bn]}),kv);function Cv(e,t){if(1&e&&(a.Zc(),a.Ec(0,"circle",3)),2&e){var i=a.ad();a.yd("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.qc("r",i._circleRadius)}}function xv(e,t){if(1&e&&(a.Zc(),a.Ec(0,"circle",3)),2&e){var i=a.ad();a.yd("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.qc("r",i._circleRadius)}}function Sv(e,t){if(1&e&&(a.Zc(),a.Ec(0,"circle",3)),2&e){var i=a.ad();a.yd("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.qc("r",i._circleRadius)}}function Iv(e,t){if(1&e&&(a.Zc(),a.Ec(0,"circle",3)),2&e){var i=a.ad();a.yd("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.qc("r",i._circleRadius)}}var Ov,Dv,Ev,Av,Tv,Pv,Rv=Vn((function e(t){_classCallCheck(this,e),this._elementRef=t}),"primary"),Mv=new a.x("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Lv=((Ev=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o){var s;_classCallCheck(this,i),(s=t.call(this,e))._elementRef=e,s._document=a,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var c=i._diameters;return c.has(a.head)||c.set(a.head,new Set([100])),s._fallbackAnimation=n.EDGE||n.TRIDENT,s._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return _createClass(i,[{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=Pi(e)||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=i._diameters,a=n.get(e);if(!a||!a.has(t)){var r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",t+""),r.textContent=this._getAnimationText(),e.appendChild(r),a||(a=new Set,n.set(e,a)),a.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=mi(e),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=mi(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,mi(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}}]),i}(Rv)).\u0275fac=function(e){return new(e||Ev)(a.Dc(a.r),a.Dc(Ii),a.Dc(yt.e,8),a.Dc(Pt,8),a.Dc(Mv))},Ev.\u0275cmp=a.xc({type:Ev,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(a.qc("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),a.yd("width",t.diameter,"px")("height",t.diameter,"px"),a.tc("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[a.mc],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,t){1&e&&(a.Zc(),a.Jc(0,"svg",0),a.zd(1,Cv,1,9,"circle",1),a.zd(2,xv,1,7,"circle",2),a.Ic()),2&e&&(a.yd("width",t.diameter,"px")("height",t.diameter,"px"),a.gd("ngSwitch","indeterminate"===t.mode),a.qc("viewBox",t._viewBox),a.pc(1),a.gd("ngSwitchCase",!0),a.pc(1),a.gd("ngSwitchCase",!1))},directives:[yt.x,yt.y],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}),Ev._diameters=new WeakMap,Ev),jv=((Dv=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o){var s;return _classCallCheck(this,i),(s=t.call(this,e,n,a,r,o)).mode="indeterminate",s}return i}(Lv)).\u0275fac=function(e){return new(e||Dv)(a.Dc(a.r),a.Dc(Ii),a.Dc(yt.e,8),a.Dc(Pt,8),a.Dc(Mv))},Dv.\u0275cmp=a.xc({type:Dv,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(a.yd("width",t.diameter,"px")("height",t.diameter,"px"),a.tc("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[a.mc],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,t){1&e&&(a.Zc(),a.Jc(0,"svg",0),a.zd(1,Sv,1,9,"circle",1),a.zd(2,Iv,1,7,"circle",2),a.Ic()),2&e&&(a.yd("width",t.diameter,"px")("height",t.diameter,"px"),a.gd("ngSwitch","indeterminate"===t.mode),a.qc("viewBox",t._viewBox),a.pc(1),a.gd("ngSwitchCase",!0),a.pc(1),a.gd("ngSwitchCase",!1))},directives:[yt.x,yt.y],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}),Dv),Fv=((Ov=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Ov}),Ov.\u0275inj=a.Ac({factory:function(e){return new(e||Ov)},imports:[[Bn,yt.c],Bn]}),Ov),Nv=["input"],zv=function(){return{enterDuration:150}},Bv=["*"],Jv=new a.x("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),Vv=0,Hv={provide:fr,useExisting:Object(a.hb)((function(){return Gv})),multi:!0},Uv=function e(t,i){_classCallCheck(this,e),this.source=t,this.value=i},Gv=((Av=function(){function e(t){_classCallCheck(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-".concat(Vv++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new a.u}return _createClass(e,[{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach((function(t){t.name=e.name,t._markForCheck()}))}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach((function(t){t.checked=e.value===t.value,t.checked&&(e._selected=t)})))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new Uv(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach((function(e){return e._markForCheck()}))}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}},{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=fi(e),this._markRadiosForCheck()}}]),e}()).\u0275fac=function(e){return new(e||Av)(a.Dc(a.j))},Av.\u0275dir=a.yc({type:Av,selectors:[["mat-radio-group"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,qv,!0),2&e&&a.md(n=a.Xc())&&(t._radios=n)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[a.oc([Hv])]}),Av),Wv=Hn(Un((function e(t){_classCallCheck(this,e),this._elementRef=t}))),qv=((Pv=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=t.call(this,n))._changeDetector=r,u._focusMonitor=o,u._radioDispatcher=s,u._animationMode=c,u._providerOverride=l,u._uniqueId="mat-radio-".concat(++Vv),u.id=u._uniqueId,u.change=new a.u,u._checked=!1,u._value=null,u._removeUniqueSelectionListener=function(){},u.radioGroup=e,u._removeUniqueSelectionListener=s.listen((function(e,t){e!==u.id&&t===u.name&&(u.checked=!1)})),u}return _createClass(i,[{key:"focus",value:function(e){this._focusMonitor.focusVia(this._inputElement,"keyboard",e)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(t){!t&&e.radioGroup&&e.radioGroup._touch()}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new Uv(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"_onInputChange",value:function(e){e.stopPropagation();var t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}},{key:"checked",get:function(){return this._checked},set:function(e){var t=fi(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(e){this._labelPosition=e}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(e){this._setDisabled(fi(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=fi(e)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(e){this._color=e}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),i}(Wv)).\u0275fac=function(e){return new(e||Pv)(a.Dc(Gv,8),a.Dc(a.r),a.Dc(a.j),a.Dc(hn),a.Dc(ar),a.Dc(Pt,8),a.Dc(Jv,8))},Pv.\u0275cmp=a.xc({type:Pv,selectors:[["mat-radio-button"]],viewQuery:function(e,t){var i;1&e&&a.Fd(Nv,!0),2&e&&a.md(i=a.Xc())&&(t._inputElement=i.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&a.Wc("focus",(function(){return t._inputElement.nativeElement.focus()})),2&e&&(a.qc("tabindex",-1)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),a.tc("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[a.mc],ngContentSelectors:Bv,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(a.fd(),a.Jc(0,"label",0,1),a.Jc(2,"div",2),a.Ec(3,"div",3),a.Ec(4,"div",4),a.Jc(5,"input",5,6),a.Wc("change",(function(e){return t._onInputChange(e)}))("click",(function(e){return t._onInputClick(e)})),a.Ic(),a.Jc(7,"div",7),a.Ec(8,"div",8),a.Ic(),a.Ic(),a.Jc(9,"div",9),a.Jc(10,"span",10),a.Bd(11,"\xa0"),a.Ic(),a.ed(12),a.Ic(),a.Ic()),2&e){var i=a.nd(1);a.qc("for",t.inputId),a.pc(5),a.gd("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),a.qc("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),a.pc(2),a.gd("matRippleTrigger",i)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.id(18,zv)),a.pc(2),a.tc("mat-radio-label-before","before"==t.labelPosition)}},directives:[Da],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),Pv),$v=((Tv=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Tv}),Tv.\u0275inj=a.Ac({factory:function(e){return new(e||Tv)},imports:[[Ea,Bn],Bn]}),Tv),Kv=["trigger"],Xv=["panel"];function Yv(e,t){if(1&e&&(a.Jc(0,"span",8),a.Bd(1),a.Ic()),2&e){var i=a.ad();a.pc(1),a.Cd(i.placeholder||"\xa0")}}function Zv(e,t){if(1&e&&(a.Jc(0,"span"),a.Bd(1),a.Ic()),2&e){var i=a.ad(2);a.pc(1),a.Cd(i.triggerValue||"\xa0")}}function Qv(e,t){1&e&&a.ed(0,0,["*ngSwitchCase","true"])}function eb(e,t){if(1&e&&(a.Jc(0,"span",9),a.zd(1,Zv,2,1,"span",10),a.zd(2,Qv,1,0,void 0,11),a.Ic()),2&e){var i=a.ad();a.gd("ngSwitch",!!i.customTrigger),a.pc(2),a.gd("ngSwitchCase",!0)}}function tb(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",12),a.Jc(1,"div",13,14),a.Wc("@transformPanel.done",(function(e){return a.rd(i),a.ad()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return a.rd(i),a.ad()._handleKeydown(e)})),a.ed(3,1),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.gd("@transformPanelWrap",void 0),a.pc(1),a.sc("mat-select-panel ",n._getPanelTheme(),""),a.yd("transform-origin",n._transformOrigin)("font-size",n._triggerFontSize,"px"),a.gd("ngClass",n.panelClass)("@transformPanel",n.multiple?"showing-multiple":"showing")}}var ib,nb,ab,rb=[[["mat-select-trigger"]],"*"],ob=["mat-select-trigger","*"],sb={transformPanelWrap:o("transformPanelWrap",[p("* => void",m("@transformPanel",[f()],{optional:!0}))]),transformPanel:o("transformPanel",[d("void",u({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),d("showing",u({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),d("showing-multiple",u({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),p("void => *",s("120ms cubic-bezier(0, 0, 0.2, 1)")),p("* => void",s("100ms 25ms linear",u({opacity:0})))])},cb=0,lb=new a.x("mat-select-scroll-strategy"),ub=new a.x("MAT_SELECT_CONFIG"),db={provide:lb,deps:[Xu],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},hb=function e(t,i){_classCallCheck(this,e),this.source=t,this.value=i},pb=Hn(Un(Jn(Gn((function e(t,i,n,a,r){_classCallCheck(this,e),this._elementRef=t,this._defaultErrorStateMatcher=i,this._parentForm=n,this._parentFormGroup=a,this.ngControl=r}))))),fb=((ab=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ab)},ab.\u0275dir=a.yc({type:ab,selectors:[["mat-select-trigger"]]}),ab),mb=((nb=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l,u,d,h,p,f,m,g){var v;return _classCallCheck(this,i),(v=t.call(this,s,o,l,u,h))._viewportRuler=e,v._changeDetectorRef=n,v._ngZone=r,v._dir=c,v._parentFormField=d,v.ngControl=h,v._liveAnnouncer=m,v._panelOpen=!1,v._required=!1,v._scrollTop=0,v._multiple=!1,v._compareWith=function(e,t){return e===t},v._uid="mat-select-".concat(cb++),v._destroy=new Lt.a,v._triggerFontSize=0,v._onChange=function(){},v._onTouched=function(){},v._optionIds="",v._transformOrigin="top",v._panelDoneAnimatingStream=new Lt.a,v._offsetY=0,v._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],v._disableOptionCentering=!1,v._focused=!1,v.controlType="mat-select",v.ariaLabel="",v.optionSelectionChanges=nl((function(){var e=v.options;return e?e.changes.pipe(An(e),Tl((function(){return Object(al.a).apply(void 0,_toConsumableArray(e.map((function(e){return e.onSelectionChange}))))}))):v._ngZone.onStable.asObservable().pipe(ui(1),Tl((function(){return v.optionSelectionChanges})))})),v.openedChange=new a.u,v._openedStream=v.openedChange.pipe(ii((function(e){return e})),Object(ri.a)((function(){}))),v._closedStream=v.openedChange.pipe(ii((function(e){return!e})),Object(ri.a)((function(){}))),v.selectionChange=new a.u,v.valueChange=new a.u,v.ngControl&&(v.ngControl.valueAccessor=_assertThisInitialized(v)),v._scrollStrategyFactory=f,v._scrollStrategy=v._scrollStrategyFactory(),v.tabIndex=parseInt(p)||0,v.id=v.id,g&&(null!=g.disableOptionCentering&&(v.disableOptionCentering=g.disableOptionCentering),null!=g.typeaheadDebounceInterval&&(v.typeaheadDebounceInterval=g.typeaheadDebounceInterval)),v}return _createClass(i,[{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new nr(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(gl(),Ol(this._destroy)).subscribe((function(){e.panelOpen?(e._scrollTop=0,e.openedChange.emit(!0)):(e.openedChange.emit(!1),e.overlayDir.offsetX=0,e._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(Ol(this._destroy)).subscribe((function(){e._panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(Ol(this._destroy)).subscribe((function(e){e.added.forEach((function(e){return e.select()})),e.removed.forEach((function(e){return e.deselect()}))})),this.options.changes.pipe(An(null),Ol(this._destroy)).subscribe((function(){e._resetOptions(),e._initializeSelection()}))}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){var e=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(ui(1)).subscribe((function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))})))}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.options&&this._setSelectionByValue(e)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,i=40===t||38===t||37===t||39===t,n=13===t||32===t,a=this._keyManager;if(!a.isTyping()&&n&&!Jt(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){var r=this.selected;36===t||35===t?(36===t?a.setFirstItemActive():a.setLastItemActive(),e.preventDefault()):a.onKeydown(e);var o=this.selected;o&&r!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,i=e.keyCode,n=40===i||38===i,a=t.isTyping();if(36===i||35===i)e.preventDefault(),36===i?t.setFirstItemActive():t.setLastItemActive();else if(n&&e.altKey)e.preventDefault(),this.close();else if(a||13!==i&&32!==i||!t.activeItem||Jt(e))if(!a&&this._multiple&&65===i&&e.ctrlKey){e.preventDefault();var r=this.options.some((function(e){return!e.disabled&&!e.selected}));this.options.forEach((function(e){e.disabled||(r?e.select():e.deselect())}))}else{var o=t.activeItemIndex;t.onKeydown(e),this._multiple&&n&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(ui(1)).subscribe((function(){e._changeDetectorRef.detectChanges(),e._calculateOverlayOffsetX(),e.panel.nativeElement.scrollTop=e._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then((function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()}))}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this.multiple&&e){if(!Array.isArray(e))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),e.forEach((function(e){return t._selectValue(e)})),this._sortValues()}else{this._selectionModel.clear();var i=this._selectValue(e);i?this._keyManager.setActiveItem(i):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,i=this.options.find((function(i){try{return null!=i.value&&t._compareWith(i.value,e)}catch(n){return Object(a.jb)()&&console.warn(n),!1}}));return i&&this._selectionModel.select(i),i}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new Ki(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ol(this._destroy)).subscribe((function(){!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close()})),this._keyManager.change.pipe(Ol(this._destroy)).subscribe((function(){e._panelOpen&&e.panel?e._scrollActiveOptionIntoView():e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var e=this,t=Object(al.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ol(t)).subscribe((function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())})),Object(al.a).apply(void 0,_toConsumableArray(this.options.map((function(e){return e._stateChanges})))).pipe(Ol(t)).subscribe((function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})),this._setOptionIds()}},{key:"_onSelect",value:function(e,t){var i=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),this._propagateChanges(e.value)),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort((function(i,n){return e.sortComparator?e.sortComparator(i,n,t):t.indexOf(i)-t.indexOf(n)})),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(new hb(this,t)),this._changeDetectorRef.markForCheck()}},{key:"_setOptionIds",value:function(){this._optionIds=this.options.map((function(e){return e.id})).join(" ")}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var e=this._keyManager.activeItemIndex||0,t=Ba(e,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Ja(e+t,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getOptionIndex",value:function(e){return this.options.reduce((function(t,i,n){return void 0!==t?t:e===i?n:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var e=this._getItemHeight(),t=this._getItemCount(),i=Math.min(t*e,256),n=t*e-i,a=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);a+=Ba(a,this.options,this.optionGroups);var r=i/2;this._scrollTop=this._calculateOverlayScroll(a,r,n),this._offsetY=this._calculateOverlayOffsetY(a,r,n),this._checkOverlayWithinViewport(n)}},{key:"_calculateOverlayScroll",value:function(e,t,i){var n=this._getItemHeight();return Math.min(Math.max(0,n*e-t+n/2),i)}},{key:"_getAriaLabel",value:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}},{key:"_getAriaLabelledby",value:function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),n=this._isRtl(),a=this.multiple?56:32;if(this.multiple)e=40;else{var r=this._selectionModel.selected[0]||this.options.first;e=r&&r.group?32:16}n||(e*=-1);var o=0-(t.left+e-(n?a:0)),s=t.right+e-i.width+(n?0:a);o>0?e+=o+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,i){var n,a=this._getItemHeight(),r=(a-this._triggerRect.height)/2,o=Math.floor(256/a);return this._disableOptionCentering?0:(n=0===this._scrollTop?e*a:this._scrollTop===i?(e-(this._getItemCount()-o))*a+(a-(this._getItemCount()*a-256)%a):t-a/2,Math.round(-1*n-r))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,a=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-r-this._triggerRect.height;o>a?this._adjustPanelUp(o,a):r>n?this._adjustPanelDown(r,n,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var i=Math.round(e-t);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,i){var n=Math.round(e-t);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=fi(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=fi(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=fi(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){if("function"!=typeof e)throw Error("`compareWith` must be a function.");this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){e!==this._value&&(this.writeValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=mi(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map((function(e){return e.viewValue}));return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),i}(pb)).\u0275fac=function(e){return new(e||nb)(a.Dc(Zl),a.Dc(a.j),a.Dc(a.I),a.Dc(da),a.Dc(a.r),a.Dc(Cn,8),a.Dc(Wo,8),a.Dc(os,8),a.Dc(Hd,8),a.Dc(Ir,10),a.Tc("tabindex"),a.Dc(lb),a.Dc(ln),a.Dc(ub,8))},nb.\u0275cmp=a.xc({type:nb,selectors:[["mat-select"]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,fb,!0),a.vc(i,za,!0),a.vc(i,Ma,!0)),2&e&&(a.md(n=a.Xc())&&(t.customTrigger=n.first),a.md(n=a.Xc())&&(t.options=n),a.md(n=a.Xc())&&(t.optionGroups=n))},viewQuery:function(e,t){var i;1&e&&(a.Fd(Kv,!0),a.Fd(Xv,!0),a.Fd(ed,!0)),2&e&&(a.md(i=a.Xc())&&(t.trigger=i.first),a.md(i=a.Xc())&&(t.panel=i.first),a.md(i=a.Xc())&&(t.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&a.Wc("keydown",(function(e){return t._handleKeydown(e)}))("focus",(function(){return t._onFocus()}))("blur",(function(){return t._onBlur()})),2&e&&(a.qc("id",t.id)("tabindex",t.tabIndex)("aria-label",t._getAriaLabel())("aria-labelledby",t._getAriaLabelledby())("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-owns",t.panelOpen?t._optionIds:null)("aria-multiselectable",t.multiple)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),a.tc("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[a.oc([{provide:Sd,useExisting:nb},{provide:Na,useExisting:nb}]),a.mc,a.nc],ngContentSelectors:ob,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(a.fd(rb),a.Jc(0,"div",0,1),a.Wc("click",(function(){return t.toggle()})),a.Jc(3,"div",2),a.zd(4,Yv,2,1,"span",3),a.zd(5,eb,3,2,"span",4),a.Ic(),a.Jc(6,"div",5),a.Ec(7,"div",6),a.Ic(),a.Ic(),a.zd(8,tb,4,10,"ng-template",7),a.Wc("backdropClick",(function(){return t.close()}))("attach",(function(){return t._onAttached()}))("detach",(function(){return t.close()}))),2&e){var i=a.nd(1);a.pc(3),a.gd("ngSwitch",t.empty),a.pc(1),a.gd("ngSwitchCase",!0),a.pc(1),a.gd("ngSwitchCase",!1),a.pc(3),a.gd("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[Qu,yt.x,yt.y,ed,yt.z,yt.q],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[sb.transformPanelWrap,sb.transformPanel]},changeDetection:0}),nb),gb=((ib=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ib}),ib.\u0275inj=a.Ac({factory:function(e){return new(e||ib)},providers:[db],imports:[[yt.c,id,Wa,Bn],Gd,Wa,Bn]}),ib),vb=["*"];function bb(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",2),a.Wc("click",(function(){return a.rd(i),a.ad()._onBackdropClicked()})),a.Ic()}if(2&e){var n=a.ad();a.tc("mat-drawer-shown",n._isShowingBackdrop())}}function _b(e,t){1&e&&(a.Jc(0,"mat-drawer-content"),a.ed(1,2),a.Ic())}var yb=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],kb=["mat-drawer","mat-drawer-content","*"];function wb(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",2),a.Wc("click",(function(){return a.rd(i),a.ad()._onBackdropClicked()})),a.Ic()}if(2&e){var n=a.ad();a.tc("mat-drawer-shown",n._isShowingBackdrop())}}function Cb(e,t){1&e&&(a.Jc(0,"mat-sidenav-content",3),a.ed(1,2),a.Ic())}var xb=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Sb=["mat-sidenav","mat-sidenav-content","*"],Ib={transformDrawer:o("transform",[d("open, open-instant",u({transform:"none",visibility:"visible"})),d("void",u({"box-shadow":"none",visibility:"hidden"})),p("void => open-instant",s("0ms")),p("void <=> open, open-instant => void",s("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function Ob(e){throw Error("A drawer was already declared for 'position=\"".concat(e,"\"'"))}var Db,Eb,Ab,Tb,Pb,Rb,Mb,Lb,jb,Fb,Nb,zb=new a.x("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Bb=new a.x("MAT_DRAWER_CONTAINER"),Jb=((Pb=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o){var s;return _classCallCheck(this,i),(s=t.call(this,a,r,o))._changeDetectorRef=e,s._container=n,s}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe((function(){e._changeDetectorRef.markForCheck()}))}}]),i}(Yl)).\u0275fac=function(e){return new(e||Pb)(a.Dc(a.j),a.Dc(Object(a.hb)((function(){return Hb}))),a.Dc(a.r),a.Dc(Xl),a.Dc(a.I))},Pb.\u0275cmp=a.xc({type:Pb,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&a.yd("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[a.mc],ngContentSelectors:vb,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.ed(0))},encapsulation:2,changeDetection:0}),Pb),Vb=((Tb=function(){function e(t,i,n,r,o,s,c){var l=this;_classCallCheck(this,e),this._elementRef=t,this._focusTrapFactory=i,this._focusMonitor=n,this._platform=r,this._ngZone=o,this._doc=s,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Lt.a,this._animationEnd=new Lt.a,this._animationState="void",this.openedChange=new a.u(!0),this._destroyed=new Lt.a,this.onPositionChanged=new a.u,this._modeChanged=new Lt.a,this.openedChange.subscribe((function(e){e?(l._doc&&(l._elementFocusedBeforeDrawerWasOpened=l._doc.activeElement),l._takeFocus()):l._restoreFocus()})),this._ngZone.runOutsideAngular((function(){rl(l._elementRef.nativeElement,"keydown").pipe(ii((function(e){return 27===e.keyCode&&!l.disableClose&&!Jt(e)})),Ol(l._destroyed)).subscribe((function(e){return l._ngZone.run((function(){l.close(),e.stopPropagation(),e.preventDefault()}))}))})),this._animationEnd.pipe(gl((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){var t=e.fromState,i=e.toState;(0===i.indexOf("open")&&"void"===t||"void"===i&&0===t.indexOf("open"))&&l.openedChange.emit(l._opened)}))}return _createClass(e,[{key:"_takeFocus",value:function(){var e=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()}))}},{key:"_restoreFocus",value:function(){if(this.autoFocus){var e=this._doc&&this._doc.activeElement;e&&this._elementRef.nativeElement.contains(e)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"toggle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"program";return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(t){e.openedChange.pipe(ui(1)).subscribe((function(e){return t(e?"open":"close")}))}))}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(e){this._animationStarted.next(e)}},{key:"_animationDoneListener",value:function(e){this._animationEnd.next(e)}},{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=fi(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=fi(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(fi(e))}},{key:"_openedStream",get:function(){return this.openedChange.pipe(ii((function(e){return e})),Object(ri.a)((function(){})))}},{key:"openedStart",get:function(){return this._animationStarted.pipe(ii((function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")})),Object(ri.a)((function(){})))}},{key:"_closedStream",get:function(){return this.openedChange.pipe(ii((function(e){return!e})),Object(ri.a)((function(){})))}},{key:"closedStart",get:function(){return this._animationStarted.pipe(ii((function(e){return e.fromState!==e.toState&&"void"===e.toState})),Object(ri.a)((function(){})))}},{key:"_width",get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}}]),e}()).\u0275fac=function(e){return new(e||Tb)(a.Dc(a.r),a.Dc(nn),a.Dc(hn),a.Dc(Ii),a.Dc(a.I),a.Dc(yt.e,8),a.Dc(Bb,8))},Tb.\u0275cmp=a.xc({type:Tb,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&a.uc("@transform.start",(function(e){return t._animationStartListener(e)}))("@transform.done",(function(e){return t._animationDoneListener(e)})),2&e&&(a.qc("align",null),a.Ed("@transform",t._animationState),a.tc("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:vb,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div",0),a.ed(1),a.Ic())},encapsulation:2,data:{animation:[Ib.transformDrawer]},changeDetection:0}),Tb),Hb=((Ab=function(){function e(t,i,n,r,o){var s=this,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,e),this._dir=t,this._element=i,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=l,this._drawers=new a.O,this.backdropClick=new a.u,this._destroyed=new Lt.a,this._doCheckSubject=new Lt.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Lt.a,t&&t.change.pipe(Ol(this._destroyed)).subscribe((function(){s._validateDrawers(),s.updateContentMargins()})),o.change().pipe(Ol(this._destroyed)).subscribe((function(){return s.updateContentMargins()})),this._autosize=c}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(An(this._allDrawers),Ol(this._destroyed)).subscribe((function(t){e._drawers.reset(t.filter((function(t){return!t._container||t._container===e}))),e._drawers.notifyOnChanges()})),this._drawers.changes.pipe(An(null)).subscribe((function(){e._validateDrawers(),e._drawers.forEach((function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)})),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(Zt(10),Ol(this._destroyed)).subscribe((function(){return e.updateContentMargins()}))}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach((function(e){return e.open()}))}},{key:"close",value:function(){this._drawers.forEach((function(e){return e.close()}))}},{key:"updateContentMargins",value:function(){var e=this,t=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._width;else if("push"==this._left.mode){var n=this._left._width;t+=n,i-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._width;else if("push"==this._right.mode){var a=this._right._width;i+=a,t-=a}i=i||null,(t=t||null)===this._contentMargins.left&&i===this._contentMargins.right||(this._contentMargins={left:t,right:i},this._ngZone.run((function(){return e._contentMarginChanges.next(e._contentMargins)})))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return e._doCheckSubject.next()}))}},{key:"_watchDrawerToggle",value:function(e){var t=this;e._animationStarted.pipe(ii((function(e){return e.fromState!==e.toState})),Ol(this._drawers.changes)).subscribe((function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),"side"!==e.mode&&e.openedChange.pipe(Ol(this._drawers.changes)).subscribe((function(){return t._setContainerClass(e.opened)}))}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(Ol(this._drawers.changes)).subscribe((function(){t._ngZone.onMicrotaskEmpty.asObservable().pipe(ui(1)).subscribe((function(){t._validateDrawers()}))}))}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(Ol(Object(al.a)(this._drawers.changes,this._destroyed))).subscribe((function(){t.updateContentMargins(),t._changeDetectorRef.markForCheck()}))}},{key:"_setContainerClass",value:function(e){var t=this._element.nativeElement.classList,i="mat-drawer-container-has-open";e?t.add(i):t.remove(i)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach((function(t){"end"==t.position?(null!=e._end&&Ob("end"),e._end=t):(null!=e._start&&Ob("start"),e._start=t)})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawer()}},{key:"_closeModalDrawer",value:function(){var e=this;[this._start,this._end].filter((function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)})).forEach((function(e){return e.close()}))}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=fi(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:fi(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),e}()).\u0275fac=function(e){return new(e||Ab)(a.Dc(Cn,8),a.Dc(a.r),a.Dc(a.I),a.Dc(a.j),a.Dc(Zl),a.Dc(zb),a.Dc(Pt,8))},Ab.\u0275cmp=a.xc({type:Ab,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,Jb,!0),a.vc(i,Vb,!0)),2&e&&(a.md(n=a.Xc())&&(t._content=n.first),a.md(n=a.Xc())&&(t._allDrawers=n))},viewQuery:function(e,t){var i;1&e&&a.Fd(Jb,!0),2&e&&a.md(i=a.Xc())&&(t._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.oc([{provide:Bb,useExisting:Ab}])],ngContentSelectors:kb,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(a.fd(yb),a.zd(0,bb,1,2,"div",0),a.ed(1),a.ed(2,1),a.zd(3,_b,2,0,"mat-drawer-content",1)),2&e&&(a.gd("ngIf",t.hasBackdrop),a.pc(3),a.gd("ngIf",!t._content))},directives:[yt.t,Jb],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Ab),Ub=((Eb=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o){return _classCallCheck(this,i),t.call(this,e,n,a,r,o)}return i}(Jb)).\u0275fac=function(e){return new(e||Eb)(a.Dc(a.j),a.Dc(Object(a.hb)((function(){return qb}))),a.Dc(a.r),a.Dc(Xl),a.Dc(a.I))},Eb.\u0275cmp=a.xc({type:Eb,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&a.yd("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[a.mc],ngContentSelectors:vb,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.ed(0))},encapsulation:2,changeDetection:0}),Eb),Gb=((Db=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments))._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return _createClass(i,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=fi(e)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=mi(e)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=mi(e)}}]),i}(Vb)).\u0275fac=function(e){return Wb(e||Db)},Db.\u0275cmp=a.xc({type:Db,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(a.qc("align",null),a.yd("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),a.tc("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[a.mc],ngContentSelectors:vb,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div",0),a.ed(1),a.Ic())},encapsulation:2,data:{animation:[Ib.transformDrawer]},changeDetection:0}),Db),Wb=a.Lc(Gb),qb=((Rb=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Hb)).\u0275fac=function(e){return $b(e||Rb)},Rb.\u0275cmp=a.xc({type:Rb,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,Ub,!0),a.vc(i,Gb,!0)),2&e&&(a.md(n=a.Xc())&&(t._content=n.first),a.md(n=a.Xc())&&(t._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[a.oc([{provide:Bb,useExisting:Rb}]),a.mc],ngContentSelectors:Sb,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,t){1&e&&(a.fd(xb),a.zd(0,wb,1,2,"div",0),a.ed(1),a.ed(2,1),a.zd(3,Cb,2,0,"mat-sidenav-content",1)),2&e&&(a.gd("ngIf",t.hasBackdrop),a.pc(3),a.gd("ngIf",!t._content))},directives:[yt.t,Ub,Yl],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Rb),$b=a.Lc(qb),Kb=((Mb=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Mb}),Mb.\u0275inj=a.Ac({factory:function(e){return new(e||Mb)},imports:[[yt.c,Bn,Ql,Oi],Bn]}),Mb),Xb=["thumbContainer"],Yb=["toggleBar"],Zb=["input"],Qb=function(){return{enterDuration:150}},e_=["*"],t_=new a.x("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),i_=0,n_={provide:fr,useExisting:Object(a.hb)((function(){return o_})),multi:!0},a_=function e(t,i){_classCallCheck(this,e),this.source=t,this.checked=i},r_=Un(Vn(Hn(Jn((function e(t){_classCallCheck(this,e),this._elementRef=t}))),"accent")),o_=((Lb=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l,u){var d;return _classCallCheck(this,i),(d=t.call(this,e))._focusMonitor=n,d._changeDetectorRef=r,d.defaults=c,d._animationMode=l,d._onChange=function(e){},d._onTouched=function(){},d._uniqueId="mat-slide-toggle-".concat(++i_),d._required=!1,d._checked=!1,d.name=null,d.id=d._uniqueId,d.labelPosition="after",d.ariaLabel=null,d.ariaLabelledby=null,d.change=new a.u,d.toggleChange=new a.u,d.dragChange=new a.u,d.tabIndex=parseInt(o)||0,d}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(t){"keyboard"===t||"program"===t?e._inputElement.nativeElement.focus():t||Promise.resolve().then((function(){return e._onTouched()}))}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(e){this._focusMonitor.focusVia(this._inputElement,"keyboard",e)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new a_(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(e){this._required=fi(e)}},{key:"checked",get:function(){return this._checked},set:function(e){this._checked=fi(e),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),i}(r_)).\u0275fac=function(e){return new(e||Lb)(a.Dc(a.r),a.Dc(hn),a.Dc(a.j),a.Tc("tabindex"),a.Dc(a.I),a.Dc(t_),a.Dc(Pt,8),a.Dc(Cn,8))},Lb.\u0275cmp=a.xc({type:Lb,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){var i;1&e&&(a.Fd(Xb,!0),a.Fd(Yb,!0),a.Fd(Zb,!0)),2&e&&(a.md(i=a.Xc())&&(t._thumbEl=i.first),a.md(i=a.Xc())&&(t._thumbBarEl=i.first),a.md(i=a.Xc())&&(t._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(e,t){2&e&&(a.Mc("id",t.id),a.qc("tabindex",t.disabled?null:-1)("aria-label",null)("aria-labelledby",null),a.tc("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[a.oc([n_]),a.mc],ngContentSelectors:e_,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(a.fd(),a.Jc(0,"label",0,1),a.Jc(2,"div",2,3),a.Jc(4,"input",4,5),a.Wc("change",(function(e){return t._onChangeEvent(e)}))("click",(function(e){return t._onInputClick(e)})),a.Ic(),a.Jc(6,"div",6,7),a.Ec(8,"div",8),a.Jc(9,"div",9),a.Ec(10,"div",10),a.Ic(),a.Ic(),a.Ic(),a.Jc(11,"span",11,12),a.Wc("cdkObserveContent",(function(){return t._onLabelTextChange()})),a.Jc(13,"span",13),a.Bd(14,"\xa0"),a.Ic(),a.ed(15),a.Ic(),a.Ic()),2&e){var i=a.nd(1),n=a.nd(12);a.qc("for",t.inputId),a.pc(2),a.tc("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),a.pc(2),a.gd("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),a.qc("name",t.name)("aria-checked",t.checked.toString())("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby),a.pc(5),a.gd("matRippleTrigger",i)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.id(17,Qb))}},directives:[Da,zi],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),Lb),s_={provide:Tr,useExisting:Object(a.hb)((function(){return c_})),multi:!0},c_=((jb=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Xs)).\u0275fac=function(e){return l_(e||jb)},jb.\u0275dir=a.yc({type:jb,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[a.oc([s_]),a.mc]}),jb),l_=a.Lc(c_),u_=((Nb=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Nb}),Nb.\u0275inj=a.Ac({factory:function(e){return new(e||Nb)}}),Nb),d_=((Fb=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Fb}),Fb.\u0275inj=a.Ac({factory:function(e){return new(e||Fb)},imports:[[u_,Ea,Bn,Bi],u_,Bn]}),Fb);function h_(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",1),a.Jc(1,"button",2),a.Wc("click",(function(){return a.rd(i),a.ad().action()})),a.Bd(2),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(2),a.Cd(n.data.action)}}function p_(e,t){}var f_,m_,g_,v_,b_,__,y_,k_=Math.pow(2,31)-1,w_=function(){function e(t,i){var n=this;_classCallCheck(this,e),this._overlayRef=i,this._afterDismissed=new Lt.a,this._afterOpened=new Lt.a,this._onAction=new Lt.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe((function(){return n.dismiss()})),t._onExit.subscribe((function(){return n._finishDismiss()}))}return _createClass(e,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var t=this;this._durationTimeoutId=setTimeout((function(){return t.dismiss()}),Math.min(e,k_))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed.asObservable()}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction.asObservable()}}]),e}(),C_=new a.x("MatSnackBarData"),x_=function e(){_classCallCheck(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},S_=((f_=function(){function e(t,i){_classCallCheck(this,e),this.snackBarRef=t,this.data=i}return _createClass(e,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),e}()).\u0275fac=function(e){return new(e||f_)(a.Dc(w_),a.Dc(C_))},f_.\u0275cmp=a.xc({type:f_,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(a.Jc(0,"span"),a.Bd(1),a.Ic(),a.zd(2,h_,3,1,"div",0)),2&e&&(a.pc(1),a.Cd(t.data.message),a.pc(1),a.gd("ngIf",t.hasAction))},directives:[yt.t,Za],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),f_),I_={snackBarState:o("state",[d("void, hidden",u({transform:"scale(0.8)",opacity:0})),d("visible",u({transform:"scale(1)",opacity:1})),p("* => visible",s("150ms cubic-bezier(0, 0, 0.2, 1)")),p("* => void, * => hidden",s("75ms cubic-bezier(0.4, 0.0, 1, 1)",u({opacity:0})))])},O_=((g_=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this))._ngZone=e,o._elementRef=n,o._changeDetectorRef=a,o.snackBarConfig=r,o._destroyed=!1,o._onExit=new Lt.a,o._onEnter=new Lt.a,o._animationState="void",o.attachDomPortal=function(e){return o._assertNotAttached(),o._applySnackBarClasses(),o._portalOutlet.attachDomPortal(e)},o._role="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?null:"status":"alert",o}return _createClass(i,[{key:"attachComponentPortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}},{key:"onAnimationEnd",value:function(e){var t=e.fromState,i=e.toState;if(("void"===i&&"void"!==t||"hidden"===i)&&this._completeExit(),"visible"===i){var n=this._onEnter;this._ngZone.run((function(){n.next(),n.complete()}))}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var e=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(ui(1)).subscribe((function(){e._onExit.next(),e._onExit.complete()}))}},{key:"_applySnackBarClasses",value:function(){var e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach((function(t){return e.classList.add(t)})):e.classList.add(t)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}]),i}(lu)).\u0275fac=function(e){return new(e||g_)(a.Dc(a.I),a.Dc(a.r),a.Dc(a.j),a.Dc(x_))},g_.\u0275cmp=a.xc({type:g_,selectors:[["snack-bar-container"]],viewQuery:function(e,t){var i;1&e&&a.xd(hu,!0),2&e&&a.md(i=a.Xc())&&(t._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(e,t){1&e&&a.uc("@state.done",(function(e){return t.onAnimationEnd(e)})),2&e&&(a.qc("role",t._role),a.Ed("@state",t._animationState))},features:[a.mc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&a.zd(0,p_,0,0,"ng-template",0)},directives:[hu],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[I_.snackBarState]}}),g_),D_=((m_=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:m_}),m_.\u0275inj=a.Ac({factory:function(e){return new(e||m_)},imports:[[id,mu,yt.c,er,Bn],Bn]}),m_),E_=new a.x("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new x_}}),A_=((v_=function(){function e(t,i,n,a,r,o){_classCallCheck(this,e),this._overlay=t,this._live=i,this._injector=n,this._breakpointObserver=a,this._parentSnackBar=r,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return _createClass(e,[{key:"openFromComponent",value:function(e,t){return this._attach(e,t)}},{key:"openFromTemplate",value:function(e,t){return this._attach(e,t)}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:e,action:t},n.announcementMessage||(n.announcementMessage=e),this.openFromComponent(S_,n)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,t){var i=new gu(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[x_,t]])),n=new ou(O_,t.viewContainerRef,i),a=e.attach(n);return a.instance.snackBarConfig=t,a.instance}},{key:"_attach",value:function(e,t){var i=Object.assign(Object.assign(Object.assign({},new x_),this._defaultConfig),t),n=this._createOverlay(i),r=this._attachSnackBarContainer(n,i),o=new w_(r,n);if(e instanceof a.Y){var s=new su(e,null,{$implicit:i.data,snackBarRef:o});o.instance=r.attachTemplatePortal(s)}else{var c=this._createInjector(i,o),l=new ou(e,void 0,c),u=r.attachComponentPortal(l);o.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(Ol(n.detachments())).subscribe((function(e){var t=n.overlayElement.classList;e.matches?t.add("mat-snack-bar-handset"):t.remove("mat-snack-bar-handset")})),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,t){var i=this;e.afterDismissed().subscribe((function(){i._openedSnackBarRef==e&&(i._openedSnackBarRef=null),t.announcementMessage&&i._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){e.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe((function(){return e._dismissAfter(t.duration)})),t.announcementMessage&&this._live.announce(t.announcementMessage,t.politeness)}},{key:"_createOverlay",value:function(e){var t=new Iu;t.direction=e.direction;var i=this._overlay.position().global(),n="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!n||"end"===e.horizontalPosition&&n,r=!a&&"center"!==e.horizontalPosition;return a?i.left("0"):r?i.right("0"):i.centerHorizontally(),"top"===e.verticalPosition?i.top("0"):i.bottom("0"),t.positionStrategy=i,this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){return new gu(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[w_,t],[C_,e.data]]))}},{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}}]),e}()).\u0275fac=function(e){return new(e||v_)(a.Sc(Xu),a.Sc(ln),a.Sc(a.y),a.Sc(ev),a.Sc(v_,12),a.Sc(E_))},v_.\u0275prov=Object(a.zc)({factory:function(){return new v_(Object(a.Sc)(Xu),Object(a.Sc)(ln),Object(a.Sc)(a.v),Object(a.Sc)(ev),Object(a.Sc)(v_,12),Object(a.Sc)(E_))},token:v_,providedIn:D_}),v_),T_=["*",[["mat-toolbar-row"]]],P_=["*","mat-toolbar-row"],R_=Vn((function e(t){_classCallCheck(this,e),this._elementRef=t})),M_=((y_=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||y_)},y_.\u0275dir=a.yc({type:y_,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),y_),L_=((__=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e))._platform=n,r._document=a,r}return _createClass(i,[{key:"ngAfterViewInit",value:function(){var e=this;Object(a.jb)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return e._checkToolbarMixedModes()})))}},{key:"_checkToolbarMixedModes",value:function(){var e=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(e){return!(e.classList&&e.classList.contains("mat-toolbar-row"))})).filter((function(t){return t.nodeType!==(e._document?e._document.COMMENT_NODE:8)})).some((function(e){return!(!e.textContent||!e.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()}}]),i}(R_)).\u0275fac=function(e){return new(e||__)(a.Dc(a.r),a.Dc(Ii),a.Dc(yt.e))},__.\u0275cmp=a.xc({type:__,selectors:[["mat-toolbar"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,M_,!0),2&e&&a.md(n=a.Xc())&&(t._toolbarRows=n)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&a.tc("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.mc],ngContentSelectors:P_,decls:2,vars:0,template:function(e,t){1&e&&(a.fd(T_),a.ed(0),a.ed(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),__),j_=((b_=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:b_}),b_.\u0275inj=a.Ac({factory:function(e){return new(e||b_)},imports:[[Bn],Bn]}),b_);function F_(e,t){1&e&&a.ed(0)}var N_=["*"];function z_(e,t){}var B_=function(e){return{animationDuration:e}},J_=function(e,t){return{value:e,params:t}},V_=["tabBodyWrapper"],H_=["tabHeader"];function U_(e,t){}function G_(e,t){if(1&e&&a.zd(0,U_,0,0,"ng-template",9),2&e){var i=a.ad().$implicit;a.gd("cdkPortalOutlet",i.templateLabel)}}function W_(e,t){if(1&e&&a.Bd(0),2&e){var i=a.ad().$implicit;a.Cd(i.textLabel)}}function q_(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",6),a.Wc("click",(function(){a.rd(i);var e=t.$implicit,n=t.index,r=a.ad(),o=a.nd(1);return r._handleClick(e,o,n)})),a.Jc(1,"div",7),a.zd(2,G_,1,1,"ng-template",8),a.zd(3,W_,1,1,"ng-template",8),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit,r=t.index,o=a.ad();a.tc("mat-tab-label-active",o.selectedIndex==r),a.gd("id",o._getTabLabelId(r))("disabled",n.disabled)("matRippleDisabled",n.disabled||o.disableRipple),a.qc("tabIndex",o._getTabIndex(n,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),a.pc(2),a.gd("ngIf",n.templateLabel),a.pc(1),a.gd("ngIf",!n.templateLabel)}}function $_(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-tab-body",10),a.Wc("_onCentered",(function(){return a.rd(i),a.ad()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return a.rd(i),a.ad()._setTabBodyWrapperHeight(e)})),a.Ic()}if(2&e){var n=t.$implicit,r=t.index,o=a.ad();a.tc("mat-tab-body-active",o.selectedIndex==r),a.gd("id",o._getTabContentId(r))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",o.animationDuration),a.qc("aria-labelledby",o._getTabLabelId(r))}}var K_,X_,Y_,Z_,Q_,ey,ty,iy,ny,ay,ry,oy,sy,cy,ly,uy,dy,hy,py=["tabListContainer"],fy=["tabList"],my=["nextPaginator"],gy=["previousPaginator"],vy=["mat-tab-nav-bar",""],by=new a.x("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),_y=((Y_=function(){function e(t,i,n,a){_classCallCheck(this,e),this._elementRef=t,this._ngZone=i,this._inkBarPositioner=n,this._animationMode=a}return _createClass(e,[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t._setStyles(e)}))})):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),i=this._elementRef.nativeElement;i.style.left=t.left,i.style.width=t.width}}]),e}()).\u0275fac=function(e){return new(e||Y_)(a.Dc(a.r),a.Dc(a.I),a.Dc(by),a.Dc(Pt,8))},Y_.\u0275dir=a.yc({type:Y_,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),Y_),yy=((X_=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||X_)(a.Dc(a.Y))},X_.\u0275dir=a.yc({type:X_,selectors:[["","matTabContent",""]]}),X_),ky=((K_=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(du)).\u0275fac=function(e){return wy(e||K_)},K_.\u0275dir=a.yc({type:K_,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.mc]}),K_),wy=a.Lc(ky),Cy=Jn((function e(){_classCallCheck(this,e)})),xy=new a.x("MAT_TAB_GROUP"),Sy=((Z_=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this))._viewContainerRef=e,a._closestTabGroup=n,a.textLabel="",a._contentPortal=null,a._stateChanges=new Lt.a,a.position=null,a.origin=null,a.isActive=!1,a}return _createClass(i,[{key:"ngOnChanges",value:function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new su(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){e&&(this._templateLabel=e)}},{key:"content",get:function(){return this._contentPortal}}]),i}(Cy)).\u0275fac=function(e){return new(e||Z_)(a.Dc(a.cb),a.Dc(xy,8))},Z_.\u0275cmp=a.xc({type:Z_,selectors:[["mat-tab"]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,ky,!0),a.wd(i,yy,!0,a.Y)),2&e&&(a.md(n=a.Xc())&&(t.templateLabel=n.first),a.md(n=a.Xc())&&(t._explicitContent=n.first))},viewQuery:function(e,t){var i;1&e&&a.xd(a.Y,!0),2&e&&a.md(i=a.Xc())&&(t._implicitContent=i.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.mc,a.nc],ngContentSelectors:N_,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.zd(0,F_,1,0,"ng-template"))},encapsulation:2}),Z_),Iy={translateTab:o("translateTab",[d("center, void, left-origin-center, right-origin-center",u({transform:"none"})),d("left",u({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),d("right",u({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),p("* => left, * => right, left => center, right => center",s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),p("void => left-origin-center",[u({transform:"translate3d(-100%, 0, 0)"}),s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),p("void => right-origin-center",[u({transform:"translate3d(100%, 0, 0)"}),s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Oy=((ty=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e,n,r))._host=a,o._centeringSub=jt.a.EMPTY,o._leavingSub=jt.a.EMPTY,o}return _createClass(i,[{key:"ngOnInit",value:function(){var e=this;_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(An(this._host._isCenterPosition(this._host._position))).subscribe((function(t){t&&!e.hasAttached()&&e.attach(e._host._content)})),this._leavingSub=this._host._afterLeavingCenter.subscribe((function(){e.detach()}))}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),i}(hu)).\u0275fac=function(e){return new(e||ty)(a.Dc(a.n),a.Dc(a.cb),a.Dc(Object(a.hb)((function(){return Ey}))),a.Dc(yt.e))},ty.\u0275dir=a.yc({type:ty,selectors:[["","matTabBodyHost",""]],features:[a.mc]}),ty),Dy=((ey=function(){function e(t,i,n){var r=this;_classCallCheck(this,e),this._elementRef=t,this._dir=i,this._dirChangeSubscription=jt.a.EMPTY,this._translateTabComplete=new Lt.a,this._onCentering=new a.u,this._beforeCentering=new a.u,this._afterLeavingCenter=new a.u,this._onCentered=new a.u(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe((function(e){r._computePositionAnimationState(e),n.markForCheck()}))),this._translateTabComplete.pipe(gl((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){r._isCenterPosition(e.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(e.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()}))}return _createClass(e,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}},{key:"_computePositionAnimationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(e){var t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}}]),e}()).\u0275fac=function(e){return new(e||ey)(a.Dc(a.r),a.Dc(Cn,8),a.Dc(a.j))},ey.\u0275dir=a.yc({type:ey,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),ey),Ey=((Q_=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){return _classCallCheck(this,i),t.call(this,e,n,a)}return i}(Dy)).\u0275fac=function(e){return new(e||Q_)(a.Dc(a.r),a.Dc(Cn,8),a.Dc(a.j))},Q_.\u0275cmp=a.xc({type:Q_,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var i;1&e&&a.Fd(pu,!0),2&e&&a.md(i=a.Xc())&&(t._portalHost=i.first)},hostAttrs:[1,"mat-tab-body"],features:[a.mc],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(a.Jc(0,"div",0,1),a.Wc("@translateTab.start",(function(e){return t._onTranslateTabStarted(e)}))("@translateTab.done",(function(e){return t._translateTabComplete.next(e)})),a.zd(2,z_,0,0,"ng-template",2),a.Ic()),2&e&&a.gd("@translateTab",a.kd(3,J_,t._position,a.jd(1,B_,t.animationDuration)))},directives:[Oy],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Iy.translateTab]}}),Q_),Ay=new a.x("MAT_TABS_CONFIG"),Ty=0,Py=function e(){_classCallCheck(this,e)},Ry=Vn(Hn((function e(t){_classCallCheck(this,e),this._elementRef=t})),"primary"),My=((ny=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o){var s;return _classCallCheck(this,i),(s=t.call(this,e))._changeDetectorRef=n,s._animationMode=o,s._tabs=new a.O,s._indexToSelect=0,s._tabBodyWrapperHeight=0,s._tabsSubscription=jt.a.EMPTY,s._tabLabelSubscription=jt.a.EMPTY,s._dynamicHeight=!1,s._selectedIndex=null,s.headerPosition="above",s.selectedIndexChange=new a.u,s.focusChange=new a.u,s.animationDone=new a.u,s.selectedTabChange=new a.u(!0),s._groupId=Ty++,s.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",s.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,s}return _createClass(i,[{key:"ngAfterContentChecked",value:function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var i=null==this._selectedIndex;i||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then((function(){e._tabs.forEach((function(e,i){return e.isActive=i===t})),i||e.selectedIndexChange.emit(t)}))}this._tabs.forEach((function(i,n){i.position=n-t,null==e._selectedIndex||0!=i.position||i.origin||(i.origin=t-e._selectedIndex)})),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),i=0;i.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),iy),jy=Jn((function e(){_classCallCheck(this,e)})),Fy=((ay=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this)).elementRef=e,n}return _createClass(i,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),i}(jy)).\u0275fac=function(e){return new(e||ay)(a.Dc(a.r))},ay.\u0275dir=a.yc({type:ay,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(a.qc("aria-disabled",!!t.disabled),a.tc("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[a.mc]}),ay),Ny=Ai({passive:!0}),zy=((ly=function(){function e(t,i,n,r,o,s,c){var l=this;_classCallCheck(this,e),this._elementRef=t,this._changeDetectorRef=i,this._viewportRuler=n,this._dir=r,this._ngZone=o,this._platform=s,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Lt.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Lt.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.u,this.indexFocused=new a.u,o.runOutsideAngular((function(){rl(t.nativeElement,"mouseleave").pipe(Ol(l._destroyed)).subscribe((function(){l._stopInterval()}))}))}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this;rl(this._previousPaginator.nativeElement,"touchstart",Ny).pipe(Ol(this._destroyed)).subscribe((function(){e._handlePaginatorPress("before")})),rl(this._nextPaginator.nativeElement,"touchstart",Ny).pipe(Ol(this._destroyed)).subscribe((function(){e._handlePaginatorPress("after")}))}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:Bt(null),i=this._viewportRuler.change(150),n=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new Xi(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(al.a)(t,i,this._items.changes).pipe(Ol(this._destroyed)).subscribe((function(){n(),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())})),this._keyManager.change.pipe(Ol(this._destroyed)).subscribe((function(t){e.indexFocused.emit(t),e._setTabFocus(t)}))}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!Jt(e))switch(e.keyCode){case 36:this._keyManager.setFirstItemActive(),e.preventDefault();break;case 35:this._keyManager.setLastItemActive(),e.preventDefault();break;case 13:case 32:this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e);break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run((function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()})))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement,i=this._getLayoutDirection();t.scrollLeft="ltr"==i?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t=this._platform,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(i),"px)"),t&&(t.TRIDENT||t.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var i,n,a=this._tabListContainer.nativeElement.offsetWidth,r=t.elementRef.nativeElement,o=r.offsetLeft,s=r.offsetWidth;"ltr"==this._getLayoutDirection()?n=(i=o)+s:i=(n=this._tabList.nativeElement.offsetWidth-o)-s;var c=this.scrollDistance,l=this.scrollDistance+a;il&&(this.scrollDistance+=n-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var i=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),xl(650,100).pipe(Ol(Object(al.a)(this._stopScrolling,this._destroyed))).subscribe((function(){var t=i._scrollHeader(e),n=t.maxScrollDistance,a=t.distance;(0===a||a>=n)&&i._stopInterval()})))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=mi(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}}]),e}()).\u0275fac=function(e){return new(e||ly)(a.Dc(a.r),a.Dc(a.j),a.Dc(Zl),a.Dc(Cn,8),a.Dc(a.I),a.Dc(Ii),a.Dc(Pt,8))},ly.\u0275dir=a.yc({type:ly,inputs:{disablePagination:"disablePagination"}}),ly),By=((cy=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s,c){var l;return _classCallCheck(this,i),(l=t.call(this,e,n,a,r,o,s,c))._disableRipple=!1,l}return _createClass(i,[{key:"_itemSelected",value:function(e){e.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=fi(e)}}]),i}(zy)).\u0275fac=function(e){return new(e||cy)(a.Dc(a.r),a.Dc(a.j),a.Dc(Zl),a.Dc(Cn,8),a.Dc(a.I),a.Dc(Ii),a.Dc(Pt,8))},cy.\u0275dir=a.yc({type:cy,inputs:{disableRipple:"disableRipple"},features:[a.mc]}),cy),Jy=((sy=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s,c){return _classCallCheck(this,i),t.call(this,e,n,a,r,o,s,c)}return i}(By)).\u0275fac=function(e){return new(e||sy)(a.Dc(a.r),a.Dc(a.j),a.Dc(Zl),a.Dc(Cn,8),a.Dc(a.I),a.Dc(Ii),a.Dc(Pt,8))},sy.\u0275cmp=a.xc({type:sy,selectors:[["mat-tab-header"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,Fy,!1),2&e&&a.md(n=a.Xc())&&(t._items=n)},viewQuery:function(e,t){var i;1&e&&(a.xd(_y,!0),a.xd(py,!0),a.xd(fy,!0),a.Fd(my,!0),a.Fd(gy,!0)),2&e&&(a.md(i=a.Xc())&&(t._inkBar=i.first),a.md(i=a.Xc())&&(t._tabListContainer=i.first),a.md(i=a.Xc())&&(t._tabList=i.first),a.md(i=a.Xc())&&(t._nextPaginator=i.first),a.md(i=a.Xc())&&(t._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&a.tc("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.mc],ngContentSelectors:N_,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div",0,1),a.Wc("click",(function(){return t._handlePaginatorClick("before")}))("mousedown",(function(e){return t._handlePaginatorPress("before",e)}))("touchend",(function(){return t._stopInterval()})),a.Ec(2,"div",2),a.Ic(),a.Jc(3,"div",3,4),a.Wc("keydown",(function(e){return t._handleKeydown(e)})),a.Jc(5,"div",5,6),a.Wc("cdkObserveContent",(function(){return t._onContentChanges()})),a.Jc(7,"div",7),a.ed(8),a.Ic(),a.Ec(9,"mat-ink-bar"),a.Ic(),a.Ic(),a.Jc(10,"div",8,9),a.Wc("mousedown",(function(e){return t._handlePaginatorPress("after",e)}))("click",(function(){return t._handlePaginatorClick("after")}))("touchend",(function(){return t._stopInterval()})),a.Ec(12,"div",2),a.Ic()),2&e&&(a.tc("mat-tab-header-pagination-disabled",t._disableScrollBefore),a.gd("matRippleDisabled",t._disableScrollBefore||t.disableRipple),a.pc(5),a.tc("_mat-animation-noopable","NoopAnimations"===t._animationMode),a.pc(5),a.tc("mat-tab-header-pagination-disabled",t._disableScrollAfter),a.gd("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[Da,zi,_y],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center] .mat-tab-labels{justify-content:center}[mat-align-tabs=end] .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),sy),Vy=((oy=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s,c){var l;return _classCallCheck(this,i),(l=t.call(this,e,r,o,n,a,s,c))._disableRipple=!1,l.color="primary",l}return _createClass(i,[{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var e=this;this._items.changes.pipe(An(null),Ol(this._destroyed)).subscribe((function(){e.updateActiveLink()})),_get(_getPrototypeOf(i.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(e){if(this._items){for(var t=this._items.toArray(),i=0;i1),a.pc(1),a.gd("ngIf",i._displayedPageSizeOptions.length<=1)}}function Zy(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",21),a.Wc("click",(function(){return a.rd(i),a.ad().firstPage()})),a.Zc(),a.Jc(1,"svg",7),a.Ec(2,"path",22),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.gd("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),a.qc("aria-label",n._intl.firstPageLabel)}}function Qy(e,t){if(1&e){var i=a.Kc();a.Zc(),a.Yc(),a.Jc(0,"button",23),a.Wc("click",(function(){return a.rd(i),a.ad().lastPage()})),a.Zc(),a.Jc(1,"svg",7),a.Ec(2,"path",24),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.gd("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),a.qc("aria-label",n._intl.lastPageLabel)}}var ek,tk,ik,nk=((ek=function e(){_classCallCheck(this,e),this.changes=new Lt.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,i){if(0==i||0==t)return"0 of ".concat(i);var n=e*t;return"".concat(n+1," \u2013 ").concat(n<(i=Math.max(i,0))?Math.min(n+t,i):n+t," of ").concat(i)}}).\u0275fac=function(e){return new(e||ek)},ek.\u0275prov=Object(a.zc)({factory:function(){return new ek},token:ek,providedIn:"root"}),ek),ak={provide:nk,deps:[[new a.J,new a.U,nk]],useFactory:function(e){return e||new nk}},rk=new a.x("MAT_PAGINATOR_DEFAULT_OPTIONS"),ok=Jn(Wn((function e(){_classCallCheck(this,e)}))),sk=((ik=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r){var o;if(_classCallCheck(this,i),(o=t.call(this))._intl=e,o._changeDetectorRef=n,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new a.u,o._intlChanges=e.changes.subscribe((function(){return o._changeDetectorRef.markForCheck()})),r){var s=r.pageSize,c=r.pageSizeOptions,l=r.hidePageSize,u=r.showFirstLastButtons;null!=s&&(o._pageSize=s),null!=c&&(o._pageSizeOptions=c),null!=l&&(o._hidePageSize=l),null!=u&&(o._showFirstLastButtons=u)}return _possibleConstructorReturn(o)}return _createClass(i,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex=a.length&&(r=0),a[r]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(e){if(Object(a.jb)()&&e&&"asc"!==e&&"desc"!==e)throw function(e){return Error("".concat(e," is not a valid sort direction ('asc' or 'desc')."))}(e);this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=fi(e)}}]),i}(gk)).\u0275fac=function(e){return bk(e||dk)},dk.\u0275dir=a.yc({type:dk,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[a.mc,a.nc]}),dk),bk=a.Lc(vk),_k=Fn.ENTERING+" "+jn.STANDARD_CURVE,yk={indicator:o("indicator",[d("active-asc, asc",u({transform:"translateY(0px)"})),d("active-desc, desc",u({transform:"translateY(10px)"})),p("active-asc <=> active-desc",s(_k))]),leftPointer:o("leftPointer",[d("active-asc, asc",u({transform:"rotate(-45deg)"})),d("active-desc, desc",u({transform:"rotate(45deg)"})),p("active-asc <=> active-desc",s(_k))]),rightPointer:o("rightPointer",[d("active-asc, asc",u({transform:"rotate(45deg)"})),d("active-desc, desc",u({transform:"rotate(-45deg)"})),p("active-asc <=> active-desc",s(_k))]),arrowOpacity:o("arrowOpacity",[d("desc-to-active, asc-to-active, active",u({opacity:1})),d("desc-to-hint, asc-to-hint, hint",u({opacity:.54})),d("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",u({opacity:0})),p("* => asc, * => desc, * => active, * => hint, * => void",s("0ms")),p("* <=> *",s(_k))]),arrowPosition:o("arrowPosition",[p("* => desc-to-hint, * => desc-to-active",s(_k,h([u({transform:"translateY(-25%)"}),u({transform:"translateY(0)"})]))),p("* => hint-to-desc, * => active-to-desc",s(_k,h([u({transform:"translateY(0)"}),u({transform:"translateY(25%)"})]))),p("* => asc-to-hint, * => asc-to-active",s(_k,h([u({transform:"translateY(25%)"}),u({transform:"translateY(0)"})]))),p("* => hint-to-asc, * => active-to-asc",s(_k,h([u({transform:"translateY(0)"}),u({transform:"translateY(-25%)"})]))),d("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",u({transform:"translateY(0)"})),d("hint-to-desc, active-to-desc, desc",u({transform:"translateY(-25%)"})),d("hint-to-asc, active-to-asc, asc",u({transform:"translateY(25%)"}))]),allowChildren:o("allowChildren",[p("* <=> *",[m("@*",f(),{optional:!0})])])},kk=((hk=function e(){_classCallCheck(this,e),this.changes=new Lt.a,this.sortButtonLabel=function(e){return"Change sorting for ".concat(e)}}).\u0275fac=function(e){return new(e||hk)},hk.\u0275prov=Object(a.zc)({factory:function(){return new hk},token:hk,providedIn:"root"}),hk),wk={provide:kk,deps:[[new a.J,new a.U,kk]],useFactory:function(e){return e||new kk}},Ck=Jn((function e(){_classCallCheck(this,e)})),xk=((fk=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s){var c;if(_classCallCheck(this,i),(c=t.call(this))._intl=e,c._sort=a,c._columnDef=r,c._focusMonitor=o,c._elementRef=s,c._showIndicatorHint=!1,c._arrowDirection="",c._disableViewStateAnimation=!1,c.arrowPosition="after",!a)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return c._rerenderSubscription=Object(al.a)(a.sortChange,a._stateChanges,e.changes).subscribe((function(){c._isSorted()&&c._updateArrowDirection(),!c._isSorted()&&c._viewState&&"active"===c._viewState.toState&&(c._disableViewStateAnimation=!1,c._setAnimationTransitionState({fromState:"active",toState:c._arrowDirection})),n.markForCheck()})),o&&s&&o.monitor(s,!0).subscribe((function(e){return c._setIndicatorHintVisible(!!e)})),_possibleConstructorReturn(c)}return _createClass(i,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._elementRef&&this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_handleClick",value:function(){if(!this._isDisabled()){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var e=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(e),this._showIndicatorHint=!1}}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=fi(e)}}]),i}(Ck)).\u0275fac=function(e){return new(e||fk)(a.Dc(kk),a.Dc(a.j),a.Dc(vk,8),a.Dc("MAT_SORT_HEADER_COLUMN_DEF",8),a.Dc(hn),a.Dc(a.r))},fk.\u0275cmp=a.xc({type:fk,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t._handleClick()}))("mouseenter",(function(){return t._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return t._setIndicatorHintVisible(!1)})),2&e&&(a.qc("aria-sort",t._getAriaSortAttribute()),a.tc("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[a.mc],attrs:lk,ngContentSelectors:mk,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button","mat-focus-indicator"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div",0),a.Jc(1,"button",1),a.ed(2),a.Ic(),a.zd(3,uk,6,6,"div",2),a.Ic()),2&e&&(a.tc("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),a.pc(1),a.qc("disabled",t._isDisabled()||null)("aria-label",t._intl.sortButtonLabel(t.id)),a.pc(2),a.gd("ngIf",t._renderArrow()))},directives:[yt.t],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor;position:relative}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-button,[mat-sort-header].cdk-program-focused .mat-sort-header-button{border-bottom:solid 1px currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[yk.indicator,yk.leftPointer,yk.rightPointer,yk.arrowOpacity,yk.arrowPosition,yk.allowChildren]},changeDetection:0}),fk),Sk=((pk=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:pk}),pk.\u0275inj=a.Ac({factory:function(e){return new(e||pk)},providers:[wk],imports:[[yt.c]]}),pk),Ik=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this))._value=e,n}return _createClass(i,[{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(i.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Wl.a;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(i.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),i}(Lt.a),Ok=[[["caption"]]],Dk=["caption"];function Ek(e,t){if(1&e&&(a.Jc(0,"th",3),a.Bd(1),a.Ic()),2&e){var i=a.ad();a.yd("text-align",i.justify),a.pc(1),a.Dd(" ",i.headerText," ")}}function Ak(e,t){if(1&e&&(a.Jc(0,"td",4),a.Bd(1),a.Ic()),2&e){var i=t.$implicit,n=a.ad();a.yd("text-align",n.justify),a.pc(1),a.Dd(" ",n.dataAccessor(i,n.name)," ")}}function Tk(e){return function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var n=arguments.length,a=new Array(n),r=0;r3&&void 0!==arguments[3])||arguments[3];_classCallCheck(this,e),this._isNativeHtmlTable=t,this._stickCellCss=i,this.direction=n,this._isBrowser=a}return _createClass(e,[{key:"clearStickyPositioning",value:function(e,t){var i,n=_createForOfIteratorHelper(e);try{for(n.s();!(i=n.n()).done;){var a=i.value;if(a.nodeType===a.ELEMENT_NODE){this._removeStickyStyle(a,t);for(var r=0;r0;a--)t[a]&&(i[a]=n,n+=e[a]);return i}}]),e}();function gw(e){return Error('Could not find column with id "'.concat(e,'".'))}var vw,bw,_w,yw,kw=((yw=function e(t,i){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=i}).\u0275fac=function(e){return new(e||yw)(a.Dc(a.cb),a.Dc(a.r))},yw.\u0275dir=a.yc({type:yw,selectors:[["","rowOutlet",""]]}),yw),ww=((_w=function e(t,i){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=i}).\u0275fac=function(e){return new(e||_w)(a.Dc(a.cb),a.Dc(a.r))},_w.\u0275dir=a.yc({type:_w,selectors:[["","headerRowOutlet",""]]}),_w),Cw=((bw=function e(t,i){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=i}).\u0275fac=function(e){return new(e||bw)(a.Dc(a.cb),a.Dc(a.r))},bw.\u0275dir=a.yc({type:bw,selectors:[["","footerRowOutlet",""]]}),bw),xw=((vw=function(){function e(t,i,n,a,r,o,s){_classCallCheck(this,e),this._differs=t,this._changeDetectorRef=i,this._elementRef=n,this._dir=r,this._platform=s,this._onDestroy=new Lt.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new Ik({start:0,end:Number.MAX_VALUE}),a||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(t,i){return e.trackBy?e.trackBy(i.dataIndex,i.data):i}))}},{key:"ngAfterContentChecked",value:function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),tr(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var i=this._rowOutlet.viewContainer;t.forEachOperation((function(t,n,a){if(null==t.previousIndex)e._insertRow(t.item,a);else if(null==a)i.remove(n);else{var r=i.get(n);i.move(r,a)}})),this._updateRowIndexContext(),t.forEachIdentityChange((function(e){i.get(e.currentIndex).context.$implicit=e.item.data})),this.updateStickyColumnStyles()}}},{key:"setHeaderRowDef",value:function(e){this._customHeaderRowDefs=new Set([e]),this._headerRowDefChanged=!0}},{key:"setFooterRowDef",value:function(e){this._customFooterRowDefs=new Set([e]),this._footerRowDefChanged=!0}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var i=this._headerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach((function(e){return e.resetStickyChanged()}))}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var i=this._footerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach((function(e){return e.resetStickyChanged()}))}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([].concat(_toConsumableArray(t),_toConsumableArray(i),_toConsumableArray(n)),["left","right"]),t.forEach((function(t,i){e._addStickyColumnStyles([t],e._headerRowDefs[i])})),this._rowDefs.forEach((function(t){for(var n=[],a=0;a1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=e[0]}},{key:"_renderUpdatedColumns",value:function(){var e=function(e,t){return e||!!t.getColumnsDiff()};this._rowDefs.reduce(e,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(e,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(e,!1)&&this._forceRenderFooterRows()}},{key:"_switchDataSource",value:function(e){this._data=[],tr(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}},{key:"_observeRenderChanges",value:function(){var e=this;if(this.dataSource){var t,i;if(tr(this.dataSource)?t=this.dataSource.connect(this):(i=this.dataSource)&&(i instanceof si.a||"function"==typeof i.lift&&"function"==typeof i.subscribe)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Bt(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=t.pipe(Ol(this._onDestroy)).subscribe((function(t){e._data=t||[],e.renderRows()}))}}},{key:"_forceRenderHeaderRows",value:function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(t,i){return e._renderRow(e._headerRowOutlet,t,i)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(t,i){return e._renderRow(e._footerRowOutlet,t,i)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var i=this,n=Array.from(t.columns||[]).map((function(e){var t=i._columnDefsByName.get(e);if(!t)throw gw(e);return t})),a=n.map((function(e){return e.sticky})),r=n.map((function(e){return e.stickyEnd}));this._stickyStyler.updateStickyColumns(e,a,r)}},{key:"_getRenderedRows",value:function(e){for(var t=[],i=0;i3&&void 0!==arguments[3]?arguments[3]:{};e.viewContainer.createEmbeddedView(t.template,n,i);var a,r=_createForOfIteratorHelper(this._getCellTemplates(t));try{for(r.s();!(a=r.n()).done;){var o=a.value;uw.mostRecentCellOutlet&&uw.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n)}}catch(s){r.e(s)}finally{r.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,i=e.length;t0&&void 0!==arguments[0]?arguments[0]:[];return _classCallCheck(this,i),(e=t.call(this))._renderData=new Ik([]),e._filter=new Ik(""),e._internalPageChanges=new Lt.a,e._renderChangesSubscription=jt.a.EMPTY,e.sortingDataAccessor=function(e,t){var i=e[t];if(gi(i)){var n=Number(i);return n<9007199254740991?n:i}return i},e.sortData=function(t,i){var n=i.active,a=i.direction;return n&&""!=a?t.sort((function(t,i){var r=e.sortingDataAccessor(t,n),o=e.sortingDataAccessor(i,n),s=0;return null!=r&&null!=o?r>o?s=1:r0)){var n=Math.ceil(i.length/i.pageSize)-1||0,a=Math.min(i.pageIndex,n);a!==i.pageIndex&&(i.pageIndex=a,t._internalPageChanges.next())}}))}},{key:"connect",value:function(){return this._renderData}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e)}},{key:"filter",get:function(){return this._filter.value},set:function(e){this._filter.next(e)}},{key:"sort",get:function(){return this._sort},set:function(e){this._sort=e,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(e){this._paginator=e,this._updateChangeSubscription()}}]),i}(function(){return function e(){_classCallCheck(this,e)}}());function SC(e){var t=e.subscriber,i=e.counter,n=e.period;t.next(i),this.schedule({subscriber:t,counter:i+1,period:n},n)}function IC(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function OC(e,t){var i=t?"":"none";IC(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function DC(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function EC(e,t){return e.getPropertyValue(t).split(",").map((function(e){return e.trim()}))}var AC=Ai({passive:!0}),TC=Ai({passive:!1}),PC=function(){function e(t,i,n,a,r,o){var s=this;_classCallCheck(this,e),this._config=i,this._document=n,this._ngZone=a,this._viewportRuler=r,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new Lt.a,this._pointerMoveSubscription=jt.a.EMPTY,this._pointerUpSubscription=jt.a.EMPTY,this._scrollSubscription=jt.a.EMPTY,this._resizeSubscription=jt.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Lt.a,this.started=new Lt.a,this.released=new Lt.a,this.ended=new Lt.a,this.entered=new Lt.a,this.exited=new Lt.a,this.dropped=new Lt.a,this.moved=this._moveEvents.asObservable(),this._pointerDown=function(e){if(s.beforeStarted.next(),s._handles.length){var t=s._handles.find((function(t){var i=e.target;return!!i&&(i===t||t.contains(i))}));!t||s._disabledHandles.has(t)||s.disabled||s._initializeDragSequence(t,e)}else s.disabled||s._initializeDragSequence(s._rootElement,e)},this._pointerMove=function(e){if(e.preventDefault(),s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect()));var t=s._getConstrainedPointerPosition(e);if(s._hasMoved=!0,s._updatePointerDirectionDelta(t),s._dropContainer)s._updateActiveDropContainer(t);else{var i=s._activeTransform;i.x=t.x-s._pickupPositionOnPage.x+s._passiveTransform.x,i.y=t.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(i.x," ").concat(i.y,")"))}s._moveEvents.observers.length&&s._ngZone.run((function(){s._moveEvents.next({source:s,pointerPosition:t,event:e,distance:s._getDragDistance(t),delta:s._pointerDirectionDelta})}))}else{var n=s._getPointerPositionOnPage(e);if(Math.abs(n.x-s._pickupPositionOnPage.x)+Math.abs(n.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){if(!(Date.now()>=s._dragStartTime+s._getDragStartDelay(e)))return void s._endDragSequence(e);s._dropContainer&&s._dropContainer.isDragging()||(s._hasStartedDragging=!0,s._ngZone.run((function(){return s._startDragSequence(e)})))}}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t),o.registerDragItem(this)}return _createClass(e,[{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){return this._handles=e.map((function(e){return _i(e)})),this._handles.forEach((function(e){return OC(e,!1)})),this._toggleNativeDragInteractions(),this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=_i(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),t.addEventListener("mousedown",this._pointerDown,TC),t.addEventListener("touchstart",this._pointerDown,AC),this._initialTransform=void 0,this._rootElement=t),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?_i(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return t._containInsideBoundaryOnResize()}))),this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&jC(this._rootElement),jC(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){this._handles.indexOf(e)>-1&&this._disabledHandles.add(e)}},{key:"enableHandle",value:function(e){this._disabledHandles.delete(e)}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._pointerPositionAtLastDirectionChange;e&&this._dropContainer&&this._updateActiveDropContainer(e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&jC(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&jC(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){t.ended.next({source:t,distance:t._getDragDistance(t._getPointerPositionOnPage(e))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(e){if(this.started.next({source:this}),FC(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){var t=this._rootElement,i=t.parentNode,n=this._preview=this._createPreviewElement(),a=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(r,t),t.style.display="none",this._document.body.appendChild(i.replaceChild(a,t)),(o=this._document,o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body).appendChild(n),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var o}},{key:"_initializeDragSequence",value:function(e,t){var i=this;t.stopPropagation();var n=this.isDragging(),a=FC(t),r=!a&&0!==t.button,o=this._rootElement,s=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(n||r||s)){this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor,o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(An(null)).subscribe((function(){i._scrollPosition=i._viewportRuler.getViewportScrollPosition()})),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());var c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var l=this._pickupPositionOnPage=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var i=t._dropContainer,n=i.getItemIndex(t),a=t._getPointerPositionOnPage(e),r=t._getDragDistance(t._getPointerPositionOnPage(e)),o=i._isOverContainer(a.x,a.y);t.ended.next({source:t,distance:r}),t.dropped.next({item:t,currentIndex:n,previousIndex:t._initialIndex,container:i,previousContainer:t._initialContainer,isPointerOverContainer:o,distance:r}),i.drop(t,n,t._initialContainer,o,r,t._initialIndex),t._dropContainer=t._initialContainer}))}},{key:"_updateActiveDropContainer",value:function(e){var t=this,i=e.x,n=e.y,a=this._initialContainer._getSiblingContainerFromPosition(this,i,n);!a&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,n)&&(a=this._initialContainer),a&&a!==this._dropContainer&&this._ngZone.run((function(){t.exited.next({item:t,container:t._dropContainer}),t._dropContainer.exit(t),t._dropContainer=a,t._dropContainer.enter(t,i,n,a===t._initialContainer&&a.sortingDisabled?t._initialIndex:void 0),t.entered.next({item:t,container:a,currentIndex:a.getItemIndex(t)})})),this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,i,n,this._pointerDirectionDelta),this._preview.style.transform=RC(i-this._pickupPositionInElement.x,n-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,i=this.previewClass,n=t?t.template:null;if(n){var a=t.viewContainer.createEmbeddedView(n,t.context);a.detectChanges(),e=NC(a,this._document),this._previewRef=a,t.matchSize?zC(e,this._rootElement):e.style.transform=RC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var r=this._rootElement;zC(e=MC(r),r)}return IC(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),OC(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach((function(t){return e.classList.add(t)})):e.classList.add(i)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=RC(t.left,t.top);var i=function(e){var t=getComputedStyle(e),i=EC(t,"transition-property"),n=i.find((function(e){return"transform"===e||"all"===e}));if(!n)return 0;var a=i.indexOf(n),r=EC(t,"transition-duration"),o=EC(t,"transition-delay");return DC(r[a])+DC(o[a])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(t){var n=function i(n){(!n||n.target===e._preview&&"transform"===n.propertyName)&&(e._preview.removeEventListener("transitionend",i),t(),clearTimeout(a))},a=setTimeout(n,1.5*i);e._preview.addEventListener("transitionend",n)}))}))}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,i=t?t.template:null;return i?(this._placeholderRef=t.viewContainer.createEmbeddedView(i,t.context),this._placeholderRef.detectChanges(),e=NC(this._placeholderRef,this._document)):e=MC(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var i=this._rootElement.getBoundingClientRect(),n=e===this._rootElement?null:e,a=n?n.getBoundingClientRect():i,r=FC(t)?t.targetTouches[0]:t;return{x:a.left-i.left+(r.pageX-a.left-this._scrollPosition.left),y:a.top-i.top+(r.pageY-a.top-this._scrollPosition.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=FC(e)?e.touches[0]||e.changedTouches[0]:e;return{x:t.pageX-this._scrollPosition.left,y:t.pageY-this._scrollPosition.top}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._getPointerPositionOnPage(e),i=this.constrainPosition?this.constrainPosition(t,this):t,n=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===n?i.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==n||(i.x=this._pickupPositionOnPage.x),this._boundaryRect){var a=this._pickupPositionInElement,r=a.x,o=a.y,s=this._boundaryRect,c=this._previewRect,l=s.top+o,u=s.bottom-(c.height-o);i.x=LC(i.x,s.left+r,s.right-(c.width-r)),i.y=LC(i.y,l,u)}return i}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,i=e.y,n=this._pointerDirectionDelta,a=this._pointerPositionAtLastDirectionChange,r=Math.abs(t-a.x),o=Math.abs(i-a.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=t>a.x?1:-1,a.x=t),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>a.y?1:-1,a.y=i),n}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,OC(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,TC),e.removeEventListener("touchstart",this._pointerDown,AC)}},{key:"_applyRootElementTransform",value:function(e,t){var i=RC(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,i=e.y;if(!(0===t&&0===i||this.isDragging())&&this._boundaryElement){var n=this._boundaryElement.getBoundingClientRect(),a=this._rootElement.getBoundingClientRect();if(!(0===n.width&&0===n.height||0===a.width&&0===a.height)){var r=n.left-a.left,o=a.right-n.right,s=n.top-a.top,c=a.bottom-n.bottom;n.width>a.width?(r>0&&(t+=r),o>0&&(t-=o)):t=0,n.height>a.height?(s>0&&(i+=s),c>0&&(i-=c)):i=0,t===this._passiveTransform.x&&i===this._passiveTransform.y||this.setFreeDragPosition({y:i,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:FC(e)?t.touch:t?t.mouse:0}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=fi(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions())}}]),e}();function RC(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function MC(e){var t=e.cloneNode(!0),i=t.querySelectorAll("[id]"),n=e.querySelectorAll("canvas");t.removeAttribute("id");for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt;return(!Cl(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=Yt),new si.a((function(i){return i.add(t.schedule(SC,e,{subscriber:i,counter:0,period:e})),i}))}(0,sl).pipe(Ol(o._stopScrollTimers)).subscribe((function(){var e=o._scrollNode;1===o._verticalScrollDirection?$C(e,-2):2===o._verticalScrollDirection&&$C(e,2),1===o._horizontalScrollDirection?KC(e,-2):2===o._horizontalScrollDirection&&KC(e,2)}))},this.element=_i(t),this._document=n,this.withScrollableParents([this.element]),i.registerDropContainer(this)}return _createClass(e,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){var e=this,t=_i(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach((function(t){return t._startReceiving(e)})),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"enter",value:function(e,t,i,n){var a;this.start(),null==n?-1===(a=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(a=this._getItemIndexFromPointerPosition(e,t,i)):a=n;var r=this._activeDraggables,o=r.indexOf(e),s=e.getPlaceholderElement(),c=r[a];if(c===e&&(c=r[a+1]),o>-1&&r.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){var l=c.getRootElement();l.parentElement.insertBefore(s,l),r.splice(a,0,e)}else _i(this.element).appendChild(s),r.push(e);s.style.transform="",this._cacheItemPositions(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,i,n,a,r){this._reset(),null==r&&(r=i.getItemIndex(e)),this.dropped.next({item:e,currentIndex:t,previousIndex:r,container:this,previousContainer:i,isPointerOverContainer:n,distance:a})}},{key:"withItems",value:function(e){var t=this;return this._draggables=e,e.forEach((function(e){return e._withDropContainer(t)})),this.isDragging()&&this._cacheItems(),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=_i(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(_toConsumableArray(e)):e.slice(),this}},{key:"getItemIndex",value:function(e){return this._isDragging?GC("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(t){return t.drag===e})):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,i,n){if(!this.sortingDisabled&&UC(this._clientRect,t,i)){var a=this._itemPositions,r=this._getItemIndexFromPointerPosition(e,t,i,n);if(!(-1===r&&a.length>0)){var o="horizontal"===this._orientation,s=GC(a,(function(t){return t.drag===e})),c=a[r],l=a[s].clientRect,u=c.clientRect,d=s>r?1:-1;this._previousSwap.drag=c.drag,this._previousSwap.delta=o?n.x:n.y;var h=this._getItemOffsetPx(l,u,d),p=this._getSiblingOffsetPx(s,a,d),f=a.slice();BC(a,s,r),this.sorted.next({previousIndex:s,currentIndex:r,container:this,item:e}),a.forEach((function(t,i){if(f[i]!==t){var n=t.drag===e,a=n?h:p,r=n?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=a,o?(r.style.transform="translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),HC(t.clientRect,0,a)):(r.style.transform="translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),HC(t.clientRect,a,0))}}))}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var i=this;if(!this.autoScrollDisabled){var n,a=0,r=0;if(this._parentPositions.forEach((function(o,s){var c;s!==i._document&&o.clientRect&&!n&&UC(o.clientRect,e,t)&&(c=_slicedToArray(function(e,t,i,n){var a=XC(t,n),r=YC(t,i),o=0,s=0;if(a){var c=e.scrollTop;1===a?c>0&&(o=1):e.scrollHeight-c>e.clientHeight&&(o=2)}if(r){var l=e.scrollLeft;1===r?l>0&&(s=1):e.scrollWidth-l>e.clientWidth&&(s=2)}return[o,s]}(s,o.clientRect,e,t),2),a=c[0],r=c[1],(a||r)&&(n=s))})),!a&&!r){var o=this._viewportRuler.getViewportSize(),s=o.width,c=o.height,l={width:s,height:c,top:0,right:s,bottom:c,left:0};a=XC(l,t),r=YC(l,e),n=window}!n||a===this._verticalScrollDirection&&r===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=a,this._horizontalScrollDirection=r,this._scrollNode=n,(a||r)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_cacheParentPositions",value:function(){var e=this;this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach((function(t){var i=qC(t);t===e.element&&(e._clientRect=i),e._parentPositions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:i})}))}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(e){var t=e.getVisibleElement();return{drag:e,offset:0,clientRect:qC(t)}})).sort((function(t,i){return e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top}))}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=_i(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(e){return e.getRootElement().style.transform=""})),this._siblings.forEach((function(t){return t._stopReceiving(e)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,i){var n="horizontal"===this._orientation,a=t[e].clientRect,r=t[e+-1*i],o=a[n?"width":"height"]*i;if(r){var s=n?"left":"top",c=n?"right":"bottom";-1===i?o-=r.clientRect[s]-a[c]:o+=a[s]-r.clientRect[c]}return o}},{key:"_getItemOffsetPx",value:function(e,t,i){var n="horizontal"===this._orientation,a=n?t.left-e.left:t.top-e.top;return-1===i&&(a+=n?t.width-e.width:t.height-e.height),a}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,i,n){var a=this,r="horizontal"===this._orientation;return GC(this._itemPositions,(function(o,s,c){var l=o.drag,u=o.clientRect;if(l===e)return c.length<2;if(n){var d=r?n.x:n.y;if(l===a._previousSwap.drag&&d===a._previousSwap.delta)return!1}return r?t>=Math.floor(u.left)&&t<=Math.floor(u.right):i>=Math.floor(u.top)&&i<=Math.floor(u.bottom)}))}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_updateAfterScroll",value:function(e,t,i){var n=this,a=e===this._document?e.documentElement:e,r=this._parentPositions.get(e).scrollPosition,o=r.top-t,s=r.left-i;this._parentPositions.forEach((function(t,i){t.clientRect&&e!==i&&a.contains(i)&&HC(t.clientRect,o,s)})),this._itemPositions.forEach((function(e){HC(e.clientRect,o,s)})),this._itemPositions.forEach((function(e){var t=e.drag;n._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})),r.top=t,r.left=i}},{key:"_isOverContainer",value:function(e,t){return WC(this._clientRect,e,t)}},{key:"_getSiblingContainerFromPosition",value:function(e,t,i){return this._siblings.find((function(n){return n._canReceive(e,t,i)}))}},{key:"_canReceive",value:function(e,t,i){if(!WC(this._clientRect,t,i)||!this.enterPredicate(e,this))return!1;var n=this._getShadowRoot().elementFromPoint(t,i);if(!n)return!1;var a=_i(this.element);return n===a||a.contains(n)}},{key:"_startReceiving",value:function(e){var t=this._activeSiblings;t.has(e)||(t.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe((function(t){if(e.isDragging()){var i=t.target;if(e._parentPositions.get(i)){var n,a;if(i===e._document){var r=e._viewportRuler.getViewportScrollPosition();n=r.top,a=r.left}else n=i.scrollTop,a=i.scrollLeft;e._updateAfterScroll(i,n,a)}}else e.isReceiving()&&e._cacheParentPositions()}))}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=Pi(_i(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}}]),e}();function HC(e,t,i){e.top+=t,e.bottom=e.top+e.height,e.left+=i,e.right=e.left+e.width}function UC(e,t,i){var n=e.top,a=e.right,r=e.bottom,o=e.left,s=.05*e.width,c=.05*e.height;return i>n-c&&io-s&&t=n&&i<=a&&t>=r&&t<=o}function qC(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function $C(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function KC(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function XC(e,t){var i=e.top,n=e.bottom,a=.05*e.height;return t>=i-a&&t<=i+a?1:t>=n-a&&t<=n+a?2:0}function YC(e,t){var i=e.left,n=e.right,a=.05*e.width;return t>=i-a&&t<=i+a?1:t>=n-a&&t<=n+a?2:0}var ZC,QC,ex,tx,ix,nx,ax=Ai({passive:!1,capture:!0}),rx=((ZC=function(){function e(t,i){var n=this;_classCallCheck(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new Lt.a,this.pointerUp=new Lt.a,this.scroll=new Lt.a,this._preventDefaultWhileDragging=function(e){n._activeDragInstances.size&&e.preventDefault()},this._document=i}return _createClass(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){t._document.addEventListener("touchmove",t._preventDefaultWhileDragging,ax)}))}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,ax)}},{key:"startDragging",value:function(e,t){var i=this;if(!this._activeDragInstances.has(e)&&(this._activeDragInstances.add(e),1===this._activeDragInstances.size)){var n=t.type.startsWith("touch"),a=n?"touchend":"mouseup";this._globalListeners.set(n?"touchmove":"mousemove",{handler:function(e){return i.pointerMove.next(e)},options:ax}).set(a,{handler:function(e){return i.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return i.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:ax}),this._ngZone.runOutsideAngular((function(){i._globalListeners.forEach((function(e,t){i._document.addEventListener(t,e.handler,e.options)}))}))}}},{key:"stopDragging",value:function(e){this._activeDragInstances.delete(e),0===this._activeDragInstances.size&&this._clearGlobalListeners()}},{key:"isDragging",value:function(e){return this._activeDragInstances.has(e)}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach((function(t){return e.removeDragItem(t)})),this._dropInstances.forEach((function(t){return e.removeDropContainer(t)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach((function(t,i){e._document.removeEventListener(i,t.handler,t.options)})),this._globalListeners.clear()}}]),e}()).\u0275fac=function(e){return new(e||ZC)(a.Sc(a.I),a.Sc(yt.e))},ZC.\u0275prov=Object(a.zc)({factory:function(){return new ZC(Object(a.Sc)(a.I),Object(a.Sc)(yt.e))},token:ZC,providedIn:"root"}),ZC),ox={dragStartThreshold:5,pointerDirectionChangeThreshold:5},sx=((QC=function(){function e(t,i,n,a){_classCallCheck(this,e),this._document=t,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=a}return _createClass(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ox;return new PC(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new VC(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}()).\u0275fac=function(e){return new(e||QC)(a.Sc(yt.e),a.Sc(a.I),a.Sc(Zl),a.Sc(rx))},QC.\u0275prov=Object(a.zc)({factory:function(){return new QC(Object(a.Sc)(yt.e),Object(a.Sc)(a.I),Object(a.Sc)(Zl),Object(a.Sc)(rx))},token:QC,providedIn:"root"}),QC),cx=new a.x("CDK_DRAG_PARENT"),lx=((ix=function(){function e(t,i){_classCallCheck(this,e),this.element=t,this._stateChanges=new Lt.a,this._disabled=!1,this._parentDrag=i,OC(t.nativeElement,!1)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e),this._stateChanges.next(this)}}]),e}()).\u0275fac=function(e){return new(e||ix)(a.Dc(a.r),a.Dc(cx,8))},ix.\u0275dir=a.yc({type:ix,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),ix),ux=((tx=function e(t){_classCallCheck(this,e),this.templateRef=t}).\u0275fac=function(e){return new(e||tx)(a.Dc(a.Y))},tx.\u0275dir=a.yc({type:tx,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),tx),dx=((ex=function(){function e(t){_classCallCheck(this,e),this.templateRef=t,this._matchSize=!1}return _createClass(e,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=fi(e)}}]),e}()).\u0275fac=function(e){return new(e||ex)(a.Dc(a.Y))},ex.\u0275dir=a.yc({type:ex,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),ex),hx=new a.x("CDK_DRAG_CONFIG"),px=new a.x("CDK_DROP_LIST"),fx=((nx=function(){function e(t,i,n,r,o,s,c,l,u){var d=this;_classCallCheck(this,e),this.element=t,this.dropContainer=i,this._document=n,this._ngZone=r,this._viewContainerRef=o,this._dir=c,this._changeDetectorRef=u,this._destroyed=new Lt.a,this.started=new a.u,this.released=new a.u,this.ended=new a.u,this.entered=new a.u,this.exited=new a.u,this.dropped=new a.u,this.moved=new si.a((function(e){var t=d._dragRef.moved.pipe(Object(ri.a)((function(e){return{source:d,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}}))).subscribe(e);return function(){t.unsubscribe()}})),this._dragRef=l.createDrag(t,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,s&&this._assignDefaults(s),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return _createClass(e,[{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.asObservable().pipe(ui(1),Ol(this._destroyed)).subscribe((function(){e._updateRootElement(),e._handles.changes.pipe(An(e._handles),Gt((function(t){var i=t.filter((function(t){return t._parentDrag===e})).map((function(e){return e.element}));e._dragRef.withHandles(i)})),Tl((function(e){return Object(al.a).apply(void 0,_toConsumableArray(e.map((function(e){return e._stateChanges.pipe(An(e))}))))})),Ol(e._destroyed)).subscribe((function(t){var i=e._dragRef,n=t.element.nativeElement;t.disabled?i.disableHandle(n):i.enableHandle(n)})),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)}))}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,i=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?mx(e,this.rootElementSelector):e;if(t&&t.nodeType!==this._document.ELEMENT_NODE)throw Error("cdkDrag must be attached to an element node. "+'Currently attached to "'.concat(t.nodeName,'".'));this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;if(!e)return null;if("string"==typeof e)return mx(this.element.nativeElement,e);var t=_i(e);if(Object(a.jb)()&&!t.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return t}},{key:"_syncInputs",value:function(e){var t=this;e.beforeStarted.subscribe((function(){if(!e.isDragging()){var i=t._dir,n=t.dragStartDelay,a=t._placeholderTemplate?{template:t._placeholderTemplate.templateRef,context:t._placeholderTemplate.data,viewContainer:t._viewContainerRef}:null,r=t._previewTemplate?{template:t._previewTemplate.templateRef,context:t._previewTemplate.data,matchSize:t._previewTemplate.matchSize,viewContainer:t._viewContainerRef}:null;e.disabled=t.disabled,e.lockAxis=t.lockAxis,e.dragStartDelay="object"==typeof n&&n?n:mi(n),e.constrainPosition=t.constrainPosition,e.previewClass=t.previewClass,e.withBoundaryElement(t._getBoundaryElement()).withPlaceholderTemplate(a).withPreviewTemplate(r),i&&e.withDirection(i.value)}}))}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe((function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()})),e.released.subscribe((function(){t.released.emit({source:t})})),e.ended.subscribe((function(e){t.ended.emit({source:t,distance:e.distance}),t._changeDetectorRef.markForCheck()})),e.entered.subscribe((function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})})),e.exited.subscribe((function(e){t.exited.emit({container:e.container.data,item:t})})),e.dropped.subscribe((function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance})}))}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,i=e.dragStartDelay,n=e.constrainPosition,a=e.previewClass,r=e.boundaryElement,o=e.draggingDisabled,s=e.rootElementSelector;this.disabled=null!=o&&o,this.dragStartDelay=i||0,t&&(this.lockAxis=t),n&&(this.constrainPosition=n),a&&(this.previewClass=a),r&&(this.boundaryElement=r),s&&(this.rootElementSelector=s)}},{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=fi(e),this._dragRef.disabled=this._disabled}}]),e}()).\u0275fac=function(e){return new(e||nx)(a.Dc(a.r),a.Dc(px,12),a.Dc(yt.e),a.Dc(a.I),a.Dc(a.cb),a.Dc(hx,8),a.Dc(Cn,8),a.Dc(sx),a.Dc(a.j))},nx.\u0275dir=a.yc({type:nx,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,dx,!0),a.vc(i,ux,!0),a.vc(i,lx,!0)),2&e&&(a.md(n=a.Xc())&&(t._previewTemplate=n.first),a.md(n=a.Xc())&&(t._placeholderTemplate=n.first),a.md(n=a.Xc())&&(t._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&a.tc("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[a.oc([{provide:cx,useExisting:nx}]),a.nc]}),nx);function mx(e,t){for(var i=e.parentElement;i;){if(i.matches?i.matches(t):i.msMatchesSelector(t))return i;i=i.parentElement}return null}var gx,vx,bx,_x,yx,kx,wx=((bx=function(){function e(){_classCallCheck(this,e),this._items=new Set,this._disabled=!1}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._items.clear()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e)}}]),e}()).\u0275fac=function(e){return new(e||bx)},bx.\u0275dir=a.yc({type:bx,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),bx),Cx=0,xx=((vx=function(){function e(t,i,n,r,o,s,c){var l=this;_classCallCheck(this,e),this.element=t,this._changeDetectorRef=n,this._dir=r,this._group=o,this._scrollDispatcher=s,this._destroyed=new Lt.a,this.connectedTo=[],this.id="cdk-drop-list-".concat(Cx++),this.enterPredicate=function(){return!0},this.dropped=new a.u,this.entered=new a.u,this.exited=new a.u,this.sorted=new a.u,this._unsortedItems=new Set,this._dropListRef=i.createDropList(t),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=function(e,t){return l.enterPredicate(e.data,t.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),o&&o._items.add(this)}return _createClass(e,[{key:"ngAfterContentInit",value:function(){if(this._scrollDispatcher){var e=this._scrollDispatcher.getAncestorScrollContainers(this.element).map((function(e){return e.getElementRef().nativeElement}));this._dropListRef.withScrollableParents(e)}}},{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort((function(e,t){return e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))}},{key:"ngOnDestroy",value:function(){var t=e._dropLists.indexOf(this);t>-1&&e._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"start",value:function(){this._dropListRef.start()}},{key:"drop",value:function(e,t,i,n){this._dropListRef.drop(e._dragRef,t,i._dropListRef,n,{x:0,y:0})}},{key:"enter",value:function(e,t,i){this._dropListRef.enter(e._dragRef,t,i)}},{key:"exit",value:function(e){this._dropListRef.exit(e._dragRef)}},{key:"getItemIndex",value:function(e){return this._dropListRef.getItemIndex(e._dragRef)}},{key:"_setupInputSyncSubscription",value:function(t){var i=this;this._dir&&this._dir.change.pipe(An(this._dir.value),Ol(this._destroyed)).subscribe((function(e){return t.withDirection(e)})),t.beforeStarted.subscribe((function(){var n=vi(i.connectedTo).map((function(t){return"string"==typeof t?e._dropLists.find((function(e){return e.id===t})):t}));i._group&&i._group._items.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),t.disabled=i.disabled,t.lockAxis=i.lockAxis,t.sortingDisabled=fi(i.sortingDisabled),t.autoScrollDisabled=fi(i.autoScrollDisabled),t.connectedTo(n.filter((function(e){return e&&e!==i})).map((function(e){return e._dropListRef}))).withOrientation(i.orientation)}))}},{key:"_handleEvents",value:function(e){var t=this;e.beforeStarted.subscribe((function(){t._syncItemsWithRef(),t._changeDetectorRef.markForCheck()})),e.entered.subscribe((function(e){t.entered.emit({container:t,item:e.item.data,currentIndex:e.currentIndex})})),e.exited.subscribe((function(e){t.exited.emit({container:t,item:e.item.data}),t._changeDetectorRef.markForCheck()})),e.sorted.subscribe((function(e){t.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:t,item:e.item.data})})),e.dropped.subscribe((function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance}),t._changeDetectorRef.markForCheck()}))}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,i=e.draggingDisabled,n=e.sortingDisabled,a=e.listAutoScrollDisabled,r=e.listOrientation;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=a&&a,this.orientation=r||"vertical",t&&(this.lockAxis=t)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map((function(e){return e._dragRef})))}},{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=fi(e)}}]),e}()).\u0275fac=function(e){return new(e||vx)(a.Dc(a.r),a.Dc(sx),a.Dc(a.j),a.Dc(Cn,8),a.Dc(wx,12),a.Dc(Xl),a.Dc(hx,8))},vx.\u0275dir=a.yc({type:vx,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(a.Mc("id",t.id),a.tc("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[a.oc([{provide:wx,useValue:void 0},{provide:px,useExisting:vx}])]}),vx._dropLists=[],vx),Sx=((gx=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:gx}),gx.\u0275inj=a.Ac({factory:function(e){return new(e||gx)},providers:[sx]}),gx),Ix=function(){function e(t,i){_classCallCheck(this,e),this._document=i;var n=this._textarea=this._document.createElement("textarea"),a=n.style;a.opacity="0",a.position="absolute",a.left=a.top="-999em",n.setAttribute("aria-hidden","true"),n.value=t,this._document.body.appendChild(n)}return _createClass(e,[{key:"copy",value:function(){var e=this._textarea,t=!1;try{if(e){var i=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),t=this._document.execCommand("copy"),i&&i.focus()}}catch(fB){}return t}},{key:"destroy",value:function(){var e=this._textarea;e&&(e.parentNode&&e.parentNode.removeChild(e),this._textarea=void 0)}}]),e}(),Ox=((_x=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"copy",value:function(e){var t=this.beginCopy(e),i=t.copy();return t.destroy(),i}},{key:"beginCopy",value:function(e){return new Ix(e,this._document)}}]),e}()).\u0275fac=function(e){return new(e||_x)(a.Sc(yt.e))},_x.\u0275prov=Object(a.zc)({factory:function(){return new _x(Object(a.Sc)(yt.e))},token:_x,providedIn:"root"}),_x),Dx=new a.x("CKD_COPY_TO_CLIPBOARD_CONFIG"),Ex=((kx=function(){function e(t,i,n){_classCallCheck(this,e),this._clipboard=t,this._ngZone=i,this.text="",this.attempts=1,this.copied=new a.u,this._deprecatedCopied=this.copied,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}return _createClass(e,[{key:"copy",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(t>1){var i=t,n=this._clipboard.beginCopy(this.text);this._pending.add(n);var a=function t(){var a=n.copy();a||!--i||e._destroyed?(e._currentTimeout=null,e._pending.delete(n),n.destroy(),e.copied.emit(a)):e._currentTimeout=e._ngZone?e._ngZone.runOutsideAngular((function(){return setTimeout(t,1)})):setTimeout(t,1)};a()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach((function(e){return e.destroy()})),this._pending.clear(),this._destroyed=!0}}]),e}()).\u0275fac=function(e){return new(e||kx)(a.Dc(Ox),a.Dc(a.I),a.Dc(Dx,8))},kx.\u0275dir=a.yc({type:kx,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),kx),Ax=((yx=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:yx}),yx.\u0275inj=a.Ac({factory:function(e){return new(e||yx)}}),yx);function Tx(e){return Yp(e)(this)}si.a.prototype.map=function(e,t){return Object(ri.a)(e,t)(this)},si.a.prototype.catch=Tx,si.a.prototype._catch=Tx,si.a.throw=jl,si.a.throwError=jl;var Px={default:{key:"default",background_color:"ghostwhite",alternate_color:"gray",css_label:"default-theme",social_theme:"material-light"},dark:{key:"dark",background_color:"#141414",alternate_color:"#695959",css_label:"dark-theme",social_theme:"material-dark"},light:{key:"light",background_color:"white",css_label:"light-theme",social_theme:"material-light"}},Rx=i("6BPK"),Mx=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}();function Lx(e){return function(t){return 0===e?li():t.lift(new jx(e))}}var jx=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new oi}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Fx(e,this.total))}}]),e}(),Fx=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).total=n,a.ring=new Array,a.count=0,a}return _createClass(i,[{key:"_next",value:function(e){var t=this.ring,i=this.total,n=this.count++;t.length0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,a=0;a0&&void 0!==arguments[0]?arguments[0]:Jx;return function(t){return t.lift(new zx(e))}}var zx=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Bx(e,this.errorFactory))}}]),e}(),Bx=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).errorFactory=n,a.hasValue=!1,a}return _createClass(i,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),i}(Vt.a);function Jx(){return new Mx}function Vx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Hx(e))}}var Hx=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Ux(e,this.defaultValue))}}]),e}(),Ux=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).defaultValue=n,a.isEmpty=!0,a}return _createClass(i,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),i}(Vt.a),Gx=i("SpAZ");function Wx(e,t){var i=arguments.length>=2;return function(n){return n.pipe(e?ii((function(t,i){return e(t,i,n)})):Gx.a,Lx(1),i?Vx(t):Nx((function(){return new Mx})))}}function qx(e,t){var i=arguments.length>=2;return function(n){return n.pipe(e?ii((function(t,i){return e(t,i,n)})):Gx.a,ui(1),i?Vx(t):Nx((function(){return new Mx})))}}var $x=function(){function e(t,i,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=i,this.source=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Kx(e,this.predicate,this.thisArg,this.source))}}]),e}(),Kx=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e)).predicate=n,o.thisArg=a,o.source=r,o.index=0,o.thisArg=a||_assertThisInitialized(o),o}return _createClass(i,[{key:"notifyComplete",value:function(e){this.destination.next(e),this.destination.complete()}},{key:"_next",value:function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(i){return void this.destination.error(i)}t||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),i}(Vt.a);function Xx(e,t){var i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new Zx(e,t,i))}}var Yx,Zx=function(){function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=i,this.hasSeed=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Qx(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Qx=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e)).accumulator=n,o._seed=a,o.hasSeed=r,o.index=0,o}return _createClass(i,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,i=this.index++;try{t=this.accumulator(this.seed,e,i)}catch(n){this.destination.error(n)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),i}(Vt.a),eS=i("mCNh"),tS=function e(t,i){_classCallCheck(this,e),this.id=t,this.url=i},iS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,i),(a=t.call(this,e,n)).navigationTrigger=r,a.restoredState=o,a}return _createClass(i,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(tS),nS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e,n)).urlAfterRedirects=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),i}(tS),aS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e,n)).reason=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(tS),rS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e,n)).error=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),i}(tS),oS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(tS),sS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(tS),cS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o){var s;return _classCallCheck(this,i),(s=t.call(this,e,n)).urlAfterRedirects=a,s.state=r,s.shouldActivate=o,s}return _createClass(i,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),i}(tS),lS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(tS),uS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(tS),dS=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),hS=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),pS=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fS=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),mS=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),gS=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),vS=function(){function e(t,i,n){_classCallCheck(this,e),this.routerEvent=t,this.position=i,this.anchor=n}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),bS=((Yx=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Yx)},Yx.\u0275cmp=a.xc({type:Yx,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&a.Ec(0,"router-outlet")},directives:function(){return[EO]},encapsulation:2}),Yx),_S=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return this.params.hasOwnProperty(e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function yS(e){return new _S(e)}function kS(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function wS(e,t,i){var n=i.path.split("/");if(n.length>e.length)return null;if("full"===i.pathMatch&&(t.hasChildren()||n.length1&&void 0!==arguments[1]?arguments[1]:"",i=0;i-1})):e===t}function AS(e){return Array.prototype.concat.apply([],e)}function TS(e){return e.length>0?e[e.length-1]:null}function PS(e,t){for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)}function RS(e){return Object(a.Rb)(e)?e:Object(a.Sb)(e)?Object(sr.a)(Promise.resolve(e)):Bt(e)}function MS(e,t,i){return i?function(e,t){return DS(e,t)}(e.queryParams,t.queryParams)&&function e(t,i){if(!NS(t.segments,i.segments))return!1;if(t.numberOfChildren!==i.numberOfChildren)return!1;for(var n in i.children){if(!t.children[n])return!1;if(!e(t.children[n],i.children[n]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(i){return ES(e[i],t[i])}))}(e.queryParams,t.queryParams)&&function e(t,i){return function t(i,n,a){if(i.segments.length>a.length)return!!NS(i.segments.slice(0,a.length),a)&&!n.hasChildren();if(i.segments.length===a.length){if(!NS(i.segments,a))return!1;for(var r in n.children){if(!i.children[r])return!1;if(!e(i.children[r],n.children[r]))return!1}return!0}var o=a.slice(0,i.segments.length),s=a.slice(i.segments.length);return!!NS(i.segments,o)&&!!i.children.primary&&t(i.children.primary,n,s)}(t,i,i.segments)}(e.root,t.root)}var LS=function(){function e(t,i,n){_classCallCheck(this,e),this.root=t,this.queryParams=i,this.fragment=n}return _createClass(e,[{key:"toString",value:function(){return VS.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=yS(this.queryParams)),this._queryParamMap}}]),e}(),jS=function(){function e(t,i){var n=this;_classCallCheck(this,e),this.segments=t,this.children=i,this.parent=null,PS(i,(function(e,t){return e.parent=n}))}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return HS(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),FS=function(){function e(t,i){_classCallCheck(this,e),this.path=t,this.parameters=i}return _createClass(e,[{key:"toString",value:function(){return KS(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=yS(this.parameters)),this._parameterMap}}]),e}();function NS(e,t){return e.length===t.length&&e.every((function(e,i){return e.path===t[i].path}))}function zS(e,t){var i=[];return PS(e.children,(function(e,n){"primary"===n&&(i=i.concat(t(e,n)))})),PS(e.children,(function(e,n){"primary"!==n&&(i=i.concat(t(e,n)))})),i}var BS=function e(){_classCallCheck(this,e)},JS=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new eI(e);return new LS(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,i,n;return"".concat("/".concat(function e(t,i){if(!t.hasChildren())return HS(t);if(i){var n=t.children.primary?e(t.children.primary,!1):"",a=[];return PS(t.children,(function(t,i){"primary"!==i&&a.push("".concat(i,":").concat(e(t,!1)))})),a.length>0?"".concat(n,"(").concat(a.join("//"),")"):n}var r=zS(t,(function(i,n){return"primary"===n?[e(t.children.primary,!1)]:["".concat(n,":").concat(e(i,!1))]}));return"".concat(HS(t),"/(").concat(r.join("//"),")")}(e.root,!0)),(i=e.queryParams,n=Object.keys(i).map((function(e){var t=i[e];return Array.isArray(t)?t.map((function(t){return"".concat(GS(e),"=").concat(GS(t))})).join("&"):"".concat(GS(e),"=").concat(GS(t))})),n.length?"?".concat(n.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),VS=new JS;function HS(e){return e.segments.map((function(e){return KS(e)})).join("/")}function US(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function GS(e){return US(e).replace(/%3B/gi,";")}function WS(e){return US(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qS(e){return decodeURIComponent(e)}function $S(e){return qS(e.replace(/\+/g,"%20"))}function KS(e){return"".concat(WS(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(WS(e),"=").concat(WS(t[e]))})).join("")));var t}var XS=/^[^\/()?;=#]+/;function YS(e){var t=e.match(XS);return t?t[0]:""}var ZS=/^[^=?&#]+/,QS=/^[^?&#]+/,eI=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new jS([],{}):new jS([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(i.primary=new jS(e,t)),i}},{key:"parseSegment",value:function(){var e=YS(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new FS(qS(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=YS(this.remaining);if(t){this.capture(t);var i="";if(this.consumeOptional("=")){var n=YS(this.remaining);n&&(i=n,this.capture(i))}e[qS(t)]=qS(i)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(ZS);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var i="";if(this.consumeOptional("=")){var n=function(e){var t=e.match(QS);return t?t[0]:""}(this.remaining);n&&(i=n,this.capture(i))}var a=$S(t),r=$S(i);if(e.hasOwnProperty(a)){var o=e[a];Array.isArray(o)||(o=[o],e[a]=o),o.push(r)}else e[a]=r}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=YS(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '".concat(this.url,"'"));var a=void 0;i.indexOf(":")>-1?(a=i.substr(0,i.indexOf(":")),this.capture(a),this.capture(":")):e&&(a="primary");var r=this.parseChildren();t[a]=1===Object.keys(r).length?r.primary:new jS([],r),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),tI=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=iI(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=iI(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=nI(e,this._root);return t.length<2?[]:t[t.length-2].children.map((function(e){return e.value})).filter((function(t){return t!==e}))}},{key:"pathFromRoot",value:function(e){return nI(e,this._root).map((function(e){return e.value}))}},{key:"root",get:function(){return this._root.value}}]),e}();function iI(e,t){if(e===t.value)return t;var i,n=_createForOfIteratorHelper(t.children);try{for(n.s();!(i=n.n()).done;){var a=iI(e,i.value);if(a)return a}}catch(r){n.e(r)}finally{n.f()}return null}function nI(e,t){if(e===t.value)return[t];var i,n=_createForOfIteratorHelper(t.children);try{for(n.s();!(i=n.n()).done;){var a=nI(e,i.value);if(a.length)return a.unshift(t),a}}catch(r){n.e(r)}finally{n.f()}return[]}var aI=function(){function e(t,i){_classCallCheck(this,e),this.value=t,this.children=i}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function rI(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var oI=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).snapshot=n,hI(_assertThisInitialized(a),e),a}return _createClass(i,[{key:"toString",value:function(){return this.snapshot.toString()}}]),i}(tI);function sI(e,t){var i=function(e,t){var i=new uI([],{},{},"",{},"primary",t,null,e.root,-1,{});return new dI("",new aI(i,[]))}(e,t),n=new Ik([new FS("",{})]),a=new Ik({}),r=new Ik({}),o=new Ik({}),s=new Ik(""),c=new cI(n,a,o,s,r,"primary",t,i.root);return c.snapshot=i.root,new oI(new aI(c,[]),i)}var cI=function(){function e(t,i,n,a,r,o,s,c){_classCallCheck(this,e),this.url=t,this.params=i,this.queryParams=n,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=c}return _createClass(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(ri.a)((function(e){return yS(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ri.a)((function(e){return yS(e)})))),this._queryParamMap}}]),e}();function lI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",i=e.pathFromRoot,n=0;if("always"!==t)for(n=i.length-1;n>=1;){var a=i[n],r=i[n-1];if(a.routeConfig&&""===a.routeConfig.path)n--;else{if(r.component)break;n--}}return function(e){return e.reduce((function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}}),{params:{},data:{},resolve:{}})}(i.slice(n))}var uI=function(){function e(t,i,n,a,r,o,s,c,l,u,d){_classCallCheck(this,e),this.url=t,this.params=i,this.queryParams=n,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=u,this._resolve=d}return _createClass(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(e){return e.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=yS(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=yS(this.queryParams)),this._queryParamMap}}]),e}(),dI=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,n)).url=e,hI(_assertThisInitialized(a),n),a}return _createClass(i,[{key:"toString",value:function(){return pI(this._root)}}]),i}(tI);function hI(e,t){t.value._routerState=e,t.children.forEach((function(t){return hI(e,t)}))}function pI(e){var t=e.children.length>0?" { ".concat(e.children.map(pI).join(", ")," } "):"";return"".concat(e.value).concat(t)}function fI(e){if(e.snapshot){var t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,DS(t.queryParams,i.queryParams)||e.queryParams.next(i.queryParams),t.fragment!==i.fragment&&e.fragment.next(i.fragment),DS(t.params,i.params)||e.params.next(i.params),function(e,t){if(e.length!==t.length)return!1;for(var i=0;i0&&gI(n[0]))throw new Error("Root segment cannot have matrix parameters");var a=n.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(a&&a!==TS(n))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),_I=function e(t,i,n){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=i,this.index=n};function yI(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:"".concat(e)}function kI(e,t,i){if(e||(e=new jS([],{})),0===e.segments.length&&e.hasChildren())return wI(e,t,i);var n=function(e,t,i){for(var n=0,a=t,r={match:!1,pathIndex:0,commandIndex:0};a=i.length)return r;var o=e.segments[a],s=yI(i[n]),c=n0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!II(s,c,o))return r;n+=2}else{if(!II(s,{},o))return r;n++}a++}return{match:!0,pathIndex:a,commandIndex:n}}(e,t,i),a=i.slice(n.commandIndex);if(n.match&&n.pathIndex0?new jS([],{primary:e}):e;return new LS(n,t,i)}},{key:"expandSegmentGroup",value:function(e,t,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(e,t,i).pipe(Object(ri.a)((function(e){return new jS([],e)}))):this.expandSegment(e,i,t,i.segments,n,!0)}},{key:"expandChildren",value:function(e,t,i){var n=this;return function(i,a){if(0===Object.keys(i).length)return Bt({});var r=[],o=[],s={};return PS(i,(function(i,a){var c,l,u=(c=a,l=i,n.expandSegmentGroup(e,t,l,c)).pipe(Object(ri.a)((function(e){return s[a]=e})));"primary"===a?r.push(u):o.push(u)})),Bt.apply(null,r.concat(o)).pipe(Dn(),Wx(),Object(ri.a)((function(){return s})))}(i.children)}},{key:"expandSegment",value:function(e,t,i,n,a,r){var o=this;return Bt.apply(void 0,_toConsumableArray(i)).pipe(Object(ri.a)((function(s){return o.expandSegmentAgainstRoute(e,t,i,s,n,a,r).pipe(Yp((function(e){if(e instanceof TI)return Bt(null);throw e})))})),Dn(),qx((function(e){return!!e})),Yp((function(e,i){if(e instanceof Mx||"EmptyError"===e.name){if(o.noLeftoversInUrl(t,n,a))return Bt(new jS([],{}));throw new TI(t)}throw e})))}},{key:"noLeftoversInUrl",value:function(e,t,i){return 0===t.length&&!e.children[i]}},{key:"expandSegmentAgainstRoute",value:function(e,t,i,n,a,r,o){return BI(n)!==r?RI(t):void 0===n.redirectTo?this.matchSegmentAgainstRoute(e,t,n,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,i,n,a,r):RI(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,i,n,a,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,i,n,a,r)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,i,n){var a=this,r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?MI(r):this.lineralizeSegments(i,r).pipe(Object(rf.a)((function(i){var r=new jS(i,{});return a.expandSegment(e,r,t,i,n,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,i,n,a,r){var o=this,s=FI(t,n,a),c=s.matched,l=s.consumedSegments,u=s.lastChild,d=s.positionalParamSegments;if(!c)return RI(t);var h=this.applyRedirectCommands(l,n.redirectTo,d);return n.redirectTo.startsWith("/")?MI(h):this.lineralizeSegments(n,h).pipe(Object(rf.a)((function(n){return o.expandSegment(e,t,i,n.concat(a.slice(u)),r,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,i,n){var a=this;if("**"===i.path)return i.loadChildren?this.configLoader.load(e.injector,i).pipe(Object(ri.a)((function(e){return i._loadedConfig=e,new jS(n,{})}))):Bt(new jS(n,{}));var r=FI(t,i,n),o=r.matched,s=r.consumedSegments,c=r.lastChild;if(!o)return RI(t);var l=n.slice(c);return this.getChildConfig(e,i,n).pipe(Object(rf.a)((function(e){var i=e.module,n=e.routes,r=function(e,t,i,n){return i.length>0&&function(e,t,i){return i.some((function(i){return zI(e,t,i)&&"primary"!==BI(i)}))}(e,i,n)?{segmentGroup:NI(new jS(t,function(e,t){var i={};i.primary=t;var n,a=_createForOfIteratorHelper(e);try{for(a.s();!(n=a.n()).done;){var r=n.value;""===r.path&&"primary"!==BI(r)&&(i[BI(r)]=new jS([],{}))}}catch(o){a.e(o)}finally{a.f()}return i}(n,new jS(i,e.children)))),slicedSegments:[]}:0===i.length&&function(e,t,i){return i.some((function(i){return zI(e,t,i)}))}(e,i,n)?{segmentGroup:NI(new jS(e.segments,function(e,t,i,n){var a,r={},o=_createForOfIteratorHelper(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;zI(e,t,s)&&!n[BI(s)]&&(r[BI(s)]=new jS([],{}))}}catch(c){o.e(c)}finally{o.f()}return Object.assign(Object.assign({},n),r)}(e,i,n,e.children))),slicedSegments:i}:{segmentGroup:e,slicedSegments:i}}(t,s,l,n),o=r.segmentGroup,c=r.slicedSegments;return 0===c.length&&o.hasChildren()?a.expandChildren(i,n,o).pipe(Object(ri.a)((function(e){return new jS(s,e)}))):0===n.length&&0===c.length?Bt(new jS(s,{})):a.expandSegment(i,o,n,c,"primary",!0).pipe(Object(ri.a)((function(e){return new jS(s.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,i){var n=this;return t.children?Bt(new CS(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Bt(t._loadedConfig):function(e,t,i){var n,a=t.canLoad;return a&&0!==a.length?Object(sr.a)(a).pipe(Object(ri.a)((function(n){var a,r=e.get(n);if(function(e){return e&&EI(e.canLoad)}(r))a=r.canLoad(t,i);else{if(!EI(r))throw new Error("Invalid CanLoad guard");a=r(t,i)}return RS(a)}))).pipe(Dn(),(n=function(e){return!0===e},function(e){return e.lift(new $x(n,void 0,e))})):Bt(!0)}(e.injector,t,i).pipe(Object(rf.a)((function(i){return i?n.configLoader.load(e.injector,t).pipe(Object(ri.a)((function(e){return t._loadedConfig=e,e}))):function(e){return new si.a((function(t){return t.error(kS("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):Bt(new CS([],e))}},{key:"lineralizeSegments",value:function(e,t){for(var i=[],n=t.root;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Bt(i);if(n.numberOfChildren>1||!n.children.primary)return LI(e.redirectTo);n=n.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,i){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,i)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,i,n){var a=this.createSegmentGroup(e,t.root,i,n);return new LS(a,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var i={};return PS(e,(function(e,n){if("string"==typeof e&&e.startsWith(":")){var a=e.substring(1);i[n]=t[a]}else i[n]=e})),i}},{key:"createSegmentGroup",value:function(e,t,i,n){var a=this,r=this.createSegments(e,t.segments,i,n),o={};return PS(t.children,(function(t,r){o[r]=a.createSegmentGroup(e,t,i,n)})),new jS(r,o)}},{key:"createSegments",value:function(e,t,i,n){var a=this;return t.map((function(t){return t.path.startsWith(":")?a.findPosParam(e,t,n):a.findOrReturn(t,i)}))}},{key:"findPosParam",value:function(e,t,i){var n=i[t.path.substring(1)];if(!n)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return n}},{key:"findOrReturn",value:function(e,t){var i,n=0,a=_createForOfIteratorHelper(t);try{for(a.s();!(i=a.n()).done;){var r=i.value;if(r.path===e.path)return t.splice(n),r;n++}}catch(o){a.e(o)}finally{a.f()}return e}}]),e}();function FI(e,t,i){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=(t.matcher||wS)(i,e,t);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function NI(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new jS(e.segments.concat(t.segments),t.children)}return e}function zI(e,t,i){return(!(e.hasChildren()||t.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function BI(e){return e.outlet||"primary"}var JI=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},VI=function e(t,i){_classCallCheck(this,e),this.component=t,this.route=i};function HI(e,t,i){var n=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var i=t.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig}return null}(t);return(n?n.module.injector:i).get(e)}function UI(e,t,i){var n=rI(e),a=e.value;PS(n,(function(e,n){UI(e,a.component?t?t.children.getContext(n):null:t,i)})),i.canDeactivateChecks.push(new VI(a.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,a))}var GI=Symbol("INITIAL_VALUE");function WI(){return Tl((function(e){return Hg.apply(void 0,_toConsumableArray(e.map((function(e){return e.pipe(ui(1),An(GI))})))).pipe(Xx((function(e,t){var i=!1;return t.reduce((function(e,n,a){if(e!==GI)return e;if(n===GI&&(i=!0),!i){if(!1===n)return n;if(a===t.length-1||AI(n))return n}return e}),e)}),GI),ii((function(e){return e!==GI})),Object(ri.a)((function(e){return AI(e)?e:!0===e})),ui(1))}))}function qI(e,t){return null!==e&&t&&t(new mS(e)),Bt(!0)}function $I(e,t){return null!==e&&t&&t(new pS(e)),Bt(!0)}function KI(e,t,i){var n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?Bt(n.map((function(n){return nl((function(){var a,r=HI(n,t,i);if(function(e){return e&&EI(e.canActivate)}(r))a=RS(r.canActivate(t,e));else{if(!EI(r))throw new Error("Invalid CanActivate guard");a=RS(r(t,e))}return a.pipe(qx())}))}))).pipe(WI()):Bt(!0)}function XI(e,t,i){var n=t[t.length-1],a=t.slice(0,t.length-1).reverse().map((function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)})).filter((function(e){return null!==e})).map((function(t){return nl((function(){return Bt(t.guards.map((function(a){var r,o=HI(a,t.node,i);if(function(e){return e&&EI(e.canActivateChild)}(o))r=RS(o.canActivateChild(n,e));else{if(!EI(o))throw new Error("Invalid CanActivateChild guard");r=RS(o(n,e))}return r.pipe(qx())}))).pipe(WI())}))}));return Bt(a).pipe(WI())}var YI=function e(){_classCallCheck(this,e)},ZI=function(){function e(t,i,n,a,r,o){_classCallCheck(this,e),this.rootComponentType=t,this.config=i,this.urlTree=n,this.url=a,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return _createClass(e,[{key:"recognize",value:function(){try{var e=tO(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),i=new uI([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new aI(i,t),a=new dI(this.url,n);return this.inheritParamsAndData(a._root),Bt(a)}catch(r){return new si.a((function(e){return e.error(r)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,i=e.value,n=lI(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),e.children.forEach((function(e){return t.inheritParamsAndData(e)}))}},{key:"processSegmentGroup",value:function(e,t,i){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,i)}},{key:"processChildren",value:function(e,t){var i,n=this,a=zS(t,(function(t,i){return n.processSegmentGroup(e,t,i)}));return i={},a.forEach((function(e){var t=i[e.value.outlet];if(t){var n=t.url.map((function(e){return e.toString()})).join("/"),a=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(n,"' and '").concat(a,"'."))}i[e.value.outlet]=e.value})),a.sort((function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)})),a}},{key:"processSegment",value:function(e,t,i,n){var a,r=_createForOfIteratorHelper(e);try{for(r.s();!(a=r.n()).done;){var o=a.value;try{return this.processSegmentAgainstRoute(o,t,i,n)}catch(s){if(!(s instanceof YI))throw s}}}catch(c){r.e(c)}finally{r.f()}if(this.noLeftoversInUrl(t,i,n))return[];throw new YI}},{key:"noLeftoversInUrl",value:function(e,t,i){return 0===t.length&&!e.children[i]}},{key:"processSegmentAgainstRoute",value:function(e,t,i,n){if(e.redirectTo)throw new YI;if((e.outlet||"primary")!==n)throw new YI;var a,r=[],o=[];if("**"===e.path){var s=i.length>0?TS(i).parameters:{};a=new uI(i,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,aO(e),n,e.component,e,QI(t),eO(t)+i.length,rO(e))}else{var c=function(e,t,i){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||i.length>0))throw new YI;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=(t.matcher||wS)(i,e,t);if(!n)throw new YI;var a={};PS(n.posParams,(function(e,t){a[t]=e.path}));var r=n.consumed.length>0?Object.assign(Object.assign({},a),n.consumed[n.consumed.length-1].parameters):a;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:r}}(t,e,i);r=c.consumedSegments,o=i.slice(c.lastChild),a=new uI(r,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,aO(e),n,e.component,e,QI(t),eO(t)+r.length,rO(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),u=tO(t,r,o,l,this.relativeLinkResolution),d=u.segmentGroup,h=u.slicedSegments;if(0===h.length&&d.hasChildren()){var p=this.processChildren(l,d);return[new aI(a,p)]}if(0===l.length&&0===h.length)return[new aI(a,[])];var f=this.processSegment(l,d,h,"primary");return[new aI(a,f)]}}]),e}();function QI(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function eO(e){for(var t=e,i=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)i+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return i-1}function tO(e,t,i,n,a){if(i.length>0&&function(e,t,i){return i.some((function(i){return iO(e,t,i)&&"primary"!==nO(i)}))}(e,i,n)){var r=new jS(t,function(e,t,i,n){var a={};a.primary=n,n._sourceSegment=e,n._segmentIndexShift=t.length;var r,o=_createForOfIteratorHelper(i);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(""===s.path&&"primary"!==nO(s)){var c=new jS([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,a[nO(s)]=c}}}catch(l){o.e(l)}finally{o.f()}return a}(e,t,n,new jS(i,e.children)));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===i.length&&function(e,t,i){return i.some((function(i){return iO(e,t,i)}))}(e,i,n)){var o=new jS(e.segments,function(e,t,i,n,a,r){var o,s={},c=_createForOfIteratorHelper(n);try{for(c.s();!(o=c.n()).done;){var l=o.value;if(iO(e,i,l)&&!a[nO(l)]){var u=new jS([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===r?e.segments.length:t.length,s[nO(l)]=u}}}catch(d){c.e(d)}finally{c.f()}return Object.assign(Object.assign({},a),s)}(e,t,i,n,e.children,a));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:i}}var s=new jS(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:i}}function iO(e,t,i){return(!(e.hasChildren()||t.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function nO(e){return e.outlet||"primary"}function aO(e){return e.data||{}}function rO(e){return e.resolve||{}}function oO(e,t,i,n){var a=HI(e,t,n);return RS(a.resolve?a.resolve(t,i):a(t,i))}function sO(e){return function(t){return t.pipe(Tl((function(t){var i=e(t);return i?Object(sr.a)(i).pipe(Object(ri.a)((function(){return t}))):Object(sr.a)([t])})))}}var cO=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}(),lO=new a.x("ROUTES"),uO=function(){function e(t,i,n,a){_classCallCheck(this,e),this.loader=t,this.compiler=i,this.onLoadStartListener=n,this.onLoadEndListener=a}return _createClass(e,[{key:"load",value:function(e,t){var i=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(ri.a)((function(n){i.onLoadEndListener&&i.onLoadEndListener(t);var a=n.create(e);return new CS(AS(a.injector.get(lO)).map(OS),a)})))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Object(sr.a)(this.loader.load(e)):RS(e()).pipe(Object(rf.a)((function(e){return e instanceof a.E?Bt(e):Object(sr.a)(t.compiler.compileModuleAsync(e))})))}}]),e}(),dO=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function hO(e){throw e}function pO(e,t,i){return t.parse("/")}function fO(e,t){return Bt(null)}var mO,gO,vO,bO=((vO=function(){function e(t,i,n,r,o,s,c,l){var u=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Lt.a,this.errorHandler=hO,this.malformedUriErrorHandler=pO,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:fO,afterPreactivation:fO},this.urlHandlingStrategy=new dO,this.routeReuseStrategy=new cO,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(a.G),this.console=o.get(a.nb);var d=o.get(a.I);this.isNgZoneEnabled=d instanceof a.I,this.resetConfig(l),this.currentUrlTree=new LS(new jS([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new uO(s,c,(function(e){return u.triggerEvent(new dS(e))}),(function(e){return u.triggerEvent(new hS(e))})),this.routerState=sI(this.currentUrlTree,this.rootComponentType),this.transitions=new Ik({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"setupNavigations",value:function(e){var t=this,i=this.events;return e.pipe(ii((function(e){return 0!==e.id})),Object(ri.a)((function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})})),Tl((function(e){var n,a,r,o=!1,s=!1;return Bt(e).pipe(Gt((function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Tl((function(e){var n,a,r,o,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Bt(e).pipe(Tl((function(e){var n=t.transitions.getValue();return i.next(new iS(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==t.transitions.getValue()?ci:[e]})),Tl((function(e){return Promise.resolve(e)})),(n=t.ngModule.injector,a=t.configLoader,r=t.urlSerializer,o=t.config,function(e){return e.pipe(Tl((function(e){return function(e,t,i,n,a){return new jI(e,t,i,n,a).apply()}(n,a,r,e.extractedUrl,o).pipe(Object(ri.a)((function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})})))})))}),Gt((function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})})),function(e,i,n,a,r){return function(n){return n.pipe(Object(rf.a)((function(n){return function(e,t,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new ZI(e,t,i,n,a,r).recognize()}(e,i,n.urlAfterRedirects,(o=n.urlAfterRedirects,t.serializeUrl(o)),a,r).pipe(Object(ri.a)((function(e){return Object.assign(Object.assign({},n),{targetSnapshot:e})})));var o})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Gt((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),Gt((function(e){var n=new oS(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);i.next(n)})));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var c=e.id,l=e.extractedUrl,u=e.source,d=e.restoredState,h=e.extras,p=new iS(c,t.serializeUrl(l),u,d);i.next(p);var f=sI(l,t.rootComponentType).snapshot;return Bt(Object.assign(Object.assign({},e),{targetSnapshot:f,urlAfterRedirects:l,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),ci})),sO((function(e){var i=e.targetSnapshot,n=e.id,a=e.extractedUrl,r=e.rawUrl,o=e.extras,s=o.skipLocationChange,c=o.replaceUrl;return t.hooks.beforePreactivation(i,{navigationId:n,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!c})})),Gt((function(e){var i=new sS(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(i)})),Object(ri.a)((function(e){return Object.assign(Object.assign({},e),{guards:(i=e.targetSnapshot,n=e.currentSnapshot,a=t.rootContexts,r=i._root,function e(t,i,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=rI(i);return t.children.forEach((function(t){!function(t,i,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,s=i?i.value:null,c=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var l=function(e,t,i){if("function"==typeof i)return i(e,t);switch(i){case"pathParamsChange":return!NS(e.url,t.url);case"pathParamsOrQueryParamsChange":return!NS(e.url,t.url)||!DS(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mI(e,t)||!DS(e.queryParams,t.queryParams);case"paramsChange":default:return!mI(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new JI(a)):(o.data=s.data,o._resolvedData=s._resolvedData),e(t,i,o.component?c?c.children:null:n,a,r),l&&r.canDeactivateChecks.push(new VI(c&&c.outlet&&c.outlet.component||null,s))}else s&&UI(i,c,r),r.canActivateChecks.push(new JI(a)),e(t,null,o.component?c?c.children:null:n,a,r)}(t,o[t.value.outlet],n,a.concat([t.value]),r),delete o[t.value.outlet]})),PS(o,(function(e,t){return UI(e,n.getContext(t),r)})),r}(r,n?n._root:null,a,[r.value]))});var i,n,a,r})),function(e,t){return function(i){return i.pipe(Object(rf.a)((function(i){var n=i.targetSnapshot,a=i.currentSnapshot,r=i.guards,o=r.canActivateChecks,s=r.canDeactivateChecks;return 0===s.length&&0===o.length?Bt(Object.assign(Object.assign({},i),{guardsResult:!0})):function(e,t,i,n){return Object(sr.a)(e).pipe(Object(rf.a)((function(e){return function(e,t,i,n,a){var r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return r&&0!==r.length?Bt(r.map((function(r){var o,s=HI(r,t,a);if(function(e){return e&&EI(e.canDeactivate)}(s))o=RS(s.canDeactivate(e,t,i,n));else{if(!EI(s))throw new Error("Invalid CanDeactivate guard");o=RS(s(e,t,i,n))}return o.pipe(qx())}))).pipe(WI()):Bt(!0)}(e.component,e.route,i,t,n)})),qx((function(e){return!0!==e}),!0))}(s,n,a,e).pipe(Object(rf.a)((function(i){return i&&"boolean"==typeof i?function(e,t,i,n){return Object(sr.a)(t).pipe(of((function(t){return Object(sr.a)([$I(t.route.parent,n),qI(t.route,n),XI(e,t.path,i),KI(e,t.route,i)]).pipe(Dn(),qx((function(e){return!0!==e}),!0))})),qx((function(e){return!0!==e}),!0))}(n,o,e,t):Bt(i)})),Object(ri.a)((function(e){return Object.assign(Object.assign({},i),{guardsResult:e})})))})))}}(t.ngModule.injector,(function(e){return t.triggerEvent(e)})),Gt((function(e){if(AI(e.guardsResult)){var i=kS('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw i.url=e.guardsResult,i}})),Gt((function(e){var i=new cS(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)})),ii((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var n=new aS(e.id,t.serializeUrl(e.extractedUrl),"");return i.next(n),e.resolve(!1),!1}return!0})),sO((function(e){if(e.guards.canActivateChecks.length)return Bt(e).pipe(Gt((function(e){var i=new lS(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(i)})),(i=t.paramsInheritanceStrategy,n=t.ngModule.injector,function(e){return e.pipe(Object(rf.a)((function(e){var t=e.targetSnapshot,a=e.guards.canActivateChecks;return a.length?Object(sr.a)(a).pipe(of((function(e){return function(e,t,i,n){return function(e,t,i,n){var a=Object.keys(e);if(0===a.length)return Bt({});if(1===a.length){var r=a[0];return oO(e[r],t,i,n).pipe(Object(ri.a)((function(e){return _defineProperty({},r,e)})))}var o={};return Object(sr.a)(a).pipe(Object(rf.a)((function(a){return oO(e[a],t,i,n).pipe(Object(ri.a)((function(e){return o[a]=e,e})))}))).pipe(Wx(),Object(ri.a)((function(){return o})))}(e._resolve,e,t,n).pipe(Object(ri.a)((function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),lI(e,i).resolve),null})))}(e.route,t,i,n)})),function(e,t){return arguments.length>=2?function(i){return Object(eS.a)(Xx(e,t),Lx(1),Vx(t))(i)}:function(t){return Object(eS.a)(Xx((function(t,i,n){return e(t,i,n+1)})),Lx(1))(t)}}((function(e,t){return e})),Object(ri.a)((function(t){return e}))):Bt(e)})))}),Gt((function(e){var i=new uS(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(i)})));var i,n})),sO((function(e){var i=e.targetSnapshot,n=e.id,a=e.extractedUrl,r=e.rawUrl,o=e.extras,s=o.skipLocationChange,c=o.replaceUrl;return t.hooks.afterPreactivation(i,{navigationId:n,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!c})})),Object(ri.a)((function(e){var i=function(e,t,i){var n=function e(t,i,n){if(n&&t.shouldReuseRoute(i.value,n.value.snapshot)){var a=n.value;a._futureSnapshot=i.value;var r=function(t,i,n){return i.children.map((function(i){var a,r=_createForOfIteratorHelper(n.children);try{for(r.s();!(a=r.n()).done;){var o=a.value;if(t.shouldReuseRoute(o.value.snapshot,i.value))return e(t,i,o)}}catch(s){r.e(s)}finally{r.f()}return e(t,i)}))}(t,i,n);return new aI(a,r)}var o=t.retrieve(i.value);if(o){var s=o.route;return function e(t,i){if(t.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=t.value;for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=t.relativeTo,n=t.queryParams,r=t.fragment,o=t.preserveQueryParams,s=t.queryParamsHandling,c=t.preserveFragment;Object(a.jb)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=i||this.routerState.root,u=c?this.currentUrlTree.fragment:r,d=null;if(s)switch(s){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=n||null}else d=o?this.currentUrlTree.queryParams:n||null;return null!==d&&(d=this.removeEmptyProps(d)),function(e,t,i,n,a){if(0===i.length)return vI(t.root,t.root,t,n,a);var r=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new bI(!0,0,e);var t=0,i=!1,n=e.reduce((function(e,n,a){if("object"==typeof n&&null!=n){if(n.outlets){var r={};return PS(n.outlets,(function(e,t){r[t]="string"==typeof e?e.split("/"):e})),[].concat(_toConsumableArray(e),[{outlets:r}])}if(n.segmentPath)return[].concat(_toConsumableArray(e),[n.segmentPath])}return"string"!=typeof n?[].concat(_toConsumableArray(e),[n]):0===a?(n.split("/").forEach((function(n,a){0==a&&"."===n||(0==a&&""===n?i=!0:".."===n?t++:""!=n&&e.push(n))})),e):[].concat(_toConsumableArray(e),[n])}),[]);return new bI(i,t,n)}(i);if(r.toRoot())return vI(t.root,new jS([],{}),t,n,a);var o=function(e,t,i){if(e.isAbsolute)return new _I(t.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new _I(i.snapshot._urlSegment,!0,0);var n=gI(e.commands[0])?0:1;return function(e,t,i){for(var n=e,a=t,r=i;r>a;){if(r-=a,!(n=n.parent))throw new Error("Invalid number of '../'");a=n.segments.length}return new _I(n,!1,a-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,e.numberOfDoubleDots)}(r,t,e),s=o.processChildren?wI(o.segmentGroup,o.index,r.commands):kI(o.segmentGroup,o.index,r.commands);return vI(o.segmentGroup,s,t,n,a)}(l,this.currentUrlTree,e,d,u)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Object(a.jb)()&&this.isNgZoneEnabled&&!a.I.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var i=AI(e)?e:this.parseUrl(e),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=i,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof iS?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof nS&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof vS&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new vS(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){a.Vc()},xO.\u0275dir=a.yc({type:xO}),xO),LO=new a.x("ROUTER_CONFIGURATION"),jO=new a.x("ROUTER_FORROOT_GUARD"),FO=[yt.n,{provide:BS,useClass:JS},{provide:bO,useFactory:function(e,t,i,n,a,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,u=new bO(null,e,t,i,n,a,r,AS(o));if(c&&(u.urlHandlingStrategy=c),l&&(u.routeReuseStrategy=l),s.errorHandler&&(u.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(u.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var d=Object(yt.N)();u.events.subscribe((function(e){d.logGroup("Router Event: ".concat(e.constructor.name)),d.log(e.toString()),d.log(e),d.logGroupEnd()}))}return s.onSameUrlNavigation&&(u.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(u.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(u.relativeLinkResolution=s.relativeLinkResolution),u},deps:[BS,DO,yt.n,a.y,a.F,a.k,lO,LO,[function(){return function e(){_classCallCheck(this,e)}}(),new a.J],[function(){return function e(){_classCallCheck(this,e)}}(),new a.J]]},DO,{provide:cI,useFactory:function(e){return e.routerState.root},deps:[bO]},{provide:a.F,useClass:a.V},RO,PO,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(Yp((function(){return Bt(null)})))}}]),e}(),{provide:LO,useValue:{enableTracing:!1}}];function NO(){return new a.H("Router",bO)}var zO,BO=((zO=function(){function e(t,i){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,i){return{ngModule:e,providers:[FO,UO(t),{provide:jO,useFactory:HO,deps:[[bO,new a.J,new a.U]]},{provide:LO,useValue:i||{}},{provide:yt.o,useFactory:VO,deps:[yt.D,[new a.w(yt.a),new a.J],LO]},{provide:MO,useFactory:JO,deps:[bO,yt.H,LO]},{provide:TO,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:PO},{provide:a.H,multi:!0,useFactory:NO},[WO,{provide:a.d,multi:!0,useFactory:qO,deps:[WO]},{provide:XO,useFactory:$O,deps:[WO]},{provide:a.b,multi:!0,useExisting:XO}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[UO(t)]}}}]),e}()).\u0275mod=a.Bc({type:zO}),zO.\u0275inj=a.Ac({factory:function(e){return new(e||zO)(a.Sc(jO,8),a.Sc(bO,8))}}),zO);function JO(e,t,i){return i.scrollOffset&&t.setOffset(i.scrollOffset),new MO(e,t,i)}function VO(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.useHash?new yt.h(e,t):new yt.B(e,t)}function HO(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function UO(e){return[{provide:a.a,multi:!0,useValue:e},{provide:lO,multi:!0,useValue:e}]}var GO,WO=((GO=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Lt.a}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(yt.m,Promise.resolve(null)).then((function(){var t=null,i=new Promise((function(e){return t=e})),n=e.injector.get(bO),a=e.injector.get(LO);if(e.isLegacyDisabled(a)||e.isLegacyEnabled(a))t(!0);else if("disabled"===a.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==a.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(a.initialNavigation,"'"));n.hooks.afterPreactivation=function(){return e.initNavigation?Bt(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},n.initialNavigation()}return i}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(LO),i=this.injector.get(RO),n=this.injector.get(MO),r=this.injector.get(bO),o=this.injector.get(a.g);e===o.components[0]&&(this.isLegacyEnabled(t)?r.initialNavigation():this.isLegacyDisabled(t)&&r.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}},{key:"isLegacyDisabled",value:function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}]),e}()).\u0275fac=function(e){return new(e||GO)(a.Sc(a.y))},GO.\u0275prov=a.zc({token:GO,factory:GO.\u0275fac}),GO);function qO(e){return e.appInitializer.bind(e)}function $O(e){return e.bootstrapListener.bind(e)}var KO,XO=new a.x("Router Initializer"),YO=((KO=function(){function e(t,i,n,r){var o=this;_classCallCheck(this,e),this.http=t,this.router=i,this.document=n,this.snackBar=r,this.path="",this.audioFolder="",this.videoFolder="",this.startPath=null,this.startPathSSL=null,this.handShakeComplete=!1,this.THEMES_CONFIG=Px,this.settings_changed=new Ik(!1),this.auth_token="4241b401-7236-493e-92b5-b72696b9d853",this.session_id=null,this.httpOptions=null,this.http_params=null,this.unauthorized=!1,this.debugMode=!1,this.isLoggedIn=!1,this.token=null,this.user=null,this.permissions=null,this.available_permissions=null,this.reload_config=new Ik(!1),this.config_reloaded=new Ik(!1),this.service_initialized=new Ik(!1),this.initialized=!1,this.open_create_default_admin_dialog=new Ik(!1),this.config=null,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",Object(a.jb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/"),this.http_params="apiKey=".concat(this.auth_token),this.httpOptions={params:new hf({fromString:this.http_params})},Rx.get((function(e){o.session_id=Rx.x64hash128(e.map((function(e){return e.value})).join(),31),o.httpOptions.params=o.httpOptions.params.set("sessionID",o.session_id)}));var s=window.location.href.includes("/player")||window.location.href.includes("/login");this.loadNavItems().subscribe((function(e){var t=o.debugMode?e:e.config_file;t&&(o.config=t.YoutubeDLMaterial,o.config.Advanced.multi_user_mode?localStorage.getItem("jwt_token")&&"null"!==localStorage.getItem("jwt_token")?(o.token=localStorage.getItem("jwt_token"),o.httpOptions.params=o.httpOptions.params.set("jwt",o.token),o.jwtAuth()):s?o.setInitialized():o.sendToLogin():o.setInitialized())})),this.reload_config.subscribe((function(e){e&&o.reloadConfig()}))}return _createClass(e,[{key:"canActivate",value:function(e,t){return new Promise((function(e){e(!0)}))}},{key:"setTheme",value:function(e){this.theme=this.THEMES_CONFIG[e]}},{key:"startHandshake",value:function(e){return this.http.get(e+"geturl")}},{key:"startHandshakeSSL",value:function(e){return this.http.get(e+"geturl")}},{key:"reloadConfig",value:function(){var e=this;this.loadNavItems().subscribe((function(t){var i=e.debugMode?t:t.config_file;i&&(e.config=i.YoutubeDLMaterial,e.config_reloaded.next(!0))}))}},{key:"getVideoFolder",value:function(){return this.http.get(this.startPath+"videofolder")}},{key:"getAudioFolder",value:function(){return this.http.get(this.startPath+"audiofolder")}},{key:"makeMP3",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"tomp3",{url:e,maxBitrate:t,customQualityConfiguration:i,customArgs:n,customOutput:a,youtubeUsername:r,youtubePassword:o,ui_uid:s},this.httpOptions)}},{key:"makeMP4",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"tomp4",{url:e,selectedHeight:t,customQualityConfiguration:i,customArgs:n,customOutput:a,youtubeUsername:r,youtubePassword:o,ui_uid:s},this.httpOptions)}},{key:"getFileStatusMp3",value:function(e){return this.http.post(this.path+"fileStatusMp3",{name:e},this.httpOptions)}},{key:"getFileStatusMp4",value:function(e){return this.http.post(this.path+"fileStatusMp4",{name:e},this.httpOptions)}},{key:"loadNavItems",value:function(){return Object(a.jb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config",this.httpOptions)}},{key:"loadAsset",value:function(e){return this.http.get("./assets/".concat(e))}},{key:"setConfig",value:function(e){return this.http.post(this.path+"setConfig",{new_config_file:e},this.httpOptions)}},{key:"deleteFile",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.http.post(t?this.path+"deleteMp3":this.path+"deleteMp4",{uid:e,blacklistMode:i},this.httpOptions)}},{key:"getMp3s",value:function(){return this.http.get(this.path+"getMp3s",this.httpOptions)}},{key:"getMp4s",value:function(){return this.http.get(this.path+"getMp4s",this.httpOptions)}},{key:"getFile",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"getFile",{uid:e,type:t,uuid:i},this.httpOptions)}},{key:"downloadFileFromServer",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"downloadFile",{fileNames:e,type:t,zip_mode:Array.isArray(e),outputName:i,fullPathProvided:n,subscriptionName:a,subPlaylist:r,uuid:s,uid:o},{responseType:"blob",params:this.httpOptions.params})}},{key:"uploadCookiesFile",value:function(e){return this.http.post(this.path+"uploadCookies",e,this.httpOptions)}},{key:"downloadArchive",value:function(e){return this.http.post(this.path+"downloadArchive",{sub:e},{responseType:"blob",params:this.httpOptions.params})}},{key:"getFileInfo",value:function(e,t,i){return this.http.post(this.path+"getVideoInfos",{fileNames:e,type:t,urlMode:i},this.httpOptions)}},{key:"getLogs",value:function(){return this.http.get(this.path+"logs",this.httpOptions)}},{key:"isPinSet",value:function(){return this.http.post(this.path+"isPinSet",{},this.httpOptions)}},{key:"setPin",value:function(e){return this.http.post(this.path+"setPin",{pin:e},this.httpOptions)}},{key:"checkPin",value:function(e){return this.http.post(this.path+"checkPin",{input_pin:e},this.httpOptions)}},{key:"generateNewAPIKey",value:function(){return this.http.post(this.path+"generateNewAPIKey",{},this.httpOptions)}},{key:"enableSharing",value:function(e,t,i){return this.http.post(this.path+"enableSharing",{uid:e,type:t,is_playlist:i},this.httpOptions)}},{key:"disableSharing",value:function(e,t,i){return this.http.post(this.path+"disableSharing",{uid:e,type:t,is_playlist:i},this.httpOptions)}},{key:"createPlaylist",value:function(e,t,i,n){return this.http.post(this.path+"createPlaylist",{playlistName:e,fileNames:t,type:i,thumbnailURL:n},this.httpOptions)}},{key:"getPlaylist",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"getPlaylist",{playlistID:e,type:t,uuid:i},this.httpOptions)}},{key:"updatePlaylist",value:function(e){return this.http.post(this.path+"updatePlaylist",{playlist:e},this.httpOptions)}},{key:"updatePlaylistFiles",value:function(e,t,i){return this.http.post(this.path+"updatePlaylistFiles",{playlistID:e,fileNames:t,type:i},this.httpOptions)}},{key:"removePlaylist",value:function(e,t){return this.http.post(this.path+"deletePlaylist",{playlistID:e,type:t},this.httpOptions)}},{key:"createSubscription",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return this.http.post(this.path+"subscribe",{url:e,name:t,timerange:i,streamingOnly:n,audioOnly:a,customArgs:r,customFileOutput:o},this.httpOptions)}},{key:"unsubscribe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.http.post(this.path+"unsubscribe",{sub:e,deleteMode:t},this.httpOptions)}},{key:"deleteSubscriptionFile",value:function(e,t,i,n){return this.http.post(this.path+"deleteSubscriptionFile",{sub:e,file:t,deleteForever:i,file_uid:n},this.httpOptions)}},{key:"getSubscription",value:function(e){return this.http.post(this.path+"getSubscription",{id:e},this.httpOptions)}},{key:"getAllSubscriptions",value:function(){return this.http.post(this.path+"getAllSubscriptions",{},this.httpOptions)}},{key:"getCurrentDownloads",value:function(){return this.http.get(this.path+"downloads",this.httpOptions)}},{key:"getCurrentDownload",value:function(e,t){return this.http.post(this.path+"download",{download_id:t,session_id:e},this.httpOptions)}},{key:"clearDownloads",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"clearDownloads",{delete_all:e,download_id:i,session_id:t||this.session_id},this.httpOptions)}},{key:"updateServer",value:function(e){return this.http.post(this.path+"updateServer",{tag:e},this.httpOptions)}},{key:"getUpdaterStatus",value:function(){return this.http.get(this.path+"updaterStatus",this.httpOptions)}},{key:"getLatestGithubRelease",value:function(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest")}},{key:"getAvailableRelease",value:function(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases")}},{key:"afterLogin",value:function(e,t,i,n){this.isLoggedIn=!0,this.user=e,this.permissions=i,this.available_permissions=n,this.token=t,localStorage.setItem("jwt_token",this.token),this.httpOptions.params=this.httpOptions.params.set("jwt",this.token),this.setInitialized(),this.config_reloaded.next(!0),"/login"===this.router.url&&this.router.navigate(["/home"])}},{key:"login",value:function(e,t){return this.http.post(this.path+"auth/login",{userid:e,password:t},this.httpOptions)}},{key:"jwtAuth",value:function(){var e=this,t=this.http.post(this.path+"auth/jwtAuth",{},this.httpOptions);return t.subscribe((function(t){t.token&&e.afterLogin(t.user,t.token,t.permissions,t.available_permissions)}),(function(t){401===t.status&&e.sendToLogin(),console.log(t)})),t}},{key:"logout",value:function(){this.user=null,this.permissions=null,this.isLoggedIn=!1,this.token=null,localStorage.setItem("jwt_token",null),"/login"!==this.router.url&&this.router.navigate(["/login"]),this.http_params="apiKey=".concat(this.auth_token,"&sessionID=").concat(this.session_id),this.httpOptions={params:new hf({fromString:this.http_params})}}},{key:"register",value:function(e,t){return this.http.post(this.path+"auth/register",{userid:e,username:e,password:t},this.httpOptions)}},{key:"sendToLogin",value:function(){this.checkAdminCreationStatus(),this.initialized||this.setInitialized(),"/login"!==this.router.url&&(this.router.navigate(["/login"]),this.openSnackBar("You must log in to access this page!"))}},{key:"setInitialized",value:function(){this.service_initialized.next(!0),this.initialized=!0,this.config_reloaded.next(!0)}},{key:"adminExists",value:function(){return this.http.post(this.path+"auth/adminExists",{},this.httpOptions)}},{key:"createAdminAccount",value:function(e){return this.http.post(this.path+"auth/register",{userid:"admin",username:"admin",password:e},this.httpOptions)}},{key:"checkAdminCreationStatus",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(t||this.config.Advanced.multi_user_mode)&&this.adminExists().subscribe((function(t){t.exists||e.open_create_default_admin_dialog.next(!0)}))}},{key:"changeUser",value:function(e){return this.http.post(this.path+"updateUser",{change_object:e},this.httpOptions)}},{key:"deleteUser",value:function(e){return this.http.post(this.path+"deleteUser",{uid:e},this.httpOptions)}},{key:"changeUserPassword",value:function(e,t){return this.http.post(this.path+"auth/changePassword",{user_uid:e,new_password:t},this.httpOptions)}},{key:"getUsers",value:function(){return this.http.post(this.path+"getUsers",{},this.httpOptions)}},{key:"getRoles",value:function(){return this.http.post(this.path+"getRoles",{},this.httpOptions)}},{key:"setUserPermission",value:function(e,t,i){return this.http.post(this.path+"changeUserPermissions",{user_uid:e,permission:t,new_value:i},this.httpOptions)}},{key:"setRolePermission",value:function(e,t,i){return this.http.post(this.path+"changeRolePermissions",{role:e,permission:t,new_value:i},this.httpOptions)}},{key:"openSnackBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||KO)(a.Sc(Pf),a.Sc(bO),a.Sc(yt.e),a.Sc(A_))},KO.\u0275prov=a.zc({token:KO,factory:KO.\u0275fac}),KO);si.a.of=Bt;var ZO=function(){function e(t){_classCallCheck(this,e),this.value=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new QO(e,this.value))}}]),e}(),QO=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).value=n,a}return _createClass(i,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),i}(Vt.a);function eD(e,t,i){return Gt(e,t,i)(this)}function tD(){return Tl(Gx.a)(this)}function iD(e,t){if(1&e&&(a.Jc(0,"h4",5),a.Bd(1),a.Ic()),2&e){var i=a.ad();a.pc(1),a.Cd(i.dialog_title)}}function nD(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"mat-form-field",6),a.Jc(2,"input",7),a.Wc("keyup.enter",(function(){return a.rd(i),a.ad().doAction()}))("ngModelChange",(function(e){return a.rd(i),a.ad().input=e})),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(2),a.gd("ngModel",n.input)("placeholder",n.input_placeholder)}}function aD(e,t){1&e&&(a.Jc(0,"div",8),a.Ec(1,"mat-spinner",9),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",25))}si.a.prototype.mapTo=function(e){return function(e){return function(t){return t.lift(new ZO(e))}}(e)(this)},i("XypG"),si.a.fromEvent=rl,si.a.prototype.filter=function(e,t){return ii(e,t)(this)},si.a.prototype.debounceTime=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt;return Zt(e,t)(this)},si.a.prototype.do=eD,si.a.prototype._do=eD,si.a.prototype.switch=tD,si.a.prototype._switch=tD;var rD,oD,sD,cD,lD,uD,dD,hD,pD,fD,mD,gD,vD,bD,_D,yD,kD=((rD=function(){function e(t,i,n,a){_classCallCheck(this,e),this.postsService=t,this.data=i,this.dialogRef=n,this.snackBar=a,this.pinSetChecked=!1,this.pinSet=!0,this.resetMode=!1,this.dialog_title="",this.input_placeholder=null,this.input="",this.button_label=""}return _createClass(e,[{key:"ngOnInit",value:function(){this.data&&(this.resetMode=this.data.resetMode),this.resetMode?(this.pinSetChecked=!0,this.notSetLogic()):this.isPinSet()}},{key:"isPinSet",value:function(){var e=this;this.postsService.isPinSet().subscribe((function(t){e.pinSetChecked=!0,t.is_set?e.isSetLogic():e.notSetLogic()}))}},{key:"isSetLogic",value:function(){this.pinSet=!0,this.dialog_title="Pin Required",this.input_placeholder="Pin",this.button_label="Submit"}},{key:"notSetLogic",value:function(){this.pinSet=!1,this.dialog_title="Set your pin",this.input_placeholder="New pin",this.button_label="Set Pin"}},{key:"doAction",value:function(){var e=this;this.pinSetChecked&&0!==this.input.length&&(this.pinSet?this.postsService.checkPin(this.input).subscribe((function(t){t.success?e.dialogRef.close(!0):(e.dialogRef.close(!1),e.openSnackBar("Pin is incorrect!"))})):this.postsService.setPin(this.input).subscribe((function(t){t.success?(e.dialogRef.close(!0),e.openSnackBar("Pin successfully set!")):(e.dialogRef.close(!1),e.openSnackBar("Failed to set pin!"))})))}},{key:"openSnackBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||rD)(a.Dc(YO),a.Dc(Oh),a.Dc(Ih),a.Dc(A_))},rD.\u0275cmp=a.xc({type:rD,selectors:[["app-check-or-set-pin-dialog"]],decls:8,vars:5,consts:[["mat-dialog-title","",4,"ngIf"],[2,"position","relative"],[4,"ngIf"],["class","spinner-div",4,"ngIf"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],["mat-dialog-title",""],["color","accent"],["type","password","matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],[1,"spinner-div"],[3,"diameter"]],template:function(e,t){1&e&&(a.zd(0,iD,2,1,"h4",0),a.Jc(1,"mat-dialog-content"),a.Jc(2,"div",1),a.zd(3,nD,3,2,"div",2),a.zd(4,aD,2,1,"div",3),a.Ic(),a.Ic(),a.Jc(5,"mat-dialog-actions"),a.Jc(6,"button",4),a.Wc("click",(function(){return t.doAction()})),a.Bd(7),a.Ic(),a.Ic()),2&e&&(a.gd("ngIf",t.pinSetChecked),a.pc(3),a.gd("ngIf",t.pinSetChecked),a.pc(1),a.gd("ngIf",!t.pinSetChecked),a.pc(2),a.gd("disabled",0===t.input.length),a.pc(1),a.Cd(t.button_label))},directives:[yt.t,Lh,jh,Za,Mh,Ud,Pm,_r,Dr,es,jv],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),rD),wD={ab:{name:"Abkhaz",nativeName:"\u0430\u04a7\u0441\u0443\u0430"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"\u12a0\u121b\u122d\u129b"},ar:{name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},an:{name:"Aragonese",nativeName:"Aragon\xe9s"},hy:{name:"Armenian",nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},as:{name:"Assamese",nativeName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",nativeName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0, \u043c\u0430\u0433\u04c0\u0430\u0440\u0443\u043b \u043c\u0430\u0446\u04c0"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"az\u0259rbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f"},bn:{name:"Bengali",nativeName:"\u09ac\u09be\u0982\u09b2\u09be"},bh:{name:"Bihari",nativeName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},my:{name:"Burmese",nativeName:"\u1017\u1019\u102c\u1005\u102c"},ca:{name:"Catalan; Valencian",nativeName:"Catal\xe0"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiChe\u0175a, chinyanja"},zh:{name:"Chinese",nativeName:"\u4e2d\u6587 (Zh\u014dngw\xe9n), \u6c49\u8bed, \u6f22\u8a9e"},cv:{name:"Chuvash",nativeName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"\u010desky, \u010de\u0161tina"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"\u078b\u07a8\u0788\u07ac\u0780\u07a8"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"E\u028begbe"},fo:{name:"Faroese",nativeName:"f\xf8royskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"fran\xe7ais, langue fran\xe7aise"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek, Modern",nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},gn:{name:"Guaran\xed",nativeName:"Ava\xf1e\u1ebd"},gu:{name:"Gujarati",nativeName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},ht:{name:"Haitian; Haitian Creole",nativeName:"Krey\xf2l ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, \u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew (modern)",nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940, \u0939\u093f\u0902\u0926\u0940"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"As\u1ee5s\u1ee5 Igbo"},ik:{name:"Inupiaq",nativeName:"I\xf1upiaq, I\xf1upiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"\xcdslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",nativeName:"\u65e5\u672c\u8a9e (\u306b\u307b\u3093\u3054\uff0f\u306b\u3063\u307d\u3093\u3054)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut, Greenlandic",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940, \u0643\u0634\u0645\u064a\u0631\u064a\u200e"},kk:{name:"Kazakh",nativeName:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},km:{name:"Khmer",nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a"},ki:{name:"Kikuyu, Gikuyu",nativeName:"G\u0129k\u0169y\u0169"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz, Kyrgyz",nativeName:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438"},kv:{name:"Komi",nativeName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"\ud55c\uad6d\uc5b4 (\u97d3\u570b\u8a9e), \uc870\uc120\ub9d0 (\u671d\u9bae\u8a9e)"},ku:{name:"Kurdish",nativeName:"Kurd\xee, \u0643\u0648\u0631\u062f\u06cc\u200e"},kj:{name:"Kwanyama, Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish, Letzeburgesch",nativeName:"L\xebtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish, Limburgan, Limburger",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Ling\xe1la"},lo:{name:"Lao",nativeName:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7"},lt:{name:"Lithuanian",nativeName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latvie\u0161u valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},ml:{name:"Malayalam",nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"M\u0101ori",nativeName:"te reo M\u0101ori"},mr:{name:"Marathi (Mar\u0101\u1e6dh\u012b)",nativeName:"\u092e\u0930\u093e\u0920\u0940"},mh:{name:"Marshallese",nativeName:"Kajin M\u0327aje\u013c"},mn:{name:"Mongolian",nativeName:"\u043c\u043e\u043d\u0433\u043e\u043b"},na:{name:"Nauru",nativeName:"Ekakair\u0169 Naoero"},nv:{name:"Navajo, Navaho",nativeName:"Din\xe9 bizaad, Din\xe9k\u02bceh\u01f0\xed"},nb:{name:"Norwegian Bokm\xe5l",nativeName:"Norsk bokm\xe5l"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"\ua188\ua320\ua4bf Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe, Ojibwa",nativeName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},cu:{name:"Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic",nativeName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian, Ossetic",nativeName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi, Punjabi",nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40, \u067e\u0646\u062c\u0627\u0628\u06cc\u200e"},pi:{name:"P\u0101li",nativeName:"\u092a\u093e\u0934\u093f"},fa:{name:"Persian",nativeName:"\u0641\u0627\u0631\u0633\u06cc"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto, Pushto",nativeName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",nativeName:"Portugu\xeas"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian, Moldavian, Moldovan",nativeName:"rom\xe2n\u0103"},ru:{name:"Russian",nativeName:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a"},sa:{name:"Sanskrit (Sa\u1e41sk\u1e5bta)",nativeName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"\u0938\u093f\u0928\u094d\u0927\u0940, \u0633\u0646\u068c\u064a\u060c \u0633\u0646\u062f\u06be\u06cc\u200e"},se:{name:"Northern Sami",nativeName:"Davvis\xe1megiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},sr:{name:"Serbian",nativeName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"G\xe0idhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala, Sinhalese",nativeName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",nativeName:"sloven\u010dina"},sl:{name:"Slovene",nativeName:"sloven\u0161\u010dina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"espa\xf1ol"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",nativeName:"\u0442\u043e\u04b7\u0438\u043a\u04e3, to\u011fik\u012b, \u062a\u0627\u062c\u06cc\u06a9\u06cc\u200e"},th:{name:"Thai",nativeName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",nativeName:"\u1275\u130d\u122d\u129b"},bo:{name:"Tibetan Standard, Tibetan, Central",nativeName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},tk:{name:"Turkmen",nativeName:"T\xfcrkmen, \u0422\u04af\u0440\u043a\u043c\u0435\u043d"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, \u170f\u1712\u1703\u1705\u1714 \u1706\u1704\u170e\u1713\u1704\u1714"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430, tatar\xe7a, \u062a\u0627\u062a\u0627\u0631\u0686\u0627\u200e"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur, Uyghur",nativeName:"Uy\u01a3urq\u0259, \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",nativeName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",nativeName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",nativeName:"zbek, \u040e\u0437\u0431\u0435\u043a, \u0623\u06c7\u0632\u0628\u06d0\u0643\u200e"},ve:{name:"Venda",nativeName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",nativeName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",nativeName:"Volap\xfck"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",nativeName:"Yor\xf9b\xe1"},za:{name:"Zhuang, Chuang",nativeName:"Sa\u026f cue\u014b\u0185, Saw cuengh"}},CD={uncategorized:{label:"Main"},network:{label:"Network"},geo_restriction:{label:"Geo Restriction"},video_selection:{label:"Video Selection"},download:{label:"Download"},filesystem:{label:"Filesystem"},thumbnail:{label:"Thumbnail"},verbosity:{label:"Verbosity"},workarounds:{label:"Workarounds"},video_format:{label:"Video Format"},subtitle:{label:"Subtitle"},authentication:{label:"Authentication"},adobe_pass:{label:"Adobe Pass"},post_processing:{label:"Post Processing"}},xD={uncategorized:[{key:"-h",alt:"--help",description:"Print this help text and exit"},{key:"--version",description:"Print program version and exit"},{key:"-U",alt:"--update",description:"Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)"},{key:"-i",alt:"--ignore-errors",description:"Continue on download errors, for example to skip unavailable videos in a playlist"},{key:"--abort-on-error",description:"Abort downloading of further videos (in the playlist or the command line) if an error occurs"},{key:"--dump-user-agent",description:"Display the current browser identification"},{key:"--list-extractors",description:"List all supported extractors"},{key:"--extractor-descriptions",description:"Output descriptions of all supported extractors"},{key:"--force-generic-extractor",description:"Force extraction to use the generic extractor"},{key:"--default-search",description:'Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube-dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit awarning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching.'},{key:"--ignore-config",description:"Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)"},{key:"--config-location",description:"Location of the configuration file; either the path to the config or its containing directory."},{key:"--flat-playlist",description:"Do not extract the videos of a playlist, only list them."},{key:"--mark-watched",description:"Mark videos watched (YouTube only)"},{key:"--no-mark-watched",description:"Do not mark videos watched (YouTube only)"},{key:"--no-color",description:"Do not emit color codes in output"}],network:[{key:"--proxy",description:'Use the specified HTTP/HTTPS/SOCKS proxy.To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection.'},{key:"--socket-timeout",description:"Time to wait before giving up, in seconds"},{key:"--source-address",description:"Client-side IP address to bind to"},{key:"-4",alt:"--force-ipv4",description:"Make all connections via IPv4"},{key:"-6",alt:"--force-ipv6",description:"Make all connections via IPv6"}],geo_restriction:[{key:"--geo-verification-proxy",description:"Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy', if the option is not present) is used for the actual downloading."},{key:"--geo-bypass",description:"Bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--no-geo-bypass",description:"Do not bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--geo-bypass-country",description:"Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code"},{key:"--geo-bypass-ip-block",description:"Force bypass geographic restriction with explicitly provided IP block in CIDR notation"}],video_selection:[{key:"--playlist-start",description:"Playlist video to start at (default is 1)"},{key:"--playlist-end",description:"Playlist video to end at (default is last)"},{key:"--playlist-items",description:'Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.'},{key:"--match-title",description:"Download only matching titles (regex orcaseless sub-string)"},{key:"--reject-title",description:"Skip download for matching titles (regex orcaseless sub-string)"},{key:"--max-downloads",description:"Abort after downloading NUMBER files"},{key:"--min-filesize",description:"Do not download any videos smaller than SIZE (e.g. 50k or 44.6m)"},{key:"--max-filesize",description:"Do not download any videos larger than SIZE (e.g. 50k or 44.6m)"},{key:"--date",description:"Download only videos uploaded in this date"},{key:"--datebefore",description:"Download only videos uploaded on or before this date (i.e. inclusive)"},{key:"--dateafter",description:"Download only videos uploaded on or after this date (i.e. inclusive)"},{key:"--min-views",description:"Do not download any videos with less than COUNT views"},{key:"--max-views",description:"Do not download any videos with more than COUNT views"},{key:"--match-filter",description:'Generic video filter. Specify any key (seethe "OUTPUT TEMPLATE" for a list of available keys) to match if the key is present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=, =) to compare against a number, key = \'LITERAL\' (like "uploader = \'Mike Smith\'", also works with !=) to match against a string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than 50 times (or the dislike functionality is not available at the given service), but who also have a description, use --match-filter'},{key:"--no-playlist",description:"Download only the video, if the URL refers to a video and a playlist."},{key:"--yes-playlist",description:"Download the playlist, if the URL refers to a video and a playlist."},{key:"--age-limit",description:"Download only videos suitable for the given age"},{key:"--download-archive",description:"Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it."},{key:"--include-ads",description:"Download advertisements as well (experimental)"}],download:[{key:"-r",alt:"--limit-rate",description:"Maximum download rate in bytes per second(e.g. 50K or 4.2M)"},{key:"-R",alt:"--retries",description:'Number of retries (default is 10), or "infinite".'},{key:"--fragment-retries",description:'Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM)'},{key:"--skip-unavailable-fragments",description:"Skip unavailable fragments (DASH, hlsnative and ISM)"},{key:"--abort-on-unavailable-fragment",description:"Abort downloading when some fragment is not available"},{key:"--keep-fragments",description:"Keep downloaded fragments on disk after downloading is finished; fragments are erased by default"},{key:"--buffer-size",description:"Size of download buffer (e.g. 1024 or 16K) (default is 1024)"},{key:"--no-resize-buffer",description:"Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE."},{key:"--http-chunk-size",description:"Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)"},{key:"--playlist-reverse",description:"Download playlist videos in reverse order"},{key:"--playlist-random",description:"Download playlist videos in random order"},{key:"--xattr-set-filesize",description:"Set file xattribute ytdl.filesize with expected file size"},{key:"--hls-prefer-native",description:"Use the native HLS downloader instead of ffmpeg"},{key:"--hls-prefer-ffmpeg",description:"Use ffmpeg instead of the native HLS downloader"},{key:"--hls-use-mpegts",description:"Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play it)"},{key:"--external-downloader",description:"Use the specified external downloader. Currently supports aria2c,avconv,axel,curl,ffmpeg,httpie,wget"},{key:"--external-downloader-args"}],filesystem:[{key:"-a",alt:"--batch-file",description:"File containing URLs to download ('-' for stdin), one URL per line. Lines starting with '#', ';' or ']' are considered as comments and ignored."},{key:"--id",description:"Use only video ID in file name"},{key:"-o",alt:"--output",description:'Output filename template, see the "OUTPUT TEMPLATE" for all the info'},{key:"--autonumber-start",description:"Specify the start value for %(autonumber)s (default is 1)"},{key:"--restrict-filenames",description:'Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames'},{key:"-w",alt:"--no-overwrites",description:"Do not overwrite files"},{key:"-c",alt:"--continue",description:"Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible."},{key:"--no-continue",description:"Do not resume partially downloaded files (restart from beginning)"},{key:"--no-part",description:"Do not use .part files - write directlyinto output file"},{key:"--no-mtime",description:"Do not use the Last-modified header to set the file modification time"},{key:"--write-description",description:"Write video description to a .description file"},{key:"--write-info-json",description:"Write video metadata to a .info.json file"},{key:"--write-annotations",description:"Write video annotations to a.annotations.xml file"},{key:"--load-info-json",description:'JSON file containing the video information (created with the "--write-info-json" option)'},{key:"--cookies",description:"File to read cookies from and dump cookie jar in"},{key:"--cache-dir",description:"Location in the file system where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are cached, but that may change."},{key:"--no-cache-dir",description:"Disable filesystem caching"},{key:"--rm-cache-dir",description:"Delete all filesystem cache files"}],thumbnail:[{key:"--write-thumbnail",description:"Write thumbnail image to disk"},{key:"--write-all-thumbnails",description:"Write all thumbnail image formats to disk"},{key:"--list-thumbnails",description:"Simulate and list all available thumbnail formats"}],verbosity:[{key:"-q",alt:"--quiet",description:"Activate quiet mode"},{key:"--no-warnings",description:"Ignore warnings"},{key:"-s",alt:"--simulate",description:"Do not download the video and do not writeanything to disk"},{key:"--skip-download",description:"Do not download the video"},{key:"-g",alt:"--get-url",description:"Simulate, quiet but print URL"},{key:"-e",alt:"--get-title",description:"Simulate, quiet but print title"},{key:"--get-id",description:"Simulate, quiet but print id"},{key:"--get-thumbnail",description:"Simulate, quiet but print thumbnail URL"},{key:"--get-description",description:"Simulate, quiet but print video description"},{key:"--get-duration",description:"Simulate, quiet but print video length"},{key:"--get-filename",description:"Simulate, quiet but print output filename"},{key:"--get-format",description:"Simulate, quiet but print output format"},{key:"-j",alt:"--dump-json",description:'Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys.'},{key:"-J",alt:"--dump-single-json",description:"Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line."},{key:"--print-json",description:"Be quiet and print the video information as JSON (video is still being downloaded)."},{key:"--newline",description:"Output progress bar as new lines"},{key:"--no-progress",description:"Do not print progress bar"},{key:"--console-title",description:"Display progress in console title bar"},{key:"-v",alt:"--verbose",description:"Print various debugging information"},{key:"--dump-pages",description:"Print downloaded pages encoded using base64 to debug problems (very verbose)"},{key:"--write-pages",description:"Write downloaded intermediary pages to files in the current directory to debug problems"},{key:"--print-traffic",description:"Display sent and read HTTP traffic"},{key:"-C",alt:"--call-home",description:"Contact the youtube-dl server for debugging"},{key:"--no-call-home",description:"Do NOT contact the youtube-dl server for debugging"}],workarounds:[{key:"--encoding",description:"Force the specified encoding (experimental)"},{key:"--no-check-certificate",description:"Suppress HTTPS certificate validation"},{key:"--prefer-insecure",description:"Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube)"},{key:"--user-agent",description:"Specify a custom user agent"},{key:"--referer",description:"Specify a custom referer, use if the video access is restricted to one domain"},{key:"--add-header",description:"Specify a custom HTTP header and its value, separated by a colon ':'. You can use this option multiple times"},{key:"--bidi-workaround",description:"Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH"},{key:"--sleep-interval",description:"Number of seconds to sleep before each download when used alone or a lower boundof a range for randomized sleep before each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval"},{key:"--max-sleep-interval",description:"Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only beused along with --min-sleep-interval"}],video_format:[{key:"-f",alt:"--format",description:'Video format code, see the "FORMAT SELECTION" for all the info'},{key:"--all-formats",description:"Download all available video formats"},{key:"--prefer-free-formats",description:"Prefer free video formats unless a specific one is requested"},{key:"-F",alt:"--list-formats",description:"List all available formats of requested videos"},{key:"--youtube-skip-dash-manifest",description:"Do not download the DASH manifests and related data on YouTube videos"},{key:"--merge-output-format",description:"If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required"}],subtitle:[{key:"--write-sub",description:"Write subtitle file"},{key:"--write-auto-sub",description:"Write automatically generated subtitle file (YouTube only)"},{key:"--all-subs",description:"Download all the available subtitles of the video"},{key:"--list-subs",description:"List all available subtitles for the video"},{key:"--sub-format",description:'Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"'},{key:"--sub-lang",description:"Languages of the subtitles to download (optional) separated by commas, use --list-subs"}],authentication:[{key:"-u",alt:"--username",description:"Login with this account ID"},{key:"-p",alt:"--password",description:"Account password. If this option is left out, youtube-dl will ask interactively."},{key:"-2",alt:"--twofactor",description:"Two-factor authentication code"},{key:"-n",alt:"--netrc",description:"Use .netrc authentication data"},{key:"--video-password",description:"Video password (vimeo, smotri, youku)"}],adobe_pass:[{key:"--ap-mso",description:"Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso"},{key:"--ap-username",description:"Multiple-system operator account login"},{key:"--ap-password",description:"Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively."},{key:"--ap-list-mso",description:"List all supported multiple-system operators"}],post_processing:[{key:"-x",alt:"--extract-audio",description:"Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)"},{key:"--audio-format",description:'Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without -x'},{key:"--audio-quality",description:"Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse)for VBR or a specific bitrate like 128K (default 5)"},{key:"--recode-video",description:"Encode the video to another format if necessary (currently supported:mp4|flv|ogg|webm|mkv|avi)"},{key:"--postprocessor-args",description:"Give these arguments to the postprocessor"},{key:"-k",alt:"--keep-video",description:"Keep the video file on disk after the post-processing; the video is erased by default"},{key:"--no-post-overwrites",description:"Do not overwrite post-processed files; the post-processed files are overwritten by default"},{key:"--embed-subs",description:"Embed subtitles in the video (only for mp4,webm and mkv videos)"},{key:"--embed-thumbnail",description:"Embed thumbnail in the audio as cover art"},{key:"--add-metadata",description:"Write metadata to the video file"},{key:"--metadata-from-title",description:"Parse additional metadata like song title/artist from the video title. The format syntax is the same as --output"},{key:"--xattrs",description:"Write metadata to the video file's xattrs (using dublin core and xdg standards)"},{key:"--fixup",description:"Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix file if we can, warn otherwise)"},{key:"--prefer-avconv",description:"Prefer avconv over ffmpeg for running the postprocessors"},{key:"--prefer-ffmpeg",description:"Prefer ffmpeg over avconv for running the postprocessors (default)"},{key:"--ffmpeg-location",description:"Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory."},{key:"--exec",description:"Execute a command on the file after downloading, similar to find's -exec syntax. Example: --exec"},{key:"--convert-subs",description:"Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)"}]},SD=["*"],ID=Un(Vn(Hn(Jn((function e(t){_classCallCheck(this,e),this._elementRef=t}))),"primary"),-1),OD=((lD=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||lD)},lD.\u0275dir=a.yc({type:lD,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),lD),DD=((cD=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||cD)},cD.\u0275dir=a.yc({type:cD,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),cD),ED=((sD=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l,u){var d;return _classCallCheck(this,i),(d=t.call(this,e))._elementRef=e,d._ngZone=n,d._changeDetectorRef=c,d._hasFocus=!1,d.chipListSelectable=!0,d._chipListMultiple=!1,d._selected=!1,d._selectable=!0,d._removable=!0,d._onFocus=new Lt.a,d._onBlur=new Lt.a,d.selectionChange=new a.u,d.destroyed=new a.u,d.removed=new a.u,d._addHostClassName(),d._chipRippleTarget=(u||document).createElement("div"),d._chipRippleTarget.classList.add("mat-chip-ripple"),d._elementRef.nativeElement.appendChild(d._chipRippleTarget),d._chipRipple=new Ia(_assertThisInitialized(d),n,d._chipRippleTarget,r),d._chipRipple.setupTriggerEvents(e),d.rippleConfig=o||{},d._animationsDisabled="NoopAnimations"===s,d.tabIndex=null!=l&&parseInt(l)||-1,d}return _createClass(i,[{key:"_addHostClassName",value:function(){var e=this._elementRef.nativeElement;e.hasAttribute("mat-basic-chip")||"mat-basic-chip"===e.tagName.toLowerCase()?e.classList.add("mat-basic-chip"):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.asObservable().pipe(ui(1)).subscribe((function(){e._ngZone.run((function(){e._hasFocus=!1,e._onBlur.next({chip:e})}))}))}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}},{key:"_markForCheck",value:function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=fi(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=fi(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=fi(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),i}(ID)).\u0275fac=function(e){return new(e||sD)(a.Dc(a.r),a.Dc(a.I),a.Dc(Ii),a.Dc(Oa,8),a.Dc(Pt,8),a.Dc(a.j),a.Tc("tabindex"),a.Dc(yt.e,8))},sD.\u0275dir=a.yc({type:sD,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,OD,!0),a.vc(i,DD,!0),a.vc(i,AD,!0)),2&e&&(a.md(n=a.Xc())&&(t.avatar=n.first),a.md(n=a.Xc())&&(t.trailingIcon=n.first),a.md(n=a.Xc())&&(t.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&a.Wc("click",(function(e){return t._handleClick(e)}))("keydown",(function(e){return t._handleKeydown(e)}))("focus",(function(){return t.focus()}))("blur",(function(){return t._blur()})),2&e&&(a.qc("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),a.tc("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[a.mc]}),sD),AD=((oD=function(){function e(t,i){_classCallCheck(this,e),this._parentChip=t,i&&"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}return _createClass(e,[{key:"_handleClick",value:function(e){var t=this._parentChip;t.removable&&!t.disabled&&t.remove(),e.stopPropagation()}}]),e}()).\u0275fac=function(e){return new(e||oD)(a.Dc(ED),a.Dc(a.r))},oD.\u0275dir=a.yc({type:oD,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,t){1&e&&a.Wc("click",(function(e){return t._handleClick(e)}))}}),oD),TD=new a.x("mat-chips-default-options"),PD=Gn((function e(t,i,n,a){_classCallCheck(this,e),this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=a})),RD=0,MD=function e(t,i){_classCallCheck(this,e),this.source=t,this.value=i},LD=((dD=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=t.call(this,c,o,s,l))._elementRef=e,u._changeDetectorRef=n,u._dir=r,u.ngControl=l,u.controlType="mat-chip-list",u._lastDestroyedChipIndex=null,u._destroyed=new Lt.a,u._uid="mat-chip-list-".concat(RD++),u._tabIndex=0,u._userTabIndex=null,u._onTouched=function(){},u._onChange=function(){},u._multiple=!1,u._compareWith=function(e,t){return e===t},u._required=!1,u._disabled=!1,u.ariaOrientation="horizontal",u._selectable=!0,u.change=new a.u,u.valueChange=new a.u,u.ngControl&&(u.ngControl.valueAccessor=_assertThisInitialized(u)),u}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new Xi(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Ol(this._destroyed)).subscribe((function(t){return e._keyManager.withHorizontalOrientation(t)})),this._keyManager.tabOut.pipe(Ol(this._destroyed)).subscribe((function(){e._allowFocusEscape()})),this.chips.changes.pipe(An(null),Ol(this._destroyed)).subscribe((function(){e.disabled&&Promise.resolve().then((function(){e._syncChipsState()})),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()}))}},{key:"ngOnInit",value:function(){this._selectionModel=new nr(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;8===e.keyCode&&this._isInputEmpty(t)?(this._keyManager.setLastItemActive(),e.preventDefault()):t&&t.classList.contains("mat-chip")&&(36===e.keyCode?(this._keyManager.setFirstItemActive(),e.preventDefault()):35===e.keyCode?(this._keyManager.setLastItemActive(),e.preventDefault()):this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach((function(e){return e.deselect()})),Array.isArray(e))e.forEach((function(e){return t._selectValue(e,i)})),this._sortValues();else{var n=this._selectValue(e,i);n&&i&&this._keyManager.setActiveItem(n)}}},{key:"_selectValue",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.chips.find((function(i){return null!=i.value&&t._compareWith(i.value,e)}));return n&&(i?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then((function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())}))}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach((function(t){t!==e&&t.deselect()})),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach((function(t){t.selected&&e._selectionModel.select(t)})),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.change.emit(new MD(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout((function(){e.focused||e._markAsTouched()})):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout((function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()})))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe((function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach((function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()})),t.isUserInput&&e._propagateChanges()}))}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe((function(t){var i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&e._keyManager.updateActiveItem(i),e.stateChanges.next()})),this._chipBlurSubscription=this.chipBlurChanges.subscribe((function(){e._blur(),e.stateChanges.next()}))}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe((function(t){var i=t.chip,n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&i._hasFocus&&(e._lastDestroyedChipIndex=n)}))}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips.some((function(e){return e._hasFocus}))}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach((function(t){t.disabled=e._disabled,t._chipListMultiple=e.multiple}))}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=fi(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=fi(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=fi(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=fi(e),this.chips&&this.chips.forEach((function(e){return e.chipListSelectable=t._selectable}))}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return Object(al.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e.selectionChange}))))}},{key:"chipFocusChanges",get:function(){return Object(al.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e._onFocus}))))}},{key:"chipBlurChanges",get:function(){return Object(al.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e._onBlur}))))}},{key:"chipRemoveChanges",get:function(){return Object(al.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e.destroyed}))))}}]),i}(PD)).\u0275fac=function(e){return new(e||dD)(a.Dc(a.r),a.Dc(a.j),a.Dc(Cn,8),a.Dc(Wo,8),a.Dc(os,8),a.Dc(da),a.Dc(Ir,10))},dD.\u0275cmp=a.xc({type:dD,selectors:[["mat-chip-list"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,ED,!0),2&e&&a.md(n=a.Xc())&&(t.chips=n)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&a.Wc("focus",(function(){return t.focus()}))("blur",(function(){return t._blur()}))("keydown",(function(e){return t._keydown(e)})),2&e&&(a.Mc("id",t._uid),a.qc("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),a.tc("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[a.oc([{provide:Sd,useExisting:dD}]),a.mc],ngContentSelectors:SD,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div",0),a.ed(1),a.Ic())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),dD),jD=0,FD=((uD=function(){function e(t,i){_classCallCheck(this,e),this._elementRef=t,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new a.u,this.placeholder="",this.id="mat-chip-list-input-".concat(jD++),this._disabled=!1,this._inputElement=this._elementRef.nativeElement}return _createClass(e,[{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"_keydown",value:function(e){e&&9===e.keyCode&&!Jt(e,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(e)}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(e){!this._inputElement.value&&e&&this._chipList._keydown(e),e&&!this._isSeparatorKey(e)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),e&&e.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(e){this._inputElement.focus(e)}},{key:"_isSeparatorKey",value:function(e){if(Jt(e))return!1;var t=this.separatorKeyCodes,i=e.keyCode;return Array.isArray(t)?t.indexOf(i)>-1:t.has(i)}},{key:"chipList",set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=fi(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=fi(e)}},{key:"empty",get:function(){return!this._inputElement.value}}]),e}()).\u0275fac=function(e){return new(e||uD)(a.Dc(a.r),a.Dc(TD))},uD.\u0275dir=a.yc({type:uD,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&a.Wc("keydown",(function(e){return t._keydown(e)}))("blur",(function(){return t._blur()}))("focus",(function(){return t._focus()}))("input",(function(){return t._onInput()})),2&e&&(a.Mc("id",t.id),a.qc("disabled",t.disabled||null)("placeholder",t.placeholder||null)("aria-invalid",t._chipList&&t._chipList.ngControl?t._chipList.ngControl.invalid:null)("aria-required",t._chipList&&t._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[a.nc]}),uD),ND={separatorKeyCodes:[13]},zD=((hD=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:hD}),hD.\u0275inj=a.Ac({factory:function(e){return new(e||hD)},providers:[da,{provide:TD,useValue:ND}]}),hD),BD=["chipper"];function JD(e,t){1&e&&(a.Jc(0,"mat-icon",27),a.Bd(1,"cancel"),a.Ic())}function VD(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-chip",25),a.Wc("removed",(function(){a.rd(i);var e=t.index;return a.ad().remove(e)})),a.Bd(1),a.zd(2,JD,2,0,"mat-icon",26),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad();a.gd("matTooltip",r.argsByKey[n]?r.argsByKey[n].description:null)("selectable",r.selectable)("removable",r.removable),a.pc(1),a.Dd(" ",n," "),a.pc(1),a.gd("ngIf",r.removable)}}function HD(e,t){if(1&e&&(a.Jc(0,"mat-option",28),a.Ec(1,"span",29),a.bd(2,"highlight"),a.Jc(3,"button",30),a.Jc(4,"mat-icon"),a.Bd(5,"info"),a.Ic(),a.Ic(),a.Ic()),2&e){var i=t.$implicit,n=a.ad();a.gd("value",i.key),a.pc(1),a.gd("innerHTML",a.dd(2,3,i.key,n.chipCtrl.value),a.sd),a.pc(2),a.gd("matTooltip",i.description)}}function UD(e,t){if(1&e&&(a.Jc(0,"mat-option",28),a.Ec(1,"span",29),a.bd(2,"highlight"),a.Jc(3,"button",30),a.Jc(4,"mat-icon"),a.Bd(5,"info"),a.Ic(),a.Ic(),a.Ic()),2&e){var i=t.$implicit,n=a.ad();a.gd("value",i.key),a.pc(1),a.gd("innerHTML",a.dd(2,3,i.key,n.stateCtrl.value),a.sd),a.pc(2),a.gd("matTooltip",i.description)}}function GD(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",34),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad(2).setFirstArg(e.key)})),a.Jc(1,"div",35),a.Bd(2),a.Ic(),a.Bd(3,"\xa0\xa0"),a.Jc(4,"div",36),a.Jc(5,"mat-icon",37),a.Bd(6,"info"),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit;a.pc(2),a.Cd(n.key),a.pc(3),a.gd("matTooltip",n.description)}}function WD(e,t){if(1&e&&(a.Hc(0),a.Jc(1,"button",31),a.Bd(2),a.Ic(),a.Jc(3,"mat-menu",null,32),a.zd(5,GD,7,2,"button",33),a.Ic(),a.Gc()),2&e){var i=t.$implicit,n=a.nd(4),r=a.ad();a.pc(1),a.gd("matMenuTriggerFor",n),a.pc(1),a.Cd(r.argsInfo[i.key].label),a.pc(3),a.gd("ngForOf",i.value)}}pD=$localize(_templateObject()),fD=$localize(_templateObject2()),mD=$localize(_templateObject3()),gD=$localize(_templateObject4()),vD=$localize(_templateObject5()),bD=$localize(_templateObject6()),_D=$localize(_templateObject7()),yD=$localize(_templateObject8());var qD=["placeholder",$localize(_templateObject9())],$D=function(){return{standalone:!0}};function KD(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"mat-form-field",14),a.Jc(2,"input",38),a.Pc(3,qD),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().secondArg=e})),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(2),a.gd("ngModelOptions",a.id(3,$D))("disabled",!n.secondArgEnabled)("ngModel",n.secondArg)}}var XD,YD,ZD=((YD=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){var i=t?t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").split(" ").filter((function(e){return e.length>0})).join("|"):void 0,n=new RegExp(i,"gi");return t?e.replace(n,(function(e){return"".concat(e,"")})):e}}]),e}()).\u0275fac=function(e){return new(e||YD)},YD.\u0275pipe=a.Cc({name:"highlight",type:YD,pure:!0}),YD),QD=((XD=function(){function e(t,i,n){_classCallCheck(this,e),this.data=t,this.dialogRef=i,this.dialog=n,this.myGroup=new Jo,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new Jo,this.chipCtrl=new Jo,this.availableArgs=null,this.argsByCategory=null,this.argsByKey=null,this.argsInfo=null,this.chipInput="",this.visible=!0,this.selectable=!0,this.removable=!0,this.addOnBlur=!1,this.args_array=null,this.separatorKeysCodes=[13,188]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.data&&(this.modified_args=this.data.initial_args,this.generateArgsArray()),this.getAllPossibleArgs(),this.filteredOptions=this.stateCtrl.valueChanges.pipe(An(""),Object(ri.a)((function(t){return e.filter(t)}))),this.filteredChipOptions=this.chipCtrl.valueChanges.pipe(An(""),Object(ri.a)((function(t){return e.filter(t)})))}},{key:"ngAfterViewInit",value:function(){var e=this;this.autoTrigger.panelClosingActions.subscribe((function(t){e.autoTrigger.activeOption&&(console.log(e.autoTrigger.activeOption.value),e.chipCtrl.setValue(e.autoTrigger.activeOption.value))}))}},{key:"filter",value:function(e){if(this.availableArgs)return this.availableArgs.filter((function(t){return t.key.toLowerCase().includes(e.toLowerCase())}))}},{key:"addArg",value:function(){this.modified_args||(this.modified_args=""),""!==this.modified_args&&(this.modified_args+=",,"),this.modified_args+=this.stateCtrl.value+(this.secondArgEnabled?",,"+this.secondArg:""),this.generateArgsArray()}},{key:"canAddArg",value:function(){return this.stateCtrl.value&&""!==this.stateCtrl.value&&(!this.secondArgEnabled||this.secondArg&&""!==this.secondArg)}},{key:"getFirstArg",value:function(){var e=this;return new Promise((function(t){t(e.stateCtrl.value)}))}},{key:"getValueAsync",value:function(e){return new Promise((function(t){t(e)}))}},{key:"getAllPossibleArgs",value:function(){var e=xD,t=Object.keys(e).map((function(t){return e[t]})),i=[].concat.apply([],t),n=i.reduce((function(e,t){return e[t.key]=t,e}),{});this.argsByKey=n,this.availableArgs=i,this.argsByCategory=e,this.argsInfo=CD}},{key:"setFirstArg",value:function(e){this.stateCtrl.setValue(e)}},{key:"add",value:function(e){var t=e.input,i=e.value;i&&0!==i.trim().length&&(this.args_array.push(i),this.modified_args.length>0&&(this.modified_args+=",,"),this.modified_args+=i,t&&(t.value=""))}},{key:"remove",value:function(e){this.args_array.splice(e,1),this.modified_args=this.args_array.join(",,")}},{key:"generateArgsArray",value:function(){this.args_array=0!==this.modified_args.trim().length?this.modified_args.split(",,"):[]}},{key:"drop",value:function(e){BC(this.args_array,e.previousIndex,e.currentIndex),this.modified_args=this.args_array.join(",,")}}],[{key:"forRoot",value:function(){return{ngModule:e,providers:[]}}}]),e}()).\u0275fac=function(e){return new(e||XD)(a.Dc(Oh),a.Dc(Ih),a.Dc(Th))},XD.\u0275cmp=a.xc({type:XD,selectors:[["app-arg-modifier-dialog"]],viewQuery:function(e,t){var i;1&e&&a.Fd(BD,!0,hh),2&e&&a.md(i=a.Xc())&&(t.autoTrigger=i.first)},features:[a.oc([ZD])],decls:55,vars:25,consts:[["mat-dialog-title",""],[1,"container"],[1,"row"],[1,"col-12"],[1,"mat-elevation-z6"],["aria-label","Args array","cdkDropList","","cdkDropListDisabled","","cdkDropListOrientation","horizontal",1,"example-chip",3,"cdkDropListDropped"],["chipList",""],["cdkDrag","",3,"matTooltip","selectable","removable","removed",4,"ngFor","ngForOf"],["color","accent",2,"width","100%"],["matInput","",2,"width","100%",3,"formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["chipper",""],["autochip","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-elevation-z6","my-2"],["color","accent",2,"width","75%"],["matInput","","placeholder","Arg",3,"matAutocomplete","formControl"],["auto","matAutocomplete"],["argsByCategoryMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-stroked-button","",2,"margin-bottom","15px",3,"matMenuTriggerFor"],["color","accent",3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngIf"],["mat-stroked-button","","color","accent",3,"disabled","click"],["mat-button","",3,"mat-dialog-close"],["mat-button","","color","accent",3,"mat-dialog-close"],["cdkDrag","",3,"matTooltip","selectable","removable","removed"],["matChipRemove","",4,"ngIf"],["matChipRemove",""],[3,"value"],[3,"innerHTML"],["mat-icon-button","",2,"float","right",3,"matTooltip"],["mat-menu-item","",3,"matMenuTriggerFor"],["subMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[2,"display","inline-block"],[1,"info-menu-icon"],[3,"matTooltip"],["matInput","",3,"ngModelOptions","disabled","ngModel","ngModelChange",6,"placeholder"]],template:function(e,t){if(1&e&&(a.Jc(0,"h4",0),a.Nc(1,pD),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div",1),a.Jc(4,"div",2),a.Jc(5,"div",3),a.Jc(6,"mat-card",4),a.Jc(7,"h6"),a.Nc(8,fD),a.Ic(),a.Jc(9,"mat-chip-list",5,6),a.Wc("cdkDropListDropped",(function(e){return t.drop(e)})),a.zd(11,VD,3,5,"mat-chip",7),a.Ic(),a.Jc(12,"mat-form-field",8),a.Jc(13,"input",9,10),a.Wc("matChipInputTokenEnd",(function(e){return t.add(e)})),a.Ic(),a.Ic(),a.Jc(15,"mat-autocomplete",null,11),a.zd(17,HD,6,6,"mat-option",12),a.bd(18,"async"),a.Ic(),a.Ic(),a.Ic(),a.Jc(19,"div",3),a.Jc(20,"mat-card",13),a.Jc(21,"h6"),a.Nc(22,mD),a.Ic(),a.Jc(23,"form"),a.Jc(24,"div"),a.Jc(25,"mat-form-field",14),a.Ec(26,"input",15),a.Ic(),a.Jc(27,"mat-autocomplete",null,16),a.zd(29,UD,6,6,"mat-option",12),a.bd(30,"async"),a.Ic(),a.Jc(31,"div"),a.Jc(32,"mat-menu",null,17),a.zd(34,WD,6,3,"ng-container",18),a.bd(35,"keyvalue"),a.Ic(),a.Jc(36,"button",19),a.Hc(37),a.Nc(38,gD),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(39,"div"),a.Jc(40,"mat-checkbox",20),a.Wc("ngModelChange",(function(e){return t.secondArgEnabled=e})),a.Hc(41),a.Nc(42,vD),a.Gc(),a.Ic(),a.Ic(),a.zd(43,KD,4,4,"div",21),a.Ic(),a.Jc(44,"div"),a.Jc(45,"button",22),a.Wc("click",(function(){return t.addArg()})),a.Hc(46),a.Nc(47,bD),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(48,"mat-dialog-actions"),a.Jc(49,"button",23),a.Hc(50),a.Nc(51,_D),a.Gc(),a.Ic(),a.Jc(52,"button",24),a.Hc(53),a.Nc(54,yD),a.Gc(),a.Ic(),a.Ic()),2&e){var i=a.nd(10),n=a.nd(16),r=a.nd(28),o=a.nd(33);a.pc(11),a.gd("ngForOf",t.args_array),a.pc(2),a.gd("formControl",t.chipCtrl)("matAutocomplete",n)("matChipInputFor",i)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes)("matChipInputAddOnBlur",t.addOnBlur),a.pc(4),a.gd("ngForOf",a.cd(18,18,t.filteredChipOptions)),a.pc(9),a.gd("matAutocomplete",r)("formControl",t.stateCtrl),a.pc(3),a.gd("ngForOf",a.cd(30,20,t.filteredOptions)),a.pc(5),a.gd("ngForOf",a.cd(35,22,t.argsByCategory)),a.pc(2),a.gd("matMenuTriggerFor",o),a.pc(4),a.gd("ngModelOptions",a.id(24,$D))("ngModel",t.secondArgEnabled),a.pc(3),a.gd("ngIf",t.secondArgEnabled),a.pc(2),a.gd("disabled",!t.canAddArg()),a.pc(4),a.gd("mat-dialog-close",null),a.pc(3),a.gd("mat-dialog-close",t.modified_args)}},directives:[Mh,Lh,Nc,LD,xx,yt.s,Ud,Pm,_r,hh,FD,Dr,as,sh,ts,Er,Wo,Lg,Za,zg,Yc,es,yt.t,jh,Rh,ED,fx,hv,_m,AD,za,Eg],pipes:[yt.b,yt.l,ZD],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),XD),eE=["fileSelector"];function tE(e,t){if(1&e&&(a.Jc(0,"div",8),a.Bd(1),a.Ic()),2&e){var i=a.ad(2);a.pc(1),a.Cd(i.dropZoneLabel)}}function iE(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"input",9),a.Wc("click",(function(e){return a.rd(i),a.ad(2).openFileSelector(e)})),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(1),a.hd("value",n.browseBtnLabel),a.gd("className",n.browseBtnClassName)}}function nE(e,t){if(1&e&&(a.zd(0,tE,2,1,"div",6),a.zd(1,iE,2,2,"div",7)),2&e){var i=a.ad();a.gd("ngIf",i.dropZoneLabel),a.pc(1),a.gd("ngIf",i.showBrowseBtn)}}function aE(e,t){}var rE,oE,sE,cE,lE,uE,dE,hE=function(e){return{openFileSelector:e}},pE=function e(t,i){_classCallCheck(this,e),this.relativePath=t,this.fileEntry=i},fE=((rE=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||rE)(a.Dc(a.Y))},rE.\u0275dir=a.yc({type:rE,selectors:[["","ngx-file-drop-content-tmp",""]]}),rE),mE=function(e,t,i,n){var a,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(t,i,o):a(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},gE=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},vE=((sE=function(){function e(t,i){var n=this;_classCallCheck(this,e),this.zone=t,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new a.u,this.onFileOver=new a.u,this.onFileLeave=new a.u,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=function(e){n.fileSelector&&n.fileSelector.nativeElement&&n.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",(function(e){n.globalDraggingInProgress=!0})),this.globalDragEndListener=this.renderer.listen("document","dragend",(function(e){n.globalDraggingInProgress=!1}))}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}},{key:"onDragOver",value:function(e){this.useDragEnter?this.preventAndStop(e):this.isDropzoneDisabled()||this.useDragEnter||(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}},{key:"onDragEnter",value:function(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}},{key:"onDragLeave",value:function(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}},{key:"dropFiles",value:function(e){var t;!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)&&(e.dataTransfer.dropEffect="copy",t=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(t))}},{key:"uploadFiles",value:function(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}},{key:"checkFiles",value:function(e){for(var t=this,i=function(i){var n=e[i],a=null;if(t.canGetAsEntry(n)&&(a=n.webkitGetAsEntry()),a)if(a.isFile){var r=new pE(a.name,a);t.addToQueue(r)}else a.isDirectory&&t.traverseFileTree(a,a.name);else if(n){var o={name:n.name,isDirectory:!1,isFile:!0,file:function(e){e(n)}},s=new pE(o.name,o);t.addToQueue(s)}},n=0;n0&&0===t.numOfActiveReadEntries){var e=t.files;t.files=[],t.onFileDrop.emit(e)}}))}},{key:"traverseFileTree",value:function(e,t){var i=this;if(e.isFile){var n=new pE(t,e);this.files.push(n)}else{t+="/";var a=e.createReader(),r=[];!function n(){i.numOfActiveReadEntries++,a.readEntries((function(a){if(a.length)r=r.concat(a),n();else if(0===r.length){var o=new pE(t,e);i.zone.run((function(){i.addToQueue(o)}))}else for(var s=function(e){i.zone.run((function(){i.traverseFileTree(r[e],t+r[e].name)}))},c=0;c1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||RE)(a.Dc(YO),a.Dc(A_))},RE.\u0275cmp=a.xc({type:RE,selectors:[["app-update-progress-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-button","","mat-dialog-close",""],[2,"margin-bottom","8px"],["mode","indeterminate",4,"ngIf"],["mode","determinate","value","100",4,"ngIf"],["style","margin-top: 4px; font-size: 13px;",4,"ngIf"],["mode","indeterminate"],["mode","determinate","value","100"],[2,"margin-top","4px","font-size","13px"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Nc(1,CE),a.Ic(),a.Jc(2,"mat-dialog-content"),a.zd(3,PE,8,6,"div",1),a.Ic(),a.Jc(4,"mat-dialog-actions"),a.Jc(5,"button",2),a.Hc(6),a.Nc(7,xE),a.Gc(),a.Ic(),a.Ic()),2&e&&(a.pc(3),a.gd("ngIf",t.updateStatus))},directives:[Mh,Lh,yt.t,jh,Za,Rh,_v],styles:[""]}),RE);function jE(e,t){if(1&e&&(a.Jc(0,"mat-option",6),a.Bd(1),a.Ic()),2&e){var i=t.$implicit,n=a.ad(2);a.gd("value",i.tag_name),a.pc(1),a.Dd(" ",i.tag_name+(i===n.latestStableRelease?" - Latest Stable":"")+(i.tag_name===n.CURRENT_VERSION?" - Current Version":"")," ")}}function FE(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",3),a.Jc(1,"mat-form-field"),a.Jc(2,"mat-select",4),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().selectedVersion=e})),a.zd(3,jE,2,2,"mat-option",5),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(2),a.gd("ngModel",n.selectedVersion),a.pc(1),a.gd("ngForOf",n.availableVersionsFiltered)}}function NE(e,t){1&e&&(a.Hc(0),a.Bd(1,"Upgrade to"),a.Gc())}function zE(e,t){1&e&&(a.Hc(0),a.Bd(1,"Downgrade to"),a.Gc())}function BE(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",3),a.Jc(1,"button",7),a.Wc("click",(function(){return a.rd(i),a.ad().updateServer()})),a.Jc(2,"mat-icon"),a.Bd(3,"update"),a.Ic(),a.Bd(4,"\xa0\xa0 "),a.zd(5,NE,2,0,"ng-container",8),a.zd(6,zE,2,0,"ng-container",8),a.Bd(7),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(5),a.gd("ngIf",n.selectedVersion>n.CURRENT_VERSION),a.pc(1),a.gd("ngIf",n.selectedVersion=e.versionsShowLimit)break;e.availableVersionsFiltered.push(n)}}))}},{key:"openUpdateProgressDialog",value:function(){this.dialog.open(LE,{minWidth:"300px",minHeight:"200px"})}}]),e}()).\u0275fac=function(e){return new(e||JE)(a.Dc(YO),a.Dc(Th))},JE.\u0275cmp=a.xc({type:JE,selectors:[["app-updater"]],decls:6,vars:2,consts:[[2,"display","block"],[2,"display","inline-block"],["style","display: inline-block; margin-left: 15px;",4,"ngIf"],[2,"display","inline-block","margin-left","15px"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent","mat-raised-button","",3,"click"],[4,"ngIf"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Hc(2),a.Nc(3,ME),a.Gc(),a.Ic(),a.zd(4,FE,4,2,"div",2),a.zd(5,BE,8,3,"div",2),a.Ic()),2&e&&(a.pc(4),a.gd("ngIf",t.availableVersions),a.pc(1),a.gd("ngIf",t.selectedVersion&&t.selectedVersion!==t.CURRENT_VERSION))},directives:[yt.t,Ud,mb,Dr,es,yt.s,za,Za,_m],styles:[""]}),JE);VE=$localize(_templateObject17());var UE,GE,WE=["placeholder",$localize(_templateObject18())],qE=["placeholder",$localize(_templateObject19())];UE=$localize(_templateObject20()),GE=$localize(_templateObject21());var $E,KE,XE,YE,ZE=(($E=function(){function e(t,i){_classCallCheck(this,e),this.postsService=t,this.dialogRef=i,this.usernameInput="",this.passwordInput=""}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"createUser",value:function(){var e=this;this.postsService.register(this.usernameInput,this.passwordInput).subscribe((function(t){e.dialogRef.close(t.user?t.user:{error:"Unknown error"})}),(function(t){e.dialogRef.close({error:t})}))}}]),e}()).\u0275fac=function(e){return new(e||$E)(a.Dc(YO),a.Dc(Ih))},$E.\u0275cmp=a.xc({type:$E,selectors:[["app-add-user-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["matInput","","type","password",3,"ngModel","ngModelChange",6,"placeholder"],["color","accent","mat-raised-button","",3,"click"],["mat-dialog-close","","mat-button",""]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Nc(1,VE),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div"),a.Jc(4,"mat-form-field"),a.Jc(5,"input",1),a.Pc(6,WE),a.Wc("ngModelChange",(function(e){return t.usernameInput=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(7,"div"),a.Jc(8,"mat-form-field"),a.Jc(9,"input",2),a.Pc(10,qE),a.Wc("ngModelChange",(function(e){return t.passwordInput=e})),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(11,"mat-dialog-actions"),a.Jc(12,"button",3),a.Wc("click",(function(){return t.createUser()})),a.Hc(13),a.Nc(14,UE),a.Gc(),a.Ic(),a.Jc(15,"button",4),a.Hc(16),a.Nc(17,GE),a.Gc(),a.Ic(),a.Ic()),2&e&&(a.pc(5),a.gd("ngModel",t.usernameInput),a.pc(4),a.gd("ngModel",t.passwordInput))},directives:[Mh,Lh,Ud,Pm,_r,Dr,es,jh,Za,Rh],styles:[""]}),$E);function QE(e,t){if(1&e&&(a.Jc(0,"h4",3),a.Hc(1),a.Nc(2,XE),a.Gc(),a.Bd(3),a.Ic()),2&e){var i=a.ad();a.pc(3),a.Dd("\xa0-\xa0",i.user.name,"")}}KE=$localize(_templateObject22()),XE=$localize(_templateObject23()),YE=$localize(_templateObject24());var eA,tA,iA,nA,aA=["placeholder",$localize(_templateObject25())];function rA(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-list-item",8),a.Jc(1,"h3",9),a.Bd(2),a.Ic(),a.Jc(3,"span",9),a.Jc(4,"mat-radio-group",10),a.Wc("change",(function(e){a.rd(i);var n=t.$implicit;return a.ad(2).changeUserPermissions(e,n)}))("ngModelChange",(function(e){a.rd(i);var n=t.$implicit;return a.ad(2).permissions[n]=e})),a.Jc(5,"mat-radio-button",11),a.Hc(6),a.Nc(7,tA),a.Gc(),a.Ic(),a.Jc(8,"mat-radio-button",12),a.Hc(9),a.Nc(10,iA),a.Gc(),a.Ic(),a.Jc(11,"mat-radio-button",13),a.Hc(12),a.Nc(13,nA),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad(2);a.pc(2),a.Cd(r.permissionToLabel[n]?r.permissionToLabel[n]:n),a.pc(2),a.gd("disabled","settings"===n&&r.postsService.user.uid===r.user.uid)("ngModel",r.permissions[n]),a.qc("aria-label","Give user permission for "+n)}}function oA(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-dialog-content"),a.Jc(1,"p"),a.Hc(2),a.Nc(3,YE),a.Gc(),a.Bd(4),a.Ic(),a.Jc(5,"div"),a.Jc(6,"mat-form-field",4),a.Jc(7,"input",5),a.Pc(8,aA),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().newPasswordInput=e})),a.Ic(),a.Ic(),a.Jc(9,"button",6),a.Wc("click",(function(){return a.rd(i),a.ad().setNewPassword()})),a.Hc(10),a.Nc(11,eA),a.Gc(),a.Ic(),a.Ic(),a.Jc(12,"div"),a.Jc(13,"mat-list"),a.zd(14,rA,14,4,"mat-list-item",7),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(4),a.Dd("\xa0",n.user.uid,""),a.pc(3),a.gd("ngModel",n.newPasswordInput),a.pc(2),a.gd("disabled",0===n.newPasswordInput.length),a.pc(5),a.gd("ngForOf",n.available_permissions)}}eA=$localize(_templateObject26()),tA=$localize(_templateObject27()),iA=$localize(_templateObject28()),nA=$localize(_templateObject29());var sA,cA,lA,uA,dA,hA=((sA=function(){function e(t,i){_classCallCheck(this,e),this.postsService=t,this.data=i,this.user=null,this.newPasswordInput="",this.available_permissions=null,this.permissions=null,this.permissionToLabel={filemanager:"File manager",settings:"Settings access",subscriptions:"Subscriptions",sharing:"Share files",advanced_download:"Use advanced download mode",downloads_manager:"Use downloads manager"},this.settingNewPassword=!1,this.data&&(this.user=this.data.user,this.available_permissions=this.postsService.available_permissions,this.parsePermissions())}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"parsePermissions",value:function(){this.permissions={};for(var e=0;e-1){var t=this.indexOfUser(e);this.editObject=this.users[t],this.constructedObject.name=this.users[t].name,this.constructedObject.uid=this.users[t].uid,this.constructedObject.role=this.users[t].role}}},{key:"disableEditMode",value:function(){this.editObject=null}},{key:"uidInUserList",value:function(e){for(var t=0;te.name}));for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||BA)(a.Dc(YO),a.Dc(A_),a.Dc(Th),a.Dc(Ih))},BA.\u0275cmp=a.xc({type:BA,selectors:[["app-modify-users"]],viewQuery:function(e,t){var i;1&e&&(a.Fd(sk,!0),a.Fd(vk,!0)),2&e&&(a.md(i=a.Xc())&&(t.paginator=i.first),a.md(i=a.Xc())&&(t.sort=i.first))},inputs:{pageSize:"pageSize"},decls:4,vars:2,consts:[[4,"ngIf","ngIfElse"],[1,"centered",2,"position","absolute"],["loading",""],[2,"padding","15px"],[1,"row"],[1,"table","table-responsive","px-5","pb-4","pt-2"],[1,"example-header"],["matInput","","placeholder","Search",3,"keyup"],[1,"example-container","mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","role"],["matColumnDef","actions"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],["paginator",""],["color","primary","mat-raised-button","",2,"float","left","top","-45px","left","15px",3,"disabled","click"],["color","primary","mat-raised-button","",1,"edit-role",3,"matMenuTriggerFor"],["edit_roles_menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-sort-header",""],["noteditingname",""],[2,"width","80%"],["matInput","","type","text",2,"font-size","12px",3,"ngModel","ngModelChange"],["noteditingemail",""],[3,"ngModel","ngModelChange"],["value","admin"],["value","user"],["notediting",""],["mat-icon-button","","matTooltip","Manage user",3,"disabled","click"],["mat-icon-button","","matTooltip","Delete user",3,"disabled","click"],["mat-icon-button","","color","primary","matTooltip","Finish editing user",3,"click"],["mat-icon-button","","matTooltip","Cancel editing user",3,"click"],["mat-icon-button","","matTooltip","Edit user",3,"click"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(a.zd(0,NA,32,9,"div",0),a.Jc(1,"div",1),a.zd(2,zA,1,0,"ng-template",null,2,a.Ad),a.Ic()),2&e){var i=a.nd(3);a.gd("ngIf",t.dataSource)("ngIfElse",i)}},directives:[yt.t,Ud,Pm,Xw,vk,aC,eC,Zw,lC,pC,sk,Za,zg,Lg,yt.s,oC,xk,cC,_r,Dr,es,mb,za,hv,_m,mC,_C,Eg,jv],styles:[".edit-role[_ngcontent-%COMP%]{position:relative;top:-50px;left:35px}"]}),BA);function VA(e){return null===e||null!==e.match(/^ *$/)}var HA,UA,GA=["placeholder",$localize(_templateObject39())],WA=((HA=function(){function e(t){_classCallCheck(this,e),this.postsService=t,this.logs=null}return _createClass(e,[{key:"ngOnInit",value:function(){this.getLogs()}},{key:"getLogs",value:function(){var e=this;this.postsService.getLogs().subscribe((function(t){t.logs?e.logs=t.logs:e.postsService.openSnackBar("Failed to retrieve logs!")}),(function(t){console.error(t),e.postsService.openSnackBar("Failed to retrieve logs!")}))}}]),e}()).\u0275fac=function(e){return new(e||HA)(a.Dc(YO))},HA.\u0275cmp=a.xc({type:HA,selectors:[["app-logs-viewer"]],decls:3,vars:1,consts:[[2,"height","100%"],["matInput","","readonly","",2,"height","100%",3,"ngModel","ngModelChange",6,"placeholder"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.Jc(1,"textarea",1),a.Pc(2,GA),a.Wc("ngModelChange",(function(e){return t.logs=e})),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.gd("ngModel",t.logs))},directives:[Pm,_r,Dr,es],styles:[""]}),HA);UA=$localize(_templateObject40());var qA,$A,KA=["label",$localize(_templateObject41())],XA=["label",$localize(_templateObject42())],YA=["label",$localize(_templateObject43())],ZA=["label",$localize(_templateObject44())];qA=$localize(_templateObject45()),$A=$localize(_templateObject46()),$A=a.Rc($A,{VAR_SELECT:"\ufffd0\ufffd"});var QA,eT=["placeholder",$localize(_templateObject47())];QA=$localize(_templateObject48());var tT,iT,nT=["placeholder",$localize(_templateObject49())];function aT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field",13),a.Jc(4,"input",14),a.Pc(5,eT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Host.url=e})),a.Ic(),a.Jc(6,"mat-hint"),a.Hc(7),a.Nc(8,QA),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(9,"div",15),a.Jc(10,"mat-form-field",13),a.Jc(11,"input",14),a.Pc(12,nT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Host.port=e})),a.Ic(),a.Jc(13,"mat-hint"),a.Hc(14),a.Nc(15,tT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(4),a.gd("ngModel",n.new_config.Host.url),a.pc(7),a.gd("ngModel",n.new_config.Host.port)}}tT=$localize(_templateObject50()),iT=$localize(_templateObject51());var rT,oT,sT=["placeholder",$localize(_templateObject52())];function cT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Advanced.multi_user_mode=e})),a.Hc(4),a.Nc(5,iT),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",17),a.Jc(7,"mat-form-field",18),a.Jc(8,"input",19),a.Pc(9,sT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Users.base_path=e})),a.Ic(),a.Jc(10,"mat-hint"),a.Hc(11),a.Nc(12,rT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Advanced.multi_user_mode),a.pc(5),a.gd("disabled",!n.new_config.Advanced.multi_user_mode)("ngModel",n.new_config.Users.base_path)}}rT=$localize(_templateObject53()),oT=$localize(_templateObject54());var lT,uT=["placeholder",$localize(_templateObject55())],dT=["placeholder",$localize(_templateObject56())];function hT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Encryption["use-encryption"]=e})),a.Hc(4),a.Nc(5,oT),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",20),a.Jc(7,"mat-form-field",13),a.Jc(8,"input",21),a.Pc(9,uT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Encryption["cert-file-path"]=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(10,"div",20),a.Jc(11,"mat-form-field",13),a.Jc(12,"input",21),a.Pc(13,dT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Encryption["key-file-path"]=e})),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Encryption["use-encryption"]),a.pc(5),a.gd("disabled",!n.new_config.Encryption["use-encryption"])("ngModel",n.new_config.Encryption["cert-file-path"]),a.pc(4),a.gd("disabled",!n.new_config.Encryption["use-encryption"])("ngModel",n.new_config.Encryption["key-file-path"])}}lT=$localize(_templateObject57());var pT,fT=["placeholder",$localize(_templateObject58())];pT=$localize(_templateObject59());var mT,gT,vT,bT,_T,yT,kT,wT,CT,xT,ST=["placeholder",$localize(_templateObject60())];function IT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Subscriptions.allow_subscriptions=e})),a.Hc(4),a.Nc(5,lT),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",20),a.Jc(7,"mat-form-field",13),a.Jc(8,"input",21),a.Pc(9,fT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Subscriptions.subscriptions_base_path=e})),a.Ic(),a.Jc(10,"mat-hint"),a.Hc(11),a.Nc(12,pT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(13,"div",22),a.Jc(14,"mat-form-field",13),a.Jc(15,"input",21),a.Pc(16,ST),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Subscriptions.subscriptions_check_interval=e})),a.Ic(),a.Jc(17,"mat-hint"),a.Hc(18),a.Nc(19,mT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(20,"div",23),a.Jc(21,"mat-checkbox",24),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Subscriptions.subscriptions_use_youtubedl_archive=e})),a.Hc(22),a.Nc(23,gT),a.Gc(),a.Ic(),a.Jc(24,"p"),a.Jc(25,"a",25),a.Hc(26),a.Nc(27,vT),a.Gc(),a.Ic(),a.Bd(28,"\xa0"),a.Hc(29),a.Nc(30,bT),a.Gc(),a.Ic(),a.Jc(31,"p"),a.Hc(32),a.Nc(33,_T),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Subscriptions.allow_subscriptions),a.pc(5),a.gd("disabled",!n.new_config.Subscriptions.allow_subscriptions)("ngModel",n.new_config.Subscriptions.subscriptions_base_path),a.pc(7),a.gd("disabled",!n.new_config.Subscriptions.allow_subscriptions)("ngModel",n.new_config.Subscriptions.subscriptions_check_interval),a.pc(6),a.gd("disabled",!n.new_config.Subscriptions.allow_subscriptions)("ngModel",n.new_config.Subscriptions.subscriptions_use_youtubedl_archive)}}function OT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field"),a.Jc(4,"mat-label"),a.Hc(5),a.Nc(6,yT),a.Gc(),a.Ic(),a.Jc(7,"mat-select",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Themes.default_theme=e})),a.Jc(8,"mat-option",26),a.Hc(9),a.Nc(10,kT),a.Gc(),a.Ic(),a.Jc(11,"mat-option",27),a.Hc(12),a.Nc(13,wT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(14,"div",28),a.Jc(15,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Themes.allow_theme_change=e})),a.Hc(16),a.Nc(17,CT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(7),a.gd("ngModel",n.new_config.Themes.default_theme),a.pc(8),a.gd("ngModel",n.new_config.Themes.allow_theme_change)}}function DT(e,t){if(1&e&&(a.Jc(0,"mat-option",32),a.Bd(1),a.Ic()),2&e){var i=t.$implicit,n=a.ad(3);a.gd("value",i),a.pc(1),a.Dd(" ",n.all_locales[i].nativeName," ")}}function ET(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field",29),a.Jc(4,"mat-label"),a.Hc(5),a.Nc(6,xT),a.Gc(),a.Ic(),a.Jc(7,"mat-select",30),a.Wc("selectionChange",(function(e){return a.rd(i),a.ad(2).localeSelectChanged(e.value)}))("valueChange",(function(e){return a.rd(i),a.ad(2).initialLocale=e})),a.zd(8,DT,2,2,"mat-option",31),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(7),a.gd("value",n.initialLocale),a.pc(1),a.gd("ngForOf",n.supported_locales)}}function AT(e,t){if(1&e&&(a.zd(0,aT,16,2,"div",9),a.Ec(1,"mat-divider"),a.zd(2,cT,13,3,"div",9),a.Ec(3,"mat-divider"),a.zd(4,hT,14,5,"div",9),a.Ec(5,"mat-divider"),a.zd(6,IT,34,7,"div",9),a.Ec(7,"mat-divider"),a.zd(8,OT,18,2,"div",9),a.Ec(9,"mat-divider"),a.zd(10,ET,9,2,"div",9)),2&e){var i=a.ad();a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config)}}mT=$localize(_templateObject61()),gT=$localize(_templateObject62()),vT=$localize(_templateObject63()),bT=$localize(_templateObject64()),_T=$localize(_templateObject65()),yT=$localize(_templateObject66()),kT=$localize(_templateObject67()),wT=$localize(_templateObject68()),CT=$localize(_templateObject69()),xT=$localize(_templateObject70());var TT,PT=["placeholder",$localize(_templateObject71())];TT=$localize(_templateObject72());var RT,MT=["placeholder",$localize(_templateObject73())];RT=$localize(_templateObject74());var LT,jT,FT,NT=["placeholder",$localize(_templateObject75())];function zT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field",13),a.Jc(4,"input",14),a.Pc(5,PT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Downloader["path-audio"]=e})),a.Ic(),a.Jc(6,"mat-hint"),a.Hc(7),a.Nc(8,TT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(9,"div",22),a.Jc(10,"mat-form-field",13),a.Jc(11,"input",14),a.Pc(12,MT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Downloader["path-video"]=e})),a.Ic(),a.Jc(13,"mat-hint"),a.Hc(14),a.Nc(15,RT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(16,"div",22),a.Jc(17,"mat-form-field",33),a.Jc(18,"textarea",34),a.Pc(19,NT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Downloader.custom_args=e})),a.Ic(),a.Jc(20,"mat-hint"),a.Hc(21),a.Nc(22,LT),a.Gc(),a.Ic(),a.Jc(23,"button",35),a.Wc("click",(function(){return a.rd(i),a.ad(2).openArgsModifierDialog()})),a.Jc(24,"mat-icon"),a.Bd(25,"edit"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(26,"div",23),a.Jc(27,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Downloader.use_youtubedl_archive=e})),a.Hc(28),a.Nc(29,jT),a.Gc(),a.Ic(),a.Jc(30,"p"),a.Bd(31,"Note: This setting only applies to downloads on the Home page. If you would like to use youtube-dl archive functionality in subscriptions, head down to the Subscriptions section."),a.Ic(),a.Ic(),a.Jc(32,"div",12),a.Jc(33,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Downloader.safe_download_override=e})),a.Hc(34),a.Nc(35,FT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(4),a.gd("ngModel",n.new_config.Downloader["path-audio"]),a.pc(7),a.gd("ngModel",n.new_config.Downloader["path-video"]),a.pc(7),a.gd("ngModel",n.new_config.Downloader.custom_args),a.pc(9),a.gd("ngModel",n.new_config.Downloader.use_youtubedl_archive),a.pc(6),a.gd("ngModel",n.new_config.Downloader.safe_download_override)}}function BT(e,t){if(1&e&&a.zd(0,zT,36,5,"div",9),2&e){var i=a.ad();a.gd("ngIf",i.new_config)}}LT=$localize(_templateObject76()),jT=$localize(_templateObject77()),FT=$localize(_templateObject78());var JT,VT,HT,UT,GT,WT,qT,$T,KT=["placeholder",$localize(_templateObject79())];function XT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field",13),a.Jc(4,"input",14),a.Pc(5,KT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.title_top=e})),a.Ic(),a.Ec(6,"mat-hint"),a.Ic(),a.Ic(),a.Jc(7,"div",20),a.Jc(8,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.file_manager_enabled=e})),a.Hc(9),a.Nc(10,JT),a.Gc(),a.Ic(),a.Ic(),a.Jc(11,"div",20),a.Jc(12,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.enable_downloads_manager=e})),a.Hc(13),a.Nc(14,VT),a.Gc(),a.Ic(),a.Ic(),a.Jc(15,"div",20),a.Jc(16,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.allow_quality_select=e})),a.Hc(17),a.Nc(18,HT),a.Gc(),a.Ic(),a.Ic(),a.Jc(19,"div",20),a.Jc(20,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.download_only_mode=e})),a.Hc(21),a.Nc(22,UT),a.Gc(),a.Ic(),a.Ic(),a.Jc(23,"div",20),a.Jc(24,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.allow_multi_download_mode=e})),a.Hc(25),a.Nc(26,GT),a.Gc(),a.Ic(),a.Ic(),a.Jc(27,"div",20),a.Jc(28,"mat-checkbox",24),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.settings_pin_required=e})),a.Hc(29),a.Nc(30,WT),a.Gc(),a.Ic(),a.Jc(31,"button",36),a.Wc("click",(function(){return a.rd(i),a.ad(2).setNewPin()})),a.Hc(32),a.Nc(33,qT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(4),a.gd("ngModel",n.new_config.Extra.title_top),a.pc(4),a.gd("ngModel",n.new_config.Extra.file_manager_enabled),a.pc(4),a.gd("ngModel",n.new_config.Extra.enable_downloads_manager),a.pc(4),a.gd("ngModel",n.new_config.Extra.allow_quality_select),a.pc(4),a.gd("ngModel",n.new_config.Extra.download_only_mode),a.pc(4),a.gd("ngModel",n.new_config.Extra.allow_multi_download_mode),a.pc(4),a.gd("disabled",n.new_config.Advanced.multi_user_mode)("ngModel",n.new_config.Extra.settings_pin_required),a.pc(3),a.gd("disabled",!n.new_config.Extra.settings_pin_required)}}JT=$localize(_templateObject80()),VT=$localize(_templateObject81()),HT=$localize(_templateObject82()),UT=$localize(_templateObject83()),GT=$localize(_templateObject84()),WT=$localize(_templateObject85()),qT=$localize(_templateObject86()),$T=$localize(_templateObject87());var YT,ZT,QT,eP=["placeholder",$localize(_templateObject88())];function tP(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.API.use_API_key=e})),a.Hc(4),a.Nc(5,$T),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",37),a.Jc(7,"div",38),a.Jc(8,"mat-form-field",13),a.Jc(9,"input",19),a.Pc(10,eP),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.API.API_key=e})),a.Ic(),a.Jc(11,"mat-hint"),a.Jc(12,"a",39),a.Hc(13),a.Nc(14,YT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(15,"div",40),a.Jc(16,"button",41),a.Wc("click",(function(){return a.rd(i),a.ad(2).generateAPIKey()})),a.Hc(17),a.Nc(18,ZT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.API.use_API_key),a.pc(6),a.gd("disabled",!n.new_config.API.use_API_key)("ngModel",n.new_config.API.API_key)}}YT=$localize(_templateObject89()),ZT=$localize(_templateObject90()),QT=$localize(_templateObject91());var iP,nP,aP,rP,oP,sP,cP,lP,uP,dP,hP,pP,fP,mP,gP,vP,bP=["placeholder",$localize(_templateObject92())];function _P(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.API.use_youtube_API=e})),a.Hc(4),a.Nc(5,QT),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",37),a.Jc(7,"mat-form-field",13),a.Jc(8,"input",19),a.Pc(9,bP),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.API.youtube_API_key=e})),a.Ic(),a.Jc(10,"mat-hint"),a.Jc(11,"a",42),a.Hc(12),a.Nc(13,iP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.API.use_youtube_API),a.pc(5),a.gd("disabled",!n.new_config.API.use_youtube_API)("ngModel",n.new_config.API.youtube_API_key)}}function yP(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"h6"),a.Bd(4,"Chrome"),a.Ic(),a.Jc(5,"p"),a.Jc(6,"a",43),a.Hc(7),a.Nc(8,nP),a.Gc(),a.Ic(),a.Bd(9,"\xa0"),a.Hc(10),a.Nc(11,aP),a.Gc(),a.Ic(),a.Jc(12,"p"),a.Hc(13),a.Nc(14,rP),a.Gc(),a.Ic(),a.Ec(15,"mat-divider",44),a.Ic(),a.Jc(16,"div",20),a.Jc(17,"h6"),a.Bd(18,"Firefox"),a.Ic(),a.Jc(19,"p"),a.Jc(20,"a",45),a.Hc(21),a.Nc(22,oP),a.Gc(),a.Ic(),a.Bd(23,"\xa0"),a.Hc(24),a.Nc(25,sP),a.Gc(),a.Ic(),a.Jc(26,"p"),a.Jc(27,"a",46),a.Hc(28),a.Nc(29,cP),a.Gc(),a.Ic(),a.Bd(30,"\xa0"),a.Hc(31),a.Nc(32,lP),a.Gc(),a.Ic(),a.Ec(33,"mat-divider",44),a.Ic(),a.Jc(34,"div",20),a.Jc(35,"h6"),a.Bd(36,"Bookmarklet"),a.Ic(),a.Jc(37,"p"),a.Hc(38),a.Nc(39,uP),a.Gc(),a.Ic(),a.Jc(40,"mat-checkbox",47),a.Wc("change",(function(e){return a.rd(i),a.ad(2).bookmarkletAudioOnlyChanged(e)})),a.Hc(41),a.Nc(42,dP),a.Gc(),a.Ic(),a.Jc(43,"p"),a.Jc(44,"a",48),a.Bd(45,"YTDL-Bookmarklet"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(44),a.gd("href",n.generated_bookmarklet_code,a.td)}}function kP(e,t){if(1&e&&(a.zd(0,XT,34,9,"div",9),a.Ec(1,"mat-divider"),a.zd(2,tP,19,3,"div",9),a.Ec(3,"mat-divider"),a.zd(4,_P,14,3,"div",9),a.Ec(5,"mat-divider"),a.zd(6,yP,46,1,"div",9)),2&e){var i=a.ad();a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config)}}function wP(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Advanced.use_default_downloading_agent=e})),a.Hc(4),a.Nc(5,hP),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",20),a.Jc(7,"mat-form-field"),a.Jc(8,"mat-label"),a.Hc(9),a.Nc(10,pP),a.Gc(),a.Ic(),a.Jc(11,"mat-select",24),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Advanced.custom_downloading_agent=e})),a.Jc(12,"mat-option",50),a.Bd(13,"aria2c"),a.Ic(),a.Jc(14,"mat-option",51),a.Bd(15,"avconv"),a.Ic(),a.Jc(16,"mat-option",52),a.Bd(17,"axel"),a.Ic(),a.Jc(18,"mat-option",53),a.Bd(19,"curl"),a.Ic(),a.Jc(20,"mat-option",54),a.Bd(21,"ffmpeg"),a.Ic(),a.Jc(22,"mat-option",55),a.Bd(23,"httpie"),a.Ic(),a.Jc(24,"mat-option",56),a.Bd(25,"wget"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(26,"div",57),a.Jc(27,"mat-form-field"),a.Jc(28,"mat-label"),a.Hc(29),a.Nc(30,fP),a.Gc(),a.Ic(),a.Jc(31,"mat-select",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Advanced.logger_level=e})),a.Jc(32,"mat-option",58),a.Bd(33,"Debug"),a.Ic(),a.Jc(34,"mat-option",59),a.Bd(35,"Verbose"),a.Ic(),a.Jc(36,"mat-option",60),a.Bd(37,"Info"),a.Ic(),a.Jc(38,"mat-option",61),a.Bd(39,"Warn"),a.Ic(),a.Jc(40,"mat-option",62),a.Bd(41,"Error"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(42,"div",20),a.Jc(43,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Advanced.allow_advanced_download=e})),a.Hc(44),a.Nc(45,mP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Advanced.use_default_downloading_agent),a.pc(8),a.gd("disabled",n.new_config.Advanced.use_default_downloading_agent)("ngModel",n.new_config.Advanced.custom_downloading_agent),a.pc(20),a.gd("ngModel",n.new_config.Advanced.logger_level),a.pc(12),a.gd("ngModel",n.new_config.Advanced.allow_advanced_download)}}function CP(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",23),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Advanced.use_cookies=e})),a.Hc(4),a.Nc(5,gP),a.Gc(),a.Ic(),a.Jc(6,"button",63),a.Wc("click",(function(){return a.rd(i),a.ad(2).openCookiesUploaderDialog()})),a.Hc(7),a.Nc(8,vP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Advanced.use_cookies)}}function xP(e,t){1&e&&(a.Jc(0,"div",64),a.Ec(1,"app-updater"),a.Ic())}function SP(e,t){if(1&e&&(a.zd(0,wP,46,5,"div",9),a.Ec(1,"mat-divider"),a.zd(2,CP,9,1,"div",9),a.Ec(3,"mat-divider"),a.zd(4,xP,2,0,"div",49)),2&e){var i=a.ad();a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config)}}iP=$localize(_templateObject93()),nP=$localize(_templateObject94()),aP=$localize(_templateObject95()),rP=$localize(_templateObject96()),oP=$localize(_templateObject97()),sP=$localize(_templateObject98()),cP=$localize(_templateObject99()),lP=$localize(_templateObject100()),uP=$localize(_templateObject101()),dP=$localize(_templateObject102()),hP=$localize(_templateObject103()),pP=$localize(_templateObject104()),fP=$localize(_templateObject105()),mP=$localize(_templateObject106()),gP=$localize(_templateObject107()),vP=$localize(_templateObject108());var IP,OP=["label",$localize(_templateObject109())];function DP(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-tab",1),a.Pc(1,OP),a.Jc(2,"div",65),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().new_config.Users.allow_registration=e})),a.Hc(4),a.Nc(5,IP),a.Gc(),a.Ic(),a.Ic(),a.Ec(6,"app-modify-users"),a.Ic()}if(2&e){var n=a.ad();a.pc(3),a.gd("ngModel",n.new_config.Users.allow_registration)}}IP=$localize(_templateObject110());var EP=["label",$localize(_templateObject111())];function AP(e,t){1&e&&(a.Jc(0,"div",66),a.Ec(1,"app-logs-viewer"),a.Ic())}function TP(e,t){1&e&&(a.Jc(0,"mat-tab",1),a.Pc(1,EP),a.zd(2,AP,2,0,"ng-template",3),a.Ic())}var PP,RP,MP,LP,jP,FP,NP,zP,BP,JP,VP,HP=((PP=function(){function e(t,i,n,a){_classCallCheck(this,e),this.postsService=t,this.snackBar=i,this.sanitizer=n,this.dialog=a,this.all_locales=wD,this.supported_locales=["en","es","de"],this.initialLocale=localStorage.getItem("locale"),this.initial_config=null,this.new_config=null,this.loading_config=!1,this.generated_bookmarklet_code=null,this.bookmarkletAudioOnly=!1,this._settingsSame=!0,this.latestGithubRelease=null,this.CURRENT_VERSION="v4.0"}return _createClass(e,[{key:"ngOnInit",value:function(){this.getConfig(),this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode()),this.getLatestGithubRelease()}},{key:"getConfig",value:function(){this.initial_config=this.postsService.config,this.new_config=JSON.parse(JSON.stringify(this.initial_config))}},{key:"settingsSame",value:function(){return JSON.stringify(this.new_config)===JSON.stringify(this.initial_config)}},{key:"saveSettings",value:function(){var e=this;this.postsService.setConfig({YoutubeDLMaterial:this.new_config}).subscribe((function(t){t.success&&(!e.initial_config.Advanced.multi_user_mode&&e.new_config.Advanced.multi_user_mode&&e.postsService.checkAdminCreationStatus(!0),e.initial_config=JSON.parse(JSON.stringify(e.new_config)),e.postsService.reload_config.next(!0))}),(function(e){console.error("Failed to save config!")}))}},{key:"setNewPin",value:function(){this.dialog.open(kD,{data:{resetMode:!0}})}},{key:"generateAPIKey",value:function(){var e=this;this.postsService.generateNewAPIKey().subscribe((function(t){t.new_api_key&&(e.initial_config.API.API_key=t.new_api_key,e.new_config.API.API_key=t.new_api_key)}))}},{key:"localeSelectChanged",value:function(e){localStorage.setItem("locale",e),this.openSnackBar("Language successfully changed! Reload to update the page.")}},{key:"generateBookmarklet",value:function(){this.bookmarksite("YTDL-Material",this.generated_bookmarklet_code)}},{key:"generateBookmarkletCode",value:function(){return"javascript:(function()%7Bwindow.open('".concat(window.location.href.split("#")[0]+"#/home;url=","' + encodeURIComponent(window.location) + ';audioOnly=").concat(this.bookmarkletAudioOnly,"')%7D)()")}},{key:"bookmarkletAudioOnlyChanged",value:function(e){this.bookmarkletAudioOnly=e.checked,this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode())}},{key:"bookmarksite",value:function(e,t){if(document.all)window.external.AddFavorite(t,e);else if(window.chrome)this.openSnackBar("Chrome users must drag the 'Alternate URL' link to your bookmarks.");else if(window.sidebar)window.sidebar.addPanel(e,t,"");else if(window.opera&&window.print){var i=document.createElement("a");i.setAttribute("href",t),i.setAttribute("title",e),i.setAttribute("rel","sidebar"),i.click()}}},{key:"openArgsModifierDialog",value:function(){var e=this;this.dialog.open(QD,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe((function(t){null!=t&&(e.new_config.Downloader.custom_args=t)}))}},{key:"getLatestGithubRelease",value:function(){var e=this;this.postsService.getLatestGithubRelease().subscribe((function(t){e.latestGithubRelease=t}))}},{key:"openCookiesUploaderDialog",value:function(){this.dialog.open(SE,{width:"65vw"})}},{key:"openSnackBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}},{key:"settingsAreTheSame",get:function(){return this._settingsSame=this.settingsSame(),this._settingsSame},set:function(e){this._settingsSame=e}}]),e}()).\u0275fac=function(e){return new(e||PP)(a.Dc(YO),a.Dc(A_),a.Dc(n.b),a.Dc(Th))},PP.\u0275cmp=a.xc({type:PP,selectors:[["app-settings"]],decls:32,vars:5,consts:[["mat-dialog-title",""],[6,"label"],["matTabContent","","style","padding: 15px;"],["matTabContent",""],["label","Users",4,"ngIf"],["label","Logs",4,"ngIf"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12","mt-3"],["color","accent",1,"text-field"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mb-4"],["color","accent",3,"ngModel","ngModelChange"],[1,"col-12","mt-3","mb-4"],[1,"text-field"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-5"],[1,"col-12","mt-4"],["color","accent",3,"disabled","ngModel","ngModelChange"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-download-only-new-videos-from-a-playlist"],["value","default"],["value","dark"],[1,"col-12","mb-2"],["color","accent"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent",1,"text-field",2,"margin-right","12px"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-icon-button","",1,"args-edit-button",3,"click"],["mat-stroked-button","",2,"margin-left","15px","margin-bottom","10px",3,"disabled","click"],[1,"col-12","mb-3"],[1,"enable-api-key-div"],["target","_blank","href","https://stoplight.io/p/docs/gh/tzahi12345/youtubedl-material"],[1,"api-key-div"],["matTooltip-i18n","","matTooltip","This will delete your old API key!","mat-stroked-button","",3,"click"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/chrome-extension/youtubedl-material-chrome-extension.zip?raw=true"],[1,"ext-divider"],["href","https://addons.mozilla.org/en-US/firefox/addon/youtubedl-material/","target","_blank"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/wiki/Firefox-Extension","target","_blank"],[3,"change"],["target","_blank",3,"href"],["class","container-fluid mt-1",4,"ngIf"],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"col-12","mt-2","mb-1"],["value","debug"],["value","verbose"],["value","info"],["value","warn"],["value","error"],["mat-stroked-button","",1,"checkbox-button",3,"click"],[1,"container-fluid","mt-1"],[2,"margin-left","48px","margin-top","24px"],[2,"margin-left","48px","margin-top","24px","height","340px"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Nc(1,UA),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"mat-tab-group"),a.Jc(4,"mat-tab",1),a.Pc(5,KA),a.zd(6,AT,11,6,"ng-template",2),a.Ic(),a.Jc(7,"mat-tab",1),a.Pc(8,XA),a.zd(9,BT,1,1,"ng-template",3),a.Ic(),a.Jc(10,"mat-tab",1),a.Pc(11,YA),a.zd(12,kP,7,4,"ng-template",3),a.Ic(),a.Jc(13,"mat-tab",1),a.Pc(14,ZA),a.zd(15,SP,5,3,"ng-template",3),a.Ic(),a.zd(16,DP,7,1,"mat-tab",4),a.zd(17,TP,3,0,"mat-tab",5),a.Ic(),a.Ic(),a.Jc(18,"mat-dialog-actions"),a.Jc(19,"div",6),a.Jc(20,"button",7),a.Wc("click",(function(){return t.saveSettings()})),a.Jc(21,"mat-icon"),a.Bd(22,"done"),a.Ic(),a.Bd(23,"\xa0\xa0 "),a.Hc(24),a.Nc(25,qA),a.Gc(),a.Ic(),a.Jc(26,"button",8),a.Jc(27,"mat-icon"),a.Bd(28,"cancel"),a.Ic(),a.Bd(29,"\xa0\xa0 "),a.Jc(30,"span"),a.Nc(31,$A),a.Ic(),a.Ic(),a.Ic(),a.Ic()),2&e&&(a.pc(16),a.gd("ngIf",t.postsService.config&&t.postsService.config.Advanced.multi_user_mode),a.pc(1),a.gd("ngIf",t.postsService.config),a.pc(3),a.gd("disabled",t.settingsSame()),a.pc(6),a.gd("mat-dialog-close",!1),a.pc(5),a.Qc(t.settingsAreTheSame+""),a.Oc(31))},directives:[Mh,Lh,Ly,Sy,yy,yt.t,jh,Za,_m,Rh,Mm,Ud,Pm,_r,Ks,Dr,es,Ld,Yc,jd,mb,za,yt.s,hv,HE,JA,WA],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px;top:20px}.enable-api-key-div[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:15px}.api-key-div[_ngcontent-%COMP%], .enable-api-key-div[_ngcontent-%COMP%]{display:inline-block}.text-field[_ngcontent-%COMP%]{min-width:30%}.checkbox-button[_ngcontent-%COMP%]{margin-left:15px;margin-bottom:12px;bottom:4px}"]}),PP);function UP(e,t){1&e&&(a.Jc(0,"span",12),a.Ec(1,"mat-spinner",13),a.Bd(2,"\xa0"),a.Hc(3),a.Nc(4,JP),a.Gc(),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",22))}function GP(e,t){1&e&&(a.Jc(0,"mat-icon",14),a.Bd(1,"done"),a.Ic())}function WP(e,t){if(1&e&&(a.Jc(0,"a",2),a.Hc(1),a.Nc(2,VP),a.Gc(),a.Bd(3),a.Ic()),2&e){var i=a.ad();a.gd("href",i.latestUpdateLink,a.td),a.pc(3),a.Dd(" - ",i.latestGithubRelease.tag_name,"")}}function qP(e,t){1&e&&(a.Jc(0,"span"),a.Bd(1,"You are up to date."),a.Ic())}RP=$localize(_templateObject112()),MP=$localize(_templateObject113()),LP=$localize(_templateObject114()),jP=$localize(_templateObject115()),FP=$localize(_templateObject116()),NP=$localize(_templateObject117()),zP=$localize(_templateObject118()),BP=$localize(_templateObject119()),JP=$localize(_templateObject120()),VP=$localize(_templateObject121());var $P,KP,XP,YP,ZP,QP,eR,tR,iR,nR=(($P=function(){function e(t){_classCallCheck(this,e),this.postsService=t,this.projectLink="https://github.com/Tzahi12345/YoutubeDL-Material",this.issuesLink="https://github.com/Tzahi12345/YoutubeDL-Material/issues",this.latestUpdateLink="https://github.com/Tzahi12345/YoutubeDL-Material/releases/latest",this.latestGithubRelease=null,this.checking_for_updates=!0,this.current_version_tag="v4.0"}return _createClass(e,[{key:"ngOnInit",value:function(){this.getLatestGithubRelease()}},{key:"getLatestGithubRelease",value:function(){var e=this;this.postsService.getLatestGithubRelease().subscribe((function(t){e.checking_for_updates=!1,e.latestGithubRelease=t}))}}]),e}()).\u0275fac=function(e){return new(e||$P)(a.Dc(YO))},$P.\u0275cmp=a.xc({type:$P,selectors:[["app-about-dialog"]],decls:49,vars:7,consts:[["mat-dialog-title","",2,"position","relative"],[1,"logo-image"],["target","_blank",3,"href"],["src","assets/images/GitHub-64px.png",2,"width","32px"],["src","assets/images/logo_128px.png",2,"width","32px","margin-left","15px"],[2,"margin-bottom","5px"],[2,"margin-top","10px"],["style","display: inline-block",4,"ngIf"],["class","version-checked-icon",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","","mat-dialog-close","",2,"margin-bottom","5px"],[2,"display","inline-block"],[1,"version-spinner",3,"diameter"],[1,"version-checked-icon"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Hc(1),a.Nc(2,RP),a.Gc(),a.Jc(3,"span",1),a.Jc(4,"a",2),a.Ec(5,"img",3),a.Ic(),a.Ec(6,"img",4),a.Ic(),a.Ic(),a.Jc(7,"mat-dialog-content"),a.Jc(8,"div",5),a.Jc(9,"p"),a.Jc(10,"i"),a.Bd(11,"YoutubeDL-Material"),a.Ic(),a.Bd(12,"\xa0"),a.Hc(13),a.Nc(14,MP),a.Gc(),a.Ic(),a.Jc(15,"p"),a.Jc(16,"i"),a.Bd(17,"YoutubeDL-Material"),a.Ic(),a.Bd(18,"\xa0"),a.Hc(19),a.Nc(20,LP),a.Gc(),a.Ic(),a.Ec(21,"mat-divider"),a.Jc(22,"h5",6),a.Bd(23,"Installation details:"),a.Ic(),a.Jc(24,"p"),a.Hc(25),a.Nc(26,jP),a.Gc(),a.Bd(27),a.zd(28,UP,5,1,"span",7),a.zd(29,GP,2,0,"mat-icon",8),a.Bd(30,"\xa0\xa0"),a.zd(31,WP,4,2,"a",9),a.Bd(32,". "),a.Hc(33),a.Nc(34,FP),a.Gc(),a.zd(35,qP,2,0,"span",10),a.Ic(),a.Jc(36,"p"),a.Hc(37),a.Nc(38,NP),a.Gc(),a.Bd(39,"\xa0"),a.Jc(40,"a",2),a.Hc(41),a.Nc(42,zP),a.Gc(),a.Ic(),a.Bd(43,"\xa0"),a.Hc(44),a.Nc(45,BP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(46,"mat-dialog-actions"),a.Jc(47,"button",11),a.Bd(48,"Close"),a.Ic(),a.Ic()),2&e&&(a.pc(4),a.gd("href",t.projectLink,a.td),a.pc(23),a.Dd("\xa0",t.current_version_tag," - "),a.pc(1),a.gd("ngIf",t.checking_for_updates),a.pc(1),a.gd("ngIf",!t.checking_for_updates),a.pc(2),a.gd("ngIf",!t.checking_for_updates&&t.latestGithubRelease.tag_name!==t.current_version_tag),a.pc(4),a.gd("ngIf",!t.checking_for_updates&&t.latestGithubRelease.tag_name===t.current_version_tag),a.pc(5),a.gd("href",t.issuesLink,a.td))},directives:[Mh,Lh,Mm,yt.t,jh,Za,Rh,jv,_m],styles:["i[_ngcontent-%COMP%]{margin-right:1px}.version-spinner[_ngcontent-%COMP%]{top:4px;margin-right:5px;margin-left:5px;display:inline-block}.version-checked-icon[_ngcontent-%COMP%]{top:5px;margin-left:2px;position:relative;margin-right:-3px}.logo-image[_ngcontent-%COMP%]{position:absolute;top:-10px;right:-10px}"]}),$P);function aR(e,t){if(1&e&&(a.Jc(0,"div"),a.Jc(1,"div"),a.Jc(2,"strong"),a.Hc(3),a.Nc(4,ZP),a.Gc(),a.Ic(),a.Bd(5),a.Ic(),a.Jc(6,"div"),a.Jc(7,"strong"),a.Hc(8),a.Nc(9,QP),a.Gc(),a.Ic(),a.Bd(10),a.Ic(),a.Jc(11,"div"),a.Jc(12,"strong"),a.Hc(13),a.Nc(14,eR),a.Gc(),a.Ic(),a.Bd(15),a.bd(16,"date"),a.Ic(),a.Ec(17,"div",6),a.Ic()),2&e){var i=a.ad();a.pc(5),a.Dd("\xa0",i.postsService.user.name," "),a.pc(5),a.Dd("\xa0",i.postsService.user.uid," "),a.pc(5),a.Dd("\xa0",i.postsService.user.created?a.cd(16,3,i.postsService.user.created):"N/A"," ")}}function rR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"h5"),a.Jc(2,"mat-icon"),a.Bd(3,"warn"),a.Ic(),a.Hc(4),a.Nc(5,tR),a.Gc(),a.Ic(),a.Jc(6,"button",7),a.Wc("click",(function(){return a.rd(i),a.ad().loginClicked()})),a.Hc(7),a.Nc(8,iR),a.Gc(),a.Ic(),a.Ic()}}KP=$localize(_templateObject122()),XP=$localize(_templateObject123()),YP=$localize(_templateObject124()),ZP=$localize(_templateObject125()),QP=$localize(_templateObject126()),eR=$localize(_templateObject127()),tR=$localize(_templateObject128()),iR=$localize(_templateObject129());var oR,sR,cR,lR=((oR=function(){function e(t,i,n){_classCallCheck(this,e),this.postsService=t,this.router=i,this.dialogRef=n}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"loginClicked",value:function(){this.router.navigate(["/login"]),this.dialogRef.close()}},{key:"logoutClicked",value:function(){this.postsService.logout(),this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||oR)(a.Dc(YO),a.Dc(bO),a.Dc(Ih))},oR.\u0275cmp=a.xc({type:oR,selectors:[["app-user-profile-dialog"]],decls:14,vars:2,consts:[["mat-dialog-title",""],[4,"ngIf"],[2,"width","100%"],[2,"position","relative"],["mat-stroked-button","","mat-dialog-close","","color","primary"],["mat-stroked-button","","color","warn",2,"position","absolute","right","0px",3,"click"],[2,"margin-top","20px"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Nc(1,KP),a.Ic(),a.Jc(2,"mat-dialog-content"),a.zd(3,aR,18,5,"div",1),a.zd(4,rR,9,0,"div",1),a.Ic(),a.Jc(5,"mat-dialog-actions"),a.Jc(6,"div",2),a.Jc(7,"div",3),a.Jc(8,"button",4),a.Hc(9),a.Nc(10,XP),a.Gc(),a.Ic(),a.Jc(11,"button",5),a.Wc("click",(function(){return t.logoutClicked()})),a.Hc(12),a.Nc(13,YP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()),2&e&&(a.pc(3),a.gd("ngIf",t.postsService.isLoggedIn&&t.postsService.user),a.pc(1),a.gd("ngIf",!t.postsService.isLoggedIn||!t.postsService.user))},directives:[Mh,Lh,yt.t,jh,Za,Rh,_m],pipes:[yt.f],styles:[""]}),oR);sR=$localize(_templateObject130()),cR=$localize(_templateObject131());var uR,dR=["placeholder",$localize(_templateObject132())];function hR(e,t){1&e&&a.Ec(0,"mat-spinner",7),2&e&&a.gd("diameter",25)}uR=$localize(_templateObject133());var pR,fR,mR,gR,vR,bR,_R,yR,kR,wR=((pR=function(){function e(t,i){_classCallCheck(this,e),this.postsService=t,this.dialogRef=i,this.creating=!1,this.input=""}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"create",value:function(){var e=this;this.creating=!0,this.postsService.createAdminAccount(this.input).subscribe((function(t){e.creating=!1,e.dialogRef.close(!!t.success)}),(function(t){console.log(t),e.dialogRef.close(!1)}))}}]),e}()).\u0275fac=function(e){return new(e||pR)(a.Dc(YO),a.Dc(Ih))},pR.\u0275cmp=a.xc({type:pR,selectors:[["app-set-default-admin-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],[2,"position","relative"],["color","accent"],["type","password","matInput","",3,"ngModel","keyup.enter","ngModelChange",6,"placeholder"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],[1,"spinner-div"],[3,"diameter",4,"ngIf"],[3,"diameter"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Hc(1),a.Nc(2,sR),a.Gc(),a.Ic(),a.Jc(3,"mat-dialog-content"),a.Jc(4,"div"),a.Jc(5,"p"),a.Nc(6,cR),a.Ic(),a.Ic(),a.Jc(7,"div",1),a.Jc(8,"div"),a.Jc(9,"mat-form-field",2),a.Jc(10,"input",3),a.Pc(11,dR),a.Wc("keyup.enter",(function(){return t.create()}))("ngModelChange",(function(e){return t.input=e})),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(12,"mat-dialog-actions"),a.Jc(13,"button",4),a.Wc("click",(function(){return t.create()})),a.Hc(14),a.Nc(15,uR),a.Gc(),a.Ic(),a.Jc(16,"div",5),a.zd(17,hR,1,1,"mat-spinner",6),a.Ic(),a.Ic()),2&e&&(a.pc(10),a.gd("ngModel",t.input),a.pc(3),a.gd("disabled",0===t.input.length),a.pc(4),a.gd("ngIf",t.creating))},directives:[Mh,Lh,Ud,Pm,_r,Dr,es,jh,Za,yt.t,jv],styles:[".spinner-div[_ngcontent-%COMP%]{position:relative;left:10px;bottom:5px}"]}),pR),CR=["sidenav"],xR=["hamburgerMenu"];function SR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",21,22),a.Wc("click",(function(){return a.rd(i),a.ad().toggleSidenav()})),a.Jc(2,"mat-icon"),a.Bd(3,"menu"),a.Ic(),a.Ic()}}function IR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",23),a.Wc("click",(function(){return a.rd(i),a.ad().goBack()})),a.Jc(1,"mat-icon"),a.Bd(2,"arrow_back"),a.Ic(),a.Ic()}}function OR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",13),a.Wc("click",(function(){return a.rd(i),a.ad().openProfileDialog()})),a.Jc(1,"mat-icon"),a.Bd(2,"person"),a.Ic(),a.Jc(3,"span"),a.Nc(4,mR),a.Ic(),a.Ic()}}function DR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",13),a.Wc("click",(function(e){return a.rd(i),a.ad().themeMenuItemClicked(e)})),a.Jc(1,"mat-icon"),a.Bd(2),a.Ic(),a.Jc(3,"span"),a.Nc(4,gR),a.Ic(),a.Ec(5,"mat-slide-toggle",24),a.Ic()}if(2&e){var n=a.ad();a.pc(2),a.Cd("default"===n.postsService.theme.key?"brightness_5":"brightness_2"),a.pc(3),a.gd("checked","dark"===n.postsService.theme.key)}}function ER(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",13),a.Wc("click",(function(){return a.rd(i),a.ad().openSettingsDialog()})),a.Jc(1,"mat-icon"),a.Bd(2,"settings"),a.Ic(),a.Jc(3,"span"),a.Nc(4,vR),a.Ic(),a.Ic()}}function AR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"a",25),a.Wc("click",(function(){return a.rd(i),a.ad(),a.nd(27).close()})),a.Hc(1),a.Nc(2,bR),a.Gc(),a.Ic()}}function TR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"a",26),a.Wc("click",(function(){return a.rd(i),a.ad(),a.nd(27).close()})),a.Hc(1),a.Nc(2,_R),a.Gc(),a.Ic()}}function PR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"a",27),a.Wc("click",(function(){return a.rd(i),a.ad(),a.nd(27).close()})),a.Hc(1),a.Nc(2,yR),a.Gc(),a.Ic()}}function RR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"a",28),a.Wc("click",(function(){return a.rd(i),a.ad(),a.nd(27).close()})),a.Hc(1),a.Nc(2,kR),a.Gc(),a.Ic()}}fR=$localize(_templateObject134()),mR=$localize(_templateObject135()),gR=$localize(_templateObject136()),vR=$localize(_templateObject137()),bR=$localize(_templateObject138()),_R=$localize(_templateObject139()),yR=$localize(_templateObject140()),kR=$localize(_templateObject141());var MR,LR=((MR=function(){function e(t,i,n,a,r,o){var s=this;_classCallCheck(this,e),this.postsService=t,this.snackBar=i,this.dialog=n,this.router=a,this.overlayContainer=r,this.elementRef=o,this.THEMES_CONFIG=Px,this.topBarTitle="Youtube Downloader",this.defaultTheme=null,this.allowThemeChange=null,this.allowSubscriptions=!1,this.enableDownloadsManager=!1,this.settingsPinRequired=!0,this.navigator=null,this.navigator=localStorage.getItem("player_navigator"),this.router.events.subscribe((function(e){e instanceof iS?s.navigator=localStorage.getItem("player_navigator"):e instanceof nS&&s.hamburgerMenuButton&&s.hamburgerMenuButton.nativeElement&&s.hamburgerMenuButton.nativeElement.blur()})),this.postsService.config_reloaded.subscribe((function(e){e&&s.loadConfig()}))}return _createClass(e,[{key:"toggleSidenav",value:function(){this.sidenav.toggle()}},{key:"loadConfig",value:function(){this.topBarTitle=this.postsService.config.Extra.title_top,this.settingsPinRequired=this.postsService.config.Extra.settings_pin_required;var e=this.postsService.config.Themes;this.defaultTheme=e?this.postsService.config.Themes.default_theme:"default",this.allowThemeChange=!e||this.postsService.config.Themes.allow_theme_change,this.allowSubscriptions=this.postsService.config.Subscriptions.allow_subscriptions,this.enableDownloadsManager=this.postsService.config.Extra.enable_downloads_manager,localStorage.getItem("theme")||this.setTheme(e?this.defaultTheme:"default")}},{key:"setTheme",value:function(e){var t=null;this.THEMES_CONFIG[e]?(localStorage.getItem("theme")&&(t=localStorage.getItem("theme"),this.THEMES_CONFIG[t]||(console.log("bad theme found, setting to default"),null===this.defaultTheme?console.error("No default theme detected"):(localStorage.setItem("theme",this.defaultTheme),t=localStorage.getItem("theme")))),localStorage.setItem("theme",e),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor=this.THEMES_CONFIG[e].background_color,this.postsService.setTheme(e),this.onSetTheme(this.THEMES_CONFIG[e].css_label,t?this.THEMES_CONFIG[t].css_label:t)):console.error("Invalid theme: "+e)}},{key:"onSetTheme",value:function(e,t){t&&(document.body.classList.remove(t),this.overlayContainer.getContainerElement().classList.remove(t)),this.overlayContainer.getContainerElement().classList.add(e),this.componentCssClass=e}},{key:"flipTheme",value:function(){"default"===this.postsService.theme.key?this.setTheme("dark"):"dark"===this.postsService.theme.key&&this.setTheme("default")}},{key:"themeMenuItemClicked",value:function(e){this.flipTheme(),e.stopPropagation()}},{key:"ngOnInit",value:function(){var e=this;localStorage.getItem("theme")&&this.setTheme(localStorage.getItem("theme")),this.postsService.open_create_default_admin_dialog.subscribe((function(t){t&&e.dialog.open(wR).afterClosed().subscribe((function(t){t?"/login"!==e.router.url&&e.router.navigate(["/login"]):console.error("Failed to create default admin account. See logs for details.")}))}))}},{key:"goBack",value:function(){this.navigator?this.router.navigateByUrl(this.navigator):this.router.navigate(["/home"])}},{key:"openSettingsDialog",value:function(){this.settingsPinRequired?this.openPinDialog():this.actuallyOpenSettingsDialog()}},{key:"actuallyOpenSettingsDialog",value:function(){this.dialog.open(HP,{width:"80vw"})}},{key:"openPinDialog",value:function(){var e=this;this.dialog.open(kD,{}).afterClosed().subscribe((function(t){t&&e.actuallyOpenSettingsDialog()}))}},{key:"openAboutDialog",value:function(){this.dialog.open(nR,{width:"80vw"})}},{key:"openProfileDialog",value:function(){this.dialog.open(lR,{width:"60vw"})}}]),e}()).\u0275fac=function(e){return new(e||MR)(a.Dc(YO),a.Dc(A_),a.Dc(Th),a.Dc(bO),a.Dc(Lu),a.Dc(a.r))},MR.\u0275cmp=a.xc({type:MR,selectors:[["app-root"]],viewQuery:function(e,t){var i;1&e&&(a.Fd(CR,!0),a.Fd(xR,!0,a.r)),2&e&&(a.md(i=a.Xc())&&(t.sidenav=i.first),a.md(i=a.Xc())&&(t.hamburgerMenuButton=i.first))},hostVars:2,hostBindings:function(e,t){2&e&&a.rc(t.componentCssClass)},decls:35,vars:15,consts:[[2,"width","100%","height","100%"],[1,"mat-elevation-z3",2,"position","relative","z-index","10"],["color","primary",1,"sticky-toolbar","top-toolbar"],["width","100%","height","100%",1,"flex-row"],[1,"flex-column",2,"text-align","left","margin-top","1px"],["style","outline: none","mat-icon-button","","aria-label","Toggle side navigation",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"flex-column",2,"text-align","center","margin-top","5px"],[2,"font-size","22px","text-shadow","#141414 0.25px 0.25px 1px"],[1,"flex-column",2,"text-align","right","align-items","flex-end"],["mat-icon-button","",3,"matMenuTriggerFor"],["menuSettings","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"sidenav-container",2,"height","calc(100% - 64px)"],[2,"height","100%"],["sidenav",""],["mat-list-item","","routerLink","/home",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/login",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/subscriptions",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/downloads",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Toggle side navigation",2,"outline","none",3,"click"],["hamburgerMenu",""],["mat-icon-button","",3,"click"],[1,"theme-slide-toggle",3,"checked"],["mat-list-item","","routerLink","/home",3,"click"],["mat-list-item","","routerLink","/login",3,"click"],["mat-list-item","","routerLink","/subscriptions",3,"click"],["mat-list-item","","routerLink","/downloads",3,"click"]],template:function(e,t){if(1&e&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Jc(2,"mat-toolbar",2),a.Jc(3,"div",3),a.Jc(4,"div",4),a.zd(5,SR,4,0,"button",5),a.zd(6,IR,3,0,"button",6),a.Ic(),a.Jc(7,"div",7),a.Jc(8,"div",8),a.Bd(9),a.Ic(),a.Ic(),a.Jc(10,"div",9),a.Jc(11,"button",10),a.Jc(12,"mat-icon"),a.Bd(13,"more_vert"),a.Ic(),a.Ic(),a.Jc(14,"mat-menu",null,11),a.zd(16,OR,5,0,"button",12),a.zd(17,DR,6,2,"button",12),a.zd(18,ER,5,0,"button",12),a.Jc(19,"button",13),a.Wc("click",(function(){return t.openAboutDialog()})),a.Jc(20,"mat-icon"),a.Bd(21,"info"),a.Ic(),a.Jc(22,"span"),a.Nc(23,fR),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(24,"div",14),a.Jc(25,"mat-sidenav-container",15),a.Jc(26,"mat-sidenav",null,16),a.Jc(28,"mat-nav-list"),a.zd(29,AR,3,0,"a",17),a.zd(30,TR,3,0,"a",18),a.zd(31,PR,3,0,"a",19),a.zd(32,RR,3,0,"a",20),a.Ic(),a.Ic(),a.Jc(33,"mat-sidenav-content"),a.Ec(34,"router-outlet"),a.Ic(),a.Ic(),a.Ic(),a.Ic()),2&e){var i=a.nd(15);a.yd("background",t.postsService.theme?t.postsService.theme.background_color:null,a.wc),a.pc(5),a.gd("ngIf","/player"!==t.router.url.split(";")[0]),a.pc(1),a.gd("ngIf","/player"===t.router.url.split(";")[0]),a.pc(3),a.Dd(" ",t.topBarTitle," "),a.pc(2),a.gd("matMenuTriggerFor",i),a.pc(5),a.gd("ngIf",t.postsService.isLoggedIn),a.pc(1),a.gd("ngIf",t.allowThemeChange),a.pc(1),a.gd("ngIf",!t.postsService.isLoggedIn||t.postsService.permissions.includes("settings")),a.pc(11),a.gd("ngIf",t.postsService.config&&(!t.postsService.config.Advanced.multi_user_mode||t.postsService.isLoggedIn)),a.pc(1),a.gd("ngIf",t.postsService.config&&t.postsService.config.Advanced.multi_user_mode&&!t.postsService.isLoggedIn),a.pc(1),a.gd("ngIf",t.postsService.config&&t.allowSubscriptions&&(!t.postsService.config.Advanced.multi_user_mode||t.postsService.isLoggedIn&&t.postsService.permissions.includes("subscriptions"))),a.pc(1),a.gd("ngIf",t.postsService.config&&t.enableDownloadsManager&&(!t.postsService.config.Advanced.multi_user_mode||t.postsService.isLoggedIn&&t.postsService.permissions.includes("downloads_manager"))),a.pc(1),a.yd("background",t.postsService.theme?t.postsService.theme.background_color:null,a.wc)}},directives:[L_,yt.t,Za,zg,_m,Lg,Eg,qb,Gb,eg,Ub,EO,o_,og,yO],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-basis:100%;flex:1}.theme-slide-toggle[_ngcontent-%COMP%]{top:2px;left:10px;position:relative;pointer-events:none}.sidenav-container[_ngcontent-%COMP%]{z-index:-1!important}.top-toolbar[_ngcontent-%COMP%]{height:64px}"]}),MR);function jR(e,t,i,n){return new(i||(i=Promise))((function(a,r){function o(e){try{c(n.next(e))}catch(t){r(t)}}function s(e){try{c(n.throw(e))}catch(t){r(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))}var FR,NR,zR=i("Iab2"),BR=function e(t){_classCallCheck(this,e),this.id=t&&t.id||null,this.title=t&&t.title||null,this.desc=t&&t.desc||null,this.thumbnailUrl=t&&t.thumbnailUrl||null,this.uploaded=t&&t.uploaded||null,this.videoUrl=t&&t.videoUrl||"https://www.youtube.com/watch?v=".concat(this.id),this.uploaded=function(e){var t,i=new Date(e),n=VR(i.getMonth()+1),a=VR(i.getDate()),r=i.getFullYear();t=i.getHours();var o=VR(i.getMinutes()),s="AM",c=parseInt(t,10);return c>12?(s="PM",t=c-12):0===c&&(t="12"),n+"-"+a+"-"+r+" "+(t=VR(t))+":"+o+" "+s}(Date.parse(this.uploaded))},JR=((FR=function(){function e(t){_classCallCheck(this,e),this.http=t,this.url="https://www.googleapis.com/youtube/v3/search",this.key=null}return _createClass(e,[{key:"initializeAPI",value:function(e){this.key=e}},{key:"search",value:function(e){if(this.ValidURL(e))return new si.a;var t=["q=".concat(e),"key=".concat(this.key),"part=snippet","type=video","maxResults=5"].join("&");return this.http.get("".concat(this.url,"?").concat(t)).map((function(e){return e.items.map((function(e){return new BR({id:e.id.videoId,title:e.snippet.title,desc:e.snippet.description,thumbnailUrl:e.snippet.thumbnails.high.url,uploaded:e.snippet.publishedAt})}))}))}},{key:"ValidURL",value:function(e){return new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(e)}}]),e}()).\u0275fac=function(e){return new(e||FR)(a.Sc(Pf))},FR.\u0275prov=a.zc({token:FR,factory:FR.\u0275fac,providedIn:"root"}),FR);function VR(e){return e<10?"0"+e:e}NR=$localize(_templateObject142());var HR,UR,GR=["placeholder",$localize(_templateObject143())];function WR(e,t){1&e&&(a.Jc(0,"mat-label"),a.Hc(1),a.Nc(2,HR),a.Gc(),a.Ic())}function qR(e,t){1&e&&(a.Jc(0,"mat-label"),a.Hc(1),a.Nc(2,UR),a.Gc(),a.Ic())}function $R(e,t){if(1&e&&(a.Jc(0,"mat-option",8),a.Bd(1),a.Ic()),2&e){var i=t.$implicit;a.gd("value",i.id),a.pc(1),a.Cd(i.id)}}function KR(e,t){1&e&&(a.Jc(0,"div",9),a.Ec(1,"mat-spinner",10),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",25))}HR=$localize(_templateObject144()),UR=$localize(_templateObject145());var XR,YR,ZR,QR,eM,tM=function(){return{standalone:!0}},iM=((XR=function(){function e(t,i,n){_classCallCheck(this,e),this.data=t,this.postsService=i,this.dialogRef=n,this.filesToSelectFrom=null,this.type=null,this.filesSelect=new Jo,this.name="",this.create_in_progress=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.data&&(this.filesToSelectFrom=this.data.filesToSelectFrom,this.type=this.data.type)}},{key:"createPlaylist",value:function(){var e=this,t=this.getThumbnailURL();this.create_in_progress=!0,this.postsService.createPlaylist(this.name,this.filesSelect.value,this.type,t).subscribe((function(t){e.create_in_progress=!1,e.dialogRef.close(!!t.success)}))}},{key:"getThumbnailURL",value:function(){for(var e=0;e1?"first-result-card":"",r===o.results.length-1&&o.results.length>1?"last-result-card":"",1===o.results.length?"only-result-card":"")),a.pc(2),a.Dd(" ",n.title," "),a.pc(2),a.Dd(" ",n.uploaded," ")}}function yM(e,t){if(1&e&&(a.Jc(0,"div",33),a.zd(1,_M,12,7,"span",27),a.Ic()),2&e){var i=a.ad();a.pc(1),a.gd("ngForOf",i.results)}}function kM(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-checkbox",39),a.Wc("change",(function(e){return a.rd(i),a.ad().multiDownloadModeChanged(e)}))("ngModelChange",(function(e){return a.rd(i),a.ad().multiDownloadMode=e})),a.Hc(1),a.Nc(2,fM),a.Gc(),a.Ic()}if(2&e){var n=a.ad();a.gd("disabled",n.current_download)("ngModel",n.multiDownloadMode)}}function wM(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",40),a.Wc("click",(function(){return a.rd(i),a.ad().cancelDownload()})),a.Hc(1),a.Nc(2,mM),a.Gc(),a.Ic()}}fM=$localize(_templateObject152()),mM=$localize(_templateObject153()),gM=$localize(_templateObject154()),vM=$localize(_templateObject155());var CM,xM,SM=["placeholder",$localize(_templateObject156())];CM=$localize(_templateObject157()),xM=$localize(_templateObject158());var IM,OM,DM,EM,AM=["placeholder",$localize(_templateObject159())];function TM(e,t){if(1&e&&(a.Jc(0,"p"),a.Hc(1),a.Nc(2,DM),a.Gc(),a.Bd(3," \xa0"),a.Jc(4,"i"),a.Bd(5),a.Ic(),a.Ic()),2&e){var i=a.ad(2);a.pc(5),a.Cd(i.simulatedOutput)}}IM=$localize(_templateObject160()),OM=$localize(_templateObject161()),DM=$localize(_templateObject162()),EM=$localize(_templateObject163());var PM=["placeholder",$localize(_templateObject164())];function RM(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",52),a.Jc(1,"mat-checkbox",46),a.Wc("change",(function(e){return a.rd(i),a.ad(2).youtubeAuthEnabledChanged(e)}))("ngModelChange",(function(e){return a.rd(i),a.ad(2).youtubeAuthEnabled=e})),a.Hc(2),a.Nc(3,EM),a.Gc(),a.Ic(),a.Jc(4,"mat-form-field",53),a.Jc(5,"input",49),a.Pc(6,PM),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).youtubeUsername=e})),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(1),a.gd("disabled",n.current_download)("ngModel",n.youtubeAuthEnabled)("ngModelOptions",a.id(6,hM)),a.pc(4),a.gd("ngModel",n.youtubeUsername)("ngModelOptions",a.id(7,hM))("disabled",!n.youtubeAuthEnabled)}}var MM,LM,jM,FM,NM,zM,BM,JM,VM=["placeholder",$localize(_templateObject165())];function HM(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",52),a.Jc(1,"mat-form-field",54),a.Jc(2,"input",55),a.Pc(3,VM),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).youtubePassword=e})),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(2),a.gd("ngModel",n.youtubePassword)("ngModelOptions",a.id(3,hM))("disabled",!n.youtubeAuthEnabled)}}function UM(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",0),a.Jc(1,"form",41),a.Jc(2,"mat-expansion-panel",42),a.Jc(3,"mat-expansion-panel-header"),a.Jc(4,"mat-panel-title"),a.Hc(5),a.Nc(6,gM),a.Gc(),a.Ic(),a.Ic(),a.zd(7,TM,6,1,"p",43),a.Jc(8,"div",44),a.Jc(9,"div",5),a.Jc(10,"div",45),a.Jc(11,"mat-checkbox",46),a.Wc("change",(function(e){return a.rd(i),a.ad().customArgsEnabledChanged(e)}))("ngModelChange",(function(e){return a.rd(i),a.ad().customArgsEnabled=e})),a.Hc(12),a.Nc(13,vM),a.Gc(),a.Ic(),a.Jc(14,"button",47),a.Wc("click",(function(){return a.rd(i),a.ad().openArgsModifierDialog()})),a.Jc(15,"mat-icon"),a.Bd(16,"edit"),a.Ic(),a.Ic(),a.Jc(17,"mat-form-field",48),a.Jc(18,"input",49),a.Pc(19,SM),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().customArgs=e})),a.Ic(),a.Jc(20,"mat-hint"),a.Hc(21),a.Nc(22,CM),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(23,"div",45),a.Jc(24,"mat-checkbox",46),a.Wc("change",(function(e){return a.rd(i),a.ad().customOutputEnabledChanged(e)}))("ngModelChange",(function(e){return a.rd(i),a.ad().customOutputEnabled=e})),a.Hc(25),a.Nc(26,xM),a.Gc(),a.Ic(),a.Jc(27,"mat-form-field",48),a.Jc(28,"input",49),a.Pc(29,AM),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().customOutput=e})),a.Ic(),a.Jc(30,"mat-hint"),a.Jc(31,"a",50),a.Hc(32),a.Nc(33,IM),a.Gc(),a.Ic(),a.Bd(34,". "),a.Hc(35),a.Nc(36,OM),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.zd(37,RM,7,8,"div",51),a.zd(38,HM,4,4,"div",51),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(7),a.gd("ngIf",n.simulatedOutput),a.pc(4),a.gd("disabled",n.current_download)("ngModel",n.customArgsEnabled)("ngModelOptions",a.id(15,hM)),a.pc(7),a.gd("ngModel",n.customArgs)("ngModelOptions",a.id(16,hM))("disabled",!n.customArgsEnabled),a.pc(6),a.gd("disabled",n.current_download)("ngModel",n.customOutputEnabled)("ngModelOptions",a.id(17,hM)),a.pc(4),a.gd("ngModel",n.customOutput)("ngModelOptions",a.id(18,hM))("disabled",!n.customOutputEnabled),a.pc(9),a.gd("ngIf",!n.youtubeAuthDisabledOverride),a.pc(1),a.gd("ngIf",!n.youtubeAuthDisabledOverride)}}function GM(e,t){1&e&&a.Ec(0,"mat-divider",2)}function WM(e,t){if(1&e){var i=a.Kc();a.Hc(0),a.Jc(1,"app-download-item",60),a.Wc("cancelDownload",(function(e){return a.rd(i),a.ad(3).cancelDownload(e)})),a.Ic(),a.zd(2,GM,1,0,"mat-divider",61),a.Gc()}if(2&e){var n=a.ad(),r=n.$implicit,o=n.index,s=a.ad(2);a.pc(1),a.gd("download",r)("queueNumber",o+1),a.pc(1),a.gd("ngIf",o!==s.downloads.length-1)}}function qM(e,t){if(1&e&&(a.Jc(0,"div",5),a.zd(1,WM,3,3,"ng-container",43),a.Ic()),2&e){var i=t.$implicit,n=a.ad(2);a.pc(1),a.gd("ngIf",n.current_download!==i&&i.downloading)}}function $M(e,t){if(1&e&&(a.Jc(0,"div",56),a.Jc(1,"mat-card",57),a.Jc(2,"div",58),a.zd(3,qM,2,1,"div",59),a.Ic(),a.Ic(),a.Ic()),2&e){var i=a.ad();a.pc(3),a.gd("ngForOf",i.downloads)}}function KM(e,t){if(1&e&&(a.Jc(0,"div",67),a.Ec(1,"mat-progress-bar",68),a.Ec(2,"br"),a.Ic()),2&e){var i=a.ad(2);a.gd("ngClass",i.percentDownloaded-0>99?"make-room-for-spinner":"equal-sizes"),a.pc(1),a.hd("value",i.percentDownloaded)}}function XM(e,t){1&e&&(a.Jc(0,"div",69),a.Ec(1,"mat-spinner",32),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",25))}function YM(e,t){1&e&&a.Ec(0,"mat-progress-bar",70)}function ZM(e,t){if(1&e&&(a.Jc(0,"div",62),a.Jc(1,"div",63),a.zd(2,KM,3,2,"div",64),a.zd(3,XM,2,1,"div",65),a.zd(4,YM,1,0,"ng-template",null,66,a.Ad),a.Ic(),a.Ec(6,"br"),a.Ic()),2&e){var i=a.nd(5),n=a.ad();a.pc(2),a.gd("ngIf",n.current_download.percent_complete&&n.current_download.percent_complete>15)("ngIfElse",i),a.pc(1),a.gd("ngIf",n.percentDownloaded-0>99)}}function QM(e,t){}function eL(e,t){1&e&&a.Ec(0,"mat-progress-bar",82)}function tL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-grid-tile"),a.Jc(1,"app-file-card",79,80),a.Wc("removeFile",(function(e){return a.rd(i),a.ad(3).removeFromMp3(e)})),a.Ic(),a.zd(3,eL,1,0,"mat-progress-bar",81),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad(3);a.pc(1),a.gd("file",n)("title",n.title)("name",n.id)("uid",n.uid)("thumbnailURL",n.thumbnailURL)("length",n.duration)("isAudio",!0)("use_youtubedl_archive",r.use_youtubedl_archive),a.pc(2),a.gd("ngIf",r.downloading_content.audio[n.id])}}function iL(e,t){1&e&&a.Ec(0,"mat-progress-bar",82)}function nL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-grid-tile"),a.Jc(1,"app-file-card",84,80),a.Wc("removeFile",(function(){a.rd(i);var e=t.$implicit,n=t.index;return a.ad(4).removePlaylistMp3(e.id,n)})),a.Ic(),a.zd(3,iL,1,0,"mat-progress-bar",81),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad(4);a.pc(1),a.gd("title",n.name)("name",n.id)("thumbnailURL",r.playlist_thumbnails[n.id])("length",null)("isAudio",!0)("playlist",n)("count",n.fileNames.length)("use_youtubedl_archive",r.use_youtubedl_archive),a.pc(2),a.gd("ngIf",r.downloading_content.audio[n.id])}}function aL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-grid-list",83),a.Wc("resize",(function(e){return a.rd(i),a.ad(3).onResize(e)}),!1,a.qd),a.zd(1,nL,4,9,"mat-grid-tile",27),a.Ic()}if(2&e){var n=a.ad(3);a.gd("cols",n.files_cols),a.pc(1),a.gd("ngForOf",n.playlists.audio)}}function rL(e,t){1&e&&(a.Jc(0,"div"),a.Hc(1),a.Nc(2,zM),a.Gc(),a.Ic())}function oL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"mat-grid-list",74),a.Wc("resize",(function(e){return a.rd(i),a.ad(2).onResize(e)}),!1,a.qd),a.zd(2,tL,4,9,"mat-grid-tile",27),a.Ic(),a.Ec(3,"mat-divider"),a.Jc(4,"div",75),a.Jc(5,"h6"),a.Nc(6,NM),a.Ic(),a.Ic(),a.zd(7,aL,2,2,"mat-grid-list",76),a.Jc(8,"div",77),a.Jc(9,"button",78),a.Wc("click",(function(){return a.rd(i),a.ad(2).openCreatePlaylistDialog("audio")})),a.Jc(10,"mat-icon"),a.Bd(11,"add"),a.Ic(),a.Ic(),a.Ic(),a.zd(12,rL,3,0,"div",43),a.Ic()}if(2&e){var n=a.ad(2);a.pc(1),a.gd("cols",n.files_cols),a.pc(1),a.gd("ngForOf",n.mp3s),a.pc(5),a.gd("ngIf",n.playlists.audio.length>0),a.pc(5),a.gd("ngIf",0===n.playlists.audio.length)}}function sL(e,t){1&e&&a.Ec(0,"mat-progress-bar",82)}function cL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-grid-tile"),a.Jc(1,"app-file-card",79,85),a.Wc("removeFile",(function(e){return a.rd(i),a.ad(3).removeFromMp4(e)})),a.Ic(),a.zd(3,sL,1,0,"mat-progress-bar",81),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad(3);a.pc(1),a.gd("file",n)("title",n.title)("name",n.id)("uid",n.uid)("thumbnailURL",n.thumbnailURL)("length",n.duration)("isAudio",!1)("use_youtubedl_archive",r.use_youtubedl_archive),a.pc(2),a.gd("ngIf",r.downloading_content.video[n.id])}}function lL(e,t){1&e&&a.Ec(0,"mat-progress-bar",82)}function uL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-grid-tile"),a.Jc(1,"app-file-card",84,85),a.Wc("removeFile",(function(){a.rd(i);var e=t.$implicit,n=t.index;return a.ad(4).removePlaylistMp4(e.id,n)})),a.Ic(),a.zd(3,lL,1,0,"mat-progress-bar",81),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad(4);a.pc(1),a.gd("title",n.name)("name",n.id)("thumbnailURL",r.playlist_thumbnails[n.id])("length",null)("isAudio",!1)("playlist",n)("count",n.fileNames.length)("use_youtubedl_archive",r.use_youtubedl_archive),a.pc(2),a.gd("ngIf",r.downloading_content.video[n.id])}}function dL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-grid-list",83),a.Wc("resize",(function(e){return a.rd(i),a.ad(3).onResize(e)}),!1,a.qd),a.zd(1,uL,4,9,"mat-grid-tile",27),a.Ic()}if(2&e){var n=a.ad(3);a.gd("cols",n.files_cols),a.pc(1),a.gd("ngForOf",n.playlists.video)}}function hL(e,t){1&e&&(a.Jc(0,"div"),a.Hc(1),a.Nc(2,JM),a.Gc(),a.Ic())}function pL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"mat-grid-list",74),a.Wc("resize",(function(e){return a.rd(i),a.ad(2).onResize(e)}),!1,a.qd),a.zd(2,cL,4,9,"mat-grid-tile",27),a.Ic(),a.Ec(3,"mat-divider"),a.Jc(4,"div",75),a.Jc(5,"h6"),a.Nc(6,BM),a.Ic(),a.Ic(),a.zd(7,dL,2,2,"mat-grid-list",76),a.Jc(8,"div",77),a.Jc(9,"button",78),a.Wc("click",(function(){return a.rd(i),a.ad(2).openCreatePlaylistDialog("video")})),a.Jc(10,"mat-icon"),a.Bd(11,"add"),a.Ic(),a.Ic(),a.Ic(),a.zd(12,hL,3,0,"div",43),a.Ic()}if(2&e){var n=a.ad(2);a.pc(1),a.gd("cols",n.files_cols),a.pc(1),a.gd("ngForOf",n.mp4s),a.pc(5),a.gd("ngIf",n.playlists.video.length>0),a.pc(5),a.gd("ngIf",0===n.playlists.video.length)}}function fL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",71),a.Jc(1,"mat-accordion"),a.Jc(2,"mat-expansion-panel",72),a.Wc("opened",(function(){return a.rd(i),a.ad().accordionOpened("audio")}))("closed",(function(){return a.rd(i),a.ad().accordionClosed("audio")}))("mouseleave",(function(){return a.rd(i),a.ad().accordionLeft("audio")}))("mouseenter",(function(){return a.rd(i),a.ad().accordionEntered("audio")})),a.Jc(3,"mat-expansion-panel-header"),a.Jc(4,"mat-panel-title"),a.Hc(5),a.Nc(6,MM),a.Gc(),a.Ic(),a.Jc(7,"mat-panel-description"),a.Hc(8),a.Nc(9,LM),a.Gc(),a.Ic(),a.Ic(),a.zd(10,oL,13,4,"div",73),a.Ic(),a.Jc(11,"mat-expansion-panel",72),a.Wc("opened",(function(){return a.rd(i),a.ad().accordionOpened("video")}))("closed",(function(){return a.rd(i),a.ad().accordionClosed("video")}))("mouseleave",(function(){return a.rd(i),a.ad().accordionLeft("video")}))("mouseenter",(function(){return a.rd(i),a.ad().accordionEntered("video")})),a.Jc(12,"mat-expansion-panel-header"),a.Jc(13,"mat-panel-title"),a.Hc(14),a.Nc(15,jM),a.Gc(),a.Ic(),a.Jc(16,"mat-panel-description"),a.Hc(17),a.Nc(18,FM),a.Gc(),a.Ic(),a.Ic(),a.zd(19,pL,13,4,"div",73),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(),r=a.nd(38),o=a.nd(40);a.pc(10),a.gd("ngIf",n.mp3s.length>0)("ngIfElse",r),a.pc(9),a.gd("ngIf",n.mp4s.length>0)("ngIfElse",o)}}function mL(e,t){}function gL(e,t){}MM=$localize(_templateObject166()),LM=$localize(_templateObject167()),jM=$localize(_templateObject168()),FM=$localize(_templateObject169()),NM=$localize(_templateObject170()),zM=$localize(_templateObject171()),BM=$localize(_templateObject172()),JM=$localize(_templateObject173());var vL,bL=!1,_L=!1,yL=!1,kL=!1,wL=((vL=function(){function e(t,i,n,a,r,o,s){_classCallCheck(this,e),this.postsService=t,this.youtubeSearch=i,this.snackBar=n,this.router=a,this.dialog=r,this.platform=o,this.route=s,this.youtubeAuthDisabledOverride=!1,this.iOS=!1,this.determinateProgress=!1,this.downloadingfile=!1,this.multiDownloadMode=!1,this.customArgsEnabled=!1,this.customArgs=null,this.customOutputEnabled=!1,this.customOutput=null,this.youtubeAuthEnabled=!1,this.youtubeUsername=null,this.youtubePassword=null,this.urlError=!1,this.path="",this.url="",this.exists="",this.autoStartDownload=!1,this.fileManagerEnabled=!1,this.allowQualitySelect=!1,this.downloadOnlyMode=!1,this.allowMultiDownloadMode=!1,this.use_youtubedl_archive=!1,this.globalCustomArgs=null,this.allowAdvancedDownload=!1,this.useDefaultDownloadingAgent=!0,this.customDownloadingAgent=null,this.cachedAvailableFormats={},this.youtubeSearchEnabled=!1,this.youtubeAPIKey=null,this.results_loading=!1,this.results_showing=!0,this.results=[],this.mp3s=[],this.mp4s=[],this.files_cols=null,this.playlists={audio:[],video:[]},this.playlist_thumbnails={},this.downloading_content={audio:{},video:{}},this.downloads=[],this.current_download=null,this.urlForm=new Jo("",[Mr.required]),this.qualityOptions={video:[{resolution:null,value:"",label:"Max"},{resolution:"3840x2160",value:"2160",label:"2160p (4K)"},{resolution:"2560x1440",value:"1440",label:"1440p"},{resolution:"1920x1080",value:"1080",label:"1080p"},{resolution:"1280x720",value:"720",label:"720p"},{resolution:"720x480",value:"480",label:"480p"},{resolution:"480x360",value:"360",label:"360p"},{resolution:"360x240",value:"240",label:"240p"},{resolution:"256x144",value:"144",label:"144p"}],audio:[{kbitrate:null,value:"",label:"Max"},{kbitrate:"256",value:"256K",label:"256 Kbps"},{kbitrate:"160",value:"160K",label:"160 Kbps"},{kbitrate:"128",value:"128K",label:"128 Kbps"},{kbitrate:"96",value:"96K",label:"96 Kbps"},{kbitrate:"70",value:"70K",label:"70 Kbps"},{kbitrate:"50",value:"50K",label:"50 Kbps"},{kbitrate:"32",value:"32K",label:"32 Kbps"}]},this.selectedQuality="",this.formats_loading=!1,this.last_valid_url="",this.last_url_check=0,this.test_download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1,error:!1},this.simulatedOutput="",this.audioOnly=!1}return _createClass(e,[{key:"configLoad",value:function(){return jR(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadConfig();case 2:this.autoStartDownload&&this.downloadClicked(),setInterval((function(){return t.getSimulatedOutput()}),1e3);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"loadConfig",value:function(){return jR(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,i,n,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.fileManagerEnabled=this.postsService.config.Extra.file_manager_enabled,this.downloadOnlyMode=this.postsService.config.Extra.download_only_mode,this.allowMultiDownloadMode=this.postsService.config.Extra.allow_multi_download_mode,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.use_youtubedl_archive=this.postsService.config.Downloader.use_youtubedl_archive,this.globalCustomArgs=this.postsService.config.Downloader.custom_args,this.youtubeSearchEnabled=this.postsService.config.API&&this.postsService.config.API.use_youtube_API&&this.postsService.config.API.youtube_API_key,this.youtubeAPIKey=this.youtubeSearchEnabled?this.postsService.config.API.youtube_API_key:null,this.allowQualitySelect=this.postsService.config.Extra.allow_quality_select,this.allowAdvancedDownload=this.postsService.config.Advanced.allow_advanced_download&&(!this.postsService.isLoggedIn||this.postsService.permissions.includes("advanced_download")),this.useDefaultDownloadingAgent=this.postsService.config.Advanced.use_default_downloading_agent,this.customDownloadingAgent=this.postsService.config.Advanced.custom_downloading_agent,this.fileManagerEnabled&&(this.getMp3s(),this.getMp4s()),this.youtubeSearchEnabled&&this.youtubeAPIKey&&(this.youtubeSearch.initializeAPI(this.youtubeAPIKey),this.attachToInput()),this.allowAdvancedDownload&&(null!==localStorage.getItem("customArgsEnabled")&&(this.customArgsEnabled="true"===localStorage.getItem("customArgsEnabled")),null!==localStorage.getItem("customOutputEnabled")&&(this.customOutputEnabled="true"===localStorage.getItem("customOutputEnabled")),null!==localStorage.getItem("youtubeAuthEnabled")&&(this.youtubeAuthEnabled="true"===localStorage.getItem("youtubeAuthEnabled")),t=localStorage.getItem("customArgs"),i=localStorage.getItem("customOutput"),n=localStorage.getItem("youtubeUsername"),t&&"null"!==t&&(this.customArgs=t),i&&"null"!==i&&(this.customOutput=i),n&&"null"!==n&&(this.youtubeUsername=n)),e.abrupt("return",(setInterval((function(){a.current_download&&a.getCurrentDownload()}),500),!0));case 2:case"end":return e.stop()}}),e,this)})))}},{key:"ngOnInit",value:function(){var e=this;this.postsService.initialized?this.configLoad():this.postsService.service_initialized.subscribe((function(t){t&&e.configLoad()})),this.postsService.config_reloaded.subscribe((function(t){t&&e.loadConfig()})),this.iOS=this.platform.IOS,null!==localStorage.getItem("audioOnly")&&(this.audioOnly="true"===localStorage.getItem("audioOnly")),null!==localStorage.getItem("multiDownloadMode")&&(this.multiDownloadMode="true"===localStorage.getItem("multiDownloadMode")),this.route.snapshot.paramMap.get("url")&&(this.url=decodeURIComponent(this.route.snapshot.paramMap.get("url")),this.audioOnly="true"===this.route.snapshot.paramMap.get("audioOnly"),this.autoStartDownload=!0),this.setCols()}},{key:"getMp3s",value:function(){var e=this;this.postsService.getMp3s().subscribe((function(t){var i=t.mp3s,n=t.playlists;JSON.stringify(e.mp3s)!==JSON.stringify(i)&&(e.mp3s=i),e.playlists.audio=n;for(var a=0;a2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||o)if(!1===a&&this.downloadOnlyMode&&!this.iOS)if(n){var s=e[0].split(" ")[0]+e[1].split(" ")[0];this.downloadPlaylist(e,"audio",s)}else this.downloadAudioFile(decodeURI(e));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(n?["/player",{fileNames:e.join("|nvr|"),type:"audio"}]:["/player",{type:"audio",uid:t}]);this.removeDownloadFromCurrentDownloads(r),this.fileManagerEnabled&&(this.getMp3s(),setTimeout((function(){i.audioFileCards.forEach((function(e){e.onHoverResponse()}))}),200))}},{key:"downloadHelperMp4",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||o)if(!1===a&&this.downloadOnlyMode)if(n){var s=e[0].split(" ")[0]+e[1].split(" ")[0];this.downloadPlaylist(e,"video",s)}else this.downloadVideoFile(decodeURI(e));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(n?["/player",{fileNames:e.join("|nvr|"),type:"video"}]:["/player",{type:"video",uid:t}]);this.removeDownloadFromCurrentDownloads(r),this.fileManagerEnabled&&(this.getMp4s(),setTimeout((function(){i.videoFileCards.forEach((function(e){e.onHoverResponse()}))}),200))}},{key:"downloadClicked",value:function(){var e=this;if(this.ValidURL(this.url)){this.urlError=!1,this.path="";var t=this.customArgsEnabled?this.customArgs:null,i=this.customOutputEnabled?this.customOutput:null,n=this.youtubeAuthEnabled&&this.youtubeUsername?this.youtubeUsername:null,a=this.youtubeAuthEnabled&&this.youtubePassword?this.youtubePassword:null;if(this.allowAdvancedDownload&&(t&&localStorage.setItem("customArgs",t),i&&localStorage.setItem("customOutput",i),n&&localStorage.setItem("youtubeUsername",n)),this.audioOnly){var r={uid:Object(nM.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(r),this.current_download||this.multiDownloadMode||(this.current_download=r),this.downloadingfile=!0;var o=null;""!==this.selectedQuality&&(o=this.getSelectedAudioFormat()),this.postsService.makeMP3(this.url,""===this.selectedQuality?null:this.selectedQuality,o,t,i,n,a,r.uid).subscribe((function(t){r.downloading=!1,r.percent_complete=100;var i=!!t.file_names;e.path=i?t.file_names:t.audiopathEncoded,e.current_download=null,"-1"!==e.path&&e.downloadHelperMp3(e.path,t.uid,i,!1,r)}),(function(t){e.downloadingfile=!1,e.current_download=null,r.downloading=!1;var i=e.downloads.indexOf(r);-1!==i&&e.downloads.splice(i),e.openSnackBar("Download failed!","OK.")}))}else{var s={uid:Object(nM.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;var c=this.getSelectedVideoFormat();this.postsService.makeMP4(this.url,""===this.selectedQuality?null:this.selectedQuality,c,t,i,n,a,s.uid).subscribe((function(t){s.downloading=!1,s.percent_complete=100;var i=!!t.file_names;e.path=i?t.file_names:t.videopathEncoded,e.current_download=null,"-1"!==e.path&&e.downloadHelperMp4(e.path,t.uid,i,!1,s)}),(function(t){e.downloadingfile=!1,e.current_download=null,s.downloading=!1;var i=e.downloads.indexOf(s);-1!==i&&e.downloads.splice(i),e.openSnackBar("Download failed!","OK.")}))}this.multiDownloadMode&&(this.url="",this.downloadingfile=!1)}else this.urlError=!0}},{key:"cancelDownload",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e?this.removeDownloadFromCurrentDownloads(e):(this.downloadingfile=!1,this.current_download.downloading=!1,this.current_download=null)}},{key:"getSelectedAudioFormat",value:function(){return""===this.selectedQuality?null:this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats?this.cachedAvailableFormats[this.url].formats.audio[this.selectedQuality].format_id:null}},{key:"getSelectedVideoFormat",value:function(){if(""===this.selectedQuality)return null;if(this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats){var e=this.cachedAvailableFormats[this.url].formats.video;if(e.best_audio_format&&""!==this.selectedQuality)return e[this.selectedQuality].format_id+"+"+e.best_audio_format}return null}},{key:"getDownloadByUID",value:function(e){var t=this.downloads.findIndex((function(t){return t.uid===e}));return-1!==t?this.downloads[t]:null}},{key:"removeDownloadFromCurrentDownloads",value:function(e){this.current_download===e&&(this.current_download=null);var t=this.downloads.indexOf(e);return-1!==t&&(this.downloads.splice(t,1),!0)}},{key:"downloadAudioFile",value:function(e){var t=this;this.downloading_content.audio[e]=!0,this.postsService.downloadFileFromServer(e,"audio").subscribe((function(i){t.downloading_content.audio[e]=!1;var n=i;Object(zR.saveAs)(n,decodeURIComponent(e)+".mp3"),t.fileManagerEnabled||t.postsService.deleteFile(e,!0).subscribe((function(e){t.getMp3s()}))}))}},{key:"downloadVideoFile",value:function(e){var t=this;this.downloading_content.video[e]=!0,this.postsService.downloadFileFromServer(e,"video").subscribe((function(i){t.downloading_content.video[e]=!1;var n=i;Object(zR.saveAs)(n,decodeURIComponent(e)+".mp4"),t.fileManagerEnabled||t.postsService.deleteFile(e,!1).subscribe((function(e){t.getMp4s()}))}))}},{key:"downloadPlaylist",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.postsService.downloadFileFromServer(e,t,n).subscribe((function(e){a&&(i.downloading_content[t][a]=!1);var r=e;Object(zR.saveAs)(r,n+".zip")}))}},{key:"clearInput",value:function(){this.url="",this.results_showing=!1}},{key:"onInputBlur",value:function(){this.results_showing=!1}},{key:"visitURL",value:function(e){window.open(e)}},{key:"useURL",value:function(e){this.results_showing=!1,this.url=e}},{key:"inputChanged",value:function(e){""!==e&&e?this.ValidURL(e)&&(this.results_showing=!1):this.results_showing=!1}},{key:"ValidURL",value:function(e){var t=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(e);return!!t&&(new RegExp(/(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'<> #]+)/),t&&Date.now()-this.last_url_check>1e3&&(e!==this.last_valid_url&&this.allowQualitySelect&&this.getURLInfo(e),this.last_valid_url=e),t)}},{key:"openSnackBar",value:function(e,t){this.snackBar.open(e,t,{duration:2e3})}},{key:"getURLInfo",value:function(e){var t=this;e.includes("playlist")||(this.cachedAvailableFormats[e]||(this.cachedAvailableFormats[e]={}),this.cachedAvailableFormats[e]&&this.cachedAvailableFormats[e].formats||(this.cachedAvailableFormats[e].formats_loading=!0,this.postsService.getFileInfo([e],"irrelevant",!0).subscribe((function(i){t.cachedAvailableFormats[e].formats_loading=!1;var n=i.result;if(n&&n.formats){var a=t.getAudioAndVideoFormats(n.formats);t.cachedAvailableFormats[e].formats={audio:a[0],video:a[1]}}else t.errorFormats(e)}),(function(i){t.errorFormats(e)}))))}},{key:"getSimulatedOutput",value:function(){var e,t,i=this.globalCustomArgs&&""!==this.globalCustomArgs,n=[],a=["youtube-dl",this.url];if(this.customArgsEnabled&&this.customArgs)return this.simulatedOutput=a.join(" ")+" "+this.customArgs.split(",,").join(" "),this.simulatedOutput;(e=n).push.apply(e,a);var r=this.audioOnly?this.audioFolderPath:this.videoFolderPath,o=this.audioOnly?".mp3":".mp4",s=["-o",r+"%(title)s"+o];if(this.customOutputEnabled&&this.customOutput&&(s=["-o",r+this.customOutput+o]),this.useDefaultDownloadingAgent||"aria2c"!==this.customDownloadingAgent||n.push("--external-downloader","aria2c"),(t=n).push.apply(t,_toConsumableArray(s)),this.audioOnly){var c,l=[],u=this.getSelectedAudioFormat();u?l.push("-f",u):this.selectedQuality&&l.push("--audio-quality",this.selectedQuality),(c=n).splice.apply(c,[2,0].concat(l)),n.push("-x","--audio-format","mp3","--write-info-json","--print-json")}else{var d,h=["-f","bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"],p=this.getSelectedVideoFormat();p?h=["-f",p]:this.selectedQuality&&(h=["bestvideo[height=".concat(this.selectedQuality,"]+bestaudio/best[height=").concat(this.selectedQuality,"]")]),(d=n).splice.apply(d,[2,0].concat(_toConsumableArray(h))),n.push("--write-info-json","--print-json")}return this.use_youtubedl_archive&&n.push("--download-archive","archive.txt"),i&&(n=n.concat(this.globalCustomArgs.split(",,"))),this.simulatedOutput=n.join(" "),this.simulatedOutput}},{key:"errorFormats",value:function(e){this.cachedAvailableFormats[e].formats_loading=!1,console.error("Could not load formats for url "+e)}},{key:"attachToInput",value:function(){var e=this;si.a.fromEvent(this.urlInput.nativeElement,"keyup").map((function(e){return e.target.value})).filter((function(e){return e.length>1})).debounceTime(250).do((function(){return e.results_loading=!0})).map((function(t){return e.youtubeSearch.search(t)})).switch().subscribe((function(t){e.results_loading=!1,""!==e.url&&t&&t.length>0?(e.results=t,e.results_showing=!0):e.results_showing=!1}),(function(t){console.log(t),e.results_loading=!1,e.results_showing=!1}),(function(){e.results_loading=!1}))}},{key:"onResize",value:function(e){this.setCols()}},{key:"videoModeChanged",value:function(e){this.selectedQuality="",localStorage.setItem("audioOnly",e.checked.toString())}},{key:"multiDownloadModeChanged",value:function(e){localStorage.setItem("multiDownloadMode",e.checked.toString())}},{key:"customArgsEnabledChanged",value:function(e){localStorage.setItem("customArgsEnabled",e.checked.toString()),!0===e.checked&&this.customOutputEnabled&&(this.customOutputEnabled=!1,localStorage.setItem("customOutputEnabled","false"),this.youtubeAuthEnabled=!1,localStorage.setItem("youtubeAuthEnabled","false"))}},{key:"customOutputEnabledChanged",value:function(e){localStorage.setItem("customOutputEnabled",e.checked.toString()),!0===e.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}},{key:"youtubeAuthEnabledChanged",value:function(e){localStorage.setItem("youtubeAuthEnabled",e.checked.toString()),!0===e.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}},{key:"getAudioAndVideoFormats",value:function(e){for(var t={},i={},n=0;ni&&(t=r.format_id,i=r.bitrate)}return t}},{key:"accordionEntered",value:function(e){"audio"===e?(bL=!0,this.audioFileCards.forEach((function(e){e.onHoverResponse()}))):"video"===e&&(_L=!0,this.videoFileCards.forEach((function(e){e.onHoverResponse()})))}},{key:"accordionLeft",value:function(e){"audio"===e?bL=!1:"video"===e&&(_L=!1)}},{key:"accordionOpened",value:function(e){"audio"===e?yL=!0:"video"===e&&(kL=!0)}},{key:"accordionClosed",value:function(e){"audio"===e?yL=!1:"video"===e&&(kL=!1)}},{key:"openCreatePlaylistDialog",value:function(e){var t=this;this.dialog.open(iM,{data:{filesToSelectFrom:"audio"===e?this.mp3s:this.mp4s,type:e}}).afterClosed().subscribe((function(i){i?("audio"===e&&t.getMp3s(),"video"===e&&t.getMp4s(),t.openSnackBar("Successfully created playlist!","")):!1===i&&t.openSnackBar("ERROR: failed to create playlist!","")}))}},{key:"openArgsModifierDialog",value:function(){var e=this;this.dialog.open(QD,{data:{initial_args:this.customArgs}}).afterClosed().subscribe((function(t){null!=t&&(e.customArgs=t)}))}},{key:"getCurrentDownload",value:function(){var e=this;if(this.current_download){var t=this.current_download.ui_uid?this.current_download.ui_uid:this.current_download.uid;this.postsService.getCurrentDownload(this.postsService.session_id,t).subscribe((function(i){i.download&&t===i.download.ui_uid&&(e.current_download=i.download,e.percentDownloaded=e.current_download.percent_complete)}))}}}]),e}()).\u0275fac=function(e){return new(e||vL)(a.Dc(YO),a.Dc(JR),a.Dc(A_),a.Dc(bO),a.Dc(Th),a.Dc(Ii),a.Dc(cI))},vL.\u0275cmp=a.xc({type:vL,selectors:[["app-root"]],viewQuery:function(e,t){var i;1&e&&(a.Fd(aM,!0,a.r),a.Fd(rM,!0),a.Fd(oM,!0)),2&e&&(a.md(i=a.Xc())&&(t.urlInput=i.first),a.md(i=a.Xc())&&(t.audioFileCards=i),a.md(i=a.Xc())&&(t.videoFileCards=i))},decls:41,vars:16,consts:[[1,"big","demo-basic"],["id","card",2,"margin-right","20px","margin-left","20px",3,"ngClass"],[2,"position","relative"],[1,"example-form"],[1,"container-fluid"],[1,"row"],[1,"col-12",3,"ngClass"],["color","accent",1,"example-full-width"],["matInput","","type","url","name","url",2,"padding-right","25px",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["urlinput",""],["type","button","mat-icon-button","",1,"input-clear-button",3,"click"],["class","col-7 col-sm-3",4,"ngIf"],["class","results-div",4,"ngIf"],[2,"float","left","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["style","float: right; margin-top: -12px",3,"disabled","ngModel","change","ngModelChange",4,"ngIf"],["type","submit","mat-stroked-button","","color","accent",2,"margin-left","8px","margin-bottom","8px",3,"disabled","click"],["style","float: right","mat-stroked-button","","color","warn",3,"click",4,"ngIf"],["class","big demo-basic",4,"ngIf"],["style","margin-top: 15px;","class","big demo-basic",4,"ngIf"],["class","centered big","id","bar_div",4,"ngIf","ngIfElse"],["nofile",""],["style","margin: 20px",4,"ngIf"],["nomp3s",""],["nomp4s",""],[1,"col-7","col-sm-3"],["color","accent",2,"display","inline-block","width","inherit","min-width","120px"],[3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["class","spinner-div",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value"],[1,"spinner-div"],[3,"diameter"],[1,"results-div"],[1,"result-card","mat-elevation-z7",3,"ngClass"],[1,"search-card-title"],[2,"font-size","12px","margin-bottom","10px"],["mat-flat-button","","color","primary",2,"float","left",3,"click"],["mat-stroked-button","","color","primary",2,"float","right",3,"click"],[2,"float","right","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["mat-stroked-button","","color","warn",2,"float","right",3,"click"],[2,"margin-left","20px","margin-right","20px"],[1,"big","no-border-radius-top"],[4,"ngIf"],[1,"container",2,"padding-bottom","20px"],[1,"col-12","col-sm-6"],["color","accent",2,"z-index","999",3,"disabled","ngModel","ngModelOptions","change","ngModelChange"],["mat-icon-button","",1,"edit-button",3,"click"],["color","accent",1,"advanced-input",2,"margin-bottom","42px"],["matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["class","col-12 col-sm-6 mt-2",4,"ngIf"],[1,"col-12","col-sm-6","mt-2"],["color","accent",1,"advanced-input"],["color","accent",1,"advanced-input",2,"margin-top","31px"],["type","password","matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],[1,"big","demo-basic",2,"margin-top","15px"],["id","card",2,"margin-right","20px","margin-left","20px"],[1,"container"],["class","row",4,"ngFor","ngForOf"],[2,"width","100%",3,"download","queueNumber","cancelDownload"],["style","position: relative",4,"ngIf"],["id","bar_div",1,"centered","big"],[1,"margined"],["style","display: inline-block; width: 100%; padding-left: 20px",3,"ngClass",4,"ngIf","ngIfElse"],["class","spinner",4,"ngIf"],["indeterminateprogress",""],[2,"display","inline-block","width","100%","padding-left","20px",3,"ngClass"],["mode","determinate",2,"border-radius","5px",3,"value"],[1,"spinner"],["mode","indeterminate",2,"border-radius","5px"],[2,"margin","20px"],[1,"big",3,"opened","closed","mouseleave","mouseenter"],[4,"ngIf","ngIfElse"],["rowHeight","150px",2,"margin-bottom","15px",3,"cols","resize"],[2,"width","100%","text-align","center","margin-top","10px"],["rowHeight","150px",3,"cols","resize",4,"ngIf"],[1,"add-playlist-button"],["mat-fab","",3,"click"],[3,"file","title","name","uid","thumbnailURL","length","isAudio","use_youtubedl_archive","removeFile"],["audiofilecard",""],["class","download-progress-bar","mode","indeterminate",4,"ngIf"],["mode","indeterminate",1,"download-progress-bar"],["rowHeight","150px",3,"cols","resize"],[3,"title","name","thumbnailURL","length","isAudio","playlist","count","use_youtubedl_archive","removeFile"],["videofilecard",""]],template:function(e,t){if(1&e&&(a.Ec(0,"br"),a.Jc(1,"div",0),a.Jc(2,"mat-card",1),a.Jc(3,"mat-card-title"),a.Hc(4),a.Nc(5,YR),a.Gc(),a.Ic(),a.Jc(6,"mat-card-content"),a.Jc(7,"div",2),a.Jc(8,"form",3),a.Jc(9,"div",4),a.Jc(10,"div",5),a.Jc(11,"div",6),a.Jc(12,"mat-form-field",7),a.Jc(13,"input",8,9),a.Wc("keyup.enter",(function(){return t.downloadClicked()}))("ngModelChange",(function(e){return t.inputChanged(e)}))("ngModelChange",(function(e){return t.url=e})),a.Ic(),a.Ic(),a.Jc(15,"button",10),a.Wc("click",(function(){return t.clearInput()})),a.Jc(16,"mat-icon"),a.Bd(17,"clear"),a.Ic(),a.Ic(),a.Ic(),a.zd(18,pM,8,5,"div",11),a.Ic(),a.Ic(),a.zd(19,yM,2,1,"div",12),a.Ic(),a.Ec(20,"br"),a.Jc(21,"mat-checkbox",13),a.Wc("change",(function(e){return t.videoModeChanged(e)}))("ngModelChange",(function(e){return t.audioOnly=e})),a.Hc(22),a.Nc(23,ZR),a.Gc(),a.Ic(),a.zd(24,kM,3,2,"mat-checkbox",14),a.Ic(),a.Ic(),a.Jc(25,"mat-card-actions"),a.Jc(26,"button",15),a.Wc("click",(function(){return t.downloadClicked()})),a.Hc(27),a.Nc(28,QR),a.Gc(),a.Ic(),a.zd(29,wM,3,0,"button",16),a.Ic(),a.Ic(),a.Ic(),a.zd(30,UM,39,19,"div",17),a.zd(31,$M,4,1,"div",18),a.Ec(32,"br"),a.zd(33,ZM,7,3,"div",19),a.zd(34,QM,0,0,"ng-template",null,20,a.Ad),a.zd(36,fL,20,4,"div",21),a.zd(37,mL,0,0,"ng-template",null,22,a.Ad),a.zd(39,gL,0,0,"ng-template",null,23,a.Ad)),2&e){var i=a.nd(35);a.pc(2),a.gd("ngClass",t.allowAdvancedDownload?"no-border-radius-bottom":null),a.pc(9),a.gd("ngClass",t.allowQualitySelect?"col-sm-9":null),a.pc(2),a.gd("ngModel",t.url)("placeholder","URL"+(t.youtubeSearchEnabled?" or search":"")),a.pc(5),a.gd("ngIf",t.allowQualitySelect),a.pc(1),a.gd("ngIf",t.results_showing),a.pc(2),a.gd("disabled",t.current_download)("ngModel",t.audioOnly),a.pc(3),a.gd("ngIf",t.allowMultiDownloadMode),a.pc(2),a.gd("disabled",t.downloadingfile),a.pc(3),a.gd("ngIf",!!t.current_download),a.pc(1),a.gd("ngIf",t.allowAdvancedDownload),a.pc(1),a.gd("ngIf",t.multiDownloadMode&&t.downloads.length>0&&!t.current_download),a.pc(2),a.gd("ngIf",t.current_download&&t.current_download.downloading)("ngIfElse",i),a.pc(3),a.gd("ngIf",t.fileManagerEnabled&&(!t.postsService.isLoggedIn||t.postsService.permissions.includes("filemanager")))}},styles:[".demo-card[_ngcontent-%COMP%]{margin:16px}.demo-basic[_ngcontent-%COMP%]{padding:0}.demo-basic[_ngcontent-%COMP%] .mat-card-content[_ngcontent-%COMP%]{padding:16px}mat-toolbar.top[_ngcontent-%COMP%]{height:60px;width:100%;text-align:center}.big[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.example-full-width[_ngcontent-%COMP%]{width:100%}.example-80-width[_ngcontent-%COMP%]{width:80%}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:24px}.spinner[_ngcontent-%COMP%]{position:absolute;display:inline-block;margin-left:-28px;margin-top:-10px}.make-room-for-spinner[_ngcontent-%COMP%]{padding-right:40px}.equal-sizes[_ngcontent-%COMP%]{padding-right:20px}.search-card-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.input-clear-button[_ngcontent-%COMP%]{position:absolute;right:5px;top:22px}.spinner-div[_ngcontent-%COMP%]{display:inline-block;position:absolute;top:15px;right:-40px}.margined[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.results-div[_ngcontent-%COMP%]{position:relative;top:-15px}.first-result-card[_ngcontent-%COMP%]{border-radius:4px 4px 0 0!important}.last-result-card[_ngcontent-%COMP%]{border-radius:0 0 4px 4px!important}.only-result-card[_ngcontent-%COMP%]{border-radius:4px!important}.result-card[_ngcontent-%COMP%]{height:120px;border-radius:0;padding-bottom:5px}.download-progress-bar[_ngcontent-%COMP%]{z-index:999;position:absolute;bottom:0;width:150px;border-radius:0 0 4px 4px;overflow:hidden;bottom:12px}.add-playlist-button[_ngcontent-%COMP%]{float:right}.advanced-input[_ngcontent-%COMP%]{width:100%}.edit-button[_ngcontent-%COMP%]{margin-left:10px;top:-5px}.no-border-radius-bottom[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.no-border-radius-top[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}@media (max-width:576px){.download-progress-bar[_ngcontent-%COMP%]{width:125px}}"]}),vL);si.a.merge=al.a;var CL,xL,SL,IL,OL,DL,EL,AL=i("zuWl"),TL=i.n(AL);CL=$localize(_templateObject174()),xL=$localize(_templateObject175()),SL=$localize(_templateObject176()),IL=$localize(_templateObject177()),OL=$localize(_templateObject178()),DL=$localize(_templateObject179()),EL=$localize(_templateObject180());var PL,RL,ML=((PL=function(){function e(t){_classCallCheck(this,e),this.data=t}return _createClass(e,[{key:"ngOnInit",value:function(){this.filesize=TL.a,this.data&&(this.file=this.data.file)}}]),e}()).\u0275fac=function(e){return new(e||PL)(a.Dc(Oh))},PL.\u0275cmp=a.xc({type:PL,selectors:[["app-video-info-dialog"]],decls:56,vars:8,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-label"],[1,"info-item-value"],["target","_blank",3,"href"],["mat-button","","mat-dialog-close",""]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Bd(1),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div",1),a.Jc(4,"div",2),a.Jc(5,"strong"),a.Hc(6),a.Nc(7,CL),a.Gc(),a.Bd(8,"\xa0"),a.Ic(),a.Ic(),a.Jc(9,"div",3),a.Bd(10),a.Ic(),a.Ic(),a.Jc(11,"div",1),a.Jc(12,"div",2),a.Jc(13,"strong"),a.Hc(14),a.Nc(15,xL),a.Gc(),a.Bd(16,"\xa0"),a.Ic(),a.Ic(),a.Jc(17,"div",3),a.Jc(18,"a",4),a.Bd(19),a.Ic(),a.Ic(),a.Ic(),a.Jc(20,"div",1),a.Jc(21,"div",2),a.Jc(22,"strong"),a.Hc(23),a.Nc(24,SL),a.Gc(),a.Bd(25,"\xa0"),a.Ic(),a.Ic(),a.Jc(26,"div",3),a.Bd(27),a.Ic(),a.Ic(),a.Jc(28,"div",1),a.Jc(29,"div",2),a.Jc(30,"strong"),a.Hc(31),a.Nc(32,IL),a.Gc(),a.Bd(33,"\xa0"),a.Ic(),a.Ic(),a.Jc(34,"div",3),a.Bd(35),a.Ic(),a.Ic(),a.Jc(36,"div",1),a.Jc(37,"div",2),a.Jc(38,"strong"),a.Hc(39),a.Nc(40,OL),a.Gc(),a.Bd(41,"\xa0"),a.Ic(),a.Ic(),a.Jc(42,"div",3),a.Bd(43),a.Ic(),a.Ic(),a.Jc(44,"div",1),a.Jc(45,"div",2),a.Jc(46,"strong"),a.Hc(47),a.Nc(48,DL),a.Gc(),a.Bd(49,"\xa0"),a.Ic(),a.Ic(),a.Jc(50,"div",3),a.Bd(51),a.Ic(),a.Ic(),a.Ic(),a.Jc(52,"mat-dialog-actions"),a.Jc(53,"button",5),a.Hc(54),a.Nc(55,EL),a.Gc(),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.Cd(t.file.title),a.pc(9),a.Cd(t.file.title),a.pc(8),a.gd("href",t.file.url,a.td),a.pc(1),a.Cd(t.file.url),a.pc(8),a.Cd(t.file.uploader?t.file.uploader:"N/A"),a.pc(8),a.Cd(t.file.size?t.filesize(t.file.size):"N/A"),a.pc(8),a.Cd(t.file.path?t.file.path:"N/A"),a.pc(8),a.Cd(t.file.upload_date?t.file.upload_date:"N/A"))},directives:[Mh,Lh,jh,Za,Rh],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px;width:100%}.info-item-value[_ngcontent-%COMP%]{font-size:13px;display:inline-block;width:70%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.info-item-label[_ngcontent-%COMP%]{display:inline-block;width:30%;vertical-align:top}.a-wrap[_ngcontent-%COMP%]{word-wrap:break-word}"]}),PL);RL=$localize(_templateObject181());var LL=["placeholder",$localize(_templateObject182())];function jL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-button-toggle",11),a.Jc(1,"div"),a.Jc(2,"div",12),a.Bd(3),a.Ic(),a.Jc(4,"button",13),a.Wc("click",(function(){a.rd(i);var e=t.index;return a.ad().removeContent(e)})),a.Jc(5,"mat-icon"),a.Bd(6,"cancel"),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit;a.gd("checked",!1),a.pc(3),a.Cd(n)}}function FL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",14),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad().addContent(e)})),a.Bd(1),a.Ic()}if(2&e){var n=t.$implicit;a.pc(1),a.Cd(n)}}var NL,zL=((NL=function(){function e(t,i,n){_classCallCheck(this,e),this.data=t,this.postsService=i,this.dialogRef=n,this.original_playlist=null,this.playlist=null,this.available_files=[],this.all_files=[],this.playlist_updated=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.data&&(this.playlist=JSON.parse(JSON.stringify(this.data.playlist)),this.original_playlist=JSON.parse(JSON.stringify(this.data.playlist)),this.getFiles())}},{key:"getFiles",value:function(){var e=this;"audio"===this.playlist.type?this.postsService.getMp3s().subscribe((function(t){e.processFiles(t.mp3s)})):this.postsService.getMp4s().subscribe((function(t){e.processFiles(t.mp4s)}))}},{key:"processFiles",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&(this.all_files=t.map((function(e){return e.id}))),this.available_files=this.all_files.filter((function(t){return!e.playlist.fileNames.includes(t)}))}},{key:"updatePlaylist",value:function(){var e=this;this.postsService.updatePlaylist(this.playlist).subscribe((function(t){e.playlist_updated=!0,e.postsService.openSnackBar("Playlist updated successfully."),e.getPlaylist()}))}},{key:"playlistChanged",value:function(){return JSON.stringify(this.playlist)===JSON.stringify(this.original_playlist)}},{key:"getPlaylist",value:function(){var e=this;this.postsService.getPlaylist(this.playlist.id,this.playlist.type,null).subscribe((function(t){t.playlist&&(e.playlist=t.playlist,e.original_playlist=JSON.parse(JSON.stringify(e.playlist)))}))}},{key:"addContent",value:function(e){this.playlist.fileNames.push(e),this.processFiles()}},{key:"removeContent",value:function(e){this.playlist.fileNames.splice(e,1),this.processFiles()}},{key:"drop",value:function(e){BC(this.playlist.fileNames,e.previousIndex,e.currentIndex)}}]),e}()).\u0275fac=function(e){return new(e||NL)(a.Dc(Oh),a.Dc(YO),a.Dc(Ih))},NL.\u0275cmp=a.xc({type:NL,selectors:[["app-modify-playlist"]],decls:20,vars:7,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["cdkDropList","","vertical","","name","videoSelect","aria-label","Video Select",1,"media-list",2,"width","80%","left","9%",3,"cdkDropListDropped"],["group","matButtonToggleGroup"],["class","media-box","cdkDrag","",3,"checked",4,"ngFor","ngForOf"],[1,"add-content-button"],["mat-stroked-button","",3,"disabled","matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-raised-button","","color","accent",3,"disabled","click"],["cdkDrag","",1,"media-box",3,"checked"],[1,"playlist-item-text"],["mat-icon-button","",1,"remove-item-button",3,"click"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(a.Jc(0,"h4",0),a.Hc(1),a.Nc(2,RL),a.Gc(),a.Ic(),a.Jc(3,"mat-dialog-content"),a.Jc(4,"div"),a.Jc(5,"mat-form-field",1),a.Jc(6,"input",2),a.Pc(7,LL),a.Wc("ngModelChange",(function(e){return t.playlist.name=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(8,"mat-button-toggle-group",3,4),a.Wc("cdkDropListDropped",(function(e){return t.drop(e)})),a.zd(10,jL,7,2,"mat-button-toggle",5),a.Ic(),a.Jc(11,"div",6),a.Jc(12,"button",7),a.Bd(13,"Add more content"),a.Ic(),a.Ic(),a.Jc(14,"mat-menu",null,8),a.zd(16,FL,2,1,"button",9),a.Ic(),a.Ic(),a.Jc(17,"mat-dialog-actions"),a.Jc(18,"button",10),a.Wc("click",(function(){return t.updatePlaylist()})),a.Bd(19,"Save"),a.Ic(),a.Ic()),2&e){var i=a.nd(15);a.pc(6),a.gd("ngModel",t.playlist.name),a.pc(4),a.gd("ngForOf",t.playlist.fileNames),a.pc(2),a.gd("disabled",0===t.available_files.length)("matMenuTriggerFor",i),a.pc(4),a.gd("ngForOf",t.available_files),a.pc(2),a.gd("disabled",!t.playlistChanged())("disabled",t.playlistChanged())}},directives:[Mh,Lh,Ud,Pm,_r,Dr,es,vc,xx,yt.s,Za,zg,Lg,jh,_c,fx,_m,Eg],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.media-box[_ngcontent-%COMP%]:last-child{border:none}.media-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .media-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.add-content-button[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:10px}.remove-item-button[_ngcontent-%COMP%]{right:10px;position:absolute;top:4px}.playlist-item-text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%;margin:0 auto}"]}),NL),BL=new si.a(Ht.a);function JL(e,t){e.className=e.className.replace(t,"")}function VL(e,t){e.className.includes(t)||(e.className+=" ".concat(t))}function HL(){return"undefined"!=typeof window?window.navigator:void 0}function UL(e){return Boolean(e.parentElement&&"picture"===e.parentElement.nodeName.toLowerCase())}function GL(e){return"img"===e.nodeName.toLowerCase()}function WL(e,t,i){return GL(e)?i&&"srcset"in e?e.srcset=t:e.src=t:e.style.backgroundImage="url('".concat(t,"')"),e}function qL(e){return function(t){for(var i=t.parentElement.getElementsByTagName("source"),n=0;n1&&void 0!==arguments[1]?arguments[1]:gj;return e.customObservable?e.customObservable:t(e)}}),bj=Object.assign({},tj,{isVisible:function(){return!0},getObservable:function(){return Bt("load")},loadImage:function(e){return[e.imagePath]}}),_j=((rj=function(){function e(t,i,n,r){_classCallCheck(this,e),this.onStateChange=new a.u,this.onLoad=new a.u,this.elementRef=t,this.ngZone=i,this.propertyChanges$=new $l,this.platformId=n,this.hooks=function(e,t){var i=vj,n=t&&t.isBot?t.isBot:i.isBot;if(n(HL(),e))return Object.assign(bj,{isBot:n});if(!t)return i;var a={};return Object.assign(a,t.preset?t.preset:i),Object.keys(t).filter((function(e){return"preset"!==e})).forEach((function(e){a[e]=t[e]})),a}(n,r)}return _createClass(e,[{key:"ngOnChanges",value:function(){!0!==this.debug||this.debugSubscription||(this.debugSubscription=this.onStateChange.subscribe((function(e){return console.log(e)}))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange})}},{key:"ngAfterContentInit",value:function(){var e=this;if(Object(yt.J)(this.platformId)&&!this.hooks.isBot(HL(),this.platformId))return null;this.ngZone.runOutsideAngular((function(){e.loadSubscription=e.propertyChanges$.pipe(Gt((function(e){return e.onStateChange.emit({reason:"setup"})})),Gt((function(t){return e.hooks.setup(t)})),Tl((function(t){return t.imagePath?e.hooks.getObservable(t).pipe(function(e,t){return function(i){return i.pipe(Gt((function(e){return t.onStateChange.emit({reason:"observer-emit",data:e})})),ii((function(i){return e.isVisible({element:t.element,event:i,offset:t.offset,scrollContainer:t.scrollContainer})})),ui(1),Gt((function(){return t.onStateChange.emit({reason:"start-loading"})})),Object(rf.a)((function(){return e.loadImage(t)})),Gt((function(){return t.onStateChange.emit({reason:"mount-image"})})),Gt((function(i){return e.setLoadedImage({element:t.element,imagePath:i,useSrcset:t.useSrcset})})),Gt((function(){return t.onStateChange.emit({reason:"loading-succeeded"})})),Object(ri.a)((function(){return!0})),Yp((function(i){return t.onStateChange.emit({reason:"loading-failed",data:i}),e.setErrorImage(t),Bt(!1)})),Gt((function(){t.onStateChange.emit({reason:"finally"}),e.finally(t)})))}}(e.hooks,t)):BL}))).subscribe((function(t){return e.onLoad.emit(t)}))}))}},{key:"ngOnDestroy",value:function(){var e,t;null===(e=this.loadSubscription)||void 0===e||e.unsubscribe(),null===(t=this.debugSubscription)||void 0===t||t.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||rj)(a.Dc(a.r),a.Dc(a.I),a.Dc(a.M),a.Dc("options",8))},rj.\u0275dir=a.yc({type:rj,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange",onLoad:"onLoad"},features:[a.nc]}),rj),yj=((sj=oj=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(e){return{ngModule:oj,providers:[{provide:"options",useValue:e}]}}}]),e}()).\u0275mod=a.Bc({type:sj}),sj.\u0275inj=a.Ac({factory:function(e){return new(e||sj)}}),sj);function kj(e,t){if(1&e&&(a.Jc(0,"div"),a.Hc(1),a.Nc(2,pj),a.Gc(),a.Bd(3),a.Ic()),2&e){var i=a.ad();a.pc(3),a.Dd("\xa0",i.count,"")}}function wj(e,t){1&e&&a.Ec(0,"span")}function Cj(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",12),a.Jc(1,"img",13),a.Wc("error",(function(e){return a.rd(i),a.ad().onImgError(e)}))("onLoad",(function(e){return a.rd(i),a.ad().imageLoaded(e)})),a.Ic(),a.zd(2,wj,1,0,"span",5),a.Ic()}if(2&e){var n=a.ad();a.pc(1),a.gd("id",n.type)("lazyLoad",n.thumbnailURL)("customObservable",n.scrollAndLoad),a.pc(1),a.gd("ngIf",!n.image_loaded)}}function xj(e,t){if(1&e&&(a.Jc(0,"button",14),a.Jc(1,"mat-icon"),a.Bd(2,"more_vert"),a.Ic(),a.Ic()),2&e){a.ad();var i=a.nd(15);a.gd("matMenuTriggerFor",i)}}function Sj(e,t){if(1&e&&(a.Jc(0,"button",14),a.Jc(1,"mat-icon"),a.Bd(2,"more_vert"),a.Ic(),a.Ic()),2&e){a.ad();var i=a.nd(28);a.gd("matMenuTriggerFor",i)}}function Ij(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",9),a.Wc("click",(function(){return a.rd(i),a.ad().deleteFile(!0)})),a.Jc(1,"mat-icon"),a.Bd(2,"delete_forever"),a.Ic(),a.Hc(3),a.Nc(4,fj),a.Gc(),a.Ic()}}cj=$localize(_templateObject183()),lj=$localize(_templateObject184()),uj=$localize(_templateObject185()),dj=$localize(_templateObject186()),hj=$localize(_templateObject187()),pj=$localize(_templateObject188()),fj=$localize(_templateObject189());var Oj,Dj=((Oj=function(){function e(t,i,n,r){_classCallCheck(this,e),this.postsService=t,this.snackBar=i,this.mainComponent=n,this.dialog=r,this.isAudio=!0,this.removeFile=new a.u,this.playlist=null,this.count=null,this.use_youtubedl_archive=!1,this.image_loaded=!1,this.image_errored=!1,this.scrollSubject=new Lt.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}return _createClass(e,[{key:"ngOnInit",value:function(){if(this.type=this.isAudio?"audio":"video",this.file&&this.file.url&&this.file.url.includes("youtu")){var e=this.playlist?6:3,t=this.file.url.indexOf(this.playlist?"?list=":"?v=")+e;this.name=this.file.url.substring(t,this.file.url.length)}}},{key:"deleteFile",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.playlist?this.removeFile.emit(this.name):this.postsService.deleteFile(this.uid,this.isAudio,t).subscribe((function(t){t?(e.openSnackBar("Delete success!","OK."),e.removeFile.emit(e.name)):e.openSnackBar("Delete failed!","OK.")}),(function(t){e.openSnackBar("Delete failed!","OK.")}))}},{key:"openVideoInfoDialog",value:function(){this.dialog.open(ML,{data:{file:this.file},minWidth:"50vw"})}},{key:"editPlaylistDialog",value:function(){var e=this,t=this.dialog.open(zL,{data:{playlist:this.playlist,width:"65vw"}});t.afterClosed().subscribe((function(i){t.componentInstance.playlist_updated&&(e.playlist=t.componentInstance.original_playlist,e.title=e.playlist.name,e.count=e.playlist.fileNames.length)}))}},{key:"onImgError",value:function(e){this.image_errored=!0}},{key:"onHoverResponse",value:function(){this.scrollSubject.next()}},{key:"imageLoaded",value:function(e){this.image_loaded=!0}},{key:"openSnackBar",value:function(e,t){this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||Oj)(a.Dc(YO),a.Dc(A_),a.Dc(wL),a.Dc(Th))},Oj.\u0275cmp=a.xc({type:Oj,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",uid:"uid",thumbnailURL:"thumbnailURL",isAudio:"isAudio",playlist:"playlist",count:"count",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{removeFile:"removeFile"},decls:40,vars:7,consts:[[1,"example-card","mat-elevation-z6"],[2,"padding","5px"],[2,"height","52px"],["href","javascript:void(0)",1,"file-link",3,"click"],[1,"max-two-lines"],[4,"ngIf"],["class","img-div",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["playlist_menu","matMenu"],["mat-menu-item","",3,"click"],["action_menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"id","lazyLoad","customObservable","error","onLoad"],["mat-icon-button","",1,"deleteButton",3,"matMenuTriggerFor"]],template:function(e,t){1&e&&(a.Jc(0,"mat-card",0),a.Jc(1,"div",1),a.Jc(2,"div",2),a.Jc(3,"div"),a.Jc(4,"b"),a.Jc(5,"a",3),a.Wc("click",(function(){return t.playlist?t.mainComponent.goToPlaylist(t.name,t.type):t.mainComponent.goToFile(t.name,t.isAudio,t.uid)})),a.Bd(6),a.Ic(),a.Ic(),a.Ic(),a.Jc(7,"span",4),a.Hc(8),a.Nc(9,cj),a.Gc(),a.Bd(10),a.Ic(),a.zd(11,kj,4,1,"div",5),a.Ic(),a.zd(12,Cj,3,4,"div",6),a.Ic(),a.zd(13,xj,3,1,"button",7),a.Jc(14,"mat-menu",null,8),a.Jc(16,"button",9),a.Wc("click",(function(){return t.editPlaylistDialog()})),a.Jc(17,"mat-icon"),a.Bd(18,"edit"),a.Ic(),a.Hc(19),a.Nc(20,lj),a.Gc(),a.Ic(),a.Jc(21,"button",9),a.Wc("click",(function(){return t.deleteFile()})),a.Jc(22,"mat-icon"),a.Bd(23,"delete_forever"),a.Ic(),a.Hc(24),a.Nc(25,uj),a.Gc(),a.Ic(),a.Ic(),a.zd(26,Sj,3,1,"button",7),a.Jc(27,"mat-menu",null,10),a.Jc(29,"button",9),a.Wc("click",(function(){return t.openVideoInfoDialog()})),a.Jc(30,"mat-icon"),a.Bd(31,"info"),a.Ic(),a.Hc(32),a.Nc(33,dj),a.Gc(),a.Ic(),a.Jc(34,"button",9),a.Wc("click",(function(){return t.deleteFile()})),a.Jc(35,"mat-icon"),a.Bd(36,"delete"),a.Ic(),a.Hc(37),a.Nc(38,hj),a.Gc(),a.Ic(),a.zd(39,Ij,5,0,"button",11),a.Ic(),a.Ic()),2&e&&(a.pc(6),a.Cd(t.title),a.pc(4),a.Dd("\xa0",t.name,""),a.pc(1),a.gd("ngIf",t.playlist),a.pc(1),a.gd("ngIf",!t.image_errored&&t.thumbnailURL),a.pc(1),a.gd("ngIf",t.playlist),a.pc(13),a.gd("ngIf",!t.playlist),a.pc(13),a.gd("ngIf",t.use_youtubedl_archive))},directives:[Nc,yt.t,Lg,Eg,_m,_j,Za,zg],styles:[".example-card[_ngcontent-%COMP%]{width:150px;height:125px;padding:0}.deleteButton[_ngcontent-%COMP%]{top:-5px;right:-5px;position:absolute}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:100%}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{height:60px;padding:0;margin:8px 0 0 -5px;width:calc(100% + 10px);overflow:hidden;border-radius:0 0 4px 4px}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;-webkit-box-orient:vertical;-webkit-line-clamp:2}.file-link[_ngcontent-%COMP%], .max-two-lines[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.file-link[_ngcontent-%COMP%]{width:80%;white-space:nowrap;display:block}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:125px!important}}"]}),Oj);function Ej(e,t){1&e&&(a.Jc(0,"div",6),a.Ec(1,"mat-spinner",7),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",25))}var Aj,Tj,Pj,Rj=((Aj=function(){function e(t,i){_classCallCheck(this,e),this.dialogRef=t,this.data=i,this.inputText="",this.inputSubmitted=!1,this.doneEmitter=null,this.onlyEmitOnDone=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.inputTitle=this.data.inputTitle,this.inputPlaceholder=this.data.inputPlaceholder,this.submitText=this.data.submitText,this.data.doneEmitter&&(this.doneEmitter=this.data.doneEmitter,this.onlyEmitOnDone=!0)}},{key:"enterPressed",value:function(){this.inputText&&(this.onlyEmitOnDone?(this.doneEmitter.emit(this.inputText),this.inputSubmitted=!0):this.dialogRef.close(this.inputText))}}]),e}()).\u0275fac=function(e){return new(e||Aj)(a.Dc(Ih),a.Dc(Oh))},Aj.\u0275cmp=a.xc({type:Aj,selectors:[["app-input-dialog"]],decls:12,vars:6,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],[1,"mat-spinner"],[3,"diameter"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Bd(1),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div"),a.Jc(4,"mat-form-field",1),a.Jc(5,"input",2),a.Wc("keyup.enter",(function(){return t.enterPressed()}))("ngModelChange",(function(e){return t.inputText=e})),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(6,"mat-dialog-actions"),a.Jc(7,"button",3),a.Bd(8,"Cancel"),a.Ic(),a.Jc(9,"button",4),a.Wc("click",(function(){return t.enterPressed()})),a.Bd(10),a.Ic(),a.zd(11,Ej,2,1,"div",5),a.Ic()),2&e&&(a.pc(1),a.Cd(t.inputTitle),a.pc(4),a.gd("ngModel",t.inputText)("placeholder",t.inputPlaceholder),a.pc(4),a.gd("disabled",!t.inputText),a.pc(1),a.Cd(t.submitText),a.pc(1),a.gd("ngIf",t.inputSubmitted))},directives:[Mh,Lh,Ud,Pm,_r,Dr,es,jh,Za,Rh,yt.t,jv],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),Aj);Tj=$localize(_templateObject190()),Pj=$localize(_templateObject191());var Mj,Lj,jj,Fj,Nj,zj=["placeholder",$localize(_templateObject192())];function Bj(e,t){1&e&&(a.Hc(0),a.Nc(1,jj),a.Gc())}function Jj(e,t){1&e&&(a.Hc(0),a.Nc(1,Fj),a.Gc())}function Vj(e,t){1&e&&(a.Hc(0),a.Nc(1,Nj),a.Gc())}Mj=$localize(_templateObject193()),Lj=$localize(_templateObject194()),jj=$localize(_templateObject195()),Fj=$localize(_templateObject196()),Nj=$localize(_templateObject197());var Hj,Uj=((Hj=function(){function e(t,i,n,a){_classCallCheck(this,e),this.data=t,this.router=i,this.snackBar=n,this.postsService=a,this.type=null,this.uid=null,this.uuid=null,this.share_url=null,this.default_share_url=null,this.sharing_enabled=null,this.is_playlist=null,this.current_timestamp=null,this.timestamp_enabled=!1}return _createClass(e,[{key:"ngOnInit",value:function(){if(this.data){this.type=this.data.type,this.uid=this.data.uid,this.uuid=this.data.uuid,this.sharing_enabled=this.data.sharing_enabled,this.is_playlist=this.data.is_playlist,this.current_timestamp=(this.data.current_timestamp/1e3).toFixed(2);var e=this.is_playlist?";id=":";uid=";this.default_share_url=window.location.href.split(";")[0]+e+this.uid,this.uuid&&(this.default_share_url+=";uuid="+this.uuid),this.share_url=this.default_share_url}}},{key:"timestampInputChanged",value:function(e){if(this.timestamp_enabled){var t=e.target.value;this.share_url=t>0?this.default_share_url+";timestamp="+t:this.default_share_url}else this.share_url=this.default_share_url}},{key:"useTimestampChanged",value:function(){this.timestampInputChanged({target:{value:this.current_timestamp}})}},{key:"copiedToClipboard",value:function(){this.openSnackBar("Copied to clipboard!")}},{key:"sharingChanged",value:function(e){var t=this;e.checked?this.postsService.enableSharing(this.uid,this.type,this.is_playlist).subscribe((function(e){e.success?(t.openSnackBar("Sharing enabled."),t.sharing_enabled=!0):t.openSnackBar("Failed to enable sharing.")}),(function(e){t.openSnackBar("Failed to enable sharing - server error.")})):this.postsService.disableSharing(this.uid,this.type,this.is_playlist).subscribe((function(e){e.success?(t.openSnackBar("Sharing disabled."),t.sharing_enabled=!1):t.openSnackBar("Failed to disable sharing.")}),(function(e){t.openSnackBar("Failed to disable sharing - server error.")}))}},{key:"openSnackBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||Hj)(a.Dc(Oh),a.Dc(bO),a.Dc(A_),a.Dc(YO))},Hj.\u0275cmp=a.xc({type:Hj,selectors:[["app-share-media-dialog"]],decls:28,vars:12,consts:[["mat-dialog-title",""],[4,"ngIf"],[3,"checked","change"],[2,"margin-right","15px",3,"ngModel","change","ngModelChange"],["matInput","","type","number",3,"ngModel","disabled","ngModelChange","change",6,"placeholder"],[2,"width","100%"],["matInput","",3,"disabled","readonly","value"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","cdkCopyToClipboard","click"],["mat-button","","mat-dialog-close",""]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.zd(1,Bj,2,0,"ng-container",1),a.zd(2,Jj,2,0,"ng-container",1),a.zd(3,Vj,2,0,"ng-container",1),a.Ic(),a.Jc(4,"mat-dialog-content"),a.Jc(5,"div"),a.Jc(6,"div"),a.Jc(7,"mat-checkbox",2),a.Wc("change",(function(e){return t.sharingChanged(e)})),a.Hc(8),a.Nc(9,Tj),a.Gc(),a.Ic(),a.Ic(),a.Jc(10,"div"),a.Jc(11,"mat-checkbox",3),a.Wc("change",(function(){return t.useTimestampChanged()}))("ngModelChange",(function(e){return t.timestamp_enabled=e})),a.Hc(12),a.Nc(13,Pj),a.Gc(),a.Ic(),a.Jc(14,"mat-form-field"),a.Jc(15,"input",4),a.Pc(16,zj),a.Wc("ngModelChange",(function(e){return t.current_timestamp=e}))("change",(function(e){return t.timestampInputChanged(e)})),a.Ic(),a.Ic(),a.Ic(),a.Jc(17,"div"),a.Jc(18,"mat-form-field",5),a.Ec(19,"input",6),a.Ic(),a.Ic(),a.Jc(20,"div",7),a.Jc(21,"button",8),a.Wc("click",(function(){return t.copiedToClipboard()})),a.Hc(22),a.Nc(23,Mj),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(24,"mat-dialog-actions"),a.Jc(25,"button",9),a.Hc(26),a.Nc(27,Lj),a.Gc(),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.gd("ngIf",t.is_playlist),a.pc(1),a.gd("ngIf",!t.is_playlist&&"video"===t.type),a.pc(1),a.gd("ngIf",!t.is_playlist&&"audio"===t.type),a.pc(4),a.gd("checked",t.sharing_enabled),a.pc(4),a.gd("ngModel",t.timestamp_enabled),a.pc(4),a.gd("ngModel",t.current_timestamp)("disabled",!t.timestamp_enabled),a.pc(4),a.gd("disabled",!t.sharing_enabled)("readonly",!0)("value",t.share_url),a.pc(2),a.gd("disabled",!t.sharing_enabled)("cdkCopyToClipboard",t.share_url))},directives:[Mh,yt.t,Lh,Yc,Dr,es,Ud,Pm,Gr,_r,Za,Ex,jh,Rh],styles:[""]}),Hj),Gj=["*"],Wj=["volumeBar"],qj=function(e){return{dragging:e}};function $j(e,t){if(1&e&&a.Ec(0,"span",2),2&e){var i=t.$implicit;a.yd("width",null==i.$$style?null:i.$$style.width)("left",null==i.$$style?null:i.$$style.left)}}function Kj(e,t){1&e&&a.Ec(0,"span",2)}function Xj(e,t){1&e&&(a.Jc(0,"span"),a.Bd(1,"LIVE"),a.Ic())}function Yj(e,t){if(1&e&&(a.Jc(0,"span"),a.Bd(1),a.bd(2,"vgUtc"),a.Ic()),2&e){var i=a.ad();a.pc(1),a.Cd(a.dd(2,1,i.getTime(),i.vgFormat))}}function Zj(e,t){if(1&e&&(a.Jc(0,"option",4),a.Bd(1),a.Ic()),2&e){var i=t.$implicit;a.gd("value",i.id)("selected",!0===i.selected),a.pc(1),a.Dd(" ",i.label," ")}}function Qj(e,t){if(1&e&&(a.Jc(0,"option",4),a.Bd(1),a.Ic()),2&e){var i=t.$implicit,n=a.ad();a.gd("value",i.qualityIndex.toString())("selected",i.qualityIndex===(null==n.bitrateSelected?null:n.bitrateSelected.qualityIndex)),a.pc(1),a.Dd(" ",i.label," ")}}var eF,tF,iF,nF,aF,rF,oF,sF,cF,lF,uF,dF,hF,pF,fF,mF,gF,vF,bF,_F,yF,kF,wF,CF,xF,SF,IF,OF,DF,EF,AF=((DF=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||DF)},DF.\u0275prov=a.zc({token:DF,factory:DF.\u0275fac}),DF.VG_ENDED="ended",DF.VG_PAUSED="paused",DF.VG_PLAYING="playing",DF.VG_LOADING="waiting",DF),TF=((OF=function(){function e(){_classCallCheck(this,e),this.medias={},this.playerReadyEvent=new a.u(!0),this.isPlayerReady=!1}return _createClass(e,[{key:"onPlayerReady",value:function(e){this.fsAPI=e,this.isPlayerReady=!0,this.playerReadyEvent.emit(this)}},{key:"getDefaultMedia",value:function(){for(var e in this.medias)if(this.medias[e])return this.medias[e]}},{key:"getMasterMedia",value:function(){var e;for(var t in this.medias)if("true"===this.medias[t].vgMaster||!0===this.medias[t].vgMaster){e=this.medias[t];break}return e||this.getDefaultMedia()}},{key:"isMasterDefined",value:function(){var e=!1;for(var t in this.medias)if("true"===this.medias[t].vgMaster||!0===this.medias[t].vgMaster){e=!0;break}return e}},{key:"getMediaById",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.medias[e];return e&&"*"!==e||(t=this),t}},{key:"play",value:function(){for(var e in this.medias)this.medias[e]&&this.medias[e].play()}},{key:"pause",value:function(){for(var e in this.medias)this.medias[e]&&this.medias[e].pause()}},{key:"seekTime",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var i in this.medias)this.medias[i]&&this.$$seek(this.medias[i],e,t)}},{key:"$$seek",value:function(e,t){var i,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.duration;n?(this.isMasterDefined()&&(a=this.getMasterMedia().duration),i=t*a/100):i=t,e.currentTime=i}},{key:"addTextTrack",value:function(e,t,i){for(var n in this.medias)this.medias[n]&&this.$$addTextTrack(this.medias[n],e,t,i)}},{key:"$$addTextTrack",value:function(e,t,i,n){e.addTextTrack(t,i,n)}},{key:"$$getAllProperties",value:function(e){var t,i={};for(var n in this.medias)this.medias[n]&&(i[n]=this.medias[n]);switch(Object.keys(i).length){case 0:switch(e){case"state":t=AF.VG_PAUSED;break;case"playbackRate":case"volume":t=1;break;case"time":t={current:0,total:0,left:0}}break;case 1:t=i[Object.keys(i)[0]][e];break;default:t=i[this.getMasterMedia().id][e]}return t}},{key:"$$setAllProperties",value:function(e,t){for(var i in this.medias)this.medias[i]&&(this.medias[i][e]=t)}},{key:"registerElement",value:function(e){this.videogularElement=e}},{key:"registerMedia",value:function(e){this.medias[e.id]=e}},{key:"unregisterMedia",value:function(e){delete this.medias[e.id]}},{key:"duration",get:function(){return this.$$getAllProperties("duration")}},{key:"currentTime",set:function(e){this.$$setAllProperties("currentTime",e)},get:function(){return this.$$getAllProperties("currentTime")}},{key:"state",set:function(e){this.$$setAllProperties("state",e)},get:function(){return this.$$getAllProperties("state")}},{key:"volume",set:function(e){this.$$setAllProperties("volume",e)},get:function(){return this.$$getAllProperties("volume")}},{key:"playbackRate",set:function(e){this.$$setAllProperties("playbackRate",e)},get:function(){return this.$$getAllProperties("playbackRate")}},{key:"canPlay",get:function(){return this.$$getAllProperties("canPlay")}},{key:"canPlayThrough",get:function(){return this.$$getAllProperties("canPlayThrough")}},{key:"isMetadataLoaded",get:function(){return this.$$getAllProperties("isMetadataLoaded")}},{key:"isWaiting",get:function(){return this.$$getAllProperties("isWaiting")}},{key:"isCompleted",get:function(){return this.$$getAllProperties("isCompleted")}},{key:"isLive",get:function(){return this.$$getAllProperties("isLive")}},{key:"isMaster",get:function(){return this.$$getAllProperties("isMaster")}},{key:"time",get:function(){return this.$$getAllProperties("time")}},{key:"buffer",get:function(){return this.$$getAllProperties("buffer")}},{key:"buffered",get:function(){return this.$$getAllProperties("buffered")}},{key:"subscriptions",get:function(){return this.$$getAllProperties("subscriptions")}},{key:"textTracks",get:function(){return this.$$getAllProperties("textTracks")}}]),e}()).\u0275fac=function(e){return new(e||OF)},OF.\u0275prov=a.zc({token:OF,factory:OF.\u0275fac}),OF),PF=((IF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.checkInterval=50,this.currentPlayPos=0,this.lastPlayPos=0,this.subscriptions=[],this.isBuffering=!1,this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){var e=this;this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe((function(t){return e.onUpdateBuffer(t)})))}},{key:"onUpdateBuffer",value:function(e){this.isBuffering=e}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||IF)(a.Dc(a.r),a.Dc(TF))},IF.\u0275cmp=a.xc({type:IF,selectors:[["vg-buffering"]],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("is-buffering",t.isBuffering)},inputs:{vgFor:"vgFor"},decls:3,vars:0,consts:[[1,"vg-buffering"],[1,"bufferingContainer"],[1,"loadingSpinner"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Ec(2,"div",2),a.Ic(),a.Ic())},styles:["\n vg-buffering {\n display: none;\n z-index: 201;\n }\n vg-buffering.is-buffering {\n display: block;\n }\n\n .vg-buffering {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n }\n .vg-buffering .bufferingContainer {\n width: 100%;\n position: absolute;\n cursor: pointer;\n top: 50%;\n margin-top: -50px;\n zoom: 1;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n /* Loading Spinner\n * http://www.alessioatzeni.com/blog/css3-loading-animation-loop/\n */\n .vg-buffering .loadingSpinner {\n background-color: rgba(0, 0, 0, 0);\n border: 5px solid rgba(255, 255, 255, 1);\n opacity: .9;\n border-top: 5px solid rgba(0, 0, 0, 0);\n border-left: 5px solid rgba(0, 0, 0, 0);\n border-radius: 50px;\n box-shadow: 0 0 35px #FFFFFF;\n width: 50px;\n height: 50px;\n margin: 0 auto;\n -moz-animation: spin .5s infinite linear;\n -webkit-animation: spin .5s infinite linear;\n }\n .vg-buffering .loadingSpinner .stop {\n -webkit-animation-play-state: paused;\n -moz-animation-play-state: paused;\n }\n @-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(360deg);\n }\n }\n @-moz-keyframes spinoff {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(-360deg);\n }\n }\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n @-webkit-keyframes spinoff {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(-360deg);\n }\n }\n "],encapsulation:2}),IF),RF=((SF=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:SF}),SF.\u0275inj=a.Ac({factory:function(e){return new(e||SF)},imports:[[yt.c]]}),SF),MF=((xF=function(){function e(){_classCallCheck(this,e),this.isHiddenSubject=new Lt.a,this.isHidden=this.isHiddenSubject.asObservable()}return _createClass(e,[{key:"state",value:function(e){this.isHiddenSubject.next(e)}}]),e}()).\u0275fac=function(e){return new(e||xF)},xF.\u0275prov=a.zc({token:xF,factory:xF.\u0275fac}),xF),LF=((CF=function(){function e(t,i,n){_classCallCheck(this,e),this.API=t,this.ref=i,this.hidden=n,this.isAdsPlaying="initial",this.hideControls=!1,this.vgAutohide=!1,this.vgAutohideTime=3,this.subscriptions=[],this.elem=i.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.mouseMove$=rl(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=rl(this.API.videogularElement,"touchstart"),this.subscriptions.push(this.touchStart$.subscribe(this.show.bind(this))),this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.play.subscribe(this.onPlay.bind(this))),this.subscriptions.push(this.target.subscriptions.pause.subscribe(this.onPause.bind(this))),this.subscriptions.push(this.target.subscriptions.startAds.subscribe(this.onStartAds.bind(this))),this.subscriptions.push(this.target.subscriptions.endAds.subscribe(this.onEndAds.bind(this)))}},{key:"ngAfterViewInit",value:function(){this.vgAutohide?this.hide():this.show()}},{key:"onPlay",value:function(){this.vgAutohide&&this.hide()}},{key:"onPause",value:function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1)}},{key:"onStartAds",value:function(){this.isAdsPlaying="none"}},{key:"onEndAds",value:function(){this.isAdsPlaying="initial"}},{key:"hide",value:function(){this.vgAutohide&&(clearTimeout(this.timer),this.hideAsync())}},{key:"show",value:function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1),this.vgAutohide&&this.hideAsync()}},{key:"hideAsync",value:function(){var e=this;this.API.state===AF.VG_PLAYING&&(this.timer=setTimeout((function(){e.hideControls=!0,e.hidden.state(!0)}),1e3*this.vgAutohideTime))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||CF)(a.Dc(TF),a.Dc(a.r),a.Dc(MF))},CF.\u0275cmp=a.xc({type:CF,selectors:[["vg-controls"]],hostVars:4,hostBindings:function(e,t){2&e&&(a.yd("pointer-events",t.isAdsPlaying),a.tc("hide",t.hideControls))},inputs:{vgAutohide:"vgAutohide",vgAutohideTime:"vgAutohideTime",vgFor:"vgFor"},ngContentSelectors:Gj,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.ed(0))},styles:["\n vg-controls {\n position: absolute;\n display: flex;\n width: 100%;\n height: 50px;\n z-index: 300;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: bottom 1s;\n -khtml-transition: bottom 1s;\n -moz-transition: bottom 1s;\n -ms-transition: bottom 1s;\n transition: bottom 1s;\n }\n vg-controls.hide {\n bottom: -50px;\n }\n "],encapsulation:2}),CF),jF=((wF=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"getZIndex",value:function(){for(var e,t=1,i=document.getElementsByTagName("*"),n=0,a=i.length;nt&&(t=e+1);return t}},{key:"isMobileDevice",value:function(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")}},{key:"isiOSDevice",value:function(){return navigator.userAgent.match(/ip(hone|ad|od)/i)&&!navigator.userAgent.match(/(iemobile)[\/\s]?([\w\.]*)/i)}},{key:"isCordova",value:function(){return-1===document.URL.indexOf("http://")&&-1===document.URL.indexOf("https://")}}]),e}()).\u0275fac=function(e){return new(e||wF)},wF.\u0275prov=Object(a.zc)({factory:function(){return new wF},token:wF,providedIn:"root"}),wF),FF=((kF=function(){function e(){_classCallCheck(this,e),this.nativeFullscreen=!0,this.isFullscreen=!1,this.onChangeFullscreen=new a.u}return _createClass(e,[{key:"init",value:function(e,t){var i=this;this.videogularElement=e,this.medias=t;var n={w3:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",onchange:"fullscreenchange",onerror:"fullscreenerror"},newWebkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},oldWebkit:{enabled:"webkitIsFullScreen",element:"webkitCurrentFullScreenElement",request:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},moz:{enabled:"mozFullScreen",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",onchange:"mozfullscreenchange",onerror:"mozfullscreenerror"},ios:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitEnterFullscreen",exit:"webkitExitFullscreen",onchange:"webkitendfullscreen",onerror:"webkitfullscreenerror"},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",onchange:"MSFullscreenChange",onerror:"MSFullscreenError"}};for(var a in n)if(n[a].enabled in document){this.polyfill=n[a];break}if(jF.isiOSDevice()&&(this.polyfill=n.ios),this.isAvailable=null!=this.polyfill,null!=this.polyfill){var r;switch(this.polyfill.onchange){case"mozfullscreenchange":r=document;break;case"webkitendfullscreen":r=this.medias.toArray()[0].elem;break;default:r=e}this.fsChangeSubscription=rl(r,this.polyfill.onchange).subscribe((function(){i.onFullscreenChange()}))}}},{key:"onFullscreenChange",value:function(){this.isFullscreen=!!document[this.polyfill.element],this.onChangeFullscreen.emit(this.isFullscreen)}},{key:"toggleFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.isFullscreen?this.exit():this.request(e)}},{key:"request",value:function(e){e||(e=this.videogularElement),this.isFullscreen=!0,this.onChangeFullscreen.emit(!0),this.isAvailable&&this.nativeFullscreen&&(jF.isMobileDevice()?((!this.polyfill.enabled&&e===this.videogularElement||jF.isiOSDevice())&&(e=this.medias.toArray()[0].elem),this.enterElementInFullScreen(e)):this.enterElementInFullScreen(this.videogularElement))}},{key:"enterElementInFullScreen",value:function(e){e[this.polyfill.request]()}},{key:"exit",value:function(){this.isFullscreen=!1,this.onChangeFullscreen.emit(!1),this.isAvailable&&this.nativeFullscreen&&document[this.polyfill.exit]()}}]),e}()).\u0275fac=function(e){return new(e||kF)},kF.\u0275prov=a.zc({token:kF,factory:kF.\u0275fac}),kF),NF=((yF=function(){function e(t,i,n){_classCallCheck(this,e),this.API=i,this.fsAPI=n,this.isFullscreen=!1,this.subscriptions=[],this.ariaValue="normal mode",this.elem=t.nativeElement,this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this)))}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onChangeFullscreen",value:function(e){this.ariaValue=e?"fullscren mode":"normal mode",this.isFullscreen=e}},{key:"onClick",value:function(){this.changeFullscreenState()}},{key:"onKeyDown",value:function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.changeFullscreenState())}},{key:"changeFullscreenState",value:function(){var e=this.target;this.target instanceof TF&&(e=null),this.fsAPI.toggleFullscreen(e)}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||yF)(a.Dc(a.r),a.Dc(TF),a.Dc(FF))},yF.\u0275cmp=a.xc({type:yF,selectors:[["vg-fullscreen"]],hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.onClick()}))("keydown",(function(e){return t.onKeyDown(e)}))},decls:1,vars:5,consts:[["tabindex","0","role","button","aria-label","fullscreen button",1,"icon"]],template:function(e,t){1&e&&a.Ec(0,"div",0),2&e&&(a.tc("vg-icon-fullscreen",!t.isFullscreen)("vg-icon-fullscreen_exit",t.isFullscreen),a.qc("aria-valuetext",t.ariaValue))},styles:["\n vg-fullscreen {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n\n vg-fullscreen .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),yF),zF=((_F=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.subscriptions=[],this.ariaValue="unmuted",this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.currentVolume=this.target.volume}},{key:"onClick",value:function(){this.changeMuteState()}},{key:"onKeyDown",value:function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.changeMuteState())}},{key:"changeMuteState",value:function(){var e=this.getVolume();0===e?(0===this.target.volume&&0===this.currentVolume&&(this.currentVolume=1),this.target.volume=this.currentVolume):(this.currentVolume=e,this.target.volume=0)}},{key:"getVolume",value:function(){var e=this.target?this.target.volume:0;return this.ariaValue=e?"unmuted":"muted",e}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||_F)(a.Dc(a.r),a.Dc(TF))},_F.\u0275cmp=a.xc({type:_F,selectors:[["vg-mute"]],hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.onClick()}))("keydown",(function(e){return t.onKeyDown(e)}))},inputs:{vgFor:"vgFor"},decls:1,vars:9,consts:[["tabindex","0","role","button","aria-label","mute button",1,"icon"]],template:function(e,t){1&e&&a.Ec(0,"div",0),2&e&&(a.tc("vg-icon-volume_up",t.getVolume()>=.75)("vg-icon-volume_down",t.getVolume()>=.25&&t.getVolume()<.75)("vg-icon-volume_mute",t.getVolume()>0&&t.getVolume()<.25)("vg-icon-volume_off",0===t.getVolume()),a.qc("aria-valuetext",t.ariaValue))},styles:["\n vg-mute {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-mute .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),_F),BF=((bF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.subscriptions=[],this.elem=t.nativeElement,this.isDragging=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.ariaValue=100*this.getVolume()}},{key:"onClick",value:function(e){this.setVolume(this.calculateVolume(e.clientX))}},{key:"onMouseDown",value:function(e){this.mouseDownPosX=e.clientX,this.isDragging=!0}},{key:"onDrag",value:function(e){this.isDragging&&this.setVolume(this.calculateVolume(e.clientX))}},{key:"onStopDrag",value:function(e){this.isDragging&&(this.isDragging=!1,this.mouseDownPosX===e.clientX&&this.setVolume(this.calculateVolume(e.clientX)))}},{key:"arrowAdjustVolume",value:function(e){38===e.keyCode||39===e.keyCode?(e.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()+10)))):37!==e.keyCode&&40!==e.keyCode||(e.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()-10))))}},{key:"calculateVolume",value:function(e){var t=this.volumeBarRef.nativeElement.getBoundingClientRect();return(e-t.left)/t.width*100}},{key:"setVolume",value:function(e){this.target.volume=Math.max(0,Math.min(1,e/100)),this.ariaValue=100*this.target.volume}},{key:"getVolume",value:function(){return this.target?this.target.volume:0}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||bF)(a.Dc(a.r),a.Dc(TF))},bF.\u0275cmp=a.xc({type:bF,selectors:[["vg-volume"]],viewQuery:function(e,t){var i;1&e&&a.xd(Wj,!0),2&e&&a.md(i=a.Xc())&&(t.volumeBarRef=i.first)},hostBindings:function(e,t){1&e&&a.Wc("mousemove",(function(e){return t.onDrag(e)}),!1,a.pd)("mouseup",(function(e){return t.onStopDrag(e)}),!1,a.pd)("keydown",(function(e){return t.arrowAdjustVolume(e)}))},inputs:{vgFor:"vgFor"},decls:5,vars:9,consts:[["tabindex","0","role","slider","aria-label","volume level","aria-level","polite","aria-valuemin","0","aria-valuemax","100","aria-orientation","horizontal",1,"volumeBar",3,"click","mousedown"],["volumeBar",""],[1,"volumeBackground",3,"ngClass"],[1,"volumeValue"],[1,"volumeKnob"]],template:function(e,t){1&e&&(a.Jc(0,"div",0,1),a.Wc("click",(function(e){return t.onClick(e)}))("mousedown",(function(e){return t.onMouseDown(e)})),a.Jc(2,"div",2),a.Ec(3,"div",3),a.Ec(4,"div",4),a.Ic(),a.Ic()),2&e&&(a.qc("aria-valuenow",t.ariaValue)("aria-valuetext",t.ariaValue+"%"),a.pc(2),a.gd("ngClass",a.jd(7,qj,t.isDragging)),a.pc(1),a.yd("width",85*t.getVolume()+"%"),a.pc(1),a.yd("left",85*t.getVolume()+"%"))},directives:[yt.q],styles:["\n vg-volume {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 100px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-volume .volumeBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n vg-volume .volumeBackground {\n display: flex;\n flex-grow: 1;\n height: 5px;\n pointer-events: none;\n background-color: #333;\n }\n vg-volume .volumeValue {\n display: flex;\n height: 5px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeKnob {\n position: absolute;\n width: 15px; height: 15px;\n left: 0; top: 50%;\n transform: translateY(-50%);\n border-radius: 15px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeBackground.dragging .volumeValue,\n vg-volume .volumeBackground.dragging .volumeKnob {\n transition: none;\n }\n "],encapsulation:2}),bF),JF=((vF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.subscriptions=[],this.ariaValue=AF.VG_PAUSED,this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onClick",value:function(){this.playPause()}},{key:"onKeyDown",value:function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.playPause())}},{key:"playPause",value:function(){switch(this.getState()){case AF.VG_PLAYING:this.target.pause();break;case AF.VG_PAUSED:case AF.VG_ENDED:this.target.play()}}},{key:"getState",value:function(){return this.ariaValue=this.target?this.target.state:AF.VG_PAUSED,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||vF)(a.Dc(a.r),a.Dc(TF))},vF.\u0275cmp=a.xc({type:vF,selectors:[["vg-play-pause"]],hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.onClick()}))("keydown",(function(e){return t.onKeyDown(e)}))},inputs:{vgFor:"vgFor"},decls:1,vars:6,consts:[["tabindex","0","role","button",1,"icon"]],template:function(e,t){1&e&&a.Ec(0,"div",0),2&e&&(a.tc("vg-icon-pause","playing"===t.getState())("vg-icon-play_arrow","paused"===t.getState()||"ended"===t.getState()),a.qc("aria-label","paused"===t.getState()?"play":"pause")("aria-valuetext",t.ariaValue))},styles:["\n vg-play-pause {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-play-pause .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),vF),VF=((gF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.subscriptions=[],this.ariaValue=1,this.elem=t.nativeElement,this.playbackValues=["0.5","1.0","1.5","2.0"],this.playbackIndex=1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onClick",value:function(){this.updatePlaybackSpeed()}},{key:"onKeyDown",value:function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.updatePlaybackSpeed())}},{key:"updatePlaybackSpeed",value:function(){this.playbackIndex=++this.playbackIndex%this.playbackValues.length,this.target instanceof TF?this.target.playbackRate=this.playbackValues[this.playbackIndex]:this.target.playbackRate[this.vgFor]=this.playbackValues[this.playbackIndex]}},{key:"getPlaybackRate",value:function(){return this.ariaValue=this.target?this.target.playbackRate:1,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||gF)(a.Dc(a.r),a.Dc(TF))},gF.\u0275cmp=a.xc({type:gF,selectors:[["vg-playback-button"]],hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.onClick()}))("keydown",(function(e){return t.onKeyDown(e)}))},inputs:{playbackValues:"playbackValues",vgFor:"vgFor"},decls:2,vars:2,consts:[["tabindex","0","role","button","aria-label","playback speed button",1,"button"]],template:function(e,t){1&e&&(a.Jc(0,"span",0),a.Bd(1),a.Ic()),2&e&&(a.qc("aria-valuetext",t.ariaValue),a.pc(1),a.Dd(" ",t.getPlaybackRate(),"x "))},styles:["\n vg-playback-button {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n vg-playback-button .button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n }\n "],encapsulation:2}),gF),HF=((mF=function(){function e(t,i,n){var a=this;_classCallCheck(this,e),this.API=i,this.hideScrubBar=!1,this.vgSlider=!0,this.isSeeking=!1,this.wasPlaying=!1,this.subscriptions=[],this.elem=t.nativeElement,this.subscriptions.push(n.isHidden.subscribe((function(e){return a.onHideScrubBar(e)})))}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"seekStart",value:function(){this.target.canPlay&&(this.isSeeking=!0,this.target.state===AF.VG_PLAYING&&(this.wasPlaying=!0),this.target.pause())}},{key:"seekMove",value:function(e){if(this.isSeeking){var t=Math.max(Math.min(100*e/this.elem.scrollWidth,99.9),0);this.target.time.current=t*this.target.time.total/100,this.target.seekTime(t,!0)}}},{key:"seekEnd",value:function(e){if(this.isSeeking=!1,this.target.canPlay){var t=Math.max(Math.min(100*e/this.elem.scrollWidth,99.9),0);this.target.seekTime(t,!0),this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}}},{key:"touchEnd",value:function(){this.isSeeking=!1,this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}},{key:"getTouchOffset",value:function(e){for(var t=0,i=e.target;i;)t+=i.offsetLeft,i=i.offsetParent;return e.touches[0].pageX-t}},{key:"onMouseDownScrubBar",value:function(e){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(e.offsetX)))}},{key:"onMouseMoveScrubBar",value:function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(e.offsetX)}},{key:"onMouseUpScrubBar",value:function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekEnd(e.offsetX)}},{key:"onTouchStartScrubBar",value:function(e){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(this.getTouchOffset(e))))}},{key:"onTouchMoveScrubBar",value:function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(this.getTouchOffset(e))}},{key:"onTouchCancelScrubBar",value:function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}},{key:"onTouchEndScrubBar",value:function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}},{key:"arrowAdjustVolume",value:function(e){this.target&&(38===e.keyCode||39===e.keyCode?(e.preventDefault(),this.target.seekTime((this.target.time.current+5e3)/1e3,!1)):37!==e.keyCode&&40!==e.keyCode||(e.preventDefault(),this.target.seekTime((this.target.time.current-5e3)/1e3,!1)))}},{key:"getPercentage",value:function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}},{key:"onHideScrubBar",value:function(e){this.hideScrubBar=e}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||mF)(a.Dc(a.r),a.Dc(TF),a.Dc(MF))},mF.\u0275cmp=a.xc({type:mF,selectors:[["vg-scrub-bar"]],hostVars:2,hostBindings:function(e,t){1&e&&a.Wc("mousedown",(function(e){return t.onMouseDownScrubBar(e)}))("mousemove",(function(e){return t.onMouseMoveScrubBar(e)}),!1,a.pd)("mouseup",(function(e){return t.onMouseUpScrubBar(e)}),!1,a.pd)("touchstart",(function(e){return t.onTouchStartScrubBar(e)}))("touchmove",(function(e){return t.onTouchMoveScrubBar(e)}),!1,a.pd)("touchcancel",(function(e){return t.onTouchCancelScrubBar(e)}),!1,a.pd)("touchend",(function(e){return t.onTouchEndScrubBar(e)}),!1,a.pd)("keydown",(function(e){return t.arrowAdjustVolume(e)})),2&e&&a.tc("hide",t.hideScrubBar)},inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},ngContentSelectors:Gj,decls:2,vars:2,consts:[["tabindex","0","role","slider","aria-label","scrub bar","aria-level","polite","aria-valuemin","0","aria-valuemax","100",1,"scrubBar"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div",0),a.ed(1),a.Ic()),2&e&&a.qc("aria-valuenow",t.getPercentage())("aria-valuetext",t.getPercentage()+"%")},styles:["\n vg-scrub-bar {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: absolute;\n width: 100%;\n height: 5px;\n bottom: 50px;\n margin: 0;\n cursor: pointer;\n align-items: center;\n background: rgba(0, 0, 0, 0.75);\n z-index: 250;\n -webkit-transition: bottom 1s, opacity 0.5s;\n -khtml-transition: bottom 1s, opacity 0.5s;\n -moz-transition: bottom 1s, opacity 0.5s;\n -ms-transition: bottom 1s, opacity 0.5s;\n transition: bottom 1s, opacity 0.5s;\n }\n vg-scrub-bar .scrubBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n height: 100%;\n }\n vg-controls vg-scrub-bar {\n position: relative;\n bottom: 0;\n background: transparent;\n height: 50px;\n flex-grow: 1;\n flex-basis: 0;\n margin: 0 10px;\n -webkit-transition: initial;\n -khtml-transition: initial;\n -moz-transition: initial;\n -ms-transition: initial;\n transition: initial;\n }\n vg-scrub-bar.hide {\n bottom: 0;\n opacity: 0;\n }\n vg-controls vg-scrub-bar.hide {\n bottom: initial;\n opacity: initial;\n }\n "],encapsulation:2}),mF),UF=((fF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.subscriptions=[],this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getBufferTime",value:function(){var e="0%";return this.target&&this.target.buffer&&this.target.buffered.length&&(e=0===this.target.time.total?"0%":this.target.buffer.end/this.target.time.total*100+"%"),e}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||fF)(a.Dc(a.r),a.Dc(TF))},fF.\u0275cmp=a.xc({type:fF,selectors:[["vg-scrub-bar-buffering-time"]],inputs:{vgFor:"vgFor"},decls:1,vars:2,consts:[[1,"background"]],template:function(e,t){1&e&&a.Ec(0,"div",0),2&e&&a.yd("width",t.getBufferTime())},styles:["\n vg-scrub-bar-buffering-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-buffering-time .background {\n background-color: rgba(255, 255, 255, 0.3);\n }\n vg-controls vg-scrub-bar-buffering-time {\n position: absolute;\n top: calc(50% - 3px);\n }\n vg-controls vg-scrub-bar-buffering-time .background {\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n "],encapsulation:2}),fF),GF=((pF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.onLoadedMetadataCalled=!1,this.cuePoints=[],this.subscriptions=[],this.totalCues=0,this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.loadedMetadata.subscribe(this.onLoadedMetadata.bind(this))),this.onLoadedMetadataCalled&&this.onLoadedMetadata()}},{key:"onLoadedMetadata",value:function(){if(this.vgCuePoints){this.cuePoints=[];for(var e=0,t=this.vgCuePoints.length;e=0?this.vgCuePoints[e].endTime:this.vgCuePoints[e].startTime+1)-this.vgCuePoints[e].startTime),n="0",a="0";"number"==typeof i&&this.target.time.total&&(a=100*i/this.target.time.total+"%",n=100*this.vgCuePoints[e].startTime/Math.round(this.target.time.total/1e3)+"%"),this.vgCuePoints[e].$$style={width:a,left:n},this.cuePoints.push(this.vgCuePoints[e])}}}},{key:"updateCuePoints",value:function(){this.target?this.onLoadedMetadata():this.onLoadedMetadataCalled=!0}},{key:"ngOnChanges",value:function(e){e.vgCuePoints.currentValue&&this.updateCuePoints()}},{key:"ngDoCheck",value:function(){this.vgCuePoints&&this.totalCues!==this.vgCuePoints.length&&(this.totalCues=this.vgCuePoints.length,this.updateCuePoints())}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||pF)(a.Dc(a.r),a.Dc(TF))},pF.\u0275cmp=a.xc({type:pF,selectors:[["vg-scrub-bar-cue-points"]],inputs:{vgCuePoints:"vgCuePoints",vgFor:"vgFor"},features:[a.nc],decls:2,vars:1,consts:[[1,"cue-point-container"],["class","cue-point",3,"width","left",4,"ngFor","ngForOf"],[1,"cue-point"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.zd(1,$j,1,4,"span",1),a.Ic()),2&e&&(a.pc(1),a.gd("ngForOf",t.cuePoints))},directives:[yt.s],styles:["\n vg-scrub-bar-cue-points {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-cue-points .cue-point-container .cue-point {\n position: absolute;\n height: 5px;\n background-color: rgba(255, 204, 0, 0.7);\n }\n vg-controls vg-scrub-bar-cue-points {\n position: absolute;\n top: calc(50% - 3px);\n }\n "],encapsulation:2}),pF),WF=((hF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.vgSlider=!1,this.subscriptions=[],this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getPercentage",value:function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||hF)(a.Dc(a.r),a.Dc(TF))},hF.\u0275cmp=a.xc({type:hF,selectors:[["vg-scrub-bar-current-time"]],inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},decls:2,vars:3,consts:[[1,"background"],["class","slider",4,"ngIf"],[1,"slider"]],template:function(e,t){1&e&&(a.Ec(0,"div",0),a.zd(1,Kj,1,0,"span",1)),2&e&&(a.yd("width",t.getPercentage()),a.pc(1),a.gd("ngIf",t.vgSlider))},directives:[yt.t],styles:["\n vg-scrub-bar-current-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-current-time .background {\n background-color: white;\n }\n vg-controls vg-scrub-bar-current-time {\n position: absolute;\n top: calc(50% - 3px);\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n vg-controls vg-scrub-bar-current-time .background {\n border: 1px solid white;\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n\n vg-scrub-bar-current-time .slider{\n background: white;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n box-shadow: 0px 0px 10px black;\n margin-top: -5px;\n margin-left: -10px;\n }\n "],encapsulation:2}),hF),qF=((dF=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){var i=new Date(e),n=t,a=i.getUTCSeconds(),r=i.getUTCMinutes(),o=i.getUTCHours();return a<10&&(a="0"+a),r<10&&(r="0"+r),o<10&&(o="0"+o),n=(n=(n=n.replace(/ss/g,a)).replace(/mm/g,r)).replace(/hh/g,o)}}]),e}()).\u0275fac=function(e){return new(e||dF)},dF.\u0275pipe=a.Cc({name:"vgUtc",type:dF,pure:!0}),dF),$F=((uF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.vgProperty="current",this.vgFormat="mm:ss",this.subscriptions=[],this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getTime",value:function(){var e=0;return this.target&&(e=Math.round(this.target.time[this.vgProperty]),e=isNaN(e)||this.target.isLive?0:e),e}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||uF)(a.Dc(a.r),a.Dc(TF))},uF.\u0275cmp=a.xc({type:uF,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:Gj,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(e,t){1&e&&(a.fd(),a.zd(0,Xj,2,0,"span",0),a.zd(1,Yj,3,4,"span",0),a.ed(2)),2&e&&(a.gd("ngIf",null==t.target?null:t.target.isLive),a.pc(1),a.gd("ngIf",!(null!=t.target&&t.target.isLive)))},directives:[yt.t],pipes:[qF],styles:["\n vg-time-display {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 60px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n pointer-events: none;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n "],encapsulation:2}),uF),KF=((lF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.subscriptions=[],this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor);var e=Array.from(this.API.getMasterMedia().elem.children).filter((function(e){return"TRACK"===e.tagName})).filter((function(e){return"subtitles"===e.kind})).map((function(e){return{label:e.label,selected:!0===e.default,id:e.srclang}}));this.tracks=[].concat(_toConsumableArray(e),[{id:null,label:"Off",selected:e.every((function(e){return!1===e.selected}))}]);var t=this.tracks.filter((function(e){return!0===e.selected}))[0];this.trackSelected=t.id,this.ariaValue=t.label}},{key:"selectTrack",value:function(e){var t=this;this.trackSelected="null"===e?null:e,this.ariaValue="No track selected",Array.from(this.API.getMasterMedia().elem.textTracks).forEach((function(i){i.language===e?(t.ariaValue=i.label,i.mode="showing"):i.mode="hidden"}))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||lF)(a.Dc(a.r),a.Dc(TF))},lF.\u0275cmp=a.xc({type:lF,selectors:[["vg-track-selector"]],inputs:{vgFor:"vgFor"},decls:5,vars:5,consts:[[1,"container"],[1,"track-selected"],["tabindex","0","aria-label","track selector",1,"trackSelector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Bd(2),a.Ic(),a.Jc(3,"select",2),a.Wc("change",(function(e){return t.selectTrack(e.target.value)})),a.zd(4,Zj,2,3,"option",3),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.tc("vg-icon-closed_caption",!t.trackSelected),a.pc(1),a.Dd(" ",t.trackSelected||""," "),a.pc(1),a.qc("aria-valuetext",t.ariaValue),a.pc(1),a.gd("ngForOf",t.tracks))},directives:[yt.s],styles:["\n vg-track-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-track-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-track-selector select.trackSelector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-track-selector select.trackSelector::-ms-expand {\n display: none;\n }\n vg-track-selector select.trackSelector option {\n color: #000;\n }\n vg-track-selector .track-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-track-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),lF),XF=((cF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.onBitrateChange=new a.u,this.subscriptions=[],this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){e.bitrates.currentValue&&e.bitrates.currentValue.length&&this.bitrates.forEach((function(e){return e.label=(e.label||Math.round(e.bitrate/1e3)).toString()}))}},{key:"selectBitrate",value:function(e){this.bitrateSelected=this.bitrates[e],this.onBitrateChange.emit(this.bitrates[e])}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||cF)(a.Dc(a.r),a.Dc(TF))},cF.\u0275cmp=a.xc({type:cF,selectors:[["vg-quality-selector"]],inputs:{bitrates:"bitrates"},outputs:{onBitrateChange:"onBitrateChange"},features:[a.nc],decls:5,vars:5,consts:[[1,"container"],[1,"quality-selected"],["tabindex","0","aria-label","quality selector",1,"quality-selector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Bd(2),a.Ic(),a.Jc(3,"select",2),a.Wc("change",(function(e){return t.selectBitrate(e.target.value)})),a.zd(4,Qj,2,3,"option",3),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.tc("vg-icon-hd",!t.bitrateSelected),a.pc(1),a.Dd(" ",null==t.bitrateSelected?null:t.bitrateSelected.label," "),a.pc(1),a.qc("aria-valuetext",t.ariaValue),a.pc(1),a.gd("ngForOf",t.bitrates))},directives:[yt.s],styles:["\n vg-quality-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-quality-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-quality-selector select.quality-selector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-quality-selector select.quality-selector::-ms-expand {\n display: none;\n }\n vg-quality-selector select.quality-selector option {\n color: #000;\n }\n vg-quality-selector .quality-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-quality-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),cF),YF=((sF=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:sF}),sF.\u0275inj=a.Ac({factory:function(e){return new(e||sF)},providers:[MF],imports:[[yt.c]]}),sF),ZF=((oF=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||oF)},oF.\u0275prov=a.zc({token:oF,factory:oF.\u0275fac}),oF.VG_ABORT="abort",oF.VG_CAN_PLAY="canplay",oF.VG_CAN_PLAY_THROUGH="canplaythrough",oF.VG_DURATION_CHANGE="durationchange",oF.VG_EMPTIED="emptied",oF.VG_ENCRYPTED="encrypted",oF.VG_ENDED="ended",oF.VG_ERROR="error",oF.VG_LOADED_DATA="loadeddata",oF.VG_LOADED_METADATA="loadedmetadata",oF.VG_LOAD_START="loadstart",oF.VG_PAUSE="pause",oF.VG_PLAY="play",oF.VG_PLAYING="playing",oF.VG_PROGRESS="progress",oF.VG_RATE_CHANGE="ratechange",oF.VG_SEEK="seek",oF.VG_SEEKED="seeked",oF.VG_SEEKING="seeking",oF.VG_STALLED="stalled",oF.VG_SUSPEND="suspend",oF.VG_TIME_UPDATE="timeupdate",oF.VG_VOLUME_CHANGE="volumechange",oF.VG_WAITING="waiting",oF.VG_LOAD="load",oF.VG_ENTER="enter",oF.VG_EXIT="exit",oF.VG_START_ADS="startads",oF.VG_END_ADS="endads",oF),QF=((rF=function(){function e(t,i){_classCallCheck(this,e),this.api=t,this.ref=i,this.state=AF.VG_PAUSED,this.time={current:0,total:0,left:0},this.buffer={end:0},this.canPlay=!1,this.canPlayThrough=!1,this.isMetadataLoaded=!1,this.isWaiting=!1,this.isCompleted=!1,this.isLive=!1,this.isBufferDetected=!1,this.checkInterval=200,this.currentPlayPos=0,this.lastPlayPos=0,this.playAtferSync=!1,this.bufferDetected=new Lt.a}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:rl(this.elem,ZF.VG_ABORT),canPlay:rl(this.elem,ZF.VG_CAN_PLAY),canPlayThrough:rl(this.elem,ZF.VG_CAN_PLAY_THROUGH),durationChange:rl(this.elem,ZF.VG_DURATION_CHANGE),emptied:rl(this.elem,ZF.VG_EMPTIED),encrypted:rl(this.elem,ZF.VG_ENCRYPTED),ended:rl(this.elem,ZF.VG_ENDED),error:rl(this.elem,ZF.VG_ERROR),loadedData:rl(this.elem,ZF.VG_LOADED_DATA),loadedMetadata:rl(this.elem,ZF.VG_LOADED_METADATA),loadStart:rl(this.elem,ZF.VG_LOAD_START),pause:rl(this.elem,ZF.VG_PAUSE),play:rl(this.elem,ZF.VG_PLAY),playing:rl(this.elem,ZF.VG_PLAYING),progress:rl(this.elem,ZF.VG_PROGRESS),rateChange:rl(this.elem,ZF.VG_RATE_CHANGE),seeked:rl(this.elem,ZF.VG_SEEKED),seeking:rl(this.elem,ZF.VG_SEEKING),stalled:rl(this.elem,ZF.VG_STALLED),suspend:rl(this.elem,ZF.VG_SUSPEND),timeUpdate:rl(this.elem,ZF.VG_TIME_UPDATE),volumeChange:rl(this.elem,ZF.VG_VOLUME_CHANGE),waiting:rl(this.elem,ZF.VG_WAITING),startAds:rl(this.elem,ZF.VG_START_ADS),endAds:rl(this.elem,ZF.VG_END_ADS),mutation:new si.a((function(t){var i=new MutationObserver((function(e){t.next(e)}));return i.observe(e.elem,{childList:!0,attributes:!0}),function(){i.disconnect()}})),bufferDetected:this.bufferDetected},this.mutationObs=this.subscriptions.mutation.subscribe(this.onMutation.bind(this)),this.canPlayObs=this.subscriptions.canPlay.subscribe(this.onCanPlay.bind(this)),this.canPlayThroughObs=this.subscriptions.canPlayThrough.subscribe(this.onCanPlayThrough.bind(this)),this.loadedMetadataObs=this.subscriptions.loadedMetadata.subscribe(this.onLoadMetadata.bind(this)),this.waitingObs=this.subscriptions.waiting.subscribe(this.onWait.bind(this)),this.progressObs=this.subscriptions.progress.subscribe(this.onProgress.bind(this)),this.endedObs=this.subscriptions.ended.subscribe(this.onComplete.bind(this)),this.playingObs=this.subscriptions.playing.subscribe(this.onStartPlaying.bind(this)),this.playObs=this.subscriptions.play.subscribe(this.onPlay.bind(this)),this.pauseObs=this.subscriptions.pause.subscribe(this.onPause.bind(this)),this.timeUpdateObs=this.subscriptions.timeUpdate.subscribe(this.onTimeUpdate.bind(this)),this.volumeChangeObs=this.subscriptions.volumeChange.subscribe(this.onVolumeChange.bind(this)),this.errorObs=this.subscriptions.error.subscribe(this.onError.bind(this)),this.vgMaster&&this.api.playerReadyEvent.subscribe((function(){e.prepareSync()}))}},{key:"prepareSync",value:function(){var e=this,t=[];for(var i in this.api.medias)this.api.medias[i]&&t.push(this.api.medias[i].subscriptions.canPlay);this.canPlayAllSubscription=Hg(t).pipe(Object(ri.a)((function(){for(var t=arguments.length,i=new Array(t),n=0;n.3?(e.playAtferSync=e.state===AF.VG_PLAYING,e.pause(),e.api.medias[t].pause(),e.api.medias[t].currentTime=e.currentTime):e.playAtferSync&&(e.play(),e.api.medias[t].play(),e.playAtferSync=!1)}}))}},{key:"onMutation",value:function(e){for(var t=0,i=e.length;t0&&n.target.src.indexOf("blob:")<0){this.loadMedia();break}}else if("childList"===n.type&&n.removedNodes.length&&"source"===n.removedNodes[0].nodeName.toLowerCase()){this.loadMedia();break}}}},{key:"loadMedia",value:function(){var e=this;this.vgMedia.pause(),this.vgMedia.currentTime=0,this.stopBufferCheck(),this.isBufferDetected=!0,this.bufferDetected.next(this.isBufferDetected),setTimeout((function(){return e.vgMedia.load()}),10)}},{key:"play",value:function(){var e=this;if(!(this.playPromise||this.state!==AF.VG_PAUSED&&this.state!==AF.VG_ENDED))return this.playPromise=this.vgMedia.play(),this.playPromise&&this.playPromise.then&&this.playPromise.catch&&this.playPromise.then((function(){e.playPromise=null})).catch((function(){e.playPromise=null})),this.playPromise}},{key:"pause",value:function(){var e=this;this.playPromise?this.playPromise.then((function(){e.vgMedia.pause()})):this.vgMedia.pause()}},{key:"onCanPlay",value:function(e){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlay=!0,this.ref.detectChanges()}},{key:"onCanPlayThrough",value:function(e){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlayThrough=!0,this.ref.detectChanges()}},{key:"onLoadMetadata",value:function(e){this.isMetadataLoaded=!0,this.time={current:0,left:0,total:1e3*this.duration},this.state=AF.VG_PAUSED;var t=Math.round(this.time.total);this.isLive=t===1/0,this.ref.detectChanges()}},{key:"onWait",value:function(e){this.isWaiting=!0,this.ref.detectChanges()}},{key:"onComplete",value:function(e){this.isCompleted=!0,this.state=AF.VG_ENDED,this.ref.detectChanges()}},{key:"onStartPlaying",value:function(e){this.state=AF.VG_PLAYING,this.ref.detectChanges()}},{key:"onPlay",value:function(e){this.state=AF.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}},{key:"onPause",value:function(e){this.state=AF.VG_PAUSED,this.vgMaster&&(this.playAtferSync||this.syncSubscription.unsubscribe()),this.stopBufferCheck(),this.ref.detectChanges()}},{key:"onTimeUpdate",value:function(e){var t=this.buffered.length-1;this.time={current:1e3*this.currentTime,total:this.time.total,left:1e3*(this.duration-this.currentTime)},t>=0&&(this.buffer={end:1e3*this.buffered.end(t)}),this.ref.detectChanges()}},{key:"onProgress",value:function(e){var t=this.buffered.length-1;t>=0&&(this.buffer={end:1e3*this.buffered.end(t)}),this.ref.detectChanges()}},{key:"onVolumeChange",value:function(e){this.ref.detectChanges()}},{key:"onError",value:function(e){this.ref.detectChanges()}},{key:"bufferCheck",value:function(){var e=1/this.checkInterval;this.currentPlayPos=this.currentTime,!this.isBufferDetected&&this.currentPlayPosthis.lastPlayPos+e&&(this.isBufferDetected=!1),this.bufferDetected.closed||this.bufferDetected.next(this.isBufferDetected),this.lastPlayPos=this.currentPlayPos}},{key:"startBufferCheck",value:function(){var e=this;this.checkBufferSubscription=xl(0,this.checkInterval).subscribe((function(){e.bufferCheck()}))}},{key:"stopBufferCheck",value:function(){this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected)}},{key:"seekTime",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=i?e*this.duration/100:e,this.currentTime=t}},{key:"addTextTrack",value:function(e,t,i,n){var a=this.vgMedia.addTextTrack(e,t,i);return n&&(a.mode=n),a}},{key:"ngOnDestroy",value:function(){this.vgMedia.src="",this.mutationObs.unsubscribe(),this.canPlayObs.unsubscribe(),this.canPlayThroughObs.unsubscribe(),this.loadedMetadataObs.unsubscribe(),this.waitingObs.unsubscribe(),this.progressObs.unsubscribe(),this.endedObs.unsubscribe(),this.playingObs.unsubscribe(),this.playObs.unsubscribe(),this.pauseObs.unsubscribe(),this.timeUpdateObs.unsubscribe(),this.volumeChangeObs.unsubscribe(),this.errorObs.unsubscribe(),this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.syncSubscription&&this.syncSubscription.unsubscribe(),this.bufferDetected.complete(),this.bufferDetected.unsubscribe(),this.api.unregisterMedia(this)}},{key:"id",get:function(){var e=void 0;return this.vgMedia&&(e=this.vgMedia.id),e}},{key:"duration",get:function(){return this.vgMedia.duration}},{key:"currentTime",set:function(e){this.vgMedia.currentTime=e},get:function(){return this.vgMedia.currentTime}},{key:"volume",set:function(e){this.vgMedia.volume=e},get:function(){return this.vgMedia.volume}},{key:"playbackRate",set:function(e){this.vgMedia.playbackRate=e},get:function(){return this.vgMedia.playbackRate}},{key:"buffered",get:function(){return this.vgMedia.buffered}},{key:"textTracks",get:function(){return this.vgMedia.textTracks}}]),e}()).\u0275fac=function(e){return new(e||rF)(a.Dc(TF),a.Dc(a.j))},rF.\u0275dir=a.yc({type:rF,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),rF),eN=((aF=function(){function e(t){_classCallCheck(this,e),this.ref=t,this.onEnterCuePoint=new a.u,this.onUpdateCuePoint=new a.u,this.onExitCuePoint=new a.u,this.onCompleteCuePoint=new a.u,this.subscriptions=[],this.cuesSubscriptions=[],this.totalCues=0}return _createClass(e,[{key:"ngOnInit",value:function(){this.onLoad$=rl(this.ref.nativeElement,ZF.VG_LOAD),this.subscriptions.push(this.onLoad$.subscribe(this.onLoad.bind(this)))}},{key:"onLoad",value:function(e){if(e.target&&e.target.track){var t=e.target.track.cues;this.ref.nativeElement.cues=t,this.updateCuePoints(t)}else if(e.target&&e.target.textTracks&&e.target.textTracks.length){var i=e.target.textTracks[0].cues;this.ref.nativeElement.cues=i,this.updateCuePoints(i)}}},{key:"updateCuePoints",value:function(e){this.cuesSubscriptions.forEach((function(e){return e.unsubscribe()}));for(var t=0,i=e.length;t1),a.pc(1),a.gd("ngIf",1===r.playlist.length)}}EF=$localize(_templateObject198());var gN,vN,bN=((gN=function(){function e(t,i,n,a,r){_classCallCheck(this,e),this.postsService=t,this.route=i,this.dialog=n,this.router=a,this.snackBar=r,this.playlist=[],this.original_playlist=null,this.playlist_updating=!1,this.show_player=!1,this.currentIndex=0,this.currentItem=null,this.id=null,this.uid=null,this.subscriptionName=null,this.subPlaylist=null,this.uuid=null,this.timestamp=null,this.is_shared=!1,this.db_playlist=null,this.db_file=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=null,this.sharingEnabled=null,this.url=null,this.name=null,this.downloading=!1,this.original_volume=null}return _createClass(e,[{key:"onResize",value:function(e){this.innerWidth=window.innerWidth}},{key:"ngOnInit",value:function(){var e=this;this.innerWidth=window.innerWidth,this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.uid=this.route.snapshot.paramMap.get("uid"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),this.url=this.route.snapshot.paramMap.get("url"),this.name=this.route.snapshot.paramMap.get("name"),this.uuid=this.route.snapshot.paramMap.get("uuid"),this.timestamp=this.route.snapshot.paramMap.get("timestamp"),this.postsService.initialized?this.processConfig():this.postsService.service_initialized.subscribe((function(t){t&&e.processConfig()}))}},{key:"processConfig",value:function(){this.baseStreamPath=this.postsService.path,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.subscriptionFolderPath=this.postsService.config.Subscriptions.subscriptions_base_path,this.fileNames=this.route.snapshot.paramMap.get("fileNames")?this.route.snapshot.paramMap.get("fileNames").split("|nvr|"):null,this.fileNames||this.type||(this.is_shared=!0),this.uid&&!this.id?this.getFile():this.id&&this.getPlaylistFiles(),this.url?(this.playlist=[],this.playlist.push({title:this.name,label:this.name,src:this.url,type:"video/mp4"}),this.currentItem=this.playlist[0],this.currentIndex=0,this.show_player=!0):(this.subscriptionName||this.fileNames)&&(this.show_player=!0,this.parseFileNames())}},{key:"getFile",value:function(){var e=this,t=!!this.fileNames;this.postsService.getFile(this.uid,null,this.uuid).subscribe((function(i){e.db_file=i.file,e.db_file?(e.sharingEnabled=e.db_file.sharingEnabled,e.fileNames||e.id||(e.fileNames=[e.db_file.id],e.type=e.db_file.isAudio?"audio":"video",t||e.parseFileNames()),e.db_file.sharingEnabled||!e.uuid?e.show_player=!0:t||e.openSnackBar("Error: Sharing has been disabled for this video!","Dismiss")):e.openSnackBar("Failed to get file information from the server.","Dismiss")}))}},{key:"getPlaylistFiles",value:function(){var e=this;this.postsService.getPlaylist(this.id,null,this.uuid).subscribe((function(t){t.playlist?(e.db_playlist=t.playlist,e.fileNames=e.db_playlist.fileNames,e.type=t.type,e.show_player=!0,e.parseFileNames()):e.openSnackBar("Failed to load playlist!","")}),(function(t){e.openSnackBar("Failed to load playlist!","")}))}},{key:"parseFileNames",value:function(){var e=null;"audio"===this.type?e="audio/mp3":"video"===this.type?e="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'."),this.playlist=[];for(var t=0;t0&&t.show_player)},directives:[yt.t,yt.q,tN,QF,vc,xx,yt.s,_c,fx,Za,_m,jv],styles:[".video-player[_ngcontent-%COMP%]{margin:0 auto;min-width:300px}.video-player[_ngcontent-%COMP%]:focus{outline:none}.audio-styles[_ngcontent-%COMP%]{height:50px;background-color:transparent;width:100%}.video-styles[_ngcontent-%COMP%]{width:100%} .mat-button-toggle-label-content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.container-video[_ngcontent-%COMP%]{max-width:100%;padding-left:0;padding-right:0}.progress-bar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:-1px}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:fixed;bottom:25px}.favorite-button[_ngcontent-%COMP%], .share-button[_ngcontent-%COMP%]{left:25px;position:fixed;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px;height:100%}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}.update-playlist-button-div[_ngcontent-%COMP%]{float:right;margin-right:30px;margin-top:25px;margin-bottom:15px}.spinner-div[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-right:12px;top:8px}"]}),gN);vN=$localize(_templateObject199());var _N,yN=["placeholder",$localize(_templateObject200())];_N=$localize(_templateObject201());var kN,wN,CN,xN=["placeholder",$localize(_templateObject202())];kN=$localize(_templateObject203()),wN=$localize(_templateObject204()),CN=$localize(_templateObject205());var SN,IN=["placeholder",$localize(_templateObject206())];SN=$localize(_templateObject207());var ON,DN,EN,AN,TN,PN=["placeholder",$localize(_templateObject208())];function RN(e,t){if(1&e&&(a.Jc(0,"mat-option",22),a.Bd(1),a.Ic()),2&e){var i=t.$implicit,n=a.ad(2);a.gd("value",i+(1===n.timerange_amount?"":"s")),a.pc(1),a.Dd(" ",i+(1===n.timerange_amount?"":"s")," ")}}function MN(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",6),a.Hc(1),a.Nc(2,TN),a.Gc(),a.Jc(3,"mat-form-field",18),a.Jc(4,"input",19),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().timerange_amount=e})),a.Ic(),a.Ic(),a.Jc(5,"mat-select",20),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().timerange_unit=e})),a.zd(6,RN,2,2,"mat-option",21),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(4),a.gd("ngModel",n.timerange_amount),a.pc(1),a.gd("ngModel",n.timerange_unit),a.pc(1),a.gd("ngForOf",n.time_units)}}function LN(e,t){1&e&&(a.Jc(0,"div",23),a.Ec(1,"mat-spinner",24),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",25))}ON=$localize(_templateObject209()),DN=$localize(_templateObject210()),EN=$localize(_templateObject211()),AN=$localize(_templateObject212()),TN=$localize(_templateObject213());var jN,FN,NN,zN,BN,JN,VN,HN,UN=((jN=function(){function e(t,i,n,a){_classCallCheck(this,e),this.postsService=t,this.snackBar=i,this.dialog=n,this.dialogRef=a,this.timerange_unit="days",this.download_all=!0,this.url=null,this.name=null,this.subscribing=!1,this.streamingOnlyMode=!1,this.audioOnlyMode=!1,this.customFileOutput="",this.customArgs="",this.time_units=["day","week","month","year"]}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"subscribeClicked",value:function(){var e=this;if(this.url&&""!==this.url){if(!this.download_all&&!this.timerange_amount)return void this.openSnackBar("You must specify an amount of time");this.subscribing=!0;var t=null;this.download_all||(t="now-"+this.timerange_amount.toString()+this.timerange_unit),this.postsService.createSubscription(this.url,this.name,t,this.streamingOnlyMode,this.audioOnlyMode,this.customArgs,this.customFileOutput).subscribe((function(t){e.subscribing=!1,t.new_sub?e.dialogRef.close(t.new_sub):(t.error&&e.openSnackBar("ERROR: "+t.error),e.dialogRef.close())}))}}},{key:"openArgsModifierDialog",value:function(){var e=this;this.dialog.open(QD,{data:{initial_args:this.customArgs}}).afterClosed().subscribe((function(t){null!=t&&(e.customArgs=t)}))}},{key:"openSnackBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||jN)(a.Dc(YO),a.Dc(A_),a.Dc(Th),a.Dc(Ih))},jN.\u0275cmp=a.xc({type:jN,selectors:[["app-subscribe-dialog"]],decls:63,vars:11,consts:[["mat-dialog-title",""],[1,"container-fluid"],[1,"row"],[1,"col-12","mb-4"],["color","accent"],["matInput","","required","","aria-required","true",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-3"],[3,"ngModel","ngModelChange"],["class","col-12",4,"ngIf"],[3,"disabled","ngModel","ngModelChange"],[1,"col-12","mb-3"],["mat-icon-button","",1,"args-edit-button",3,"click"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],["color","accent",2,"width","50px","text-align","center"],["type","number","matInput","",3,"ngModel","ngModelChange"],["color","accent",1,"unit-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-spinner"],[3,"diameter"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Nc(1,vN),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div",1),a.Jc(4,"div",2),a.Jc(5,"div",3),a.Jc(6,"mat-form-field",4),a.Jc(7,"input",5),a.Pc(8,yN),a.Wc("ngModelChange",(function(e){return t.url=e})),a.Ic(),a.Jc(9,"mat-hint"),a.Hc(10),a.Nc(11,_N),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ec(12,"mat-divider"),a.Jc(13,"div",1),a.Jc(14,"div",2),a.Jc(15,"div",6),a.Jc(16,"mat-form-field",4),a.Jc(17,"input",7),a.Pc(18,xN),a.Wc("ngModelChange",(function(e){return t.name=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(19,"div",8),a.Jc(20,"mat-checkbox",9),a.Wc("ngModelChange",(function(e){return t.download_all=e})),a.Hc(21),a.Nc(22,kN),a.Gc(),a.Ic(),a.Ic(),a.zd(23,MN,7,3,"div",10),a.Jc(24,"div",6),a.Jc(25,"div"),a.Jc(26,"mat-checkbox",9),a.Wc("ngModelChange",(function(e){return t.audioOnlyMode=e})),a.Hc(27),a.Nc(28,wN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(29,"div",6),a.Jc(30,"div"),a.Jc(31,"mat-checkbox",11),a.Wc("ngModelChange",(function(e){return t.streamingOnlyMode=e})),a.Hc(32),a.Nc(33,CN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(34,"div",12),a.Jc(35,"mat-form-field",4),a.Jc(36,"input",7),a.Pc(37,IN),a.Wc("ngModelChange",(function(e){return t.customArgs=e})),a.Ic(),a.Jc(38,"button",13),a.Wc("click",(function(){return t.openArgsModifierDialog()})),a.Jc(39,"mat-icon"),a.Bd(40,"edit"),a.Ic(),a.Ic(),a.Jc(41,"mat-hint"),a.Hc(42),a.Nc(43,SN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(44,"div",6),a.Jc(45,"mat-form-field",4),a.Jc(46,"input",7),a.Pc(47,PN),a.Wc("ngModelChange",(function(e){return t.customFileOutput=e})),a.Ic(),a.Jc(48,"mat-hint"),a.Jc(49,"a",14),a.Hc(50),a.Nc(51,ON),a.Gc(),a.Ic(),a.Bd(52,". "),a.Hc(53),a.Nc(54,DN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(55,"mat-dialog-actions"),a.Jc(56,"button",15),a.Hc(57),a.Nc(58,EN),a.Gc(),a.Ic(),a.Jc(59,"button",16),a.Wc("click",(function(){return t.subscribeClicked()})),a.Hc(60),a.Nc(61,AN),a.Gc(),a.Ic(),a.zd(62,LN,2,1,"div",17),a.Ic()),2&e&&(a.pc(7),a.gd("ngModel",t.url),a.pc(10),a.gd("ngModel",t.name),a.pc(3),a.gd("ngModel",t.download_all),a.pc(3),a.gd("ngIf",!t.download_all),a.pc(3),a.gd("ngModel",t.audioOnlyMode),a.pc(5),a.gd("disabled",t.audioOnlyMode)("ngModel",t.streamingOnlyMode),a.pc(5),a.gd("ngModel",t.customArgs),a.pc(10),a.gd("ngModel",t.customFileOutput),a.pc(13),a.gd("disabled",!t.url),a.pc(3),a.gd("ngIf",t.subscribing))},directives:[Mh,Lh,Ud,Pm,_r,Ks,Dr,es,Ld,Mm,Yc,yt.t,Za,_m,jh,Rh,Gr,mb,yt.s,za,jv],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px}"]}),jN);function GN(e,t){if(1&e&&(a.Jc(0,"div",1),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,HN),a.Gc(),a.Bd(4,"\xa0"),a.Ic(),a.Jc(5,"span",2),a.Bd(6),a.Ic(),a.Ic()),2&e){var i=a.ad();a.pc(6),a.Cd(i.sub.archive)}}FN=$localize(_templateObject214()),NN=$localize(_templateObject215()),zN=$localize(_templateObject216()),BN=$localize(_templateObject217()),JN=$localize(_templateObject218()),VN=$localize(_templateObject219()),HN=$localize(_templateObject220());var WN,qN,$N,KN,XN,YN,ZN,QN,ez=((WN=function(){function e(t,i,n){_classCallCheck(this,e),this.dialogRef=t,this.data=i,this.postsService=n,this.sub=null,this.unsubbedEmitter=null}return _createClass(e,[{key:"ngOnInit",value:function(){this.data&&(this.sub=this.data.sub,this.unsubbedEmitter=this.data.unsubbedEmitter)}},{key:"unsubscribe",value:function(){var e=this;this.postsService.unsubscribe(this.sub,!0).subscribe((function(t){e.unsubbedEmitter.emit(!0),e.dialogRef.close()}))}},{key:"downloadArchive",value:function(){this.postsService.downloadArchive(this.sub).subscribe((function(e){saveAs(e,"archive.txt")}))}}]),e}()).\u0275fac=function(e){return new(e||WN)(a.Dc(Ih),a.Dc(Oh),a.Dc(YO))},WN.\u0275cmp=a.xc({type:WN,selectors:[["app-subscription-info-dialog"]],decls:36,vars:5,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-value"],["class","info-item",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","","color","accent",3,"click"],[1,"spacer"],["mat-button","","color","warn",3,"click"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Bd(1),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div",1),a.Jc(4,"strong"),a.Hc(5),a.Nc(6,FN),a.Gc(),a.Bd(7,"\xa0"),a.Ic(),a.Jc(8,"span",2),a.Bd(9),a.Ic(),a.Ic(),a.Jc(10,"div",1),a.Jc(11,"strong"),a.Hc(12),a.Nc(13,NN),a.Gc(),a.Bd(14,"\xa0"),a.Ic(),a.Jc(15,"span",2),a.Bd(16),a.Ic(),a.Ic(),a.Jc(17,"div",1),a.Jc(18,"strong"),a.Hc(19),a.Nc(20,zN),a.Gc(),a.Bd(21,"\xa0"),a.Ic(),a.Jc(22,"span",2),a.Bd(23),a.Ic(),a.Ic(),a.zd(24,GN,7,1,"div",3),a.Ic(),a.Jc(25,"mat-dialog-actions"),a.Jc(26,"button",4),a.Hc(27),a.Nc(28,BN),a.Gc(),a.Ic(),a.Jc(29,"button",5),a.Wc("click",(function(){return t.downloadArchive()})),a.Hc(30),a.Nc(31,JN),a.Gc(),a.Ic(),a.Ec(32,"span",6),a.Jc(33,"button",7),a.Wc("click",(function(){return t.unsubscribe()})),a.Hc(34),a.Nc(35,VN),a.Gc(),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.Cd(t.sub.name),a.pc(8),a.Cd(t.sub.isPlaylist?"Playlist":"Channel"),a.pc(7),a.Cd(t.sub.url),a.pc(7),a.Cd(t.sub.id),a.pc(1),a.gd("ngIf",t.sub.archive))},directives:[Mh,Lh,yt.t,jh,Za,Rh],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px}.info-item-value[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),WN);function tz(e,t){if(1&e&&(a.Jc(0,"strong"),a.Bd(1),a.Ic()),2&e){var i=a.ad().$implicit;a.pc(1),a.Cd(i.name)}}function iz(e,t){1&e&&(a.Jc(0,"div"),a.Hc(1),a.Nc(2,XN),a.Gc(),a.Ic())}function nz(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-list-item"),a.Jc(1,"a",9),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad().goToSubscription(e)})),a.zd(2,tz,2,1,"strong",10),a.zd(3,iz,3,0,"div",10),a.Ic(),a.Jc(4,"button",11),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad().showSubInfo(e)})),a.Jc(5,"mat-icon"),a.Bd(6,"info"),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit;a.pc(2),a.gd("ngIf",n.name),a.pc(1),a.gd("ngIf",!n.name)}}function az(e,t){1&e&&(a.Jc(0,"div",12),a.Jc(1,"p"),a.Nc(2,YN),a.Ic(),a.Ic())}function rz(e,t){1&e&&(a.Jc(0,"div",14),a.Hc(1),a.Nc(2,ZN),a.Gc(),a.Ic())}function oz(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-list-item"),a.Jc(1,"a",9),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad().goToSubscription(e)})),a.Jc(2,"strong"),a.Bd(3),a.Ic(),a.zd(4,rz,3,0,"div",13),a.Ic(),a.Jc(5,"button",11),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad().showSubInfo(e)})),a.Jc(6,"mat-icon"),a.Bd(7,"info"),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit;a.pc(3),a.Cd(n.name),a.pc(1),a.gd("ngIf",!n.name)}}function sz(e,t){1&e&&(a.Jc(0,"div",12),a.Jc(1,"p"),a.Nc(2,QN),a.Ic(),a.Ic())}function cz(e,t){1&e&&(a.Jc(0,"div",15),a.Ec(1,"mat-progress-bar",16),a.Ic())}qN=$localize(_templateObject221()),$N=$localize(_templateObject222()),KN=$localize(_templateObject223()),XN=$localize(_templateObject224()),YN=$localize(_templateObject225()),ZN=$localize(_templateObject226()),QN=$localize(_templateObject227());var lz,uz,dz,hz,pz,fz=((lz=function(){function e(t,i,n,a){_classCallCheck(this,e),this.dialog=t,this.postsService=i,this.router=n,this.snackBar=a,this.playlist_subscriptions=[],this.channel_subscriptions=[],this.subscriptions=null,this.subscriptions_loading=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.postsService.initialized&&this.getSubscriptions(),this.postsService.service_initialized.subscribe((function(t){t&&e.getSubscriptions()}))}},{key:"getSubscriptions",value:function(){var e=this;this.subscriptions_loading=!0,this.subscriptions=null,this.postsService.getAllSubscriptions().subscribe((function(t){if(e.channel_subscriptions=[],e.playlist_subscriptions=[],e.subscriptions_loading=!1,e.subscriptions=t.subscriptions,e.subscriptions)for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||lz)(a.Dc(Th),a.Dc(YO),a.Dc(bO),a.Dc(A_))},lz.\u0275cmp=a.xc({type:lz,selectors:[["app-subscriptions"]],decls:19,vars:5,consts:[[2,"text-align","center","margin-bottom","15px"],[2,"width","80%","margin","0 auto"],[2,"text-align","center"],[1,"sub-nav-list"],[4,"ngFor","ngForOf"],["style","width: 80%; margin: 0 auto; padding-left: 15px;",4,"ngIf"],[2,"text-align","center","margin-top","10px"],["style","margin: 0 auto; width: 80%",4,"ngIf"],["mat-fab","",1,"add-subscription-button",3,"click"],["matLine","","href","javascript:void(0)",1,"a-list-item",3,"click"],[4,"ngIf"],["mat-icon-button","",3,"click"],[2,"width","80%","margin","0 auto","padding-left","15px"],["class","content-loading-div",4,"ngIf"],[1,"content-loading-div"],[2,"margin","0 auto","width","80%"],["mode","indeterminate"]],template:function(e,t){1&e&&(a.Ec(0,"br"),a.Jc(1,"h2",0),a.Nc(2,qN),a.Ic(),a.Ec(3,"mat-divider",1),a.Ec(4,"br"),a.Jc(5,"h4",2),a.Nc(6,$N),a.Ic(),a.Jc(7,"mat-nav-list",3),a.zd(8,nz,7,2,"mat-list-item",4),a.Ic(),a.zd(9,az,3,0,"div",5),a.Jc(10,"h4",6),a.Nc(11,KN),a.Ic(),a.Jc(12,"mat-nav-list",3),a.zd(13,oz,8,2,"mat-list-item",4),a.Ic(),a.zd(14,sz,3,0,"div",5),a.zd(15,cz,2,0,"div",7),a.Jc(16,"button",8),a.Wc("click",(function(){return t.openSubscribeDialog()})),a.Jc(17,"mat-icon"),a.Bd(18,"add"),a.Ic(),a.Ic()),2&e&&(a.pc(8),a.gd("ngForOf",t.channel_subscriptions),a.pc(1),a.gd("ngIf",0===t.channel_subscriptions.length&&t.subscriptions),a.pc(4),a.gd("ngForOf",t.playlist_subscriptions),a.pc(1),a.gd("ngIf",0===t.playlist_subscriptions.length&&t.subscriptions),a.pc(1),a.gd("ngIf",t.subscriptions_loading))},directives:[Mm,eg,yt.s,yt.t,Za,_m,og,ha,_v],styles:[".add-subscription-button[_ngcontent-%COMP%]{position:fixed;bottom:30px;right:30px}.subscription-card[_ngcontent-%COMP%]{height:200px;width:300px}.content-loading-div[_ngcontent-%COMP%]{position:absolute;width:200px;height:50px;bottom:-18px}.a-list-item[_ngcontent-%COMP%]{height:48px;padding-top:12px!important}.sub-nav-list[_ngcontent-%COMP%]{margin:0 auto;width:80%}"]}),lz);function mz(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",4),a.Wc("click",(function(){return a.rd(i),a.ad().deleteForever()})),a.Jc(1,"mat-icon"),a.Bd(2,"delete_forever"),a.Ic(),a.Hc(3),a.Nc(4,pz),a.Gc(),a.Ic()}}function gz(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"img",11),a.Wc("error",(function(e){return a.rd(i),a.ad().onImgError(e)})),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(1),a.gd("src",n.file.thumbnailURL,a.td)}}uz=$localize(_templateObject228()),dz=$localize(_templateObject229()),hz=$localize(_templateObject230()),pz=$localize(_templateObject231());var vz,bz,_z=((vz=function(){function e(t,i,n){_classCallCheck(this,e),this.snackBar=t,this.postsService=i,this.dialog=n,this.image_errored=!1,this.image_loaded=!1,this.formattedDuration=null,this.use_youtubedl_archive=!1,this.goToFileEmit=new a.u,this.reloadSubscription=new a.u,this.scrollSubject=new Lt.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}return _createClass(e,[{key:"ngOnInit",value:function(){var e,t,i,n,a;this.file.duration&&(this.formattedDuration=(e=this.file.duration,i=~~(e%3600/60),a="",(t=~~(e/3600))>0&&(a+=t+":"+(i<10?"0":"")),a+=i+":"+((n=~~e%60)<10?"0":""),a+=""+n))}},{key:"onImgError",value:function(e){this.image_errored=!0}},{key:"onHoverResponse",value:function(){this.scrollSubject.next()}},{key:"imageLoaded",value:function(e){this.image_loaded=!0}},{key:"goToFile",value:function(){this.goToFileEmit.emit({name:this.file.id,url:this.file.requested_formats?this.file.requested_formats[0].url:this.file.url})}},{key:"openSubscriptionInfoDialog",value:function(){this.dialog.open(ML,{data:{file:this.file},minWidth:"50vw"})}},{key:"deleteAndRedownload",value:function(){var e=this;this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!1,this.file.uid).subscribe((function(t){e.reloadSubscription.emit(!0),e.openSnackBar("Successfully deleted file: '".concat(e.file.id,"'"),"Dismiss.")}))}},{key:"deleteForever",value:function(){var e=this;this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!0,this.file.uid).subscribe((function(t){e.reloadSubscription.emit(!0),e.openSnackBar("Successfully deleted file: '".concat(e.file.id,"'"),"Dismiss.")}))}},{key:"openSnackBar",value:function(e,t){this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||vz)(a.Dc(A_),a.Dc(YO),a.Dc(Th))},vz.\u0275cmp=a.xc({type:vz,selectors:[["app-subscription-file-card"]],inputs:{file:"file",sub:"sub",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{goToFileEmit:"goToFileEmit",reloadSubscription:"reloadSubscription"},decls:27,vars:5,consts:[[2,"position","relative","width","fit-content"],[1,"duration-time"],["mat-icon-button","",1,"menuButton",3,"matMenuTriggerFor"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["matRipple","",1,"example-card","mat-elevation-z6",3,"click"],[2,"padding","5px"],["class","img-div",4,"ngIf"],[1,"max-two-lines"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"src","error"]],template:function(e,t){if(1&e&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Hc(2),a.Nc(3,uz),a.Gc(),a.Bd(4),a.Ic(),a.Jc(5,"button",2),a.Jc(6,"mat-icon"),a.Bd(7,"more_vert"),a.Ic(),a.Ic(),a.Jc(8,"mat-menu",null,3),a.Jc(10,"button",4),a.Wc("click",(function(){return t.openSubscriptionInfoDialog()})),a.Jc(11,"mat-icon"),a.Bd(12,"info"),a.Ic(),a.Hc(13),a.Nc(14,dz),a.Gc(),a.Ic(),a.Jc(15,"button",4),a.Wc("click",(function(){return t.deleteAndRedownload()})),a.Jc(16,"mat-icon"),a.Bd(17,"restore"),a.Ic(),a.Hc(18),a.Nc(19,hz),a.Gc(),a.Ic(),a.zd(20,mz,5,0,"button",5),a.Ic(),a.Jc(21,"mat-card",6),a.Wc("click",(function(){return t.goToFile()})),a.Jc(22,"div",7),a.zd(23,gz,2,1,"div",8),a.Jc(24,"span",9),a.Jc(25,"strong"),a.Bd(26),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()),2&e){var i=a.nd(9);a.pc(4),a.Dd("\xa0",t.formattedDuration," "),a.pc(1),a.gd("matMenuTriggerFor",i),a.pc(15),a.gd("ngIf",t.sub.archive&&t.use_youtubedl_archive),a.pc(3),a.gd("ngIf",!t.image_errored&&t.file.thumbnailURL),a.pc(3),a.Cd(t.file.title)}},directives:[Za,zg,_m,Lg,Eg,yt.t,Nc,Da],styles:[".example-card[_ngcontent-%COMP%]{width:200px;height:200px;padding:0;cursor:pointer}.menuButton[_ngcontent-%COMP%]{right:0;top:-1px;position:absolute;z-index:999}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:200px;height:112.5px;-o-object-fit:cover;object-fit:cover}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{max-height:80px;padding:0;margin:32px 0 0 -5px;width:calc(100% + 10px)}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:5px;position:absolute}.duration-time[_ngcontent-%COMP%]{position:absolute;left:5px;top:5px;z-index:99999}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:175px!important}.image[_ngcontent-%COMP%]{width:175px}}"]}),vz);function yz(e,t){if(1&e&&(a.Jc(0,"h2",9),a.Bd(1),a.Ic()),2&e){var i=a.ad();a.pc(1),a.Dd(" ",i.subscription.name," ")}}bz=$localize(_templateObject232());var kz=["placeholder",$localize(_templateObject233())];function wz(e,t){if(1&e&&(a.Jc(0,"mat-option",25),a.Bd(1),a.Ic()),2&e){var i=t.$implicit;a.gd("value",i.value),a.pc(1),a.Dd(" ",i.value.label," ")}}function Cz(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",26),a.Jc(1,"app-subscription-file-card",27),a.Wc("reloadSubscription",(function(){return a.rd(i),a.ad(2).getSubscription()}))("goToFileEmit",(function(e){return a.rd(i),a.ad(2).goToFile(e)})),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad(2);a.pc(1),a.gd("file",n)("sub",r.subscription)("use_youtubedl_archive",r.use_youtubedl_archive)}}function xz(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"div",10),a.Jc(2,"div",11),a.Jc(3,"div",12),a.Jc(4,"mat-select",13),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().filterProperty=e}))("selectionChange",(function(e){return a.rd(i),a.ad().filterOptionChanged(e.value)})),a.zd(5,wz,2,2,"mat-option",14),a.bd(6,"keyvalue"),a.Ic(),a.Ic(),a.Jc(7,"div",12),a.Jc(8,"button",15),a.Wc("click",(function(){return a.rd(i),a.ad().toggleModeChange()})),a.Jc(9,"mat-icon"),a.Bd(10),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ec(11,"div",16),a.Jc(12,"div",16),a.Jc(13,"h4",17),a.Nc(14,bz),a.Ic(),a.Ic(),a.Jc(15,"div",18),a.Jc(16,"mat-form-field",19),a.Jc(17,"input",20),a.Pc(18,kz),a.Wc("focus",(function(){return a.rd(i),a.ad().searchIsFocused=!0}))("blur",(function(){return a.rd(i),a.ad().searchIsFocused=!1}))("ngModelChange",(function(e){return a.rd(i),a.ad().search_text=e}))("ngModelChange",(function(e){return a.rd(i),a.ad().onSearchInputChanged(e)})),a.Ic(),a.Jc(19,"mat-icon",21),a.Bd(20,"search"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(21,"div",22),a.Jc(22,"div",23),a.zd(23,Cz,2,3,"div",24),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(4),a.gd("ngModel",n.filterProperty),a.pc(1),a.gd("ngForOf",a.cd(6,6,n.filterProperties)),a.pc(5),a.Cd(n.descendingMode?"arrow_downward":"arrow_upward"),a.pc(6),a.gd("ngClass",n.searchIsFocused?"search-bar-focused":"search-bar-unfocused"),a.pc(1),a.gd("ngModel",n.search_text),a.pc(6),a.gd("ngForOf",n.filtered_files)}}function Sz(e,t){1&e&&a.Ec(0,"mat-spinner",28),2&e&&a.gd("diameter",50)}var Iz,Oz,Dz,Ez=((Iz=function(){function e(t,i,n){_classCallCheck(this,e),this.postsService=t,this.route=i,this.router=n,this.id=null,this.subscription=null,this.files=null,this.filtered_files=null,this.use_youtubedl_archive=!1,this.search_mode=!1,this.search_text="",this.searchIsFocused=!1,this.descendingMode=!0,this.filterProperties={upload_date:{key:"upload_date",label:"Upload Date",property:"upload_date"},name:{key:"name",label:"Name",property:"title"},file_size:{key:"file_size",label:"File Size",property:"size"},duration:{key:"duration",label:"Duration",property:"duration"}},this.filterProperty=this.filterProperties.upload_date,this.downloading=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.route.snapshot.paramMap.get("id")&&(this.id=this.route.snapshot.paramMap.get("id"),this.postsService.service_initialized.subscribe((function(t){t&&(e.getConfig(),e.getSubscription())})));var t=localStorage.getItem("filter_property");t&&this.filterProperties[t]&&(this.filterProperty=this.filterProperties[t])}},{key:"goBack",value:function(){this.router.navigate(["/subscriptions"])}},{key:"getSubscription",value:function(){var e=this;this.postsService.getSubscription(this.id).subscribe((function(t){e.subscription=t.subscription,e.files=t.files,e.search_mode?e.filterFiles(e.search_text):e.filtered_files=e.files,e.filterByProperty(e.filterProperty.property)}))}},{key:"getConfig",value:function(){this.use_youtubedl_archive=this.postsService.config.Subscriptions.subscriptions_use_youtubedl_archive}},{key:"goToFile",value:function(e){var t=e.name,i=e.url;localStorage.setItem("player_navigator",this.router.url),this.router.navigate(this.subscription.streamingOnly?["/player",{name:t,url:i}]:["/player",{fileNames:t,type:this.subscription.type?this.subscription.type:"video",subscriptionName:this.subscription.name,subPlaylist:this.subscription.isPlaylist,uuid:this.postsService.user?this.postsService.user.uid:null}])}},{key:"onSearchInputChanged",value:function(e){e.length>0?(this.search_mode=!0,this.filterFiles(e)):this.search_mode=!1}},{key:"filterFiles",value:function(e){var t=e.toLowerCase();this.filtered_files=this.files.filter((function(e){return e.id.toLowerCase().includes(t)}))}},{key:"filterByProperty",value:function(e){this.filtered_files=this.filtered_files.sort(this.descendingMode?function(t,i){return t[e]>i[e]?-1:1}:function(t,i){return t[e]>i[e]?1:-1})}},{key:"filterOptionChanged",value:function(e){this.filterByProperty(e.property),localStorage.setItem("filter_property",e.key)}},{key:"toggleModeChange",value:function(){this.descendingMode=!this.descendingMode,this.filterByProperty(this.filterProperty.property)}},{key:"downloadContent",value:function(){for(var e=this,t=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||Tz)(a.Dc(YO),a.Dc(A_),a.Dc(bO))},Tz.\u0275cmp=a.xc({type:Tz,selectors:[["app-login"]],decls:14,vars:5,consts:[[1,"login-card"],[3,"selectedIndex","selectedIndexChange"],["label","Login"],[2,"margin-top","10px"],["matInput","","placeholder","User name",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange","keyup.enter"],[2,"margin-bottom","10px","margin-top","10px"],["color","primary","mat-raised-button","",3,"disabled","click"],["label","Register",4,"ngIf"],["label","Register"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Confirm Password",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(a.Jc(0,"mat-card",0),a.Jc(1,"mat-tab-group",1),a.Wc("selectedIndexChange",(function(e){return t.selectedTabIndex=e})),a.Jc(2,"mat-tab",2),a.Jc(3,"div",3),a.Jc(4,"mat-form-field"),a.Jc(5,"input",4),a.Wc("ngModelChange",(function(e){return t.loginUsernameInput=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(6,"div"),a.Jc(7,"mat-form-field"),a.Jc(8,"input",5),a.Wc("ngModelChange",(function(e){return t.loginPasswordInput=e}))("keyup.enter",(function(){return t.login()})),a.Ic(),a.Ic(),a.Ic(),a.Jc(9,"div",6),a.Jc(10,"button",7),a.Wc("click",(function(){return t.login()})),a.Hc(11),a.Nc(12,Oz),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.zd(13,Az,14,4,"mat-tab",8),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.gd("selectedIndex",t.selectedTabIndex),a.pc(4),a.gd("ngModel",t.loginUsernameInput),a.pc(3),a.gd("ngModel",t.loginPasswordInput),a.pc(2),a.gd("disabled",t.loggingIn),a.pc(3),a.gd("ngIf",t.registrationEnabled))},directives:[Nc,Ly,Sy,Ud,Pm,_r,Dr,es,Za,yt.t],styles:[".login-card[_ngcontent-%COMP%]{max-width:600px;width:80%;margin:20px auto 0}"]}),Tz);function zz(e,t){1&e&&(a.Jc(0,"mat-icon",10),a.Bd(1,"done"),a.Ic())}function Bz(e,t){1&e&&(a.Jc(0,"mat-icon",11),a.Bd(1,"error"),a.Ic())}function Jz(e,t){if(1&e&&(a.Jc(0,"div"),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,Mz),a.Gc(),a.Ic(),a.Ec(4,"br"),a.Bd(5),a.Ic()),2&e){var i=a.ad(2);a.pc(5),a.Dd(" ",i.download.error," ")}}function Vz(e,t){if(1&e&&(a.Jc(0,"div"),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,Lz),a.Gc(),a.Ic(),a.Bd(4),a.bd(5,"date"),a.Ic()),2&e){var i=a.ad(2);a.pc(4),a.Dd("\xa0",a.dd(5,1,i.download.timestamp_start,"medium")," ")}}function Hz(e,t){if(1&e&&(a.Jc(0,"div"),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,jz),a.Gc(),a.Ic(),a.Bd(4),a.bd(5,"date"),a.Ic()),2&e){var i=a.ad(2);a.pc(4),a.Dd("\xa0",a.dd(5,1,i.download.timestamp_end,"medium")," ")}}function Uz(e,t){if(1&e&&(a.Jc(0,"div"),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,Fz),a.Gc(),a.Ic(),a.Bd(4),a.Ic()),2&e){var i=a.ad(2);a.pc(4),a.Dd("\xa0",i.download.fileNames.join(", ")," ")}}function Gz(e,t){if(1&e&&(a.Jc(0,"mat-expansion-panel",12),a.Jc(1,"mat-expansion-panel-header"),a.Jc(2,"div"),a.Hc(3),a.Nc(4,Rz),a.Gc(),a.Ic(),a.Jc(5,"div",13),a.Jc(6,"div",14),a.Jc(7,"mat-panel-description"),a.Bd(8),a.bd(9,"date"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.zd(10,Jz,6,1,"div",15),a.zd(11,Vz,6,4,"div",15),a.zd(12,Hz,6,4,"div",15),a.zd(13,Uz,5,1,"div",15),a.Ic()),2&e){var i=a.ad();a.pc(8),a.Cd(a.dd(9,5,i.download.timestamp_start,"medium")),a.pc(2),a.gd("ngIf",i.download.error),a.pc(1),a.gd("ngIf",i.download.timestamp_start),a.pc(1),a.gd("ngIf",i.download.timestamp_end),a.pc(1),a.gd("ngIf",i.download.fileNames)}}Pz=$localize(_templateObject236()),Rz=$localize(_templateObject237()),Mz=$localize(_templateObject238()),Lz=$localize(_templateObject239()),jz=$localize(_templateObject240()),Fz=$localize(_templateObject241());var Wz,qz,$z,Kz,Xz=((Wz=function(){function e(){_classCallCheck(this,e),this.download={uid:null,type:"audio",percent_complete:0,complete:!1,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,timestamp_start:null,timestamp_end:null,is_playlist:!1,error:!1},this.cancelDownload=new a.u,this.queueNumber=null,this.url_id=null}return _createClass(e,[{key:"ngOnInit",value:function(){if(this.download&&this.download.url&&this.download.url.includes("youtu")){var e=this.download.is_playlist?6:3,t=this.download.url.indexOf(this.download.is_playlist?"?list=":"?v=")+e;this.url_id=this.download.url.substring(t,this.download.url.length)}}},{key:"cancelTheDownload",value:function(){this.cancelDownload.emit(this.download)}}]),e}()).\u0275fac=function(e){return new(e||Wz)},Wz.\u0275cmp=a.xc({type:Wz,selectors:[["app-download-item"]],inputs:{download:"download",queueNumber:"queueNumber"},outputs:{cancelDownload:"cancelDownload"},decls:17,vars:11,consts:[[3,"rowHeight","cols"],[3,"colspan"],[2,"display","inline-block","text-align","center","width","100%"],[1,"shorten"],[3,"value","mode"],["style","margin-left: 25px; cursor: default","matTooltip","The download is complete","matTooltip-i18n","",4,"ngIf"],["style","margin-left: 25px; cursor: default","matTooltip","An error has occurred","matTooltip-i18n","",4,"ngIf"],["mat-icon-button","","color","warn",2,"margin-bottom","2px",3,"click"],["fontSet","material-icons-outlined"],["class","ignore-margin",4,"ngIf"],["matTooltip","The download is complete","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],["matTooltip","An error has occurred","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],[1,"ignore-margin"],[2,"width","100%"],[2,"float","right"],[4,"ngIf"]],template:function(e,t){1&e&&(a.Jc(0,"div"),a.Jc(1,"mat-grid-list",0),a.Jc(2,"mat-grid-tile",1),a.Jc(3,"div",2),a.Jc(4,"span",3),a.Hc(5),a.Nc(6,Pz),a.Gc(),a.Bd(7),a.Ic(),a.Ic(),a.Ic(),a.Jc(8,"mat-grid-tile",1),a.Ec(9,"mat-progress-bar",4),a.zd(10,zz,2,0,"mat-icon",5),a.zd(11,Bz,2,0,"mat-icon",6),a.Ic(),a.Jc(12,"mat-grid-tile",1),a.Jc(13,"button",7),a.Wc("click",(function(){return t.cancelTheDownload()})),a.Jc(14,"mat-icon",8),a.Bd(15,"cancel"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.zd(16,Gz,14,8,"mat-expansion-panel",9),a.Ic()),2&e&&(a.pc(1),a.gd("rowHeight",50)("cols",24),a.pc(1),a.gd("colspan",7),a.pc(5),a.Dd("\xa0",t.url_id?t.url_id:t.download.uid,""),a.pc(1),a.gd("colspan",13),a.pc(1),a.gd("value",t.download.complete||t.download.error?100:t.download.percent_complete)("mode",t.download.complete||0!==t.download.percent_complete||t.download.error?"determinate":"indeterminate"),a.pc(1),a.gd("ngIf",t.download.complete),a.pc(1),a.gd("ngIf",t.download.error),a.pc(1),a.gd("colspan",4),a.pc(4),a.gd("ngIf",t.download.timestamp_start))},directives:[Kp,Rp,_v,yt.t,Za,_m,hv,kp,Cp,xp],pipes:[yt.f],styles:[".shorten[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}.mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.ignore-margin[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px;margin-bottom:-15px}"]}),Wz);function Yz(e,t){1&e&&(a.Jc(0,"span"),a.Bd(1,"\xa0"),a.Hc(2),a.Nc(3,$z),a.Gc(),a.Ic())}function Zz(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-card",11),a.Jc(1,"app-download-item",12),a.Wc("cancelDownload",(function(){a.rd(i);var e=a.ad().$implicit,t=a.ad(2).$implicit;return a.ad().clearDownload(t.key,e.value.uid)})),a.Ic(),a.Ic()}if(2&e){var n=a.ad(),r=n.$implicit,o=n.index;a.pc(1),a.gd("download",r.value)("queueNumber",o+1)}}function Qz(e,t){if(1&e&&(a.Jc(0,"div",9),a.zd(1,Zz,2,2,"mat-card",10),a.Ic()),2&e){var i=t.$implicit;a.pc(1),a.gd("ngIf",i.value)}}function eB(e,t){if(1&e){var i=a.Kc();a.Hc(0),a.Jc(1,"mat-card",3),a.Jc(2,"h4",4),a.Hc(3),a.Nc(4,qz),a.Gc(),a.Bd(5),a.zd(6,Yz,4,0,"span",2),a.Ic(),a.Jc(7,"div",5),a.Jc(8,"div",6),a.zd(9,Qz,2,1,"div",7),a.bd(10,"keyvalue"),a.Ic(),a.Ic(),a.Jc(11,"div"),a.Jc(12,"button",8),a.Wc("click",(function(){a.rd(i);var e=a.ad().$implicit;return a.ad().clearDownloads(e.key)})),a.Bd(13,"Clear all downloads"),a.Ic(),a.Ic(),a.Ic(),a.Gc()}if(2&e){var n=a.ad().$implicit,r=a.ad();a.pc(5),a.Dd("\xa0",n.key," "),a.pc(1),a.gd("ngIf",n.key===r.postsService.session_id),a.pc(3),a.gd("ngForOf",a.dd(10,3,n.value,r.sort_downloads))}}function tB(e,t){if(1&e&&(a.Jc(0,"div"),a.zd(1,eB,14,6,"ng-container",2),a.Ic()),2&e){var i=t.$implicit,n=a.ad();a.pc(1),a.gd("ngIf",n.keys(i.value).length>0)}}function iB(e,t){1&e&&(a.Jc(0,"div"),a.Jc(1,"h4",4),a.Nc(2,Kz),a.Ic(),a.Ic())}qz=$localize(_templateObject242()),$z=$localize(_templateObject243()),Kz=$localize(_templateObject244());var nB,aB,rB,oB=((aB=function(){function e(t,i){_classCallCheck(this,e),this.postsService=t,this.router=i,this.downloads_check_interval=1e3,this.downloads={},this.interval_id=null,this.keys=Object.keys,this.valid_sessions_length=0,this.sort_downloads=function(e,t){return t.value.timestamp_start-e.value.timestamp_start}}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.getCurrentDownloads(),this.interval_id=setInterval((function(){e.getCurrentDownloads()}),this.downloads_check_interval),this.postsService.service_initialized.subscribe((function(t){t&&(e.postsService.config.Extra.enable_downloads_manager||e.router.navigate(["/home"]))}))}},{key:"ngOnDestroy",value:function(){this.interval_id&&clearInterval(this.interval_id)}},{key:"getCurrentDownloads",value:function(){var e=this;this.postsService.getCurrentDownloads().subscribe((function(t){t.downloads&&e.assignNewValues(t.downloads)}))}},{key:"clearDownload",value:function(e,t){this.postsService.clearDownloads(!1,e,t).subscribe((function(e){}))}},{key:"clearDownloads",value:function(e){var t=this;this.postsService.clearDownloads(!1,e).subscribe((function(e){e.success&&(t.downloads=e.downloads)}))}},{key:"clearAllDownloads",value:function(){var e=this;this.postsService.clearDownloads(!0).subscribe((function(t){t.success&&(e.downloads=t.downloads)}))}},{key:"assignNewValues",value:function(e){var t,i=this,n=Object.keys(e),a=_createForOfIteratorHelper(Object.keys(this.downloads).filter((function(e){return-1===n.indexOf(e)})));try{for(a.s();!(t=a.n()).done;){var r=t.value;delete this.downloads[r]}}catch(c){a.e(c)}finally{a.f()}for(var o=function(t){var a=n[t],r=e[a],o=Object.keys(r);if(i.downloads[a]){var s,l=_createForOfIteratorHelper(Object.keys(i.downloads[a]).filter((function(e){return-1===o.indexOf(e)})));try{for(l.s();!(s=l.n()).done;){var u=s.value;console.log("removing missing download id"),delete i.downloads[a][u]}}catch(c){l.e(c)}finally{l.f()}}if(i.downloads[a])for(var d=0;d0){e=!0;break}return e}}]),e}()).\u0275fac=function(e){return new(e||aB)(a.Dc(YO),a.Dc(bO))},aB.\u0275cmp=a.xc({type:aB,selectors:[["app-downloads"]],decls:4,vars:4,consts:[[2,"padding","20px"],[4,"ngFor","ngForOf"],[4,"ngIf"],[2,"padding-bottom","30px","margin-bottom","15px"],[2,"text-align","center"],[1,"container"],[1,"row"],["class","col-12 my-1",4,"ngFor","ngForOf"],["mat-stroked-button","","color","warn",2,"top","15px",3,"click"],[1,"col-12","my-1"],["class","mat-elevation-z3",4,"ngIf"],[1,"mat-elevation-z3"],[3,"download","queueNumber","cancelDownload"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.zd(1,tB,2,1,"div",1),a.bd(2,"keyvalue"),a.zd(3,iB,3,0,"div",2),a.Ic()),2&e&&(a.pc(1),a.gd("ngForOf",a.cd(2,2,t.downloads)),a.pc(2),a.gd("ngIf",t.downloads&&!t.downloadsValid()))},directives:[yt.s,yt.t,Nc,Za,Xz],pipes:[yt.l],styles:[""],data:{animation:[o("list",[p(":enter",[m("@items",(nB=f(),{type:12,timings:100,animation:nB}),{optional:!0})])]),o("items",[p(":enter",[u({transform:"scale(0.5)",opacity:0}),s("500ms cubic-bezier(.8,-0.6,0.2,1.5)",u({transform:"scale(1)",opacity:1}))]),p(":leave",[u({transform:"scale(1)",opacity:1,height:"*"}),s("1s cubic-bezier(.8,-0.6,0.2,1.5)",u({transform:"scale(0.5)",opacity:0,height:"0px",margin:"0px"}))])])]}}),aB),sB=[{path:"home",component:wL,canActivate:[YO]},{path:"player",component:bN,canActivate:[YO]},{path:"subscriptions",component:fz,canActivate:[YO]},{path:"subscription",component:Ez,canActivate:[YO]},{path:"login",component:Nz},{path:"downloads",component:oB},{path:"",redirectTo:"/home",pathMatch:"full"}],cB=((rB=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:rB}),rB.\u0275inj=a.Ac({factory:function(e){return new(e||rB)},imports:[[BO.forRoot(sB,{useHash:!0})],BO]}),rB),lB=i("2Yyj"),uB=i.n(lB);function dB(e){return"video"===e.element.id?_L||kL:bL||yL}Object(yt.K)(uB.a,"es");var hB,pB=((hB=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:hB,bootstrap:[LR]}),hB.\u0275inj=a.Ac({factory:function(e){return new(e||hB)},providers:[YO],imports:[[yt.c,n.a,Mt,ua,$v,cc,Rm,gb,lc,qf,j_,Jc,D_,er,il,Kb,ym,pg,Xp,Dp,wv,Fv,yc,Ea,Jg,Vh,d_,Jg,ph,qy,fv,ck,Sk,CC,zD,Sx,Ax,bE,iN,YF,aN,RF,yj.forRoot({isVisible:dB}),BO,cB]]}),hB);a.ud(wL,[yt.q,yt.r,yt.s,yt.t,yt.A,yt.w,yt.x,yt.y,yt.z,yt.u,yt.v,Gv,qv,xn,ts,oo,po,_r,Gr,Xr,gr,ro,ho,$r,Dr,Er,Ks,tc,nc,rc,Xs,Qs,es,Yo,Wo,Cm,xm,Cd,Ud,Ld,jd,Fd,Nd,zd,Pm,Im,mb,fb,za,Ma,as,os,Ws,cs,us,L_,M_,Nc,zc,Bc,Oc,Dc,Ec,Ac,Tc,Rc,Mc,Lc,Pc,jc,Fc,O_,Za,Qa,Yc,Qc,Vb,Hb,Jb,Gb,qb,Ub,_m,ig,eg,og,ng,ha,ag,rg,Aa,hg,dg,Mm,Kp,Rp,Mp,jp,Fp,Lp,Ip,kp,wp,Cp,Sp,xp,bp,_v,Lv,jv,vc,_c,Da,Lg,Eg,zg,Ig,xh,Rh,Mh,Lh,jh,c_,o_,sh,hh,ch,Ly,ky,Sy,Hy,Wy,yy,hv,pv,sk,vk,xk,Xw,eC,lC,aC,Zw,pC,iC,dC,oC,cC,sC,mC,_C,vC,kC,LD,ED,FD,AD,OD,DD,xx,wx,fx,lx,dx,ux,Ex,vE,fE,QF,eN,tN,LF,NF,zF,BF,JF,VF,HF,UF,GF,WF,$F,KF,XF,nN,PF,_j,EO,_O,yO,IO,bS,LR,Dj,wL,bN,Rj,iM,Xz,fz,UN,Ez,_z,ez,HP,kD,nR,ML,QD,HE,LE,Uj,Nz,oB,lR,wR,JA,ZE,hA,wA,SE,WA,zL],[yt.b,yt.G,yt.p,yt.k,yt.E,yt.g,yt.C,yt.F,yt.d,yt.f,yt.i,yt.j,yt.l,qF,ZD])},xDdU:function(e,t,i){var n,a,r=i("4fRq"),o=i("I2ZF"),s=0,c=0;e.exports=function(e,t,i){var l=t&&i||0,u=t||[],d=(e=e||{}).node||n,h=void 0!==e.clockseq?e.clockseq:a;if(null==d||null==h){var p=r();null==d&&(d=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=a=16383&(p[6]<<8|p[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,g=f-s+(m-c)/1e4;if(g<0&&void 0===e.clockseq&&(h=h+1&16383),(g<0||f>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=f,c=m,a=h;var v=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;u[l++]=v>>>24&255,u[l++]=v>>>16&255,u[l++]=v>>>8&255,u[l++]=255&v;var b=f/4294967296*1e4&268435455;u[l++]=b>>>8&255,u[l++]=255&b,u[l++]=b>>>24&15|16,u[l++]=b>>>16&255,u[l++]=h>>>8|128,u[l++]=255&h;for(var _=0;_<6;++_)u[l+_]=d[_];return t||o(u)}},xk4V:function(e,t,i){var n=i("4fRq"),a=i("I2ZF");e.exports=function(e,t,i){var r=t&&i||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var s=0;s<16;++s)t[r+s]=o[s];return t||a(o)}},zuWl:function(e,t,i){"use strict";!function(t){var i=/^(b|B)$/,n={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},a={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function r(e){var t,r,o,s,c,l,u,d,h,p,f,m,g,v,b,_=1=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,r=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return r=e.done,e},e:function(e){o=!0,a=e},f:function(){try{r||null==n.return||n.return()}finally{if(o)throw a}}}}function _createSuper(e){return function(){var t,i=_getPrototypeOf(e);if(_isNativeReflectConstruct()){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(i,arguments,n)}else t=i.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!t||i.length!==t);n=!0);}catch(c){a=!0,r=c}finally{try{n||null==s.return||s.return()}finally{if(a)throw r}}return i}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i>>((3&t)<<3)&255;return a}}},"6BPK":function(e,t,i){var n,a;!function(r,o,s){"use strict";"undefined"!=typeof window&&i("PDX0")?void 0===(a="function"==typeof(n=s)?n.call(t,i,t,e):n)||(e.exports=a):e.exports?e.exports=s():o.exports?o.exports=s():o.Fingerprint2=s()}(0,this,(function(){"use strict";var e=function(e,t){var i=[0,0,0,0];return i[3]+=(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3]+(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=e[2]+t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=e[1]+t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=e[0]+t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},t=function(e,t){var i=[0,0,0,0];return i[3]+=(e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]])[3]*(t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]])[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=e[2]*t[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=e[3]*t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=e[1]*t[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=e[2]*t[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=e[3]*t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},i=function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:[e[1]<<(t-=32)|e[0]>>>32-t,e[0]<>>32-t]},n=function(e,t){return 0==(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=t(e,[4283543511,3981806797]),e=a(e,[0,e[0]>>>1]),e=t(e,[3301882366,444984403]),a(e,[0,e[0]>>>1])},o=function(o,s){for(var c=(o=o||"").length%16,l=o.length-c,u=[0,s=s||0],d=[0,s],h=[0,0],p=[0,0],f=[2277735313,289559509],m=[1291169091,658871167],g=0;g>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)+("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)},s={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},c=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var i=0,n=e.length;it.name?1:e.name=0?"Windows Phone":t.indexOf("win")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?"iOS":t.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e)return!0;if(void 0!==i){if((i=i.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(i.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(i.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===i.indexOf("win")&&-1===i.indexOf("linux")&&-1===i.indexOf("mac"))!=("Other"===e))return!0}return n.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e}())}},{key:"hasLiedBrowser",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),i=navigator.productSub;if(("Chrome"==(e=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==i)return!0;var n,a=eval.toString().length;if(37===a&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===a&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===a&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(r){try{r.toSource(),n=!0}catch(o){n=!1}}return n&&"Firefox"!==e&&"Other"!==e}())}},{key:"touchSupport",getData:function(e){e(function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(i){e=!1}return[t,e,"ontouchstart"in window]}())}},{key:"fonts",getData:function(e,t){var i=["monospace","sans-serif","serif"],n=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];t.fonts.extendedJsFonts&&(n=n.concat(["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"])),n=(n=n.concat(t.fonts.userDefinedFonts)).filter((function(e,t){return n.indexOf(e)===t}));var a=document.getElementsByTagName("body")[0],r=document.createElement("div"),o=document.createElement("div"),s={},c={},l=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.innerHTML="mmmmmmmmmmlli",e},u=function(e,t){var i=l();return i.style.fontFamily="'"+e+"',"+t,i},d=function(e){for(var t=!1,n=0;n=e.components.length)t(i.data);else{var o=e.components[n];if(e.excludes[o.key])a(!1);else{if(!r&&o.pauseBefore)return n-=1,void setTimeout((function(){a(!0)}),1);try{o.getData((function(e){i.addPreprocessedComponent(o.key,e),a(!1)}),e)}catch(s){i.addPreprocessedComponent(o.key,String(s)),a(!1)}}}}(!1)},g.getPromise=function(e){return new Promise((function(t,i){g.get(e,t)}))},g.getV18=function(e,t){return null==t&&(t=e,e={}),g.get(e,(function(i){for(var n=[],a=0;a=t.status}function n(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(i)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,r=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,r,o){var s=a.URL||a.webkitURL,c=document.createElement("a");c.download=r=r||e.name||"download",c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?n(c):i(c.href)?t(e,r,o):n(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){n(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,a,r){if(a=a||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,r),a);else if(i(e))t(e,a,r);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout((function(){n(o)}))}}:function(e,i,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return t(e,i,n);var o="application/octet-stream"===e.type,s=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},l.readAsDataURL(e)}else{var u=a.URL||a.webkitURL,d=u.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});a.saveAs=r.saveAs=r,e.exports=r})?n.apply(t,[]):n)||(e.exports=a)},PDX0:function(e,t){(function(t){e.exports=t}).call(this,{})},XypG:function(e,t){},ZAI4:function(e,t,i){"use strict";i.r(t),i.d(t,"isVisible",(function(){return fB})),i.d(t,"AppModule",(function(){return gB}));var n=i("jhN1"),a=i("fXoL"),r=function e(){_classCallCheck(this,e)};function o(e,t){return{type:7,name:e,definitions:t,options:{}}}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:e,options:t}}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function u(e){return{type:6,styles:e,offset:null}}function d(e,t,i){return{type:0,name:e,styles:t,options:i}}function h(e){return{type:5,steps:e}}function p(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:i}}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function m(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:i}}function g(e){Promise.resolve(null).then(e)}var v=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+i}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;g((function(){return e._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}(),b=function(){function e(t){var i=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,a=0,r=0,o=this.players.length;0==o?g((function(){return i._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++n==o&&i._onFinish()})),e.onDestroy((function(){++a==o&&i._onDestroy()})),e.onStart((function(){++r==o&&i._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(e){return e.init()}))}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))}},{key:"pause",value:function(){this.players.forEach((function(e){return e.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(e){return e.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(e){return e.destroy()})),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach((function(e){var i=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(i)}))}},{key:"getPosition",value:function(){var e=0;return this.players.forEach((function(t){var i=t.getPosition();e=Math.min(i,e)})),e}},{key:"beforeDestroy",value:function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}();function _(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function y(e){switch(e.length){case 0:return new v;case 1:return e[0];default:return new b(e)}}function k(e,t,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],c=-1,l=null;if(n.forEach((function(e){var i=e.offset,n=i==c,u=n&&l||{};Object.keys(e).forEach((function(i){var n=i,s=e[i];if("offset"!==i)switch(n=t.normalizePropertyName(n,o),s){case"!":s=a[i];break;case"*":s=r[i];break;default:s=t.normalizeStyleValue(i,n,s,o)}u[n]=s})),n||s.push(u),l=u,c=i})),o.length){var u="\n - ";throw new Error("Unable to animate due to the following errors:".concat(u).concat(o.join(u)))}return s}function w(e,t,i,n){switch(t){case"start":e.onStart((function(){return n(i&&C(i,"start",e))}));break;case"done":e.onDone((function(){return n(i&&C(i,"done",e))}));break;case"destroy":e.onDestroy((function(){return n(i&&C(i,"destroy",e))}))}}function C(e,t,i){var n=i.totalTime,a=x(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==n?e.totalTime:n,!!i.disabled),r=e._data;return null!=r&&(a._data=r),a}function x(e,t,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:i,toState:n,phaseName:a,totalTime:r,disabled:!!o}}function S(e,t,i){var n;return e instanceof Map?(n=e.get(t))||e.set(t,n=i):(n=e[t])||(n=e[t]=i),n}function I(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var O=function(e,t){return!1},D=function(e,t){return!1},E=function(e,t,i){return[]},A=_();(A||"undefined"!=typeof Element)&&(O=function(e,t){return e.contains(t)},D=function(){if(A||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,i){return t.apply(e,[i])}:D}(),E=function(e,t,i){var n=[];if(i)n.push.apply(n,_toConsumableArray(e.querySelectorAll(t)));else{var a=e.querySelector(t);a&&n.push(a)}return n});var T=null,P=!1;function R(e){T||(T=("undefined"!=typeof document?document.body:null)||{},P=!!T.style&&"WebkitAppearance"in T.style);var t=!0;return T.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in T.style)&&P)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in T.style),t}var M=D,L=O,j=E;function F(e){var t={};return Object.keys(e).forEach((function(i){var n=i.replace(/([a-z])([A-Z])/g,"$1-$2");t[n]=e[i]})),t}var N,z=((N=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return R(e)}},{key:"matchesElement",value:function(e,t){return M(e,t)}},{key:"containsElement",value:function(e,t){return L(e,t)}},{key:"query",value:function(e,t,i){return j(e,t,i)}},{key:"computeStyle",value:function(e,t,i){return i||""}},{key:"animate",value:function(e,t,i,n,a){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new v(i,n)}}]),e}()).\u0275fac=function(e){return new(e||N)},N.\u0275prov=a.zc({token:N,factory:N.\u0275fac}),N),B=function(){var e=function e(){_classCallCheck(this,e)};return e.NOOP=new z,e}();function J(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:V(parseFloat(t[1]),t[2])}function V(e,t){switch(t){case"s":return 1e3*e;default:return e}}function H(e,t,i){return e.hasOwnProperty("duration")?e:function(e,t,i){var n,a=0,r="";if("string"==typeof e){var o=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};n=V(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(a=V(parseFloat(s),o[4]));var c=o[5];c&&(r=c)}else n=e;if(!i){var l=!1,u=t.length;n<0&&(t.push("Duration values below 0 are not allowed for this animation step."),l=!0),a<0&&(t.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&t.splice(u,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:n,delay:a,easing:r}}(e,t,i)}function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach((function(i){t[i]=e[i]})),t}function G(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var n in e)i[n]=e[n];else U(e,i);return i}function W(e,t,i){return i?t+":"+i+";":""}function q(e){for(var t="",i=0;i *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,i);if("function"==typeof n)return void t.push(n);e=n}var a=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==a||a.length<4)return i.push('The provided transition expression "'.concat(e,'" is not supported')),t;var r=a[1],o=a[2],s=a[3];t.push(le(r,s)),"<"!=o[0]||"*"==r&&"*"==s||t.push(le(s,r))}(e,a,n)})):a.push(i),a),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:me(e.options)}}},{key:"visitSequence",value:function(e,t){var i=this;return{type:2,steps:e.steps.map((function(e){return re(i,e,t)})),options:me(e.options)}}},{key:"visitGroup",value:function(e,t){var i=this,n=t.currentTime,a=0,r=e.steps.map((function(e){t.currentTime=n;var r=re(i,e,t);return a=Math.max(a,t.currentTime),r}));return t.currentTime=a,{type:3,steps:r,options:me(e.options)}}},{key:"visitAnimate",value:function(e,t){var i,n=function(e,t){var i=null;if(e.hasOwnProperty("duration"))i=e;else if("number"==typeof e)return ge(H(e,t).duration,0,"");var n=e;if(n.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var a=ge(0,0,"");return a.dynamic=!0,a.strValue=n,a}return ge((i=i||H(n,t)).duration,i.delay,i.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;var a=e.styles?e.styles:u({});if(5==a.type)i=this.visitKeyframes(a,t);else{var r=e.styles,o=!1;if(!r){o=!0;var s={};n.easing&&(s.easing=n.easing),r=u(s)}t.currentTime+=n.duration+n.delay;var c=this.visitStyle(r,t);c.isEmptyStep=o,i=c}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(e,t){var i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}},{key:"_makeStyleAst",value:function(e,t){var i=[];Array.isArray(e.styles)?e.styles.forEach((function(e){"string"==typeof e?"*"==e?i.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):i.push(e)})):i.push(e.styles);var n=!1,a=null;return i.forEach((function(e){if(fe(e)){var t=e,i=t.easing;if(i&&(a=i,delete t.easing),!n)for(var r in t)if(t[r].toString().indexOf("{{")>=0){n=!0;break}}})),{type:6,styles:i,easing:a,offset:e.offset,containsDynamicStyles:n,options:null}}},{key:"_validateStyleAst",value:function(e,t){var i=this,n=t.currentAnimateTimings,a=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach((function(e){"string"!=typeof e&&Object.keys(e).forEach((function(n){if(i._driver.validateStyleProperty(n)){var o,s,c,l,u,d=t.collectedStyles[t.currentQuerySelector],h=d[n],p=!0;h&&(r!=a&&r>=h.startTime&&a<=h.endTime&&(t.errors.push('The CSS property "'.concat(n,'" that exists between the times of "').concat(h.startTime,'ms" and "').concat(h.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(r,'ms" and "').concat(a,'ms"')),p=!1),r=h.startTime),p&&(d[n]={startTime:r,endTime:a}),t.options&&(o=e[n],s=t.options,c=t.errors,l=s.params||{},(u=Z(o)).length&&u.forEach((function(e){l.hasOwnProperty(e)||c.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})))}else t.errors.push('The provided animation property "'.concat(n,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(e,t){var i=this,n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;var a=0,r=[],o=!1,s=!1,c=0,l=e.steps.map((function(e){var n=i._makeStyleAst(e,t),l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach((function(e){if(fe(e)&&e.hasOwnProperty("offset")){var i=e;t=parseFloat(i.offset),delete i.offset}}));else if(fe(e)&&e.hasOwnProperty("offset")){var i=e;t=parseFloat(i.offset),delete i.offset}return t}(n.styles),u=0;return null!=l&&(a++,u=n.offset=l),s=s||u<0||u>1,o=o||u0&&a0?a==h?1:d*a:r[a],s=o*m;t.currentTime=p+f.delay+s,f.duration=s,i._validateStyleAst(e,t),e.offset=o,n.styles.push(e)})),n}},{key:"visitReference",value:function(e,t){return{type:8,animation:re(this,X(e.animation),t),options:me(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:me(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:me(e.options)}}},{key:"visitQuery",value:function(e,t){var i=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;var a=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return":self"==e}));return t&&(e=e.replace(ue,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(e){return".ng-trigger-"+e.substr(1)})).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),r=a[0],o=a[1];t.currentQuerySelector=i.length?i+" "+r:r,S(t.collectedStyles,t.currentQuerySelector,{});var s=re(this,X(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:s,originalSelector:e.selector,options:me(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var i="full"===e.timings?{duration:0,delay:0,easing:"full"}:H(e.timings,t.errors,!0);return{type:12,animation:re(this,X(e.animation),t),timings:i,options:null}}}]),e}(),pe=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function fe(e){return!Array.isArray(e)&&"object"==typeof e}function me(e){var t;return e?(e=U(e)).params&&(e.params=(t=e.params)?U(t):null):e={},e}function ge(e,t,i){return{duration:e,delay:t,easing:i}}function ve(e,t,i,n,a,r){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:i,postStyleProps:n,duration:a,delay:r,totalTime:a+r,easing:o,subTimeline:s}}var be=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var i,n=this._map.get(e);n||this._map.set(e,n=[]),(i=n).push.apply(i,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),_e=new RegExp(":enter","g"),ye=new RegExp(":leave","g");function ke(e,t,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new we).buildKeyframes(e,t,i,n,a,r,o,s,c,l)}var we=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,i,n,a,r,o,s,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new be;var u=new xe(e,t,c,n,a,l,[]);u.options=s,u.currentTimeline.setStyles([r],null,u.errors,s),re(this,i,u);var d=u.timelines.filter((function(e){return e.containsAnimation()}));if(d.length&&Object.keys(o).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([o],null,u.errors,s)}return d.length?d.map((function(e){return e.buildKeyframes()})):[ve(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var i=t.subInstructions.consume(t.element);if(i){var n=t.createSubContext(e.options),a=t.currentTimeline.currentTime,r=this._visitSubInstructions(i,n,n.options);a!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,i){var n=t.currentTimeline.currentTime,a=null!=i.duration?J(i.duration):null,r=null!=i.delay?J(i.delay):null;return 0!==a&&e.forEach((function(e){var i=t.appendInstructionToTimeline(e,a,r);n=Math.max(n,i.duration+i.delay)})),n}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),re(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var i=this,n=t.subContextCount,a=t,r=e.options;if(r&&(r.params||r.delay)&&((a=t.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Ce);var o=J(r.delay);a.delayNextStep(o)}e.steps.length&&(e.steps.forEach((function(e){return re(i,e,a)})),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>n&&a.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var i=this,n=[],a=t.currentTimeline.currentTime,r=e.options&&e.options.delay?J(e.options.delay):0;e.steps.forEach((function(o){var s=t.createSubContext(e.options);r&&s.delayNextStep(r),re(i,o,s),a=Math.max(a,s.currentTimeline.currentTime),n.push(s.currentTimeline)})),n.forEach((function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)})),t.transformIntoNewTimeline(a),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var i=e.strValue;return H(t.params?Q(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var i=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),n.snapshotCurrentStyles());var a=e.style;5==a.type?this.visitKeyframes(a,t):(t.incrementTime(i.duration),this.visitStyle(a,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var i=t.currentTimeline,n=t.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();var a=n&&n.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(a):i.setStyles(e.styles,a,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var i=t.currentAnimateTimings,n=t.currentTimeline.duration,a=i.duration,r=t.createSubContext().currentTimeline;r.easing=i.easing,e.styles.forEach((function(e){r.forwardTime((e.offset||0)*a),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(n+a),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var i=this,n=t.currentTimeline.currentTime,a=e.options||{},r=a.delay?J(a.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ce);var o=n,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!a.optional,t.errors);t.currentQueryTotal=s.length;var c=null;s.forEach((function(n,a){t.currentQueryIndex=a;var s=t.createSubContext(e.options,n);r&&s.delayNextStep(r),n===t.element&&(c=s.currentTimeline),re(i,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var i=t.parentContext,n=t.currentTimeline,a=e.timings,r=Math.abs(a.duration),o=r*(t.currentQueryTotal-1),s=r*t.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":s=o-s;break;case"full":s=i.currentStaggerTime}var c=t.currentTimeline;s&&c.delayNextStep(s);var l=c.currentTime;re(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=n.currentTime-l+(n.startTime-i.currentTimeline.startTime)}}]),e}(),Ce={},xe=function(){function e(t,i,n,a,r,o,s,c){_classCallCheck(this,e),this._driver=t,this.element=i,this.subInstructions=n,this._enterClassName=a,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ce,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Se(this._driver,i,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"updateOptions",value:function(e,t){var i=this;if(e){var n=e,a=this.options;null!=n.duration&&(a.duration=J(n.duration)),null!=n.delay&&(a.delay=J(n.delay));var r=n.params;if(r){var o=a.params;o||(o=this.options.params={}),Object.keys(r).forEach((function(e){t&&o.hasOwnProperty(e)||(o[e]=Q(r[e],o,i.errors))}))}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var i=e.params={};Object.keys(t).forEach((function(e){i[e]=t[e]}))}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=i||this.element,r=new e(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Ce,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,i){var n={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},a=new Ie(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(a),n}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,i,n,a,r){var o=[];if(n&&o.push(this.element),e.length>0){e=(e=e.replace(_e,"."+this._enterClassName)).replace(ye,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=i);0!==i&&(s=i<0?s.slice(s.length+i,s.length):s.slice(0,i)),o.push.apply(o,_toConsumableArray(s))}return a||0!=o.length||r.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),o}},{key:"params",get:function(){return this.options.params}}]),e}(),Se=function(){function e(t,i,n,a){_classCallCheck(this,e),this._driver=t,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,i){return this.applyStylesToKeyframe(),new e(this._driver,t,i||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,i,n){var a=this;t&&(this._previousKeyframe.easing=t);var r=n&&n.params||{},o=function(e,t){var i,n={};return e.forEach((function(e){"*"===e?(i=i||Object.keys(t)).forEach((function(e){n[e]="*"})):G(e,!1,n)})),n}(e,this._globalTimelineStyles);Object.keys(o).forEach((function(e){var t=Q(o[e],r,i);a._pendingStyles[e]=t,a._localTimelineStyles.hasOwnProperty(e)||(a._backFill[e]=a._globalTimelineStyles.hasOwnProperty(e)?a._globalTimelineStyles[e]:"*"),a._updateStyle(e,t)}))}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,i=Object.keys(t);0!=i.length&&(this._pendingStyles={},i.forEach((function(i){e._currentKeyframe[i]=t[i]})),Object.keys(this._localTimelineStyles).forEach((function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])})))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach((function(t){var i=e._localTimelineStyles[t];e._pendingStyles[t]=i,e._updateStyle(t,i)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach((function(i){var n=t._styleSummary[i],a=e._styleSummary[i];(!n||a.time>n.time)&&t._updateStyle(i,a.value)}))}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,i=new Set,n=1===this._keyframes.size&&0===this.duration,a=[];this._keyframes.forEach((function(r,o){var s=G(r,!0);Object.keys(s).forEach((function(e){var n=s[e];"!"==n?t.add(e):"*"==n&&i.add(e)})),n||(s.offset=o/e.duration),a.push(s)}));var r=t.size?ee(t.values()):[],o=i.size?ee(i.values()):[];if(n){var s=a[0],c=U(s);s.offset=0,c.offset=1,a=[s,c]}return ve(this.element,a,r,o,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),Ie=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s){var c,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,i),(c=t.call(this,e,n,s.delay)).element=n,c.keyframes=a,c.preStyleProps=r,c.postStyleProps=o,c._stretchStartingKeyframe=l,c.timings={duration:s.duration,delay:s.delay,easing:s.easing},c}return _createClass(i,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,i=t.delay,n=t.duration,a=t.easing;if(this._stretchStartingKeyframe&&i){var r=[],o=n+i,s=i/o,c=G(e[0],!1);c.offset=0,r.push(c);var l=G(e[0],!1);l.offset=Oe(s),r.push(l);for(var u=e.length-1,d=1;d<=u;d++){var h=G(e[d],!1);h.offset=Oe((i+h.offset*n)/o),r.push(h)}n=o,i=0,a="",e=r}return ve(this.element,e,this.preStyleProps,this.postStyleProps,n,i,a,!0)}}]),i}(Se);function Oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=Math.pow(10,t-1);return Math.round(e*i)/i}var De=function e(){_classCallCheck(this,e)},Ee=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"normalizePropertyName",value:function(e,t){return ie(e)}},{key:"normalizeStyleValue",value:function(e,t,i,n){var a="",r=i.toString().trim();if(Ae[t]&&0!==i&&"0"!==i)if("number"==typeof i)a="px";else{var o=i.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&n.push("Please provide a CSS unit value for ".concat(e,":").concat(i))}return r+a}}]),i}(De),Ae=function(e){var t={};return e.forEach((function(e){return t[e]=!0})),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Te(e,t,i,n,a,r,o,s,c,l,u,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:a,fromState:i,fromStyles:r,toState:n,toStyles:o,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:h}}var Pe={},Re=function(){function e(t,i,n){_classCallCheck(this,e),this._triggerName=t,this.ast=i,this._stateStyles=n}return _createClass(e,[{key:"match",value:function(e,t,i,n){return function(e,t,i,n,a){return e.some((function(e){return e(t,i,n,a)}))}(this.ast.matchers,e,t,i,n)}},{key:"buildStyles",value:function(e,t,i){var n=this._stateStyles["*"],a=this._stateStyles[e],r=n?n.buildStyles(t,i):{};return a?a.buildStyles(t,i):r}},{key:"build",value:function(e,t,i,n,a,r,o,s,c,l){var u=[],d=this.ast.options&&this.ast.options.params||Pe,h=this.buildStyles(i,o&&o.params||Pe,u),p=s&&s.params||Pe,f=this.buildStyles(n,p,u),m=new Set,g=new Map,v=new Map,b="void"===n,_={params:Object.assign(Object.assign({},d),p)},y=l?[]:ke(e,t,this.ast.animation,a,r,h,f,_,c,u),k=0;if(y.forEach((function(e){k=Math.max(e.duration+e.delay,k)})),u.length)return Te(t,this._triggerName,i,n,b,h,f,[],[],g,v,k,u);y.forEach((function(e){var i=e.element,n=S(g,i,{});e.preStyleProps.forEach((function(e){return n[e]=!0}));var a=S(v,i,{});e.postStyleProps.forEach((function(e){return a[e]=!0})),i!==t&&m.add(i)}));var w=ee(m.values());return Te(t,this._triggerName,i,n,b,h,f,y,w,g,v,k)}}]),e}(),Me=function(){function e(t,i){_classCallCheck(this,e),this.styles=t,this.defaultParams=i}return _createClass(e,[{key:"buildStyles",value:function(e,t){var i={},n=U(this.defaultParams);return Object.keys(e).forEach((function(t){var i=e[t];null!=i&&(n[t]=i)})),this.styles.styles.forEach((function(e){if("string"!=typeof e){var a=e;Object.keys(a).forEach((function(e){var r=a[e];r.length>1&&(r=Q(r,n,t)),i[e]=r}))}})),i}}]),e}(),Le=function(){function e(t,i){var n=this;_classCallCheck(this,e),this.name=t,this.ast=i,this.transitionFactories=[],this.states={},i.states.forEach((function(e){n.states[e.name]=new Me(e.style,e.options&&e.options.params||{})})),je(this.states,"true","1"),je(this.states,"false","0"),i.transitions.forEach((function(e){n.transitionFactories.push(new Re(t,e,n.states))})),this.fallbackTransition=new Re(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(e,[{key:"matchTransition",value:function(e,t,i,n){return this.transitionFactories.find((function(a){return a.match(e,t,i,n)}))||null}},{key:"matchStyles",value:function(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function je(e,t,i){e.hasOwnProperty(t)?e.hasOwnProperty(i)||(e[i]=e[t]):e.hasOwnProperty(i)&&(e[t]=e[i])}var Fe=new be,Ne=function(){function e(t,i,n){_classCallCheck(this,e),this.bodyNode=t,this._driver=i,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var i=[],n=de(this._driver,t,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: ".concat(i.join("\n")));this._animations[e]=n}},{key:"_buildPlayer",value:function(e,t,i){var n=e.element,a=k(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(n,a,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var i,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=this._animations[e],s=new Map;if(o?(i=ke(this._driver,t,o,"ng-enter","ng-leave",{},{},a,Fe,r)).forEach((function(e){var t=S(s,e.element,{});e.postStyleProps.forEach((function(e){return t[e]=null}))})):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error("Unable to create the animation due to the following errors: ".concat(r.join("\n")));s.forEach((function(e,t){Object.keys(e).forEach((function(i){e[i]=n._driver.computeStyle(t,i,"*")}))}));var c=y(i.map((function(e){var t=s.get(e.element);return n._buildPlayer(e,{},t)})));return this._playersById[e]=c,c.onDestroy((function(){return n.destroy(e)})),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,i,n){var a=x(t,"","","");return w(this._getPlayer(e),i,a,n),function(){}}},{key:"command",value:function(e,t,i,n){if("register"!=i)if("create"!=i){var a=this._getPlayer(e);switch(i){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,n[0]||{});else this.register(e,n[0])}}]),e}(),ze=[],Be={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Je={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ve=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=i;var n,a=t&&t.hasOwnProperty("value");if(this.value=null!=(n=a?t.value:t)?n:null,a){var r=U(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var i=this.options.params;Object.keys(t).forEach((function(e){null==i[e]&&(i[e]=t[e])}))}}},{key:"params",get:function(){return this.options.params}}]),e}(),He=new Ve("void"),Ue=function(){function e(t,i,n){_classCallCheck(this,e),this.id=t,this.hostElement=i,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ye(i,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,i,n){var a,r=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(i,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==i||0==i.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(a=i)&&"done"!=a)throw new Error('The provided animation trigger event "'.concat(i,'" for the animation trigger "').concat(t,'" is not supported!'));var o=S(this._elementListeners,e,[]),s={name:t,phase:i,callback:n};o.push(s);var c=S(this._engine.statesByElement,e,{});return c.hasOwnProperty(t)||(Ye(e,"ng-trigger"),Ye(e,"ng-trigger-"+t),c[t]=He),function(){r._engine.afterFlush((function(){var e=o.indexOf(s);e>=0&&o.splice(e,1),r._triggers[t]||delete c[t]}))}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,i){var n=this,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=this._getTrigger(t),o=new We(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Ye(e,"ng-trigger"),Ye(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var c=s[t],l=new Ve(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s[t]=l,c||(c=He),"void"===l.value||c.value!==l.value){var u=S(this._engine.playersByElement,e,[]);u.forEach((function(e){e.namespaceId==n.id&&e.triggerName==t&&e.queued&&e.destroy()}));var d=r.matchTransition(c.value,l.value,e,l.params),h=!1;if(!d){if(!a)return;d=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:c,toState:l,player:o,isFallbackTransition:h}),h||(Ye(e,"ng-animate-queued"),o.onStart((function(){Ze(e,"ng-animate-queued")}))),o.onDone((function(){var t=n.players.indexOf(o);t>=0&&n.players.splice(t,1);var i=n._engine.playersByElement.get(e);if(i){var a=i.indexOf(o);a>=0&&i.splice(a,1)}})),this.players.push(o),u.push(o),o}if(!function(e,t){var i=Object.keys(e),n=Object.keys(t);if(i.length!=n.length)return!1;for(var a=0;a=0){for(var n=!1,a=i;a>=0;a--)if(this.driver.containsElement(this._namespaceList[a].hostElement,t)){this._namespaceList.splice(a+1,0,e),n=!0;break}n||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}},{key:"registerTrigger",value:function(e,t,i){var n=this._namespaceLookup[e];n&&n.register(t,i)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var i=this;if(e){var n=this._fetchNamespace(e);this.afterFlush((function(){i.namespacesByHostElement.delete(n.hostElement),delete i._namespaceLookup[e];var t=i._namespaceList.indexOf(n);t>=0&&i._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((function(){return n.destroy(t)}))}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,i=this.statesByElement.get(e);if(i)for(var n=Object.keys(i),a=0;a=0&&this.collectedLeaveElements.splice(r,1)}if(e){var o=this._fetchNamespace(e);o&&o.insertNode(t,i)}n&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ye(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ze(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,i,n){if(qe(t)){var a=e?this._fetchNamespace(e):null;if(a?a.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n),i){var r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n)}}else this._onRemovalComplete(t,n)}},{key:"markElementAsRemoved",value:function(e,t,i,n){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,i,n,a){return qe(t)?this._fetchNamespace(e).listen(t,i,n,a):function(){}}},{key:"_buildInstruction",value:function(e,t,i,n,a){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,n,e.fromState.options,e.toState.options,t,a)}},{key:"destroyInnerAnimations",value:function(e){var t=this,i=this.driver.query(e,".ng-trigger",!0);i.forEach((function(e){return t.destroyActiveAnimationsForElement(e)})),0!=this.playersByQueriedElement.size&&(i=this.driver.query(e,".ng-animating",!0)).forEach((function(e){return t.finishActiveQueriedAnimationOnElement(e)}))}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach((function(e){e.queued?e.markedForDestroy=!0:e.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach((function(e){return e.finish()}))}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise((function(t){if(e.players.length)return y(e.players).onDone((function(){return t()}));t()}))}},{key:"processLeaveNode",value:function(e){var t=this,i=e.__ng_removed;if(i&&i.setForRemoval){if(e.__ng_removed=Be,i.namespaceId){this.destroyInnerAnimations(e);var n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((function(e){t.markElementAsDisabled(e,!1)}))}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,i){return e._balanceNamespaceList(t,i)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var n=0;n=0;D--)this._namespaceList[D].drainQueuedTransitions(t).forEach((function(e){var t=e.player,r=e.element;if(I.push(t),i.collectedEnterElements.length){var u=r.__ng_removed;if(u&&u.setForMove)return void t.destroy()}var h=!d||!i.driver.containsElement(d,r),p=C.get(r),m=f.get(r),g=i._buildInstruction(e,n,m,p,h);if(!g.errors||!g.errors.length)return h||e.isFallbackTransition?(t.onStart((function(){return K(r,g.fromStyles)})),t.onDestroy((function(){return $(r,g.toStyles)})),void a.push(t)):(g.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),n.append(r,g.timelines),o.push({instruction:g,player:t,element:r}),g.queriedElements.forEach((function(e){return S(s,e,[]).push(t)})),g.preStyleProps.forEach((function(e,t){var i=Object.keys(e);if(i.length){var n=c.get(t);n||c.set(t,n=new Set),i.forEach((function(e){return n.add(e)}))}})),void g.postStyleProps.forEach((function(e,t){var i=Object.keys(e),n=l.get(t);n||l.set(t,n=new Set),i.forEach((function(e){return n.add(e)}))})));O.push(g)}));if(O.length){var E=[];O.forEach((function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach((function(e){return E.push("- ".concat(e,"\n"))}))})),I.forEach((function(e){return e.destroy()})),this.reportError(E)}var A=new Map,T=new Map;o.forEach((function(e){var t=e.element;n.has(t)&&(T.set(t,t),i._beforeAnimationBuild(e.player.namespaceId,e.instruction,A))})),a.forEach((function(e){var t=e.element;i._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){S(A,t,[]).push(e),e.destroy()}))}));var P=g.filter((function(e){return et(e,c,l)})),R=new Map;Ke(R,this.driver,b,l,"*").forEach((function(e){et(e,c,l)&&P.push(e)}));var M=new Map;p.forEach((function(e,t){Ke(M,i.driver,new Set(e),c,"!")})),P.forEach((function(e){var t=R.get(e),i=M.get(e);R.set(e,Object.assign(Object.assign({},t),i))}));var L=[],j=[],F={};o.forEach((function(e){var t=e.element,o=e.player,s=e.instruction;if(n.has(t)){if(u.has(t))return o.onDestroy((function(){return $(t,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void a.push(o);var c=F;if(T.size>1){for(var l=t,d=[];l=l.parentNode;){var h=T.get(l);if(h){c=h;break}d.push(l)}d.forEach((function(e){return T.set(e,c)}))}var p=i._buildAnimation(o.namespaceId,s,A,r,M,R);if(o.setRealPlayer(p),c===F)L.push(o);else{var f=i.playersByElement.get(c);f&&f.length&&(o.parentPlayer=y(f)),a.push(o)}}else K(t,s.fromStyles),o.onDestroy((function(){return $(t,s.toStyles)})),j.push(o),u.has(t)&&a.push(o)})),j.forEach((function(e){var t=r.get(e.element);if(t&&t.length){var i=y(t);e.setRealPlayer(i)}})),a.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var N=0;N0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new v(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach((function(t){t.players.forEach((function(t){t.queued&&e.push(t)}))})),e}}]),e}(),We=function(){function e(t,i,n){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=i,this.element=n,this._player=new v,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((function(i){t._queuedCallbacks[i].forEach((function(t){return w(e,i,void 0,t)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,i=this._player;i.triggerCallback&&e.onStart((function(){return i.triggerCallback("start")})),e.onDone((function(){return t.finish()})),e.onDestroy((function(){return t.destroy()}))}},{key:"_queueEvent",value:function(e,t){S(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function qe(e){return e&&1===e.nodeType}function $e(e,t){var i=e.style.display;return e.style.display=null!=t?t:"none",i}function Ke(e,t,i,n,a){var r=[];i.forEach((function(e){return r.push($e(e))}));var o=[];n.forEach((function(i,n){var r={};i.forEach((function(e){var i=r[e]=t.computeStyle(n,e,a);i&&0!=i.length||(n.__ng_removed=Je,o.push(n))})),e.set(n,r)}));var s=0;return i.forEach((function(e){return $e(e,r[s++])})),o}function Xe(e,t){var i=new Map;if(e.forEach((function(e){return i.set(e,[])})),0==t.length)return i;var n=new Set(t),a=new Map;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var r=a.get(t);if(r)return r;var o=t.parentNode;return r=i.has(o)?o:n.has(o)?1:e(o),a.set(t,r),r}(e);1!==t&&i.get(t).push(e)})),i}function Ye(e,t){if(e.classList)e.classList.add(t);else{var i=e.$$classes;i||(i=e.$$classes={}),i[t]=!0}}function Ze(e,t){if(e.classList)e.classList.remove(t);else{var i=e.$$classes;i&&delete i[t]}}function Qe(e,t,i){y(i).onDone((function(){return e.processLeaveNode(t)}))}function et(e,t,i){var n=i.get(e);if(!n)return!1;var a=t.get(e);return a?n.forEach((function(e){return a.add(e)})):t.set(e,n),i.delete(e),!0}var tt=function(){function e(t,i,n){var a=this;_classCallCheck(this,e),this.bodyNode=t,this._driver=i,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Ge(t,i,n),this._timelineEngine=new Ne(t,i,n),this._transitionEngine.onRemovalComplete=function(e,t){return a.onRemovalComplete(e,t)}}return _createClass(e,[{key:"registerTrigger",value:function(e,t,i,n,a){var r=e+"-"+n,o=this._triggerCache[r];if(!o){var s=[],c=de(this._driver,a,s);if(s.length)throw new Error('The animation trigger "'.concat(n,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));o=function(e,t){return new Le(e,t)}(n,c),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(t,n,o)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,i,n){this._transitionEngine.insertNode(e,t,i,n)}},{key:"onRemove",value:function(e,t,i,n){this._transitionEngine.removeNode(e,t,n||!1,i)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,i,n){if("@"==i.charAt(0)){var a=_slicedToArray(I(i),2),r=a[0],o=a[1];this._timelineEngine.command(r,t,o,n)}else this._transitionEngine.trigger(e,t,i,n)}},{key:"listen",value:function(e,t,i,n,a){if("@"==i.charAt(0)){var r=_slicedToArray(I(i),2),o=r[0],s=r[1];return this._timelineEngine.listen(o,t,s,a)}return this._transitionEngine.listen(e,t,i,n,a)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function it(e,t){var i=null,n=null;return Array.isArray(t)&&t.length?(i=at(t[0]),t.length>1&&(n=at(t[t.length-1]))):t&&(i=at(t)),i||n?new nt(e,i,n):null}var nt=function(){var e=function(){function e(t,i,n){_classCallCheck(this,e),this._element=t,this._startStyles=i,this._endStyles=n,this._state=0;var a=e.initialStylesByElement.get(t);a||e.initialStylesByElement.set(t,a={}),this._initialStyles=a}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&$(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&($(this._element,this._initialStyles),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(K(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(K(this._element,this._endStyles),this._endStyles=null),$(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function at(e){for(var t=null,i=Object.keys(e),n=0;n=this._delay&&i>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ut(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,i,n;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,i=ht(e,"").split(","),(n=lt(i,t))>=0&&(i.splice(n,1),dt(e,"",i.join(","))))}}]),e}();function st(e,t,i){dt(e,"PlayState",i,ct(e,t))}function ct(e,t){var i=ht(e,"");return i.indexOf(",")>0?lt(i.split(","),t):lt([i],t)}function lt(e,t){for(var i=0;i=0)return i;return-1}function ut(e,t,i){i?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function dt(e,t,i,n){var a="animation"+t;if(null!=n){var r=e.style[a];if(r.length){var o=r.split(",");o[n]=i,i=o.join(",")}}e.style[a]=i}function ht(e,t){return e.style["animation"+t]}var pt=function(){function e(t,i,n,a,r,o,s,c){_classCallCheck(this,e),this.element=t,this.keyframes=i,this.animationName=n,this._duration=a,this._delay=r,this._finalStyles=s,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=a+r,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new ot(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return e.finish()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var i=this._state>=3;Object.keys(this._finalStyles).forEach((function(n){"offset"!=n&&(t[n]=i?e._finalStyles[n]:oe(e.element,n))}))}this.currentSnapshot=t}}]),e}(),ft=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this)).element=e,a._startingStyles={},a.__initialized=!1,a._styles=F(n),a}return _createClass(i,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),_get(_getPrototypeOf(i.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),_get(_getPrototypeOf(i.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var i=e._startingStyles[t];i?e.element.style.setProperty(t,i):e.element.style.removeProperty(t)})),this._startingStyles=null,_get(_getPrototypeOf(i.prototype),"destroy",this).call(this))}}]),i}(v),mt=function(){function e(){_classCallCheck(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return R(e)}},{key:"matchesElement",value:function(e,t){return M(e,t)}},{key:"containsElement",value:function(e,t){return L(e,t)}},{key:"query",value:function(e,t,i){return j(e,t,i)}},{key:"computeStyle",value:function(e,t,i){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,i){i=i.map((function(e){return F(e)}));var n="@keyframes ".concat(t," {\n"),a="";i.forEach((function(e){a=" ";var t=parseFloat(e.offset);n+="".concat(a).concat(100*t,"% {\n"),a+=" ",Object.keys(e).forEach((function(t){var i=e[t];switch(t){case"offset":return;case"easing":return void(i&&(n+="".concat(a,"animation-timing-function: ").concat(i,";\n")));default:return void(n+="".concat(a).concat(t,": ").concat(i,";\n"))}})),n+="".concat(a,"}\n")})),n+="}\n";var r=document.createElement("style");return r.innerHTML=n,r}},{key:"animate",value:function(e,t,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;o&&this._notifyFaultyScrubber();var s=r.filter((function(e){return e instanceof pt})),c={};ne(i,n)&&s.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return c[e]=t[e]}))}));var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach((function(e){Object.keys(e).forEach((function(i){"offset"!=i&&"easing"!=i&&(t[i]=e[i])}))})),t}(t=ae(e,t,c));if(0==i)return new ft(e,l);var u="gen_css_kf_".concat(this._count++),d=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(d);var h=it(e,t),p=new pt(e,t,u,i,n,a,l,h);return p.onDestroy((function(){var e;(e=d).parentNode.removeChild(e)})),p}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}(),gt=function(){function e(t,i,n,a){_classCallCheck(this,e),this.element=t,this.keyframes=i,this.options=n,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return e._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,i){return e.animate(t,i)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(i){"offset"!=i&&(t[i]=e._finished?e._finalKeyframe[i]:oe(e.element,i))})),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),vt=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(bt().toString()),this._cssKeyframesDriver=new mt}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return R(e)}},{key:"matchesElement",value:function(e,t){return M(e,t)}},{key:"containsElement",value:function(e,t){return L(e,t)}},{key:"query",value:function(e,t,i){return j(e,t,i)}},{key:"computeStyle",value:function(e,t,i){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,i,n,a,r);var s={duration:i,delay:n,fill:0==n?"both":"forwards"};a&&(s.easing=a);var c={},l=r.filter((function(e){return e instanceof gt}));ne(i,n)&&l.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return c[e]=t[e]}))}));var u=it(e,t=ae(e,t=t.map((function(e){return G(e,!1)})),c));return new gt(e,t,s,u)}}]),e}();function bt(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var _t,yt=i("ofXK"),kt=((_t=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var r;return _classCallCheck(this,i),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:a.db.None,styles:[],data:{animation:[]}}),r}return _createClass(i,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var i=Array.isArray(e)?l(e):e;return xt(this._renderer,null,t,"register",[i]),new wt(t,this._renderer)}}]),i}(r)).\u0275fac=function(e){return new(e||_t)(a.Sc(a.Q),a.Sc(yt.e))},_t.\u0275prov=a.zc({token:_t,factory:_t.\u0275fac}),_t),wt=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this))._id=e,a._renderer=n,a}return _createClass(i,[{key:"create",value:function(e,t){return new Ct(this._id,e,t||{},this._renderer)}}]),i}(function(){return function e(){_classCallCheck(this,e)}}()),Ct=function(){function e(t,i,n,a){_classCallCheck(this,e),this.id=t,this.element=i,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n=0&&e1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),i)}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var i=!1,n=void 0;try{this.work(e)}catch(a){i=!0,n=!!a&&a||new Error(a)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,i=t.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),i}(function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){return _classCallCheck(this,i),t.call(this)}return _createClass(i,[{key:"schedule",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),i}(jt.a)),Kt=function(){var e=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=i}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(i,t)}}]),e}();return e.now=function(){return Date.now()},e}(),Xt=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Kt.now;return _classCallCheck(this,i),(n=t.call(this,e,(function(){return i.delegate&&i.delegate!==_assertThisInitialized(n)?i.delegate.now():a()}))).actions=[],n.active=!1,n.scheduled=void 0,n}return _createClass(i,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return i.delegate&&i.delegate!==this?i.delegate.schedule(e,t,n):_get(_getPrototypeOf(i.prototype),"schedule",this).call(this,e,t,n)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}}]),i}(Kt),Yt=new Xt($t);function Zt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt;return function(i){return i.lift(new Qt(e,t))}}var Qt=function(){function e(t,i){_classCallCheck(this,e),this.dueTime=t,this.scheduler=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new ei(e,this.dueTime,this.scheduler))}}]),e}(),ei=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e)).dueTime=n,r.scheduler=a,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return _createClass(i,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ti,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),i}(Vt.a);function ti(e){e.debouncedNext()}function ii(e,t){return function(i){return i.lift(new ni(e,t))}}var ni=function(){function e(t,i){_classCallCheck(this,e),this.predicate=t,this.thisArg=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new ai(e,this.predicate,this.thisArg))}}]),e}(),ai=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e)).predicate=n,r.thisArg=a,r.count=0,r}return _createClass(i,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}]),i}(Vt.a),ri=i("lJxs"),oi=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),si=i("HDdC"),ci=new si.a((function(e){return e.complete()}));function li(e){return e?function(e){return new si.a((function(t){return e.schedule((function(){return t.complete()}))}))}(e):ci}function ui(e){return function(t){return 0===e?li():t.lift(new hi(e))}}var di,hi=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new oi}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new pi(e,this.total))}}]),e}(),pi=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).total=n,a.count=0,a}return _createClass(i,[{key:"_next",value:function(e){var t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}]),i}(Vt.a);function fi(e){return null!=e&&"false"!=="".concat(e)}function mi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return gi(e)?Number(e):t}function gi(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function vi(e){return Array.isArray(e)?e:[e]}function bi(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function _i(e){return e instanceof a.r?e.nativeElement:e}try{di="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(vB){di=!1}var yi,ki,wi,Ci,xi,Si,Ii=((wi=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?Object(yt.I)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!di)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}).\u0275fac=function(e){return new(e||wi)(a.Sc(a.M,8))},wi.\u0275prov=Object(a.zc)({factory:function(){return new wi(Object(a.Sc)(a.M,8))},token:wi,providedIn:"root"}),wi),Oi=((ki=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ki}),ki.\u0275inj=a.Ac({factory:function(e){return new(e||ki)}}),ki),Di=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ei(){if(yi)return yi;if("object"!=typeof document||!document)return yi=new Set(Di);var e=document.createElement("input");return yi=new Set(Di.filter((function(t){return e.setAttribute("type",t),e.type===t})))}function Ai(e){return function(){if(null==Ci&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Ci=!0}}))}finally{Ci=Ci||!1}return Ci}()?e:!!e.capture}function Ti(){if("object"!=typeof document||!document)return 0;if(null==xi){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.height="1px",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",e.appendChild(i),document.body.appendChild(e),xi=0,0===e.scrollLeft&&(e.scrollLeft=1,xi=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return xi}function Pi(e){if(function(){if(null==Si){var e="undefined"!=typeof document?document.head:null;Si=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Si}()){var t=e.getRootNode?e.getRootNode():null;if(t instanceof ShadowRoot)return t}return null}var Ri,Mi,Li,ji,Fi=((ji=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||ji)},ji.\u0275prov=Object(a.zc)({factory:function(){return new ji},token:ji,providedIn:"root"}),ji),Ni=((Li=function(){function e(t){_classCallCheck(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach((function(t,i){return e._cleanupObserver(i)}))}},{key:"observe",value:function(e){var t=this,i=_i(e);return new si.a((function(e){var n=t._observeElement(i).subscribe(e);return function(){n.unsubscribe(),t._unobserveElement(i)}}))}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new Lt.a,i=this._mutationObserverFactory.create((function(e){return t.next(e)}));i&&i.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:i,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),i=t.observer,n=t.stream;i&&i.disconnect(),n.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||Li)(a.Sc(Fi))},Li.\u0275prov=Object(a.zc)({factory:function(){return new Li(Object(a.Sc)(Fi))},token:Li,providedIn:"root"}),Li),zi=((Mi=function(){function e(t,i,n){_classCallCheck(this,e),this._contentObserver=t,this._elementRef=i,this._ngZone=n,this.event=new a.u,this._disabled=!1,this._currentSubscription=null}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){e._currentSubscription=(e.debounce?t.pipe(Zt(e.debounce)):t).subscribe(e.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=mi(e),this._subscribe()}}]),e}()).\u0275fac=function(e){return new(e||Mi)(a.Dc(Ni),a.Dc(a.r),a.Dc(a.I))},Mi.\u0275dir=a.yc({type:Mi,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),Mi),Bi=((Ri=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Ri}),Ri.\u0275inj=a.Ac({factory:function(e){return new(e||Ri)},providers:[Fi]}),Ri);function Ji(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Vi,Hi,Ui=0,Gi=new Map,Wi=null,qi=((Vi=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),Gi.set(t,{messageElement:t,referenceCount:0})):Gi.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))}},{key:"removeDescription",value:function(e,t){if(this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var i=Gi.get(t);i&&0===i.referenceCount&&this._deleteMessageElement(t)}Wi&&0===Wi.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t-1&&t!==i._activeItemIndex&&(i._activeItemIndex=t)}}))}return _createClass(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;if(this._items.length&&this._items.some((function(e){return"function"!=typeof e.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Gt((function(t){return e._pressedLetters.push(t)})),Zt(t),ii((function(){return e._pressedLetters.length>0})),Object(ri.a)((function(){return e._pressedLetters.join("")}))).subscribe((function(t){for(var i=e._getItemsArray(),n=1;n-1}));switch(i){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((n||Jt(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(i>=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i))))}this._pressedLetters=[],e.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),n=t[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),i=1;i<=t.length;i++){var n=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[n]))return void this.setActiveItem(n)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof a.O?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),e}(),Ki=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(i.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),i}($i),Xi=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments))._origin="program",e}return _createClass(i,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){_get(_getPrototypeOf(i.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),i}($i),Yi=((Hi=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,i=function(e){try{return e.frameElement}catch(vB){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(i){var n=i&&i.nodeName.toLowerCase();if(-1===Qi(i))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===n)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(i))return!1}var a=e.nodeName.toLowerCase(),r=Qi(e);if(e.hasAttribute("contenteditable"))return-1!==r;if("iframe"===a)return!1;if("audio"===a){if(!e.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===a){if(!e.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==a||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),i="input"===t&&e.type;return"text"===i||"password"===i||"select"===t||"textarea"===t}(e))&&e.tabIndex>=0}},{key:"isFocusable",value:function(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Zi(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)}}]),e}()).\u0275fac=function(e){return new(e||Hi)(a.Sc(Ii))},Hi.\u0275prov=Object(a.zc)({factory:function(){return new Hi(Object(a.Sc)(Ii))},token:Hi,providedIn:"root"}),Hi);function Zi(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Qi(e){if(!Zi(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var en,tn=function(){function e(t,i,n,a){var r=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=i,this._ngZone=n,this._document=a,this._hasAttached=!1,this.startAnchorListener=function(){return r.focusLastTabbableElement()},this.endAnchorListener=function(){return r.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return _createClass(e,[{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], ")+"[cdkFocusRegion".concat(e,"], ")+"[cdk-focus-".concat(e,"]")),i=0;i=0;i--){var n=t[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[i]):null;if(n)return n}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(ui(1)).subscribe(e)}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}}]),e}(),nn=((en=function(){function e(t,i,n){_classCallCheck(this,e),this._checker=t,this._ngZone=i,this._document=n}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new tn(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||en)(a.Sc(Yi),a.Sc(a.I),a.Sc(yt.e))},en.\u0275prov=Object(a.zc)({factory:function(){return new en(Object(a.Sc)(Yi),Object(a.Sc)(a.I),Object(a.Sc)(yt.e))},token:en,providedIn:"root"}),en);"undefined"!=typeof Element&∈var an,rn,on,sn=new a.x("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),cn=new a.x("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),ln=((an=function(){function e(t,i,n,a){_classCallCheck(this,e),this._ngZone=i,this._defaultOptions=a,this._document=n,this._liveElement=t||this._createLiveElement()}return _createClass(e,[{key:"announce",value:function(e){for(var t,i,n,a=this,r=this._defaultOptions,o=arguments.length,s=new Array(o>1?o-1:0),c=1;c1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Bt(null);var n=_i(e);if(this._elementInfo.has(n)){var a=this._elementInfo.get(n);return a.checkChildren=i,a.subject.asObservable()}var r={unlisten:function(){},checkChildren:i,subject:new Lt.a};this._elementInfo.set(n,r),this._incrementMonitoredElementCount();var o=function(e){return t._onFocus(e,n)},s=function(e){return t._onBlur(e,n)};return this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",o,!0),n.addEventListener("blur",s,!0)})),r.unlisten=function(){n.removeEventListener("focus",o,!0),n.removeEventListener("blur",s,!0)},r.subject.asObservable()}},{key:"stopMonitoring",value:function(e){var t=_i(e),i=this._elementInfo.get(t);i&&(i.unlisten(),i.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())}},{key:"focusVia",value:function(e,t,i){var n=_i(e);this._setOriginForCurrentEventQueue(t),"function"==typeof n.focus&&n.focus(i)}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach((function(t,i){return e.stopMonitoring(i)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,i){i?e.classList.add(t):e.classList.remove(t)}},{key:"_setClasses",value:function(e,t){this._elementInfo.get(e)&&(this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t))}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular((function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout((function(){return t._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(e){var t=e.target;return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var i=this._elementInfo.get(t);if(i&&(i.checkChildren||t===e.target)){var n=this._origin;n||(n=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"),this._setClasses(t,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}}},{key:"_onBlur",value:function(e,t){var i=this._elementInfo.get(t);!i||i.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(i.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run((function(){return e.next(t)}))}},{key:"_incrementMonitoredElementCount",value:function(){var e=this;1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular((function(){var t=e._getDocument(),i=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,dn),t.addEventListener("mousedown",e._documentMousedownListener,dn),t.addEventListener("touchstart",e._documentTouchstartListener,dn),i.addEventListener("focus",e._windowFocusListener)}))}},{key:"_decrementMonitoredElementCount",value:function(){if(!--this._monitoredElementCount){var e=this._getDocument(),t=this._getWindow();e.removeEventListener("keydown",this._documentKeydownListener,dn),e.removeEventListener("mousedown",this._documentMousedownListener,dn),e.removeEventListener("touchstart",this._documentTouchstartListener,dn),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),e}()).\u0275fac=function(e){return new(e||on)(a.Sc(a.I),a.Sc(Ii),a.Sc(yt.e,8),a.Sc(un,8))},on.\u0275prov=Object(a.zc)({factory:function(){return new on(Object(a.Sc)(a.I),Object(a.Sc)(Ii),Object(a.Sc)(yt.e,8),Object(a.Sc)(un,8))},token:on,providedIn:"root"}),on),pn=((rn=function(){function e(t,i){var n=this;_classCallCheck(this,e),this._elementRef=t,this._focusMonitor=i,this.cdkFocusChange=new a.u,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(e){return n.cdkFocusChange.emit(e)}))}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||rn)(a.Dc(a.r),a.Dc(hn))},rn.\u0275dir=a.yc({type:rn,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),rn);function fn(e){return 0===e.buttons}var mn,gn,vn,bn,_n,yn=((gn=function(){function e(t,i){_classCallCheck(this,e),this._platform=t,this._document=i}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=(this._document.defaultView.getComputedStyle(e).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),t){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||gn)(a.Sc(Ii),a.Sc(yt.e))},gn.\u0275prov=Object(a.zc)({factory:function(){return new gn(Object(a.Sc)(Ii),Object(a.Sc)(yt.e))},token:gn,providedIn:"root"}),gn),kn=((mn=function e(t){_classCallCheck(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275mod=a.Bc({type:mn}),mn.\u0275inj=a.Ac({factory:function(e){return new(e||mn)(a.Sc(yn))},imports:[[Oi,Bi]]}),mn),wn=new a.x("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(a.ib)(yt.e)}}),Cn=((_n=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new a.u,t){var i=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||i;this.value="ltr"===n||"rtl"===n?n:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||_n)(a.Sc(wn,8))},_n.\u0275prov=Object(a.zc)({factory:function(){return new _n(Object(a.Sc)(wn,8))},token:_n,providedIn:"root"}),_n),xn=((bn=function(){function e(){_classCallCheck(this,e),this._dir="ltr",this._isInitialized=!1,this.change=new a.u}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}},{key:"dir",get:function(){return this._dir},set:function(e){var t=this._dir,i=e?e.toLowerCase():e;this._rawDir=e,this._dir="ltr"===i||"rtl"===i?i:"ltr",t!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}}]),e}()).\u0275fac=function(e){return new(e||bn)},bn.\u0275dir=a.yc({type:bn,selectors:[["","dir",""]],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("dir",t._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[a.oc([{provide:Cn,useExisting:bn}])]}),bn),Sn=((vn=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:vn}),vn.\u0275inj=a.Ac({factory:function(e){return new(e||vn)}}),vn),In=new a.ab("9.2.0"),On=i("bHdf");function Dn(){return Object(On.a)(1)}function En(){return Dn()(Bt.apply(void 0,arguments))}function An(){for(var e=arguments.length,t=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return function(e){_inherits(n,e);var i=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var a=arguments.length,r=new Array(a),o=0;o0?i:e}},{key:"localeChanges",get:function(){return this._localeChanges}}]),e}(),Xn=new a.x("mat-date-formats");try{qn="undefined"!=typeof Intl}catch(vB){qn=!1}var Yn={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Zn=ta(31,(function(e){return String(e+1)})),Qn={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ea=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ta(e,t){for(var i=Array(e),n=0;n11)throw Error('Invalid month index "'.concat(t,'". Month index has to be between 0 and 11.'));if(i<1)throw Error('Invalid date "'.concat(i,'". Date has to be greater than 0.'));var n=this._createDateWithOverflow(e,t,i);if(n.getMonth()!=t)throw Error('Invalid date "'.concat(i,'" for month with index "').concat(t,'".'));return n}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}},{key:"format",value:function(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(qn){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var i=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(i,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var i=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(i)!=((this.getMonth(e)+t)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(ea.test(e)){var t=new Date(e);if(this.isValid(t))return t}}return _get(_getPrototypeOf(i.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,i){var n=new Date(e,t,i);return e>=0&&e<100&&n.setFullYear(this.getYear(n)-1900),n}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.format(i)}}]),i}(Kn)).\u0275fac=function(e){return new(e||na)(a.Sc($n,8),a.Sc(Ii))},na.\u0275prov=a.zc({token:na,factory:na.\u0275fac}),na),ca=((ia=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ia}),ia.\u0275inj=a.Ac({factory:function(e){return new(e||ia)},providers:[{provide:Kn,useClass:sa}],imports:[[Oi]]}),ia),la={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},ua=((oa=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:oa}),oa.\u0275inj=a.Ac({factory:function(e){return new(e||oa)},providers:[{provide:Xn,useValue:la}],imports:[[ca]]}),oa),da=((ra=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}()).\u0275fac=function(e){return new(e||ra)},ra.\u0275prov=Object(a.zc)({factory:function(){return new ra},token:ra,providedIn:"root"}),ra),ha=((aa=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||aa)},aa.\u0275dir=a.yc({type:aa,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),aa);function pa(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";e.changes.pipe(An(e)).subscribe((function(e){var n=e.length;fa(t,"".concat(i,"-2-line"),!1),fa(t,"".concat(i,"-3-line"),!1),fa(t,"".concat(i,"-multi-line"),!1),2===n||3===n?fa(t,"".concat(i,"-").concat(n,"-line"),!0):n>3&&fa(t,"".concat(i,"-multi-line"),!0)}))}function fa(e,t,i){var n=e.nativeElement.classList;i?n.add(t):n.remove(t)}var ma,ga,va,ba,_a,ya,ka,wa=((ma=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ma}),ma.\u0275inj=a.Ac({factory:function(e){return new(e||ma)},imports:[[Bn],Bn]}),ma),Ca=function(){function e(t,i,n){_classCallCheck(this,e),this._renderer=t,this.element=i,this.config=n,this.state=3}return _createClass(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),xa={enterDuration:450,exitDuration:400},Sa=Ai({passive:!0}),Ia=function(){function e(t,i,n,a){var r=this;_classCallCheck(this,e),this._target=t,this._ngZone=i,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=function(e){var t=fn(e),i=r._lastTouchStartEvent&&Date.now()2&&void 0!==arguments[2]?arguments[2]:{},a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},xa),n.animation);n.centered&&(e=a.left+a.width/2,t=a.top+a.height/2);var o=n.radius||function(e,t,i){var n=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),a=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));return Math.sqrt(n*n+a*a)}(e,t,a),s=e-a.left,c=t-a.top,l=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left="".concat(s-o,"px"),u.style.top="".concat(c-o,"px"),u.style.height="".concat(2*o,"px"),u.style.width="".concat(2*o,"px"),null!=n.color&&(u.style.backgroundColor=n.color),u.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";var d=new Ca(this,u,n);return d.state=0,this._activeRipples.add(d),n.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone((function(){var e=d===i._mostRecentTransientRipple;d.state=1,n.persistent||e&&i._isPointerDown||d.fadeOut()}),l),d}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var i=e.element,n=Object.assign(Object.assign({},xa),e.config.animation);i.style.transitionDuration="".concat(n.exitDuration,"ms"),i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone((function(){e.state=3,i.parentNode.removeChild(i)}),n.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(e){return e.fadeOut()}))}},{key:"setupTriggerEvents",value:function(e){var t=this,i=_i(e);i&&i!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular((function(){t._triggerEvents.forEach((function(e,t){i.addEventListener(t,e,Sa)}))})),this._triggerElement=i)}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(e,t)}))}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&this._triggerEvents.forEach((function(t,i){e._triggerElement.removeEventListener(i,t,Sa)}))}}]),e}(),Oa=new a.x("mat-ripple-global-options"),Da=((_a=function(){function e(t,i,n,a,r){_classCallCheck(this,e),this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new Ia(this,i,t,n),"NoopAnimations"===r&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}return _createClass(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),e}()).\u0275fac=function(e){return new(e||_a)(a.Dc(a.r),a.Dc(a.I),a.Dc(Ii),a.Dc(Oa,8),a.Dc(Pt,8))},_a.\u0275dir=a.yc({type:_a,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),_a),Ea=((ba=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ba}),ba.\u0275inj=a.Ac({factory:function(e){return new(e||ba)},imports:[[Bn,Oi],Bn]}),ba),Aa=((va=function e(t){_classCallCheck(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||va)(a.Dc(Pt,8))},va.\u0275cmp=a.xc({type:va,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&a.tc("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),va),Ta=((ga=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ga}),ga.\u0275inj=a.Ac({factory:function(e){return new(e||ga)}}),ga),Pa=Jn((function e(){_classCallCheck(this,e)})),Ra=0,Ma=((ya=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments))._labelId="mat-optgroup-label-".concat(Ra++),e}return i}(Pa)).\u0275fac=function(e){return La(e||ya)},ya.\u0275cmp=a.xc({type:ya,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(e,t){2&e&&(a.qc("aria-disabled",t.disabled.toString())("aria-labelledby",t._labelId),a.tc("mat-optgroup-disabled",t.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[a.mc],ngContentSelectors:Pn,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(e,t){1&e&&(a.fd(Tn),a.Jc(0,"label",0),a.Bd(1),a.ed(2),a.Ic(),a.ed(3,1)),2&e&&(a.gd("id",t._labelId),a.pc(1),a.Dd("",t.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),ya),La=a.Lc(Ma),ja=0,Fa=function e(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,e),this.source=t,this.isUserInput=i},Na=new a.x("MAT_OPTION_PARENT_COMPONENT"),za=((ka=function(){function e(t,i,n,r){_classCallCheck(this,e),this._element=t,this._changeDetectorRef=i,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(ja++),this.onSelectionChange=new a.u,this._stateChanges=new Lt.a}return _createClass(e,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var i=this._getHostElement();"function"==typeof i.focus&&i.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||Jt(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Fa(this,e))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=fi(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),e}()).\u0275fac=function(e){return new(e||ka)(a.Dc(a.r),a.Dc(a.j),a.Dc(Na,8),a.Dc(Ma,8))},ka.\u0275cmp=a.xc({type:ka,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t._selectViaInteraction()}))("keydown",(function(e){return t._handleKeydown(e)})),2&e&&(a.Mc("id",t.id),a.qc("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),a.tc("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Ln,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(e,t){1&e&&(a.fd(),a.zd(0,Rn,1,2,"mat-pseudo-checkbox",0),a.Jc(1,"span",1),a.ed(2),a.Ic(),a.Ec(3,"div",2)),2&e&&(a.gd("ngIf",t.multiple),a.pc(3),a.gd("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[yt.t,Da,Aa],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),ka);function Ba(e,t,i){if(i.length){for(var n=t.toArray(),a=i.toArray(),r=0,o=0;oi+n?Math.max(0,a-n+t):i}var Va,Ha,Ua,Ga,Wa=((Va=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Va}),Va.\u0275inj=a.Ac({factory:function(e){return new(e||Va)},imports:[[Ea,yt.c,Ta]]}),Va),qa=new a.x("mat-label-global-options"),$a=["mat-button",""],Ka=["*"],Xa=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Ya=Vn(Jn(Hn((function e(t){_classCallCheck(this,e),this._elementRef=t})))),Za=((Ga=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;_classCallCheck(this,i),(r=t.call(this,e))._focusMonitor=n,r._animationMode=a,r.isRoundButton=r._hasHostAttributes("mat-fab","mat-mini-fab"),r.isIconButton=r._hasHostAttributes("mat-icon-button");var o,s=_createForOfIteratorHelper(Xa);try{for(s.s();!(o=s.n()).done;){var c=o.value;r._hasHostAttributes(c)&&r._getHostElement().classList.add(c)}}catch(l){s.e(l)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),r._focusMonitor.monitor(r._elementRef,!0),r.isRoundButton&&(r.color="accent"),r}return _createClass(i,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),e,t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),Ga),Qa=((Ua=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){return _classCallCheck(this,i),t.call(this,n,e,a)}return _createClass(i,[{key:"_haltDisabledEvents",value:function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}]),i}(Za)).\u0275fac=function(e){return new(e||Ua)(a.Dc(hn),a.Dc(a.r),a.Dc(Pt,8))},Ua.\u0275cmp=a.xc({type:Ua,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){1&e&&a.Wc("click",(function(e){return t._haltDisabledEvents(e)})),2&e&&(a.qc("tabindex",t.disabled?-1:t.tabIndex||0)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString()),a.tc("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[a.mc],attrs:$a,ngContentSelectors:Ka,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"span",0),a.ed(1),a.Ic(),a.Ec(2,"div",1),a.Ec(3,"div",2)),2&e&&(a.pc(2),a.tc("mat-button-ripple-round",t.isRoundButton||t.isIconButton),a.gd("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Da],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),Ua),er=((Ha=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Ha}),Ha.\u0275inj=a.Ac({factory:function(e){return new(e||Ha)},imports:[[Ea,Bn],Bn]}),Ha);function tr(e){return e&&"function"==typeof e.connect}var ir,nr=function(){function e(){var t=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this._multiple=i,this._emitChanges=a,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Lt.a,n&&n.length&&(i?n.forEach((function(e){return t._markSelected(e)})):this._markSelected(n[0]),this._selectedToEmit.length=0)}return _createClass(e,[{key:"select",value:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),e}(),ar=((ir=function(){function e(){_classCallCheck(this,e),this._listeners=[]}return _createClass(e,[{key:"notify",value:function(e,t){var i,n=_createForOfIteratorHelper(this._listeners);try{for(n.s();!(i=n.n()).done;)(0,i.value)(e,t)}catch(a){n.e(a)}finally{n.f()}}},{key:"listen",value:function(e){var t=this;return this._listeners.push(e),function(){t._listeners=t._listeners.filter((function(t){return e!==t}))}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),e}()).\u0275fac=function(e){return new(e||ir)},ir.\u0275prov=Object(a.zc)({factory:function(){return new ir},token:ir,providedIn:"root"}),ir),rr=i("DH7j"),or=i("XoHu"),sr=i("Cfvw");function cr(){for(var e=arguments.length,t=new Array(e),i=0;ie?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return Ar(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return Ar(e.value)||Rr.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){if(Ar(t.value))return null;var i=t.value?t.value.length:0;return ie?{maxlength:{requiredLength:e,actualLength:i}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),i=new RegExp(n)):(n=t.toString(),i=t),function(e){if(Ar(e.value))return null;var t=e.value;return i.test(t)?null:{pattern:{requiredPattern:n,actualValue:t}}}):e.nullValidator;var i,n}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(Lr);return 0==t.length?null:function(e){return Fr(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(Lr);return 0==t.length?null:function(e){return cr(function(e,t){return t.map((function(t){return t(e)}))}(e,t).map(jr)).pipe(Object(ri.a)(Fr))}}}]),e}();function Lr(e){return null!=e}function jr(e){var t=Object(a.Sb)(e)?Object(sr.a)(e):e;if(!Object(a.Rb)(t))throw new Error("Expected validator to return Promise or Observable.");return t}function Fr(e){var t={};return e.forEach((function(e){t=null!=e?Object.assign(Object.assign({},t),e):t})),0===Object.keys(t).length?null:t}function Nr(e){return e.validate?function(t){return e.validate(t)}:e}function zr(e){return e.validate?function(t){return e.validate(t)}:e}var Br,Jr,Vr,Hr,Ur={provide:fr,useExisting:Object(a.hb)((function(){return Gr})),multi:!0},Gr=((Br=function(){function e(t,i){_classCallCheck(this,e),this._renderer=t,this._elementRef=i,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||Br)(a.Dc(a.P),a.Dc(a.r))},Br.\u0275dir=a.yc({type:Br,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&a.Wc("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[a.oc([Ur])]}),Br),Wr={provide:fr,useExisting:Object(a.hb)((function(){return $r})),multi:!0},qr=((Vr=function(){function e(){_classCallCheck(this,e),this._accessors=[]}return _createClass(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(i){t._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}()).\u0275fac=function(e){return new(e||Vr)},Vr.\u0275prov=a.zc({token:Vr,factory:Vr.\u0275fac}),Vr),$r=((Jr=function(){function e(t,i,n,a){_classCallCheck(this,e),this._renderer=t,this._elementRef=i,this._registry=n,this._injector=a,this.onChange=function(){},this.onTouched=function(){}}return _createClass(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Ir),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}]),e}()).\u0275fac=function(e){return new(e||Jr)(a.Dc(a.P),a.Dc(a.r),a.Dc(qr),a.Dc(a.y))},Jr.\u0275dir=a.yc({type:Jr,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&a.Wc("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[a.oc([Wr])]}),Jr),Kr={provide:fr,useExisting:Object(a.hb)((function(){return Xr})),multi:!0},Xr=((Hr=function(){function e(t,i){_classCallCheck(this,e),this._renderer=t,this._elementRef=i,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||Hr)(a.Dc(a.P),a.Dc(a.r))},Hr.\u0275dir=a.yc({type:Hr,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&a.Wc("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[a.oc([Kr])]}),Hr),Yr='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Zr='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Qr='\n
\n
\n \n
\n
',eo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"controlParentException",value:function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(Yr))}},{key:"ngModelGroupException",value:function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '.concat(Zr,"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(Qr))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ".concat(Yr))}},{key:"groupParentException",value:function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ".concat(Zr))}},{key:"arrayParentException",value:function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}},{key:"disabledAttrWarning",value:function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}},{key:"ngModelWarning",value:function(e){console.warn("\n It looks like you're using ngModel on the same form field as ".concat(e,". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/").concat("formControl"===e?"FormControlDirective":"FormControlName","#use-with-ngmodel\n "))}}]),e}(),to={provide:fr,useExisting:Object(a.hb)((function(){return ro})),multi:!0};function io(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var no,ao,ro=((ao=function(){function e(t,i){_classCallCheck(this,e),this._renderer=t,this._elementRef=i,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=a.Tb}return _createClass(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var i=io(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(i){t.value=t._getOptionValue(i),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,i=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(i){var n=[];if(i.hasOwnProperty("selectedOptions"))for(var a=i.selectedOptions,r=0;r1?"path: '".concat(e.path.join(" -> "),"'"):e.path[0]?"name: '".concat(e.path,"'"):"unspecified name attribute",new Error("".concat(t," ").concat(i))}function yo(e){return null!=e?Mr.compose(e.map(Nr)):null}function ko(e){return null!=e?Mr.composeAsync(e.map(zr)):null}function wo(e,t){if(!e.hasOwnProperty("model"))return!1;var i=e.model;return!!i.isFirstChange()||!Object(a.Tb)(t,i.currentValue)}var Co=[gr,Xr,Gr,ro,ho,$r];function xo(e,t){e._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}))}function So(e,t){if(!t)return null;Array.isArray(t)||_o(e,"Value accessor was not provided as an array for form control with");var i=void 0,n=void 0,a=void 0;return t.forEach((function(t){var r;t.constructor===_r?i=t:(r=t,Co.some((function(e){return r.constructor===e}))?(n&&_o(e,"More than one built-in value accessor matches form control with"),n=t):(a&&_o(e,"More than one custom value accessor matches form control with"),a=t))})),a||n||i||(_o(e,"No valid value accessor for form control with"),null)}function Io(e,t){var i=e.indexOf(t);i>-1&&e.splice(i,1)}function Oo(e,t,i,n){Object(a.jb)()&&"never"!==n&&((null!==n&&"once"!==n||t._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(eo.ngModelWarning(e),t._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function Do(e){var t=Ao(e)?e.validators:e;return Array.isArray(t)?yo(t):t||null}function Eo(e,t){var i=Ao(t)?t.asyncValidators:e;return Array.isArray(i)?ko(i):i||null}function Ao(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var To,Po,Ro,Mo,Lo,jo,Fo,No,zo,Bo=function(){function e(t,i){_classCallCheck(this,e),this.validator=t,this.asyncValidator=i,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(e,[{key:"setValidators",value:function(e){this.validator=Do(e)}},{key:"setAsyncValidators",value:function(e){this.asyncValidator=Eo(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var i=jr(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe((function(i){return t.setErrors(i,{emitEvent:e})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,i){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var n=e;return t.forEach((function(e){n=n instanceof Vo?n.controls.hasOwnProperty(e)?n.controls[e]:null:n instanceof Ho&&n.at(e)||null})),n}(this,e)}},{key:"getError",value:function(e,t){var i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new a.u,this.statusChanges=new a.u}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls((function(t){return t.status===e}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(e){return e.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(e){return e.touched}))}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Ao(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),Jo=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,i),(e=t.call(this,Do(a),Eo(r,a)))._onChange=[],e._applyFormState(n),e._setUpdateStrategy(a),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return _createClass(i,[{key:"setValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==i.emitModelToViewChange&&this._onChange.forEach((function(e){return e(t.value,!1!==i.emitViewToModelChange)})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),i}(Bo),Vo=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,Do(n),Eo(a,n))).controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return _createClass(i,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach((function(n){t._throwIfControlMissing(n),t.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(n){t.controls[n]&&t.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(i,n){i.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(e,t,i){return e[i]=t instanceof Jo?t.value:t.getRawValue(),e}))}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach((function(i){return e(t.controls[i],i)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){var t=this,i=!1;return this._forEachChild((function(n,a){i=i||t.contains(a)&&e(n)})),i}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},(function(t,i,n){return(i.enabled||e.disabled)&&(t[n]=i.value),t}))}},{key:"_reduceChildren",value:function(e,t){var i=e;return this._forEachChild((function(e,n){i=t(i,e,n)})),i}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,i){if(void 0===e[i])throw new Error("Must supply a value for form control with name: '".concat(i,"'."))}))}}]),i}(Bo),Ho=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,Do(n),Eo(a,n))).controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return _createClass(i,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach((function(e,n){t._throwIfControlMissing(n),t.at(n).setValue(e,{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"patchValue",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e,n){t.at(n)&&t.at(n).patchValue(e,{onlySelf:!0,emitEvent:i.emitEvent})})),this.updateValueAndValidity(i)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(i,n){i.reset(e[n],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map((function(e){return e instanceof Jo?e.value:e.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach((function(t,i){e(t,i)}))}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))}},{key:"_anyControls",value:function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,i){if(void 0===e[i])throw new Error("Must supply a value for form control at index: ".concat(i,"."))}))}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(i){t.e(i)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),i}(Bo),Uo={provide:kr,useExisting:Object(a.hb)((function(){return Wo}))},Go=Promise.resolve(null),Wo=((Po=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var r;return _classCallCheck(this,i),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new a.u,r.form=new Vo({},yo(e),ko(n)),r}return _createClass(i,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;Go.then((function(){var i=t._findContainer(e.path);e.control=i.registerControl(e.name,e.control),mo(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Go.then((function(){var i=t._findContainer(e.path);i&&i.removeControl(e.name),Io(t._directives,e)}))}},{key:"addFormGroup",value:function(e){var t=this;Go.then((function(){var i=t._findContainer(e.path),n=new Vo({});vo(n,e),i.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(e){var t=this;Go.then((function(){var i=t._findContainer(e.path);i&&i.removeControl(e.name)}))}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var i=this;Go.then((function(){i.form.get(e.path).setValue(t)}))}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,xo(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),i}(kr)).\u0275fac=function(e){return new(e||Po)(a.Dc(Tr,10),a.Dc(Pr,10))},Po.\u0275dir=a.yc({type:Po,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&a.Wc("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.oc([Uo]),a.mc]}),Po),qo=((To=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return fo(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return yo(this._validators)}},{key:"asyncValidator",get:function(){return ko(this._asyncValidators)}}]),i}(kr)).\u0275fac=function(e){return $o(e||To)},To.\u0275dir=a.yc({type:To,features:[a.mc]}),To),$o=a.Lc(qo),Ko=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"modelParentException",value:function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '.concat(Yr,'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n '))}},{key:"formGroupNameException",value:function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ".concat(Zr,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(Qr))}},{key:"missingNameException",value:function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}},{key:"modelGroupParentException",value:function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ".concat(Zr,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(Qr))}}]),e}(),Xo={provide:kr,useExisting:Object(a.hb)((function(){return Yo}))},Yo=((Ro=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this))._parent=e,r._validators=n,r._asyncValidators=a,r}return _createClass(i,[{key:"_checkParentType",value:function(){this._parent instanceof i||this._parent instanceof Wo||Ko.modelGroupParentException()}}]),i}(qo)).\u0275fac=function(e){return new(e||Ro)(a.Dc(kr,5),a.Dc(Tr,10),a.Dc(Pr,10))},Ro.\u0275dir=a.yc({type:Ro,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a.oc([Xo]),a.mc]}),Ro),Zo={provide:Ir,useExisting:Object(a.hb)((function(){return es}))},Qo=Promise.resolve(null),es=((Lo=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o){var s;return _classCallCheck(this,i),(s=t.call(this)).control=new Jo,s._registered=!1,s.update=new a.u,s._parent=e,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=So(_assertThisInitialized(s),o),s}return _createClass(i,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),wo(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){mo(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof Yo)&&this._parent instanceof qo?Ko.formGroupNameException():this._parent instanceof Yo||this._parent instanceof Wo||Ko.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ko.missingNameException()}},{key:"_updateValue",value:function(e){var t=this;Qo.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(e){var t=this,i=e.isDisabled.currentValue,n=""===i||i&&"false"!==i;Qo.then((function(){n&&!t.control.disabled?t.control.disable():!n&&t.control.disabled&&t.control.enable()}))}},{key:"path",get:function(){return this._parent?fo(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return yo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ko(this._rawAsyncValidators)}}]),i}(Ir)).\u0275fac=function(e){return new(e||Lo)(a.Dc(kr,9),a.Dc(Tr,10),a.Dc(Pr,10),a.Dc(fr,10))},Lo.\u0275dir=a.yc({type:Lo,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a.oc([Zo]),a.mc,a.nc]}),Lo),ts=((Mo=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Mo)},Mo.\u0275dir=a.yc({type:Mo,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Mo),is=new a.x("NgModelWithFormControlWarning"),ns={provide:Ir,useExisting:Object(a.hb)((function(){return as}))},as=((jo=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o){var s;return _classCallCheck(this,i),(s=t.call(this))._ngModelWarningConfig=o,s.update=new a.u,s._ngModelWarningSent=!1,s._rawValidators=e||[],s._rawAsyncValidators=n||[],s.valueAccessor=So(_assertThisInitialized(s),r),s}return _createClass(i,[{key:"ngOnChanges",value:function(e){this._isControlChanged(e)&&(mo(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),wo(e,this.viewModel)&&(Oo("formControl",i,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}},{key:"isDisabled",set:function(e){eo.disabledAttrWarning()}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return yo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ko(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),i}(Ir)).\u0275fac=function(e){return new(e||jo)(a.Dc(Tr,10),a.Dc(Pr,10),a.Dc(fr,10),a.Dc(is,8))},jo.\u0275dir=a.yc({type:jo,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a.oc([ns]),a.mc,a.nc]}),jo._ngModelWarningSentOnce=!1,jo),rs={provide:kr,useExisting:Object(a.hb)((function(){return os}))},os=((Fo=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var r;return _classCallCheck(this,i),(r=t.call(this))._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new a.u,r}return _createClass(i,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return mo(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){Io(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);vo(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);vo(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,xo(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach((function(t){var i=e.form.get(t.path);t.control!==i&&(function(e,t){t.valueAccessor.registerOnChange((function(){return bo(t)})),t.valueAccessor.registerOnTouched((function(){return bo(t)})),t._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),t._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),e&&e._clearChangeFns()}(t.control,t),i&&mo(i,t),t.control=i)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange((function(){return e._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var e=yo(this._validators);this.form.validator=Mr.compose([this.form.validator,e]);var t=ko(this._asyncValidators);this.form.asyncValidator=Mr.composeAsync([this.form.asyncValidator,t])}},{key:"_checkFormPresent",value:function(){this.form||eo.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),i}(kr)).\u0275fac=function(e){return new(e||Fo)(a.Dc(Tr,10),a.Dc(Pr,10))},Fo.\u0275dir=a.yc({type:Fo,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&a.Wc("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.oc([rs]),a.mc,a.nc]}),Fo),ss={provide:kr,useExisting:Object(a.hb)((function(){return cs}))},cs=((No=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this))._parent=e,r._validators=n,r._asyncValidators=a,r}return _createClass(i,[{key:"_checkParentType",value:function(){ds(this._parent)&&eo.groupParentException()}}]),i}(qo)).\u0275fac=function(e){return new(e||No)(a.Dc(kr,13),a.Dc(Tr,10),a.Dc(Pr,10))},No.\u0275dir=a.yc({type:No,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[a.oc([ss]),a.mc]}),No),ls={provide:kr,useExisting:Object(a.hb)((function(){return us}))},us=((zo=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this))._parent=e,r._validators=n,r._asyncValidators=a,r}return _createClass(i,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){ds(this._parent)&&eo.arrayParentException()}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return fo(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return yo(this._validators)}},{key:"asyncValidator",get:function(){return ko(this._asyncValidators)}}]),i}(kr)).\u0275fac=function(e){return new(e||zo)(a.Dc(kr,13),a.Dc(Tr,10),a.Dc(Pr,10))},zo.\u0275dir=a.yc({type:zo,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[a.oc([ls]),a.mc]}),zo);function ds(e){return!(e instanceof cs||e instanceof os||e instanceof us)}var hs,ps,fs,ms,gs,vs,bs,_s,ys,ks,ws,Cs,xs,Ss,Is,Os,Ds,Es,As,Ts,Ps,Rs,Ms,Ls,js,Fs,Ns,zs,Bs,Js,Vs,Hs,Us,Gs={provide:Ir,useExisting:Object(a.hb)((function(){return Ws}))},Ws=((hs=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s){var c;return _classCallCheck(this,i),(c=t.call(this))._ngModelWarningConfig=s,c._added=!1,c.update=new a.u,c._ngModelWarningSent=!1,c._parent=e,c._rawValidators=n||[],c._rawAsyncValidators=r||[],c.valueAccessor=So(_assertThisInitialized(c),o),c}return _createClass(i,[{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),wo(e,this.viewModel)&&(Oo("formControlName",i,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_checkParentType",value:function(){!(this._parent instanceof cs)&&this._parent instanceof qo?eo.ngModelGroupException():this._parent instanceof cs||this._parent instanceof os||this._parent instanceof us||eo.controlParentException()}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(e){eo.disabledAttrWarning()}},{key:"path",get:function(){return fo(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return yo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ko(this._rawAsyncValidators)}}]),i}(Ir)).\u0275fac=function(e){return new(e||hs)(a.Dc(kr,13),a.Dc(Tr,10),a.Dc(Pr,10),a.Dc(fr,10),a.Dc(is,8))},hs.\u0275dir=a.yc({type:hs,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a.oc([Gs]),a.mc,a.nc]}),hs._ngModelWarningSentOnce=!1,hs),qs={provide:Tr,useExisting:Object(a.hb)((function(){return Ks})),multi:!0},$s={provide:Tr,useExisting:Object(a.hb)((function(){return Xs})),multi:!0},Ks=((fs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validate",value:function(e){return this.required?Mr.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!=="".concat(e),this._onChange&&this._onChange()}}]),e}()).\u0275fac=function(e){return new(e||fs)},fs.\u0275dir=a.yc({type:fs,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("required",t.required?"":null)},inputs:{required:"required"},features:[a.oc([qs])]}),fs),Xs=((ps=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"validate",value:function(e){return this.required?Mr.requiredTrue(e):null}}]),i}(Ks)).\u0275fac=function(e){return Ys(e||ps)},ps.\u0275dir=a.yc({type:ps,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("required",t.required?"":null)},features:[a.oc([$s]),a.mc]}),ps),Ys=a.Lc(Xs),Zs={provide:Tr,useExisting:Object(a.hb)((function(){return Qs})),multi:!0},Qs=((ms=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validate",value:function(e){return this._enabled?Mr.email(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"email",set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}}]),e}()).\u0275fac=function(e){return new(e||ms)},ms.\u0275dir=a.yc({type:ms,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[a.oc([Zs])]}),ms),ec={provide:Tr,useExisting:Object(a.hb)((function(){return tc})),multi:!0},tc=((gs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnChanges",value:function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null==this.minlength?null:this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=Mr.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),e}()).\u0275fac=function(e){return new(e||gs)},gs.\u0275dir=a.yc({type:gs,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[a.oc([ec]),a.nc]}),gs),ic={provide:Tr,useExisting:Object(a.hb)((function(){return nc})),multi:!0},nc=((vs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null!=this.maxlength?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=Mr.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),e}()).\u0275fac=function(e){return new(e||vs)},vs.\u0275dir=a.yc({type:vs,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[a.oc([ic]),a.nc]}),vs),ac={provide:Tr,useExisting:Object(a.hb)((function(){return rc})),multi:!0},rc=((ws=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnChanges",value:function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=Mr.pattern(this.pattern)}}]),e}()).\u0275fac=function(e){return new(e||ws)},ws.\u0275dir=a.yc({type:ws,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[a.oc([ac]),a.nc]}),ws),oc=((ks=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ks}),ks.\u0275inj=a.Ac({factory:function(e){return new(e||ks)}}),ks),sc=((ys=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this._reduceControls(e),n=null,a=null,r=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(n=null!=t.validators?t.validators:null,a=null!=t.asyncValidators?t.asyncValidators:null,r=null!=t.updateOn?t.updateOn:void 0):(n=null!=t.validator?t.validator:null,a=null!=t.asyncValidator?t.asyncValidator:null)),new Vo(i,{asyncValidators:a,updateOn:r,validators:n})}},{key:"control",value:function(e,t,i){return new Jo(e,t,i)}},{key:"array",value:function(e,t,i){var n=this,a=e.map((function(e){return n._createControl(e)}));return new Ho(a,t,i)}},{key:"_reduceControls",value:function(e){var t=this,i={};return Object.keys(e).forEach((function(n){i[n]=t._createControl(e[n])})),i}},{key:"_createControl",value:function(e){return e instanceof Jo||e instanceof Vo||e instanceof Ho?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||ys)},ys.\u0275prov=a.zc({token:ys,factory:ys.\u0275fac}),ys),cc=((_s=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:_s}),_s.\u0275inj=a.Ac({factory:function(e){return new(e||_s)},providers:[qr],imports:[oc]}),_s),lc=((bs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:is,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275mod=a.Bc({type:bs}),bs.\u0275inj=a.Ac({factory:function(e){return new(e||bs)},providers:[sc,qr],imports:[oc]}),bs),uc=["button"],dc=["*"],hc=new a.x("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),pc={provide:fr,useExisting:Object(a.hb)((function(){return vc})),multi:!0},fc=function e(){_classCallCheck(this,e)},mc=0,gc=function e(t,i){_classCallCheck(this,e),this.source=t,this.value=i},vc=((Cs=function(){function e(t,i){_classCallCheck(this,e),this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=function(){},this._onTouched=function(){},this._name="mat-button-toggle-group-".concat(mc++),this.valueChange=new a.u,this.change=new a.u,this.appearance=i&&i.appearance?i.appearance:"standard"}return _createClass(e,[{key:"ngOnInit",value:function(){this._selectionModel=new nr(this.multiple,void 0,!1)}},{key:"ngAfterContentInit",value:function(){var e;(e=this._selectionModel).select.apply(e,_toConsumableArray(this._buttonToggles.filter((function(e){return e.checked}))))}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_emitChangeEvent",value:function(){var e=this.selected,t=Array.isArray(e)?e[e.length-1]:e,i=new gc(t,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}},{key:"_syncButtonToggle",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||e.checked||(this.selected.checked=!1),this._selectionModel?t?this._selectionModel.select(e):this._selectionModel.deselect(e):a=!0,a?Promise.resolve((function(){return i._updateModelValue(n)})):this._updateModelValue(n)}},{key:"_isSelected",value:function(e){return this._selectionModel&&this._selectionModel.isSelected(e)}},{key:"_isPrechecked",value:function(e){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some((function(t){return null!=e.value&&t===e.value})):e.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._rawValue=e,this._buttonToggles)if(this.multiple&&e){if(!Array.isArray(e))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),e.forEach((function(e){return t._selectValue(e)}))}else this._clearSelection(),this._selectValue(e)}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach((function(e){return e.checked=!1}))}},{key:"_selectValue",value:function(e){var t=this._buttonToggles.find((function(t){return null!=t.value&&t.value===e}));t&&(t.checked=!0,this._selectionModel.select(t))}},{key:"_updateModelValue",value:function(e){e&&this._emitChangeEvent(),this.valueChange.emit(this.value)}},{key:"name",get:function(){return this._name},set:function(e){var t=this;this._name=e,this._buttonToggles&&this._buttonToggles.forEach((function(e){e.name=t._name,e._markForCheck()}))}},{key:"vertical",get:function(){return this._vertical},set:function(e){this._vertical=fi(e)}},{key:"value",get:function(){var e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map((function(e){return e.value})):e[0]?e[0].value:void 0},set:function(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}},{key:"selected",get:function(){var e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=fi(e)}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e),this._buttonToggles&&this._buttonToggles.forEach((function(e){return e._markForCheck()}))}}]),e}()).\u0275fac=function(e){return new(e||Cs)(a.Dc(a.j),a.Dc(hc,8))},Cs.\u0275dir=a.yc({type:Cs,selectors:[["mat-button-toggle-group"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,_c,!0),2&e&&a.md(n=a.Xc())&&(t._buttonToggles=n)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(e,t){2&e&&(a.qc("aria-disabled",t.disabled),a.tc("mat-button-toggle-vertical",t.vertical)("mat-button-toggle-group-appearance-standard","standard"===t.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[a.oc([pc,{provide:fc,useExisting:Cs}])]}),Cs),bc=Hn((function e(){_classCallCheck(this,e)})),_c=((Ss=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c){var l;_classCallCheck(this,i),(l=t.call(this))._changeDetectorRef=n,l._elementRef=r,l._focusMonitor=o,l._isSingleSelector=!1,l._checked=!1,l.ariaLabelledby=null,l._disabled=!1,l.change=new a.u;var u=Number(s);return l.tabIndex=u||0===u?u:null,l.buttonToggleGroup=e,l.appearance=c&&c.appearance?c.appearance:"standard",l}return _createClass(i,[{key:"ngOnInit",value:function(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||"mat-button-toggle-".concat(mc++),this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(e){this._buttonElement.nativeElement.focus(e)}},{key:"_onButtonClick",value:function(){var e=!!this._isSingleSelector||!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new gc(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(e){this._appearance=e}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(e){var t=fi(e);t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(e){this._disabled=fi(e)}}]),i}(bc)).\u0275fac=function(e){return new(e||Ss)(a.Dc(vc,8),a.Dc(a.j),a.Dc(a.r),a.Dc(hn),a.Tc("tabindex"),a.Dc(hc,8))},Ss.\u0275cmp=a.xc({type:Ss,selectors:[["mat-button-toggle"]],viewQuery:function(e,t){var i;1&e&&a.Fd(uc,!0),2&e&&a.md(i=a.Xc())&&(t._buttonElement=i.first)},hostAttrs:[1,"mat-button-toggle","mat-focus-indicator"],hostVars:11,hostBindings:function(e,t){1&e&&a.Wc("focus",(function(){return t.focus()})),2&e&&(a.qc("tabindex",-1)("id",t.id)("name",null),a.tc("mat-button-toggle-standalone",!t.buttonToggleGroup)("mat-button-toggle-checked",t.checked)("mat-button-toggle-disabled",t.disabled)("mat-button-toggle-appearance-standard","standard"===t.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[a.mc],ngContentSelectors:dc,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(e,t){if(1&e&&(a.fd(),a.Jc(0,"button",0,1),a.Wc("click",(function(){return t._onButtonClick()})),a.Jc(2,"div",2),a.ed(3),a.Ic(),a.Ic(),a.Ec(4,"div",3),a.Ec(5,"div",4)),2&e){var i=a.nd(1);a.gd("id",t.buttonId)("disabled",t.disabled||null),a.qc("tabindex",t.disabled?-1:t.tabIndex)("aria-pressed",t.checked)("name",t.name||null)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby),a.pc(5),a.gd("matRippleTrigger",i)("matRippleDisabled",t.disableRipple||t.disabled)}},directives:[Da],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px;padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 48px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),Ss),yc=((xs=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:xs}),xs.\u0275inj=a.Ac({factory:function(e){return new(e||xs)},imports:[[Bn,Ea],Bn]}),xs),kc=["*",[["mat-card-footer"]]],wc=["*","mat-card-footer"],Cc=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],xc=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],Sc=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],Ic=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],Oc=((Bs=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Bs)},Bs.\u0275dir=a.yc({type:Bs,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Bs),Dc=((zs=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||zs)},zs.\u0275dir=a.yc({type:zs,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),zs),Ec=((Ns=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ns)},Ns.\u0275dir=a.yc({type:Ns,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Ns),Ac=((Fs=function e(){_classCallCheck(this,e),this.align="start"}).\u0275fac=function(e){return new(e||Fs)},Fs.\u0275dir=a.yc({type:Fs,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("mat-card-actions-align-end","end"===t.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Fs),Tc=((js=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||js)},js.\u0275dir=a.yc({type:js,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),js),Pc=((Ls=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ls)},Ls.\u0275dir=a.yc({type:Ls,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Ls),Rc=((Ms=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ms)},Ms.\u0275dir=a.yc({type:Ms,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),Ms),Mc=((Rs=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Rs)},Rs.\u0275dir=a.yc({type:Rs,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),Rs),Lc=((Ps=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ps)},Ps.\u0275dir=a.yc({type:Ps,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),Ps),jc=((Ts=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ts)},Ts.\u0275dir=a.yc({type:Ts,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),Ts),Fc=((As=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||As)},As.\u0275dir=a.yc({type:As,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),As),Nc=((Es=function e(t){_classCallCheck(this,e),this._animationMode=t}).\u0275fac=function(e){return new(e||Es)(a.Dc(Pt,8))},Es.\u0275cmp=a.xc({type:Es,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:wc,decls:2,vars:0,template:function(e,t){1&e&&(a.fd(kc),a.ed(0),a.ed(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),Es),zc=((Ds=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ds)},Ds.\u0275cmp=a.xc({type:Ds,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:xc,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,t){1&e&&(a.fd(Cc),a.ed(0),a.Jc(1,"div",0),a.ed(2,1),a.Ic(),a.ed(3,2))},encapsulation:2,changeDetection:0}),Ds),Bc=((Os=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Os)},Os.\u0275cmp=a.xc({type:Os,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:Ic,decls:4,vars:0,template:function(e,t){1&e&&(a.fd(Sc),a.Jc(0,"div"),a.ed(1),a.Ic(),a.ed(2,1),a.ed(3,2))},encapsulation:2,changeDetection:0}),Os),Jc=((Is=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Is}),Is.\u0275inj=a.Ac({factory:function(e){return new(e||Is)},imports:[[Bn],Bn]}),Is),Vc=["input"],Hc=function(){return{enterDuration:150}},Uc=["*"],Gc=new a.x("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),Wc=new a.x("mat-checkbox-click-action"),qc=0,$c={provide:fr,useExisting:Object(a.hb)((function(){return Yc})),multi:!0},Kc=function e(){_classCallCheck(this,e)},Xc=Un(Vn(Hn(Jn((function e(t){_classCallCheck(this,e),this._elementRef=t}))))),Yc=((Js=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l,u){var d;return _classCallCheck(this,i),(d=t.call(this,e))._changeDetectorRef=n,d._focusMonitor=r,d._ngZone=o,d._clickAction=c,d._animationMode=l,d._options=u,d.ariaLabel="",d.ariaLabelledby=null,d._uniqueId="mat-checkbox-".concat(++qc),d.id=d._uniqueId,d.labelPosition="after",d.name=null,d.change=new a.u,d.indeterminateChange=new a.u,d._onTouched=function(){},d._currentAnimationClass="",d._currentCheckState=0,d._controlValueAccessorChangeFn=function(){},d._checked=!1,d._disabled=!1,d._indeterminate=!1,d._options=d._options||{},d._options.color&&(d.color=d._options.color),d.tabIndex=parseInt(s)||0,d._focusMonitor.monitor(e,!0).subscribe((function(e){e||Promise.resolve().then((function(){d._onTouched(),n.markForCheck()}))})),d._clickAction=d._clickAction||d._options.clickAction,d}return _createClass(i,[{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,i=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);var n=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){i.classList.remove(n)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var e=new Kc;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t=this;e.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){t._indeterminate=!1,t.indeterminateChange.emit(t._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,e,t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var i="";switch(e){case 0:if(1===t)i="unchecked-checked";else{if(3!=t)return"";i="unchecked-indeterminate"}break;case 2:i=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(i)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=fi(e)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=fi(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=fi(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),i}(Xc)).\u0275fac=function(e){return new(e||Js)(a.Dc(a.r),a.Dc(a.j),a.Dc(hn),a.Dc(a.I),a.Tc("tabindex"),a.Dc(Wc,8),a.Dc(Pt,8),a.Dc(Gc,8))},Js.\u0275cmp=a.xc({type:Js,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var i;1&e&&(a.Fd(Vc,!0),a.Fd(Da,!0)),2&e&&(a.md(i=a.Xc())&&(t._inputElement=i.first),a.md(i=a.Xc())&&(t.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(a.Mc("id",t.id),a.qc("tabindex",null),a.tc("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[a.oc([$c]),a.mc],ngContentSelectors:Uc,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(a.fd(),a.Jc(0,"label",0,1),a.Jc(2,"div",2),a.Jc(3,"input",3,4),a.Wc("change",(function(e){return t._onInteractionEvent(e)}))("click",(function(e){return t._onInputClick(e)})),a.Ic(),a.Jc(5,"div",5),a.Ec(6,"div",6),a.Ic(),a.Ec(7,"div",7),a.Jc(8,"div",8),a.Zc(),a.Jc(9,"svg",9),a.Ec(10,"path",10),a.Ic(),a.Yc(),a.Ec(11,"div",11),a.Ic(),a.Ic(),a.Jc(12,"span",12,13),a.Wc("cdkObserveContent",(function(){return t._onLabelTextChange()})),a.Jc(14,"span",14),a.Bd(15,"\xa0"),a.Ic(),a.ed(16),a.Ic(),a.Ic()),2&e){var i=a.nd(1),n=a.nd(13);a.qc("for",t.inputId),a.pc(2),a.tc("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),a.pc(1),a.gd("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),a.qc("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked()),a.pc(2),a.gd("matRippleTrigger",i)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",a.id(18,Hc))}},directives:[Da,zi],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),Js),Zc={provide:Tr,useExisting:Object(a.hb)((function(){return Qc})),multi:!0},Qc=((Vs=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Xs)).\u0275fac=function(e){return el(e||Vs)},Vs.\u0275dir=a.yc({type:Vs,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[a.oc([Zc]),a.mc]}),Vs),el=a.Lc(Qc),tl=((Us=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Us}),Us.\u0275inj=a.Ac({factory:function(e){return new(e||Us)}}),Us),il=((Hs=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Hs}),Hs.\u0275inj=a.Ac({factory:function(e){return new(e||Hs)},imports:[[Ea,Bn,Bi,tl],Bn,tl]}),Hs);function nl(e){return new si.a((function(t){var i;try{i=e()}catch(n){return void t.error(n)}return(i?Object(sr.a)(i):li()).subscribe(t)}))}var al=i("VRyK");function rl(e,t,i,n){return Object(Ut.a)(i)&&(n=i,i=void 0),n?rl(e,t,i).pipe(Object(ri.a)((function(e){return Object(rr.a)(e)?n.apply(void 0,_toConsumableArray(e)):n(e)}))):new si.a((function(n){!function e(t,i,n,a,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var s=t;t.addEventListener(i,n,r),o=function(){return s.removeEventListener(i,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var c=t;t.on(i,n),o=function(){return c.off(i,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var l=t;t.addListener(i,n),o=function(){return l.removeListener(i,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,d=t.length;u1?Array.prototype.slice.call(arguments):e)}),n,i)}))}var ol=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e,n)).scheduler=e,a.work=n,a}return _createClass(i,[{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return _get(_getPrototypeOf(i.prototype),"recycleAsyncId",this).call(this,e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),i}($t),sl=new(function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,i=this.actions,n=-1,a=i.length;e=e||i.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=hl(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&n>0||null===n&&this.delay>0)return _get(_getPrototypeOf(i.prototype),"recycleAsyncId",this).call(this,e,t,n);0===e.actions.length&&(pl(t),e.scheduled=void 0)}}]),i}($t),ml=new(function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,i=this.actions,n=-1,a=i.length;e=e||i.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n=0}function xl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=-1;return Cl(t)?n=Number(t)<1?1:Number(t):Object(Ft.a)(t)&&(i=t),Object(Ft.a)(i)||(i=Yt),new si.a((function(t){var a=Cl(e)?e:+e-i.now();return i.schedule(Sl,a,{index:0,period:n,subscriber:t})}))}function Sl(e){var t=e.index,i=e.period,n=e.subscriber;if(n.next(t),!n.closed){if(-1===i)return n.complete();e.index=t+1,this.schedule(e,i)}}function Il(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt;return t=function(){return xl(e,i)},function(e){return e.lift(new kl(t))}}function Ol(e){return function(t){return t.lift(new Dl(e))}}var Dl=function(){function e(t){_classCallCheck(this,e),this.notifier=t}return _createClass(e,[{key:"call",value:function(e,t){var i=new El(e),n=Object(yl.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),t.subscribe(i)):i}}]),e}(),El=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this,e)).seenValue=!1,n}return _createClass(i,[{key:"notifyNext",value:function(e,t,i,n,a){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),i}(_l.a),Al=i("51Dv");function Tl(e,t){return"function"==typeof t?function(i){return i.pipe(Tl((function(i,n){return Object(sr.a)(e(i,n)).pipe(Object(ri.a)((function(e,a){return t(i,e,n,a)})))})))}:function(t){return t.lift(new Pl(e))}}var Pl=function(){function e(t){_classCallCheck(this,e),this.project=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Rl(e,this.project))}}]),e}(),Rl=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).project=n,a.index=0,a}return _createClass(i,[{key:"_next",value:function(e){var t,i=this.index++;try{t=this.project(e,i)}catch(n){return void this.destination.error(n)}this._innerSub(t,e,i)}},{key:"_innerSub",value:function(e,t,i){var n=this.innerSubscription;n&&n.unsubscribe();var a=new Al.a(this,t,i),r=this.destination;r.add(a),this.innerSubscription=Object(yl.a)(this,e,void 0,void 0,a),this.innerSubscription!==a&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||_get(_getPrototypeOf(i.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(i.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,i,n,a){this.destination.next(t)}}]),i}(_l.a),Ml=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e,n)).scheduler=e,a.work=n,a}return _createClass(i,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(i.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(i.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0||null===n&&this.delay>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,e,t,n):e.flush(this)}}]),i}($t),Ll=new(function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Xt))(Ml);function jl(e,t){return new si.a(t?function(i){return t.schedule(Fl,0,{error:e,subscriber:i})}:function(t){return t.error(e)})}function Fl(e){var t=e.error;e.subscriber.error(t)}var Nl,zl,Bl,Jl,Vl,Hl=((Nl=function(){function e(t,i,n){_classCallCheck(this,e),this.kind=t,this.value=i,this.error=n,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}},{key:"accept",value:function(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Bt(this.value);case"E":return jl(this.error);case"C":return li()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new Nl("C"),Nl.undefinedValueNotification=new Nl("N",void 0),Nl),Ul=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,i),(a=t.call(this,e)).scheduler=n,a.delay=r,a}return _createClass(i,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(i.dispatch,this.delay,new Gl(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(Hl.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(Hl.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Hl.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,i=e.destination;t.observe(i),this.unsubscribe()}}]),i}(Vt.a),Gl=function e(t,i){_classCallCheck(this,e),this.notification=t,this.destination=i},Wl=i("9ppp"),ql=i("Ylt2"),$l=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,r=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,i),(e=t.call(this)).scheduler=r,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=n<1?1:n,e._windowTime=a<1?1:a,a===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _createClass(i,[{key:"nextInfiniteTimeWindow",value:function(e){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new Kl(this._getNow(),e)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,i=this._infiniteTimeWindow,n=i?this._events:this._trimBufferThenGetEvents(),a=this.scheduler,r=n.length;if(this.closed)throw new Wl.a;if(this.isStopped||this.hasError?t=jt.a.EMPTY:(this.observers.push(e),t=new ql.a(this,e)),a&&e.add(e=new Ul(e,a)),i)for(var o=0;ot&&(r=Math.max(r,a-t)),r>0&&n.splice(0,r),n}}]),i}(Lt.a),Kl=function e(t,i){_classCallCheck(this,e),this.time=t,this.value=i},Xl=((Vl=function(){function e(t,i,n){_classCallCheck(this,e),this._ngZone=t,this._platform=i,this._scrolled=new Lt.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}return _createClass(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe((function(){return t._scrolled.next(e)})))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new si.a((function(i){e._globalSubscription||e._addGlobalListener();var n=t>0?e._scrolled.pipe(Il(t)).subscribe(i):e._scrolled.subscribe(i);return e._scrolledCount++,function(){n.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):Bt()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(t,i){return e.deregister(i)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var i=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(ii((function(e){return!e||i.indexOf(e)>-1})))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,i=[];return this.scrollContainers.forEach((function(n,a){t._scrollableContainsElement(a,e)&&i.push(a)})),i}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var i=t.nativeElement,n=e.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return rl(e._getWindow().document,"scroll").subscribe((function(){return e._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||Vl)(a.Sc(a.I),a.Sc(Ii),a.Sc(yt.e,8))},Vl.\u0275prov=Object(a.zc)({factory:function(){return new Vl(Object(a.Sc)(a.I),Object(a.Sc)(Ii),Object(a.Sc)(yt.e,8))},token:Vl,providedIn:"root"}),Vl),Yl=((Jl=function(){function e(t,i,n,a){var r=this;_classCallCheck(this,e),this.elementRef=t,this.scrollDispatcher=i,this.ngZone=n,this.dir=a,this._destroyed=new Lt.a,this._elementScrolled=new si.a((function(e){return r.ngZone.runOutsideAngular((function(){return rl(r.elementRef.nativeElement,"scroll").pipe(Ol(r._destroyed)).subscribe(e)}))}))}return _createClass(e,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(e){var t=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=i?e.end:e.start),null==e.right&&(e.right=i?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),i&&0!=Ti()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Ti()?e.left=e.right:1==Ti()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}},{key:"measureScrollOffset",value:function(e){var t=this.elementRef.nativeElement;if("top"==e)return t.scrollTop;if("bottom"==e)return t.scrollHeight-t.clientHeight-t.scrollTop;var i=this.dir&&"rtl"==this.dir.value;return"start"==e?e=i?"right":"left":"end"==e&&(e=i?"left":"right"),i&&2==Ti()?"left"==e?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft:i&&1==Ti()?"left"==e?t.scrollLeft+t.scrollWidth-t.clientWidth:-t.scrollLeft:"left"==e?t.scrollLeft:t.scrollWidth-t.clientWidth-t.scrollLeft}}]),e}()).\u0275fac=function(e){return new(e||Jl)(a.Dc(a.r),a.Dc(Xl),a.Dc(a.I),a.Dc(Cn,8))},Jl.\u0275dir=a.yc({type:Jl,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Jl),Zl=((Bl=function(){function e(t,i,n){var a=this;_classCallCheck(this,e),this._platform=t,this._document=n,i.runOutsideAngular((function(){var e=a._getWindow();a._change=t.isBrowser?Object(al.a)(rl(e,"resize"),rl(e,"orientationchange")):Bt(),a._invalidateCache=a.change().subscribe((function(){return a._updateViewportSize()}))}))}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),i=t.width,n=t.height;return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+i,height:n,width:i}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._getDocument(),t=this._getWindow(),i=e.documentElement,n=i.getBoundingClientRect();return{top:-n.top||e.body.scrollTop||t.scrollY||i.scrollTop||0,left:-n.left||e.body.scrollLeft||t.scrollX||i.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(Il(e)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||Bl)(a.Sc(Ii),a.Sc(a.I),a.Sc(yt.e,8))},Bl.\u0275prov=Object(a.zc)({factory:function(){return new Bl(Object(a.Sc)(Ii),Object(a.Sc)(a.I),Object(a.Sc)(yt.e,8))},token:Bl,providedIn:"root"}),Bl),Ql=((zl=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:zl}),zl.\u0275inj=a.Ac({factory:function(e){return new(e||zl)},imports:[[Sn,Oi],Sn]}),zl);function eu(){throw Error("Host already has a portal attached")}var tu,iu,nu,au,ru=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&eu(),this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),e}(),ou=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this)).component=e,o.viewContainerRef=n,o.injector=a,o.componentFactoryResolver=r,o}return i}(ru),su=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this)).templateRef=e,r.viewContainerRef=n,r.context=a,r}return _createClass(i,[{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(i.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(i.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),i}(ru),cu=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this)).element=e instanceof a.r?e.nativeElement:e,n}return i}(ru),lu=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&eu(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof ou?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof su?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof cu?(this._attachedPortal=e,this.attachDomPortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),uu=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o){var s;return _classCallCheck(this,i),(s=t.call(this)).outletElement=e,s._componentFactoryResolver=n,s._appRef=a,s._defaultInjector=r,s.attachDomPortal=function(e){if(!s._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var t=e.element;if(!t.parentNode)throw Error("DOM portal content must be attached to a parent node.");var n=s._document.createComment("dom-portal");t.parentNode.insertBefore(n,t),s.outletElement.appendChild(t),_get(_getPrototypeOf(i.prototype),"setDisposeFn",_assertThisInitialized(s)).call(_assertThisInitialized(s),(function(){n.parentNode&&n.parentNode.replaceChild(t,n)}))},s._document=o,s}return _createClass(i,[{key:"attachComponentPortal",value:function(e){var t,i=this,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn((function(){return t.destroy()}))):(t=n.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn((function(){i._appRef.detachView(t.hostView),t.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,i=e.viewContainerRef,n=i.createEmbeddedView(e.templateRef,e.context);return n.detectChanges(),n.rootNodes.forEach((function(e){return t.outletElement.appendChild(e)})),this.setDisposeFn((function(){var e=i.indexOf(n);-1!==e&&i.remove(e)})),n}},{key:"dispose",value:function(){_get(_getPrototypeOf(i.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),i}(lu),du=((nu=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){return _classCallCheck(this,i),t.call(this,e,n)}return i}(su)).\u0275fac=function(e){return new(e||nu)(a.Dc(a.Y),a.Dc(a.cb))},nu.\u0275dir=a.yc({type:nu,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[a.mc]}),nu),hu=((iu=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r){var o;return _classCallCheck(this,i),(o=t.call(this))._componentFactoryResolver=e,o._viewContainerRef=n,o._isInitialized=!1,o.attached=new a.u,o.attachDomPortal=function(e){if(!o._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var t=e.element;if(!t.parentNode)throw Error("DOM portal content must be attached to a parent node.");var n=o._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized(o)),t.parentNode.insertBefore(n,t),o._getRootNode().appendChild(t),_get(_getPrototypeOf(i.prototype),"setDisposeFn",_assertThisInitialized(o)).call(_assertThisInitialized(o),(function(){n.parentNode&&n.parentNode.replaceChild(t,n)}))},o._document=r,o}return _createClass(i,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=t.createComponent(n,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),_get(_getPrototypeOf(i.prototype),"setDisposeFn",this).call(this,(function(){return a.destroy()})),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(i.prototype),"setDisposeFn",this).call(this,(function(){return t._viewContainerRef.clear()})),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(i.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(i.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),i}(lu)).\u0275fac=function(e){return new(e||iu)(a.Dc(a.n),a.Dc(a.cb),a.Dc(yt.e))},iu.\u0275dir=a.yc({type:iu,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.mc]}),iu),pu=((tu=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(hu)).\u0275fac=function(e){return fu(e||tu)},tu.\u0275dir=a.yc({type:tu,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[a.oc([{provide:hu,useExisting:tu}]),a.mc]}),tu),fu=a.Lc(pu),mu=((au=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:au}),au.\u0275inj=a.Ac({factory:function(e){return new(e||au)}}),au),gu=function(){function e(t,i){_classCallCheck(this,e),this._parentInjector=t,this._customTokens=i}return _createClass(e,[{key:"get",value:function(e,t){var i=this._customTokens.get(e);return void 0!==i?i:this._parentInjector.get(e,t)}}]),e}(),vu=function(){function e(t,i){_classCallCheck(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}return _createClass(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=bi(-this._previousScrollPosition.left),e.style.top=bi(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,i=this._document.body.style,n=t.scrollBehavior||"",a=i.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=n,i.scrollBehavior=a}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}();function bu(){return Error("Scroll strategy has already been attached.")}var _u=function(){function e(t,i,n,a){var r=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=i,this._viewportRuler=n,this._config=a,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run((function(){return r._overlayRef.detach()}))}}return _createClass(e,[{key:"attach",value:function(e){if(this._overlayRef)throw bu();this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe((function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()}))):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),yu=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function ku(e,t){return t.some((function(t){return e.bottomt.bottom||e.rightt.right}))}function wu(e,t){return t.some((function(t){return e.topt.bottom||e.leftt.right}))}var Cu,xu=function(){function e(t,i,n,a){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=n,this._config=a,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){if(this._overlayRef)throw bu();this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),i=e._viewportRuler.getViewportSize(),n=i.width,a=i.height;ku(t,[{width:n,height:a,bottom:a,right:n,top:0,left:0}])&&(e.disable(),e._ngZone.run((function(){return e._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),Su=((Cu=function e(t,i,n,a){var r=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=n,this.noop=function(){return new yu},this.close=function(e){return new _u(r._scrollDispatcher,r._ngZone,r._viewportRuler,e)},this.block=function(){return new vu(r._viewportRuler,r._document)},this.reposition=function(e){return new xu(r._scrollDispatcher,r._viewportRuler,r._ngZone,e)},this._document=a}).\u0275fac=function(e){return new(e||Cu)(a.Sc(Xl),a.Sc(Zl),a.Sc(a.I),a.Sc(yt.e))},Cu.\u0275prov=Object(a.zc)({factory:function(){return new Cu(Object(a.Sc)(Xl),Object(a.Sc)(Zl),Object(a.Sc)(a.I),Object(a.Sc)(yt.e))},token:Cu,providedIn:"root"}),Cu),Iu=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new yu,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var i=0,n=Object.keys(t);i-1;n--)if(t[n]._keydownEventSubscriptions>0){t[n]._keydownEvents.next(e);break}},this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(e){this.remove(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),e}()).\u0275fac=function(e){return new(e||Tu)(a.Sc(yt.e))},Tu.\u0275prov=Object(a.zc)({factory:function(){return new Tu(Object(a.Sc)(yt.e))},token:Tu,providedIn:"root"}),Tu),Mu=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),Lu=((Pu=function(){function e(t,i){_classCallCheck(this,e),this._platform=i,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(e||Mu)for(var t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),i=0;ip&&(p=g,h=m)}}catch(v){f.e(v)}finally{f.f()}return this._isPushed=!1,void this._applyPosition(h.position,h.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&zu(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var i;if("center"==t.originX)i=e.left+e.width/2;else{var n=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;i="start"==t.originX?n:a}return{x:i,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,i){var n,a;return n="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,a="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+n,y:e.y+a}}},{key:"_getOverlayFit",value:function(e,t,i,n){var a=e.x,r=e.y,o=this._getOffset(n,"x"),s=this._getOffset(n,"y");o&&(a+=o),s&&(r+=s);var c=0-r,l=r+t.height-i.height,u=this._subtractOverflows(t.width,0-a,a+t.width-i.width),d=this._subtractOverflows(t.height,c,l),h=u*d;return{visibleArea:h,isCompletelyWithinViewport:t.width*t.height===h,fitsInViewportVertically:d===t.height,fitsInViewportHorizontally:u==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,i){if(this._hasFlexibleDimensions){var n=i.bottom-t.y,a=i.right-t.x,r=Bu(this._overlayRef.getConfig().minHeight),o=Bu(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=o&&o<=a;return(e.fitsInViewportVertically||null!=r&&r<=n)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var n,a,r=this._viewportRect,o=Math.max(e.x+t.width-r.right,0),s=Math.max(e.y+t.height-r.bottom,0),c=Math.max(r.top-i.top-e.y,0),l=Math.max(r.left-i.left-e.x,0);return n=t.width<=r.width?l||-o:e.xd&&!this._isInitialRender&&!this._growAfterOpen&&(n=e.y-d/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)s=c.width-e.x+this._viewportMargin,r=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)o=e.x,r=c.right-e.x;else{var h=Math.min(c.right-e.x+c.left,e.x),p=this._lastBoundingBoxSize.width;r=2*h,o=e.x-h,r>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.x-p/2)}return{top:n,left:o,bottom:a,right:s,width:r,height:i}}},{key:"_setBoundingBoxStyles",value:function(e,t){var i=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));var n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{var a=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.height=bi(i.height),n.top=bi(i.top),n.bottom=bi(i.bottom),n.width=bi(i.width),n.left=bi(i.left),n.right=bi(i.right),n.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",n.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",a&&(n.maxHeight=bi(a)),r&&(n.maxWidth=bi(r))}this._lastBoundingBoxSize=i,zu(this._boundingBox.style,n)}},{key:"_resetBoundingBoxStyles",value:function(){zu(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){zu(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var i={},n=this._hasExactPosition(),a=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){var o=this._viewportRuler.getViewportScrollPosition();zu(i,this._getExactOverlayY(t,e,o)),zu(i,this._getExactOverlayX(t,e,o))}else i.position="static";var s="",c=this._getOffset(t,"x"),l=this._getOffset(t,"y");c&&(s+="translateX(".concat(c,"px) ")),l&&(s+="translateY(".concat(l,"px)")),i.transform=s.trim(),r.maxHeight&&(n?i.maxHeight=bi(r.maxHeight):a&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=bi(r.maxWidth):a&&(i.maxWidth="")),zu(this._pane.style,i)}},{key:"_getExactOverlayY",value:function(e,t,i){var n={top:"",bottom:""},a=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i));var r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return a.y-=r,"bottom"===e.overlayY?n.bottom="".concat(this._document.documentElement.clientHeight-(a.y+this._overlayRect.height),"px"):n.top=bi(a.y),n}},{key:"_getExactOverlayX",value:function(e,t,i){var n={left:"",right:""},a=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?n.right="".concat(this._document.documentElement.clientWidth-(a.x+this._overlayRect.width),"px"):n.left=bi(a.x),n}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map((function(e){return e.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:wu(e,i),isOriginOutsideView:ku(e,i),isOverlayClipped:wu(t,i),isOverlayOutsideView:ku(t,i)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),n=i.width,a=i.height,r=i.maxWidth,o=i.maxHeight,s=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),c=!("100%"!==a&&"100vh"!==a||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),$u=((Vu=function(){function e(t,i,n,a){_classCallCheck(this,e),this._viewportRuler=t,this._document=i,this._platform=n,this._overlayContainer=a}return _createClass(e,[{key:"global",value:function(){return new qu}},{key:"connectedTo",value:function(e,t,i){return new Wu(t,i,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new Nu(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||Vu)(a.Sc(Zl),a.Sc(yt.e),a.Sc(Ii),a.Sc(Lu))},Vu.\u0275prov=Object(a.zc)({factory:function(){return new Vu(Object(a.Sc)(Zl),Object(a.Sc)(yt.e),Object(a.Sc)(Ii),Object(a.Sc)(Lu))},token:Vu,providedIn:"root"}),Vu),Ku=0,Xu=((Ju=function(){function e(t,i,n,a,r,o,s,c,l,u){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=n,this._positionBuilder=a,this._keyboardDispatcher=r,this._injector=o,this._ngZone=s,this._document=c,this._directionality=l,this._location=u}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),i=this._createPaneElement(t),n=this._createPortalOutlet(i),a=new Iu(e);return a.direction=a.direction||this._directionality.value,new ju(n,t,i,a,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-".concat(Ku++),t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(a.g)),new uu(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||Ju)(a.Sc(Su),a.Sc(Lu),a.Sc(a.n),a.Sc($u),a.Sc(Ru),a.Sc(a.y),a.Sc(a.I),a.Sc(yt.e),a.Sc(Cn),a.Sc(yt.n,8))},Ju.\u0275prov=a.zc({token:Ju,factory:Ju.\u0275fac}),Ju),Yu=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Zu=new a.x("cdk-connected-overlay-scroll-strategy"),Qu=((Uu=function e(t){_classCallCheck(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||Uu)(a.Dc(a.r))},Uu.\u0275dir=a.yc({type:Uu,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Uu),ed=((Hu=function(){function e(t,i,n,r,o){_classCallCheck(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=jt.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new a.u,this.positionChange=new a.u,this.attach=new a.u,this.detach=new a.u,this.overlayKeydown=new a.u,this._templatePortal=new su(i,n),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=Yu),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(t){e.overlayKeydown.next(t),27!==t.keyCode||Jt(t)||(t.preventDefault(),e._detachOverlay())}))}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Iu({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,i=this.positions.map((function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}}));return e.setOrigin(this.origin.elementRef).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this,t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe((function(t){return e.positionChange.emit(t)})),t}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((function(t){e.backdropClick.emit(t)})):this._backdropSubscription.unsubscribe()}},{key:"_detachOverlay",value:function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=fi(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=fi(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=fi(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=fi(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=fi(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),e}()).\u0275fac=function(e){return new(e||Hu)(a.Dc(Xu),a.Dc(a.Y),a.Dc(a.cb),a.Dc(Zu),a.Dc(Cn,8))},Hu.\u0275dir=a.yc({type:Hu,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[a.nc]}),Hu),td={provide:Zu,deps:[Xu],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},id=((Gu=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Gu}),Gu.\u0275inj=a.Ac({factory:function(e){return new(e||Gu)},providers:[Xu,td],imports:[[Sn,mu,Ql],Ql]}),Gu),nd=["underline"],ad=["connectionContainer"],rd=["inputContainer"],od=["label"];function sd(e,t){1&e&&(a.Hc(0),a.Jc(1,"div",14),a.Ec(2,"div",15),a.Ec(3,"div",16),a.Ec(4,"div",17),a.Ic(),a.Jc(5,"div",18),a.Ec(6,"div",15),a.Ec(7,"div",16),a.Ec(8,"div",17),a.Ic(),a.Gc())}function cd(e,t){1&e&&(a.Jc(0,"div",19),a.ed(1,1),a.Ic())}function ld(e,t){if(1&e&&(a.Hc(0),a.ed(1,2),a.Jc(2,"span"),a.Bd(3),a.Ic(),a.Gc()),2&e){var i=a.ad(2);a.pc(3),a.Cd(i._control.placeholder)}}function ud(e,t){1&e&&a.ed(0,3,["*ngSwitchCase","true"])}function dd(e,t){1&e&&(a.Jc(0,"span",23),a.Bd(1," *"),a.Ic())}function hd(e,t){if(1&e){var i=a.Kc();a.Jc(0,"label",20,21),a.Wc("cdkObserveContent",(function(){return a.rd(i),a.ad().updateOutlineGap()})),a.zd(2,ld,4,1,"ng-container",12),a.zd(3,ud,1,0,void 0,12),a.zd(4,dd,2,0,"span",22),a.Ic()}if(2&e){var n=a.ad();a.tc("mat-empty",n._control.empty&&!n._shouldAlwaysFloat)("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat)("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),a.gd("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),a.qc("for",n._control.id)("aria-owns",n._control.id),a.pc(2),a.gd("ngSwitchCase",!1),a.pc(1),a.gd("ngSwitchCase",!0),a.pc(1),a.gd("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function pd(e,t){1&e&&(a.Jc(0,"div",24),a.ed(1,4),a.Ic())}function fd(e,t){if(1&e&&(a.Jc(0,"div",25,26),a.Ec(2,"span",27),a.Ic()),2&e){var i=a.ad();a.pc(2),a.tc("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function md(e,t){if(1&e&&(a.Jc(0,"div"),a.ed(1,5),a.Ic()),2&e){var i=a.ad();a.gd("@transitionMessages",i._subscriptAnimationState)}}function gd(e,t){if(1&e&&(a.Jc(0,"div",31),a.Bd(1),a.Ic()),2&e){var i=a.ad(2);a.gd("id",i._hintLabelId),a.pc(1),a.Cd(i.hintLabel)}}function vd(e,t){if(1&e&&(a.Jc(0,"div",28),a.zd(1,gd,2,2,"div",29),a.ed(2,6),a.Ec(3,"div",30),a.ed(4,7),a.Ic()),2&e){var i=a.ad();a.gd("@transitionMessages",i._subscriptAnimationState),a.pc(1),a.gd("ngIf",i.hintLabel)}}var bd,_d,yd=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],kd=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],wd=0,Cd=((bd=function e(){_classCallCheck(this,e),this.id="mat-error-".concat(wd++)}).\u0275fac=function(e){return new(e||bd)},bd.\u0275dir=a.yc({type:bd,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("id",t.id)},inputs:{id:"id"}}),bd),xd={transitionMessages:o("transitionMessages",[d("enter",u({opacity:1,transform:"translateY(0%)"})),p("void => enter",[u({opacity:0,transform:"translateY(-100%)"}),s("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Sd=((_d=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||_d)},_d.\u0275dir=a.yc({type:_d}),_d);function Id(e){return Error("A hint was already declared for 'align=\"".concat(e,"\"'."))}var Od,Dd,Ed,Ad,Td,Pd,Rd,Md=0,Ld=((Td=function e(){_classCallCheck(this,e),this.align="start",this.id="mat-hint-".concat(Md++)}).\u0275fac=function(e){return new(e||Td)},Td.\u0275dir=a.yc({type:Td,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(a.qc("id",t.id)("align",null),a.tc("mat-right","end"==t.align))},inputs:{align:"align",id:"id"}}),Td),jd=((Ad=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ad)},Ad.\u0275dir=a.yc({type:Ad,selectors:[["mat-label"]]}),Ad),Fd=((Ed=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ed)},Ed.\u0275dir=a.yc({type:Ed,selectors:[["mat-placeholder"]]}),Ed),Nd=((Dd=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Dd)},Dd.\u0275dir=a.yc({type:Dd,selectors:[["","matPrefix",""]]}),Dd),zd=((Od=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Od)},Od.\u0275dir=a.yc({type:Od,selectors:[["","matSuffix",""]]}),Od),Bd=0,Jd=Vn((function e(t){_classCallCheck(this,e),this._elementRef=t}),"primary"),Vd=new a.x("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Hd=new a.x("MatFormField"),Ud=((Rd=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=t.call(this,e))._elementRef=e,u._changeDetectorRef=n,u._dir=r,u._defaults=o,u._platform=s,u._ngZone=c,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new Lt.a,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-".concat(Bd++),u._labelId="mat-form-field-label-".concat(Bd++),u._labelOptions=a||{},u.floatLabel=u._getDefaultFloatLabelState(),u._animationsEnabled="NoopAnimations"!==l,u.appearance=o&&o.appearance?o.appearance:"legacy",u._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,u}return _createClass(i,[{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(An(null)).subscribe((function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Ol(this._destroyed)).subscribe((function(){return e._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.asObservable().pipe(Ol(e._destroyed)).subscribe((function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()}))})),Object(al.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(An(null)).subscribe((function(){e._processHints(),e._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(An(null)).subscribe((function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(Ol(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e.updateOutlineGap()}))})):e.updateOutlineGap()}))}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!!this._labelChild}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,rl(this._label.nativeElement,"transitionend").pipe(ui(1)).subscribe((function(){e._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){var e,t,i=this;this._hintChildren&&this._hintChildren.forEach((function(n){if("start"===n.align){if(e||i.hintLabel)throw Id("start");e=n}else if("end"===n.align){if(t)throw Id("end");t=n}}))}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if("hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find((function(e){return"start"===e.align})):null,i=this._hintChildren?this._hintChildren.find((function(e){return"end"===e.align})):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),i&&e.push(i.id)}else this._errorChildren&&(e=this._errorChildren.map((function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,i=0,n=this._connectionContainerRef.nativeElement,a=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=n.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var s,c=this._getStartEnd(o),l=this._getStartEnd(e.children[0].getBoundingClientRect()),u=0,d=_createForOfIteratorHelper(e.children);try{for(d.s();!(s=d.n()).done;)u+=s.value.offsetWidth}catch(f){d.e(f)}finally{d.f()}t=Math.abs(l-c)-5,i=u>0?.75*u+10:0}for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:Yt,n=(t=e)instanceof Date&&!isNaN(+t)?+e-i.now():Math.abs(e);return function(e){return e.lift(new qd(n,i))}}var qd=function(){function e(t,i){_classCallCheck(this,e),this.delay=t,this.scheduler=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new $d(e,this.delay,this.scheduler))}}]),e}(),$d=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e)).delay=n,r.scheduler=a,r.queue=[],r.active=!1,r.errored=!1,r}return _createClass(i,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(i.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,i=new Kd(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Hl.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Hl.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,i=t.queue,n=e.scheduler,a=e.destination;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(a);if(i.length>0){var r=Math.max(0,i[0].time-n.now());this.schedule(e,r)}else this.unsubscribe(),t.active=!1}}]),i}(Vt.a),Kd=function e(t,i){_classCallCheck(this,e),this.time=t,this.notification=i},Xd=["panel"];function Yd(e,t){if(1&e&&(a.Jc(0,"div",0,1),a.ed(2),a.Ic()),2&e){var i=a.ad();a.gd("id",i.id)("ngClass",i._classList)}}var Zd,Qd,eh,th,ih=["*"],nh=0,ah=function e(t,i){_classCallCheck(this,e),this.source=t,this.option=i},rh=Hn((function e(){_classCallCheck(this,e)})),oh=new a.x("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),sh=((Qd=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r){var o;return _classCallCheck(this,i),(o=t.call(this))._changeDetectorRef=e,o._elementRef=n,o._activeOptionChanges=jt.a.EMPTY,o.showPanel=!1,o._isOpen=!1,o.displayWith=null,o.optionSelected=new a.u,o.opened=new a.u,o.closed=new a.u,o.optionActivated=new a.u,o._classList={},o.id="mat-autocomplete-".concat(nh++),o._autoActiveFirstOption=!!r.autoActiveFirstOption,o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new Ki(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe((function(t){e.optionActivated.emit({source:e,option:e.options.toArray()[t]||null})})),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(e){var t=new ah(this,e);this.optionSelected.emit(t)}},{key:"_setVisibilityClasses",value:function(e){e["mat-autocomplete-visible"]=this.showPanel,e["mat-autocomplete-hidden"]=!this.showPanel}},{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(e){this._autoActiveFirstOption=fi(e)}},{key:"classList",set:function(e){this._classList=e&&e.length?e.split(" ").reduce((function(e,t){return e[t.trim()]=!0,e}),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}}]),i}(rh)).\u0275fac=function(e){return new(e||Qd)(a.Dc(a.j),a.Dc(a.r),a.Dc(oh))},Qd.\u0275cmp=a.xc({type:Qd,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,za,!0),a.vc(i,Ma,!0)),2&e&&(a.md(n=a.Xc())&&(t.options=n),a.md(n=a.Xc())&&(t.optionGroups=n))},viewQuery:function(e,t){var i;1&e&&(a.xd(a.Y,!0),a.Fd(Xd,!0)),2&e&&(a.md(i=a.Xc())&&(t.template=i.first),a.md(i=a.Xc())&&(t.panel=i.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[a.oc([{provide:Na,useExisting:Qd}]),a.mc],ngContentSelectors:ih,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(a.fd(),a.zd(0,Yd,3,2,"ng-template"))},directives:[yt.q],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),Qd),ch=((Zd=function e(t){_classCallCheck(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||Zd)(a.Dc(a.r))},Zd.\u0275dir=a.yc({type:Zd,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),Zd),lh=new a.x("mat-autocomplete-scroll-strategy"),uh={provide:lh,deps:[Xu],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},dh={provide:fr,useExisting:Object(a.hb)((function(){return hh})),multi:!0},hh=((th=function(){function e(t,i,n,a,r,o,s,c,l,u){var d=this;_classCallCheck(this,e),this._element=t,this._overlay=i,this._viewContainerRef=n,this._zone=a,this._changeDetectorRef=r,this._dir=s,this._formField=c,this._document=l,this._viewportRuler=u,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=jt.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Lt.a,this._windowBlurHandler=function(){d._canOpenOnNextFocus=d._document.activeElement!==d._element.nativeElement||d.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=nl((function(){return d.autocomplete&&d.autocomplete.options?Object(al.a).apply(void 0,_toConsumableArray(d.autocomplete.options.map((function(e){return e.onSelectionChange})))):d._zone.onStable.asObservable().pipe(ui(1),Tl((function(){return d.optionSelections})))})),this._scrollStrategy=o}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this,t=this._getWindow();void 0!==t&&(this._zone.runOutsideAngular((function(){t.addEventListener("blur",e._windowBlurHandler)})),this._isInsideShadowRoot=!!Pi(this._element.nativeElement))}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"_getOutsideClickStream",value:function(){var e=this;return Object(al.a)(rl(this._document,"click"),rl(this._document,"touchend")).pipe(ii((function(t){var i=e._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,n=e._formField?e._formField._elementRef.nativeElement:null;return e._overlayAttached&&i!==e._element.nativeElement&&(!n||!n.contains(i))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(i)})))}},{key:"writeValue",value:function(e){var t=this;Promise.resolve(null).then((function(){return t._setTriggerValue(e)}))}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;if(27===t&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var i=this.autocomplete._keyManager.activeItem,n=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption()}}},{key:"_handleInput",value:function(e){var t=e.target,i=t.value;"number"===t.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_scrollToOption",value:function(){var e=this.autocomplete._keyManager.activeItemIndex||0,t=Ba(e,this.autocomplete.options,this.autocomplete.optionGroups);if(0===e&&1===t)this.autocomplete._setScrollTop(0);else{var i=Ja(e+t,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}},{key:"_subscribeToClosingActions",value:function(){var e=this,t=this._zone.onStable.asObservable().pipe(ui(1)),i=this.autocomplete.options.changes.pipe(Gt((function(){return e._positionStrategy.reapplyLastPosition()})),Wd(0));return Object(al.a)(t,i).pipe(Tl((function(){var t=e.panelOpen;return e._resetActiveItem(),e.autocomplete._setVisibility(),e.panelOpen&&(e._overlayRef.updatePosition(),t!==e.panelOpen&&e.autocomplete.opened.emit()),e.panelClosingActions})),ui(1)).subscribe((function(t){return e._setValueAndClose(t)}))}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(e){var t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,i=null!=t?t:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}},{key:"_setValueAndClose",value:function(e){e&&e.source&&(this._clearPreviousSelectedOption(e.source),this._setTriggerValue(e.source.value),this._onChange(e.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(e.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach((function(t){t!=e&&t.selected&&t.deselect()}))}},{key:"_attachOverlay",value:function(){var e=this;if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");var t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new su(this.autocomplete.template,this._viewContainerRef),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe((function(t){(27===t.keyCode||38===t.keyCode&&t.altKey)&&(e._resetActiveItem(),e._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())})),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe((function(){e.panelOpen&&t&&t.updateSize({width:e._getPanelWidth()})})))),t&&!t.hasAttached()&&(t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){return new Iu({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var t,i={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},n={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};t="above"===this.position?[n]:"below"===this.position?[i]:[i,n],e.withPositions(t)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=fi(e)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var e=this;return Object(al.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ii((function(){return e._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ii((function(){return e._overlayAttached}))):Bt()).pipe(Object(ri.a)((function(e){return e instanceof Fa?e:null})))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),e}()).\u0275fac=function(e){return new(e||th)(a.Dc(a.r),a.Dc(Xu),a.Dc(a.cb),a.Dc(a.I),a.Dc(a.j),a.Dc(lh),a.Dc(Cn,8),a.Dc(Hd,9),a.Dc(yt.e,8),a.Dc(Zl))},th.\u0275dir=a.yc({type:th,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&a.Wc("focusin",(function(){return t._handleFocus()}))("blur",(function(){return t._onTouched()}))("input",(function(e){return t._handleInput(e)}))("keydown",(function(e){return t._handleKeydown(e)})),2&e&&a.qc("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",!t.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[a.oc([dh]),a.nc]}),th),ph=((eh=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:eh}),eh.\u0275inj=a.Ac({factory:function(e){return new(e||eh)},providers:[uh],imports:[[Wa,id,Bn,yt.c],Wa,Bn]}),eh);function fh(e,t){}var mh=function e(){_classCallCheck(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},gh={dialogContainer:o("dialogContainer",[d("void, exit",u({opacity:0,transform:"scale(0.7)"})),d("enter",u({transform:"none"})),p("* => enter",s("150ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"none",opacity:1}))),p("* => void, * => exit",s("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",u({opacity:0})))])};function vh(){throw Error("Attempting to attach dialog content after content is already attached")}var bh,_h,yh,kh,wh,Ch,xh=((bh=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s){var c;return _classCallCheck(this,i),(c=t.call(this))._elementRef=e,c._focusTrapFactory=n,c._changeDetectorRef=r,c._config=s,c._elementFocusedBeforeDialogWasOpened=null,c._state="enter",c._animationStateChanged=new a.u,c.attachDomPortal=function(e){return c._portalOutlet.hasAttached()&&vh(),c._savePreviouslyFocusedElement(),c._portalOutlet.attachDomPortal(e)},c._ariaLabelledBy=s.ariaLabelledBy||null,c._document=o,c}return _createClass(i,[{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached()&&vh(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached()&&vh(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_trapFocus",value:function(){var e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var t=this._document.activeElement;t===e||e.contains(t)||e.focus()}}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,i=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==i&&!i.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var e=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return e._elementRef.nativeElement.focus()})))}},{key:"_onAnimationDone",value:function(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)}},{key:"_onAnimationStart",value:function(e){this._animationStateChanged.emit(e)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),i}(lu)).\u0275fac=function(e){return new(e||bh)(a.Dc(a.r),a.Dc(nn),a.Dc(a.j),a.Dc(yt.e,8),a.Dc(mh))},bh.\u0275cmp=a.xc({type:bh,selectors:[["mat-dialog-container"]],viewQuery:function(e,t){var i;1&e&&a.xd(hu,!0),2&e&&a.md(i=a.Xc())&&(t._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&a.uc("@dialogContainer.start",(function(e){return t._onAnimationStart(e)}))("@dialogContainer.done",(function(e){return t._onAnimationDone(e)})),2&e&&(a.qc("id",t._id)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),a.Ed("@dialogContainer",t._state))},features:[a.mc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&a.zd(0,fh,0,0,"ng-template",0)},directives:[hu],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[gh.dialogContainer]}}),bh),Sh=0,Ih=function(){function e(t,i){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(Sh++);_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=i,this.id=a,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Lt.a,this._afterClosed=new Lt.a,this._beforeClosed=new Lt.a,this._state=0,i._id=a,i._animationStateChanged.pipe(ii((function(e){return"done"===e.phaseName&&"enter"===e.toState})),ui(1)).subscribe((function(){n._afterOpened.next(),n._afterOpened.complete()})),i._animationStateChanged.pipe(ii((function(e){return"done"===e.phaseName&&"exit"===e.toState})),ui(1)).subscribe((function(){clearTimeout(n._closeFallbackTimeout),n._overlayRef.dispose()})),t.detachments().subscribe((function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()})),t.keydownEvents().pipe(ii((function(e){return 27===e.keyCode&&!n.disableClose&&!Jt(e)}))).subscribe((function(e){e.preventDefault(),n.close()}))}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(ii((function(e){return"start"===e.phaseName})),ui(1)).subscribe((function(i){t._beforeClosed.next(e),t._beforeClosed.complete(),t._state=2,t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout((function(){t._overlayRef.dispose()}),i.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}(),Oh=new a.x("MatDialogData"),Dh=new a.x("mat-dialog-default-options"),Eh=new a.x("mat-dialog-scroll-strategy"),Ah={provide:Eh,deps:[Xu],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},Th=((Ch=function(){function e(t,i,n,a,r,o,s){var c=this;_classCallCheck(this,e),this._overlay=t,this._injector=i,this._defaultOptions=a,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Lt.a,this._afterOpenedAtThisLevel=new Lt.a,this._ariaHiddenElements=new Map,this.afterAllClosed=nl((function(){return c.openDialogs.length?c._afterAllClosed:c._afterAllClosed.pipe(An(void 0))})),this._scrollStrategy=r}return _createClass(e,[{key:"open",value:function(e,t){var i=this;if((t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new mh)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'.concat(t.id,'" exists already. The dialog id must be unique.'));var n=this._createOverlay(t),a=this._attachDialogContainer(n,t),r=this._attachDialogContent(e,a,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe((function(){return i._removeOpenDialog(r)})),this.afterOpened.next(r),r}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find((function(t){return t.id===e}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new Iu({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var i=a.y.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:mh,useValue:t}]}),n=new ou(xh,t.viewContainerRef,i,t.componentFactoryResolver);return e.attach(n).instance}},{key:"_attachDialogContent",value:function(e,t,i,n){var r=new Ih(i,t,n.id);if(n.hasBackdrop&&i.backdropClick().subscribe((function(){r.disableClose||r.close()})),e instanceof a.Y)t.attachTemplatePortal(new su(e,null,{$implicit:n.data,dialogRef:r}));else{var o=this._createInjector(n,r,t),s=t.attachComponentPortal(new ou(e,n.viewContainerRef,o));r.componentInstance=s.instance}return r.updateSize(n.width,n.height).updatePosition(n.position),r}},{key:"_createInjector",value:function(e,t,i){var n=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:xh,useValue:i},{provide:Oh,useValue:e.data},{provide:Ih,useValue:t}];return!e.direction||n&&n.get(Cn,null)||r.push({provide:Cn,useValue:{value:e.direction,change:Bt()}}),a.y.create({parent:n||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,i=t.length-1;i>-1;i--){var n=t[i];n===e||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_afterAllClosed",get:function(){var e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel}}]),e}()).\u0275fac=function(e){return new(e||Ch)(a.Sc(Xu),a.Sc(a.y),a.Sc(yt.n,8),a.Sc(Dh,8),a.Sc(Eh),a.Sc(Ch,12),a.Sc(Lu))},Ch.\u0275prov=a.zc({token:Ch,factory:Ch.\u0275fac}),Ch),Ph=0,Rh=((wh=function(){function e(t,i,n){_classCallCheck(this,e),this.dialogRef=t,this._elementRef=i,this._dialog=n,this.type="button"}return _createClass(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=Fh(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}}]),e}()).\u0275fac=function(e){return new(e||wh)(a.Dc(Ih,8),a.Dc(a.r),a.Dc(Th))},wh.\u0275dir=a.yc({type:wh,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.dialogRef.close(t.dialogResult)})),2&e&&a.qc("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[a.nc]}),wh),Mh=((kh=function(){function e(t,i,n){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=i,this._dialog=n,this.id="mat-dialog-title-".concat(Ph++)}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=Fh(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)}))}}]),e}()).\u0275fac=function(e){return new(e||kh)(a.Dc(Ih,8),a.Dc(a.r),a.Dc(Th))},kh.\u0275dir=a.yc({type:kh,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&a.Mc("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),kh),Lh=((yh=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||yh)},yh.\u0275dir=a.yc({type:yh,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),yh),jh=((_h=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||_h)},_h.\u0275dir=a.yc({type:_h,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),_h);function Fh(e,t){for(var i=e.nativeElement.parentElement;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?t.find((function(e){return e.id===i.id})):null}var Nh,zh,Bh,Jh,Vh=((Jh=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Jh}),Jh.\u0275inj=a.Ac({factory:function(e){return new(e||Jh)},providers:[Th,Ah],imports:[[id,mu,Bn],Bn]}),Jh),Hh=0,Uh=((Bh=function(){function e(){_classCallCheck(this,e),this._stateChanges=new Lt.a,this._openCloseAllActions=new Lt.a,this.id="cdk-accordion-".concat(Hh++),this._multi=!1}return _createClass(e,[{key:"openAll",value:function(){this._openCloseAll(!0)}},{key:"closeAll",value:function(){this._openCloseAll(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_openCloseAll",value:function(e){this.multi&&this._openCloseAllActions.next(e)}},{key:"multi",get:function(){return this._multi},set:function(e){this._multi=fi(e)}}]),e}()).\u0275fac=function(e){return new(e||Bh)},Bh.\u0275dir=a.yc({type:Bh,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a.nc]}),Bh),Gh=0,Wh=((zh=function(){function e(t,i,n){var r=this;_classCallCheck(this,e),this.accordion=t,this._changeDetectorRef=i,this._expansionDispatcher=n,this._openCloseAllSubscription=jt.a.EMPTY,this.closed=new a.u,this.opened=new a.u,this.destroyed=new a.u,this.expandedChange=new a.u,this.id="cdk-accordion-child-".concat(Gh++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen((function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe((function(t){e.disabled||(e.expanded=t)}))}},{key:"expanded",get:function(){return this._expanded},set:function(e){e=fi(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e)}}]),e}()).\u0275fac=function(e){return new(e||zh)(a.Dc(Uh,12),a.Dc(a.j),a.Dc(ar))},zh.\u0275dir=a.yc({type:zh,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a.oc([{provide:Uh,useValue:void 0}])]}),zh),qh=((Nh=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Nh}),Nh.\u0275inj=a.Ac({factory:function(e){return new(e||Nh)}}),Nh),$h=["body"];function Kh(e,t){}var Xh=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Yh=["mat-expansion-panel-header","*","mat-action-row"],Zh=function(e,t){return{collapsedHeight:e,expandedHeight:t}},Qh=function(e,t){return{value:e,params:t}};function ep(e,t){if(1&e&&a.Ec(0,"span",2),2&e){var i=a.ad();a.gd("@indicatorRotate",i._getExpandedState())}}var tp,ip,np,ap,rp,op,sp,cp,lp,up,dp,hp,pp,fp=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],mp=["mat-panel-title","mat-panel-description","*"],gp=new a.x("MAT_ACCORDION"),vp={indicatorRotate:o("indicatorRotate",[d("collapsed, void",u({transform:"rotate(0deg)"})),d("expanded",u({transform:"rotate(180deg)"})),p("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:o("expansionHeight",[d("collapsed, void",u({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),d("expanded",u({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),p("expanded <=> collapsed, void => collapsed",c([m("@indicatorRotate",f(),{optional:!0}),s("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:o("bodyExpansion",[d("collapsed, void",u({height:"0px",visibility:"hidden"})),d("expanded",u({height:"*",visibility:"visible"})),p("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},bp=((tp=function e(t){_classCallCheck(this,e),this._template=t}).\u0275fac=function(e){return new(e||tp)(a.Dc(a.Y))},tp.\u0275dir=a.yc({type:tp,selectors:[["ng-template","matExpansionPanelContent",""]]}),tp),_p=0,yp=new a.x("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),kp=((sp=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=t.call(this,e,n,r))._viewContainerRef=o,u._animationMode=c,u._hideToggle=!1,u.afterExpand=new a.u,u.afterCollapse=new a.u,u._inputChanges=new Lt.a,u._headerId="mat-expansion-panel-header-".concat(_p++),u._bodyAnimationDone=new Lt.a,u.accordion=e,u._document=s,u._bodyAnimationDone.pipe(gl((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){"void"!==e.fromState&&("expanded"===e.toState?u.afterExpand.emit():"collapsed"===e.toState&&u.afterCollapse.emit())})),l&&(u.hideToggle=l.hideToggle),u}return _createClass(i,[{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe(An(null),ii((function(){return e.expanded&&!e._portal})),ui(1)).subscribe((function(){e._portal=new su(e._lazyContent._template,e._viewContainerRef)}))}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}},{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=fi(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}}]),i}(Wh)).\u0275fac=function(e){return new(e||sp)(a.Dc(gp,12),a.Dc(a.j),a.Dc(ar),a.Dc(a.cb),a.Dc(yt.e),a.Dc(Pt,8),a.Dc(yp,8))},sp.\u0275cmp=a.xc({type:sp,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,bp,!0),2&e&&a.md(n=a.Xc())&&(t._lazyContent=n.first)},viewQuery:function(e,t){var i;1&e&&a.Fd($h,!0),2&e&&a.md(i=a.Xc())&&(t._body=i.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&a.tc("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[a.oc([{provide:gp,useValue:void 0}]),a.mc,a.nc],ngContentSelectors:Yh,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(a.fd(Xh),a.ed(0),a.Jc(1,"div",0,1),a.Wc("@bodyExpansion.done",(function(e){return t._bodyAnimationDone.next(e)})),a.Jc(3,"div",2),a.ed(4,1),a.zd(5,Kh,0,0,"ng-template",3),a.Ic(),a.ed(6,2),a.Ic()),2&e&&(a.pc(1),a.gd("@bodyExpansion",t._getExpandedState())("id",t.id),a.qc("aria-labelledby",t._headerId),a.pc(4),a.gd("cdkPortalOutlet",t._portal))},directives:[hu],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[vp.bodyExpansion]},changeDetection:0}),sp),wp=((op=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||op)},op.\u0275dir=a.yc({type:op,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),op),Cp=((rp=function(){function e(t,i,n,a,r){var o=this;_classCallCheck(this,e),this.panel=t,this._element=i,this._focusMonitor=n,this._changeDetectorRef=a,this._parentChangeSubscription=jt.a.EMPTY,this._animationsDisabled=!0;var s=t.accordion?t.accordion._stateChanges.pipe(ii((function(e){return!(!e.hideToggle&&!e.togglePosition)}))):ci;this._parentChangeSubscription=Object(al.a)(t.opened,t.closed,s,t._inputChanges.pipe(ii((function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)})))).subscribe((function(){return o._changeDetectorRef.markForCheck()})),t.closed.pipe(ii((function(){return t._containsFocus()}))).subscribe((function(){return n.focusVia(i,"program")})),n.monitor(i).subscribe((function(e){e&&t.accordion&&t.accordion._handleHeaderFocus(o)})),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}return _createClass(e,[{key:"_animationStarted",value:function(){this._animationsDisabled=!1}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_keydown",value:function(e){switch(e.keyCode){case 32:case 13:Jt(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._element,e,t)}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}},{key:"disabled",get:function(){return this.panel.disabled}}]),e}()).\u0275fac=function(e){return new(e||rp)(a.Dc(kp,1),a.Dc(a.r),a.Dc(hn),a.Dc(a.j),a.Dc(yp,8))},rp.\u0275cmp=a.xc({type:rp,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header"],hostVars:19,hostBindings:function(e,t){1&e&&(a.uc("@expansionHeight.start",(function(){return t._animationStarted()})),a.Wc("click",(function(){return t._toggle()}))("keydown",(function(e){return t._keydown(e)}))),2&e&&(a.qc("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),a.Ed("@.disabled",t._animationsDisabled)("@expansionHeight",a.kd(16,Qh,t._getExpandedState(),a.kd(13,Zh,t.collapsedHeight,t.expandedHeight))),a.tc("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:mp,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(a.fd(fp),a.Jc(0,"span",0),a.ed(1),a.ed(2,1),a.ed(3,2),a.Ic(),a.zd(4,ep,1,1,"span",1)),2&e&&(a.pc(4),a.gd("ngIf",t._showToggle()))},directives:[yt.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[vp.indicatorRotate,vp.expansionHeaderHeight]},changeDetection:0}),rp),xp=((ap=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ap)},ap.\u0275dir=a.yc({type:ap,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),ap),Sp=((np=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||np)},np.\u0275dir=a.yc({type:np,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),np),Ip=((ip=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments))._ownHeaders=new a.O,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe(An(this._headers)).subscribe((function(t){e._ownHeaders.reset(t.filter((function(t){return t.panel.accordion===e}))),e._ownHeaders.notifyOnChanges()})),this._keyManager=new Xi(this._ownHeaders).withWrap()}},{key:"_handleHeaderKeydown",value:function(e){var t=e.keyCode,i=this._keyManager;36===t?Jt(e)||(i.setFirstItemActive(),e.preventDefault()):35===t?Jt(e)||(i.setLastItemActive(),e.preventDefault()):this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=fi(e)}}]),i}(Uh)).\u0275fac=function(e){return Op(e||ip)},ip.\u0275dir=a.yc({type:ip,selectors:[["mat-accordion"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,Cp,!0),2&e&&a.md(n=a.Xc())&&(t._headers=n)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a.oc([{provide:gp,useExisting:ip}]),a.mc]}),ip),Op=a.Lc(Ip),Dp=((cp=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:cp}),cp.\u0275inj=a.Ac({factory:function(e){return new(e||cp)},imports:[[yt.c,qh,mu]]}),cp),Ep=["*"],Ap=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],Tp=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],Pp=new a.x("MAT_GRID_LIST"),Rp=((pp=function(){function e(t,i){_classCallCheck(this,e),this._element=t,this._gridList=i,this._rowspan=1,this._colspan=1}return _createClass(e,[{key:"_setStyle",value:function(e,t){this._element.nativeElement.style[e]=t}},{key:"rowspan",get:function(){return this._rowspan},set:function(e){this._rowspan=Math.round(mi(e))}},{key:"colspan",get:function(){return this._colspan},set:function(e){this._colspan=Math.round(mi(e))}}]),e}()).\u0275fac=function(e){return new(e||pp)(a.Dc(a.r),a.Dc(Pp,8))},pp.\u0275cmp=a.xc({type:pp,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(e,t){2&e&&a.qc("rowspan",t.rowspan)("colspan",t.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Ep,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"figure",0),a.ed(1),a.Ic())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),pp),Mp=((hp=function(){function e(t){_classCallCheck(this,e),this._element=t}return _createClass(e,[{key:"ngAfterContentInit",value:function(){pa(this._lines,this._element)}}]),e}()).\u0275fac=function(e){return new(e||hp)(a.Dc(a.r))},hp.\u0275cmp=a.xc({type:hp,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,ha,!0),2&e&&a.md(n=a.Xc())&&(t._lines=n)},ngContentSelectors:Tp,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(e,t){1&e&&(a.fd(Ap),a.ed(0),a.Jc(1,"div",0),a.ed(2,1),a.Ic(),a.ed(3,2))},encapsulation:2,changeDetection:0}),hp),Lp=((dp=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||dp)},dp.\u0275dir=a.yc({type:dp,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),dp),jp=((up=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||up)},up.\u0275dir=a.yc({type:up,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),up),Fp=((lp=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||lp)},lp.\u0275dir=a.yc({type:lp,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),lp),Np=function(){function e(){_classCallCheck(this,e),this.columnIndex=0,this.rowIndex=0}return _createClass(e,[{key:"update",value:function(e,t){var i=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(e),this.tracker.fill(0,0,this.tracker.length),this.positions=t.map((function(e){return i._trackTile(e)}))}},{key:"_trackTile",value:function(e){var t=this._findMatchingGap(e.colspan);return this._markTilePosition(t,e),this.columnIndex=t+e.colspan,new zp(this.rowIndex,t)}},{key:"_findMatchingGap",value:function(e){if(e>this.tracker.length)throw Error("mat-grid-list: tile with colspan ".concat(e," is wider than ")+'grid with cols="'.concat(this.tracker.length,'".'));var t=-1,i=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(t)):-1!=(t=this.tracker.indexOf(0,this.columnIndex))?(i=this._findGapEndIndex(t),this.columnIndex=t+1):(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(t))}while(i-t1?this.rowCount+e-1:this.rowCount}}]),e}(),zp=function e(t,i){_classCallCheck(this,e),this.row=t,this.col=i},Bp=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,Jp=function(){function e(){_classCallCheck(this,e),this._rows=0,this._rowspan=0}return _createClass(e,[{key:"init",value:function(e,t,i,n){this._gutterSize=Wp(e),this._rows=t.rowCount,this._rowspan=t.rowspan,this._cols=i,this._direction=n}},{key:"getBaseTileSize",value:function(e,t){return"(".concat(e,"% - (").concat(this._gutterSize," * ").concat(t,"))")}},{key:"getTilePosition",value:function(e,t){return 0===t?"0":Gp("(".concat(e," + ").concat(this._gutterSize,") * ").concat(t))}},{key:"getTileSize",value:function(e,t){return"(".concat(e," * ").concat(t,") + (").concat(t-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(e,t,i){var n=100/this._cols,a=(this._cols-1)/this._cols;this.setColStyles(e,i,n,a),this.setRowStyles(e,t,n,a)}},{key:"setColStyles",value:function(e,t,i,n){var a=this.getBaseTileSize(i,n);e._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(a,t)),e._setStyle("width",Gp(this.getTileSize(a,e.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(e){return"".concat(this._rowspan," * ").concat(this.getTileSize(e,1))}},{key:"getComputedHeight",value:function(){return null}}]),e}(),Vp=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this)).fixedRowHeight=e,n}return _createClass(i,[{key:"init",value:function(e,t,n,a){if(_get(_getPrototypeOf(i.prototype),"init",this).call(this,e,t,n,a),this.fixedRowHeight=Wp(this.fixedRowHeight),!Bp.test(this.fixedRowHeight))throw Error('Invalid value "'.concat(this.fixedRowHeight,'" set as rowHeight.'))}},{key:"setRowStyles",value:function(e,t){e._setStyle("top",this.getTilePosition(this.fixedRowHeight,t)),e._setStyle("height",Gp(this.getTileSize(this.fixedRowHeight,e.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",Gp("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(e){e._setListStyle(["height",null]),e._tiles&&e._tiles.forEach((function(e){e._setStyle("top",null),e._setStyle("height",null)}))}}]),i}(Jp),Hp=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this))._parseRatio(e),n}return _createClass(i,[{key:"setRowStyles",value:function(e,t,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),e._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,t)),e._setStyle("paddingTop",Gp(this.getTileSize(this.baseTileHeight,e.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",Gp("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(e){e._setListStyle(["paddingBottom",null]),e._tiles.forEach((function(e){e._setStyle("marginTop",null),e._setStyle("paddingTop",null)}))}},{key:"_parseRatio",value:function(e){var t=e.split(":");if(2!==t.length)throw Error('mat-grid-list: invalid ratio given for row-height: "'.concat(e,'"'));this.rowHeightRatio=parseFloat(t[0])/parseFloat(t[1])}}]),i}(Jp),Up=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"setRowStyles",value:function(e,t){var i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);e._setStyle("top",this.getTilePosition(i,t)),e._setStyle("height",Gp(this.getTileSize(i,e.rowspan)))}},{key:"reset",value:function(e){e._tiles&&e._tiles.forEach((function(e){e._setStyle("top",null),e._setStyle("height",null)}))}}]),i}(Jp);function Gp(e){return"calc(".concat(e,")")}function Wp(e){return e.match(/([A-Za-z%]+)$/)?e:"".concat(e,"px")}var qp,$p,Kp=(($p=function(){function e(t,i){_classCallCheck(this,e),this._element=t,this._dir=i,this._gutter="1px"}return _createClass(e,[{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: ')}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(e){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===e?new Up:e&&e.indexOf(":")>-1?new Hp(e):new Vp(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new Np);var t=this._tileCoordinator,i=this._tiles.filter((function(t){return!t._gridList||t._gridList===e})),n=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,i),this._tileStyler.init(this.gutterSize,t,this.cols,n),i.forEach((function(i,n){var a=t.positions[n];e._tileStyler.setStyle(i,a.row,a.col)})),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}},{key:"cols",get:function(){return this._cols},set:function(e){this._cols=Math.max(1,Math.round(mi(e)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(e){this._gutter="".concat(null==e?"":e)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(e){var t="".concat(null==e?"":e);t!==this._rowHeight&&(this._rowHeight=t,this._setTileStyler(this._rowHeight))}}]),e}()).\u0275fac=function(e){return new(e||$p)(a.Dc(a.r),a.Dc(Cn,8))},$p.\u0275cmp=a.xc({type:$p,selectors:[["mat-grid-list"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,Rp,!0),2&e&&a.md(n=a.Xc())&&(t._tiles=n)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(e,t){2&e&&a.qc("cols",t.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[a.oc([{provide:Pp,useExisting:$p}])],ngContentSelectors:Ep,decls:2,vars:0,template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div"),a.ed(1),a.Ic())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),$p),Xp=((qp=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:qp}),qp.\u0275inj=a.Ac({factory:function(e){return new(e||qp)},imports:[[wa,Bn],wa,Bn]}),qp);function Yp(e){return function(t){var i=new Zp(e),n=t.lift(i);return i.caught=n}}var Zp=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Qp(e,this.selector,this.caught))}}]),e}(),Qp=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e)).selector=n,r.caught=a,r}return _createClass(i,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(r){return void _get(_getPrototypeOf(i.prototype),"error",this).call(this,r)}this._unsubscribeAndRecycle();var n=new Al.a(this,void 0,void 0);this.add(n);var a=Object(yl.a)(this,t,void 0,void 0,n);a!==n&&this.add(a)}}}]),i}(_l.a);function ef(e){return function(t){return t.lift(new tf(e))}}var tf=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new nf(e,this.callback))}}]),e}(),nf=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).add(new jt.a(n)),a}return i}(Vt.a),af=i("w1tV"),rf=i("5+tZ");function of(e,t){return Object(rf.a)(e,t,1)}var sf=function e(){_classCallCheck(this,e)},cf=function e(){_classCallCheck(this,e)},lf=function(){function e(t){var i=this;_classCallCheck(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){i.headers=new Map,t.split("\n").forEach((function(e){var t=e.indexOf(":");if(t>0){var n=e.slice(0,t),a=n.toLowerCase(),r=e.slice(t+1).trim();i.maybeSetNormalizedName(n,a),i.headers.has(a)?i.headers.get(a).push(r):i.headers.set(a,[r])}}))}:function(){i.headers=new Map,Object.keys(t).forEach((function(e){var n=t[e],a=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(i.headers.set(a,n),i.maybeSetNormalizedName(e,a))}))}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(e){return t.applyUpdate(e)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach((function(i){t.headers.set(i,e.headers.get(i)),t.normalizedNames.set(i,e.normalizedNames.get(i))}))}},{key:"clone",value:function(t){var i=new e;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([t]),i}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);var n=("a"===e.op?this.headers.get(t):void 0)||[];n.push.apply(n,_toConsumableArray(i)),this.headers.set(t,n);break;case"d":var a=e.value;if(a){var r=this.headers.get(t);if(!r)return;0===(r=r.filter((function(e){return-1===a.indexOf(e)}))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,r)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(i){return e(t.normalizedNames.get(i),t.headers.get(i))}))}}]),e}(),uf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return df(e)}},{key:"encodeValue",value:function(e){return df(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function df(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var hf=function(){function e(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new uf,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var i=new Map;return e.length>0&&e.split("&").forEach((function(e){var n=e.indexOf("="),a=_slicedToArray(-1==n?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,n)),t.decodeValue(e.slice(n+1))],2),r=a[0],o=a[1],s=i.get(r)||[];s.push(o),i.set(r,s)})),i}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach((function(e){var n=i.fromObject[e];t.map.set(e,Array.isArray(n)?n:[n])}))):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map((function(t){var i=e.encoder.encodeKey(t);return e.map.get(t).map((function(t){return i+"="+e.encoder.encodeValue(t)})).join("&")})).filter((function(e){return""!==e})).join("&")}},{key:"clone",value:function(t){var i=new e({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat([t]),i}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(t){return e.map.set(t,e.cloneFrom.map.get(t))})),this.updates.forEach((function(t){switch(t.op){case"a":case"s":var i=("a"===t.op?e.map.get(t.param):void 0)||[];i.push(t.value),e.map.set(t.param,i);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var n=e.map.get(t.param)||[],a=n.indexOf(t.value);-1!==a&&n.splice(a,1),n.length>0?e.map.set(t.param,n):e.map.delete(t.param)}})),this.cloneFrom=this.updates=null)}}]),e}();function pf(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function ff(e){return"undefined"!=typeof Blob&&e instanceof Blob}function mf(e){return"undefined"!=typeof FormData&&e instanceof FormData}var gf=function(){function e(t,i,n,a){var r;if(_classCallCheck(this,e),this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||a?(this.body=void 0!==n?n:null,r=a):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new lf),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=i;else{var s=i.indexOf("?");this.urlWithParams=i+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=t.method||this.method,n=t.url||this.url,a=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((function(e,i){return e.set(i,t.setHeaders[i])}),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((function(e,i){return e.set(i,t.setParams[i])}),l)),new e(i,n,r,{params:l,headers:c,reportProgress:s,responseType:a,withCredentials:o})}}]),e}(),vf=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}(),bf=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new lf,this.status=void 0!==t.status?t.status:i,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},_f=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(e=t.call(this,n)).type=vf.ResponseHeader,e}return _createClass(i,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),i}(bf),yf=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,i),(e=t.call(this,n)).type=vf.Response,e.body=void 0!==n.body?n.body:null,e}return _createClass(i,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),i}(bf),kf=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),n.error=e.error||null,n}return i}(bf);function wf(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Cf,xf,Sf,If,Of,Df,Ef,Af,Tf,Pf=((Cf=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var i,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof gf)i=e;else{var r=void 0;r=a.headers instanceof lf?a.headers:new lf(a.headers);var o=void 0;a.params&&(o=a.params instanceof hf?a.params:new hf({fromObject:a.params})),i=new gf(e,t,void 0!==a.body?a.body:null,{headers:r,params:o,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials})}var s=Bt(i).pipe(of((function(e){return n.handler.handle(e)})));if(e instanceof gf||"events"===a.observe)return s;var c=s.pipe(ii((function(e){return e instanceof yf})));switch(a.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return c.pipe(Object(ri.a)((function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return c.pipe(Object(ri.a)((function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return c.pipe(Object(ri.a)((function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));case"json":default:return c.pipe(Object(ri.a)((function(e){return e.body})))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new hf).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,wf(i,t))}},{key:"post",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,wf(i,t))}},{key:"put",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,wf(i,t))}}]),e}()).\u0275fac=function(e){return new(e||Cf)(a.Sc(sf))},Cf.\u0275prov=a.zc({token:Cf,factory:Cf.\u0275fac}),Cf),Rf=function(){function e(t,i){_classCallCheck(this,e),this.next=t,this.interceptor=i}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Mf=new a.x("HTTP_INTERCEPTORS"),Lf=((xf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||xf)},xf.\u0275prov=a.zc({token:xf,factory:xf.\u0275fac}),xf),jf=/^\)\]\}',?\n/,Ff=function e(){_classCallCheck(this,e)},Nf=((If=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||If)},If.\u0275prov=a.zc({token:If,factory:If.\u0275fac}),If),zf=((Sf=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new si.a((function(i){var n=t.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((function(e,t){return n.setRequestHeader(e,t.join(","))})),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var a=e.detectContentTypeHeader();null!==a&&n.setRequestHeader("Content-Type",a)}if(e.responseType){var r=e.responseType.toLowerCase();n.responseType="json"!==r?r:"text"}var o=e.serializeBody(),s=null,c=function(){if(null!==s)return s;var t=1223===n.status?204:n.status,i=n.statusText||"OK",a=new lf(n.getAllResponseHeaders()),r=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return s=new _f({headers:a,status:t,statusText:i,url:r})},l=function(){var t=c(),a=t.headers,r=t.status,o=t.statusText,s=t.url,l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);var u=r>=200&&r<300;if("json"===e.responseType&&"string"==typeof l){var d=l;l=l.replace(jf,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=d,u&&(u=!1,l={error:h,text:l})}}u?(i.next(new yf({body:l,headers:a,status:r,statusText:o,url:s||void 0})),i.complete()):i.error(new kf({error:l,headers:a,status:r,statusText:o,url:s||void 0}))},u=function(e){var t=c().url,a=new kf({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:t||void 0});i.error(a)},d=!1,h=function(t){d||(i.next(c()),d=!0);var a={type:vf.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(a.total=t.total),"text"===e.responseType&&n.responseText&&(a.partialText=n.responseText),i.next(a)},p=function(e){var t={type:vf.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),i.next(t)};return n.addEventListener("load",l),n.addEventListener("error",u),e.reportProgress&&(n.addEventListener("progress",h),null!==o&&n.upload&&n.upload.addEventListener("progress",p)),n.send(o),i.next({type:vf.Sent}),function(){n.removeEventListener("error",u),n.removeEventListener("load",l),e.reportProgress&&(n.removeEventListener("progress",h),null!==o&&n.upload&&n.upload.removeEventListener("progress",p)),n.abort()}}))}}]),e}()).\u0275fac=function(e){return new(e||Sf)(a.Sc(Ff))},Sf.\u0275prov=a.zc({token:Sf,factory:Sf.\u0275fac}),Sf),Bf=new a.x("XSRF_COOKIE_NAME"),Jf=new a.x("XSRF_HEADER_NAME"),Vf=function e(){_classCallCheck(this,e)},Hf=((Tf=function(){function e(t,i,n){_classCallCheck(this,e),this.doc=t,this.platform=i,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(yt.O)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||Tf)(a.Sc(yt.e),a.Sc(a.M),a.Sc(Bf))},Tf.\u0275prov=a.zc({token:Tf,factory:Tf.\u0275fac}),Tf),Uf=((Af=function(){function e(t,i){_classCallCheck(this,e),this.tokenService=t,this.headerName=i}return _createClass(e,[{key:"intercept",value:function(e,t){var i=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||i.startsWith("http://")||i.startsWith("https://"))return t.handle(e);var n=this.tokenService.getToken();return null===n||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,n)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Af)(a.Sc(Vf),a.Sc(Jf))},Af.\u0275prov=a.zc({token:Af,factory:Af.\u0275fac}),Af),Gf=((Ef=function(){function e(t,i){_classCallCheck(this,e),this.backend=t,this.injector=i,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Mf,[]);this.chain=t.reduceRight((function(e,t){return new Rf(e,t)}),this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||Ef)(a.Sc(cf),a.Sc(a.y))},Ef.\u0275prov=a.zc({token:Ef,factory:Ef.\u0275fac}),Ef),Wf=((Df=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Uf,useClass:Lf}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Bf,useValue:t.cookieName}:[],t.headerName?{provide:Jf,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=a.Bc({type:Df}),Df.\u0275inj=a.Ac({factory:function(e){return new(e||Df)},providers:[Uf,{provide:Mf,useExisting:Uf,multi:!0},{provide:Vf,useClass:Hf},{provide:Bf,useValue:"XSRF-TOKEN"},{provide:Jf,useValue:"X-XSRF-TOKEN"}]}),Df),qf=((Of=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Of}),Of.\u0275inj=a.Ac({factory:function(e){return new(e||Of)},providers:[Pf,{provide:sf,useClass:Gf},zf,{provide:cf,useExisting:zf},Nf,{provide:Ff,useExisting:Nf}],imports:[[Wf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Of),$f=["*"];function Kf(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function Xf(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function Yf(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var Zf,Qf=function e(t,i){_classCallCheck(this,e),this.options=i,t.nodeName?this.svgElement=t:this.url=t},em=((Zf=function(){function e(t,i,n,a){_classCallCheck(this,e),this._httpClient=t,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return _createClass(e,[{key:"addSvgIcon",value:function(e,t,i){return this.addSvgIconInNamespace("",e,t,i)}},{key:"addSvgIconLiteral",value:function(e,t,i){return this.addSvgIconLiteralInNamespace("",e,t,i)}},{key:"addSvgIconInNamespace",value:function(e,t,i,n){return this._addSvgIconConfig(e,t,new Qf(i,n))}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,i,n){var r=this._sanitizer.sanitize(a.T.HTML,i);if(!r)throw Yf(i);var o=this._createSvgElementForSingleIcon(r,n);return this._addSvgIconConfig(e,t,new Qf(o,n))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,i){return this._addSvgIconSetConfig(e,new Qf(t,i))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,i){var n=this._sanitizer.sanitize(a.T.HTML,t);if(!n)throw Yf(t);var r=this._svgElementFromString(n);return this._addSvgIconSetConfig(e,new Qf(r,i))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,i=this._sanitizer.sanitize(a.T.RESOURCE_URL,e);if(!i)throw Xf(e);var n=this._cachedIconsByUrl.get(i);return n?Bt(tm(n)):this._loadSvgIconFromConfig(new Qf(e)).pipe(Gt((function(e){return t._cachedIconsByUrl.set(i,e)})),Object(ri.a)((function(e){return tm(e)})))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=im(t,e),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);var a=this._iconSetConfigs.get(t);return a?this._getSvgFromIconSetConfigs(e,a):jl(Kf(i))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgElement?Bt(tm(e.svgElement)):this._loadSvgIconFromConfig(e).pipe(Gt((function(t){return e.svgElement=t})),Object(ri.a)((function(e){return tm(e)})))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var i=this,n=this._extractIconWithNameFromAnySet(e,t);return n?Bt(n):cr(t.filter((function(e){return!e.svgElement})).map((function(e){return i._loadSvgIconSetFromConfig(e).pipe(Yp((function(t){var n="Loading icon set URL: ".concat(i._sanitizer.sanitize(a.T.RESOURCE_URL,e.url)," failed: ").concat(t.message);return i._errorHandler?i._errorHandler.handleError(new Error(n)):console.error(n),Bt(null)})))}))).pipe(Object(ri.a)((function(){var n=i._extractIconWithNameFromAnySet(e,t);if(!n)throw Kf(e);return n})))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var i=t.length-1;i>=0;i--){var n=t[i];if(n.svgElement){var a=this._extractSvgIconFromSet(n.svgElement,e,n.options);if(a)return a}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchUrl(e.url).pipe(Object(ri.a)((function(i){return t._createSvgElementForSingleIcon(i,e.options)})))}},{key:"_loadSvgIconSetFromConfig",value:function(e){var t=this;return e.svgElement?Bt(e.svgElement):this._fetchUrl(e.url).pipe(Object(ri.a)((function(i){return e.svgElement||(e.svgElement=t._svgElementFromString(i)),e.svgElement})))}},{key:"_createSvgElementForSingleIcon",value:function(e,t){var i=this._svgElementFromString(e);return this._setSvgAttributes(i,t),i}},{key:"_extractSvgIconFromSet",value:function(e,t,i){var n=e.querySelector('[id="'.concat(t,'"]'));if(!n)return null;var a=n.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,i);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),i);var r=this._svgElementFromString("");return r.appendChild(a),this._setSvgAttributes(r,i)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var i=t.querySelector("svg");if(!i)throw Error(" tag not found");return i}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString(""),i=e.attributes,n=0;n0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var i=this._elementRef.nativeElement,n=i.value;if(t||this._minRows!==this._previousMinRows||n!==this._previousValue){var a=i.placeholder;i.classList.add("cdk-textarea-autosize-measuring"),i.placeholder="",i.style.height="".concat(i.scrollHeight-4,"px"),i.classList.remove("cdk-textarea-autosize-measuring"),i.placeholder=a,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return e._scrollToCaretPosition(i)})):setTimeout((function(){return e._scrollToCaretPosition(i)}))})),this._previousValue=n,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var t=e.selectionStart,i=e.selectionEnd,n=this._getDocument();this._destroyed.isStopped||n.activeElement!==e||e.setSelectionRange(t,i)}},{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=mi(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=mi(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=fi(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}}]),e}()).\u0275fac=function(e){return new(e||sm)(a.Dc(a.r),a.Dc(Ii),a.Dc(a.I),a.Dc(yt.e,8))},sm.\u0275dir=a.yc({type:sm,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&a.Wc("input",(function(){return t._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),sm),Sm=((om=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:om}),om.\u0275inj=a.Ac({factory:function(e){return new(e||om)},imports:[[Oi]]}),om),Im=((rm=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"matAutosizeMinRows",get:function(){return this.minRows},set:function(e){this.minRows=e}},{key:"matAutosizeMaxRows",get:function(){return this.maxRows},set:function(e){this.maxRows=e}},{key:"matAutosize",get:function(){return this.enabled},set:function(e){this.enabled=e}},{key:"matTextareaAutosize",get:function(){return this.enabled},set:function(e){this.enabled=e}}]),i}(xm)).\u0275fac=function(e){return Om(e||rm)},rm.\u0275dir=a.yc({type:rm,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[a.mc]}),rm),Om=a.Lc(Im),Dm=new a.x("MAT_INPUT_VALUE_ACCESSOR"),Em=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Am=0,Tm=Gn((function e(t,i,n,a){_classCallCheck(this,e),this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=a})),Pm=((pm=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s,c,l,u){var d;_classCallCheck(this,i),(d=t.call(this,s,r,o,a))._elementRef=e,d._platform=n,d.ngControl=a,d._autofillMonitor=l,d._uid="mat-input-".concat(Am++),d._isServer=!1,d._isNativeSelect=!1,d.focused=!1,d.stateChanges=new Lt.a,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(e){return Ei().has(e)}));var h=d._elementRef.nativeElement;return d._inputValueAccessor=c||h,d._previousNativeValue=d.value,d.id=d.id,n.IOS&&u.runOutsideAngular((function(){e.nativeElement.addEventListener("keyup",(function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))}))})),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===h.nodeName.toLowerCase(),d._isNativeSelect&&(d.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),d}return _createClass(i,[{key:"ngOnInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()}))}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_isTextarea",value:function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){if(Em.indexOf(this._type)>-1)throw Error('Input type "'.concat(this._type,"\" isn't supported by matInput."))}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=fi(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=fi(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&Ei().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=fi(e)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}}]),i}(Tm)).\u0275fac=function(e){return new(e||pm)(a.Dc(a.r),a.Dc(Ii),a.Dc(Ir,10),a.Dc(Wo,8),a.Dc(os,8),a.Dc(da),a.Dc(Dm,10),a.Dc(wm),a.Dc(a.I))},pm.\u0275dir=a.yc({type:pm,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(e,t){1&e&&a.Wc("blur",(function(){return t._focusChanged(!1)}))("focus",(function(){return t._focusChanged(!0)}))("input",(function(){return t._onInput()})),2&e&&(a.Mc("disabled",t.disabled)("required",t.required),a.qc("id",t.id)("placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-describedby",t._ariaDescribedby||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),a.tc("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[a.oc([{provide:Sd,useExisting:pm}]),a.mc,a.nc]}),pm),Rm=((hm=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:hm}),hm.\u0275inj=a.Ac({factory:function(e){return new(e||hm)},providers:[da],imports:[[Sm,Gd],Sm,Gd]}),hm),Mm=((dm=function(){function e(){_classCallCheck(this,e),this._vertical=!1,this._inset=!1}return _createClass(e,[{key:"vertical",get:function(){return this._vertical},set:function(e){this._vertical=fi(e)}},{key:"inset",get:function(){return this._inset},set:function(e){this._inset=fi(e)}}]),e}()).\u0275fac=function(e){return new(e||dm)},dm.\u0275cmp=a.xc({type:dm,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(a.qc("aria-orientation",t.vertical?"vertical":"horizontal"),a.tc("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),dm),Lm=((um=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:um}),um.\u0275inj=a.Ac({factory:function(e){return new(e||um)},imports:[[Bn],Bn]}),um),jm=["*"],Fm=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Nm=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],zm=["text"];function Bm(e,t){if(1&e&&a.Ec(0,"mat-pseudo-checkbox",5),2&e){var i=a.ad();a.gd("state",i.selected?"checked":"unchecked")("disabled",i.disabled)}}var Jm,Vm,Hm,Um,Gm,Wm,qm,$m,Km,Xm=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Ym=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],Zm=Jn(Hn((function e(){_classCallCheck(this,e)}))),Qm=Hn((function e(){_classCallCheck(this,e)})),eg=((Jm=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments))._stateChanges=new Lt.a,e}return _createClass(i,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Zm)).\u0275fac=function(e){return tg(e||Jm)},Jm.\u0275cmp=a.xc({type:Jm,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[a.mc,a.nc],ngContentSelectors:jm,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.ed(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Jm),tg=a.Lc(eg),ig=((Wm=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this))._elementRef=e,n._stateChanges=new Lt.a,"action-list"===n._getListType()&&e.nativeElement.classList.add("mat-action-list"),n}return _createClass(i,[{key:"_getListType",value:function(){var e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Zm)).\u0275fac=function(e){return new(e||Wm)(a.Dc(a.r))},Wm.\u0275cmp=a.xc({type:Wm,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[a.mc,a.nc],ngContentSelectors:jm,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.ed(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Wm),ng=((Gm=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Gm)},Gm.\u0275dir=a.yc({type:Gm,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Gm),ag=((Um=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Um)},Um.\u0275dir=a.yc({type:Um,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Um),rg=((Hm=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Hm)},Hm.\u0275dir=a.yc({type:Hm,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Hm),og=((Vm=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;_classCallCheck(this,i),(o=t.call(this))._element=e,o._isInteractiveList=!1,o._destroyed=new Lt.a,o._disabled=!1,o._isInteractiveList=!!(a||r&&"action-list"===r._getListType()),o._list=a||r;var s=o._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),o._list&&o._list._stateChanges.pipe(Ol(o._destroyed)).subscribe((function(){n.markForCheck()})),o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){pa(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(e){this._disabled=fi(e)}}]),i}(Qm)).\u0275fac=function(e){return new(e||Vm)(a.Dc(a.r),a.Dc(a.j),a.Dc(eg,8),a.Dc(ig,8))},Vm.\u0275cmp=a.xc({type:Vm,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,ng,!0),a.vc(i,ag,!0),a.vc(i,ha,!0)),2&e&&(a.md(n=a.Xc())&&(t._avatar=n.first),a.md(n=a.Xc())&&(t._icon=n.first),a.md(n=a.Xc())&&(t._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&a.tc("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[a.mc],ngContentSelectors:Nm,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(a.fd(Fm),a.Jc(0,"div",0),a.Ec(1,"div",1),a.ed(2),a.Jc(3,"div",2),a.ed(4,1),a.Ic(),a.ed(5,2),a.Ic()),2&e&&(a.pc(1),a.gd("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[Da],encapsulation:2,changeDetection:0}),Vm),sg=Hn((function e(){_classCallCheck(this,e)})),cg=Hn((function e(){_classCallCheck(this,e)})),lg={provide:fr,useExisting:Object(a.hb)((function(){return hg})),multi:!0},ug=function e(t,i){_classCallCheck(this,e),this.source=t,this.option=i},dg=((Km=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this))._element=e,r._changeDetector=n,r.selectionList=a,r._selected=!1,r._disabled=!1,r._hasFocus=!1,r.checkboxPosition="after",r._inputsInitialized=!1,r}return _createClass(i,[{key:"ngOnInit",value:function(){var e=this,t=this.selectionList;t._value&&t._value.some((function(i){return t.compareWith(i,e._value)}))&&this._setSelected(!0);var i=this._selected;Promise.resolve().then((function(){(e._selected||i)&&(e.selected=!0,e._changeDetector.markForCheck())})),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){pa(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var e=this;this.selected&&Promise.resolve().then((function(){e.selected=!1}));var t=this._hasFocus,i=this.selectionList._removeOptionFromList(this);t&&i&&i.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"color",get:function(){return this._color||this.selectionList.color},set:function(e){this._color=e}},{key:"value",get:function(){return this._value},set:function(e){this.selected&&e!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=e}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(e){var t=fi(e);t!==this._disabled&&(this._disabled=t,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(e){var t=fi(e);t!==this._selected&&(this._setSelected(t),this.selectionList._reportValueChange())}}]),i}(cg)).\u0275fac=function(e){return new(e||Km)(a.Dc(a.r),a.Dc(a.j),a.Dc(Object(a.hb)((function(){return hg}))))},Km.\u0275cmp=a.xc({type:Km,selectors:[["mat-list-option"]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,ng,!0),a.vc(i,ag,!0),a.vc(i,ha,!0)),2&e&&(a.md(n=a.Xc())&&(t._avatar=n.first),a.md(n=a.Xc())&&(t._icon=n.first),a.md(n=a.Xc())&&(t._lines=n))},viewQuery:function(e,t){var i;1&e&&a.Fd(zm,!0),2&e&&a.md(i=a.Xc())&&(t._text=i.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&a.Wc("focus",(function(){return t._handleFocus()}))("blur",(function(){return t._handleBlur()}))("click",(function(){return t._handleClick()})),2&e&&(a.qc("aria-selected",t.selected)("aria-disabled",t.disabled)("tabindex",-1),a.tc("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)("mat-primary","primary"===t.color)("mat-accent","primary"!==t.color&&"warn"!==t.color)("mat-warn","warn"===t.color)("mat-list-single-selected-option",t.selected&&!t.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[a.mc],ngContentSelectors:Ym,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,t){1&e&&(a.fd(Xm),a.Jc(0,"div",0),a.Ec(1,"div",1),a.zd(2,Bm,1,2,"mat-pseudo-checkbox",2),a.Jc(3,"div",3,4),a.ed(5),a.Ic(),a.ed(6,1),a.Ic()),2&e&&(a.tc("mat-list-item-content-reverse","after"==t.checkboxPosition),a.pc(1),a.gd("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()),a.pc(1),a.gd("ngIf",t.selectionList.multiple))},directives:[Da,yt.t,Aa],encapsulation:2,changeDetection:0}),Km),hg=(($m=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r){var o;return _classCallCheck(this,i),(o=t.call(this))._element=e,o._changeDetector=r,o._multiple=!0,o._contentInitialized=!1,o.selectionChange=new a.u,o.tabIndex=0,o.color="accent",o.compareWith=function(e,t){return e===t},o._disabled=!1,o.selectedOptions=new nr(o._multiple),o._tabIndex=-1,o._onChange=function(e){},o._destroyed=new Lt.a,o._onTouched=function(){},o}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._contentInitialized=!0,this._keyManager=new Xi(this.options).withWrap().withTypeAhead().skipPredicate((function(){return!1})).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Ol(this._destroyed)).subscribe((function(){e._allowFocusEscape()})),this.options.changes.pipe(An(null),Ol(this._destroyed)).subscribe((function(){e._updateTabIndex()})),this.selectedOptions.changed.pipe(Ol(this._destroyed)).subscribe((function(e){if(e.added){var t,i=_createForOfIteratorHelper(e.added);try{for(i.s();!(t=i.n()).done;)t.value.selected=!0}catch(r){i.e(r)}finally{i.f()}}if(e.removed){var n,a=_createForOfIteratorHelper(e.removed);try{for(a.s();!(n=a.n()).done;)n.value.selected=!1}catch(r){a.e(r)}finally{a.f()}}}))}},{key:"ngOnChanges",value:function(e){var t=e.disableRipple,i=e.color;(t&&!t.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(e){this._element.nativeElement.focus(e)}},{key:"selectAll",value:function(){this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"_removeOptionFromList",value:function(e){var t=this._getOptionIndex(e);return t>-1&&this._keyManager.activeItemIndex===t&&(t>0?this._keyManager.updateActiveItem(t-1):0===t&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(t+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(e){var t=e.keyCode,i=this._keyManager,n=i.activeItemIndex,a=Jt(e);switch(t){case 32:case 13:a||i.isTyping()||(this._toggleFocusedOption(),e.preventDefault());break;case 36:case 35:a||(36===t?i.setFirstItemActive():i.setLastItemActive(),e.preventDefault());break;default:65===t&&this.multiple&&Jt(e,"ctrlKey")&&!i.isTyping()?(this.options.find((function(e){return!e.selected}))?this.selectAll():this.deselectAll(),e.preventDefault()):i.onKeydown(e)}this.multiple&&(38===t||40===t)&&e.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}},{key:"_emitChangeEvent",value:function(e){this.selectionChange.emit(new ug(this,e))}},{key:"_onFocus",value:function(){var e=this._keyManager.activeItemIndex;e&&-1!==e?this._keyManager.setActiveItem(e):this._keyManager.setFirstItemActive()}},{key:"writeValue",value:function(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"_setOptionsFromValues",value:function(e){var t=this;this.options.forEach((function(e){return e._setSelected(!1)})),e.forEach((function(e){var i=t.options.find((function(i){return!i.selected&&t.compareWith(i.value,e)}));i&&i._setSelected(!0)}))}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter((function(e){return e.selected})).map((function(e){return e.value}))}},{key:"_toggleFocusedOption",value:function(){var e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){var t=this.options.toArray()[e];!t||t.disabled||!this._multiple&&t.selected||(t.toggle(),this._emitChangeEvent(t))}}},{key:"_setAllOptionsSelected",value:function(e){var t=!1;this.options.forEach((function(i){i._setSelected(e)&&(t=!0)})),t&&this._reportValueChange()}},{key:"_isValidIndex",value:function(e){return e>=0&&e*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),$m),pg=((qm=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:qm}),qm.\u0275inj=a.Ac({factory:function(e){return new(e||qm)},imports:[[wa,Ea,Bn,Ta,yt.c],wa,Bn,Ta,Lm]}),qm),fg=["mat-menu-item",""],mg=["*"];function gg(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",0),a.Wc("keydown",(function(e){return a.rd(i),a.ad()._handleKeydown(e)}))("click",(function(){return a.rd(i),a.ad().closed.emit("click")}))("@transformMenu.start",(function(e){return a.rd(i),a.ad()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return a.rd(i),a.ad()._onAnimationDone(e)})),a.Jc(1,"div",1),a.ed(2),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.gd("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),a.qc("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var vg,bg,_g,yg,kg,wg,Cg,xg,Sg={transformMenu:o("transformMenu",[d("void",u({opacity:0,transform:"scale(0.8)"})),p("void => enter",c([m(".mat-menu-content, .mat-mdc-menu-content",s("100ms linear",u({opacity:1}))),s("120ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"scale(1)"}))])),p("* => void",s("100ms 25ms linear",u({opacity:0})))]),fadeInItems:o("fadeInItems",[d("showing",u({opacity:1})),p("void => *",[u({opacity:0}),s("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ig=((vg=function(){function e(t,i,n,a,r,o,s){_classCallCheck(this,e),this._template=t,this._componentFactoryResolver=i,this._appRef=n,this._injector=a,this._viewContainerRef=r,this._document=o,this._changeDetectorRef=s,this._attached=new Lt.a}return _createClass(e,[{key:"attach",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new su(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new uu(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var t=this._template.elementRef.nativeElement;t.parentNode.insertBefore(this._outlet.outletElement,t),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),e}()).\u0275fac=function(e){return new(e||vg)(a.Dc(a.Y),a.Dc(a.n),a.Dc(a.g),a.Dc(a.y),a.Dc(a.cb),a.Dc(yt.e),a.Dc(a.j))},vg.\u0275dir=a.yc({type:vg,selectors:[["ng-template","matMenuContent",""]]}),vg),Og=new a.x("MAT_MENU_PANEL"),Dg=Hn(Jn((function e(){_classCallCheck(this,e)}))),Eg=((bg=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this))._elementRef=e,o._focusMonitor=a,o._parentMenu=r,o.role="menuitem",o._hovered=new Lt.a,o._focused=new Lt.a,o._highlighted=!1,o._triggersSubmenu=!1,a&&a.monitor(o._elementRef,!1),r&&r.addItem&&r.addItem(_assertThisInitialized(o)),o._document=n,o}return _createClass(i,[{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){var e=this._elementRef.nativeElement,t=this._document?this._document.TEXT_NODE:3,i="";if(e.childNodes)for(var n=e.childNodes.length,a=0;a0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.asObservable().pipe(ui(1)).subscribe((function(){return e._focusFirstItem(t)})):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var i=this._directDescendantItems.first._getHostElement().parentElement;i;){if("menu"===i.getAttribute("role")){i.focus();break}i=i.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t="mat-elevation-z".concat(Math.min(4+e,24)),i=Object.keys(this._classList).find((function(e){return e.startsWith("mat-elevation-z")}));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[t]=!0,this._previousElevation=t)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,i=this._classList;i["mat-menu-before"]="before"===e,i["mat-menu-after"]="after"===e,i["mat-menu-above"]="above"===t,i["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(An(this._allItems)).subscribe((function(t){e._directDescendantItems.reset(t.filter((function(t){return t._parentMenu===e}))),e._directDescendantItems.notifyOnChanges()}))}},{key:"xPosition",get:function(){return this._xPosition},set:function(e){"before"!==e&&"after"!==e&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){"above"!==e&&"below"!==e&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=fi(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=fi(e)}},{key:"panelClass",set:function(e){var t=this,i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach((function(e){t._classList[e]=!1})),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach((function(e){t._classList[e]=!0})),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}}]),e}()).\u0275fac=function(e){return new(e||yg)(a.Dc(a.r),a.Dc(a.I),a.Dc(Ag))},yg.\u0275dir=a.yc({type:yg,contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,Ig,!0),a.vc(i,Eg,!0),a.vc(i,Eg,!1)),2&e&&(a.md(n=a.Xc())&&(t.lazyContent=n.first),a.md(n=a.Xc())&&(t._allItems=n),a.md(n=a.Xc())&&(t.items=n))},viewQuery:function(e,t){var i;1&e&&a.Fd(a.Y,!0),2&e&&a.md(i=a.Xc())&&(t.templateRef=i.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),yg),Rg=((_g=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Pg)).\u0275fac=function(e){return Mg(e||_g)},_g.\u0275dir=a.yc({type:_g,features:[a.mc]}),_g),Mg=a.Lc(Rg),Lg=((kg=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){return _classCallCheck(this,i),t.call(this,e,n,a)}return i}(Rg)).\u0275fac=function(e){return new(e||kg)(a.Dc(a.r),a.Dc(a.I),a.Dc(Ag))},kg.\u0275cmp=a.xc({type:kg,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[a.oc([{provide:Og,useExisting:Rg},{provide:Rg,useExisting:kg}]),a.mc],ngContentSelectors:mg,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(a.fd(),a.zd(0,gg,3,6,"ng-template"))},directives:[yt.q],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[Sg.transformMenu,Sg.fadeInItems]},changeDetection:0}),kg),jg=new a.x("mat-menu-scroll-strategy"),Fg={provide:jg,deps:[Xu],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Ng=Ai({passive:!0}),zg=((xg=function(){function e(t,i,n,r,o,s,c,l){var u=this;_classCallCheck(this,e),this._overlay=t,this._element=i,this._viewContainerRef=n,this._parentMenu=o,this._menuItemInstance=s,this._dir=c,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=jt.a.EMPTY,this._hoverSubscription=jt.a.EMPTY,this._menuCloseSubscription=jt.a.EMPTY,this._handleTouchStart=function(){return u._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new a.u,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.u,this.onMenuClose=this.menuClosed,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ng),s&&(s._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ng),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),i=t.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return e.closeMenu()})),this._initMenu(),this.menu instanceof Rg&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"_destroyMenu",value:function(){var e=this;if(this._overlayRef&&this.menuOpen){var t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof Rg?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(ii((function(e){return"void"===e.toState})),ui(1),Ol(t.lazyContent._attached)).subscribe({next:function(){return t.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new Iu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe((function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")}))}},{key:"_setPosition",value:function(e){var t=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),i=t[0],n=t[1],a=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),r=a[0],o=a[1],s=r,c=o,l=i,u=n,d=0;this.triggersSubmenu()?(u=i="before"===this.menu.xPosition?"start":"end",n=l="end"===i?"start":"end",d="bottom"===r?8:-8):this.menu.overlapTrigger||(s="top"===r?"bottom":"top",c="top"===o?"bottom":"top"),e.withPositions([{originX:i,originY:s,overlayX:l,overlayY:r,offsetY:d},{originX:n,originY:s,overlayX:u,overlayY:r,offsetY:d},{originX:i,originY:c,overlayX:l,overlayY:o,offsetY:-d},{originX:n,originY:c,overlayX:u,overlayY:o,offsetY:-d}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),n=this._parentMenu?this._parentMenu.closed:Bt(),a=this._parentMenu?this._parentMenu._hovered().pipe(ii((function(t){return t!==e._menuItemInstance})),ii((function(){return e._menuOpen}))):Bt();return Object(al.a)(t,n,a,i)}},{key:"_handleMousedown",value:function(e){fn(e)||(this._openedBy=0===e.button?"mouse":null,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(ii((function(t){return t===e._menuItemInstance&&!t.disabled})),Wd(0,ml)).subscribe((function(){e._openedBy="mouse",e.menu instanceof Rg&&e.menu._isAnimating?e.menu._animationDone.pipe(ui(1),Wd(0,ml),Ol(e._parentMenu._hovered())).subscribe((function(){return e.openMenu()})):e.openMenu()})))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new su(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.asObservable().subscribe((function(e){t._destroyMenu(),"click"!==e&&"tab"!==e||!t._parentMenu||t._parentMenu.closed.emit(e)}))))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),e}()).\u0275fac=function(e){return new(e||xg)(a.Dc(Xu),a.Dc(a.r),a.Dc(a.cb),a.Dc(jg),a.Dc(Rg,8),a.Dc(Eg,10),a.Dc(Cn,8),a.Dc(hn))},xg.\u0275dir=a.yc({type:xg,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&a.Wc("mousedown",(function(e){return t._handleMousedown(e)}))("keydown",(function(e){return t._handleKeydown(e)}))("click",(function(e){return t._handleClick(e)})),2&e&&a.qc("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),xg),Bg=((Cg=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Cg}),Cg.\u0275inj=a.Ac({factory:function(e){return new(e||Cg)},providers:[Fg],imports:[Bn]}),Cg),Jg=((wg=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:wg}),wg.\u0275inj=a.Ac({factory:function(e){return new(e||wg)},providers:[Fg],imports:[[yt.c,Bn,Ea,id,Bg],Bg]}),wg),Vg={};function Hg(){for(var e=arguments.length,t=new Array(e),i=0;ithis.total&&this.destination.next(e)}}]),i}(Vt.a),Xg=new Set,Yg=((Gg=function(){function e(t){_classCallCheck(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Zg}return _createClass(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!Xg.has(e))try{Ug||((Ug=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Ug)),Ug.sheet&&(Ug.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),Xg.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||Gg)(a.Sc(Ii))},Gg.\u0275prov=Object(a.zc)({factory:function(){return new Gg(Object(a.Sc)(Ii))},token:Gg,providedIn:"root"}),Gg);function Zg(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var Qg,ev=((Qg=function(){function e(t,i){_classCallCheck(this,e),this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new Lt.a}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return tv(vi(e)).some((function(e){return t._registerQuery(e).mql.matches}))}},{key:"observe",value:function(e){var t=this,i=Hg(tv(vi(e)).map((function(e){return t._registerQuery(e).observable})));return(i=En(i.pipe(ui(1)),i.pipe((function(e){return e.lift(new $g(1))}),Zt(0)))).pipe(Object(ri.a)((function(e){var t={matches:!1,breakpoints:{}};return e.forEach((function(e){t.matches=t.matches||e.matches,t.breakpoints[e.query]=e.matches})),t})))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var i=this._mediaMatcher.matchMedia(e),n={observable:new si.a((function(e){var n=function(i){return t._zone.run((function(){return e.next(i)}))};return i.addListener(n),function(){i.removeListener(n)}})).pipe(An(i),Object(ri.a)((function(t){return{query:e,matches:t.matches}})),Ol(this._destroySubject)),mql:i};return this._queries.set(e,n),n}}]),e}()).\u0275fac=function(e){return new(e||Qg)(a.Sc(Yg),a.Sc(a.I))},Qg.\u0275prov=Object(a.zc)({factory:function(){return new Qg(Object(a.Sc)(Yg),Object(a.Sc)(a.I))},token:Qg,providedIn:"root"}),Qg);function tv(e){return e.map((function(e){return e.split(",")})).reduce((function(e,t){return e.concat(t)})).map((function(e){return e.trim()}))}var iv={tooltipState:o("state",[d("initial, void, hidden",u({opacity:0,transform:"scale(0)"})),d("visible",u({transform:"scale(1)"})),p("* => visible",s("200ms cubic-bezier(0, 0, 0.2, 1)",h([u({opacity:0,transform:"scale(0)",offset:0}),u({opacity:.5,transform:"scale(0.99)",offset:.5}),u({opacity:1,transform:"scale(1)",offset:1})]))),p("* => hidden",s("100ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:0})))])},nv=Ai({passive:!0});function av(e){return Error('Tooltip position "'.concat(e,'" is invalid.'))}var rv,ov,sv,cv,lv=new a.x("mat-tooltip-scroll-strategy"),uv={provide:lv,deps:[Xu],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},dv=new a.x("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),hv=((sv=function(){function e(t,i,n,a,r,o,s,c,l,u,d,h){var p=this;_classCallCheck(this,e),this._overlay=t,this._elementRef=i,this._scrollDispatcher=n,this._viewContainerRef=a,this._ngZone=r,this._platform=o,this._ariaDescriber=s,this._focusMonitor=c,this._dir=u,this._defaultOptions=d,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new Lt.a,this._handleKeydown=function(e){p._isTooltipVisible()&&27===e.keyCode&&!Jt(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run((function(){return p.hide(0)})))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),c.monitor(i).pipe(Ol(this._destroyed)).subscribe((function(e){e?"keyboard"===e&&r.run((function(){return p.show()})):r.run((function(){return p.hide(0)}))})),r.runOutsideAngular((function(){i.nativeElement.addEventListener("keydown",p._handleKeydown)}))}return _createClass(e,[{key:"ngOnInit",value:function(){this._setupPointerEvents()}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(t,i){e.removeEventListener(i,t,nv)})),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var i=this._createOverlay();this._detach(),this._portal=this._portal||new ou(pv,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ol(this._destroyed)).subscribe((function(){return e._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return i.positionChanges.pipe(Ol(this._destroyed)).subscribe((function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run((function(){return e.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Ol(this._destroyed)).subscribe((function(){return e._detach()})),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),i.main),Object.assign(Object.assign({},t.fallback),i.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i||"below"==i)e={originX:"center",originY:"above"==i?"top":"bottom"};else if("before"==i||"left"==i&&t||"right"==i&&!t)e={originX:"start",originY:"center"};else{if(!("after"==i||"right"==i&&t||"left"==i&&!t))throw av(i);e={originX:"end",originY:"center"}}var n=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:n.x,originY:n.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,i=this.position;if("above"==i)e={overlayX:"center",overlayY:"bottom"};else if("below"==i)e={overlayX:"center",overlayY:"top"};else if("before"==i||"left"==i&&t||"right"==i&&!t)e={overlayX:"end",overlayY:"center"};else{if(!("after"==i||"right"==i&&t||"left"==i&&!t))throw av(i);e={overlayX:"start",overlayY:"center"}}var n=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:n.x,overlayY:n.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(ui(1),Ol(this._destroyed)).subscribe((function(){e._tooltipInstance&&e._overlayRef.updatePosition()})))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEvents",value:function(){var e=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var t=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",(function(){clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout((function(){return e.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return e.show()})).set("mouseleave",(function(){return e.hide()}));this._passiveListeners.forEach((function(t,i){e._elementRef.nativeElement.addEventListener(i,t,nv)}))}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this._elementRef.nativeElement,t=e.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(t.userSelect=t.msUserSelect=t.webkitUserSelect=t.MozUserSelect="none"),"on"!==i&&e.draggable||(t.webkitUserDrag="none"),t.touchAction="none",t.webkitTapHighlightColor="transparent")}},{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e),this._disabled&&this.hide(0)}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=e?"".concat(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),e}()).\u0275fac=function(e){return new(e||sv)(a.Dc(Xu),a.Dc(a.r),a.Dc(Xl),a.Dc(a.cb),a.Dc(a.I),a.Dc(Ii),a.Dc(qi),a.Dc(hn),a.Dc(lv),a.Dc(Cn,8),a.Dc(dv,8),a.Dc(a.r))},sv.\u0275dir=a.yc({type:sv,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),sv),pv=((ov=function(){function e(t,i){_classCallCheck(this,e),this._changeDetectorRef=t,this._breakpointObserver=i,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Lt.a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return _createClass(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()}),e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()}),e)}},{key:"afterHidden",value:function(){return this._onHide.asObservable()}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||ov)(a.Dc(a.j),a.Dc(ev))},ov.\u0275cmp=a.xc({type:ov,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t._handleBodyInteraction()}),!1,a.od),2&e&&a.yd("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(a.Jc(0,"div",0),a.Wc("@state.start",(function(){return t._animationStart()}))("@state.done",(function(e){return t._animationDone(e)})),a.bd(1,"async"),a.Bd(2),a.Ic()),2&e){var i,n=null==(i=a.cd(1,5,t._isHandset))?null:i.matches;a.tc("mat-tooltip-handset",n),a.gd("ngClass",t.tooltipClass)("@state",t._visibility),a.pc(2),a.Cd(t.message)}},directives:[yt.q],pipes:[yt.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[iv.tooltipState]},changeDetection:0}),ov),fv=((rv=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:rv}),rv.\u0275inj=a.Ac({factory:function(e){return new(e||rv)},providers:[uv],imports:[[kn,yt.c,id,Bn],Bn]}),rv),mv=["primaryValueBar"],gv=Vn((function e(t){_classCallCheck(this,e),this._elementRef=t}),"primary"),vv=new a.x("mat-progress-bar-location",{providedIn:"root",factory:function(){var e=Object(a.ib)(yt.e),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),bv=0,_v=((cv=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o){var s;_classCallCheck(this,i),(s=t.call(this,e))._elementRef=e,s._ngZone=n,s._animationMode=r,s._isNoopAnimation=!1,s._value=0,s._bufferValue=0,s.animationEnd=new a.u,s._animationEndSubscription=jt.a.EMPTY,s.mode="determinate",s.progressbarId="mat-progress-bar-".concat(bv++);var c=o?o.getPathname().split("#")[0]:"";return s._rectangleFillValue="url('".concat(c,"#").concat(s.progressbarId,"')"),s._isNoopAnimation="NoopAnimations"===r,s}return _createClass(i,[{key:"_primaryTransform",value:function(){return{transform:"scaleX(".concat(this.value/100,")")}}},{key:"_bufferTransform",value:function(){return"buffer"===this.mode?{transform:"scaleX(".concat(this.bufferValue/100,")")}:null}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.runOutsideAngular((function(){var t=e._primaryValueBar.nativeElement;e._animationEndSubscription=rl(t,"transitionend").pipe(ii((function(e){return e.target===t}))).subscribe((function(){"determinate"!==e.mode&&"buffer"!==e.mode||e._ngZone.run((function(){return e.animationEnd.next({value:e.value})}))}))}))}},{key:"ngOnDestroy",value:function(){this._animationEndSubscription.unsubscribe()}},{key:"value",get:function(){return this._value},set:function(e){this._value=yv(mi(e)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(e){this._bufferValue=yv(e||0)}}]),i}(gv)).\u0275fac=function(e){return new(e||cv)(a.Dc(a.r),a.Dc(a.I),a.Dc(Pt,8),a.Dc(vv,8))},cv.\u0275cmp=a.xc({type:cv,selectors:[["mat-progress-bar"]],viewQuery:function(e,t){var i;1&e&&a.Fd(mv,!0),2&e&&a.md(i=a.Xc())&&(t._primaryValueBar=i.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,t){2&e&&(a.qc("aria-valuenow","indeterminate"===t.mode||"query"===t.mode?null:t.value)("mode",t.mode),a.tc("_mat-animation-noopable",t._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[a.mc],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(e,t){1&e&&(a.Zc(),a.Jc(0,"svg",0),a.Jc(1,"defs"),a.Jc(2,"pattern",1),a.Ec(3,"circle",2),a.Ic(),a.Ic(),a.Ec(4,"rect",3),a.Ic(),a.Yc(),a.Ec(5,"div",4),a.Ec(6,"div",5,6),a.Ec(8,"div",7)),2&e&&(a.pc(2),a.gd("id",t.progressbarId),a.pc(2),a.qc("fill",t._rectangleFillValue),a.pc(1),a.gd("ngStyle",t._bufferTransform()),a.pc(1),a.gd("ngStyle",t._primaryTransform()))},directives:[yt.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),cv);function yv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(t,Math.min(i,e))}var kv,wv=((kv=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:kv}),kv.\u0275inj=a.Ac({factory:function(e){return new(e||kv)},imports:[[yt.c,Bn],Bn]}),kv);function Cv(e,t){if(1&e&&(a.Zc(),a.Ec(0,"circle",3)),2&e){var i=a.ad();a.yd("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.qc("r",i._circleRadius)}}function xv(e,t){if(1&e&&(a.Zc(),a.Ec(0,"circle",3)),2&e){var i=a.ad();a.yd("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.qc("r",i._circleRadius)}}function Sv(e,t){if(1&e&&(a.Zc(),a.Ec(0,"circle",3)),2&e){var i=a.ad();a.yd("animation-name","mat-progress-spinner-stroke-rotate-"+i.diameter)("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.qc("r",i._circleRadius)}}function Iv(e,t){if(1&e&&(a.Zc(),a.Ec(0,"circle",3)),2&e){var i=a.ad();a.yd("stroke-dashoffset",i._strokeDashOffset,"px")("stroke-dasharray",i._strokeCircumference,"px")("stroke-width",i._circleStrokeWidth,"%"),a.qc("r",i._circleRadius)}}var Ov,Dv,Ev,Av,Tv,Pv,Rv=Vn((function e(t){_classCallCheck(this,e),this._elementRef=t}),"primary"),Mv=new a.x("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Lv=((Ev=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o){var s;_classCallCheck(this,i),(s=t.call(this,e))._elementRef=e,s._document=a,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var c=i._diameters;return c.has(a.head)||c.set(a.head,new Set([100])),s._fallbackAnimation=n.EDGE||n.TRIDENT,s._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,o&&(o.diameter&&(s.diameter=o.diameter),o.strokeWidth&&(s.strokeWidth=o.strokeWidth)),s}return _createClass(i,[{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=Pi(e)||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=i._diameters,a=n.get(e);if(!a||!a.has(t)){var r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",t+""),r.textContent=this._getAnimationText(),e.appendChild(r),a||(a=new Set,n.set(e,a)),a.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=mi(e),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=mi(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,mi(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}}]),i}(Rv)).\u0275fac=function(e){return new(e||Ev)(a.Dc(a.r),a.Dc(Ii),a.Dc(yt.e,8),a.Dc(Pt,8),a.Dc(Mv))},Ev.\u0275cmp=a.xc({type:Ev,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(a.qc("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),a.yd("width",t.diameter,"px")("height",t.diameter,"px"),a.tc("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[a.mc],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,t){1&e&&(a.Zc(),a.Jc(0,"svg",0),a.zd(1,Cv,1,9,"circle",1),a.zd(2,xv,1,7,"circle",2),a.Ic()),2&e&&(a.yd("width",t.diameter,"px")("height",t.diameter,"px"),a.gd("ngSwitch","indeterminate"===t.mode),a.qc("viewBox",t._viewBox),a.pc(1),a.gd("ngSwitchCase",!0),a.pc(1),a.gd("ngSwitchCase",!1))},directives:[yt.x,yt.y],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}),Ev._diameters=new WeakMap,Ev),jv=((Dv=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o){var s;return _classCallCheck(this,i),(s=t.call(this,e,n,a,r,o)).mode="indeterminate",s}return i}(Lv)).\u0275fac=function(e){return new(e||Dv)(a.Dc(a.r),a.Dc(Ii),a.Dc(yt.e,8),a.Dc(Pt,8),a.Dc(Mv))},Dv.\u0275cmp=a.xc({type:Dv,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(a.yd("width",t.diameter,"px")("height",t.diameter,"px"),a.tc("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[a.mc],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,t){1&e&&(a.Zc(),a.Jc(0,"svg",0),a.zd(1,Sv,1,9,"circle",1),a.zd(2,Iv,1,7,"circle",2),a.Ic()),2&e&&(a.yd("width",t.diameter,"px")("height",t.diameter,"px"),a.gd("ngSwitch","indeterminate"===t.mode),a.qc("viewBox",t._viewBox),a.pc(1),a.gd("ngSwitchCase",!0),a.pc(1),a.gd("ngSwitchCase",!1))},directives:[yt.x,yt.y],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}),Dv),Fv=((Ov=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Ov}),Ov.\u0275inj=a.Ac({factory:function(e){return new(e||Ov)},imports:[[Bn,yt.c],Bn]}),Ov),Nv=["input"],zv=function(){return{enterDuration:150}},Bv=["*"],Jv=new a.x("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),Vv=0,Hv={provide:fr,useExisting:Object(a.hb)((function(){return Gv})),multi:!0},Uv=function e(t,i){_classCallCheck(this,e),this.source=t,this.value=i},Gv=((Av=function(){function e(t){_classCallCheck(this,e),this._changeDetector=t,this._value=null,this._name="mat-radio-group-".concat(Vv++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new a.u}return _createClass(e,[{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var e=this;this._radios&&this._radios.forEach((function(t){t.name=e.name,t._markForCheck()}))}},{key:"_updateSelectedRadioFromValue",value:function(){var e=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach((function(t){t.checked=e.value===t.value,t.checked&&(e._selected=t)})))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new Uv(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach((function(e){return e._markForCheck()}))}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}},{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=fi(e),this._markRadiosForCheck()}}]),e}()).\u0275fac=function(e){return new(e||Av)(a.Dc(a.j))},Av.\u0275dir=a.yc({type:Av,selectors:[["mat-radio-group"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,qv,!0),2&e&&a.md(n=a.Xc())&&(t._radios=n)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[a.oc([Hv])]}),Av),Wv=Hn(Un((function e(t){_classCallCheck(this,e),this._elementRef=t}))),qv=((Pv=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=t.call(this,n))._changeDetector=r,u._focusMonitor=o,u._radioDispatcher=s,u._animationMode=c,u._providerOverride=l,u._uniqueId="mat-radio-".concat(++Vv),u.id=u._uniqueId,u.change=new a.u,u._checked=!1,u._value=null,u._removeUniqueSelectionListener=function(){},u.radioGroup=e,u._removeUniqueSelectionListener=s.listen((function(e,t){e!==u.id&&t===u.name&&(u.checked=!1)})),u}return _createClass(i,[{key:"focus",value:function(e){this._focusMonitor.focusVia(this._inputElement,"keyboard",e)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(t){!t&&e.radioGroup&&e.radioGroup._touch()}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new Uv(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"_onInputChange",value:function(e){e.stopPropagation();var t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}},{key:"checked",get:function(){return this._checked},set:function(e){var t=fi(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(e){this._labelPosition=e}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(e){this._setDisabled(fi(e))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(e){this._required=fi(e)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(e){this._color=e}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),i}(Wv)).\u0275fac=function(e){return new(e||Pv)(a.Dc(Gv,8),a.Dc(a.r),a.Dc(a.j),a.Dc(hn),a.Dc(ar),a.Dc(Pt,8),a.Dc(Jv,8))},Pv.\u0275cmp=a.xc({type:Pv,selectors:[["mat-radio-button"]],viewQuery:function(e,t){var i;1&e&&a.Fd(Nv,!0),2&e&&a.md(i=a.Xc())&&(t._inputElement=i.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&a.Wc("focus",(function(){return t._inputElement.nativeElement.focus()})),2&e&&(a.qc("tabindex",-1)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),a.tc("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[a.mc],ngContentSelectors:Bv,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(a.fd(),a.Jc(0,"label",0,1),a.Jc(2,"div",2),a.Ec(3,"div",3),a.Ec(4,"div",4),a.Jc(5,"input",5,6),a.Wc("change",(function(e){return t._onInputChange(e)}))("click",(function(e){return t._onInputClick(e)})),a.Ic(),a.Jc(7,"div",7),a.Ec(8,"div",8),a.Ic(),a.Ic(),a.Jc(9,"div",9),a.Jc(10,"span",10),a.Bd(11,"\xa0"),a.Ic(),a.ed(12),a.Ic(),a.Ic()),2&e){var i=a.nd(1);a.qc("for",t.inputId),a.pc(5),a.gd("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),a.qc("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),a.pc(2),a.gd("matRippleTrigger",i)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.id(18,zv)),a.pc(2),a.tc("mat-radio-label-before","before"==t.labelPosition)}},directives:[Da],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),Pv),$v=((Tv=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Tv}),Tv.\u0275inj=a.Ac({factory:function(e){return new(e||Tv)},imports:[[Ea,Bn],Bn]}),Tv),Kv=["trigger"],Xv=["panel"];function Yv(e,t){if(1&e&&(a.Jc(0,"span",8),a.Bd(1),a.Ic()),2&e){var i=a.ad();a.pc(1),a.Cd(i.placeholder||"\xa0")}}function Zv(e,t){if(1&e&&(a.Jc(0,"span"),a.Bd(1),a.Ic()),2&e){var i=a.ad(2);a.pc(1),a.Cd(i.triggerValue||"\xa0")}}function Qv(e,t){1&e&&a.ed(0,0,["*ngSwitchCase","true"])}function eb(e,t){if(1&e&&(a.Jc(0,"span",9),a.zd(1,Zv,2,1,"span",10),a.zd(2,Qv,1,0,void 0,11),a.Ic()),2&e){var i=a.ad();a.gd("ngSwitch",!!i.customTrigger),a.pc(2),a.gd("ngSwitchCase",!0)}}function tb(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",12),a.Jc(1,"div",13,14),a.Wc("@transformPanel.done",(function(e){return a.rd(i),a.ad()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return a.rd(i),a.ad()._handleKeydown(e)})),a.ed(3,1),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.gd("@transformPanelWrap",void 0),a.pc(1),a.sc("mat-select-panel ",n._getPanelTheme(),""),a.yd("transform-origin",n._transformOrigin)("font-size",n._triggerFontSize,"px"),a.gd("ngClass",n.panelClass)("@transformPanel",n.multiple?"showing-multiple":"showing")}}var ib,nb,ab,rb=[[["mat-select-trigger"]],"*"],ob=["mat-select-trigger","*"],sb={transformPanelWrap:o("transformPanelWrap",[p("* => void",m("@transformPanel",[f()],{optional:!0}))]),transformPanel:o("transformPanel",[d("void",u({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),d("showing",u({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),d("showing-multiple",u({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),p("void => *",s("120ms cubic-bezier(0, 0, 0.2, 1)")),p("* => void",s("100ms 25ms linear",u({opacity:0})))])},cb=0,lb=new a.x("mat-select-scroll-strategy"),ub=new a.x("MAT_SELECT_CONFIG"),db={provide:lb,deps:[Xu],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},hb=function e(t,i){_classCallCheck(this,e),this.source=t,this.value=i},pb=Hn(Un(Jn(Gn((function e(t,i,n,a,r){_classCallCheck(this,e),this._elementRef=t,this._defaultErrorStateMatcher=i,this._parentForm=n,this._parentFormGroup=a,this.ngControl=r}))))),fb=((ab=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ab)},ab.\u0275dir=a.yc({type:ab,selectors:[["mat-select-trigger"]]}),ab),mb=((nb=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l,u,d,h,p,f,m,g){var v;return _classCallCheck(this,i),(v=t.call(this,s,o,l,u,h))._viewportRuler=e,v._changeDetectorRef=n,v._ngZone=r,v._dir=c,v._parentFormField=d,v.ngControl=h,v._liveAnnouncer=m,v._panelOpen=!1,v._required=!1,v._scrollTop=0,v._multiple=!1,v._compareWith=function(e,t){return e===t},v._uid="mat-select-".concat(cb++),v._destroy=new Lt.a,v._triggerFontSize=0,v._onChange=function(){},v._onTouched=function(){},v._optionIds="",v._transformOrigin="top",v._panelDoneAnimatingStream=new Lt.a,v._offsetY=0,v._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],v._disableOptionCentering=!1,v._focused=!1,v.controlType="mat-select",v.ariaLabel="",v.optionSelectionChanges=nl((function(){var e=v.options;return e?e.changes.pipe(An(e),Tl((function(){return Object(al.a).apply(void 0,_toConsumableArray(e.map((function(e){return e.onSelectionChange}))))}))):v._ngZone.onStable.asObservable().pipe(ui(1),Tl((function(){return v.optionSelectionChanges})))})),v.openedChange=new a.u,v._openedStream=v.openedChange.pipe(ii((function(e){return e})),Object(ri.a)((function(){}))),v._closedStream=v.openedChange.pipe(ii((function(e){return!e})),Object(ri.a)((function(){}))),v.selectionChange=new a.u,v.valueChange=new a.u,v.ngControl&&(v.ngControl.valueAccessor=_assertThisInitialized(v)),v._scrollStrategyFactory=f,v._scrollStrategy=v._scrollStrategyFactory(),v.tabIndex=parseInt(p)||0,v.id=v.id,g&&(null!=g.disableOptionCentering&&(v.disableOptionCentering=g.disableOptionCentering),null!=g.typeaheadDebounceInterval&&(v.typeaheadDebounceInterval=g.typeaheadDebounceInterval)),v}return _createClass(i,[{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new nr(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(gl(),Ol(this._destroy)).subscribe((function(){e.panelOpen?(e._scrollTop=0,e.openedChange.emit(!0)):(e.openedChange.emit(!1),e.overlayDir.offsetX=0,e._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(Ol(this._destroy)).subscribe((function(){e._panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(Ol(this._destroy)).subscribe((function(e){e.added.forEach((function(e){return e.select()})),e.removed.forEach((function(e){return e.deselect()}))})),this.options.changes.pipe(An(null),Ol(this._destroy)).subscribe((function(){e._resetOptions(),e._initializeSelection()}))}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){var e=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(ui(1)).subscribe((function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))})))}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.options&&this._setSelectionByValue(e)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,i=40===t||38===t||37===t||39===t,n=13===t||32===t,a=this._keyManager;if(!a.isTyping()&&n&&!Jt(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){var r=this.selected;36===t||35===t?(36===t?a.setFirstItemActive():a.setLastItemActive(),e.preventDefault()):a.onKeydown(e);var o=this.selected;o&&r!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,i=e.keyCode,n=40===i||38===i,a=t.isTyping();if(36===i||35===i)e.preventDefault(),36===i?t.setFirstItemActive():t.setLastItemActive();else if(n&&e.altKey)e.preventDefault(),this.close();else if(a||13!==i&&32!==i||!t.activeItem||Jt(e))if(!a&&this._multiple&&65===i&&e.ctrlKey){e.preventDefault();var r=this.options.some((function(e){return!e.disabled&&!e.selected}));this.options.forEach((function(e){e.disabled||(r?e.select():e.deselect())}))}else{var o=t.activeItemIndex;t.onKeydown(e),this._multiple&&n&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(ui(1)).subscribe((function(){e._changeDetectorRef.detectChanges(),e._calculateOverlayOffsetX(),e.panel.nativeElement.scrollTop=e._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then((function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()}))}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this.multiple&&e){if(!Array.isArray(e))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),e.forEach((function(e){return t._selectValue(e)})),this._sortValues()}else{this._selectionModel.clear();var i=this._selectValue(e);i?this._keyManager.setActiveItem(i):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,i=this.options.find((function(i){try{return null!=i.value&&t._compareWith(i.value,e)}catch(n){return Object(a.jb)()&&console.warn(n),!1}}));return i&&this._selectionModel.select(i),i}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new Ki(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ol(this._destroy)).subscribe((function(){!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close()})),this._keyManager.change.pipe(Ol(this._destroy)).subscribe((function(){e._panelOpen&&e.panel?e._scrollActiveOptionIntoView():e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var e=this,t=Object(al.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ol(t)).subscribe((function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())})),Object(al.a).apply(void 0,_toConsumableArray(this.options.map((function(e){return e._stateChanges})))).pipe(Ol(t)).subscribe((function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})),this._setOptionIds()}},{key:"_onSelect",value:function(e,t){var i=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),this._propagateChanges(e.value)),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort((function(i,n){return e.sortComparator?e.sortComparator(i,n,t):t.indexOf(i)-t.indexOf(n)})),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(new hb(this,t)),this._changeDetectorRef.markForCheck()}},{key:"_setOptionIds",value:function(){this._optionIds=this.options.map((function(e){return e.id})).join(" ")}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var e=this._keyManager.activeItemIndex||0,t=Ba(e,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Ja(e+t,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getOptionIndex",value:function(e){return this.options.reduce((function(t,i,n){return void 0!==t?t:e===i?n:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var e=this._getItemHeight(),t=this._getItemCount(),i=Math.min(t*e,256),n=t*e-i,a=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);a+=Ba(a,this.options,this.optionGroups);var r=i/2;this._scrollTop=this._calculateOverlayScroll(a,r,n),this._offsetY=this._calculateOverlayOffsetY(a,r,n),this._checkOverlayWithinViewport(n)}},{key:"_calculateOverlayScroll",value:function(e,t,i){var n=this._getItemHeight();return Math.min(Math.max(0,n*e-t+n/2),i)}},{key:"_getAriaLabel",value:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}},{key:"_getAriaLabelledby",value:function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),n=this._isRtl(),a=this.multiple?56:32;if(this.multiple)e=40;else{var r=this._selectionModel.selected[0]||this.options.first;e=r&&r.group?32:16}n||(e*=-1);var o=0-(t.left+e-(n?a:0)),s=t.right+e-i.width+(n?0:a);o>0?e+=o+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,i){var n,a=this._getItemHeight(),r=(a-this._triggerRect.height)/2,o=Math.floor(256/a);return this._disableOptionCentering?0:(n=0===this._scrollTop?e*a:this._scrollTop===i?(e-(this._getItemCount()-o))*a+(a-(this._getItemCount()*a-256)%a):t-a/2,Math.round(-1*n-r))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,a=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-r-this._triggerRect.height;o>a?this._adjustPanelUp(o,a):r>n?this._adjustPanelDown(r,n,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var i=Math.round(e-t);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,i){var n=Math.round(e-t);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=fi(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=fi(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=fi(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){if("function"!=typeof e)throw Error("`compareWith` must be a function.");this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){e!==this._value&&(this.writeValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=mi(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map((function(e){return e.viewValue}));return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),i}(pb)).\u0275fac=function(e){return new(e||nb)(a.Dc(Zl),a.Dc(a.j),a.Dc(a.I),a.Dc(da),a.Dc(a.r),a.Dc(Cn,8),a.Dc(Wo,8),a.Dc(os,8),a.Dc(Hd,8),a.Dc(Ir,10),a.Tc("tabindex"),a.Dc(lb),a.Dc(ln),a.Dc(ub,8))},nb.\u0275cmp=a.xc({type:nb,selectors:[["mat-select"]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,fb,!0),a.vc(i,za,!0),a.vc(i,Ma,!0)),2&e&&(a.md(n=a.Xc())&&(t.customTrigger=n.first),a.md(n=a.Xc())&&(t.options=n),a.md(n=a.Xc())&&(t.optionGroups=n))},viewQuery:function(e,t){var i;1&e&&(a.Fd(Kv,!0),a.Fd(Xv,!0),a.Fd(ed,!0)),2&e&&(a.md(i=a.Xc())&&(t.trigger=i.first),a.md(i=a.Xc())&&(t.panel=i.first),a.md(i=a.Xc())&&(t.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&a.Wc("keydown",(function(e){return t._handleKeydown(e)}))("focus",(function(){return t._onFocus()}))("blur",(function(){return t._onBlur()})),2&e&&(a.qc("id",t.id)("tabindex",t.tabIndex)("aria-label",t._getAriaLabel())("aria-labelledby",t._getAriaLabelledby())("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-owns",t.panelOpen?t._optionIds:null)("aria-multiselectable",t.multiple)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),a.tc("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[a.oc([{provide:Sd,useExisting:nb},{provide:Na,useExisting:nb}]),a.mc,a.nc],ngContentSelectors:ob,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(a.fd(rb),a.Jc(0,"div",0,1),a.Wc("click",(function(){return t.toggle()})),a.Jc(3,"div",2),a.zd(4,Yv,2,1,"span",3),a.zd(5,eb,3,2,"span",4),a.Ic(),a.Jc(6,"div",5),a.Ec(7,"div",6),a.Ic(),a.Ic(),a.zd(8,tb,4,10,"ng-template",7),a.Wc("backdropClick",(function(){return t.close()}))("attach",(function(){return t._onAttached()}))("detach",(function(){return t.close()}))),2&e){var i=a.nd(1);a.pc(3),a.gd("ngSwitch",t.empty),a.pc(1),a.gd("ngSwitchCase",!0),a.pc(1),a.gd("ngSwitchCase",!1),a.pc(3),a.gd("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[Qu,yt.x,yt.y,ed,yt.z,yt.q],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[sb.transformPanelWrap,sb.transformPanel]},changeDetection:0}),nb),gb=((ib=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:ib}),ib.\u0275inj=a.Ac({factory:function(e){return new(e||ib)},providers:[db],imports:[[yt.c,id,Wa,Bn],Gd,Wa,Bn]}),ib),vb=["*"];function bb(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",2),a.Wc("click",(function(){return a.rd(i),a.ad()._onBackdropClicked()})),a.Ic()}if(2&e){var n=a.ad();a.tc("mat-drawer-shown",n._isShowingBackdrop())}}function _b(e,t){1&e&&(a.Jc(0,"mat-drawer-content"),a.ed(1,2),a.Ic())}var yb=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],kb=["mat-drawer","mat-drawer-content","*"];function wb(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",2),a.Wc("click",(function(){return a.rd(i),a.ad()._onBackdropClicked()})),a.Ic()}if(2&e){var n=a.ad();a.tc("mat-drawer-shown",n._isShowingBackdrop())}}function Cb(e,t){1&e&&(a.Jc(0,"mat-sidenav-content",3),a.ed(1,2),a.Ic())}var xb=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Sb=["mat-sidenav","mat-sidenav-content","*"],Ib={transformDrawer:o("transform",[d("open, open-instant",u({transform:"none",visibility:"visible"})),d("void",u({"box-shadow":"none",visibility:"hidden"})),p("void => open-instant",s("0ms")),p("void <=> open, open-instant => void",s("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function Ob(e){throw Error("A drawer was already declared for 'position=\"".concat(e,"\"'"))}var Db,Eb,Ab,Tb,Pb,Rb,Mb,Lb,jb,Fb,Nb,zb=new a.x("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Bb=new a.x("MAT_DRAWER_CONTAINER"),Jb=((Pb=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o){var s;return _classCallCheck(this,i),(s=t.call(this,a,r,o))._changeDetectorRef=e,s._container=n,s}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe((function(){e._changeDetectorRef.markForCheck()}))}}]),i}(Yl)).\u0275fac=function(e){return new(e||Pb)(a.Dc(a.j),a.Dc(Object(a.hb)((function(){return Hb}))),a.Dc(a.r),a.Dc(Xl),a.Dc(a.I))},Pb.\u0275cmp=a.xc({type:Pb,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&a.yd("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[a.mc],ngContentSelectors:vb,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.ed(0))},encapsulation:2,changeDetection:0}),Pb),Vb=((Tb=function(){function e(t,i,n,r,o,s,c){var l=this;_classCallCheck(this,e),this._elementRef=t,this._focusTrapFactory=i,this._focusMonitor=n,this._platform=r,this._ngZone=o,this._doc=s,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Lt.a,this._animationEnd=new Lt.a,this._animationState="void",this.openedChange=new a.u(!0),this._destroyed=new Lt.a,this.onPositionChanged=new a.u,this._modeChanged=new Lt.a,this.openedChange.subscribe((function(e){e?(l._doc&&(l._elementFocusedBeforeDrawerWasOpened=l._doc.activeElement),l._takeFocus()):l._restoreFocus()})),this._ngZone.runOutsideAngular((function(){rl(l._elementRef.nativeElement,"keydown").pipe(ii((function(e){return 27===e.keyCode&&!l.disableClose&&!Jt(e)})),Ol(l._destroyed)).subscribe((function(e){return l._ngZone.run((function(){l.close(),e.stopPropagation(),e.preventDefault()}))}))})),this._animationEnd.pipe(gl((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){var t=e.fromState,i=e.toState;(0===i.indexOf("open")&&"void"===t||"void"===i&&0===t.indexOf("open"))&&l.openedChange.emit(l._opened)}))}return _createClass(e,[{key:"_takeFocus",value:function(){var e=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()}))}},{key:"_restoreFocus",value:function(){if(this.autoFocus){var e=this._doc&&this._doc.activeElement;e&&this._elementRef.nativeElement.contains(e)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"toggle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"program";return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(t){e.openedChange.pipe(ui(1)).subscribe((function(e){return t(e?"open":"close")}))}))}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(e){this._animationStarted.next(e)}},{key:"_animationDoneListener",value:function(e){this._animationEnd.next(e)}},{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=fi(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=fi(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(fi(e))}},{key:"_openedStream",get:function(){return this.openedChange.pipe(ii((function(e){return e})),Object(ri.a)((function(){})))}},{key:"openedStart",get:function(){return this._animationStarted.pipe(ii((function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")})),Object(ri.a)((function(){})))}},{key:"_closedStream",get:function(){return this.openedChange.pipe(ii((function(e){return!e})),Object(ri.a)((function(){})))}},{key:"closedStart",get:function(){return this._animationStarted.pipe(ii((function(e){return e.fromState!==e.toState&&"void"===e.toState})),Object(ri.a)((function(){})))}},{key:"_width",get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}}]),e}()).\u0275fac=function(e){return new(e||Tb)(a.Dc(a.r),a.Dc(nn),a.Dc(hn),a.Dc(Ii),a.Dc(a.I),a.Dc(yt.e,8),a.Dc(Bb,8))},Tb.\u0275cmp=a.xc({type:Tb,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&a.uc("@transform.start",(function(e){return t._animationStartListener(e)}))("@transform.done",(function(e){return t._animationDoneListener(e)})),2&e&&(a.qc("align",null),a.Ed("@transform",t._animationState),a.tc("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:vb,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div",0),a.ed(1),a.Ic())},encapsulation:2,data:{animation:[Ib.transformDrawer]},changeDetection:0}),Tb),Hb=((Ab=function(){function e(t,i,n,r,o){var s=this,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,e),this._dir=t,this._element=i,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=l,this._drawers=new a.O,this.backdropClick=new a.u,this._destroyed=new Lt.a,this._doCheckSubject=new Lt.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Lt.a,t&&t.change.pipe(Ol(this._destroyed)).subscribe((function(){s._validateDrawers(),s.updateContentMargins()})),o.change().pipe(Ol(this._destroyed)).subscribe((function(){return s.updateContentMargins()})),this._autosize=c}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(An(this._allDrawers),Ol(this._destroyed)).subscribe((function(t){e._drawers.reset(t.filter((function(t){return!t._container||t._container===e}))),e._drawers.notifyOnChanges()})),this._drawers.changes.pipe(An(null)).subscribe((function(){e._validateDrawers(),e._drawers.forEach((function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)})),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(Zt(10),Ol(this._destroyed)).subscribe((function(){return e.updateContentMargins()}))}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach((function(e){return e.open()}))}},{key:"close",value:function(){this._drawers.forEach((function(e){return e.close()}))}},{key:"updateContentMargins",value:function(){var e=this,t=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._width;else if("push"==this._left.mode){var n=this._left._width;t+=n,i-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._width;else if("push"==this._right.mode){var a=this._right._width;i+=a,t-=a}i=i||null,(t=t||null)===this._contentMargins.left&&i===this._contentMargins.right||(this._contentMargins={left:t,right:i},this._ngZone.run((function(){return e._contentMarginChanges.next(e._contentMargins)})))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return e._doCheckSubject.next()}))}},{key:"_watchDrawerToggle",value:function(e){var t=this;e._animationStarted.pipe(ii((function(e){return e.fromState!==e.toState})),Ol(this._drawers.changes)).subscribe((function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),"side"!==e.mode&&e.openedChange.pipe(Ol(this._drawers.changes)).subscribe((function(){return t._setContainerClass(e.opened)}))}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(Ol(this._drawers.changes)).subscribe((function(){t._ngZone.onMicrotaskEmpty.asObservable().pipe(ui(1)).subscribe((function(){t._validateDrawers()}))}))}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(Ol(Object(al.a)(this._drawers.changes,this._destroyed))).subscribe((function(){t.updateContentMargins(),t._changeDetectorRef.markForCheck()}))}},{key:"_setContainerClass",value:function(e){var t=this._element.nativeElement.classList,i="mat-drawer-container-has-open";e?t.add(i):t.remove(i)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach((function(t){"end"==t.position?(null!=e._end&&Ob("end"),e._end=t):(null!=e._start&&Ob("start"),e._start=t)})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawer()}},{key:"_closeModalDrawer",value:function(){var e=this;[this._start,this._end].filter((function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)})).forEach((function(e){return e.close()}))}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=fi(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:fi(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),e}()).\u0275fac=function(e){return new(e||Ab)(a.Dc(Cn,8),a.Dc(a.r),a.Dc(a.I),a.Dc(a.j),a.Dc(Zl),a.Dc(zb),a.Dc(Pt,8))},Ab.\u0275cmp=a.xc({type:Ab,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,Jb,!0),a.vc(i,Vb,!0)),2&e&&(a.md(n=a.Xc())&&(t._content=n.first),a.md(n=a.Xc())&&(t._allDrawers=n))},viewQuery:function(e,t){var i;1&e&&a.Fd(Jb,!0),2&e&&a.md(i=a.Xc())&&(t._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.oc([{provide:Bb,useExisting:Ab}])],ngContentSelectors:kb,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(a.fd(yb),a.zd(0,bb,1,2,"div",0),a.ed(1),a.ed(2,1),a.zd(3,_b,2,0,"mat-drawer-content",1)),2&e&&(a.gd("ngIf",t.hasBackdrop),a.pc(3),a.gd("ngIf",!t._content))},directives:[yt.t,Jb],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Ab),Ub=((Eb=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o){return _classCallCheck(this,i),t.call(this,e,n,a,r,o)}return i}(Jb)).\u0275fac=function(e){return new(e||Eb)(a.Dc(a.j),a.Dc(Object(a.hb)((function(){return qb}))),a.Dc(a.r),a.Dc(Xl),a.Dc(a.I))},Eb.\u0275cmp=a.xc({type:Eb,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&a.yd("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[a.mc],ngContentSelectors:vb,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.ed(0))},encapsulation:2,changeDetection:0}),Eb),Gb=((Db=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments))._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return _createClass(i,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=fi(e)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=mi(e)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=mi(e)}}]),i}(Vb)).\u0275fac=function(e){return Wb(e||Db)},Db.\u0275cmp=a.xc({type:Db,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(a.qc("align",null),a.yd("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),a.tc("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[a.mc],ngContentSelectors:vb,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div",0),a.ed(1),a.Ic())},encapsulation:2,data:{animation:[Ib.transformDrawer]},changeDetection:0}),Db),Wb=a.Lc(Gb),qb=((Rb=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Hb)).\u0275fac=function(e){return $b(e||Rb)},Rb.\u0275cmp=a.xc({type:Rb,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,Ub,!0),a.vc(i,Gb,!0)),2&e&&(a.md(n=a.Xc())&&(t._content=n.first),a.md(n=a.Xc())&&(t._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[a.oc([{provide:Bb,useExisting:Rb}]),a.mc],ngContentSelectors:Sb,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,t){1&e&&(a.fd(xb),a.zd(0,wb,1,2,"div",0),a.ed(1),a.ed(2,1),a.zd(3,Cb,2,0,"mat-sidenav-content",1)),2&e&&(a.gd("ngIf",t.hasBackdrop),a.pc(3),a.gd("ngIf",!t._content))},directives:[yt.t,Ub,Yl],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Rb),$b=a.Lc(qb),Kb=((Mb=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Mb}),Mb.\u0275inj=a.Ac({factory:function(e){return new(e||Mb)},imports:[[yt.c,Bn,Ql,Oi],Bn]}),Mb),Xb=["thumbContainer"],Yb=["toggleBar"],Zb=["input"],Qb=function(){return{enterDuration:150}},e_=["*"],t_=new a.x("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),i_=0,n_={provide:fr,useExisting:Object(a.hb)((function(){return o_})),multi:!0},a_=function e(t,i){_classCallCheck(this,e),this.source=t,this.checked=i},r_=Un(Vn(Hn(Jn((function e(t){_classCallCheck(this,e),this._elementRef=t}))),"accent")),o_=((Lb=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l,u){var d;return _classCallCheck(this,i),(d=t.call(this,e))._focusMonitor=n,d._changeDetectorRef=r,d.defaults=c,d._animationMode=l,d._onChange=function(e){},d._onTouched=function(){},d._uniqueId="mat-slide-toggle-".concat(++i_),d._required=!1,d._checked=!1,d.name=null,d.id=d._uniqueId,d.labelPosition="after",d.ariaLabel=null,d.ariaLabelledby=null,d.change=new a.u,d.toggleChange=new a.u,d.dragChange=new a.u,d.tabIndex=parseInt(o)||0,d}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(t){"keyboard"===t||"program"===t?e._inputElement.nativeElement.focus():t||Promise.resolve().then((function(){return e._onTouched()}))}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(e){this._focusMonitor.focusVia(this._inputElement,"keyboard",e)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new a_(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(e){this._required=fi(e)}},{key:"checked",get:function(){return this._checked},set:function(e){this._checked=fi(e),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),i}(r_)).\u0275fac=function(e){return new(e||Lb)(a.Dc(a.r),a.Dc(hn),a.Dc(a.j),a.Tc("tabindex"),a.Dc(a.I),a.Dc(t_),a.Dc(Pt,8),a.Dc(Cn,8))},Lb.\u0275cmp=a.xc({type:Lb,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){var i;1&e&&(a.Fd(Xb,!0),a.Fd(Yb,!0),a.Fd(Zb,!0)),2&e&&(a.md(i=a.Xc())&&(t._thumbEl=i.first),a.md(i=a.Xc())&&(t._thumbBarEl=i.first),a.md(i=a.Xc())&&(t._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(e,t){2&e&&(a.Mc("id",t.id),a.qc("tabindex",t.disabled?null:-1)("aria-label",null)("aria-labelledby",null),a.tc("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[a.oc([n_]),a.mc],ngContentSelectors:e_,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(a.fd(),a.Jc(0,"label",0,1),a.Jc(2,"div",2,3),a.Jc(4,"input",4,5),a.Wc("change",(function(e){return t._onChangeEvent(e)}))("click",(function(e){return t._onInputClick(e)})),a.Ic(),a.Jc(6,"div",6,7),a.Ec(8,"div",8),a.Jc(9,"div",9),a.Ec(10,"div",10),a.Ic(),a.Ic(),a.Ic(),a.Jc(11,"span",11,12),a.Wc("cdkObserveContent",(function(){return t._onLabelTextChange()})),a.Jc(13,"span",13),a.Bd(14,"\xa0"),a.Ic(),a.ed(15),a.Ic(),a.Ic()),2&e){var i=a.nd(1),n=a.nd(12);a.qc("for",t.inputId),a.pc(2),a.tc("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),a.pc(2),a.gd("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),a.qc("name",t.name)("aria-checked",t.checked.toString())("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby),a.pc(5),a.gd("matRippleTrigger",i)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.id(17,Qb))}},directives:[Da,zi],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),Lb),s_={provide:Tr,useExisting:Object(a.hb)((function(){return c_})),multi:!0},c_=((jb=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Xs)).\u0275fac=function(e){return l_(e||jb)},jb.\u0275dir=a.yc({type:jb,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[a.oc([s_]),a.mc]}),jb),l_=a.Lc(c_),u_=((Nb=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Nb}),Nb.\u0275inj=a.Ac({factory:function(e){return new(e||Nb)}}),Nb),d_=((Fb=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Fb}),Fb.\u0275inj=a.Ac({factory:function(e){return new(e||Fb)},imports:[[u_,Ea,Bn,Bi],u_,Bn]}),Fb);function h_(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",1),a.Jc(1,"button",2),a.Wc("click",(function(){return a.rd(i),a.ad().action()})),a.Bd(2),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(2),a.Cd(n.data.action)}}function p_(e,t){}var f_,m_,g_,v_,b_,__,y_,k_=Math.pow(2,31)-1,w_=function(){function e(t,i){var n=this;_classCallCheck(this,e),this._overlayRef=i,this._afterDismissed=new Lt.a,this._afterOpened=new Lt.a,this._onAction=new Lt.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe((function(){return n.dismiss()})),t._onExit.subscribe((function(){return n._finishDismiss()}))}return _createClass(e,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var t=this;this._durationTimeoutId=setTimeout((function(){return t.dismiss()}),Math.min(e,k_))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed.asObservable()}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction.asObservable()}}]),e}(),C_=new a.x("MatSnackBarData"),x_=function e(){_classCallCheck(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},S_=((f_=function(){function e(t,i){_classCallCheck(this,e),this.snackBarRef=t,this.data=i}return _createClass(e,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),e}()).\u0275fac=function(e){return new(e||f_)(a.Dc(w_),a.Dc(C_))},f_.\u0275cmp=a.xc({type:f_,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(a.Jc(0,"span"),a.Bd(1),a.Ic(),a.zd(2,h_,3,1,"div",0)),2&e&&(a.pc(1),a.Cd(t.data.message),a.pc(1),a.gd("ngIf",t.hasAction))},directives:[yt.t,Za],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),f_),I_={snackBarState:o("state",[d("void, hidden",u({transform:"scale(0.8)",opacity:0})),d("visible",u({transform:"scale(1)",opacity:1})),p("* => visible",s("150ms cubic-bezier(0, 0, 0.2, 1)")),p("* => void, * => hidden",s("75ms cubic-bezier(0.4, 0.0, 1, 1)",u({opacity:0})))])},O_=((g_=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this))._ngZone=e,o._elementRef=n,o._changeDetectorRef=a,o.snackBarConfig=r,o._destroyed=!1,o._onExit=new Lt.a,o._onEnter=new Lt.a,o._animationState="void",o.attachDomPortal=function(e){return o._assertNotAttached(),o._applySnackBarClasses(),o._portalOutlet.attachDomPortal(e)},o._role="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?null:"status":"alert",o}return _createClass(i,[{key:"attachComponentPortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}},{key:"onAnimationEnd",value:function(e){var t=e.fromState,i=e.toState;if(("void"===i&&"void"!==t||"hidden"===i)&&this._completeExit(),"visible"===i){var n=this._onEnter;this._ngZone.run((function(){n.next(),n.complete()}))}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var e=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(ui(1)).subscribe((function(){e._onExit.next(),e._onExit.complete()}))}},{key:"_applySnackBarClasses",value:function(){var e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach((function(t){return e.classList.add(t)})):e.classList.add(t)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}]),i}(lu)).\u0275fac=function(e){return new(e||g_)(a.Dc(a.I),a.Dc(a.r),a.Dc(a.j),a.Dc(x_))},g_.\u0275cmp=a.xc({type:g_,selectors:[["snack-bar-container"]],viewQuery:function(e,t){var i;1&e&&a.xd(hu,!0),2&e&&a.md(i=a.Xc())&&(t._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(e,t){1&e&&a.uc("@state.done",(function(e){return t.onAnimationEnd(e)})),2&e&&(a.qc("role",t._role),a.Ed("@state",t._animationState))},features:[a.mc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&a.zd(0,p_,0,0,"ng-template",0)},directives:[hu],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[I_.snackBarState]}}),g_),D_=((m_=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:m_}),m_.\u0275inj=a.Ac({factory:function(e){return new(e||m_)},imports:[[id,mu,yt.c,er,Bn],Bn]}),m_),E_=new a.x("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new x_}}),A_=((v_=function(){function e(t,i,n,a,r,o){_classCallCheck(this,e),this._overlay=t,this._live=i,this._injector=n,this._breakpointObserver=a,this._parentSnackBar=r,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return _createClass(e,[{key:"openFromComponent",value:function(e,t){return this._attach(e,t)}},{key:"openFromTemplate",value:function(e,t){return this._attach(e,t)}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:e,action:t},n.announcementMessage||(n.announcementMessage=e),this.openFromComponent(S_,n)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,t){var i=new gu(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[x_,t]])),n=new ou(O_,t.viewContainerRef,i),a=e.attach(n);return a.instance.snackBarConfig=t,a.instance}},{key:"_attach",value:function(e,t){var i=Object.assign(Object.assign(Object.assign({},new x_),this._defaultConfig),t),n=this._createOverlay(i),r=this._attachSnackBarContainer(n,i),o=new w_(r,n);if(e instanceof a.Y){var s=new su(e,null,{$implicit:i.data,snackBarRef:o});o.instance=r.attachTemplatePortal(s)}else{var c=this._createInjector(i,o),l=new ou(e,void 0,c),u=r.attachComponentPortal(l);o.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(Ol(n.detachments())).subscribe((function(e){var t=n.overlayElement.classList;e.matches?t.add("mat-snack-bar-handset"):t.remove("mat-snack-bar-handset")})),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,t){var i=this;e.afterDismissed().subscribe((function(){i._openedSnackBarRef==e&&(i._openedSnackBarRef=null),t.announcementMessage&&i._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){e.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe((function(){return e._dismissAfter(t.duration)})),t.announcementMessage&&this._live.announce(t.announcementMessage,t.politeness)}},{key:"_createOverlay",value:function(e){var t=new Iu;t.direction=e.direction;var i=this._overlay.position().global(),n="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!n||"end"===e.horizontalPosition&&n,r=!a&&"center"!==e.horizontalPosition;return a?i.left("0"):r?i.right("0"):i.centerHorizontally(),"top"===e.verticalPosition?i.top("0"):i.bottom("0"),t.positionStrategy=i,this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){return new gu(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[w_,t],[C_,e.data]]))}},{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}}]),e}()).\u0275fac=function(e){return new(e||v_)(a.Sc(Xu),a.Sc(ln),a.Sc(a.y),a.Sc(ev),a.Sc(v_,12),a.Sc(E_))},v_.\u0275prov=Object(a.zc)({factory:function(){return new v_(Object(a.Sc)(Xu),Object(a.Sc)(ln),Object(a.Sc)(a.v),Object(a.Sc)(ev),Object(a.Sc)(v_,12),Object(a.Sc)(E_))},token:v_,providedIn:D_}),v_),T_=["*",[["mat-toolbar-row"]]],P_=["*","mat-toolbar-row"],R_=Vn((function e(t){_classCallCheck(this,e),this._elementRef=t})),M_=((y_=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||y_)},y_.\u0275dir=a.yc({type:y_,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),y_),L_=((__=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e))._platform=n,r._document=a,r}return _createClass(i,[{key:"ngAfterViewInit",value:function(){var e=this;Object(a.jb)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return e._checkToolbarMixedModes()})))}},{key:"_checkToolbarMixedModes",value:function(){var e=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(e){return!(e.classList&&e.classList.contains("mat-toolbar-row"))})).filter((function(t){return t.nodeType!==(e._document?e._document.COMMENT_NODE:8)})).some((function(e){return!(!e.textContent||!e.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()}}]),i}(R_)).\u0275fac=function(e){return new(e||__)(a.Dc(a.r),a.Dc(Ii),a.Dc(yt.e))},__.\u0275cmp=a.xc({type:__,selectors:[["mat-toolbar"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,M_,!0),2&e&&a.md(n=a.Xc())&&(t._toolbarRows=n)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&a.tc("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.mc],ngContentSelectors:P_,decls:2,vars:0,template:function(e,t){1&e&&(a.fd(T_),a.ed(0),a.ed(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),__),j_=((b_=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:b_}),b_.\u0275inj=a.Ac({factory:function(e){return new(e||b_)},imports:[[Bn],Bn]}),b_);function F_(e,t){1&e&&a.ed(0)}var N_=["*"];function z_(e,t){}var B_=function(e){return{animationDuration:e}},J_=function(e,t){return{value:e,params:t}},V_=["tabBodyWrapper"],H_=["tabHeader"];function U_(e,t){}function G_(e,t){if(1&e&&a.zd(0,U_,0,0,"ng-template",9),2&e){var i=a.ad().$implicit;a.gd("cdkPortalOutlet",i.templateLabel)}}function W_(e,t){if(1&e&&a.Bd(0),2&e){var i=a.ad().$implicit;a.Cd(i.textLabel)}}function q_(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",6),a.Wc("click",(function(){a.rd(i);var e=t.$implicit,n=t.index,r=a.ad(),o=a.nd(1);return r._handleClick(e,o,n)})),a.Jc(1,"div",7),a.zd(2,G_,1,1,"ng-template",8),a.zd(3,W_,1,1,"ng-template",8),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit,r=t.index,o=a.ad();a.tc("mat-tab-label-active",o.selectedIndex==r),a.gd("id",o._getTabLabelId(r))("disabled",n.disabled)("matRippleDisabled",n.disabled||o.disableRipple),a.qc("tabIndex",o._getTabIndex(n,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),a.pc(2),a.gd("ngIf",n.templateLabel),a.pc(1),a.gd("ngIf",!n.templateLabel)}}function $_(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-tab-body",10),a.Wc("_onCentered",(function(){return a.rd(i),a.ad()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return a.rd(i),a.ad()._setTabBodyWrapperHeight(e)})),a.Ic()}if(2&e){var n=t.$implicit,r=t.index,o=a.ad();a.tc("mat-tab-body-active",o.selectedIndex==r),a.gd("id",o._getTabContentId(r))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",o.animationDuration),a.qc("aria-labelledby",o._getTabLabelId(r))}}var K_,X_,Y_,Z_,Q_,ey,ty,iy,ny,ay,ry,oy,sy,cy,ly,uy,dy,hy,py=["tabListContainer"],fy=["tabList"],my=["nextPaginator"],gy=["previousPaginator"],vy=["mat-tab-nav-bar",""],by=new a.x("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),_y=((Y_=function(){function e(t,i,n,a){_classCallCheck(this,e),this._elementRef=t,this._ngZone=i,this._inkBarPositioner=n,this._animationMode=a}return _createClass(e,[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t._setStyles(e)}))})):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),i=this._elementRef.nativeElement;i.style.left=t.left,i.style.width=t.width}}]),e}()).\u0275fac=function(e){return new(e||Y_)(a.Dc(a.r),a.Dc(a.I),a.Dc(by),a.Dc(Pt,8))},Y_.\u0275dir=a.yc({type:Y_,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),Y_),yy=((X_=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||X_)(a.Dc(a.Y))},X_.\u0275dir=a.yc({type:X_,selectors:[["","matTabContent",""]]}),X_),ky=((K_=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(du)).\u0275fac=function(e){return wy(e||K_)},K_.\u0275dir=a.yc({type:K_,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.mc]}),K_),wy=a.Lc(ky),Cy=Jn((function e(){_classCallCheck(this,e)})),xy=new a.x("MAT_TAB_GROUP"),Sy=((Z_=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this))._viewContainerRef=e,a._closestTabGroup=n,a.textLabel="",a._contentPortal=null,a._stateChanges=new Lt.a,a.position=null,a.origin=null,a.isActive=!1,a}return _createClass(i,[{key:"ngOnChanges",value:function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new su(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){e&&(this._templateLabel=e)}},{key:"content",get:function(){return this._contentPortal}}]),i}(Cy)).\u0275fac=function(e){return new(e||Z_)(a.Dc(a.cb),a.Dc(xy,8))},Z_.\u0275cmp=a.xc({type:Z_,selectors:[["mat-tab"]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,ky,!0),a.wd(i,yy,!0,a.Y)),2&e&&(a.md(n=a.Xc())&&(t.templateLabel=n.first),a.md(n=a.Xc())&&(t._explicitContent=n.first))},viewQuery:function(e,t){var i;1&e&&a.xd(a.Y,!0),2&e&&a.md(i=a.Xc())&&(t._implicitContent=i.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.mc,a.nc],ngContentSelectors:N_,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.zd(0,F_,1,0,"ng-template"))},encapsulation:2}),Z_),Iy={translateTab:o("translateTab",[d("center, void, left-origin-center, right-origin-center",u({transform:"none"})),d("left",u({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),d("right",u({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),p("* => left, * => right, left => center, right => center",s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),p("void => left-origin-center",[u({transform:"translate3d(-100%, 0, 0)"}),s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),p("void => right-origin-center",[u({transform:"translate3d(100%, 0, 0)"}),s("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Oy=((ty=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e,n,r))._host=a,o._centeringSub=jt.a.EMPTY,o._leavingSub=jt.a.EMPTY,o}return _createClass(i,[{key:"ngOnInit",value:function(){var e=this;_get(_getPrototypeOf(i.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(An(this._host._isCenterPosition(this._host._position))).subscribe((function(t){t&&!e.hasAttached()&&e.attach(e._host._content)})),this._leavingSub=this._host._afterLeavingCenter.subscribe((function(){e.detach()}))}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),i}(hu)).\u0275fac=function(e){return new(e||ty)(a.Dc(a.n),a.Dc(a.cb),a.Dc(Object(a.hb)((function(){return Ey}))),a.Dc(yt.e))},ty.\u0275dir=a.yc({type:ty,selectors:[["","matTabBodyHost",""]],features:[a.mc]}),ty),Dy=((ey=function(){function e(t,i,n){var r=this;_classCallCheck(this,e),this._elementRef=t,this._dir=i,this._dirChangeSubscription=jt.a.EMPTY,this._translateTabComplete=new Lt.a,this._onCentering=new a.u,this._beforeCentering=new a.u,this._afterLeavingCenter=new a.u,this._onCentered=new a.u(!0),this.animationDuration="500ms",i&&(this._dirChangeSubscription=i.change.subscribe((function(e){r._computePositionAnimationState(e),n.markForCheck()}))),this._translateTabComplete.pipe(gl((function(e,t){return e.fromState===t.fromState&&e.toState===t.toState}))).subscribe((function(e){r._isCenterPosition(e.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(e.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()}))}return _createClass(e,[{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}},{key:"_computePositionAnimationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(e){var t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}},{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}}]),e}()).\u0275fac=function(e){return new(e||ey)(a.Dc(a.r),a.Dc(Cn,8),a.Dc(a.j))},ey.\u0275dir=a.yc({type:ey,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),ey),Ey=((Q_=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){return _classCallCheck(this,i),t.call(this,e,n,a)}return i}(Dy)).\u0275fac=function(e){return new(e||Q_)(a.Dc(a.r),a.Dc(Cn,8),a.Dc(a.j))},Q_.\u0275cmp=a.xc({type:Q_,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var i;1&e&&a.Fd(pu,!0),2&e&&a.md(i=a.Xc())&&(t._portalHost=i.first)},hostAttrs:[1,"mat-tab-body"],features:[a.mc],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(a.Jc(0,"div",0,1),a.Wc("@translateTab.start",(function(e){return t._onTranslateTabStarted(e)}))("@translateTab.done",(function(e){return t._translateTabComplete.next(e)})),a.zd(2,z_,0,0,"ng-template",2),a.Ic()),2&e&&a.gd("@translateTab",a.kd(3,J_,t._position,a.jd(1,B_,t.animationDuration)))},directives:[Oy],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Iy.translateTab]}}),Q_),Ay=new a.x("MAT_TABS_CONFIG"),Ty=0,Py=function e(){_classCallCheck(this,e)},Ry=Vn(Hn((function e(t){_classCallCheck(this,e),this._elementRef=t})),"primary"),My=((ny=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o){var s;return _classCallCheck(this,i),(s=t.call(this,e))._changeDetectorRef=n,s._animationMode=o,s._tabs=new a.O,s._indexToSelect=0,s._tabBodyWrapperHeight=0,s._tabsSubscription=jt.a.EMPTY,s._tabLabelSubscription=jt.a.EMPTY,s._dynamicHeight=!1,s._selectedIndex=null,s.headerPosition="above",s.selectedIndexChange=new a.u,s.focusChange=new a.u,s.animationDone=new a.u,s.selectedTabChange=new a.u(!0),s._groupId=Ty++,s.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",s.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,s}return _createClass(i,[{key:"ngAfterContentChecked",value:function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var i=null==this._selectedIndex;i||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then((function(){e._tabs.forEach((function(e,i){return e.isActive=i===t})),i||e.selectedIndexChange.emit(t)}))}this._tabs.forEach((function(i,n){i.position=n-t,null==e._selectedIndex||0!=i.position||i.origin||(i.origin=t-e._selectedIndex)})),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),i=0;i.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),iy),jy=Jn((function e(){_classCallCheck(this,e)})),Fy=((ay=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this)).elementRef=e,n}return _createClass(i,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),i}(jy)).\u0275fac=function(e){return new(e||ay)(a.Dc(a.r))},ay.\u0275dir=a.yc({type:ay,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(a.qc("aria-disabled",!!t.disabled),a.tc("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[a.mc]}),ay),Ny=Ai({passive:!0}),zy=((ly=function(){function e(t,i,n,r,o,s,c){var l=this;_classCallCheck(this,e),this._elementRef=t,this._changeDetectorRef=i,this._viewportRuler=n,this._dir=r,this._ngZone=o,this._platform=s,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Lt.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Lt.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.u,this.indexFocused=new a.u,o.runOutsideAngular((function(){rl(t.nativeElement,"mouseleave").pipe(Ol(l._destroyed)).subscribe((function(){l._stopInterval()}))}))}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this;rl(this._previousPaginator.nativeElement,"touchstart",Ny).pipe(Ol(this._destroyed)).subscribe((function(){e._handlePaginatorPress("before")})),rl(this._nextPaginator.nativeElement,"touchstart",Ny).pipe(Ol(this._destroyed)).subscribe((function(){e._handlePaginatorPress("after")}))}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:Bt(null),i=this._viewportRuler.change(150),n=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new Xi(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(al.a)(t,i,this._items.changes).pipe(Ol(this._destroyed)).subscribe((function(){n(),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())})),this._keyManager.change.pipe(Ol(this._destroyed)).subscribe((function(t){e.indexFocused.emit(t),e._setTabFocus(t)}))}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!Jt(e))switch(e.keyCode){case 36:this._keyManager.setFirstItemActive(),e.preventDefault();break;case 35:this._keyManager.setLastItemActive(),e.preventDefault();break;case 13:case 32:this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e);break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run((function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()})))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement,i=this._getLayoutDirection();t.scrollLeft="ltr"==i?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t=this._platform,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(i),"px)"),t&&(t.TRIDENT||t.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var i,n,a=this._tabListContainer.nativeElement.offsetWidth,r=t.elementRef.nativeElement,o=r.offsetLeft,s=r.offsetWidth;"ltr"==this._getLayoutDirection()?n=(i=o)+s:i=(n=this._tabList.nativeElement.offsetWidth-o)-s;var c=this.scrollDistance,l=this.scrollDistance+a;il&&(this.scrollDistance+=n-l+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var i=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),xl(650,100).pipe(Ol(Object(al.a)(this._stopScrolling,this._destroyed))).subscribe((function(){var t=i._scrollHeader(e),n=t.maxScrollDistance,a=t.distance;(0===a||a>=n)&&i._stopInterval()})))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=mi(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}}]),e}()).\u0275fac=function(e){return new(e||ly)(a.Dc(a.r),a.Dc(a.j),a.Dc(Zl),a.Dc(Cn,8),a.Dc(a.I),a.Dc(Ii),a.Dc(Pt,8))},ly.\u0275dir=a.yc({type:ly,inputs:{disablePagination:"disablePagination"}}),ly),By=((cy=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s,c){var l;return _classCallCheck(this,i),(l=t.call(this,e,n,a,r,o,s,c))._disableRipple=!1,l}return _createClass(i,[{key:"_itemSelected",value:function(e){e.preventDefault()}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=fi(e)}}]),i}(zy)).\u0275fac=function(e){return new(e||cy)(a.Dc(a.r),a.Dc(a.j),a.Dc(Zl),a.Dc(Cn,8),a.Dc(a.I),a.Dc(Ii),a.Dc(Pt,8))},cy.\u0275dir=a.yc({type:cy,inputs:{disableRipple:"disableRipple"},features:[a.mc]}),cy),Jy=((sy=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s,c){return _classCallCheck(this,i),t.call(this,e,n,a,r,o,s,c)}return i}(By)).\u0275fac=function(e){return new(e||sy)(a.Dc(a.r),a.Dc(a.j),a.Dc(Zl),a.Dc(Cn,8),a.Dc(a.I),a.Dc(Ii),a.Dc(Pt,8))},sy.\u0275cmp=a.xc({type:sy,selectors:[["mat-tab-header"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,Fy,!1),2&e&&a.md(n=a.Xc())&&(t._items=n)},viewQuery:function(e,t){var i;1&e&&(a.xd(_y,!0),a.xd(py,!0),a.xd(fy,!0),a.Fd(my,!0),a.Fd(gy,!0)),2&e&&(a.md(i=a.Xc())&&(t._inkBar=i.first),a.md(i=a.Xc())&&(t._tabListContainer=i.first),a.md(i=a.Xc())&&(t._tabList=i.first),a.md(i=a.Xc())&&(t._nextPaginator=i.first),a.md(i=a.Xc())&&(t._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&a.tc("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.mc],ngContentSelectors:N_,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div",0,1),a.Wc("click",(function(){return t._handlePaginatorClick("before")}))("mousedown",(function(e){return t._handlePaginatorPress("before",e)}))("touchend",(function(){return t._stopInterval()})),a.Ec(2,"div",2),a.Ic(),a.Jc(3,"div",3,4),a.Wc("keydown",(function(e){return t._handleKeydown(e)})),a.Jc(5,"div",5,6),a.Wc("cdkObserveContent",(function(){return t._onContentChanges()})),a.Jc(7,"div",7),a.ed(8),a.Ic(),a.Ec(9,"mat-ink-bar"),a.Ic(),a.Ic(),a.Jc(10,"div",8,9),a.Wc("mousedown",(function(e){return t._handlePaginatorPress("after",e)}))("click",(function(){return t._handlePaginatorClick("after")}))("touchend",(function(){return t._stopInterval()})),a.Ec(12,"div",2),a.Ic()),2&e&&(a.tc("mat-tab-header-pagination-disabled",t._disableScrollBefore),a.gd("matRippleDisabled",t._disableScrollBefore||t.disableRipple),a.pc(5),a.tc("_mat-animation-noopable","NoopAnimations"===t._animationMode),a.pc(5),a.tc("mat-tab-header-pagination-disabled",t._disableScrollAfter),a.gd("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[Da,zi,_y],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center] .mat-tab-labels{justify-content:center}[mat-align-tabs=end] .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),sy),Vy=((oy=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s,c){var l;return _classCallCheck(this,i),(l=t.call(this,e,r,o,n,a,s,c))._disableRipple=!1,l.color="primary",l}return _createClass(i,[{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var e=this;this._items.changes.pipe(An(null),Ol(this._destroyed)).subscribe((function(){e.updateActiveLink()})),_get(_getPrototypeOf(i.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(e){if(this._items){for(var t=this._items.toArray(),i=0;i1),a.pc(1),a.gd("ngIf",i._displayedPageSizeOptions.length<=1)}}function Zy(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",21),a.Wc("click",(function(){return a.rd(i),a.ad().firstPage()})),a.Zc(),a.Jc(1,"svg",7),a.Ec(2,"path",22),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.gd("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),a.qc("aria-label",n._intl.firstPageLabel)}}function Qy(e,t){if(1&e){var i=a.Kc();a.Zc(),a.Yc(),a.Jc(0,"button",23),a.Wc("click",(function(){return a.rd(i),a.ad().lastPage()})),a.Zc(),a.Jc(1,"svg",7),a.Ec(2,"path",24),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.gd("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),a.qc("aria-label",n._intl.lastPageLabel)}}var ek,tk,ik,nk=((ek=function e(){_classCallCheck(this,e),this.changes=new Lt.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,i){if(0==i||0==t)return"0 of ".concat(i);var n=e*t;return"".concat(n+1," \u2013 ").concat(n<(i=Math.max(i,0))?Math.min(n+t,i):n+t," of ").concat(i)}}).\u0275fac=function(e){return new(e||ek)},ek.\u0275prov=Object(a.zc)({factory:function(){return new ek},token:ek,providedIn:"root"}),ek),ak={provide:nk,deps:[[new a.J,new a.U,nk]],useFactory:function(e){return e||new nk}},rk=new a.x("MAT_PAGINATOR_DEFAULT_OPTIONS"),ok=Jn(Wn((function e(){_classCallCheck(this,e)}))),sk=((ik=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r){var o;if(_classCallCheck(this,i),(o=t.call(this))._intl=e,o._changeDetectorRef=n,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new a.u,o._intlChanges=e.changes.subscribe((function(){return o._changeDetectorRef.markForCheck()})),r){var s=r.pageSize,c=r.pageSizeOptions,l=r.hidePageSize,u=r.showFirstLastButtons;null!=s&&(o._pageSize=s),null!=c&&(o._pageSizeOptions=c),null!=l&&(o._hidePageSize=l),null!=u&&(o._showFirstLastButtons=u)}return _possibleConstructorReturn(o)}return _createClass(i,[{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex++,this._emitPageEvent(e)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex--,this._emitPageEvent(e)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex=a.length&&(r=0),a[r]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"direction",get:function(){return this._direction},set:function(e){if(Object(a.jb)()&&e&&"asc"!==e&&"desc"!==e)throw function(e){return Error("".concat(e," is not a valid sort direction ('asc' or 'desc')."))}(e);this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=fi(e)}}]),i}(gk)).\u0275fac=function(e){return bk(e||dk)},dk.\u0275dir=a.yc({type:dk,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[a.mc,a.nc]}),dk),bk=a.Lc(vk),_k=Fn.ENTERING+" "+jn.STANDARD_CURVE,yk={indicator:o("indicator",[d("active-asc, asc",u({transform:"translateY(0px)"})),d("active-desc, desc",u({transform:"translateY(10px)"})),p("active-asc <=> active-desc",s(_k))]),leftPointer:o("leftPointer",[d("active-asc, asc",u({transform:"rotate(-45deg)"})),d("active-desc, desc",u({transform:"rotate(45deg)"})),p("active-asc <=> active-desc",s(_k))]),rightPointer:o("rightPointer",[d("active-asc, asc",u({transform:"rotate(45deg)"})),d("active-desc, desc",u({transform:"rotate(-45deg)"})),p("active-asc <=> active-desc",s(_k))]),arrowOpacity:o("arrowOpacity",[d("desc-to-active, asc-to-active, active",u({opacity:1})),d("desc-to-hint, asc-to-hint, hint",u({opacity:.54})),d("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",u({opacity:0})),p("* => asc, * => desc, * => active, * => hint, * => void",s("0ms")),p("* <=> *",s(_k))]),arrowPosition:o("arrowPosition",[p("* => desc-to-hint, * => desc-to-active",s(_k,h([u({transform:"translateY(-25%)"}),u({transform:"translateY(0)"})]))),p("* => hint-to-desc, * => active-to-desc",s(_k,h([u({transform:"translateY(0)"}),u({transform:"translateY(25%)"})]))),p("* => asc-to-hint, * => asc-to-active",s(_k,h([u({transform:"translateY(25%)"}),u({transform:"translateY(0)"})]))),p("* => hint-to-asc, * => active-to-asc",s(_k,h([u({transform:"translateY(0)"}),u({transform:"translateY(-25%)"})]))),d("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",u({transform:"translateY(0)"})),d("hint-to-desc, active-to-desc, desc",u({transform:"translateY(-25%)"})),d("hint-to-asc, active-to-asc, asc",u({transform:"translateY(25%)"}))]),allowChildren:o("allowChildren",[p("* <=> *",[m("@*",f(),{optional:!0})])])},kk=((hk=function e(){_classCallCheck(this,e),this.changes=new Lt.a,this.sortButtonLabel=function(e){return"Change sorting for ".concat(e)}}).\u0275fac=function(e){return new(e||hk)},hk.\u0275prov=Object(a.zc)({factory:function(){return new hk},token:hk,providedIn:"root"}),hk),wk={provide:kk,deps:[[new a.J,new a.U,kk]],useFactory:function(e){return e||new kk}},Ck=Jn((function e(){_classCallCheck(this,e)})),xk=((fk=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s){var c;if(_classCallCheck(this,i),(c=t.call(this))._intl=e,c._sort=a,c._columnDef=r,c._focusMonitor=o,c._elementRef=s,c._showIndicatorHint=!1,c._arrowDirection="",c._disableViewStateAnimation=!1,c.arrowPosition="after",!a)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return c._rerenderSubscription=Object(al.a)(a.sortChange,a._stateChanges,e.changes).subscribe((function(){c._isSorted()&&c._updateArrowDirection(),!c._isSorted()&&c._viewState&&"active"===c._viewState.toState&&(c._disableViewStateAnimation=!1,c._setAnimationTransitionState({fromState:"active",toState:c._arrowDirection})),n.markForCheck()})),o&&s&&o.monitor(s,!0).subscribe((function(e){return c._setIndicatorHintVisible(!!e)})),_possibleConstructorReturn(c)}return _createClass(i,[{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._elementRef&&this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e,this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_handleClick",value:function(){if(!this._isDisabled()){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var e=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(e),this._showIndicatorHint=!1}}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=fi(e)}}]),i}(Ck)).\u0275fac=function(e){return new(e||fk)(a.Dc(kk),a.Dc(a.j),a.Dc(vk,8),a.Dc("MAT_SORT_HEADER_COLUMN_DEF",8),a.Dc(hn),a.Dc(a.r))},fk.\u0275cmp=a.xc({type:fk,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t._handleClick()}))("mouseenter",(function(){return t._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return t._setIndicatorHintVisible(!1)})),2&e&&(a.qc("aria-sort",t._getAriaSortAttribute()),a.tc("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[a.mc],attrs:lk,ngContentSelectors:mk,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button","mat-focus-indicator"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div",0),a.Jc(1,"button",1),a.ed(2),a.Ic(),a.zd(3,uk,6,6,"div",2),a.Ic()),2&e&&(a.tc("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),a.pc(1),a.qc("disabled",t._isDisabled()||null)("aria-label",t._intl.sortButtonLabel(t.id)),a.pc(2),a.gd("ngIf",t._renderArrow()))},directives:[yt.t],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor;position:relative}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-button,[mat-sort-header].cdk-program-focused .mat-sort-header-button{border-bottom:solid 1px currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[yk.indicator,yk.leftPointer,yk.rightPointer,yk.arrowOpacity,yk.arrowPosition,yk.allowChildren]},changeDetection:0}),fk),Sk=((pk=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:pk}),pk.\u0275inj=a.Ac({factory:function(e){return new(e||pk)},providers:[wk],imports:[[yt.c]]}),pk),Ik=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this))._value=e,n}return _createClass(i,[{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(i.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Wl.a;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(i.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),i}(Lt.a),Ok=[[["caption"]]],Dk=["caption"];function Ek(e,t){if(1&e&&(a.Jc(0,"th",3),a.Bd(1),a.Ic()),2&e){var i=a.ad();a.yd("text-align",i.justify),a.pc(1),a.Dd(" ",i.headerText," ")}}function Ak(e,t){if(1&e&&(a.Jc(0,"td",4),a.Bd(1),a.Ic()),2&e){var i=t.$implicit,n=a.ad();a.yd("text-align",n.justify),a.pc(1),a.Dd(" ",n.dataAccessor(i,n.name)," ")}}function Tk(e){return function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var n=arguments.length,a=new Array(n),r=0;r3&&void 0!==arguments[3])||arguments[3];_classCallCheck(this,e),this._isNativeHtmlTable=t,this._stickCellCss=i,this.direction=n,this._isBrowser=a}return _createClass(e,[{key:"clearStickyPositioning",value:function(e,t){var i,n=_createForOfIteratorHelper(e);try{for(n.s();!(i=n.n()).done;){var a=i.value;if(a.nodeType===a.ELEMENT_NODE){this._removeStickyStyle(a,t);for(var r=0;r0;a--)t[a]&&(i[a]=n,n+=e[a]);return i}}]),e}();function gw(e){return Error('Could not find column with id "'.concat(e,'".'))}var vw,bw,_w,yw,kw=((yw=function e(t,i){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=i}).\u0275fac=function(e){return new(e||yw)(a.Dc(a.cb),a.Dc(a.r))},yw.\u0275dir=a.yc({type:yw,selectors:[["","rowOutlet",""]]}),yw),ww=((_w=function e(t,i){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=i}).\u0275fac=function(e){return new(e||_w)(a.Dc(a.cb),a.Dc(a.r))},_w.\u0275dir=a.yc({type:_w,selectors:[["","headerRowOutlet",""]]}),_w),Cw=((bw=function e(t,i){_classCallCheck(this,e),this.viewContainer=t,this.elementRef=i}).\u0275fac=function(e){return new(e||bw)(a.Dc(a.cb),a.Dc(a.r))},bw.\u0275dir=a.yc({type:bw,selectors:[["","footerRowOutlet",""]]}),bw),xw=((vw=function(){function e(t,i,n,a,r,o,s){_classCallCheck(this,e),this._differs=t,this._changeDetectorRef=i,this._elementRef=n,this._dir=r,this._platform=s,this._onDestroy=new Lt.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new Ik({start:0,end:Number.MAX_VALUE}),a||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(t,i){return e.trackBy?e.trackBy(i.dataIndex,i.data):i}))}},{key:"ngAfterContentChecked",value:function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),tr(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var i=this._rowOutlet.viewContainer;t.forEachOperation((function(t,n,a){if(null==t.previousIndex)e._insertRow(t.item,a);else if(null==a)i.remove(n);else{var r=i.get(n);i.move(r,a)}})),this._updateRowIndexContext(),t.forEachIdentityChange((function(e){i.get(e.currentIndex).context.$implicit=e.item.data})),this.updateStickyColumnStyles()}}},{key:"setHeaderRowDef",value:function(e){this._customHeaderRowDefs=new Set([e]),this._headerRowDefChanged=!0}},{key:"setFooterRowDef",value:function(e){this._customFooterRowDefs=new Set([e]),this._footerRowDefChanged=!0}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var i=this._headerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach((function(e){return e.resetStickyChanged()}))}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var i=this._footerRowDefs.map((function(e){return e.sticky}));this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach((function(e){return e.resetStickyChanged()}))}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([].concat(_toConsumableArray(t),_toConsumableArray(i),_toConsumableArray(n)),["left","right"]),t.forEach((function(t,i){e._addStickyColumnStyles([t],e._headerRowDefs[i])})),this._rowDefs.forEach((function(t){for(var n=[],a=0;a1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=e[0]}},{key:"_renderUpdatedColumns",value:function(){var e=function(e,t){return e||!!t.getColumnsDiff()};this._rowDefs.reduce(e,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(e,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(e,!1)&&this._forceRenderFooterRows()}},{key:"_switchDataSource",value:function(e){this._data=[],tr(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}},{key:"_observeRenderChanges",value:function(){var e=this;if(this.dataSource){var t,i;if(tr(this.dataSource)?t=this.dataSource.connect(this):(i=this.dataSource)&&(i instanceof si.a||"function"==typeof i.lift&&"function"==typeof i.subscribe)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Bt(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=t.pipe(Ol(this._onDestroy)).subscribe((function(t){e._data=t||[],e.renderRows()}))}}},{key:"_forceRenderHeaderRows",value:function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(t,i){return e._renderRow(e._headerRowOutlet,t,i)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(t,i){return e._renderRow(e._footerRowOutlet,t,i)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var i=this,n=Array.from(t.columns||[]).map((function(e){var t=i._columnDefsByName.get(e);if(!t)throw gw(e);return t})),a=n.map((function(e){return e.sticky})),r=n.map((function(e){return e.stickyEnd}));this._stickyStyler.updateStickyColumns(e,a,r)}},{key:"_getRenderedRows",value:function(e){for(var t=[],i=0;i3&&void 0!==arguments[3]?arguments[3]:{};e.viewContainer.createEmbeddedView(t.template,n,i);var a,r=_createForOfIteratorHelper(this._getCellTemplates(t));try{for(r.s();!(a=r.n()).done;){var o=a.value;uw.mostRecentCellOutlet&&uw.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n)}}catch(s){r.e(s)}finally{r.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,i=e.length;t0&&void 0!==arguments[0]?arguments[0]:[];return _classCallCheck(this,i),(e=t.call(this))._renderData=new Ik([]),e._filter=new Ik(""),e._internalPageChanges=new Lt.a,e._renderChangesSubscription=jt.a.EMPTY,e.sortingDataAccessor=function(e,t){var i=e[t];if(gi(i)){var n=Number(i);return n<9007199254740991?n:i}return i},e.sortData=function(t,i){var n=i.active,a=i.direction;return n&&""!=a?t.sort((function(t,i){var r=e.sortingDataAccessor(t,n),o=e.sortingDataAccessor(i,n),s=0;return null!=r&&null!=o?r>o?s=1:r0)){var n=Math.ceil(i.length/i.pageSize)-1||0,a=Math.min(i.pageIndex,n);a!==i.pageIndex&&(i.pageIndex=a,t._internalPageChanges.next())}}))}},{key:"connect",value:function(){return this._renderData}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e)}},{key:"filter",get:function(){return this._filter.value},set:function(e){this._filter.next(e)}},{key:"sort",get:function(){return this._sort},set:function(e){this._sort=e,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(e){this._paginator=e,this._updateChangeSubscription()}}]),i}(function(){return function e(){_classCallCheck(this,e)}}());function SC(e){var t=e.subscriber,i=e.counter,n=e.period;t.next(i),this.schedule({subscriber:t,counter:i+1,period:n},n)}function IC(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function OC(e,t){var i=t?"":"none";IC(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function DC(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function EC(e,t){return e.getPropertyValue(t).split(",").map((function(e){return e.trim()}))}var AC=Ai({passive:!0}),TC=Ai({passive:!1}),PC=function(){function e(t,i,n,a,r,o){var s=this;_classCallCheck(this,e),this._config=i,this._document=n,this._ngZone=a,this._viewportRuler=r,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new Lt.a,this._pointerMoveSubscription=jt.a.EMPTY,this._pointerUpSubscription=jt.a.EMPTY,this._scrollSubscription=jt.a.EMPTY,this._resizeSubscription=jt.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Lt.a,this.started=new Lt.a,this.released=new Lt.a,this.ended=new Lt.a,this.entered=new Lt.a,this.exited=new Lt.a,this.dropped=new Lt.a,this.moved=this._moveEvents.asObservable(),this._pointerDown=function(e){if(s.beforeStarted.next(),s._handles.length){var t=s._handles.find((function(t){var i=e.target;return!!i&&(i===t||t.contains(i))}));!t||s._disabledHandles.has(t)||s.disabled||s._initializeDragSequence(t,e)}else s.disabled||s._initializeDragSequence(s._rootElement,e)},this._pointerMove=function(e){if(e.preventDefault(),s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect()));var t=s._getConstrainedPointerPosition(e);if(s._hasMoved=!0,s._updatePointerDirectionDelta(t),s._dropContainer)s._updateActiveDropContainer(t);else{var i=s._activeTransform;i.x=t.x-s._pickupPositionOnPage.x+s._passiveTransform.x,i.y=t.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(i.x," ").concat(i.y,")"))}s._moveEvents.observers.length&&s._ngZone.run((function(){s._moveEvents.next({source:s,pointerPosition:t,event:e,distance:s._getDragDistance(t),delta:s._pointerDirectionDelta})}))}else{var n=s._getPointerPositionOnPage(e);if(Math.abs(n.x-s._pickupPositionOnPage.x)+Math.abs(n.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){if(!(Date.now()>=s._dragStartTime+s._getDragStartDelay(e)))return void s._endDragSequence(e);s._dropContainer&&s._dropContainer.isDragging()||(s._hasStartedDragging=!0,s._ngZone.run((function(){return s._startDragSequence(e)})))}}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t),o.registerDragItem(this)}return _createClass(e,[{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){return this._handles=e.map((function(e){return _i(e)})),this._handles.forEach((function(e){return OC(e,!1)})),this._toggleNativeDragInteractions(),this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=_i(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),t.addEventListener("mousedown",this._pointerDown,TC),t.addEventListener("touchstart",this._pointerDown,AC),this._initialTransform=void 0,this._rootElement=t),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?_i(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return t._containInsideBoundaryOnResize()}))),this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&jC(this._rootElement),jC(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){this._handles.indexOf(e)>-1&&this._disabledHandles.add(e)}},{key:"enableHandle",value:function(e){this._disabledHandles.delete(e)}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._pointerPositionAtLastDirectionChange;e&&this._dropContainer&&this._updateActiveDropContainer(e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&jC(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&jC(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){t.ended.next({source:t,distance:t._getDragDistance(t._getPointerPositionOnPage(e))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(e){if(this.started.next({source:this}),FC(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){var t=this._rootElement,i=t.parentNode,n=this._preview=this._createPreviewElement(),a=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(r,t),t.style.display="none",this._document.body.appendChild(i.replaceChild(a,t)),(o=this._document,o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body).appendChild(n),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var o}},{key:"_initializeDragSequence",value:function(e,t){var i=this;t.stopPropagation();var n=this.isDragging(),a=FC(t),r=!a&&0!==t.button,o=this._rootElement,s=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(n||r||s)){this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor,o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(An(null)).subscribe((function(){i._scrollPosition=i._viewportRuler.getViewportScrollPosition()})),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());var c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var l=this._pickupPositionOnPage=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var i=t._dropContainer,n=i.getItemIndex(t),a=t._getPointerPositionOnPage(e),r=t._getDragDistance(t._getPointerPositionOnPage(e)),o=i._isOverContainer(a.x,a.y);t.ended.next({source:t,distance:r}),t.dropped.next({item:t,currentIndex:n,previousIndex:t._initialIndex,container:i,previousContainer:t._initialContainer,isPointerOverContainer:o,distance:r}),i.drop(t,n,t._initialContainer,o,r,t._initialIndex),t._dropContainer=t._initialContainer}))}},{key:"_updateActiveDropContainer",value:function(e){var t=this,i=e.x,n=e.y,a=this._initialContainer._getSiblingContainerFromPosition(this,i,n);!a&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,n)&&(a=this._initialContainer),a&&a!==this._dropContainer&&this._ngZone.run((function(){t.exited.next({item:t,container:t._dropContainer}),t._dropContainer.exit(t),t._dropContainer=a,t._dropContainer.enter(t,i,n,a===t._initialContainer&&a.sortingDisabled?t._initialIndex:void 0),t.entered.next({item:t,container:a,currentIndex:a.getItemIndex(t)})})),this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,i,n,this._pointerDirectionDelta),this._preview.style.transform=RC(i-this._pickupPositionInElement.x,n-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,i=this.previewClass,n=t?t.template:null;if(n){var a=t.viewContainer.createEmbeddedView(n,t.context);a.detectChanges(),e=NC(a,this._document),this._previewRef=a,t.matchSize?zC(e,this._rootElement):e.style.transform=RC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var r=this._rootElement;zC(e=MC(r),r)}return IC(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),OC(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach((function(t){return e.classList.add(t)})):e.classList.add(i)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=RC(t.left,t.top);var i=function(e){var t=getComputedStyle(e),i=EC(t,"transition-property"),n=i.find((function(e){return"transform"===e||"all"===e}));if(!n)return 0;var a=i.indexOf(n),r=EC(t,"transition-duration"),o=EC(t,"transition-delay");return DC(r[a])+DC(o[a])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(t){var n=function i(n){(!n||n.target===e._preview&&"transform"===n.propertyName)&&(e._preview.removeEventListener("transitionend",i),t(),clearTimeout(a))},a=setTimeout(n,1.5*i);e._preview.addEventListener("transitionend",n)}))}))}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,i=t?t.template:null;return i?(this._placeholderRef=t.viewContainer.createEmbeddedView(i,t.context),this._placeholderRef.detectChanges(),e=NC(this._placeholderRef,this._document)):e=MC(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var i=this._rootElement.getBoundingClientRect(),n=e===this._rootElement?null:e,a=n?n.getBoundingClientRect():i,r=FC(t)?t.targetTouches[0]:t;return{x:a.left-i.left+(r.pageX-a.left-this._scrollPosition.left),y:a.top-i.top+(r.pageY-a.top-this._scrollPosition.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=FC(e)?e.touches[0]||e.changedTouches[0]:e;return{x:t.pageX-this._scrollPosition.left,y:t.pageY-this._scrollPosition.top}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._getPointerPositionOnPage(e),i=this.constrainPosition?this.constrainPosition(t,this):t,n=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===n?i.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==n||(i.x=this._pickupPositionOnPage.x),this._boundaryRect){var a=this._pickupPositionInElement,r=a.x,o=a.y,s=this._boundaryRect,c=this._previewRect,l=s.top+o,u=s.bottom-(c.height-o);i.x=LC(i.x,s.left+r,s.right-(c.width-r)),i.y=LC(i.y,l,u)}return i}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,i=e.y,n=this._pointerDirectionDelta,a=this._pointerPositionAtLastDirectionChange,r=Math.abs(t-a.x),o=Math.abs(i-a.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=t>a.x?1:-1,a.x=t),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>a.y?1:-1,a.y=i),n}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,OC(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,TC),e.removeEventListener("touchstart",this._pointerDown,AC)}},{key:"_applyRootElementTransform",value:function(e,t){var i=RC(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,i=e.y;if(!(0===t&&0===i||this.isDragging())&&this._boundaryElement){var n=this._boundaryElement.getBoundingClientRect(),a=this._rootElement.getBoundingClientRect();if(!(0===n.width&&0===n.height||0===a.width&&0===a.height)){var r=n.left-a.left,o=a.right-n.right,s=n.top-a.top,c=a.bottom-n.bottom;n.width>a.width?(r>0&&(t+=r),o>0&&(t-=o)):t=0,n.height>a.height?(s>0&&(i+=s),c>0&&(i-=c)):i=0,t===this._passiveTransform.x&&i===this._passiveTransform.y||this.setFreeDragPosition({y:i,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:FC(e)?t.touch:t?t.mouse:0}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=fi(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions())}}]),e}();function RC(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function MC(e){var t=e.cloneNode(!0),i=t.querySelectorAll("[id]"),n=e.querySelectorAll("canvas");t.removeAttribute("id");for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt;return(!Cl(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=Yt),new si.a((function(i){return i.add(t.schedule(SC,e,{subscriber:i,counter:0,period:e})),i}))}(0,sl).pipe(Ol(o._stopScrollTimers)).subscribe((function(){var e=o._scrollNode;1===o._verticalScrollDirection?$C(e,-2):2===o._verticalScrollDirection&&$C(e,2),1===o._horizontalScrollDirection?KC(e,-2):2===o._horizontalScrollDirection&&KC(e,2)}))},this.element=_i(t),this._document=n,this.withScrollableParents([this.element]),i.registerDropContainer(this)}return _createClass(e,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){var e=this,t=_i(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach((function(t){return t._startReceiving(e)})),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"enter",value:function(e,t,i,n){var a;this.start(),null==n?-1===(a=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(a=this._getItemIndexFromPointerPosition(e,t,i)):a=n;var r=this._activeDraggables,o=r.indexOf(e),s=e.getPlaceholderElement(),c=r[a];if(c===e&&(c=r[a+1]),o>-1&&r.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){var l=c.getRootElement();l.parentElement.insertBefore(s,l),r.splice(a,0,e)}else _i(this.element).appendChild(s),r.push(e);s.style.transform="",this._cacheItemPositions(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,i,n,a,r){this._reset(),null==r&&(r=i.getItemIndex(e)),this.dropped.next({item:e,currentIndex:t,previousIndex:r,container:this,previousContainer:i,isPointerOverContainer:n,distance:a})}},{key:"withItems",value:function(e){var t=this;return this._draggables=e,e.forEach((function(e){return e._withDropContainer(t)})),this.isDragging()&&this._cacheItems(),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=_i(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(_toConsumableArray(e)):e.slice(),this}},{key:"getItemIndex",value:function(e){return this._isDragging?GC("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(t){return t.drag===e})):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,i,n){if(!this.sortingDisabled&&UC(this._clientRect,t,i)){var a=this._itemPositions,r=this._getItemIndexFromPointerPosition(e,t,i,n);if(!(-1===r&&a.length>0)){var o="horizontal"===this._orientation,s=GC(a,(function(t){return t.drag===e})),c=a[r],l=a[s].clientRect,u=c.clientRect,d=s>r?1:-1;this._previousSwap.drag=c.drag,this._previousSwap.delta=o?n.x:n.y;var h=this._getItemOffsetPx(l,u,d),p=this._getSiblingOffsetPx(s,a,d),f=a.slice();BC(a,s,r),this.sorted.next({previousIndex:s,currentIndex:r,container:this,item:e}),a.forEach((function(t,i){if(f[i]!==t){var n=t.drag===e,a=n?h:p,r=n?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=a,o?(r.style.transform="translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),HC(t.clientRect,0,a)):(r.style.transform="translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),HC(t.clientRect,a,0))}}))}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var i=this;if(!this.autoScrollDisabled){var n,a=0,r=0;if(this._parentPositions.forEach((function(o,s){var c;s!==i._document&&o.clientRect&&!n&&UC(o.clientRect,e,t)&&(c=_slicedToArray(function(e,t,i,n){var a=XC(t,n),r=YC(t,i),o=0,s=0;if(a){var c=e.scrollTop;1===a?c>0&&(o=1):e.scrollHeight-c>e.clientHeight&&(o=2)}if(r){var l=e.scrollLeft;1===r?l>0&&(s=1):e.scrollWidth-l>e.clientWidth&&(s=2)}return[o,s]}(s,o.clientRect,e,t),2),a=c[0],r=c[1],(a||r)&&(n=s))})),!a&&!r){var o=this._viewportRuler.getViewportSize(),s=o.width,c=o.height,l={width:s,height:c,top:0,right:s,bottom:c,left:0};a=XC(l,t),r=YC(l,e),n=window}!n||a===this._verticalScrollDirection&&r===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=a,this._horizontalScrollDirection=r,this._scrollNode=n,(a||r)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_cacheParentPositions",value:function(){var e=this;this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach((function(t){var i=qC(t);t===e.element&&(e._clientRect=i),e._parentPositions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:i})}))}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(e){var t=e.getVisibleElement();return{drag:e,offset:0,clientRect:qC(t)}})).sort((function(t,i){return e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top}))}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=_i(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(e){return e.getRootElement().style.transform=""})),this._siblings.forEach((function(t){return t._stopReceiving(e)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,i){var n="horizontal"===this._orientation,a=t[e].clientRect,r=t[e+-1*i],o=a[n?"width":"height"]*i;if(r){var s=n?"left":"top",c=n?"right":"bottom";-1===i?o-=r.clientRect[s]-a[c]:o+=a[s]-r.clientRect[c]}return o}},{key:"_getItemOffsetPx",value:function(e,t,i){var n="horizontal"===this._orientation,a=n?t.left-e.left:t.top-e.top;return-1===i&&(a+=n?t.width-e.width:t.height-e.height),a}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,i,n){var a=this,r="horizontal"===this._orientation;return GC(this._itemPositions,(function(o,s,c){var l=o.drag,u=o.clientRect;if(l===e)return c.length<2;if(n){var d=r?n.x:n.y;if(l===a._previousSwap.drag&&d===a._previousSwap.delta)return!1}return r?t>=Math.floor(u.left)&&t<=Math.floor(u.right):i>=Math.floor(u.top)&&i<=Math.floor(u.bottom)}))}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_updateAfterScroll",value:function(e,t,i){var n=this,a=e===this._document?e.documentElement:e,r=this._parentPositions.get(e).scrollPosition,o=r.top-t,s=r.left-i;this._parentPositions.forEach((function(t,i){t.clientRect&&e!==i&&a.contains(i)&&HC(t.clientRect,o,s)})),this._itemPositions.forEach((function(e){HC(e.clientRect,o,s)})),this._itemPositions.forEach((function(e){var t=e.drag;n._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})),r.top=t,r.left=i}},{key:"_isOverContainer",value:function(e,t){return WC(this._clientRect,e,t)}},{key:"_getSiblingContainerFromPosition",value:function(e,t,i){return this._siblings.find((function(n){return n._canReceive(e,t,i)}))}},{key:"_canReceive",value:function(e,t,i){if(!WC(this._clientRect,t,i)||!this.enterPredicate(e,this))return!1;var n=this._getShadowRoot().elementFromPoint(t,i);if(!n)return!1;var a=_i(this.element);return n===a||a.contains(n)}},{key:"_startReceiving",value:function(e){var t=this._activeSiblings;t.has(e)||(t.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe((function(t){if(e.isDragging()){var i=t.target;if(e._parentPositions.get(i)){var n,a;if(i===e._document){var r=e._viewportRuler.getViewportScrollPosition();n=r.top,a=r.left}else n=i.scrollTop,a=i.scrollLeft;e._updateAfterScroll(i,n,a)}}else e.isReceiving()&&e._cacheParentPositions()}))}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=Pi(_i(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}}]),e}();function HC(e,t,i){e.top+=t,e.bottom=e.top+e.height,e.left+=i,e.right=e.left+e.width}function UC(e,t,i){var n=e.top,a=e.right,r=e.bottom,o=e.left,s=.05*e.width,c=.05*e.height;return i>n-c&&io-s&&t=n&&i<=a&&t>=r&&t<=o}function qC(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function $C(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function KC(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function XC(e,t){var i=e.top,n=e.bottom,a=.05*e.height;return t>=i-a&&t<=i+a?1:t>=n-a&&t<=n+a?2:0}function YC(e,t){var i=e.left,n=e.right,a=.05*e.width;return t>=i-a&&t<=i+a?1:t>=n-a&&t<=n+a?2:0}var ZC,QC,ex,tx,ix,nx,ax=Ai({passive:!1,capture:!0}),rx=((ZC=function(){function e(t,i){var n=this;_classCallCheck(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new Lt.a,this.pointerUp=new Lt.a,this.scroll=new Lt.a,this._preventDefaultWhileDragging=function(e){n._activeDragInstances.size&&e.preventDefault()},this._document=i}return _createClass(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){t._document.addEventListener("touchmove",t._preventDefaultWhileDragging,ax)}))}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,ax)}},{key:"startDragging",value:function(e,t){var i=this;if(!this._activeDragInstances.has(e)&&(this._activeDragInstances.add(e),1===this._activeDragInstances.size)){var n=t.type.startsWith("touch"),a=n?"touchend":"mouseup";this._globalListeners.set(n?"touchmove":"mousemove",{handler:function(e){return i.pointerMove.next(e)},options:ax}).set(a,{handler:function(e){return i.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return i.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:ax}),this._ngZone.runOutsideAngular((function(){i._globalListeners.forEach((function(e,t){i._document.addEventListener(t,e.handler,e.options)}))}))}}},{key:"stopDragging",value:function(e){this._activeDragInstances.delete(e),0===this._activeDragInstances.size&&this._clearGlobalListeners()}},{key:"isDragging",value:function(e){return this._activeDragInstances.has(e)}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach((function(t){return e.removeDragItem(t)})),this._dropInstances.forEach((function(t){return e.removeDropContainer(t)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach((function(t,i){e._document.removeEventListener(i,t.handler,t.options)})),this._globalListeners.clear()}}]),e}()).\u0275fac=function(e){return new(e||ZC)(a.Sc(a.I),a.Sc(yt.e))},ZC.\u0275prov=Object(a.zc)({factory:function(){return new ZC(Object(a.Sc)(a.I),Object(a.Sc)(yt.e))},token:ZC,providedIn:"root"}),ZC),ox={dragStartThreshold:5,pointerDirectionChangeThreshold:5},sx=((QC=function(){function e(t,i,n,a){_classCallCheck(this,e),this._document=t,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=a}return _createClass(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ox;return new PC(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new VC(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}()).\u0275fac=function(e){return new(e||QC)(a.Sc(yt.e),a.Sc(a.I),a.Sc(Zl),a.Sc(rx))},QC.\u0275prov=Object(a.zc)({factory:function(){return new QC(Object(a.Sc)(yt.e),Object(a.Sc)(a.I),Object(a.Sc)(Zl),Object(a.Sc)(rx))},token:QC,providedIn:"root"}),QC),cx=new a.x("CDK_DRAG_PARENT"),lx=((ix=function(){function e(t,i){_classCallCheck(this,e),this.element=t,this._stateChanges=new Lt.a,this._disabled=!1,this._parentDrag=i,OC(t.nativeElement,!1)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e),this._stateChanges.next(this)}}]),e}()).\u0275fac=function(e){return new(e||ix)(a.Dc(a.r),a.Dc(cx,8))},ix.\u0275dir=a.yc({type:ix,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),ix),ux=((tx=function e(t){_classCallCheck(this,e),this.templateRef=t}).\u0275fac=function(e){return new(e||tx)(a.Dc(a.Y))},tx.\u0275dir=a.yc({type:tx,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),tx),dx=((ex=function(){function e(t){_classCallCheck(this,e),this.templateRef=t,this._matchSize=!1}return _createClass(e,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=fi(e)}}]),e}()).\u0275fac=function(e){return new(e||ex)(a.Dc(a.Y))},ex.\u0275dir=a.yc({type:ex,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),ex),hx=new a.x("CDK_DRAG_CONFIG"),px=new a.x("CDK_DROP_LIST"),fx=((nx=function(){function e(t,i,n,r,o,s,c,l,u){var d=this;_classCallCheck(this,e),this.element=t,this.dropContainer=i,this._document=n,this._ngZone=r,this._viewContainerRef=o,this._dir=c,this._changeDetectorRef=u,this._destroyed=new Lt.a,this.started=new a.u,this.released=new a.u,this.ended=new a.u,this.entered=new a.u,this.exited=new a.u,this.dropped=new a.u,this.moved=new si.a((function(e){var t=d._dragRef.moved.pipe(Object(ri.a)((function(e){return{source:d,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}}))).subscribe(e);return function(){t.unsubscribe()}})),this._dragRef=l.createDrag(t,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,s&&this._assignDefaults(s),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return _createClass(e,[{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.asObservable().pipe(ui(1),Ol(this._destroyed)).subscribe((function(){e._updateRootElement(),e._handles.changes.pipe(An(e._handles),Gt((function(t){var i=t.filter((function(t){return t._parentDrag===e})).map((function(e){return e.element}));e._dragRef.withHandles(i)})),Tl((function(e){return Object(al.a).apply(void 0,_toConsumableArray(e.map((function(e){return e._stateChanges.pipe(An(e))}))))})),Ol(e._destroyed)).subscribe((function(t){var i=e._dragRef,n=t.element.nativeElement;t.disabled?i.disableHandle(n):i.enableHandle(n)})),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)}))}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,i=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?mx(e,this.rootElementSelector):e;if(t&&t.nodeType!==this._document.ELEMENT_NODE)throw Error("cdkDrag must be attached to an element node. "+'Currently attached to "'.concat(t.nodeName,'".'));this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;if(!e)return null;if("string"==typeof e)return mx(this.element.nativeElement,e);var t=_i(e);if(Object(a.jb)()&&!t.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return t}},{key:"_syncInputs",value:function(e){var t=this;e.beforeStarted.subscribe((function(){if(!e.isDragging()){var i=t._dir,n=t.dragStartDelay,a=t._placeholderTemplate?{template:t._placeholderTemplate.templateRef,context:t._placeholderTemplate.data,viewContainer:t._viewContainerRef}:null,r=t._previewTemplate?{template:t._previewTemplate.templateRef,context:t._previewTemplate.data,matchSize:t._previewTemplate.matchSize,viewContainer:t._viewContainerRef}:null;e.disabled=t.disabled,e.lockAxis=t.lockAxis,e.dragStartDelay="object"==typeof n&&n?n:mi(n),e.constrainPosition=t.constrainPosition,e.previewClass=t.previewClass,e.withBoundaryElement(t._getBoundaryElement()).withPlaceholderTemplate(a).withPreviewTemplate(r),i&&e.withDirection(i.value)}}))}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe((function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()})),e.released.subscribe((function(){t.released.emit({source:t})})),e.ended.subscribe((function(e){t.ended.emit({source:t,distance:e.distance}),t._changeDetectorRef.markForCheck()})),e.entered.subscribe((function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})})),e.exited.subscribe((function(e){t.exited.emit({container:e.container.data,item:t})})),e.dropped.subscribe((function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance})}))}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,i=e.dragStartDelay,n=e.constrainPosition,a=e.previewClass,r=e.boundaryElement,o=e.draggingDisabled,s=e.rootElementSelector;this.disabled=null!=o&&o,this.dragStartDelay=i||0,t&&(this.lockAxis=t),n&&(this.constrainPosition=n),a&&(this.previewClass=a),r&&(this.boundaryElement=r),s&&(this.rootElementSelector=s)}},{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=fi(e),this._dragRef.disabled=this._disabled}}]),e}()).\u0275fac=function(e){return new(e||nx)(a.Dc(a.r),a.Dc(px,12),a.Dc(yt.e),a.Dc(a.I),a.Dc(a.cb),a.Dc(hx,8),a.Dc(Cn,8),a.Dc(sx),a.Dc(a.j))},nx.\u0275dir=a.yc({type:nx,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,dx,!0),a.vc(i,ux,!0),a.vc(i,lx,!0)),2&e&&(a.md(n=a.Xc())&&(t._previewTemplate=n.first),a.md(n=a.Xc())&&(t._placeholderTemplate=n.first),a.md(n=a.Xc())&&(t._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&a.tc("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[a.oc([{provide:cx,useExisting:nx}]),a.nc]}),nx);function mx(e,t){for(var i=e.parentElement;i;){if(i.matches?i.matches(t):i.msMatchesSelector(t))return i;i=i.parentElement}return null}var gx,vx,bx,_x,yx,kx,wx=((bx=function(){function e(){_classCallCheck(this,e),this._items=new Set,this._disabled=!1}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._items.clear()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e)}}]),e}()).\u0275fac=function(e){return new(e||bx)},bx.\u0275dir=a.yc({type:bx,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),bx),Cx=0,xx=((vx=function(){function e(t,i,n,r,o,s,c){var l=this;_classCallCheck(this,e),this.element=t,this._changeDetectorRef=n,this._dir=r,this._group=o,this._scrollDispatcher=s,this._destroyed=new Lt.a,this.connectedTo=[],this.id="cdk-drop-list-".concat(Cx++),this.enterPredicate=function(){return!0},this.dropped=new a.u,this.entered=new a.u,this.exited=new a.u,this.sorted=new a.u,this._unsortedItems=new Set,this._dropListRef=i.createDropList(t),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=function(e,t){return l.enterPredicate(e.data,t.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),o&&o._items.add(this)}return _createClass(e,[{key:"ngAfterContentInit",value:function(){if(this._scrollDispatcher){var e=this._scrollDispatcher.getAncestorScrollContainers(this.element).map((function(e){return e.getElementRef().nativeElement}));this._dropListRef.withScrollableParents(e)}}},{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort((function(e,t){return e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))}},{key:"ngOnDestroy",value:function(){var t=e._dropLists.indexOf(this);t>-1&&e._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"start",value:function(){this._dropListRef.start()}},{key:"drop",value:function(e,t,i,n){this._dropListRef.drop(e._dragRef,t,i._dropListRef,n,{x:0,y:0})}},{key:"enter",value:function(e,t,i){this._dropListRef.enter(e._dragRef,t,i)}},{key:"exit",value:function(e){this._dropListRef.exit(e._dragRef)}},{key:"getItemIndex",value:function(e){return this._dropListRef.getItemIndex(e._dragRef)}},{key:"_setupInputSyncSubscription",value:function(t){var i=this;this._dir&&this._dir.change.pipe(An(this._dir.value),Ol(this._destroyed)).subscribe((function(e){return t.withDirection(e)})),t.beforeStarted.subscribe((function(){var n=vi(i.connectedTo).map((function(t){return"string"==typeof t?e._dropLists.find((function(e){return e.id===t})):t}));i._group&&i._group._items.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),t.disabled=i.disabled,t.lockAxis=i.lockAxis,t.sortingDisabled=fi(i.sortingDisabled),t.autoScrollDisabled=fi(i.autoScrollDisabled),t.connectedTo(n.filter((function(e){return e&&e!==i})).map((function(e){return e._dropListRef}))).withOrientation(i.orientation)}))}},{key:"_handleEvents",value:function(e){var t=this;e.beforeStarted.subscribe((function(){t._syncItemsWithRef(),t._changeDetectorRef.markForCheck()})),e.entered.subscribe((function(e){t.entered.emit({container:t,item:e.item.data,currentIndex:e.currentIndex})})),e.exited.subscribe((function(e){t.exited.emit({container:t,item:e.item.data}),t._changeDetectorRef.markForCheck()})),e.sorted.subscribe((function(e){t.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:t,item:e.item.data})})),e.dropped.subscribe((function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance}),t._changeDetectorRef.markForCheck()}))}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,i=e.draggingDisabled,n=e.sortingDisabled,a=e.listAutoScrollDisabled,r=e.listOrientation;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=a&&a,this.orientation=r||"vertical",t&&(this.lockAxis=t)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map((function(e){return e._dragRef})))}},{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=fi(e)}}]),e}()).\u0275fac=function(e){return new(e||vx)(a.Dc(a.r),a.Dc(sx),a.Dc(a.j),a.Dc(Cn,8),a.Dc(wx,12),a.Dc(Xl),a.Dc(hx,8))},vx.\u0275dir=a.yc({type:vx,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(a.Mc("id",t.id),a.tc("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[a.oc([{provide:wx,useValue:void 0},{provide:px,useExisting:vx}])]}),vx._dropLists=[],vx),Sx=((gx=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:gx}),gx.\u0275inj=a.Ac({factory:function(e){return new(e||gx)},providers:[sx]}),gx),Ix=function(){function e(t,i){_classCallCheck(this,e),this._document=i;var n=this._textarea=this._document.createElement("textarea"),a=n.style;a.opacity="0",a.position="absolute",a.left=a.top="-999em",n.setAttribute("aria-hidden","true"),n.value=t,this._document.body.appendChild(n)}return _createClass(e,[{key:"copy",value:function(){var e=this._textarea,t=!1;try{if(e){var i=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),t=this._document.execCommand("copy"),i&&i.focus()}}catch(vB){}return t}},{key:"destroy",value:function(){var e=this._textarea;e&&(e.parentNode&&e.parentNode.removeChild(e),this._textarea=void 0)}}]),e}(),Ox=((_x=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"copy",value:function(e){var t=this.beginCopy(e),i=t.copy();return t.destroy(),i}},{key:"beginCopy",value:function(e){return new Ix(e,this._document)}}]),e}()).\u0275fac=function(e){return new(e||_x)(a.Sc(yt.e))},_x.\u0275prov=Object(a.zc)({factory:function(){return new _x(Object(a.Sc)(yt.e))},token:_x,providedIn:"root"}),_x),Dx=new a.x("CKD_COPY_TO_CLIPBOARD_CONFIG"),Ex=((kx=function(){function e(t,i,n){_classCallCheck(this,e),this._clipboard=t,this._ngZone=i,this.text="",this.attempts=1,this.copied=new a.u,this._deprecatedCopied=this.copied,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}return _createClass(e,[{key:"copy",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.attempts;if(t>1){var i=t,n=this._clipboard.beginCopy(this.text);this._pending.add(n);var a=function t(){var a=n.copy();a||!--i||e._destroyed?(e._currentTimeout=null,e._pending.delete(n),n.destroy(),e.copied.emit(a)):e._currentTimeout=e._ngZone?e._ngZone.runOutsideAngular((function(){return setTimeout(t,1)})):setTimeout(t,1)};a()}else this.copied.emit(this._clipboard.copy(this.text))}},{key:"ngOnDestroy",value:function(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach((function(e){return e.destroy()})),this._pending.clear(),this._destroyed=!0}}]),e}()).\u0275fac=function(e){return new(e||kx)(a.Dc(Ox),a.Dc(a.I),a.Dc(Dx,8))},kx.\u0275dir=a.yc({type:kx,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied",_deprecatedCopied:"copied"}}),kx),Ax=((yx=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:yx}),yx.\u0275inj=a.Ac({factory:function(e){return new(e||yx)}}),yx);function Tx(e){return Yp(e)(this)}si.a.prototype.map=function(e,t){return Object(ri.a)(e,t)(this)},si.a.prototype.catch=Tx,si.a.prototype._catch=Tx,si.a.throw=jl,si.a.throwError=jl;var Px={default:{key:"default",background_color:"ghostwhite",alternate_color:"gray",css_label:"default-theme",social_theme:"material-light"},dark:{key:"dark",background_color:"#141414",alternate_color:"#695959",css_label:"dark-theme",social_theme:"material-dark"},light:{key:"light",background_color:"white",css_label:"light-theme",social_theme:"material-light"}},Rx=i("6BPK"),Mx=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}();function Lx(e){return function(t){return 0===e?li():t.lift(new jx(e))}}var jx=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new oi}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Fx(e,this.total))}}]),e}(),Fx=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).total=n,a.ring=new Array,a.count=0,a}return _createClass(i,[{key:"_next",value:function(e){var t=this.ring,i=this.total,n=this.count++;t.length0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,a=0;a0&&void 0!==arguments[0]?arguments[0]:Jx;return function(t){return t.lift(new zx(e))}}var zx=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Bx(e,this.errorFactory))}}]),e}(),Bx=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).errorFactory=n,a.hasValue=!1,a}return _createClass(i,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),i}(Vt.a);function Jx(){return new Mx}function Vx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Hx(e))}}var Hx=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Ux(e,this.defaultValue))}}]),e}(),Ux=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).defaultValue=n,a.isEmpty=!0,a}return _createClass(i,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),i}(Vt.a),Gx=i("SpAZ");function Wx(e,t){var i=arguments.length>=2;return function(n){return n.pipe(e?ii((function(t,i){return e(t,i,n)})):Gx.a,Lx(1),i?Vx(t):Nx((function(){return new Mx})))}}function qx(e,t){var i=arguments.length>=2;return function(n){return n.pipe(e?ii((function(t,i){return e(t,i,n)})):Gx.a,ui(1),i?Vx(t):Nx((function(){return new Mx})))}}var $x=function(){function e(t,i,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=i,this.source=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Kx(e,this.predicate,this.thisArg,this.source))}}]),e}(),Kx=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e)).predicate=n,o.thisArg=a,o.source=r,o.index=0,o.thisArg=a||_assertThisInitialized(o),o}return _createClass(i,[{key:"notifyComplete",value:function(e){this.destination.next(e),this.destination.complete()}},{key:"_next",value:function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(i){return void this.destination.error(i)}t||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),i}(Vt.a);function Xx(e,t){var i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new Zx(e,t,i))}}var Yx,Zx=function(){function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=i,this.hasSeed=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Qx(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),Qx=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e)).accumulator=n,o._seed=a,o.hasSeed=r,o.index=0,o}return _createClass(i,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,i=this.index++;try{t=this.accumulator(this.seed,e,i)}catch(n){this.destination.error(n)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),i}(Vt.a),eS=i("mCNh"),tS=function e(t,i){_classCallCheck(this,e),this.id=t,this.url=i},iS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,i),(a=t.call(this,e,n)).navigationTrigger=r,a.restoredState=o,a}return _createClass(i,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(tS),nS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e,n)).urlAfterRedirects=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),i}(tS),aS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e,n)).reason=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),i}(tS),rS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){var r;return _classCallCheck(this,i),(r=t.call(this,e,n)).error=a,r}return _createClass(i,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),i}(tS),oS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(tS),sS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(tS),cS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o){var s;return _classCallCheck(this,i),(s=t.call(this,e,n)).urlAfterRedirects=a,s.state=r,s.shouldActivate=o,s}return _createClass(i,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),i}(tS),lS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(tS),uS=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){var o;return _classCallCheck(this,i),(o=t.call(this,e,n)).urlAfterRedirects=a,o.state=r,o}return _createClass(i,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),i}(tS),dS=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),hS=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),pS=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fS=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),mS=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),gS=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),vS=function(){function e(t,i,n){_classCallCheck(this,e),this.routerEvent=t,this.position=i,this.anchor=n}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),bS=((Yx=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Yx)},Yx.\u0275cmp=a.xc({type:Yx,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&a.Ec(0,"router-outlet")},directives:function(){return[EO]},encapsulation:2}),Yx),_S=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return this.params.hasOwnProperty(e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function yS(e){return new _S(e)}function kS(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function wS(e,t,i){var n=i.path.split("/");if(n.length>e.length)return null;if("full"===i.pathMatch&&(t.hasChildren()||n.length1&&void 0!==arguments[1]?arguments[1]:"",i=0;i-1})):e===t}function AS(e){return Array.prototype.concat.apply([],e)}function TS(e){return e.length>0?e[e.length-1]:null}function PS(e,t){for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)}function RS(e){return Object(a.Rb)(e)?e:Object(a.Sb)(e)?Object(sr.a)(Promise.resolve(e)):Bt(e)}function MS(e,t,i){return i?function(e,t){return DS(e,t)}(e.queryParams,t.queryParams)&&function e(t,i){if(!NS(t.segments,i.segments))return!1;if(t.numberOfChildren!==i.numberOfChildren)return!1;for(var n in i.children){if(!t.children[n])return!1;if(!e(t.children[n],i.children[n]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(i){return ES(e[i],t[i])}))}(e.queryParams,t.queryParams)&&function e(t,i){return function t(i,n,a){if(i.segments.length>a.length)return!!NS(i.segments.slice(0,a.length),a)&&!n.hasChildren();if(i.segments.length===a.length){if(!NS(i.segments,a))return!1;for(var r in n.children){if(!i.children[r])return!1;if(!e(i.children[r],n.children[r]))return!1}return!0}var o=a.slice(0,i.segments.length),s=a.slice(i.segments.length);return!!NS(i.segments,o)&&!!i.children.primary&&t(i.children.primary,n,s)}(t,i,i.segments)}(e.root,t.root)}var LS=function(){function e(t,i,n){_classCallCheck(this,e),this.root=t,this.queryParams=i,this.fragment=n}return _createClass(e,[{key:"toString",value:function(){return VS.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=yS(this.queryParams)),this._queryParamMap}}]),e}(),jS=function(){function e(t,i){var n=this;_classCallCheck(this,e),this.segments=t,this.children=i,this.parent=null,PS(i,(function(e,t){return e.parent=n}))}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return HS(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),FS=function(){function e(t,i){_classCallCheck(this,e),this.path=t,this.parameters=i}return _createClass(e,[{key:"toString",value:function(){return KS(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=yS(this.parameters)),this._parameterMap}}]),e}();function NS(e,t){return e.length===t.length&&e.every((function(e,i){return e.path===t[i].path}))}function zS(e,t){var i=[];return PS(e.children,(function(e,n){"primary"===n&&(i=i.concat(t(e,n)))})),PS(e.children,(function(e,n){"primary"!==n&&(i=i.concat(t(e,n)))})),i}var BS=function e(){_classCallCheck(this,e)},JS=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new eI(e);return new LS(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,i,n;return"".concat("/".concat(function e(t,i){if(!t.hasChildren())return HS(t);if(i){var n=t.children.primary?e(t.children.primary,!1):"",a=[];return PS(t.children,(function(t,i){"primary"!==i&&a.push("".concat(i,":").concat(e(t,!1)))})),a.length>0?"".concat(n,"(").concat(a.join("//"),")"):n}var r=zS(t,(function(i,n){return"primary"===n?[e(t.children.primary,!1)]:["".concat(n,":").concat(e(i,!1))]}));return"".concat(HS(t),"/(").concat(r.join("//"),")")}(e.root,!0)),(i=e.queryParams,n=Object.keys(i).map((function(e){var t=i[e];return Array.isArray(t)?t.map((function(t){return"".concat(GS(e),"=").concat(GS(t))})).join("&"):"".concat(GS(e),"=").concat(GS(t))})),n.length?"?".concat(n.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),VS=new JS;function HS(e){return e.segments.map((function(e){return KS(e)})).join("/")}function US(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function GS(e){return US(e).replace(/%3B/gi,";")}function WS(e){return US(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qS(e){return decodeURIComponent(e)}function $S(e){return qS(e.replace(/\+/g,"%20"))}function KS(e){return"".concat(WS(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(WS(e),"=").concat(WS(t[e]))})).join("")));var t}var XS=/^[^\/()?;=#]+/;function YS(e){var t=e.match(XS);return t?t[0]:""}var ZS=/^[^=?&#]+/,QS=/^[^?&#]+/,eI=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new jS([],{}):new jS([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(i.primary=new jS(e,t)),i}},{key:"parseSegment",value:function(){var e=YS(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new FS(qS(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=YS(this.remaining);if(t){this.capture(t);var i="";if(this.consumeOptional("=")){var n=YS(this.remaining);n&&(i=n,this.capture(i))}e[qS(t)]=qS(i)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(ZS);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var i="";if(this.consumeOptional("=")){var n=function(e){var t=e.match(QS);return t?t[0]:""}(this.remaining);n&&(i=n,this.capture(i))}var a=$S(t),r=$S(i);if(e.hasOwnProperty(a)){var o=e[a];Array.isArray(o)||(o=[o],e[a]=o),o.push(r)}else e[a]=r}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var i=YS(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '".concat(this.url,"'"));var a=void 0;i.indexOf(":")>-1?(a=i.substr(0,i.indexOf(":")),this.capture(a),this.capture(":")):e&&(a="primary");var r=this.parseChildren();t[a]=1===Object.keys(r).length?r.primary:new jS([],r),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),tI=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=iI(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=iI(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=nI(e,this._root);return t.length<2?[]:t[t.length-2].children.map((function(e){return e.value})).filter((function(t){return t!==e}))}},{key:"pathFromRoot",value:function(e){return nI(e,this._root).map((function(e){return e.value}))}},{key:"root",get:function(){return this._root.value}}]),e}();function iI(e,t){if(e===t.value)return t;var i,n=_createForOfIteratorHelper(t.children);try{for(n.s();!(i=n.n()).done;){var a=iI(e,i.value);if(a)return a}}catch(r){n.e(r)}finally{n.f()}return null}function nI(e,t){if(e===t.value)return[t];var i,n=_createForOfIteratorHelper(t.children);try{for(n.s();!(i=n.n()).done;){var a=nI(e,i.value);if(a.length)return a.unshift(t),a}}catch(r){n.e(r)}finally{n.f()}return[]}var aI=function(){function e(t,i){_classCallCheck(this,e),this.value=t,this.children=i}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function rI(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var oI=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).snapshot=n,hI(_assertThisInitialized(a),e),a}return _createClass(i,[{key:"toString",value:function(){return this.snapshot.toString()}}]),i}(tI);function sI(e,t){var i=function(e,t){var i=new uI([],{},{},"",{},"primary",t,null,e.root,-1,{});return new dI("",new aI(i,[]))}(e,t),n=new Ik([new FS("",{})]),a=new Ik({}),r=new Ik({}),o=new Ik({}),s=new Ik(""),c=new cI(n,a,o,s,r,"primary",t,i.root);return c.snapshot=i.root,new oI(new aI(c,[]),i)}var cI=function(){function e(t,i,n,a,r,o,s,c){_classCallCheck(this,e),this.url=t,this.params=i,this.queryParams=n,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=c}return _createClass(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(ri.a)((function(e){return yS(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ri.a)((function(e){return yS(e)})))),this._queryParamMap}}]),e}();function lI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",i=e.pathFromRoot,n=0;if("always"!==t)for(n=i.length-1;n>=1;){var a=i[n],r=i[n-1];if(a.routeConfig&&""===a.routeConfig.path)n--;else{if(r.component)break;n--}}return function(e){return e.reduce((function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}}),{params:{},data:{},resolve:{}})}(i.slice(n))}var uI=function(){function e(t,i,n,a,r,o,s,c,l,u,d){_classCallCheck(this,e),this.url=t,this.params=i,this.queryParams=n,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=u,this._resolve=d}return _createClass(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(e){return e.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=yS(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=yS(this.queryParams)),this._queryParamMap}}]),e}(),dI=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,n)).url=e,hI(_assertThisInitialized(a),n),a}return _createClass(i,[{key:"toString",value:function(){return pI(this._root)}}]),i}(tI);function hI(e,t){t.value._routerState=e,t.children.forEach((function(t){return hI(e,t)}))}function pI(e){var t=e.children.length>0?" { ".concat(e.children.map(pI).join(", ")," } "):"";return"".concat(e.value).concat(t)}function fI(e){if(e.snapshot){var t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,DS(t.queryParams,i.queryParams)||e.queryParams.next(i.queryParams),t.fragment!==i.fragment&&e.fragment.next(i.fragment),DS(t.params,i.params)||e.params.next(i.params),function(e,t){if(e.length!==t.length)return!1;for(var i=0;i0&&gI(n[0]))throw new Error("Root segment cannot have matrix parameters");var a=n.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(a&&a!==TS(n))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),_I=function e(t,i,n){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=i,this.index=n};function yI(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:"".concat(e)}function kI(e,t,i){if(e||(e=new jS([],{})),0===e.segments.length&&e.hasChildren())return wI(e,t,i);var n=function(e,t,i){for(var n=0,a=t,r={match:!1,pathIndex:0,commandIndex:0};a=i.length)return r;var o=e.segments[a],s=yI(i[n]),c=n0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!II(s,c,o))return r;n+=2}else{if(!II(s,{},o))return r;n++}a++}return{match:!0,pathIndex:a,commandIndex:n}}(e,t,i),a=i.slice(n.commandIndex);if(n.match&&n.pathIndex0?new jS([],{primary:e}):e;return new LS(n,t,i)}},{key:"expandSegmentGroup",value:function(e,t,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(e,t,i).pipe(Object(ri.a)((function(e){return new jS([],e)}))):this.expandSegment(e,i,t,i.segments,n,!0)}},{key:"expandChildren",value:function(e,t,i){var n=this;return function(i,a){if(0===Object.keys(i).length)return Bt({});var r=[],o=[],s={};return PS(i,(function(i,a){var c,l,u=(c=a,l=i,n.expandSegmentGroup(e,t,l,c)).pipe(Object(ri.a)((function(e){return s[a]=e})));"primary"===a?r.push(u):o.push(u)})),Bt.apply(null,r.concat(o)).pipe(Dn(),Wx(),Object(ri.a)((function(){return s})))}(i.children)}},{key:"expandSegment",value:function(e,t,i,n,a,r){var o=this;return Bt.apply(void 0,_toConsumableArray(i)).pipe(Object(ri.a)((function(s){return o.expandSegmentAgainstRoute(e,t,i,s,n,a,r).pipe(Yp((function(e){if(e instanceof TI)return Bt(null);throw e})))})),Dn(),qx((function(e){return!!e})),Yp((function(e,i){if(e instanceof Mx||"EmptyError"===e.name){if(o.noLeftoversInUrl(t,n,a))return Bt(new jS([],{}));throw new TI(t)}throw e})))}},{key:"noLeftoversInUrl",value:function(e,t,i){return 0===t.length&&!e.children[i]}},{key:"expandSegmentAgainstRoute",value:function(e,t,i,n,a,r,o){return BI(n)!==r?RI(t):void 0===n.redirectTo?this.matchSegmentAgainstRoute(e,t,n,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,i,n,a,r):RI(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,i,n,a,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,i,n,a,r)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,i,n){var a=this,r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?MI(r):this.lineralizeSegments(i,r).pipe(Object(rf.a)((function(i){var r=new jS(i,{});return a.expandSegment(e,r,t,i,n,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,i,n,a,r){var o=this,s=FI(t,n,a),c=s.matched,l=s.consumedSegments,u=s.lastChild,d=s.positionalParamSegments;if(!c)return RI(t);var h=this.applyRedirectCommands(l,n.redirectTo,d);return n.redirectTo.startsWith("/")?MI(h):this.lineralizeSegments(n,h).pipe(Object(rf.a)((function(n){return o.expandSegment(e,t,i,n.concat(a.slice(u)),r,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,i,n){var a=this;if("**"===i.path)return i.loadChildren?this.configLoader.load(e.injector,i).pipe(Object(ri.a)((function(e){return i._loadedConfig=e,new jS(n,{})}))):Bt(new jS(n,{}));var r=FI(t,i,n),o=r.matched,s=r.consumedSegments,c=r.lastChild;if(!o)return RI(t);var l=n.slice(c);return this.getChildConfig(e,i,n).pipe(Object(rf.a)((function(e){var i=e.module,n=e.routes,r=function(e,t,i,n){return i.length>0&&function(e,t,i){return i.some((function(i){return zI(e,t,i)&&"primary"!==BI(i)}))}(e,i,n)?{segmentGroup:NI(new jS(t,function(e,t){var i={};i.primary=t;var n,a=_createForOfIteratorHelper(e);try{for(a.s();!(n=a.n()).done;){var r=n.value;""===r.path&&"primary"!==BI(r)&&(i[BI(r)]=new jS([],{}))}}catch(o){a.e(o)}finally{a.f()}return i}(n,new jS(i,e.children)))),slicedSegments:[]}:0===i.length&&function(e,t,i){return i.some((function(i){return zI(e,t,i)}))}(e,i,n)?{segmentGroup:NI(new jS(e.segments,function(e,t,i,n){var a,r={},o=_createForOfIteratorHelper(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;zI(e,t,s)&&!n[BI(s)]&&(r[BI(s)]=new jS([],{}))}}catch(c){o.e(c)}finally{o.f()}return Object.assign(Object.assign({},n),r)}(e,i,n,e.children))),slicedSegments:i}:{segmentGroup:e,slicedSegments:i}}(t,s,l,n),o=r.segmentGroup,c=r.slicedSegments;return 0===c.length&&o.hasChildren()?a.expandChildren(i,n,o).pipe(Object(ri.a)((function(e){return new jS(s,e)}))):0===n.length&&0===c.length?Bt(new jS(s,{})):a.expandSegment(i,o,n,c,"primary",!0).pipe(Object(ri.a)((function(e){return new jS(s.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,i){var n=this;return t.children?Bt(new CS(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Bt(t._loadedConfig):function(e,t,i){var n,a=t.canLoad;return a&&0!==a.length?Object(sr.a)(a).pipe(Object(ri.a)((function(n){var a,r=e.get(n);if(function(e){return e&&EI(e.canLoad)}(r))a=r.canLoad(t,i);else{if(!EI(r))throw new Error("Invalid CanLoad guard");a=r(t,i)}return RS(a)}))).pipe(Dn(),(n=function(e){return!0===e},function(e){return e.lift(new $x(n,void 0,e))})):Bt(!0)}(e.injector,t,i).pipe(Object(rf.a)((function(i){return i?n.configLoader.load(e.injector,t).pipe(Object(ri.a)((function(e){return t._loadedConfig=e,e}))):function(e){return new si.a((function(t){return t.error(kS("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):Bt(new CS([],e))}},{key:"lineralizeSegments",value:function(e,t){for(var i=[],n=t.root;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Bt(i);if(n.numberOfChildren>1||!n.children.primary)return LI(e.redirectTo);n=n.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,i){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,i)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,i,n){var a=this.createSegmentGroup(e,t.root,i,n);return new LS(a,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var i={};return PS(e,(function(e,n){if("string"==typeof e&&e.startsWith(":")){var a=e.substring(1);i[n]=t[a]}else i[n]=e})),i}},{key:"createSegmentGroup",value:function(e,t,i,n){var a=this,r=this.createSegments(e,t.segments,i,n),o={};return PS(t.children,(function(t,r){o[r]=a.createSegmentGroup(e,t,i,n)})),new jS(r,o)}},{key:"createSegments",value:function(e,t,i,n){var a=this;return t.map((function(t){return t.path.startsWith(":")?a.findPosParam(e,t,n):a.findOrReturn(t,i)}))}},{key:"findPosParam",value:function(e,t,i){var n=i[t.path.substring(1)];if(!n)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return n}},{key:"findOrReturn",value:function(e,t){var i,n=0,a=_createForOfIteratorHelper(t);try{for(a.s();!(i=a.n()).done;){var r=i.value;if(r.path===e.path)return t.splice(n),r;n++}}catch(o){a.e(o)}finally{a.f()}return e}}]),e}();function FI(e,t,i){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=(t.matcher||wS)(i,e,t);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function NI(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new jS(e.segments.concat(t.segments),t.children)}return e}function zI(e,t,i){return(!(e.hasChildren()||t.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function BI(e){return e.outlet||"primary"}var JI=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},VI=function e(t,i){_classCallCheck(this,e),this.component=t,this.route=i};function HI(e,t,i){var n=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var i=t.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig}return null}(t);return(n?n.module.injector:i).get(e)}function UI(e,t,i){var n=rI(e),a=e.value;PS(n,(function(e,n){UI(e,a.component?t?t.children.getContext(n):null:t,i)})),i.canDeactivateChecks.push(new VI(a.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,a))}var GI=Symbol("INITIAL_VALUE");function WI(){return Tl((function(e){return Hg.apply(void 0,_toConsumableArray(e.map((function(e){return e.pipe(ui(1),An(GI))})))).pipe(Xx((function(e,t){var i=!1;return t.reduce((function(e,n,a){if(e!==GI)return e;if(n===GI&&(i=!0),!i){if(!1===n)return n;if(a===t.length-1||AI(n))return n}return e}),e)}),GI),ii((function(e){return e!==GI})),Object(ri.a)((function(e){return AI(e)?e:!0===e})),ui(1))}))}function qI(e,t){return null!==e&&t&&t(new mS(e)),Bt(!0)}function $I(e,t){return null!==e&&t&&t(new pS(e)),Bt(!0)}function KI(e,t,i){var n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?Bt(n.map((function(n){return nl((function(){var a,r=HI(n,t,i);if(function(e){return e&&EI(e.canActivate)}(r))a=RS(r.canActivate(t,e));else{if(!EI(r))throw new Error("Invalid CanActivate guard");a=RS(r(t,e))}return a.pipe(qx())}))}))).pipe(WI()):Bt(!0)}function XI(e,t,i){var n=t[t.length-1],a=t.slice(0,t.length-1).reverse().map((function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)})).filter((function(e){return null!==e})).map((function(t){return nl((function(){return Bt(t.guards.map((function(a){var r,o=HI(a,t.node,i);if(function(e){return e&&EI(e.canActivateChild)}(o))r=RS(o.canActivateChild(n,e));else{if(!EI(o))throw new Error("Invalid CanActivateChild guard");r=RS(o(n,e))}return r.pipe(qx())}))).pipe(WI())}))}));return Bt(a).pipe(WI())}var YI=function e(){_classCallCheck(this,e)},ZI=function(){function e(t,i,n,a,r,o){_classCallCheck(this,e),this.rootComponentType=t,this.config=i,this.urlTree=n,this.url=a,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return _createClass(e,[{key:"recognize",value:function(){try{var e=tO(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),i=new uI([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new aI(i,t),a=new dI(this.url,n);return this.inheritParamsAndData(a._root),Bt(a)}catch(r){return new si.a((function(e){return e.error(r)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,i=e.value,n=lI(i,this.paramsInheritanceStrategy);i.params=Object.freeze(n.params),i.data=Object.freeze(n.data),e.children.forEach((function(e){return t.inheritParamsAndData(e)}))}},{key:"processSegmentGroup",value:function(e,t,i){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,i)}},{key:"processChildren",value:function(e,t){var i,n=this,a=zS(t,(function(t,i){return n.processSegmentGroup(e,t,i)}));return i={},a.forEach((function(e){var t=i[e.value.outlet];if(t){var n=t.url.map((function(e){return e.toString()})).join("/"),a=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(n,"' and '").concat(a,"'."))}i[e.value.outlet]=e.value})),a.sort((function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)})),a}},{key:"processSegment",value:function(e,t,i,n){var a,r=_createForOfIteratorHelper(e);try{for(r.s();!(a=r.n()).done;){var o=a.value;try{return this.processSegmentAgainstRoute(o,t,i,n)}catch(s){if(!(s instanceof YI))throw s}}}catch(c){r.e(c)}finally{r.f()}if(this.noLeftoversInUrl(t,i,n))return[];throw new YI}},{key:"noLeftoversInUrl",value:function(e,t,i){return 0===t.length&&!e.children[i]}},{key:"processSegmentAgainstRoute",value:function(e,t,i,n){if(e.redirectTo)throw new YI;if((e.outlet||"primary")!==n)throw new YI;var a,r=[],o=[];if("**"===e.path){var s=i.length>0?TS(i).parameters:{};a=new uI(i,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,aO(e),n,e.component,e,QI(t),eO(t)+i.length,rO(e))}else{var c=function(e,t,i){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||i.length>0))throw new YI;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=(t.matcher||wS)(i,e,t);if(!n)throw new YI;var a={};PS(n.posParams,(function(e,t){a[t]=e.path}));var r=n.consumed.length>0?Object.assign(Object.assign({},a),n.consumed[n.consumed.length-1].parameters):a;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:r}}(t,e,i);r=c.consumedSegments,o=i.slice(c.lastChild),a=new uI(r,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,aO(e),n,e.component,e,QI(t),eO(t)+r.length,rO(e))}var l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),u=tO(t,r,o,l,this.relativeLinkResolution),d=u.segmentGroup,h=u.slicedSegments;if(0===h.length&&d.hasChildren()){var p=this.processChildren(l,d);return[new aI(a,p)]}if(0===l.length&&0===h.length)return[new aI(a,[])];var f=this.processSegment(l,d,h,"primary");return[new aI(a,f)]}}]),e}();function QI(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function eO(e){for(var t=e,i=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)i+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return i-1}function tO(e,t,i,n,a){if(i.length>0&&function(e,t,i){return i.some((function(i){return iO(e,t,i)&&"primary"!==nO(i)}))}(e,i,n)){var r=new jS(t,function(e,t,i,n){var a={};a.primary=n,n._sourceSegment=e,n._segmentIndexShift=t.length;var r,o=_createForOfIteratorHelper(i);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(""===s.path&&"primary"!==nO(s)){var c=new jS([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,a[nO(s)]=c}}}catch(l){o.e(l)}finally{o.f()}return a}(e,t,n,new jS(i,e.children)));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===i.length&&function(e,t,i){return i.some((function(i){return iO(e,t,i)}))}(e,i,n)){var o=new jS(e.segments,function(e,t,i,n,a,r){var o,s={},c=_createForOfIteratorHelper(n);try{for(c.s();!(o=c.n()).done;){var l=o.value;if(iO(e,i,l)&&!a[nO(l)]){var u=new jS([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===r?e.segments.length:t.length,s[nO(l)]=u}}}catch(d){c.e(d)}finally{c.f()}return Object.assign(Object.assign({},a),s)}(e,t,i,n,e.children,a));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:i}}var s=new jS(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:i}}function iO(e,t,i){return(!(e.hasChildren()||t.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function nO(e){return e.outlet||"primary"}function aO(e){return e.data||{}}function rO(e){return e.resolve||{}}function oO(e,t,i,n){var a=HI(e,t,n);return RS(a.resolve?a.resolve(t,i):a(t,i))}function sO(e){return function(t){return t.pipe(Tl((function(t){var i=e(t);return i?Object(sr.a)(i).pipe(Object(ri.a)((function(){return t}))):Object(sr.a)([t])})))}}var cO=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}(),lO=new a.x("ROUTES"),uO=function(){function e(t,i,n,a){_classCallCheck(this,e),this.loader=t,this.compiler=i,this.onLoadStartListener=n,this.onLoadEndListener=a}return _createClass(e,[{key:"load",value:function(e,t){var i=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(ri.a)((function(n){i.onLoadEndListener&&i.onLoadEndListener(t);var a=n.create(e);return new CS(AS(a.injector.get(lO)).map(OS),a)})))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Object(sr.a)(this.loader.load(e)):RS(e()).pipe(Object(rf.a)((function(e){return e instanceof a.E?Bt(e):Object(sr.a)(t.compiler.compileModuleAsync(e))})))}}]),e}(),dO=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function hO(e){throw e}function pO(e,t,i){return t.parse("/")}function fO(e,t){return Bt(null)}var mO,gO,vO,bO=((vO=function(){function e(t,i,n,r,o,s,c,l){var u=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Lt.a,this.errorHandler=hO,this.malformedUriErrorHandler=pO,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:fO,afterPreactivation:fO},this.urlHandlingStrategy=new dO,this.routeReuseStrategy=new cO,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(a.G),this.console=o.get(a.nb);var d=o.get(a.I);this.isNgZoneEnabled=d instanceof a.I,this.resetConfig(l),this.currentUrlTree=new LS(new jS([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new uO(s,c,(function(e){return u.triggerEvent(new dS(e))}),(function(e){return u.triggerEvent(new hS(e))})),this.routerState=sI(this.currentUrlTree,this.rootComponentType),this.transitions=new Ik({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"setupNavigations",value:function(e){var t=this,i=this.events;return e.pipe(ii((function(e){return 0!==e.id})),Object(ri.a)((function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})})),Tl((function(e){var n,a,r,o=!1,s=!1;return Bt(e).pipe(Gt((function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Tl((function(e){var n,a,r,o,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Bt(e).pipe(Tl((function(e){var n=t.transitions.getValue();return i.next(new iS(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==t.transitions.getValue()?ci:[e]})),Tl((function(e){return Promise.resolve(e)})),(n=t.ngModule.injector,a=t.configLoader,r=t.urlSerializer,o=t.config,function(e){return e.pipe(Tl((function(e){return function(e,t,i,n,a){return new jI(e,t,i,n,a).apply()}(n,a,r,e.extractedUrl,o).pipe(Object(ri.a)((function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})})))})))}),Gt((function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})})),function(e,i,n,a,r){return function(n){return n.pipe(Object(rf.a)((function(n){return function(e,t,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new ZI(e,t,i,n,a,r).recognize()}(e,i,n.urlAfterRedirects,(o=n.urlAfterRedirects,t.serializeUrl(o)),a,r).pipe(Object(ri.a)((function(e){return Object.assign(Object.assign({},n),{targetSnapshot:e})})));var o})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Gt((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),Gt((function(e){var n=new oS(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);i.next(n)})));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var c=e.id,l=e.extractedUrl,u=e.source,d=e.restoredState,h=e.extras,p=new iS(c,t.serializeUrl(l),u,d);i.next(p);var f=sI(l,t.rootComponentType).snapshot;return Bt(Object.assign(Object.assign({},e),{targetSnapshot:f,urlAfterRedirects:l,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),ci})),sO((function(e){var i=e.targetSnapshot,n=e.id,a=e.extractedUrl,r=e.rawUrl,o=e.extras,s=o.skipLocationChange,c=o.replaceUrl;return t.hooks.beforePreactivation(i,{navigationId:n,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!c})})),Gt((function(e){var i=new sS(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(i)})),Object(ri.a)((function(e){return Object.assign(Object.assign({},e),{guards:(i=e.targetSnapshot,n=e.currentSnapshot,a=t.rootContexts,r=i._root,function e(t,i,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=rI(i);return t.children.forEach((function(t){!function(t,i,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,s=i?i.value:null,c=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var l=function(e,t,i){if("function"==typeof i)return i(e,t);switch(i){case"pathParamsChange":return!NS(e.url,t.url);case"pathParamsOrQueryParamsChange":return!NS(e.url,t.url)||!DS(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mI(e,t)||!DS(e.queryParams,t.queryParams);case"paramsChange":default:return!mI(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new JI(a)):(o.data=s.data,o._resolvedData=s._resolvedData),e(t,i,o.component?c?c.children:null:n,a,r),l&&r.canDeactivateChecks.push(new VI(c&&c.outlet&&c.outlet.component||null,s))}else s&&UI(i,c,r),r.canActivateChecks.push(new JI(a)),e(t,null,o.component?c?c.children:null:n,a,r)}(t,o[t.value.outlet],n,a.concat([t.value]),r),delete o[t.value.outlet]})),PS(o,(function(e,t){return UI(e,n.getContext(t),r)})),r}(r,n?n._root:null,a,[r.value]))});var i,n,a,r})),function(e,t){return function(i){return i.pipe(Object(rf.a)((function(i){var n=i.targetSnapshot,a=i.currentSnapshot,r=i.guards,o=r.canActivateChecks,s=r.canDeactivateChecks;return 0===s.length&&0===o.length?Bt(Object.assign(Object.assign({},i),{guardsResult:!0})):function(e,t,i,n){return Object(sr.a)(e).pipe(Object(rf.a)((function(e){return function(e,t,i,n,a){var r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return r&&0!==r.length?Bt(r.map((function(r){var o,s=HI(r,t,a);if(function(e){return e&&EI(e.canDeactivate)}(s))o=RS(s.canDeactivate(e,t,i,n));else{if(!EI(s))throw new Error("Invalid CanDeactivate guard");o=RS(s(e,t,i,n))}return o.pipe(qx())}))).pipe(WI()):Bt(!0)}(e.component,e.route,i,t,n)})),qx((function(e){return!0!==e}),!0))}(s,n,a,e).pipe(Object(rf.a)((function(i){return i&&"boolean"==typeof i?function(e,t,i,n){return Object(sr.a)(t).pipe(of((function(t){return Object(sr.a)([$I(t.route.parent,n),qI(t.route,n),XI(e,t.path,i),KI(e,t.route,i)]).pipe(Dn(),qx((function(e){return!0!==e}),!0))})),qx((function(e){return!0!==e}),!0))}(n,o,e,t):Bt(i)})),Object(ri.a)((function(e){return Object.assign(Object.assign({},i),{guardsResult:e})})))})))}}(t.ngModule.injector,(function(e){return t.triggerEvent(e)})),Gt((function(e){if(AI(e.guardsResult)){var i=kS('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw i.url=e.guardsResult,i}})),Gt((function(e){var i=new cS(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)})),ii((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var n=new aS(e.id,t.serializeUrl(e.extractedUrl),"");return i.next(n),e.resolve(!1),!1}return!0})),sO((function(e){if(e.guards.canActivateChecks.length)return Bt(e).pipe(Gt((function(e){var i=new lS(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(i)})),(i=t.paramsInheritanceStrategy,n=t.ngModule.injector,function(e){return e.pipe(Object(rf.a)((function(e){var t=e.targetSnapshot,a=e.guards.canActivateChecks;return a.length?Object(sr.a)(a).pipe(of((function(e){return function(e,t,i,n){return function(e,t,i,n){var a=Object.keys(e);if(0===a.length)return Bt({});if(1===a.length){var r=a[0];return oO(e[r],t,i,n).pipe(Object(ri.a)((function(e){return _defineProperty({},r,e)})))}var o={};return Object(sr.a)(a).pipe(Object(rf.a)((function(a){return oO(e[a],t,i,n).pipe(Object(ri.a)((function(e){return o[a]=e,e})))}))).pipe(Wx(),Object(ri.a)((function(){return o})))}(e._resolve,e,t,n).pipe(Object(ri.a)((function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),lI(e,i).resolve),null})))}(e.route,t,i,n)})),function(e,t){return arguments.length>=2?function(i){return Object(eS.a)(Xx(e,t),Lx(1),Vx(t))(i)}:function(t){return Object(eS.a)(Xx((function(t,i,n){return e(t,i,n+1)})),Lx(1))(t)}}((function(e,t){return e})),Object(ri.a)((function(t){return e}))):Bt(e)})))}),Gt((function(e){var i=new uS(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(i)})));var i,n})),sO((function(e){var i=e.targetSnapshot,n=e.id,a=e.extractedUrl,r=e.rawUrl,o=e.extras,s=o.skipLocationChange,c=o.replaceUrl;return t.hooks.afterPreactivation(i,{navigationId:n,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!c})})),Object(ri.a)((function(e){var i=function(e,t,i){var n=function e(t,i,n){if(n&&t.shouldReuseRoute(i.value,n.value.snapshot)){var a=n.value;a._futureSnapshot=i.value;var r=function(t,i,n){return i.children.map((function(i){var a,r=_createForOfIteratorHelper(n.children);try{for(r.s();!(a=r.n()).done;){var o=a.value;if(t.shouldReuseRoute(o.value.snapshot,i.value))return e(t,i,o)}}catch(s){r.e(s)}finally{r.f()}return e(t,i)}))}(t,i,n);return new aI(a,r)}var o=t.retrieve(i.value);if(o){var s=o.route;return function e(t,i){if(t.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=t.value;for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=t.relativeTo,n=t.queryParams,r=t.fragment,o=t.preserveQueryParams,s=t.queryParamsHandling,c=t.preserveFragment;Object(a.jb)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=i||this.routerState.root,u=c?this.currentUrlTree.fragment:r,d=null;if(s)switch(s){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=n||null}else d=o?this.currentUrlTree.queryParams:n||null;return null!==d&&(d=this.removeEmptyProps(d)),function(e,t,i,n,a){if(0===i.length)return vI(t.root,t.root,t,n,a);var r=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new bI(!0,0,e);var t=0,i=!1,n=e.reduce((function(e,n,a){if("object"==typeof n&&null!=n){if(n.outlets){var r={};return PS(n.outlets,(function(e,t){r[t]="string"==typeof e?e.split("/"):e})),[].concat(_toConsumableArray(e),[{outlets:r}])}if(n.segmentPath)return[].concat(_toConsumableArray(e),[n.segmentPath])}return"string"!=typeof n?[].concat(_toConsumableArray(e),[n]):0===a?(n.split("/").forEach((function(n,a){0==a&&"."===n||(0==a&&""===n?i=!0:".."===n?t++:""!=n&&e.push(n))})),e):[].concat(_toConsumableArray(e),[n])}),[]);return new bI(i,t,n)}(i);if(r.toRoot())return vI(t.root,new jS([],{}),t,n,a);var o=function(e,t,i){if(e.isAbsolute)return new _I(t.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new _I(i.snapshot._urlSegment,!0,0);var n=gI(e.commands[0])?0:1;return function(e,t,i){for(var n=e,a=t,r=i;r>a;){if(r-=a,!(n=n.parent))throw new Error("Invalid number of '../'");a=n.segments.length}return new _I(n,!1,a-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,e.numberOfDoubleDots)}(r,t,e),s=o.processChildren?wI(o.segmentGroup,o.index,r.commands):kI(o.segmentGroup,o.index,r.commands);return vI(o.segmentGroup,s,t,n,a)}(l,this.currentUrlTree,e,d,u)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Object(a.jb)()&&this.isNgZoneEnabled&&!a.I.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var i=AI(e)?e:this.parseUrl(e),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=i,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof iS?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof nS&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof vS&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new vS(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){a.Vc()},xO.\u0275dir=a.yc({type:xO}),xO),LO=new a.x("ROUTER_CONFIGURATION"),jO=new a.x("ROUTER_FORROOT_GUARD"),FO=[yt.n,{provide:BS,useClass:JS},{provide:bO,useFactory:function(e,t,i,n,a,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,u=new bO(null,e,t,i,n,a,r,AS(o));if(c&&(u.urlHandlingStrategy=c),l&&(u.routeReuseStrategy=l),s.errorHandler&&(u.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(u.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var d=Object(yt.N)();u.events.subscribe((function(e){d.logGroup("Router Event: ".concat(e.constructor.name)),d.log(e.toString()),d.log(e),d.logGroupEnd()}))}return s.onSameUrlNavigation&&(u.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(u.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(u.relativeLinkResolution=s.relativeLinkResolution),u},deps:[BS,DO,yt.n,a.y,a.F,a.k,lO,LO,[function(){return function e(){_classCallCheck(this,e)}}(),new a.J],[function(){return function e(){_classCallCheck(this,e)}}(),new a.J]]},DO,{provide:cI,useFactory:function(e){return e.routerState.root},deps:[bO]},{provide:a.F,useClass:a.V},RO,PO,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(Yp((function(){return Bt(null)})))}}]),e}(),{provide:LO,useValue:{enableTracing:!1}}];function NO(){return new a.H("Router",bO)}var zO,BO=((zO=function(){function e(t,i){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,i){return{ngModule:e,providers:[FO,UO(t),{provide:jO,useFactory:HO,deps:[[bO,new a.J,new a.U]]},{provide:LO,useValue:i||{}},{provide:yt.o,useFactory:VO,deps:[yt.D,[new a.w(yt.a),new a.J],LO]},{provide:MO,useFactory:JO,deps:[bO,yt.H,LO]},{provide:TO,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:PO},{provide:a.H,multi:!0,useFactory:NO},[WO,{provide:a.d,multi:!0,useFactory:qO,deps:[WO]},{provide:XO,useFactory:$O,deps:[WO]},{provide:a.b,multi:!0,useExisting:XO}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[UO(t)]}}}]),e}()).\u0275mod=a.Bc({type:zO}),zO.\u0275inj=a.Ac({factory:function(e){return new(e||zO)(a.Sc(jO,8),a.Sc(bO,8))}}),zO);function JO(e,t,i){return i.scrollOffset&&t.setOffset(i.scrollOffset),new MO(e,t,i)}function VO(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.useHash?new yt.h(e,t):new yt.B(e,t)}function HO(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function UO(e){return[{provide:a.a,multi:!0,useValue:e},{provide:lO,multi:!0,useValue:e}]}var GO,WO=((GO=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Lt.a}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(yt.m,Promise.resolve(null)).then((function(){var t=null,i=new Promise((function(e){return t=e})),n=e.injector.get(bO),a=e.injector.get(LO);if(e.isLegacyDisabled(a)||e.isLegacyEnabled(a))t(!0);else if("disabled"===a.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==a.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(a.initialNavigation,"'"));n.hooks.afterPreactivation=function(){return e.initNavigation?Bt(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},n.initialNavigation()}return i}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(LO),i=this.injector.get(RO),n=this.injector.get(MO),r=this.injector.get(bO),o=this.injector.get(a.g);e===o.components[0]&&(this.isLegacyEnabled(t)?r.initialNavigation():this.isLegacyDisabled(t)&&r.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}},{key:"isLegacyDisabled",value:function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}]),e}()).\u0275fac=function(e){return new(e||GO)(a.Sc(a.y))},GO.\u0275prov=a.zc({token:GO,factory:GO.\u0275fac}),GO);function qO(e){return e.appInitializer.bind(e)}function $O(e){return e.bootstrapListener.bind(e)}var KO,XO=new a.x("Router Initializer"),YO=((KO=function(){function e(t,i,n,r){var o=this;_classCallCheck(this,e),this.http=t,this.router=i,this.document=n,this.snackBar=r,this.path="",this.audioFolder="",this.videoFolder="",this.startPath=null,this.startPathSSL=null,this.handShakeComplete=!1,this.THEMES_CONFIG=Px,this.settings_changed=new Ik(!1),this.auth_token="4241b401-7236-493e-92b5-b72696b9d853",this.session_id=null,this.httpOptions=null,this.http_params=null,this.unauthorized=!1,this.debugMode=!1,this.isLoggedIn=!1,this.token=null,this.user=null,this.permissions=null,this.available_permissions=null,this.reload_config=new Ik(!1),this.config_reloaded=new Ik(!1),this.service_initialized=new Ik(!1),this.initialized=!1,this.open_create_default_admin_dialog=new Ik(!1),this.config=null,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",Object(a.jb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/"),this.http_params="apiKey=".concat(this.auth_token),this.httpOptions={params:new hf({fromString:this.http_params})},Rx.get((function(e){o.session_id=Rx.x64hash128(e.map((function(e){return e.value})).join(),31),o.httpOptions.params=o.httpOptions.params.set("sessionID",o.session_id)}));var s=window.location.href.includes("/player")||window.location.href.includes("/login");this.loadNavItems().subscribe((function(e){var t=o.debugMode?e:e.config_file;t&&(o.config=t.YoutubeDLMaterial,o.config.Advanced.multi_user_mode?localStorage.getItem("jwt_token")&&"null"!==localStorage.getItem("jwt_token")?(o.token=localStorage.getItem("jwt_token"),o.httpOptions.params=o.httpOptions.params.set("jwt",o.token),o.jwtAuth()):s?o.setInitialized():o.sendToLogin():o.setInitialized())})),this.reload_config.subscribe((function(e){e&&o.reloadConfig()}))}return _createClass(e,[{key:"canActivate",value:function(e,t){return new Promise((function(e){e(!0)}))}},{key:"setTheme",value:function(e){this.theme=this.THEMES_CONFIG[e]}},{key:"startHandshake",value:function(e){return this.http.get(e+"geturl")}},{key:"startHandshakeSSL",value:function(e){return this.http.get(e+"geturl")}},{key:"reloadConfig",value:function(){var e=this;this.loadNavItems().subscribe((function(t){var i=e.debugMode?t:t.config_file;i&&(e.config=i.YoutubeDLMaterial,e.config_reloaded.next(!0))}))}},{key:"getVideoFolder",value:function(){return this.http.get(this.startPath+"videofolder")}},{key:"getAudioFolder",value:function(){return this.http.get(this.startPath+"audiofolder")}},{key:"makeMP3",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"tomp3",{url:e,maxBitrate:t,customQualityConfiguration:i,customArgs:n,customOutput:a,youtubeUsername:r,youtubePassword:o,ui_uid:s},this.httpOptions)}},{key:"makeMP4",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"tomp4",{url:e,selectedHeight:t,customQualityConfiguration:i,customArgs:n,customOutput:a,youtubeUsername:r,youtubePassword:o,ui_uid:s},this.httpOptions)}},{key:"getFileStatusMp3",value:function(e){return this.http.post(this.path+"fileStatusMp3",{name:e},this.httpOptions)}},{key:"getFileStatusMp4",value:function(e){return this.http.post(this.path+"fileStatusMp4",{name:e},this.httpOptions)}},{key:"loadNavItems",value:function(){return Object(a.jb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config",this.httpOptions)}},{key:"loadAsset",value:function(e){return this.http.get("./assets/".concat(e))}},{key:"setConfig",value:function(e){return this.http.post(this.path+"setConfig",{new_config_file:e},this.httpOptions)}},{key:"deleteFile",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.http.post(t?this.path+"deleteMp3":this.path+"deleteMp4",{uid:e,blacklistMode:i},this.httpOptions)}},{key:"getMp3s",value:function(){return this.http.get(this.path+"getMp3s",this.httpOptions)}},{key:"getMp4s",value:function(){return this.http.get(this.path+"getMp4s",this.httpOptions)}},{key:"getFile",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"getFile",{uid:e,type:t,uuid:i},this.httpOptions)}},{key:"downloadFileFromServer",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;return this.http.post(this.path+"downloadFile",{fileNames:e,type:t,zip_mode:Array.isArray(e),outputName:i,fullPathProvided:n,subscriptionName:a,subPlaylist:r,uuid:s,uid:o},{responseType:"blob",params:this.httpOptions.params})}},{key:"uploadCookiesFile",value:function(e){return this.http.post(this.path+"uploadCookies",e,this.httpOptions)}},{key:"downloadArchive",value:function(e){return this.http.post(this.path+"downloadArchive",{sub:e},{responseType:"blob",params:this.httpOptions.params})}},{key:"getFileInfo",value:function(e,t,i){return this.http.post(this.path+"getVideoInfos",{fileNames:e,type:t,urlMode:i},this.httpOptions)}},{key:"getLogs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;return this.http.post(this.path+"logs",{lines:e},this.httpOptions)}},{key:"isPinSet",value:function(){return this.http.post(this.path+"isPinSet",{},this.httpOptions)}},{key:"setPin",value:function(e){return this.http.post(this.path+"setPin",{pin:e},this.httpOptions)}},{key:"checkPin",value:function(e){return this.http.post(this.path+"checkPin",{input_pin:e},this.httpOptions)}},{key:"generateNewAPIKey",value:function(){return this.http.post(this.path+"generateNewAPIKey",{},this.httpOptions)}},{key:"enableSharing",value:function(e,t,i){return this.http.post(this.path+"enableSharing",{uid:e,type:t,is_playlist:i},this.httpOptions)}},{key:"disableSharing",value:function(e,t,i){return this.http.post(this.path+"disableSharing",{uid:e,type:t,is_playlist:i},this.httpOptions)}},{key:"createPlaylist",value:function(e,t,i,n){return this.http.post(this.path+"createPlaylist",{playlistName:e,fileNames:t,type:i,thumbnailURL:n},this.httpOptions)}},{key:"getPlaylist",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"getPlaylist",{playlistID:e,type:t,uuid:i},this.httpOptions)}},{key:"updatePlaylist",value:function(e){return this.http.post(this.path+"updatePlaylist",{playlist:e},this.httpOptions)}},{key:"updatePlaylistFiles",value:function(e,t,i){return this.http.post(this.path+"updatePlaylistFiles",{playlistID:e,fileNames:t,type:i},this.httpOptions)}},{key:"removePlaylist",value:function(e,t){return this.http.post(this.path+"deletePlaylist",{playlistID:e,type:t},this.httpOptions)}},{key:"createSubscription",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return this.http.post(this.path+"subscribe",{url:e,name:t,timerange:i,streamingOnly:n,audioOnly:a,customArgs:r,customFileOutput:o},this.httpOptions)}},{key:"unsubscribe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.http.post(this.path+"unsubscribe",{sub:e,deleteMode:t},this.httpOptions)}},{key:"deleteSubscriptionFile",value:function(e,t,i,n){return this.http.post(this.path+"deleteSubscriptionFile",{sub:e,file:t,deleteForever:i,file_uid:n},this.httpOptions)}},{key:"getSubscription",value:function(e){return this.http.post(this.path+"getSubscription",{id:e},this.httpOptions)}},{key:"getAllSubscriptions",value:function(){return this.http.post(this.path+"getAllSubscriptions",{},this.httpOptions)}},{key:"getCurrentDownloads",value:function(){return this.http.get(this.path+"downloads",this.httpOptions)}},{key:"getCurrentDownload",value:function(e,t){return this.http.post(this.path+"download",{download_id:t,session_id:e},this.httpOptions)}},{key:"clearDownloads",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"clearDownloads",{delete_all:e,download_id:i,session_id:t||this.session_id},this.httpOptions)}},{key:"updateServer",value:function(e){return this.http.post(this.path+"updateServer",{tag:e},this.httpOptions)}},{key:"getUpdaterStatus",value:function(){return this.http.get(this.path+"updaterStatus",this.httpOptions)}},{key:"getLatestGithubRelease",value:function(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest")}},{key:"getAvailableRelease",value:function(){return this.http.get("https://api.github.com/repos/tzahi12345/youtubedl-material/releases")}},{key:"afterLogin",value:function(e,t,i,n){this.isLoggedIn=!0,this.user=e,this.permissions=i,this.available_permissions=n,this.token=t,localStorage.setItem("jwt_token",this.token),this.httpOptions.params=this.httpOptions.params.set("jwt",this.token),this.setInitialized(),this.config_reloaded.next(!0),"/login"===this.router.url&&this.router.navigate(["/home"])}},{key:"login",value:function(e,t){return this.http.post(this.path+"auth/login",{userid:e,password:t},this.httpOptions)}},{key:"jwtAuth",value:function(){var e=this,t=this.http.post(this.path+"auth/jwtAuth",{},this.httpOptions);return t.subscribe((function(t){t.token&&e.afterLogin(t.user,t.token,t.permissions,t.available_permissions)}),(function(t){401===t.status&&e.sendToLogin(),console.log(t)})),t}},{key:"logout",value:function(){this.user=null,this.permissions=null,this.isLoggedIn=!1,this.token=null,localStorage.setItem("jwt_token",null),"/login"!==this.router.url&&this.router.navigate(["/login"]),this.http_params="apiKey=".concat(this.auth_token,"&sessionID=").concat(this.session_id),this.httpOptions={params:new hf({fromString:this.http_params})}}},{key:"register",value:function(e,t){return this.http.post(this.path+"auth/register",{userid:e,username:e,password:t},this.httpOptions)}},{key:"sendToLogin",value:function(){this.checkAdminCreationStatus(),this.initialized||this.setInitialized(),"/login"!==this.router.url&&(this.router.navigate(["/login"]),this.openSnackBar("You must log in to access this page!"))}},{key:"setInitialized",value:function(){this.service_initialized.next(!0),this.initialized=!0,this.config_reloaded.next(!0)}},{key:"adminExists",value:function(){return this.http.post(this.path+"auth/adminExists",{},this.httpOptions)}},{key:"createAdminAccount",value:function(e){return this.http.post(this.path+"auth/register",{userid:"admin",username:"admin",password:e},this.httpOptions)}},{key:"checkAdminCreationStatus",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(t||this.config.Advanced.multi_user_mode)&&this.adminExists().subscribe((function(t){t.exists||e.open_create_default_admin_dialog.next(!0)}))}},{key:"changeUser",value:function(e){return this.http.post(this.path+"updateUser",{change_object:e},this.httpOptions)}},{key:"deleteUser",value:function(e){return this.http.post(this.path+"deleteUser",{uid:e},this.httpOptions)}},{key:"changeUserPassword",value:function(e,t){return this.http.post(this.path+"auth/changePassword",{user_uid:e,new_password:t},this.httpOptions)}},{key:"getUsers",value:function(){return this.http.post(this.path+"getUsers",{},this.httpOptions)}},{key:"getRoles",value:function(){return this.http.post(this.path+"getRoles",{},this.httpOptions)}},{key:"setUserPermission",value:function(e,t,i){return this.http.post(this.path+"changeUserPermissions",{user_uid:e,permission:t,new_value:i},this.httpOptions)}},{key:"setRolePermission",value:function(e,t,i){return this.http.post(this.path+"changeRolePermissions",{role:e,permission:t,new_value:i},this.httpOptions)}},{key:"openSnackBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||KO)(a.Sc(Pf),a.Sc(bO),a.Sc(yt.e),a.Sc(A_))},KO.\u0275prov=a.zc({token:KO,factory:KO.\u0275fac}),KO);si.a.of=Bt;var ZO=function(){function e(t){_classCallCheck(this,e),this.value=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new QO(e,this.value))}}]),e}(),QO=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).value=n,a}return _createClass(i,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),i}(Vt.a);function eD(e,t,i){return Gt(e,t,i)(this)}function tD(){return Tl(Gx.a)(this)}function iD(e,t){if(1&e&&(a.Jc(0,"h4",5),a.Bd(1),a.Ic()),2&e){var i=a.ad();a.pc(1),a.Cd(i.dialog_title)}}function nD(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"mat-form-field",6),a.Jc(2,"input",7),a.Wc("keyup.enter",(function(){return a.rd(i),a.ad().doAction()}))("ngModelChange",(function(e){return a.rd(i),a.ad().input=e})),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(2),a.gd("ngModel",n.input)("placeholder",n.input_placeholder)}}function aD(e,t){1&e&&(a.Jc(0,"div",8),a.Ec(1,"mat-spinner",9),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",25))}si.a.prototype.mapTo=function(e){return function(e){return function(t){return t.lift(new ZO(e))}}(e)(this)},i("XypG"),si.a.fromEvent=rl,si.a.prototype.filter=function(e,t){return ii(e,t)(this)},si.a.prototype.debounceTime=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt;return Zt(e,t)(this)},si.a.prototype.do=eD,si.a.prototype._do=eD,si.a.prototype.switch=tD,si.a.prototype._switch=tD;var rD,oD,sD,cD,lD,uD,dD,hD,pD,fD,mD,gD,vD,bD,_D,yD,kD=((rD=function(){function e(t,i,n,a){_classCallCheck(this,e),this.postsService=t,this.data=i,this.dialogRef=n,this.snackBar=a,this.pinSetChecked=!1,this.pinSet=!0,this.resetMode=!1,this.dialog_title="",this.input_placeholder=null,this.input="",this.button_label=""}return _createClass(e,[{key:"ngOnInit",value:function(){this.data&&(this.resetMode=this.data.resetMode),this.resetMode?(this.pinSetChecked=!0,this.notSetLogic()):this.isPinSet()}},{key:"isPinSet",value:function(){var e=this;this.postsService.isPinSet().subscribe((function(t){e.pinSetChecked=!0,t.is_set?e.isSetLogic():e.notSetLogic()}))}},{key:"isSetLogic",value:function(){this.pinSet=!0,this.dialog_title="Pin Required",this.input_placeholder="Pin",this.button_label="Submit"}},{key:"notSetLogic",value:function(){this.pinSet=!1,this.dialog_title="Set your pin",this.input_placeholder="New pin",this.button_label="Set Pin"}},{key:"doAction",value:function(){var e=this;this.pinSetChecked&&0!==this.input.length&&(this.pinSet?this.postsService.checkPin(this.input).subscribe((function(t){t.success?e.dialogRef.close(!0):(e.dialogRef.close(!1),e.openSnackBar("Pin is incorrect!"))})):this.postsService.setPin(this.input).subscribe((function(t){t.success?(e.dialogRef.close(!0),e.openSnackBar("Pin successfully set!")):(e.dialogRef.close(!1),e.openSnackBar("Failed to set pin!"))})))}},{key:"openSnackBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||rD)(a.Dc(YO),a.Dc(Oh),a.Dc(Ih),a.Dc(A_))},rD.\u0275cmp=a.xc({type:rD,selectors:[["app-check-or-set-pin-dialog"]],decls:8,vars:5,consts:[["mat-dialog-title","",4,"ngIf"],[2,"position","relative"],[4,"ngIf"],["class","spinner-div",4,"ngIf"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],["mat-dialog-title",""],["color","accent"],["type","password","matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],[1,"spinner-div"],[3,"diameter"]],template:function(e,t){1&e&&(a.zd(0,iD,2,1,"h4",0),a.Jc(1,"mat-dialog-content"),a.Jc(2,"div",1),a.zd(3,nD,3,2,"div",2),a.zd(4,aD,2,1,"div",3),a.Ic(),a.Ic(),a.Jc(5,"mat-dialog-actions"),a.Jc(6,"button",4),a.Wc("click",(function(){return t.doAction()})),a.Bd(7),a.Ic(),a.Ic()),2&e&&(a.gd("ngIf",t.pinSetChecked),a.pc(3),a.gd("ngIf",t.pinSetChecked),a.pc(1),a.gd("ngIf",!t.pinSetChecked),a.pc(2),a.gd("disabled",0===t.input.length),a.pc(1),a.Cd(t.button_label))},directives:[yt.t,Lh,jh,Za,Mh,Ud,Pm,_r,Dr,es,jv],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),rD),wD={ab:{name:"Abkhaz",nativeName:"\u0430\u04a7\u0441\u0443\u0430"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"\u12a0\u121b\u122d\u129b"},ar:{name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},an:{name:"Aragonese",nativeName:"Aragon\xe9s"},hy:{name:"Armenian",nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},as:{name:"Assamese",nativeName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",nativeName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0, \u043c\u0430\u0433\u04c0\u0430\u0440\u0443\u043b \u043c\u0430\u0446\u04c0"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"az\u0259rbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f"},bn:{name:"Bengali",nativeName:"\u09ac\u09be\u0982\u09b2\u09be"},bh:{name:"Bihari",nativeName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},my:{name:"Burmese",nativeName:"\u1017\u1019\u102c\u1005\u102c"},ca:{name:"Catalan; Valencian",nativeName:"Catal\xe0"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiChe\u0175a, chinyanja"},zh:{name:"Chinese",nativeName:"\u4e2d\u6587 (Zh\u014dngw\xe9n), \u6c49\u8bed, \u6f22\u8a9e"},cv:{name:"Chuvash",nativeName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"\u010desky, \u010de\u0161tina"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"\u078b\u07a8\u0788\u07ac\u0780\u07a8"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"E\u028begbe"},fo:{name:"Faroese",nativeName:"f\xf8royskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"fran\xe7ais, langue fran\xe7aise"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek, Modern",nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},gn:{name:"Guaran\xed",nativeName:"Ava\xf1e\u1ebd"},gu:{name:"Gujarati",nativeName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},ht:{name:"Haitian; Haitian Creole",nativeName:"Krey\xf2l ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, \u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew (modern)",nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940, \u0939\u093f\u0902\u0926\u0940"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"As\u1ee5s\u1ee5 Igbo"},ik:{name:"Inupiaq",nativeName:"I\xf1upiaq, I\xf1upiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"\xcdslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",nativeName:"\u65e5\u672c\u8a9e (\u306b\u307b\u3093\u3054\uff0f\u306b\u3063\u307d\u3093\u3054)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut, Greenlandic",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940, \u0643\u0634\u0645\u064a\u0631\u064a\u200e"},kk:{name:"Kazakh",nativeName:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},km:{name:"Khmer",nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a"},ki:{name:"Kikuyu, Gikuyu",nativeName:"G\u0129k\u0169y\u0169"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz, Kyrgyz",nativeName:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438"},kv:{name:"Komi",nativeName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"\ud55c\uad6d\uc5b4 (\u97d3\u570b\u8a9e), \uc870\uc120\ub9d0 (\u671d\u9bae\u8a9e)"},ku:{name:"Kurdish",nativeName:"Kurd\xee, \u0643\u0648\u0631\u062f\u06cc\u200e"},kj:{name:"Kwanyama, Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish, Letzeburgesch",nativeName:"L\xebtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish, Limburgan, Limburger",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Ling\xe1la"},lo:{name:"Lao",nativeName:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7"},lt:{name:"Lithuanian",nativeName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latvie\u0161u valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},ml:{name:"Malayalam",nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"M\u0101ori",nativeName:"te reo M\u0101ori"},mr:{name:"Marathi (Mar\u0101\u1e6dh\u012b)",nativeName:"\u092e\u0930\u093e\u0920\u0940"},mh:{name:"Marshallese",nativeName:"Kajin M\u0327aje\u013c"},mn:{name:"Mongolian",nativeName:"\u043c\u043e\u043d\u0433\u043e\u043b"},na:{name:"Nauru",nativeName:"Ekakair\u0169 Naoero"},nv:{name:"Navajo, Navaho",nativeName:"Din\xe9 bizaad, Din\xe9k\u02bceh\u01f0\xed"},nb:{name:"Norwegian Bokm\xe5l",nativeName:"Norsk bokm\xe5l"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"\ua188\ua320\ua4bf Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe, Ojibwa",nativeName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},cu:{name:"Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic",nativeName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian, Ossetic",nativeName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi, Punjabi",nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40, \u067e\u0646\u062c\u0627\u0628\u06cc\u200e"},pi:{name:"P\u0101li",nativeName:"\u092a\u093e\u0934\u093f"},fa:{name:"Persian",nativeName:"\u0641\u0627\u0631\u0633\u06cc"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto, Pushto",nativeName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",nativeName:"Portugu\xeas"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian, Moldavian, Moldovan",nativeName:"rom\xe2n\u0103"},ru:{name:"Russian",nativeName:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a"},sa:{name:"Sanskrit (Sa\u1e41sk\u1e5bta)",nativeName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"\u0938\u093f\u0928\u094d\u0927\u0940, \u0633\u0646\u068c\u064a\u060c \u0633\u0646\u062f\u06be\u06cc\u200e"},se:{name:"Northern Sami",nativeName:"Davvis\xe1megiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},sr:{name:"Serbian",nativeName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"G\xe0idhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala, Sinhalese",nativeName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",nativeName:"sloven\u010dina"},sl:{name:"Slovene",nativeName:"sloven\u0161\u010dina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"espa\xf1ol"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",nativeName:"\u0442\u043e\u04b7\u0438\u043a\u04e3, to\u011fik\u012b, \u062a\u0627\u062c\u06cc\u06a9\u06cc\u200e"},th:{name:"Thai",nativeName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",nativeName:"\u1275\u130d\u122d\u129b"},bo:{name:"Tibetan Standard, Tibetan, Central",nativeName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},tk:{name:"Turkmen",nativeName:"T\xfcrkmen, \u0422\u04af\u0440\u043a\u043c\u0435\u043d"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, \u170f\u1712\u1703\u1705\u1714 \u1706\u1704\u170e\u1713\u1704\u1714"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430, tatar\xe7a, \u062a\u0627\u062a\u0627\u0631\u0686\u0627\u200e"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur, Uyghur",nativeName:"Uy\u01a3urq\u0259, \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",nativeName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",nativeName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",nativeName:"zbek, \u040e\u0437\u0431\u0435\u043a, \u0623\u06c7\u0632\u0628\u06d0\u0643\u200e"},ve:{name:"Venda",nativeName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",nativeName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",nativeName:"Volap\xfck"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",nativeName:"Yor\xf9b\xe1"},za:{name:"Zhuang, Chuang",nativeName:"Sa\u026f cue\u014b\u0185, Saw cuengh"}},CD={uncategorized:{label:"Main"},network:{label:"Network"},geo_restriction:{label:"Geo Restriction"},video_selection:{label:"Video Selection"},download:{label:"Download"},filesystem:{label:"Filesystem"},thumbnail:{label:"Thumbnail"},verbosity:{label:"Verbosity"},workarounds:{label:"Workarounds"},video_format:{label:"Video Format"},subtitle:{label:"Subtitle"},authentication:{label:"Authentication"},adobe_pass:{label:"Adobe Pass"},post_processing:{label:"Post Processing"}},xD={uncategorized:[{key:"-h",alt:"--help",description:"Print this help text and exit"},{key:"--version",description:"Print program version and exit"},{key:"-U",alt:"--update",description:"Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)"},{key:"-i",alt:"--ignore-errors",description:"Continue on download errors, for example to skip unavailable videos in a playlist"},{key:"--abort-on-error",description:"Abort downloading of further videos (in the playlist or the command line) if an error occurs"},{key:"--dump-user-agent",description:"Display the current browser identification"},{key:"--list-extractors",description:"List all supported extractors"},{key:"--extractor-descriptions",description:"Output descriptions of all supported extractors"},{key:"--force-generic-extractor",description:"Force extraction to use the generic extractor"},{key:"--default-search",description:'Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube-dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit awarning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching.'},{key:"--ignore-config",description:"Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)"},{key:"--config-location",description:"Location of the configuration file; either the path to the config or its containing directory."},{key:"--flat-playlist",description:"Do not extract the videos of a playlist, only list them."},{key:"--mark-watched",description:"Mark videos watched (YouTube only)"},{key:"--no-mark-watched",description:"Do not mark videos watched (YouTube only)"},{key:"--no-color",description:"Do not emit color codes in output"}],network:[{key:"--proxy",description:'Use the specified HTTP/HTTPS/SOCKS proxy.To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection.'},{key:"--socket-timeout",description:"Time to wait before giving up, in seconds"},{key:"--source-address",description:"Client-side IP address to bind to"},{key:"-4",alt:"--force-ipv4",description:"Make all connections via IPv4"},{key:"-6",alt:"--force-ipv6",description:"Make all connections via IPv6"}],geo_restriction:[{key:"--geo-verification-proxy",description:"Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy', if the option is not present) is used for the actual downloading."},{key:"--geo-bypass",description:"Bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--no-geo-bypass",description:"Do not bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--geo-bypass-country",description:"Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code"},{key:"--geo-bypass-ip-block",description:"Force bypass geographic restriction with explicitly provided IP block in CIDR notation"}],video_selection:[{key:"--playlist-start",description:"Playlist video to start at (default is 1)"},{key:"--playlist-end",description:"Playlist video to end at (default is last)"},{key:"--playlist-items",description:'Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.'},{key:"--match-title",description:"Download only matching titles (regex orcaseless sub-string)"},{key:"--reject-title",description:"Skip download for matching titles (regex orcaseless sub-string)"},{key:"--max-downloads",description:"Abort after downloading NUMBER files"},{key:"--min-filesize",description:"Do not download any videos smaller than SIZE (e.g. 50k or 44.6m)"},{key:"--max-filesize",description:"Do not download any videos larger than SIZE (e.g. 50k or 44.6m)"},{key:"--date",description:"Download only videos uploaded in this date"},{key:"--datebefore",description:"Download only videos uploaded on or before this date (i.e. inclusive)"},{key:"--dateafter",description:"Download only videos uploaded on or after this date (i.e. inclusive)"},{key:"--min-views",description:"Do not download any videos with less than COUNT views"},{key:"--max-views",description:"Do not download any videos with more than COUNT views"},{key:"--match-filter",description:'Generic video filter. Specify any key (seethe "OUTPUT TEMPLATE" for a list of available keys) to match if the key is present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=, =) to compare against a number, key = \'LITERAL\' (like "uploader = \'Mike Smith\'", also works with !=) to match against a string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than 50 times (or the dislike functionality is not available at the given service), but who also have a description, use --match-filter'},{key:"--no-playlist",description:"Download only the video, if the URL refers to a video and a playlist."},{key:"--yes-playlist",description:"Download the playlist, if the URL refers to a video and a playlist."},{key:"--age-limit",description:"Download only videos suitable for the given age"},{key:"--download-archive",description:"Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it."},{key:"--include-ads",description:"Download advertisements as well (experimental)"}],download:[{key:"-r",alt:"--limit-rate",description:"Maximum download rate in bytes per second(e.g. 50K or 4.2M)"},{key:"-R",alt:"--retries",description:'Number of retries (default is 10), or "infinite".'},{key:"--fragment-retries",description:'Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM)'},{key:"--skip-unavailable-fragments",description:"Skip unavailable fragments (DASH, hlsnative and ISM)"},{key:"--abort-on-unavailable-fragment",description:"Abort downloading when some fragment is not available"},{key:"--keep-fragments",description:"Keep downloaded fragments on disk after downloading is finished; fragments are erased by default"},{key:"--buffer-size",description:"Size of download buffer (e.g. 1024 or 16K) (default is 1024)"},{key:"--no-resize-buffer",description:"Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE."},{key:"--http-chunk-size",description:"Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)"},{key:"--playlist-reverse",description:"Download playlist videos in reverse order"},{key:"--playlist-random",description:"Download playlist videos in random order"},{key:"--xattr-set-filesize",description:"Set file xattribute ytdl.filesize with expected file size"},{key:"--hls-prefer-native",description:"Use the native HLS downloader instead of ffmpeg"},{key:"--hls-prefer-ffmpeg",description:"Use ffmpeg instead of the native HLS downloader"},{key:"--hls-use-mpegts",description:"Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play it)"},{key:"--external-downloader",description:"Use the specified external downloader. Currently supports aria2c,avconv,axel,curl,ffmpeg,httpie,wget"},{key:"--external-downloader-args"}],filesystem:[{key:"-a",alt:"--batch-file",description:"File containing URLs to download ('-' for stdin), one URL per line. Lines starting with '#', ';' or ']' are considered as comments and ignored."},{key:"--id",description:"Use only video ID in file name"},{key:"-o",alt:"--output",description:'Output filename template, see the "OUTPUT TEMPLATE" for all the info'},{key:"--autonumber-start",description:"Specify the start value for %(autonumber)s (default is 1)"},{key:"--restrict-filenames",description:'Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames'},{key:"-w",alt:"--no-overwrites",description:"Do not overwrite files"},{key:"-c",alt:"--continue",description:"Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible."},{key:"--no-continue",description:"Do not resume partially downloaded files (restart from beginning)"},{key:"--no-part",description:"Do not use .part files - write directlyinto output file"},{key:"--no-mtime",description:"Do not use the Last-modified header to set the file modification time"},{key:"--write-description",description:"Write video description to a .description file"},{key:"--write-info-json",description:"Write video metadata to a .info.json file"},{key:"--write-annotations",description:"Write video annotations to a.annotations.xml file"},{key:"--load-info-json",description:'JSON file containing the video information (created with the "--write-info-json" option)'},{key:"--cookies",description:"File to read cookies from and dump cookie jar in"},{key:"--cache-dir",description:"Location in the file system where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are cached, but that may change."},{key:"--no-cache-dir",description:"Disable filesystem caching"},{key:"--rm-cache-dir",description:"Delete all filesystem cache files"}],thumbnail:[{key:"--write-thumbnail",description:"Write thumbnail image to disk"},{key:"--write-all-thumbnails",description:"Write all thumbnail image formats to disk"},{key:"--list-thumbnails",description:"Simulate and list all available thumbnail formats"}],verbosity:[{key:"-q",alt:"--quiet",description:"Activate quiet mode"},{key:"--no-warnings",description:"Ignore warnings"},{key:"-s",alt:"--simulate",description:"Do not download the video and do not writeanything to disk"},{key:"--skip-download",description:"Do not download the video"},{key:"-g",alt:"--get-url",description:"Simulate, quiet but print URL"},{key:"-e",alt:"--get-title",description:"Simulate, quiet but print title"},{key:"--get-id",description:"Simulate, quiet but print id"},{key:"--get-thumbnail",description:"Simulate, quiet but print thumbnail URL"},{key:"--get-description",description:"Simulate, quiet but print video description"},{key:"--get-duration",description:"Simulate, quiet but print video length"},{key:"--get-filename",description:"Simulate, quiet but print output filename"},{key:"--get-format",description:"Simulate, quiet but print output format"},{key:"-j",alt:"--dump-json",description:'Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys.'},{key:"-J",alt:"--dump-single-json",description:"Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line."},{key:"--print-json",description:"Be quiet and print the video information as JSON (video is still being downloaded)."},{key:"--newline",description:"Output progress bar as new lines"},{key:"--no-progress",description:"Do not print progress bar"},{key:"--console-title",description:"Display progress in console title bar"},{key:"-v",alt:"--verbose",description:"Print various debugging information"},{key:"--dump-pages",description:"Print downloaded pages encoded using base64 to debug problems (very verbose)"},{key:"--write-pages",description:"Write downloaded intermediary pages to files in the current directory to debug problems"},{key:"--print-traffic",description:"Display sent and read HTTP traffic"},{key:"-C",alt:"--call-home",description:"Contact the youtube-dl server for debugging"},{key:"--no-call-home",description:"Do NOT contact the youtube-dl server for debugging"}],workarounds:[{key:"--encoding",description:"Force the specified encoding (experimental)"},{key:"--no-check-certificate",description:"Suppress HTTPS certificate validation"},{key:"--prefer-insecure",description:"Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube)"},{key:"--user-agent",description:"Specify a custom user agent"},{key:"--referer",description:"Specify a custom referer, use if the video access is restricted to one domain"},{key:"--add-header",description:"Specify a custom HTTP header and its value, separated by a colon ':'. You can use this option multiple times"},{key:"--bidi-workaround",description:"Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH"},{key:"--sleep-interval",description:"Number of seconds to sleep before each download when used alone or a lower boundof a range for randomized sleep before each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval"},{key:"--max-sleep-interval",description:"Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only beused along with --min-sleep-interval"}],video_format:[{key:"-f",alt:"--format",description:'Video format code, see the "FORMAT SELECTION" for all the info'},{key:"--all-formats",description:"Download all available video formats"},{key:"--prefer-free-formats",description:"Prefer free video formats unless a specific one is requested"},{key:"-F",alt:"--list-formats",description:"List all available formats of requested videos"},{key:"--youtube-skip-dash-manifest",description:"Do not download the DASH manifests and related data on YouTube videos"},{key:"--merge-output-format",description:"If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required"}],subtitle:[{key:"--write-sub",description:"Write subtitle file"},{key:"--write-auto-sub",description:"Write automatically generated subtitle file (YouTube only)"},{key:"--all-subs",description:"Download all the available subtitles of the video"},{key:"--list-subs",description:"List all available subtitles for the video"},{key:"--sub-format",description:'Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"'},{key:"--sub-lang",description:"Languages of the subtitles to download (optional) separated by commas, use --list-subs"}],authentication:[{key:"-u",alt:"--username",description:"Login with this account ID"},{key:"-p",alt:"--password",description:"Account password. If this option is left out, youtube-dl will ask interactively."},{key:"-2",alt:"--twofactor",description:"Two-factor authentication code"},{key:"-n",alt:"--netrc",description:"Use .netrc authentication data"},{key:"--video-password",description:"Video password (vimeo, smotri, youku)"}],adobe_pass:[{key:"--ap-mso",description:"Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso"},{key:"--ap-username",description:"Multiple-system operator account login"},{key:"--ap-password",description:"Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively."},{key:"--ap-list-mso",description:"List all supported multiple-system operators"}],post_processing:[{key:"-x",alt:"--extract-audio",description:"Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)"},{key:"--audio-format",description:'Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without -x'},{key:"--audio-quality",description:"Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse)for VBR or a specific bitrate like 128K (default 5)"},{key:"--recode-video",description:"Encode the video to another format if necessary (currently supported:mp4|flv|ogg|webm|mkv|avi)"},{key:"--postprocessor-args",description:"Give these arguments to the postprocessor"},{key:"-k",alt:"--keep-video",description:"Keep the video file on disk after the post-processing; the video is erased by default"},{key:"--no-post-overwrites",description:"Do not overwrite post-processed files; the post-processed files are overwritten by default"},{key:"--embed-subs",description:"Embed subtitles in the video (only for mp4,webm and mkv videos)"},{key:"--embed-thumbnail",description:"Embed thumbnail in the audio as cover art"},{key:"--add-metadata",description:"Write metadata to the video file"},{key:"--metadata-from-title",description:"Parse additional metadata like song title/artist from the video title. The format syntax is the same as --output"},{key:"--xattrs",description:"Write metadata to the video file's xattrs (using dublin core and xdg standards)"},{key:"--fixup",description:"Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix file if we can, warn otherwise)"},{key:"--prefer-avconv",description:"Prefer avconv over ffmpeg for running the postprocessors"},{key:"--prefer-ffmpeg",description:"Prefer ffmpeg over avconv for running the postprocessors (default)"},{key:"--ffmpeg-location",description:"Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory."},{key:"--exec",description:"Execute a command on the file after downloading, similar to find's -exec syntax. Example: --exec"},{key:"--convert-subs",description:"Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)"}]},SD=["*"],ID=Un(Vn(Hn(Jn((function e(t){_classCallCheck(this,e),this._elementRef=t}))),"primary"),-1),OD=((lD=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||lD)},lD.\u0275dir=a.yc({type:lD,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),lD),DD=((cD=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||cD)},cD.\u0275dir=a.yc({type:cD,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),cD),ED=((sD=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l,u){var d;return _classCallCheck(this,i),(d=t.call(this,e))._elementRef=e,d._ngZone=n,d._changeDetectorRef=c,d._hasFocus=!1,d.chipListSelectable=!0,d._chipListMultiple=!1,d._selected=!1,d._selectable=!0,d._removable=!0,d._onFocus=new Lt.a,d._onBlur=new Lt.a,d.selectionChange=new a.u,d.destroyed=new a.u,d.removed=new a.u,d._addHostClassName(),d._chipRippleTarget=(u||document).createElement("div"),d._chipRippleTarget.classList.add("mat-chip-ripple"),d._elementRef.nativeElement.appendChild(d._chipRippleTarget),d._chipRipple=new Ia(_assertThisInitialized(d),n,d._chipRippleTarget,r),d._chipRipple.setupTriggerEvents(e),d.rippleConfig=o||{},d._animationsDisabled="NoopAnimations"===s,d.tabIndex=null!=l&&parseInt(l)||-1,d}return _createClass(i,[{key:"_addHostClassName",value:function(){var e=this._elementRef.nativeElement;e.hasAttribute("mat-basic-chip")||"mat-basic-chip"===e.tagName.toLowerCase()?e.classList.add("mat-basic-chip"):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.asObservable().pipe(ui(1)).subscribe((function(){e._ngZone.run((function(){e._hasFocus=!1,e._onBlur.next({chip:e})}))}))}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}},{key:"_markForCheck",value:function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=fi(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=fi(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=fi(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),i}(ID)).\u0275fac=function(e){return new(e||sD)(a.Dc(a.r),a.Dc(a.I),a.Dc(Ii),a.Dc(Oa,8),a.Dc(Pt,8),a.Dc(a.j),a.Tc("tabindex"),a.Dc(yt.e,8))},sD.\u0275dir=a.yc({type:sD,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,OD,!0),a.vc(i,DD,!0),a.vc(i,AD,!0)),2&e&&(a.md(n=a.Xc())&&(t.avatar=n.first),a.md(n=a.Xc())&&(t.trailingIcon=n.first),a.md(n=a.Xc())&&(t.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&a.Wc("click",(function(e){return t._handleClick(e)}))("keydown",(function(e){return t._handleKeydown(e)}))("focus",(function(){return t.focus()}))("blur",(function(){return t._blur()})),2&e&&(a.qc("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),a.tc("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[a.mc]}),sD),AD=((oD=function(){function e(t,i){_classCallCheck(this,e),this._parentChip=t,i&&"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}return _createClass(e,[{key:"_handleClick",value:function(e){var t=this._parentChip;t.removable&&!t.disabled&&t.remove(),e.stopPropagation()}}]),e}()).\u0275fac=function(e){return new(e||oD)(a.Dc(ED),a.Dc(a.r))},oD.\u0275dir=a.yc({type:oD,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,t){1&e&&a.Wc("click",(function(e){return t._handleClick(e)}))}}),oD),TD=new a.x("mat-chips-default-options"),PD=Gn((function e(t,i,n,a){_classCallCheck(this,e),this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=a})),RD=0,MD=function e(t,i){_classCallCheck(this,e),this.source=t,this.value=i},LD=((dD=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,r,o,s,c,l){var u;return _classCallCheck(this,i),(u=t.call(this,c,o,s,l))._elementRef=e,u._changeDetectorRef=n,u._dir=r,u.ngControl=l,u.controlType="mat-chip-list",u._lastDestroyedChipIndex=null,u._destroyed=new Lt.a,u._uid="mat-chip-list-".concat(RD++),u._tabIndex=0,u._userTabIndex=null,u._onTouched=function(){},u._onChange=function(){},u._multiple=!1,u._compareWith=function(e,t){return e===t},u._required=!1,u._disabled=!1,u.ariaOrientation="horizontal",u._selectable=!0,u.change=new a.u,u.valueChange=new a.u,u.ngControl&&(u.ngControl.valueAccessor=_assertThisInitialized(u)),u}return _createClass(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new Xi(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Ol(this._destroyed)).subscribe((function(t){return e._keyManager.withHorizontalOrientation(t)})),this._keyManager.tabOut.pipe(Ol(this._destroyed)).subscribe((function(){e._allowFocusEscape()})),this.chips.changes.pipe(An(null),Ol(this._destroyed)).subscribe((function(){e.disabled&&Promise.resolve().then((function(){e._syncChipsState()})),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()}))}},{key:"ngOnInit",value:function(){this._selectionModel=new nr(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;8===e.keyCode&&this._isInputEmpty(t)?(this._keyManager.setLastItemActive(),e.preventDefault()):t&&t.classList.contains("mat-chip")&&(36===e.keyCode?(this._keyManager.setFirstItemActive(),e.preventDefault()):35===e.keyCode?(this._keyManager.setLastItemActive(),e.preventDefault()):this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach((function(e){return e.deselect()})),Array.isArray(e))e.forEach((function(e){return t._selectValue(e,i)})),this._sortValues();else{var n=this._selectValue(e,i);n&&i&&this._keyManager.setActiveItem(n)}}},{key:"_selectValue",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.chips.find((function(i){return null!=i.value&&t._compareWith(i.value,e)}));return n&&(i?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then((function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())}))}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach((function(t){t!==e&&t.deselect()})),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach((function(t){t.selected&&e._selectionModel.select(t)})),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.change.emit(new MD(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout((function(){e.focused||e._markAsTouched()})):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout((function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()})))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe((function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach((function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()})),t.isUserInput&&e._propagateChanges()}))}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe((function(t){var i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&e._keyManager.updateActiveItem(i),e.stateChanges.next()})),this._chipBlurSubscription=this.chipBlurChanges.subscribe((function(){e._blur(),e.stateChanges.next()}))}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe((function(t){var i=t.chip,n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&i._hasFocus&&(e._lastDestroyedChipIndex=n)}))}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips.some((function(e){return e._hasFocus}))}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach((function(t){t.disabled=e._disabled,t._chipListMultiple=e.multiple}))}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=fi(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=fi(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=fi(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=fi(e),this.chips&&this.chips.forEach((function(e){return e.chipListSelectable=t._selectable}))}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return Object(al.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e.selectionChange}))))}},{key:"chipFocusChanges",get:function(){return Object(al.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e._onFocus}))))}},{key:"chipBlurChanges",get:function(){return Object(al.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e._onBlur}))))}},{key:"chipRemoveChanges",get:function(){return Object(al.a).apply(void 0,_toConsumableArray(this.chips.map((function(e){return e.destroyed}))))}}]),i}(PD)).\u0275fac=function(e){return new(e||dD)(a.Dc(a.r),a.Dc(a.j),a.Dc(Cn,8),a.Dc(Wo,8),a.Dc(os,8),a.Dc(da),a.Dc(Ir,10))},dD.\u0275cmp=a.xc({type:dD,selectors:[["mat-chip-list"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,ED,!0),2&e&&a.md(n=a.Xc())&&(t.chips=n)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&a.Wc("focus",(function(){return t.focus()}))("blur",(function(){return t._blur()}))("keydown",(function(e){return t._keydown(e)})),2&e&&(a.Mc("id",t._uid),a.qc("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),a.tc("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[a.oc([{provide:Sd,useExisting:dD}]),a.mc],ngContentSelectors:SD,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div",0),a.ed(1),a.Ic())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),dD),jD=0,FD=((uD=function(){function e(t,i){_classCallCheck(this,e),this._elementRef=t,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new a.u,this.placeholder="",this.id="mat-chip-list-input-".concat(jD++),this._disabled=!1,this._inputElement=this._elementRef.nativeElement}return _createClass(e,[{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"_keydown",value:function(e){e&&9===e.keyCode&&!Jt(e,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(e)}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(e){!this._inputElement.value&&e&&this._chipList._keydown(e),e&&!this._isSeparatorKey(e)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),e&&e.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(e){this._inputElement.focus(e)}},{key:"_isSeparatorKey",value:function(e){if(Jt(e))return!1;var t=this.separatorKeyCodes,i=e.keyCode;return Array.isArray(t)?t.indexOf(i)>-1:t.has(i)}},{key:"chipList",set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=fi(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=fi(e)}},{key:"empty",get:function(){return!this._inputElement.value}}]),e}()).\u0275fac=function(e){return new(e||uD)(a.Dc(a.r),a.Dc(TD))},uD.\u0275dir=a.yc({type:uD,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&a.Wc("keydown",(function(e){return t._keydown(e)}))("blur",(function(){return t._blur()}))("focus",(function(){return t._focus()}))("input",(function(){return t._onInput()})),2&e&&(a.Mc("id",t.id),a.qc("disabled",t.disabled||null)("placeholder",t.placeholder||null)("aria-invalid",t._chipList&&t._chipList.ngControl?t._chipList.ngControl.invalid:null)("aria-required",t._chipList&&t._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[a.nc]}),uD),ND={separatorKeyCodes:[13]},zD=((hD=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:hD}),hD.\u0275inj=a.Ac({factory:function(e){return new(e||hD)},providers:[da,{provide:TD,useValue:ND}]}),hD),BD=["chipper"];function JD(e,t){1&e&&(a.Jc(0,"mat-icon",27),a.Bd(1,"cancel"),a.Ic())}function VD(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-chip",25),a.Wc("removed",(function(){a.rd(i);var e=t.index;return a.ad().remove(e)})),a.Bd(1),a.zd(2,JD,2,0,"mat-icon",26),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad();a.gd("matTooltip",r.argsByKey[n]?r.argsByKey[n].description:null)("selectable",r.selectable)("removable",r.removable),a.pc(1),a.Dd(" ",n," "),a.pc(1),a.gd("ngIf",r.removable)}}function HD(e,t){if(1&e&&(a.Jc(0,"mat-option",28),a.Ec(1,"span",29),a.bd(2,"highlight"),a.Jc(3,"button",30),a.Jc(4,"mat-icon"),a.Bd(5,"info"),a.Ic(),a.Ic(),a.Ic()),2&e){var i=t.$implicit,n=a.ad();a.gd("value",i.key),a.pc(1),a.gd("innerHTML",a.dd(2,3,i.key,n.chipCtrl.value),a.sd),a.pc(2),a.gd("matTooltip",i.description)}}function UD(e,t){if(1&e&&(a.Jc(0,"mat-option",28),a.Ec(1,"span",29),a.bd(2,"highlight"),a.Jc(3,"button",30),a.Jc(4,"mat-icon"),a.Bd(5,"info"),a.Ic(),a.Ic(),a.Ic()),2&e){var i=t.$implicit,n=a.ad();a.gd("value",i.key),a.pc(1),a.gd("innerHTML",a.dd(2,3,i.key,n.stateCtrl.value),a.sd),a.pc(2),a.gd("matTooltip",i.description)}}function GD(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",34),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad(2).setFirstArg(e.key)})),a.Jc(1,"div",35),a.Bd(2),a.Ic(),a.Bd(3,"\xa0\xa0"),a.Jc(4,"div",36),a.Jc(5,"mat-icon",37),a.Bd(6,"info"),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit;a.pc(2),a.Cd(n.key),a.pc(3),a.gd("matTooltip",n.description)}}function WD(e,t){if(1&e&&(a.Hc(0),a.Jc(1,"button",31),a.Bd(2),a.Ic(),a.Jc(3,"mat-menu",null,32),a.zd(5,GD,7,2,"button",33),a.Ic(),a.Gc()),2&e){var i=t.$implicit,n=a.nd(4),r=a.ad();a.pc(1),a.gd("matMenuTriggerFor",n),a.pc(1),a.Cd(r.argsInfo[i.key].label),a.pc(3),a.gd("ngForOf",i.value)}}pD=$localize(_templateObject()),fD=$localize(_templateObject2()),mD=$localize(_templateObject3()),gD=$localize(_templateObject4()),vD=$localize(_templateObject5()),bD=$localize(_templateObject6()),_D=$localize(_templateObject7()),yD=$localize(_templateObject8());var qD=["placeholder",$localize(_templateObject9())],$D=function(){return{standalone:!0}};function KD(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"mat-form-field",14),a.Jc(2,"input",38),a.Pc(3,qD),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().secondArg=e})),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(2),a.gd("ngModelOptions",a.id(3,$D))("disabled",!n.secondArgEnabled)("ngModel",n.secondArg)}}var XD,YD,ZD=((YD=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){var i=t?t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").split(" ").filter((function(e){return e.length>0})).join("|"):void 0,n=new RegExp(i,"gi");return t?e.replace(n,(function(e){return"".concat(e,"")})):e}}]),e}()).\u0275fac=function(e){return new(e||YD)},YD.\u0275pipe=a.Cc({name:"highlight",type:YD,pure:!0}),YD),QD=((XD=function(){function e(t,i,n){_classCallCheck(this,e),this.data=t,this.dialogRef=i,this.dialog=n,this.myGroup=new Jo,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new Jo,this.chipCtrl=new Jo,this.availableArgs=null,this.argsByCategory=null,this.argsByKey=null,this.argsInfo=null,this.chipInput="",this.visible=!0,this.selectable=!0,this.removable=!0,this.addOnBlur=!1,this.args_array=null,this.separatorKeysCodes=[13,188]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.data&&(this.modified_args=this.data.initial_args,this.generateArgsArray()),this.getAllPossibleArgs(),this.filteredOptions=this.stateCtrl.valueChanges.pipe(An(""),Object(ri.a)((function(t){return e.filter(t)}))),this.filteredChipOptions=this.chipCtrl.valueChanges.pipe(An(""),Object(ri.a)((function(t){return e.filter(t)})))}},{key:"ngAfterViewInit",value:function(){var e=this;this.autoTrigger.panelClosingActions.subscribe((function(t){e.autoTrigger.activeOption&&(console.log(e.autoTrigger.activeOption.value),e.chipCtrl.setValue(e.autoTrigger.activeOption.value))}))}},{key:"filter",value:function(e){if(this.availableArgs)return this.availableArgs.filter((function(t){return t.key.toLowerCase().includes(e.toLowerCase())}))}},{key:"addArg",value:function(){this.modified_args||(this.modified_args=""),""!==this.modified_args&&(this.modified_args+=",,"),this.modified_args+=this.stateCtrl.value+(this.secondArgEnabled?",,"+this.secondArg:""),this.generateArgsArray()}},{key:"canAddArg",value:function(){return this.stateCtrl.value&&""!==this.stateCtrl.value&&(!this.secondArgEnabled||this.secondArg&&""!==this.secondArg)}},{key:"getFirstArg",value:function(){var e=this;return new Promise((function(t){t(e.stateCtrl.value)}))}},{key:"getValueAsync",value:function(e){return new Promise((function(t){t(e)}))}},{key:"getAllPossibleArgs",value:function(){var e=xD,t=Object.keys(e).map((function(t){return e[t]})),i=[].concat.apply([],t),n=i.reduce((function(e,t){return e[t.key]=t,e}),{});this.argsByKey=n,this.availableArgs=i,this.argsByCategory=e,this.argsInfo=CD}},{key:"setFirstArg",value:function(e){this.stateCtrl.setValue(e)}},{key:"add",value:function(e){var t=e.input,i=e.value;i&&0!==i.trim().length&&(this.args_array.push(i),this.modified_args.length>0&&(this.modified_args+=",,"),this.modified_args+=i,t&&(t.value=""))}},{key:"remove",value:function(e){this.args_array.splice(e,1),this.modified_args=this.args_array.join(",,")}},{key:"generateArgsArray",value:function(){this.args_array=0!==this.modified_args.trim().length?this.modified_args.split(",,"):[]}},{key:"drop",value:function(e){BC(this.args_array,e.previousIndex,e.currentIndex),this.modified_args=this.args_array.join(",,")}}],[{key:"forRoot",value:function(){return{ngModule:e,providers:[]}}}]),e}()).\u0275fac=function(e){return new(e||XD)(a.Dc(Oh),a.Dc(Ih),a.Dc(Th))},XD.\u0275cmp=a.xc({type:XD,selectors:[["app-arg-modifier-dialog"]],viewQuery:function(e,t){var i;1&e&&a.Fd(BD,!0,hh),2&e&&a.md(i=a.Xc())&&(t.autoTrigger=i.first)},features:[a.oc([ZD])],decls:55,vars:25,consts:[["mat-dialog-title",""],[1,"container"],[1,"row"],[1,"col-12"],[1,"mat-elevation-z6"],["aria-label","Args array","cdkDropList","","cdkDropListDisabled","","cdkDropListOrientation","horizontal",1,"example-chip",3,"cdkDropListDropped"],["chipList",""],["cdkDrag","",3,"matTooltip","selectable","removable","removed",4,"ngFor","ngForOf"],["color","accent",2,"width","100%"],["matInput","",2,"width","100%",3,"formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["chipper",""],["autochip","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-elevation-z6","my-2"],["color","accent",2,"width","75%"],["matInput","","placeholder","Arg",3,"matAutocomplete","formControl"],["auto","matAutocomplete"],["argsByCategoryMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-stroked-button","",2,"margin-bottom","15px",3,"matMenuTriggerFor"],["color","accent",3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngIf"],["mat-stroked-button","","color","accent",3,"disabled","click"],["mat-button","",3,"mat-dialog-close"],["mat-button","","color","accent",3,"mat-dialog-close"],["cdkDrag","",3,"matTooltip","selectable","removable","removed"],["matChipRemove","",4,"ngIf"],["matChipRemove",""],[3,"value"],[3,"innerHTML"],["mat-icon-button","",2,"float","right",3,"matTooltip"],["mat-menu-item","",3,"matMenuTriggerFor"],["subMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[2,"display","inline-block"],[1,"info-menu-icon"],[3,"matTooltip"],["matInput","",3,"ngModelOptions","disabled","ngModel","ngModelChange",6,"placeholder"]],template:function(e,t){if(1&e&&(a.Jc(0,"h4",0),a.Nc(1,pD),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div",1),a.Jc(4,"div",2),a.Jc(5,"div",3),a.Jc(6,"mat-card",4),a.Jc(7,"h6"),a.Nc(8,fD),a.Ic(),a.Jc(9,"mat-chip-list",5,6),a.Wc("cdkDropListDropped",(function(e){return t.drop(e)})),a.zd(11,VD,3,5,"mat-chip",7),a.Ic(),a.Jc(12,"mat-form-field",8),a.Jc(13,"input",9,10),a.Wc("matChipInputTokenEnd",(function(e){return t.add(e)})),a.Ic(),a.Ic(),a.Jc(15,"mat-autocomplete",null,11),a.zd(17,HD,6,6,"mat-option",12),a.bd(18,"async"),a.Ic(),a.Ic(),a.Ic(),a.Jc(19,"div",3),a.Jc(20,"mat-card",13),a.Jc(21,"h6"),a.Nc(22,mD),a.Ic(),a.Jc(23,"form"),a.Jc(24,"div"),a.Jc(25,"mat-form-field",14),a.Ec(26,"input",15),a.Ic(),a.Jc(27,"mat-autocomplete",null,16),a.zd(29,UD,6,6,"mat-option",12),a.bd(30,"async"),a.Ic(),a.Jc(31,"div"),a.Jc(32,"mat-menu",null,17),a.zd(34,WD,6,3,"ng-container",18),a.bd(35,"keyvalue"),a.Ic(),a.Jc(36,"button",19),a.Hc(37),a.Nc(38,gD),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(39,"div"),a.Jc(40,"mat-checkbox",20),a.Wc("ngModelChange",(function(e){return t.secondArgEnabled=e})),a.Hc(41),a.Nc(42,vD),a.Gc(),a.Ic(),a.Ic(),a.zd(43,KD,4,4,"div",21),a.Ic(),a.Jc(44,"div"),a.Jc(45,"button",22),a.Wc("click",(function(){return t.addArg()})),a.Hc(46),a.Nc(47,bD),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(48,"mat-dialog-actions"),a.Jc(49,"button",23),a.Hc(50),a.Nc(51,_D),a.Gc(),a.Ic(),a.Jc(52,"button",24),a.Hc(53),a.Nc(54,yD),a.Gc(),a.Ic(),a.Ic()),2&e){var i=a.nd(10),n=a.nd(16),r=a.nd(28),o=a.nd(33);a.pc(11),a.gd("ngForOf",t.args_array),a.pc(2),a.gd("formControl",t.chipCtrl)("matAutocomplete",n)("matChipInputFor",i)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes)("matChipInputAddOnBlur",t.addOnBlur),a.pc(4),a.gd("ngForOf",a.cd(18,18,t.filteredChipOptions)),a.pc(9),a.gd("matAutocomplete",r)("formControl",t.stateCtrl),a.pc(3),a.gd("ngForOf",a.cd(30,20,t.filteredOptions)),a.pc(5),a.gd("ngForOf",a.cd(35,22,t.argsByCategory)),a.pc(2),a.gd("matMenuTriggerFor",o),a.pc(4),a.gd("ngModelOptions",a.id(24,$D))("ngModel",t.secondArgEnabled),a.pc(3),a.gd("ngIf",t.secondArgEnabled),a.pc(2),a.gd("disabled",!t.canAddArg()),a.pc(4),a.gd("mat-dialog-close",null),a.pc(3),a.gd("mat-dialog-close",t.modified_args)}},directives:[Mh,Lh,Nc,LD,xx,yt.s,Ud,Pm,_r,hh,FD,Dr,as,sh,ts,Er,Wo,Lg,Za,zg,Yc,es,yt.t,jh,Rh,ED,fx,hv,_m,AD,za,Eg],pipes:[yt.b,yt.l,ZD],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),XD),eE=["fileSelector"];function tE(e,t){if(1&e&&(a.Jc(0,"div",8),a.Bd(1),a.Ic()),2&e){var i=a.ad(2);a.pc(1),a.Cd(i.dropZoneLabel)}}function iE(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"input",9),a.Wc("click",(function(e){return a.rd(i),a.ad(2).openFileSelector(e)})),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(1),a.hd("value",n.browseBtnLabel),a.gd("className",n.browseBtnClassName)}}function nE(e,t){if(1&e&&(a.zd(0,tE,2,1,"div",6),a.zd(1,iE,2,2,"div",7)),2&e){var i=a.ad();a.gd("ngIf",i.dropZoneLabel),a.pc(1),a.gd("ngIf",i.showBrowseBtn)}}function aE(e,t){}var rE,oE,sE,cE,lE,uE,dE,hE=function(e){return{openFileSelector:e}},pE=function e(t,i){_classCallCheck(this,e),this.relativePath=t,this.fileEntry=i},fE=((rE=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||rE)(a.Dc(a.Y))},rE.\u0275dir=a.yc({type:rE,selectors:[["","ngx-file-drop-content-tmp",""]]}),rE),mE=function(e,t,i,n){var a,r=arguments.length,o=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(t,i,o):a(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o},gE=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},vE=((sE=function(){function e(t,i){var n=this;_classCallCheck(this,e),this.zone=t,this.renderer=i,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new a.u,this.onFileOver=new a.u,this.onFileLeave=new a.u,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=function(e){n.fileSelector&&n.fileSelector.nativeElement&&n.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",(function(e){n.globalDraggingInProgress=!0})),this.globalDragEndListener=this.renderer.listen("document","dragend",(function(e){n.globalDraggingInProgress=!1}))}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}},{key:"onDragOver",value:function(e){this.useDragEnter?this.preventAndStop(e):this.isDropzoneDisabled()||this.useDragEnter||(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}},{key:"onDragEnter",value:function(e){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(e)),this.preventAndStop(e))}},{key:"onDragLeave",value:function(e){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(e)),this.preventAndStop(e))}},{key:"dropFiles",value:function(e){var t;!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,e.dataTransfer)&&(e.dataTransfer.dropEffect="copy",t=e.dataTransfer.items?e.dataTransfer.items:e.dataTransfer.files,this.preventAndStop(e),this.checkFiles(t))}},{key:"uploadFiles",value:function(e){!this.isDropzoneDisabled()&&e.target&&(this.checkFiles(e.target.files||[]),this.resetFileInput())}},{key:"checkFiles",value:function(e){for(var t=this,i=function(i){var n=e[i],a=null;if(t.canGetAsEntry(n)&&(a=n.webkitGetAsEntry()),a)if(a.isFile){var r=new pE(a.name,a);t.addToQueue(r)}else a.isDirectory&&t.traverseFileTree(a,a.name);else if(n){var o={name:n.name,isDirectory:!1,isFile:!0,file:function(e){e(n)}},s=new pE(o.name,o);t.addToQueue(s)}},n=0;n0&&0===t.numOfActiveReadEntries){var e=t.files;t.files=[],t.onFileDrop.emit(e)}}))}},{key:"traverseFileTree",value:function(e,t){var i=this;if(e.isFile){var n=new pE(t,e);this.files.push(n)}else{t+="/";var a=e.createReader(),r=[];!function n(){i.numOfActiveReadEntries++,a.readEntries((function(a){if(a.length)r=r.concat(a),n();else if(0===r.length){var o=new pE(t,e);i.zone.run((function(){i.addToQueue(o)}))}else for(var s=function(e){i.zone.run((function(){i.traverseFileTree(r[e],t+r[e].name)}))},c=0;c1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||RE)(a.Dc(YO),a.Dc(A_))},RE.\u0275cmp=a.xc({type:RE,selectors:[["app-update-progress-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-button","","mat-dialog-close",""],[2,"margin-bottom","8px"],["mode","indeterminate",4,"ngIf"],["mode","determinate","value","100",4,"ngIf"],["style","margin-top: 4px; font-size: 13px;",4,"ngIf"],["mode","indeterminate"],["mode","determinate","value","100"],[2,"margin-top","4px","font-size","13px"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Nc(1,CE),a.Ic(),a.Jc(2,"mat-dialog-content"),a.zd(3,PE,8,6,"div",1),a.Ic(),a.Jc(4,"mat-dialog-actions"),a.Jc(5,"button",2),a.Hc(6),a.Nc(7,xE),a.Gc(),a.Ic(),a.Ic()),2&e&&(a.pc(3),a.gd("ngIf",t.updateStatus))},directives:[Mh,Lh,yt.t,jh,Za,Rh,_v],styles:[""]}),RE);function jE(e,t){if(1&e&&(a.Jc(0,"mat-option",6),a.Bd(1),a.Ic()),2&e){var i=t.$implicit,n=a.ad(2);a.gd("value",i.tag_name),a.pc(1),a.Dd(" ",i.tag_name+(i===n.latestStableRelease?" - Latest Stable":"")+(i.tag_name===n.CURRENT_VERSION?" - Current Version":"")," ")}}function FE(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",3),a.Jc(1,"mat-form-field"),a.Jc(2,"mat-select",4),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().selectedVersion=e})),a.zd(3,jE,2,2,"mat-option",5),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(2),a.gd("ngModel",n.selectedVersion),a.pc(1),a.gd("ngForOf",n.availableVersionsFiltered)}}function NE(e,t){1&e&&(a.Hc(0),a.Bd(1,"Upgrade to"),a.Gc())}function zE(e,t){1&e&&(a.Hc(0),a.Bd(1,"Downgrade to"),a.Gc())}function BE(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",3),a.Jc(1,"button",7),a.Wc("click",(function(){return a.rd(i),a.ad().updateServer()})),a.Jc(2,"mat-icon"),a.Bd(3,"update"),a.Ic(),a.Bd(4,"\xa0\xa0 "),a.zd(5,NE,2,0,"ng-container",8),a.zd(6,zE,2,0,"ng-container",8),a.Bd(7),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(5),a.gd("ngIf",n.selectedVersion>n.CURRENT_VERSION),a.pc(1),a.gd("ngIf",n.selectedVersion=e.versionsShowLimit)break;e.availableVersionsFiltered.push(n)}}))}},{key:"openUpdateProgressDialog",value:function(){this.dialog.open(LE,{minWidth:"300px",minHeight:"200px"})}}]),e}()).\u0275fac=function(e){return new(e||JE)(a.Dc(YO),a.Dc(Th))},JE.\u0275cmp=a.xc({type:JE,selectors:[["app-updater"]],decls:6,vars:2,consts:[[2,"display","block"],[2,"display","inline-block"],["style","display: inline-block; margin-left: 15px;",4,"ngIf"],[2,"display","inline-block","margin-left","15px"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent","mat-raised-button","",3,"click"],[4,"ngIf"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Hc(2),a.Nc(3,ME),a.Gc(),a.Ic(),a.zd(4,FE,4,2,"div",2),a.zd(5,BE,8,3,"div",2),a.Ic()),2&e&&(a.pc(4),a.gd("ngIf",t.availableVersions),a.pc(1),a.gd("ngIf",t.selectedVersion&&t.selectedVersion!==t.CURRENT_VERSION))},directives:[yt.t,Ud,mb,Dr,es,yt.s,za,Za,_m],styles:[""]}),JE);VE=$localize(_templateObject17());var UE,GE,WE=["placeholder",$localize(_templateObject18())],qE=["placeholder",$localize(_templateObject19())];UE=$localize(_templateObject20()),GE=$localize(_templateObject21());var $E,KE,XE,YE,ZE=(($E=function(){function e(t,i){_classCallCheck(this,e),this.postsService=t,this.dialogRef=i,this.usernameInput="",this.passwordInput=""}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"createUser",value:function(){var e=this;this.postsService.register(this.usernameInput,this.passwordInput).subscribe((function(t){e.dialogRef.close(t.user?t.user:{error:"Unknown error"})}),(function(t){e.dialogRef.close({error:t})}))}}]),e}()).\u0275fac=function(e){return new(e||$E)(a.Dc(YO),a.Dc(Ih))},$E.\u0275cmp=a.xc({type:$E,selectors:[["app-add-user-dialog"]],decls:18,vars:2,consts:[["mat-dialog-title",""],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["matInput","","type","password",3,"ngModel","ngModelChange",6,"placeholder"],["color","accent","mat-raised-button","",3,"click"],["mat-dialog-close","","mat-button",""]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Nc(1,VE),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div"),a.Jc(4,"mat-form-field"),a.Jc(5,"input",1),a.Pc(6,WE),a.Wc("ngModelChange",(function(e){return t.usernameInput=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(7,"div"),a.Jc(8,"mat-form-field"),a.Jc(9,"input",2),a.Pc(10,qE),a.Wc("ngModelChange",(function(e){return t.passwordInput=e})),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(11,"mat-dialog-actions"),a.Jc(12,"button",3),a.Wc("click",(function(){return t.createUser()})),a.Hc(13),a.Nc(14,UE),a.Gc(),a.Ic(),a.Jc(15,"button",4),a.Hc(16),a.Nc(17,GE),a.Gc(),a.Ic(),a.Ic()),2&e&&(a.pc(5),a.gd("ngModel",t.usernameInput),a.pc(4),a.gd("ngModel",t.passwordInput))},directives:[Mh,Lh,Ud,Pm,_r,Dr,es,jh,Za,Rh],styles:[""]}),$E);function QE(e,t){if(1&e&&(a.Jc(0,"h4",3),a.Hc(1),a.Nc(2,XE),a.Gc(),a.Bd(3),a.Ic()),2&e){var i=a.ad();a.pc(3),a.Dd("\xa0-\xa0",i.user.name,"")}}KE=$localize(_templateObject22()),XE=$localize(_templateObject23()),YE=$localize(_templateObject24());var eA,tA,iA,nA,aA=["placeholder",$localize(_templateObject25())];function rA(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-list-item",8),a.Jc(1,"h3",9),a.Bd(2),a.Ic(),a.Jc(3,"span",9),a.Jc(4,"mat-radio-group",10),a.Wc("change",(function(e){a.rd(i);var n=t.$implicit;return a.ad(2).changeUserPermissions(e,n)}))("ngModelChange",(function(e){a.rd(i);var n=t.$implicit;return a.ad(2).permissions[n]=e})),a.Jc(5,"mat-radio-button",11),a.Hc(6),a.Nc(7,tA),a.Gc(),a.Ic(),a.Jc(8,"mat-radio-button",12),a.Hc(9),a.Nc(10,iA),a.Gc(),a.Ic(),a.Jc(11,"mat-radio-button",13),a.Hc(12),a.Nc(13,nA),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad(2);a.pc(2),a.Cd(r.permissionToLabel[n]?r.permissionToLabel[n]:n),a.pc(2),a.gd("disabled","settings"===n&&r.postsService.user.uid===r.user.uid)("ngModel",r.permissions[n]),a.qc("aria-label","Give user permission for "+n)}}function oA(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-dialog-content"),a.Jc(1,"p"),a.Hc(2),a.Nc(3,YE),a.Gc(),a.Bd(4),a.Ic(),a.Jc(5,"div"),a.Jc(6,"mat-form-field",4),a.Jc(7,"input",5),a.Pc(8,aA),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().newPasswordInput=e})),a.Ic(),a.Ic(),a.Jc(9,"button",6),a.Wc("click",(function(){return a.rd(i),a.ad().setNewPassword()})),a.Hc(10),a.Nc(11,eA),a.Gc(),a.Ic(),a.Ic(),a.Jc(12,"div"),a.Jc(13,"mat-list"),a.zd(14,rA,14,4,"mat-list-item",7),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(4),a.Dd("\xa0",n.user.uid,""),a.pc(3),a.gd("ngModel",n.newPasswordInput),a.pc(2),a.gd("disabled",0===n.newPasswordInput.length),a.pc(5),a.gd("ngForOf",n.available_permissions)}}eA=$localize(_templateObject26()),tA=$localize(_templateObject27()),iA=$localize(_templateObject28()),nA=$localize(_templateObject29());var sA,cA,lA,uA,dA,hA=((sA=function(){function e(t,i){_classCallCheck(this,e),this.postsService=t,this.data=i,this.user=null,this.newPasswordInput="",this.available_permissions=null,this.permissions=null,this.permissionToLabel={filemanager:"File manager",settings:"Settings access",subscriptions:"Subscriptions",sharing:"Share files",advanced_download:"Use advanced download mode",downloads_manager:"Use downloads manager"},this.settingNewPassword=!1,this.data&&(this.user=this.data.user,this.available_permissions=this.postsService.available_permissions,this.parsePermissions())}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"parsePermissions",value:function(){this.permissions={};for(var e=0;e-1){var t=this.indexOfUser(e);this.editObject=this.users[t],this.constructedObject.name=this.users[t].name,this.constructedObject.uid=this.users[t].uid,this.constructedObject.role=this.users[t].role}}},{key:"disableEditMode",value:function(){this.editObject=null}},{key:"uidInUserList",value:function(e){for(var t=0;te.name}));for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||BA)(a.Dc(YO),a.Dc(A_),a.Dc(Th),a.Dc(Ih))},BA.\u0275cmp=a.xc({type:BA,selectors:[["app-modify-users"]],viewQuery:function(e,t){var i;1&e&&(a.Fd(sk,!0),a.Fd(vk,!0)),2&e&&(a.md(i=a.Xc())&&(t.paginator=i.first),a.md(i=a.Xc())&&(t.sort=i.first))},inputs:{pageSize:"pageSize"},decls:4,vars:2,consts:[[4,"ngIf","ngIfElse"],[1,"centered",2,"position","absolute"],["loading",""],[2,"padding","15px"],[1,"row"],[1,"table","table-responsive","px-5","pb-4","pt-2"],[1,"example-header"],["matInput","","placeholder","Search",3,"keyup"],[1,"example-container","mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","role"],["matColumnDef","actions"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","pageSizeOptions"],["paginator",""],["color","primary","mat-raised-button","",2,"float","left","top","-45px","left","15px",3,"disabled","click"],["color","primary","mat-raised-button","",1,"edit-role",3,"matMenuTriggerFor"],["edit_roles_menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-sort-header",""],["noteditingname",""],[2,"width","80%"],["matInput","","type","text",2,"font-size","12px",3,"ngModel","ngModelChange"],["noteditingemail",""],[3,"ngModel","ngModelChange"],["value","admin"],["value","user"],["notediting",""],["mat-icon-button","","matTooltip","Manage user",3,"disabled","click"],["mat-icon-button","","matTooltip","Delete user",3,"disabled","click"],["mat-icon-button","","color","primary","matTooltip","Finish editing user",3,"click"],["mat-icon-button","","matTooltip","Cancel editing user",3,"click"],["mat-icon-button","","matTooltip","Edit user",3,"click"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(a.zd(0,NA,32,9,"div",0),a.Jc(1,"div",1),a.zd(2,zA,1,0,"ng-template",null,2,a.Ad),a.Ic()),2&e){var i=a.nd(3);a.gd("ngIf",t.dataSource)("ngIfElse",i)}},directives:[yt.t,Ud,Pm,Xw,vk,aC,eC,Zw,lC,pC,sk,Za,zg,Lg,yt.s,oC,xk,cC,_r,Dr,es,mb,za,hv,_m,mC,_C,Eg,jv],styles:[".edit-role[_ngcontent-%COMP%]{position:relative;top:-50px;left:35px}"]}),BA);function VA(e){return null===e||null!==e.match(/^ *$/)}var HA,UA,GA=["placeholder",$localize(_templateObject39())];function WA(e,t){1&e&&(a.Jc(0,"div",8),a.Ec(1,"mat-spinner",9),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",32))}HA=$localize(_templateObject40()),UA=$localize(_templateObject41());var qA,$A,KA=((qA=function(){function e(t){_classCallCheck(this,e),this.postsService=t,this.logs=null,this.requested_lines=50,this.logs_loading=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.getLogs()}},{key:"getLogs",value:function(){var e=this;this.logs||(this.logs_loading=!0),this.postsService.getLogs(0!==this.requested_lines?this.requested_lines:null).subscribe((function(t){e.logs_loading=!1,t.logs?e.logs=t.logs:e.postsService.openSnackBar("Failed to retrieve logs!")}),(function(t){e.logs_loading=!1,console.error(t),e.postsService.openSnackBar("Failed to retrieve logs!")}))}},{key:"copiedLogsToClipboard",value:function(){this.postsService.openSnackBar("Logs copied to clipboard!")}}]),e}()).\u0275fac=function(e){return new(e||qA)(a.Dc(YO))},qA.\u0275cmp=a.xc({type:qA,selectors:[["app-logs-viewer"]],decls:24,vars:9,consts:[[2,"height","100%"],["style","position: absolute; top: 40%; left: 50%",4,"ngIf"],["matInput","","readonly","",2,"height","275px",3,"ngModel","ngModelChange",6,"placeholder"],["mat-flat-button","","color","primary",2,"margin-top","12px",3,"cdkCopyToClipboard","click"],[2,"float","right"],[2,"width","75px"],[3,"ngModel","selectionChange","ngModelChange"],[3,"value"],[2,"position","absolute","top","40%","left","50%"],[3,"diameter"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.zd(1,WA,2,1,"div",1),a.Jc(2,"textarea",2),a.Pc(3,GA),a.Wc("ngModelChange",(function(e){return t.logs=e})),a.Ic(),a.Jc(4,"div"),a.Jc(5,"button",3),a.Wc("click",(function(){return t.copiedLogsToClipboard()})),a.Hc(6),a.Nc(7,HA),a.Gc(),a.Ic(),a.Jc(8,"div",4),a.Hc(9),a.Nc(10,UA),a.Gc(),a.Bd(11,"\xa0 "),a.Jc(12,"mat-form-field",5),a.Jc(13,"mat-select",6),a.Wc("selectionChange",(function(){return t.getLogs()}))("ngModelChange",(function(e){return t.requested_lines=e})),a.Jc(14,"mat-option",7),a.Bd(15,"10"),a.Ic(),a.Jc(16,"mat-option",7),a.Bd(17,"25"),a.Ic(),a.Jc(18,"mat-option",7),a.Bd(19,"50"),a.Ic(),a.Jc(20,"mat-option",7),a.Bd(21,"100"),a.Ic(),a.Jc(22,"mat-option",7),a.Bd(23,"All"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.gd("ngIf",t.logs_loading),a.pc(1),a.gd("ngModel",t.logs),a.pc(3),a.gd("cdkCopyToClipboard",t.logs),a.pc(8),a.gd("ngModel",t.requested_lines),a.pc(1),a.gd("value",10),a.pc(2),a.gd("value",25),a.pc(2),a.gd("value",50),a.pc(2),a.gd("value",100),a.pc(2),a.gd("value",0))},directives:[yt.t,Pm,_r,Dr,es,Za,Ex,Ud,mb,za,jv],styles:[""]}),qA);$A=$localize(_templateObject42());var XA,YA,ZA=["label",$localize(_templateObject43())],QA=["label",$localize(_templateObject44())],eT=["label",$localize(_templateObject45())],tT=["label",$localize(_templateObject46())];XA=$localize(_templateObject47()),YA=$localize(_templateObject48()),YA=a.Rc(YA,{VAR_SELECT:"\ufffd0\ufffd"});var iT,nT=["placeholder",$localize(_templateObject49())];iT=$localize(_templateObject50());var aT,rT,oT=["placeholder",$localize(_templateObject51())];function sT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field",13),a.Jc(4,"input",14),a.Pc(5,nT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Host.url=e})),a.Ic(),a.Jc(6,"mat-hint"),a.Hc(7),a.Nc(8,iT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(9,"div",15),a.Jc(10,"mat-form-field",13),a.Jc(11,"input",14),a.Pc(12,oT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Host.port=e})),a.Ic(),a.Jc(13,"mat-hint"),a.Hc(14),a.Nc(15,aT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(4),a.gd("ngModel",n.new_config.Host.url),a.pc(7),a.gd("ngModel",n.new_config.Host.port)}}aT=$localize(_templateObject52()),rT=$localize(_templateObject53());var cT,lT,uT=["placeholder",$localize(_templateObject54())];function dT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Advanced.multi_user_mode=e})),a.Hc(4),a.Nc(5,rT),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",17),a.Jc(7,"mat-form-field",18),a.Jc(8,"input",19),a.Pc(9,uT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Users.base_path=e})),a.Ic(),a.Jc(10,"mat-hint"),a.Hc(11),a.Nc(12,cT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Advanced.multi_user_mode),a.pc(5),a.gd("disabled",!n.new_config.Advanced.multi_user_mode)("ngModel",n.new_config.Users.base_path)}}cT=$localize(_templateObject55()),lT=$localize(_templateObject56());var hT,pT=["placeholder",$localize(_templateObject57())],fT=["placeholder",$localize(_templateObject58())];function mT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Encryption["use-encryption"]=e})),a.Hc(4),a.Nc(5,lT),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",20),a.Jc(7,"mat-form-field",13),a.Jc(8,"input",21),a.Pc(9,pT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Encryption["cert-file-path"]=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(10,"div",20),a.Jc(11,"mat-form-field",13),a.Jc(12,"input",21),a.Pc(13,fT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Encryption["key-file-path"]=e})),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Encryption["use-encryption"]),a.pc(5),a.gd("disabled",!n.new_config.Encryption["use-encryption"])("ngModel",n.new_config.Encryption["cert-file-path"]),a.pc(4),a.gd("disabled",!n.new_config.Encryption["use-encryption"])("ngModel",n.new_config.Encryption["key-file-path"])}}hT=$localize(_templateObject59());var gT,vT=["placeholder",$localize(_templateObject60())];gT=$localize(_templateObject61());var bT,_T,yT,kT,wT,CT,xT,ST,IT,OT,DT=["placeholder",$localize(_templateObject62())];function ET(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Subscriptions.allow_subscriptions=e})),a.Hc(4),a.Nc(5,hT),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",20),a.Jc(7,"mat-form-field",13),a.Jc(8,"input",21),a.Pc(9,vT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Subscriptions.subscriptions_base_path=e})),a.Ic(),a.Jc(10,"mat-hint"),a.Hc(11),a.Nc(12,gT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(13,"div",22),a.Jc(14,"mat-form-field",13),a.Jc(15,"input",21),a.Pc(16,DT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Subscriptions.subscriptions_check_interval=e})),a.Ic(),a.Jc(17,"mat-hint"),a.Hc(18),a.Nc(19,bT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(20,"div",23),a.Jc(21,"mat-checkbox",24),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Subscriptions.subscriptions_use_youtubedl_archive=e})),a.Hc(22),a.Nc(23,_T),a.Gc(),a.Ic(),a.Jc(24,"p"),a.Jc(25,"a",25),a.Hc(26),a.Nc(27,yT),a.Gc(),a.Ic(),a.Bd(28,"\xa0"),a.Hc(29),a.Nc(30,kT),a.Gc(),a.Ic(),a.Jc(31,"p"),a.Hc(32),a.Nc(33,wT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Subscriptions.allow_subscriptions),a.pc(5),a.gd("disabled",!n.new_config.Subscriptions.allow_subscriptions)("ngModel",n.new_config.Subscriptions.subscriptions_base_path),a.pc(7),a.gd("disabled",!n.new_config.Subscriptions.allow_subscriptions)("ngModel",n.new_config.Subscriptions.subscriptions_check_interval),a.pc(6),a.gd("disabled",!n.new_config.Subscriptions.allow_subscriptions)("ngModel",n.new_config.Subscriptions.subscriptions_use_youtubedl_archive)}}function AT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field"),a.Jc(4,"mat-label"),a.Hc(5),a.Nc(6,CT),a.Gc(),a.Ic(),a.Jc(7,"mat-select",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Themes.default_theme=e})),a.Jc(8,"mat-option",26),a.Hc(9),a.Nc(10,xT),a.Gc(),a.Ic(),a.Jc(11,"mat-option",27),a.Hc(12),a.Nc(13,ST),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(14,"div",28),a.Jc(15,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Themes.allow_theme_change=e})),a.Hc(16),a.Nc(17,IT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(7),a.gd("ngModel",n.new_config.Themes.default_theme),a.pc(8),a.gd("ngModel",n.new_config.Themes.allow_theme_change)}}function TT(e,t){if(1&e&&(a.Jc(0,"mat-option",32),a.Bd(1),a.Ic()),2&e){var i=t.$implicit,n=a.ad(3);a.gd("value",i),a.pc(1),a.Dd(" ",n.all_locales[i].nativeName," ")}}function PT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field",29),a.Jc(4,"mat-label"),a.Hc(5),a.Nc(6,OT),a.Gc(),a.Ic(),a.Jc(7,"mat-select",30),a.Wc("selectionChange",(function(e){return a.rd(i),a.ad(2).localeSelectChanged(e.value)}))("valueChange",(function(e){return a.rd(i),a.ad(2).initialLocale=e})),a.zd(8,TT,2,2,"mat-option",31),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(7),a.gd("value",n.initialLocale),a.pc(1),a.gd("ngForOf",n.supported_locales)}}function RT(e,t){if(1&e&&(a.zd(0,sT,16,2,"div",9),a.Ec(1,"mat-divider"),a.zd(2,dT,13,3,"div",9),a.Ec(3,"mat-divider"),a.zd(4,mT,14,5,"div",9),a.Ec(5,"mat-divider"),a.zd(6,ET,34,7,"div",9),a.Ec(7,"mat-divider"),a.zd(8,AT,18,2,"div",9),a.Ec(9,"mat-divider"),a.zd(10,PT,9,2,"div",9)),2&e){var i=a.ad();a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config)}}bT=$localize(_templateObject63()),_T=$localize(_templateObject64()),yT=$localize(_templateObject65()),kT=$localize(_templateObject66()),wT=$localize(_templateObject67()),CT=$localize(_templateObject68()),xT=$localize(_templateObject69()),ST=$localize(_templateObject70()),IT=$localize(_templateObject71()),OT=$localize(_templateObject72());var MT,LT=["placeholder",$localize(_templateObject73())];MT=$localize(_templateObject74());var jT,FT=["placeholder",$localize(_templateObject75())];jT=$localize(_templateObject76());var NT,zT,BT,JT=["placeholder",$localize(_templateObject77())];function VT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field",13),a.Jc(4,"input",14),a.Pc(5,LT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Downloader["path-audio"]=e})),a.Ic(),a.Jc(6,"mat-hint"),a.Hc(7),a.Nc(8,MT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(9,"div",22),a.Jc(10,"mat-form-field",13),a.Jc(11,"input",14),a.Pc(12,FT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Downloader["path-video"]=e})),a.Ic(),a.Jc(13,"mat-hint"),a.Hc(14),a.Nc(15,jT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(16,"div",22),a.Jc(17,"mat-form-field",33),a.Jc(18,"textarea",34),a.Pc(19,JT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Downloader.custom_args=e})),a.Ic(),a.Jc(20,"mat-hint"),a.Hc(21),a.Nc(22,NT),a.Gc(),a.Ic(),a.Jc(23,"button",35),a.Wc("click",(function(){return a.rd(i),a.ad(2).openArgsModifierDialog()})),a.Jc(24,"mat-icon"),a.Bd(25,"edit"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(26,"div",23),a.Jc(27,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Downloader.use_youtubedl_archive=e})),a.Hc(28),a.Nc(29,zT),a.Gc(),a.Ic(),a.Jc(30,"p"),a.Bd(31,"Note: This setting only applies to downloads on the Home page. If you would like to use youtube-dl archive functionality in subscriptions, head down to the Subscriptions section."),a.Ic(),a.Ic(),a.Jc(32,"div",12),a.Jc(33,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Downloader.safe_download_override=e})),a.Hc(34),a.Nc(35,BT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(4),a.gd("ngModel",n.new_config.Downloader["path-audio"]),a.pc(7),a.gd("ngModel",n.new_config.Downloader["path-video"]),a.pc(7),a.gd("ngModel",n.new_config.Downloader.custom_args),a.pc(9),a.gd("ngModel",n.new_config.Downloader.use_youtubedl_archive),a.pc(6),a.gd("ngModel",n.new_config.Downloader.safe_download_override)}}function HT(e,t){if(1&e&&a.zd(0,VT,36,5,"div",9),2&e){var i=a.ad();a.gd("ngIf",i.new_config)}}NT=$localize(_templateObject78()),zT=$localize(_templateObject79()),BT=$localize(_templateObject80());var UT,GT,WT,qT,$T,KT,XT,YT,ZT=["placeholder",$localize(_templateObject81())];function QT(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-form-field",13),a.Jc(4,"input",14),a.Pc(5,ZT),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.title_top=e})),a.Ic(),a.Ec(6,"mat-hint"),a.Ic(),a.Ic(),a.Jc(7,"div",20),a.Jc(8,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.file_manager_enabled=e})),a.Hc(9),a.Nc(10,UT),a.Gc(),a.Ic(),a.Ic(),a.Jc(11,"div",20),a.Jc(12,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.enable_downloads_manager=e})),a.Hc(13),a.Nc(14,GT),a.Gc(),a.Ic(),a.Ic(),a.Jc(15,"div",20),a.Jc(16,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.allow_quality_select=e})),a.Hc(17),a.Nc(18,WT),a.Gc(),a.Ic(),a.Ic(),a.Jc(19,"div",20),a.Jc(20,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.download_only_mode=e})),a.Hc(21),a.Nc(22,qT),a.Gc(),a.Ic(),a.Ic(),a.Jc(23,"div",20),a.Jc(24,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.allow_multi_download_mode=e})),a.Hc(25),a.Nc(26,$T),a.Gc(),a.Ic(),a.Ic(),a.Jc(27,"div",20),a.Jc(28,"mat-checkbox",24),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Extra.settings_pin_required=e})),a.Hc(29),a.Nc(30,KT),a.Gc(),a.Ic(),a.Jc(31,"button",36),a.Wc("click",(function(){return a.rd(i),a.ad(2).setNewPin()})),a.Hc(32),a.Nc(33,XT),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(4),a.gd("ngModel",n.new_config.Extra.title_top),a.pc(4),a.gd("ngModel",n.new_config.Extra.file_manager_enabled),a.pc(4),a.gd("ngModel",n.new_config.Extra.enable_downloads_manager),a.pc(4),a.gd("ngModel",n.new_config.Extra.allow_quality_select),a.pc(4),a.gd("ngModel",n.new_config.Extra.download_only_mode),a.pc(4),a.gd("ngModel",n.new_config.Extra.allow_multi_download_mode),a.pc(4),a.gd("disabled",n.new_config.Advanced.multi_user_mode)("ngModel",n.new_config.Extra.settings_pin_required),a.pc(3),a.gd("disabled",!n.new_config.Extra.settings_pin_required)}}UT=$localize(_templateObject82()),GT=$localize(_templateObject83()),WT=$localize(_templateObject84()),qT=$localize(_templateObject85()),$T=$localize(_templateObject86()),KT=$localize(_templateObject87()),XT=$localize(_templateObject88()),YT=$localize(_templateObject89());var eP,tP,iP,nP=["placeholder",$localize(_templateObject90())];function aP(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.API.use_API_key=e})),a.Hc(4),a.Nc(5,YT),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",37),a.Jc(7,"div",38),a.Jc(8,"mat-form-field",13),a.Jc(9,"input",19),a.Pc(10,nP),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.API.API_key=e})),a.Ic(),a.Jc(11,"mat-hint"),a.Jc(12,"a",39),a.Hc(13),a.Nc(14,eP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(15,"div",40),a.Jc(16,"button",41),a.Wc("click",(function(){return a.rd(i),a.ad(2).generateAPIKey()})),a.Hc(17),a.Nc(18,tP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.API.use_API_key),a.pc(6),a.gd("disabled",!n.new_config.API.use_API_key)("ngModel",n.new_config.API.API_key)}}eP=$localize(_templateObject91()),tP=$localize(_templateObject92()),iP=$localize(_templateObject93());var rP,oP,sP,cP,lP,uP,dP,hP,pP,fP,mP,gP,vP,bP,_P,yP,kP=["placeholder",$localize(_templateObject94())];function wP(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.API.use_youtube_API=e})),a.Hc(4),a.Nc(5,iP),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",37),a.Jc(7,"mat-form-field",13),a.Jc(8,"input",19),a.Pc(9,kP),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.API.youtube_API_key=e})),a.Ic(),a.Jc(10,"mat-hint"),a.Jc(11,"a",42),a.Hc(12),a.Nc(13,rP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.API.use_youtube_API),a.pc(5),a.gd("disabled",!n.new_config.API.use_youtube_API)("ngModel",n.new_config.API.youtube_API_key)}}function CP(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"h6"),a.Bd(4,"Chrome"),a.Ic(),a.Jc(5,"p"),a.Jc(6,"a",43),a.Hc(7),a.Nc(8,oP),a.Gc(),a.Ic(),a.Bd(9,"\xa0"),a.Hc(10),a.Nc(11,sP),a.Gc(),a.Ic(),a.Jc(12,"p"),a.Hc(13),a.Nc(14,cP),a.Gc(),a.Ic(),a.Ec(15,"mat-divider",44),a.Ic(),a.Jc(16,"div",20),a.Jc(17,"h6"),a.Bd(18,"Firefox"),a.Ic(),a.Jc(19,"p"),a.Jc(20,"a",45),a.Hc(21),a.Nc(22,lP),a.Gc(),a.Ic(),a.Bd(23,"\xa0"),a.Hc(24),a.Nc(25,uP),a.Gc(),a.Ic(),a.Jc(26,"p"),a.Jc(27,"a",46),a.Hc(28),a.Nc(29,dP),a.Gc(),a.Ic(),a.Bd(30,"\xa0"),a.Hc(31),a.Nc(32,hP),a.Gc(),a.Ic(),a.Ec(33,"mat-divider",44),a.Ic(),a.Jc(34,"div",20),a.Jc(35,"h6"),a.Bd(36,"Bookmarklet"),a.Ic(),a.Jc(37,"p"),a.Hc(38),a.Nc(39,pP),a.Gc(),a.Ic(),a.Jc(40,"mat-checkbox",47),a.Wc("change",(function(e){return a.rd(i),a.ad(2).bookmarkletAudioOnlyChanged(e)})),a.Hc(41),a.Nc(42,fP),a.Gc(),a.Ic(),a.Jc(43,"p"),a.Jc(44,"a",48),a.Bd(45,"YTDL-Bookmarklet"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(44),a.gd("href",n.generated_bookmarklet_code,a.td)}}function xP(e,t){if(1&e&&(a.zd(0,QT,34,9,"div",9),a.Ec(1,"mat-divider"),a.zd(2,aP,19,3,"div",9),a.Ec(3,"mat-divider"),a.zd(4,wP,14,3,"div",9),a.Ec(5,"mat-divider"),a.zd(6,CP,46,1,"div",9)),2&e){var i=a.ad();a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config)}}function SP(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",12),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Advanced.use_default_downloading_agent=e})),a.Hc(4),a.Nc(5,mP),a.Gc(),a.Ic(),a.Ic(),a.Jc(6,"div",20),a.Jc(7,"mat-form-field"),a.Jc(8,"mat-label"),a.Hc(9),a.Nc(10,gP),a.Gc(),a.Ic(),a.Jc(11,"mat-select",24),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Advanced.custom_downloading_agent=e})),a.Jc(12,"mat-option",50),a.Bd(13,"aria2c"),a.Ic(),a.Jc(14,"mat-option",51),a.Bd(15,"avconv"),a.Ic(),a.Jc(16,"mat-option",52),a.Bd(17,"axel"),a.Ic(),a.Jc(18,"mat-option",53),a.Bd(19,"curl"),a.Ic(),a.Jc(20,"mat-option",54),a.Bd(21,"ffmpeg"),a.Ic(),a.Jc(22,"mat-option",55),a.Bd(23,"httpie"),a.Ic(),a.Jc(24,"mat-option",56),a.Bd(25,"wget"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(26,"div",57),a.Jc(27,"mat-form-field"),a.Jc(28,"mat-label"),a.Hc(29),a.Nc(30,vP),a.Gc(),a.Ic(),a.Jc(31,"mat-select",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Advanced.logger_level=e})),a.Jc(32,"mat-option",58),a.Bd(33,"Debug"),a.Ic(),a.Jc(34,"mat-option",59),a.Bd(35,"Verbose"),a.Ic(),a.Jc(36,"mat-option",60),a.Bd(37,"Info"),a.Ic(),a.Jc(38,"mat-option",61),a.Bd(39,"Warn"),a.Ic(),a.Jc(40,"mat-option",62),a.Bd(41,"Error"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(42,"div",20),a.Jc(43,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Advanced.allow_advanced_download=e})),a.Hc(44),a.Nc(45,bP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Advanced.use_default_downloading_agent),a.pc(8),a.gd("disabled",n.new_config.Advanced.use_default_downloading_agent)("ngModel",n.new_config.Advanced.custom_downloading_agent),a.pc(20),a.gd("ngModel",n.new_config.Advanced.logger_level),a.pc(12),a.gd("ngModel",n.new_config.Advanced.allow_advanced_download)}}function IP(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"div",11),a.Jc(2,"div",23),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).new_config.Advanced.use_cookies=e})),a.Hc(4),a.Nc(5,_P),a.Gc(),a.Ic(),a.Jc(6,"button",63),a.Wc("click",(function(){return a.rd(i),a.ad(2).openCookiesUploaderDialog()})),a.Hc(7),a.Nc(8,yP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(3),a.gd("ngModel",n.new_config.Advanced.use_cookies)}}function OP(e,t){1&e&&(a.Jc(0,"div",64),a.Ec(1,"app-updater"),a.Ic())}function DP(e,t){if(1&e&&(a.zd(0,SP,46,5,"div",9),a.Ec(1,"mat-divider"),a.zd(2,IP,9,1,"div",9),a.Ec(3,"mat-divider"),a.zd(4,OP,2,0,"div",49)),2&e){var i=a.ad();a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config),a.pc(2),a.gd("ngIf",i.new_config)}}rP=$localize(_templateObject95()),oP=$localize(_templateObject96()),sP=$localize(_templateObject97()),cP=$localize(_templateObject98()),lP=$localize(_templateObject99()),uP=$localize(_templateObject100()),dP=$localize(_templateObject101()),hP=$localize(_templateObject102()),pP=$localize(_templateObject103()),fP=$localize(_templateObject104()),mP=$localize(_templateObject105()),gP=$localize(_templateObject106()),vP=$localize(_templateObject107()),bP=$localize(_templateObject108()),_P=$localize(_templateObject109()),yP=$localize(_templateObject110());var EP,AP=["label",$localize(_templateObject111())];function TP(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-tab",1),a.Pc(1,AP),a.Jc(2,"div",65),a.Jc(3,"mat-checkbox",16),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().new_config.Users.allow_registration=e})),a.Hc(4),a.Nc(5,EP),a.Gc(),a.Ic(),a.Ic(),a.Ec(6,"app-modify-users"),a.Ic()}if(2&e){var n=a.ad();a.pc(3),a.gd("ngModel",n.new_config.Users.allow_registration)}}EP=$localize(_templateObject112());var PP=["label",$localize(_templateObject113())];function RP(e,t){1&e&&(a.Jc(0,"div",66),a.Ec(1,"app-logs-viewer"),a.Ic())}function MP(e,t){1&e&&(a.Jc(0,"mat-tab",1),a.Pc(1,PP),a.zd(2,RP,2,0,"ng-template",3),a.Ic())}var LP,jP,FP,NP,zP,BP,JP,VP,HP,UP,GP,WP=((LP=function(){function e(t,i,n,a){_classCallCheck(this,e),this.postsService=t,this.snackBar=i,this.sanitizer=n,this.dialog=a,this.all_locales=wD,this.supported_locales=["en","es","de"],this.initialLocale=localStorage.getItem("locale"),this.initial_config=null,this.new_config=null,this.loading_config=!1,this.generated_bookmarklet_code=null,this.bookmarkletAudioOnly=!1,this._settingsSame=!0,this.latestGithubRelease=null,this.CURRENT_VERSION="v4.0"}return _createClass(e,[{key:"ngOnInit",value:function(){this.getConfig(),this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode()),this.getLatestGithubRelease()}},{key:"getConfig",value:function(){this.initial_config=this.postsService.config,this.new_config=JSON.parse(JSON.stringify(this.initial_config))}},{key:"settingsSame",value:function(){return JSON.stringify(this.new_config)===JSON.stringify(this.initial_config)}},{key:"saveSettings",value:function(){var e=this;this.postsService.setConfig({YoutubeDLMaterial:this.new_config}).subscribe((function(t){t.success&&(!e.initial_config.Advanced.multi_user_mode&&e.new_config.Advanced.multi_user_mode&&e.postsService.checkAdminCreationStatus(!0),e.initial_config=JSON.parse(JSON.stringify(e.new_config)),e.postsService.reload_config.next(!0))}),(function(e){console.error("Failed to save config!")}))}},{key:"setNewPin",value:function(){this.dialog.open(kD,{data:{resetMode:!0}})}},{key:"generateAPIKey",value:function(){var e=this;this.postsService.generateNewAPIKey().subscribe((function(t){t.new_api_key&&(e.initial_config.API.API_key=t.new_api_key,e.new_config.API.API_key=t.new_api_key)}))}},{key:"localeSelectChanged",value:function(e){localStorage.setItem("locale",e),this.openSnackBar("Language successfully changed! Reload to update the page.")}},{key:"generateBookmarklet",value:function(){this.bookmarksite("YTDL-Material",this.generated_bookmarklet_code)}},{key:"generateBookmarkletCode",value:function(){return"javascript:(function()%7Bwindow.open('".concat(window.location.href.split("#")[0]+"#/home;url=","' + encodeURIComponent(window.location) + ';audioOnly=").concat(this.bookmarkletAudioOnly,"')%7D)()")}},{key:"bookmarkletAudioOnlyChanged",value:function(e){this.bookmarkletAudioOnly=e.checked,this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode())}},{key:"bookmarksite",value:function(e,t){if(document.all)window.external.AddFavorite(t,e);else if(window.chrome)this.openSnackBar("Chrome users must drag the 'Alternate URL' link to your bookmarks.");else if(window.sidebar)window.sidebar.addPanel(e,t,"");else if(window.opera&&window.print){var i=document.createElement("a");i.setAttribute("href",t),i.setAttribute("title",e),i.setAttribute("rel","sidebar"),i.click()}}},{key:"openArgsModifierDialog",value:function(){var e=this;this.dialog.open(QD,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe((function(t){null!=t&&(e.new_config.Downloader.custom_args=t)}))}},{key:"getLatestGithubRelease",value:function(){var e=this;this.postsService.getLatestGithubRelease().subscribe((function(t){e.latestGithubRelease=t}))}},{key:"openCookiesUploaderDialog",value:function(){this.dialog.open(SE,{width:"65vw"})}},{key:"openSnackBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}},{key:"settingsAreTheSame",get:function(){return this._settingsSame=this.settingsSame(),this._settingsSame},set:function(e){this._settingsSame=e}}]),e}()).\u0275fac=function(e){return new(e||LP)(a.Dc(YO),a.Dc(A_),a.Dc(n.b),a.Dc(Th))},LP.\u0275cmp=a.xc({type:LP,selectors:[["app-settings"]],decls:32,vars:5,consts:[["mat-dialog-title",""],[6,"label"],["matTabContent","","style","padding: 15px;"],["matTabContent",""],["label","Users",4,"ngIf"],["label","Logs",4,"ngIf"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row"],[1,"col-12","mt-3"],["color","accent",1,"text-field"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mb-4"],["color","accent",3,"ngModel","ngModelChange"],[1,"col-12","mt-3","mb-4"],[1,"text-field"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-5"],[1,"col-12","mt-4"],["color","accent",3,"disabled","ngModel","ngModelChange"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-download-only-new-videos-from-a-playlist"],["value","default"],["value","dark"],[1,"col-12","mb-2"],["color","accent"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","accent",1,"text-field",2,"margin-right","12px"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-icon-button","",1,"args-edit-button",3,"click"],["mat-stroked-button","",2,"margin-left","15px","margin-bottom","10px",3,"disabled","click"],[1,"col-12","mb-3"],[1,"enable-api-key-div"],["target","_blank","href","https://stoplight.io/p/docs/gh/tzahi12345/youtubedl-material"],[1,"api-key-div"],["matTooltip-i18n","","matTooltip","This will delete your old API key!","mat-stroked-button","",3,"click"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/chrome-extension/youtubedl-material-chrome-extension.zip?raw=true"],[1,"ext-divider"],["href","https://addons.mozilla.org/en-US/firefox/addon/youtubedl-material/","target","_blank"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/wiki/Firefox-Extension","target","_blank"],[3,"change"],["target","_blank",3,"href"],["class","container-fluid mt-1",4,"ngIf"],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"col-12","mt-2","mb-1"],["value","debug"],["value","verbose"],["value","info"],["value","warn"],["value","error"],["mat-stroked-button","",1,"checkbox-button",3,"click"],[1,"container-fluid","mt-1"],[2,"margin-left","48px","margin-top","24px"],[2,"margin-left","48px","margin-top","24px","height","340px"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Nc(1,$A),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"mat-tab-group"),a.Jc(4,"mat-tab",1),a.Pc(5,ZA),a.zd(6,RT,11,6,"ng-template",2),a.Ic(),a.Jc(7,"mat-tab",1),a.Pc(8,QA),a.zd(9,HT,1,1,"ng-template",3),a.Ic(),a.Jc(10,"mat-tab",1),a.Pc(11,eT),a.zd(12,xP,7,4,"ng-template",3),a.Ic(),a.Jc(13,"mat-tab",1),a.Pc(14,tT),a.zd(15,DP,5,3,"ng-template",3),a.Ic(),a.zd(16,TP,7,1,"mat-tab",4),a.zd(17,MP,3,0,"mat-tab",5),a.Ic(),a.Ic(),a.Jc(18,"mat-dialog-actions"),a.Jc(19,"div",6),a.Jc(20,"button",7),a.Wc("click",(function(){return t.saveSettings()})),a.Jc(21,"mat-icon"),a.Bd(22,"done"),a.Ic(),a.Bd(23,"\xa0\xa0 "),a.Hc(24),a.Nc(25,XA),a.Gc(),a.Ic(),a.Jc(26,"button",8),a.Jc(27,"mat-icon"),a.Bd(28,"cancel"),a.Ic(),a.Bd(29,"\xa0\xa0 "),a.Jc(30,"span"),a.Nc(31,YA),a.Ic(),a.Ic(),a.Ic(),a.Ic()),2&e&&(a.pc(16),a.gd("ngIf",t.postsService.config&&t.postsService.config.Advanced.multi_user_mode),a.pc(1),a.gd("ngIf",t.postsService.config),a.pc(3),a.gd("disabled",t.settingsSame()),a.pc(6),a.gd("mat-dialog-close",!1),a.pc(5),a.Qc(t.settingsAreTheSame+""),a.Oc(31))},directives:[Mh,Lh,Ly,Sy,yy,yt.t,jh,Za,_m,Rh,Mm,Ud,Pm,_r,Ks,Dr,es,Ld,Yc,jd,mb,za,yt.s,hv,HE,JA,KA],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px;top:20px}.enable-api-key-div[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:15px}.api-key-div[_ngcontent-%COMP%], .enable-api-key-div[_ngcontent-%COMP%]{display:inline-block}.text-field[_ngcontent-%COMP%]{min-width:30%}.checkbox-button[_ngcontent-%COMP%]{margin-left:15px;margin-bottom:12px;bottom:4px}"]}),LP);function qP(e,t){1&e&&(a.Jc(0,"span",12),a.Ec(1,"mat-spinner",13),a.Bd(2,"\xa0"),a.Hc(3),a.Nc(4,UP),a.Gc(),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",22))}function $P(e,t){1&e&&(a.Jc(0,"mat-icon",14),a.Bd(1,"done"),a.Ic())}function KP(e,t){if(1&e&&(a.Jc(0,"a",2),a.Hc(1),a.Nc(2,GP),a.Gc(),a.Bd(3),a.Ic()),2&e){var i=a.ad();a.gd("href",i.latestUpdateLink,a.td),a.pc(3),a.Dd(" - ",i.latestGithubRelease.tag_name,"")}}function XP(e,t){1&e&&(a.Jc(0,"span"),a.Bd(1,"You are up to date."),a.Ic())}jP=$localize(_templateObject114()),FP=$localize(_templateObject115()),NP=$localize(_templateObject116()),zP=$localize(_templateObject117()),BP=$localize(_templateObject118()),JP=$localize(_templateObject119()),VP=$localize(_templateObject120()),HP=$localize(_templateObject121()),UP=$localize(_templateObject122()),GP=$localize(_templateObject123());var YP,ZP,QP,eR,tR,iR,nR,aR,rR,oR=((YP=function(){function e(t){_classCallCheck(this,e),this.postsService=t,this.projectLink="https://github.com/Tzahi12345/YoutubeDL-Material",this.issuesLink="https://github.com/Tzahi12345/YoutubeDL-Material/issues",this.latestUpdateLink="https://github.com/Tzahi12345/YoutubeDL-Material/releases/latest",this.latestGithubRelease=null,this.checking_for_updates=!0,this.current_version_tag="v4.0"}return _createClass(e,[{key:"ngOnInit",value:function(){this.getLatestGithubRelease()}},{key:"getLatestGithubRelease",value:function(){var e=this;this.postsService.getLatestGithubRelease().subscribe((function(t){e.checking_for_updates=!1,e.latestGithubRelease=t}))}}]),e}()).\u0275fac=function(e){return new(e||YP)(a.Dc(YO))},YP.\u0275cmp=a.xc({type:YP,selectors:[["app-about-dialog"]],decls:49,vars:7,consts:[["mat-dialog-title","",2,"position","relative"],[1,"logo-image"],["target","_blank",3,"href"],["src","assets/images/GitHub-64px.png",2,"width","32px"],["src","assets/images/logo_128px.png",2,"width","32px","margin-left","15px"],[2,"margin-bottom","5px"],[2,"margin-top","10px"],["style","display: inline-block",4,"ngIf"],["class","version-checked-icon",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","","mat-dialog-close","",2,"margin-bottom","5px"],[2,"display","inline-block"],[1,"version-spinner",3,"diameter"],[1,"version-checked-icon"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Hc(1),a.Nc(2,jP),a.Gc(),a.Jc(3,"span",1),a.Jc(4,"a",2),a.Ec(5,"img",3),a.Ic(),a.Ec(6,"img",4),a.Ic(),a.Ic(),a.Jc(7,"mat-dialog-content"),a.Jc(8,"div",5),a.Jc(9,"p"),a.Jc(10,"i"),a.Bd(11,"YoutubeDL-Material"),a.Ic(),a.Bd(12,"\xa0"),a.Hc(13),a.Nc(14,FP),a.Gc(),a.Ic(),a.Jc(15,"p"),a.Jc(16,"i"),a.Bd(17,"YoutubeDL-Material"),a.Ic(),a.Bd(18,"\xa0"),a.Hc(19),a.Nc(20,NP),a.Gc(),a.Ic(),a.Ec(21,"mat-divider"),a.Jc(22,"h5",6),a.Bd(23,"Installation details:"),a.Ic(),a.Jc(24,"p"),a.Hc(25),a.Nc(26,zP),a.Gc(),a.Bd(27),a.zd(28,qP,5,1,"span",7),a.zd(29,$P,2,0,"mat-icon",8),a.Bd(30,"\xa0\xa0"),a.zd(31,KP,4,2,"a",9),a.Bd(32,". "),a.Hc(33),a.Nc(34,BP),a.Gc(),a.zd(35,XP,2,0,"span",10),a.Ic(),a.Jc(36,"p"),a.Hc(37),a.Nc(38,JP),a.Gc(),a.Bd(39,"\xa0"),a.Jc(40,"a",2),a.Hc(41),a.Nc(42,VP),a.Gc(),a.Ic(),a.Bd(43,"\xa0"),a.Hc(44),a.Nc(45,HP),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(46,"mat-dialog-actions"),a.Jc(47,"button",11),a.Bd(48,"Close"),a.Ic(),a.Ic()),2&e&&(a.pc(4),a.gd("href",t.projectLink,a.td),a.pc(23),a.Dd("\xa0",t.current_version_tag," - "),a.pc(1),a.gd("ngIf",t.checking_for_updates),a.pc(1),a.gd("ngIf",!t.checking_for_updates),a.pc(2),a.gd("ngIf",!t.checking_for_updates&&t.latestGithubRelease.tag_name!==t.current_version_tag),a.pc(4),a.gd("ngIf",!t.checking_for_updates&&t.latestGithubRelease.tag_name===t.current_version_tag),a.pc(5),a.gd("href",t.issuesLink,a.td))},directives:[Mh,Lh,Mm,yt.t,jh,Za,Rh,jv,_m],styles:["i[_ngcontent-%COMP%]{margin-right:1px}.version-spinner[_ngcontent-%COMP%]{top:4px;margin-right:5px;margin-left:5px;display:inline-block}.version-checked-icon[_ngcontent-%COMP%]{top:5px;margin-left:2px;position:relative;margin-right:-3px}.logo-image[_ngcontent-%COMP%]{position:absolute;top:-10px;right:-10px}"]}),YP);function sR(e,t){if(1&e&&(a.Jc(0,"div"),a.Jc(1,"div"),a.Jc(2,"strong"),a.Hc(3),a.Nc(4,tR),a.Gc(),a.Ic(),a.Bd(5),a.Ic(),a.Jc(6,"div"),a.Jc(7,"strong"),a.Hc(8),a.Nc(9,iR),a.Gc(),a.Ic(),a.Bd(10),a.Ic(),a.Jc(11,"div"),a.Jc(12,"strong"),a.Hc(13),a.Nc(14,nR),a.Gc(),a.Ic(),a.Bd(15),a.bd(16,"date"),a.Ic(),a.Ec(17,"div",6),a.Ic()),2&e){var i=a.ad();a.pc(5),a.Dd("\xa0",i.postsService.user.name," "),a.pc(5),a.Dd("\xa0",i.postsService.user.uid," "),a.pc(5),a.Dd("\xa0",i.postsService.user.created?a.cd(16,3,i.postsService.user.created):"N/A"," ")}}function cR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"h5"),a.Jc(2,"mat-icon"),a.Bd(3,"warn"),a.Ic(),a.Hc(4),a.Nc(5,aR),a.Gc(),a.Ic(),a.Jc(6,"button",7),a.Wc("click",(function(){return a.rd(i),a.ad().loginClicked()})),a.Hc(7),a.Nc(8,rR),a.Gc(),a.Ic(),a.Ic()}}ZP=$localize(_templateObject124()),QP=$localize(_templateObject125()),eR=$localize(_templateObject126()),tR=$localize(_templateObject127()),iR=$localize(_templateObject128()),nR=$localize(_templateObject129()),aR=$localize(_templateObject130()),rR=$localize(_templateObject131());var lR,uR,dR,hR=((lR=function(){function e(t,i,n){_classCallCheck(this,e),this.postsService=t,this.router=i,this.dialogRef=n}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"loginClicked",value:function(){this.router.navigate(["/login"]),this.dialogRef.close()}},{key:"logoutClicked",value:function(){this.postsService.logout(),this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||lR)(a.Dc(YO),a.Dc(bO),a.Dc(Ih))},lR.\u0275cmp=a.xc({type:lR,selectors:[["app-user-profile-dialog"]],decls:14,vars:2,consts:[["mat-dialog-title",""],[4,"ngIf"],[2,"width","100%"],[2,"position","relative"],["mat-stroked-button","","mat-dialog-close","","color","primary"],["mat-stroked-button","","color","warn",2,"position","absolute","right","0px",3,"click"],[2,"margin-top","20px"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Nc(1,ZP),a.Ic(),a.Jc(2,"mat-dialog-content"),a.zd(3,sR,18,5,"div",1),a.zd(4,cR,9,0,"div",1),a.Ic(),a.Jc(5,"mat-dialog-actions"),a.Jc(6,"div",2),a.Jc(7,"div",3),a.Jc(8,"button",4),a.Hc(9),a.Nc(10,QP),a.Gc(),a.Ic(),a.Jc(11,"button",5),a.Wc("click",(function(){return t.logoutClicked()})),a.Hc(12),a.Nc(13,eR),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic()),2&e&&(a.pc(3),a.gd("ngIf",t.postsService.isLoggedIn&&t.postsService.user),a.pc(1),a.gd("ngIf",!t.postsService.isLoggedIn||!t.postsService.user))},directives:[Mh,Lh,yt.t,jh,Za,Rh,_m],pipes:[yt.f],styles:[""]}),lR);uR=$localize(_templateObject132()),dR=$localize(_templateObject133());var pR,fR=["placeholder",$localize(_templateObject134())];function mR(e,t){1&e&&a.Ec(0,"mat-spinner",7),2&e&&a.gd("diameter",25)}pR=$localize(_templateObject135());var gR,vR,bR,_R,yR,kR,wR,CR,xR,SR=((gR=function(){function e(t,i){_classCallCheck(this,e),this.postsService=t,this.dialogRef=i,this.creating=!1,this.input=""}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"create",value:function(){var e=this;this.creating=!0,this.postsService.createAdminAccount(this.input).subscribe((function(t){e.creating=!1,e.dialogRef.close(!!t.success)}),(function(t){console.log(t),e.dialogRef.close(!1)}))}}]),e}()).\u0275fac=function(e){return new(e||gR)(a.Dc(YO),a.Dc(Ih))},gR.\u0275cmp=a.xc({type:gR,selectors:[["app-set-default-admin-dialog"]],decls:18,vars:3,consts:[["mat-dialog-title",""],[2,"position","relative"],["color","accent"],["type","password","matInput","",3,"ngModel","keyup.enter","ngModelChange",6,"placeholder"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],[1,"spinner-div"],[3,"diameter",4,"ngIf"],[3,"diameter"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Hc(1),a.Nc(2,uR),a.Gc(),a.Ic(),a.Jc(3,"mat-dialog-content"),a.Jc(4,"div"),a.Jc(5,"p"),a.Nc(6,dR),a.Ic(),a.Ic(),a.Jc(7,"div",1),a.Jc(8,"div"),a.Jc(9,"mat-form-field",2),a.Jc(10,"input",3),a.Pc(11,fR),a.Wc("keyup.enter",(function(){return t.create()}))("ngModelChange",(function(e){return t.input=e})),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(12,"mat-dialog-actions"),a.Jc(13,"button",4),a.Wc("click",(function(){return t.create()})),a.Hc(14),a.Nc(15,pR),a.Gc(),a.Ic(),a.Jc(16,"div",5),a.zd(17,mR,1,1,"mat-spinner",6),a.Ic(),a.Ic()),2&e&&(a.pc(10),a.gd("ngModel",t.input),a.pc(3),a.gd("disabled",0===t.input.length),a.pc(4),a.gd("ngIf",t.creating))},directives:[Mh,Lh,Ud,Pm,_r,Dr,es,jh,Za,yt.t,jv],styles:[".spinner-div[_ngcontent-%COMP%]{position:relative;left:10px;bottom:5px}"]}),gR),IR=["sidenav"],OR=["hamburgerMenu"];function DR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",21,22),a.Wc("click",(function(){return a.rd(i),a.ad().toggleSidenav()})),a.Jc(2,"mat-icon"),a.Bd(3,"menu"),a.Ic(),a.Ic()}}function ER(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",23),a.Wc("click",(function(){return a.rd(i),a.ad().goBack()})),a.Jc(1,"mat-icon"),a.Bd(2,"arrow_back"),a.Ic(),a.Ic()}}function AR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",13),a.Wc("click",(function(){return a.rd(i),a.ad().openProfileDialog()})),a.Jc(1,"mat-icon"),a.Bd(2,"person"),a.Ic(),a.Jc(3,"span"),a.Nc(4,bR),a.Ic(),a.Ic()}}function TR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",13),a.Wc("click",(function(e){return a.rd(i),a.ad().themeMenuItemClicked(e)})),a.Jc(1,"mat-icon"),a.Bd(2),a.Ic(),a.Jc(3,"span"),a.Nc(4,_R),a.Ic(),a.Ec(5,"mat-slide-toggle",24),a.Ic()}if(2&e){var n=a.ad();a.pc(2),a.Cd("default"===n.postsService.theme.key?"brightness_5":"brightness_2"),a.pc(3),a.gd("checked","dark"===n.postsService.theme.key)}}function PR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",13),a.Wc("click",(function(){return a.rd(i),a.ad().openSettingsDialog()})),a.Jc(1,"mat-icon"),a.Bd(2,"settings"),a.Ic(),a.Jc(3,"span"),a.Nc(4,yR),a.Ic(),a.Ic()}}function RR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"a",25),a.Wc("click",(function(){return a.rd(i),a.ad(),a.nd(27).close()})),a.Hc(1),a.Nc(2,kR),a.Gc(),a.Ic()}}function MR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"a",26),a.Wc("click",(function(){return a.rd(i),a.ad(),a.nd(27).close()})),a.Hc(1),a.Nc(2,wR),a.Gc(),a.Ic()}}function LR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"a",27),a.Wc("click",(function(){return a.rd(i),a.ad(),a.nd(27).close()})),a.Hc(1),a.Nc(2,CR),a.Gc(),a.Ic()}}function jR(e,t){if(1&e){var i=a.Kc();a.Jc(0,"a",28),a.Wc("click",(function(){return a.rd(i),a.ad(),a.nd(27).close()})),a.Hc(1),a.Nc(2,xR),a.Gc(),a.Ic()}}vR=$localize(_templateObject136()),bR=$localize(_templateObject137()),_R=$localize(_templateObject138()),yR=$localize(_templateObject139()),kR=$localize(_templateObject140()),wR=$localize(_templateObject141()),CR=$localize(_templateObject142()),xR=$localize(_templateObject143());var FR,NR=((FR=function(){function e(t,i,n,a,r,o){var s=this;_classCallCheck(this,e),this.postsService=t,this.snackBar=i,this.dialog=n,this.router=a,this.overlayContainer=r,this.elementRef=o,this.THEMES_CONFIG=Px,this.topBarTitle="Youtube Downloader",this.defaultTheme=null,this.allowThemeChange=null,this.allowSubscriptions=!1,this.enableDownloadsManager=!1,this.settingsPinRequired=!0,this.navigator=null,this.navigator=localStorage.getItem("player_navigator"),this.router.events.subscribe((function(e){e instanceof iS?s.navigator=localStorage.getItem("player_navigator"):e instanceof nS&&s.hamburgerMenuButton&&s.hamburgerMenuButton.nativeElement&&s.hamburgerMenuButton.nativeElement.blur()})),this.postsService.config_reloaded.subscribe((function(e){e&&s.loadConfig()}))}return _createClass(e,[{key:"toggleSidenav",value:function(){this.sidenav.toggle()}},{key:"loadConfig",value:function(){this.topBarTitle=this.postsService.config.Extra.title_top,this.settingsPinRequired=this.postsService.config.Extra.settings_pin_required;var e=this.postsService.config.Themes;this.defaultTheme=e?this.postsService.config.Themes.default_theme:"default",this.allowThemeChange=!e||this.postsService.config.Themes.allow_theme_change,this.allowSubscriptions=this.postsService.config.Subscriptions.allow_subscriptions,this.enableDownloadsManager=this.postsService.config.Extra.enable_downloads_manager,localStorage.getItem("theme")||this.setTheme(e?this.defaultTheme:"default")}},{key:"setTheme",value:function(e){var t=null;this.THEMES_CONFIG[e]?(localStorage.getItem("theme")&&(t=localStorage.getItem("theme"),this.THEMES_CONFIG[t]||(console.log("bad theme found, setting to default"),null===this.defaultTheme?console.error("No default theme detected"):(localStorage.setItem("theme",this.defaultTheme),t=localStorage.getItem("theme")))),localStorage.setItem("theme",e),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor=this.THEMES_CONFIG[e].background_color,this.postsService.setTheme(e),this.onSetTheme(this.THEMES_CONFIG[e].css_label,t?this.THEMES_CONFIG[t].css_label:t)):console.error("Invalid theme: "+e)}},{key:"onSetTheme",value:function(e,t){t&&(document.body.classList.remove(t),this.overlayContainer.getContainerElement().classList.remove(t)),this.overlayContainer.getContainerElement().classList.add(e),this.componentCssClass=e}},{key:"flipTheme",value:function(){"default"===this.postsService.theme.key?this.setTheme("dark"):"dark"===this.postsService.theme.key&&this.setTheme("default")}},{key:"themeMenuItemClicked",value:function(e){this.flipTheme(),e.stopPropagation()}},{key:"ngOnInit",value:function(){var e=this;localStorage.getItem("theme")&&this.setTheme(localStorage.getItem("theme")),this.postsService.open_create_default_admin_dialog.subscribe((function(t){t&&e.dialog.open(SR).afterClosed().subscribe((function(t){t?"/login"!==e.router.url&&e.router.navigate(["/login"]):console.error("Failed to create default admin account. See logs for details.")}))}))}},{key:"goBack",value:function(){this.navigator?this.router.navigateByUrl(this.navigator):this.router.navigate(["/home"])}},{key:"openSettingsDialog",value:function(){this.settingsPinRequired?this.openPinDialog():this.actuallyOpenSettingsDialog()}},{key:"actuallyOpenSettingsDialog",value:function(){this.dialog.open(WP,{width:"80vw"})}},{key:"openPinDialog",value:function(){var e=this;this.dialog.open(kD,{}).afterClosed().subscribe((function(t){t&&e.actuallyOpenSettingsDialog()}))}},{key:"openAboutDialog",value:function(){this.dialog.open(oR,{width:"80vw"})}},{key:"openProfileDialog",value:function(){this.dialog.open(hR,{width:"60vw"})}}]),e}()).\u0275fac=function(e){return new(e||FR)(a.Dc(YO),a.Dc(A_),a.Dc(Th),a.Dc(bO),a.Dc(Lu),a.Dc(a.r))},FR.\u0275cmp=a.xc({type:FR,selectors:[["app-root"]],viewQuery:function(e,t){var i;1&e&&(a.Fd(IR,!0),a.Fd(OR,!0,a.r)),2&e&&(a.md(i=a.Xc())&&(t.sidenav=i.first),a.md(i=a.Xc())&&(t.hamburgerMenuButton=i.first))},hostVars:2,hostBindings:function(e,t){2&e&&a.rc(t.componentCssClass)},decls:35,vars:15,consts:[[2,"width","100%","height","100%"],[1,"mat-elevation-z3",2,"position","relative","z-index","10"],["color","primary",1,"sticky-toolbar","top-toolbar"],["width","100%","height","100%",1,"flex-row"],[1,"flex-column",2,"text-align","left","margin-top","1px"],["style","outline: none","mat-icon-button","","aria-label","Toggle side navigation",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"flex-column",2,"text-align","center","margin-top","5px"],[2,"font-size","22px","text-shadow","#141414 0.25px 0.25px 1px"],[1,"flex-column",2,"text-align","right","align-items","flex-end"],["mat-icon-button","",3,"matMenuTriggerFor"],["menuSettings","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"sidenav-container",2,"height","calc(100% - 64px)"],[2,"height","100%"],["sidenav",""],["mat-list-item","","routerLink","/home",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/login",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/subscriptions",3,"click",4,"ngIf"],["mat-list-item","","routerLink","/downloads",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Toggle side navigation",2,"outline","none",3,"click"],["hamburgerMenu",""],["mat-icon-button","",3,"click"],[1,"theme-slide-toggle",3,"checked"],["mat-list-item","","routerLink","/home",3,"click"],["mat-list-item","","routerLink","/login",3,"click"],["mat-list-item","","routerLink","/subscriptions",3,"click"],["mat-list-item","","routerLink","/downloads",3,"click"]],template:function(e,t){if(1&e&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Jc(2,"mat-toolbar",2),a.Jc(3,"div",3),a.Jc(4,"div",4),a.zd(5,DR,4,0,"button",5),a.zd(6,ER,3,0,"button",6),a.Ic(),a.Jc(7,"div",7),a.Jc(8,"div",8),a.Bd(9),a.Ic(),a.Ic(),a.Jc(10,"div",9),a.Jc(11,"button",10),a.Jc(12,"mat-icon"),a.Bd(13,"more_vert"),a.Ic(),a.Ic(),a.Jc(14,"mat-menu",null,11),a.zd(16,AR,5,0,"button",12),a.zd(17,TR,6,2,"button",12),a.zd(18,PR,5,0,"button",12),a.Jc(19,"button",13),a.Wc("click",(function(){return t.openAboutDialog()})),a.Jc(20,"mat-icon"),a.Bd(21,"info"),a.Ic(),a.Jc(22,"span"),a.Nc(23,vR),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(24,"div",14),a.Jc(25,"mat-sidenav-container",15),a.Jc(26,"mat-sidenav",null,16),a.Jc(28,"mat-nav-list"),a.zd(29,RR,3,0,"a",17),a.zd(30,MR,3,0,"a",18),a.zd(31,LR,3,0,"a",19),a.zd(32,jR,3,0,"a",20),a.Ic(),a.Ic(),a.Jc(33,"mat-sidenav-content"),a.Ec(34,"router-outlet"),a.Ic(),a.Ic(),a.Ic(),a.Ic()),2&e){var i=a.nd(15);a.yd("background",t.postsService.theme?t.postsService.theme.background_color:null,a.wc),a.pc(5),a.gd("ngIf","/player"!==t.router.url.split(";")[0]),a.pc(1),a.gd("ngIf","/player"===t.router.url.split(";")[0]),a.pc(3),a.Dd(" ",t.topBarTitle," "),a.pc(2),a.gd("matMenuTriggerFor",i),a.pc(5),a.gd("ngIf",t.postsService.isLoggedIn),a.pc(1),a.gd("ngIf",t.allowThemeChange),a.pc(1),a.gd("ngIf",!t.postsService.isLoggedIn||t.postsService.permissions.includes("settings")),a.pc(11),a.gd("ngIf",t.postsService.config&&(!t.postsService.config.Advanced.multi_user_mode||t.postsService.isLoggedIn)),a.pc(1),a.gd("ngIf",t.postsService.config&&t.postsService.config.Advanced.multi_user_mode&&!t.postsService.isLoggedIn),a.pc(1),a.gd("ngIf",t.postsService.config&&t.allowSubscriptions&&(!t.postsService.config.Advanced.multi_user_mode||t.postsService.isLoggedIn&&t.postsService.permissions.includes("subscriptions"))),a.pc(1),a.gd("ngIf",t.postsService.config&&t.enableDownloadsManager&&(!t.postsService.config.Advanced.multi_user_mode||t.postsService.isLoggedIn&&t.postsService.permissions.includes("downloads_manager"))),a.pc(1),a.yd("background",t.postsService.theme?t.postsService.theme.background_color:null,a.wc)}},directives:[L_,yt.t,Za,zg,_m,Lg,Eg,qb,Gb,eg,Ub,EO,o_,og,yO],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-basis:100%;flex:1}.theme-slide-toggle[_ngcontent-%COMP%]{top:2px;left:10px;position:relative;pointer-events:none}.sidenav-container[_ngcontent-%COMP%]{z-index:-1!important}.top-toolbar[_ngcontent-%COMP%]{height:64px}"]}),FR);function zR(e,t,i,n){return new(i||(i=Promise))((function(a,r){function o(e){try{c(n.next(e))}catch(t){r(t)}}function s(e){try{c(n.throw(e))}catch(t){r(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))}var BR,JR,VR=i("Iab2"),HR=function e(t){_classCallCheck(this,e),this.id=t&&t.id||null,this.title=t&&t.title||null,this.desc=t&&t.desc||null,this.thumbnailUrl=t&&t.thumbnailUrl||null,this.uploaded=t&&t.uploaded||null,this.videoUrl=t&&t.videoUrl||"https://www.youtube.com/watch?v=".concat(this.id),this.uploaded=function(e){var t,i=new Date(e),n=GR(i.getMonth()+1),a=GR(i.getDate()),r=i.getFullYear();t=i.getHours();var o=GR(i.getMinutes()),s="AM",c=parseInt(t,10);return c>12?(s="PM",t=c-12):0===c&&(t="12"),n+"-"+a+"-"+r+" "+(t=GR(t))+":"+o+" "+s}(Date.parse(this.uploaded))},UR=((BR=function(){function e(t){_classCallCheck(this,e),this.http=t,this.url="https://www.googleapis.com/youtube/v3/search",this.key=null}return _createClass(e,[{key:"initializeAPI",value:function(e){this.key=e}},{key:"search",value:function(e){if(this.ValidURL(e))return new si.a;var t=["q=".concat(e),"key=".concat(this.key),"part=snippet","type=video","maxResults=5"].join("&");return this.http.get("".concat(this.url,"?").concat(t)).map((function(e){return e.items.map((function(e){return new HR({id:e.id.videoId,title:e.snippet.title,desc:e.snippet.description,thumbnailUrl:e.snippet.thumbnails.high.url,uploaded:e.snippet.publishedAt})}))}))}},{key:"ValidURL",value:function(e){return new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(e)}}]),e}()).\u0275fac=function(e){return new(e||BR)(a.Sc(Pf))},BR.\u0275prov=a.zc({token:BR,factory:BR.\u0275fac,providedIn:"root"}),BR);function GR(e){return e<10?"0"+e:e}JR=$localize(_templateObject144());var WR,qR,$R=["placeholder",$localize(_templateObject145())];function KR(e,t){1&e&&(a.Jc(0,"mat-label"),a.Hc(1),a.Nc(2,WR),a.Gc(),a.Ic())}function XR(e,t){1&e&&(a.Jc(0,"mat-label"),a.Hc(1),a.Nc(2,qR),a.Gc(),a.Ic())}function YR(e,t){if(1&e&&(a.Jc(0,"mat-option",8),a.Bd(1),a.Ic()),2&e){var i=t.$implicit;a.gd("value",i.id),a.pc(1),a.Cd(i.id)}}function ZR(e,t){1&e&&(a.Jc(0,"div",9),a.Ec(1,"mat-spinner",10),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",25))}WR=$localize(_templateObject146()),qR=$localize(_templateObject147());var QR,eM,tM,iM,nM,aM=function(){return{standalone:!0}},rM=((QR=function(){function e(t,i,n){_classCallCheck(this,e),this.data=t,this.postsService=i,this.dialogRef=n,this.filesToSelectFrom=null,this.type=null,this.filesSelect=new Jo,this.name="",this.create_in_progress=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.data&&(this.filesToSelectFrom=this.data.filesToSelectFrom,this.type=this.data.type)}},{key:"createPlaylist",value:function(){var e=this,t=this.getThumbnailURL();this.create_in_progress=!0,this.postsService.createPlaylist(this.name,this.filesSelect.value,this.type,t).subscribe((function(t){e.create_in_progress=!1,e.dialogRef.close(!!t.success)}))}},{key:"getThumbnailURL",value:function(){for(var e=0;e1?"first-result-card":"",r===o.results.length-1&&o.results.length>1?"last-result-card":"",1===o.results.length?"only-result-card":"")),a.pc(2),a.Dd(" ",n.title," "),a.pc(2),a.Dd(" ",n.uploaded," ")}}function CM(e,t){if(1&e&&(a.Jc(0,"div",33),a.zd(1,wM,12,7,"span",27),a.Ic()),2&e){var i=a.ad();a.pc(1),a.gd("ngForOf",i.results)}}function xM(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-checkbox",39),a.Wc("change",(function(e){return a.rd(i),a.ad().multiDownloadModeChanged(e)}))("ngModelChange",(function(e){return a.rd(i),a.ad().multiDownloadMode=e})),a.Hc(1),a.Nc(2,vM),a.Gc(),a.Ic()}if(2&e){var n=a.ad();a.gd("disabled",n.current_download)("ngModel",n.multiDownloadMode)}}function SM(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",40),a.Wc("click",(function(){return a.rd(i),a.ad().cancelDownload()})),a.Hc(1),a.Nc(2,bM),a.Gc(),a.Ic()}}vM=$localize(_templateObject154()),bM=$localize(_templateObject155()),_M=$localize(_templateObject156()),yM=$localize(_templateObject157());var IM,OM,DM=["placeholder",$localize(_templateObject158())];IM=$localize(_templateObject159()),OM=$localize(_templateObject160());var EM,AM,TM,PM,RM=["placeholder",$localize(_templateObject161())];function MM(e,t){if(1&e&&(a.Jc(0,"p"),a.Hc(1),a.Nc(2,TM),a.Gc(),a.Bd(3," \xa0"),a.Jc(4,"i"),a.Bd(5),a.Ic(),a.Ic()),2&e){var i=a.ad(2);a.pc(5),a.Cd(i.simulatedOutput)}}EM=$localize(_templateObject162()),AM=$localize(_templateObject163()),TM=$localize(_templateObject164()),PM=$localize(_templateObject165());var LM=["placeholder",$localize(_templateObject166())];function jM(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",52),a.Jc(1,"mat-checkbox",46),a.Wc("change",(function(e){return a.rd(i),a.ad(2).youtubeAuthEnabledChanged(e)}))("ngModelChange",(function(e){return a.rd(i),a.ad(2).youtubeAuthEnabled=e})),a.Hc(2),a.Nc(3,PM),a.Gc(),a.Ic(),a.Jc(4,"mat-form-field",53),a.Jc(5,"input",49),a.Pc(6,LM),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).youtubeUsername=e})),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(1),a.gd("disabled",n.current_download)("ngModel",n.youtubeAuthEnabled)("ngModelOptions",a.id(6,mM)),a.pc(4),a.gd("ngModel",n.youtubeUsername)("ngModelOptions",a.id(7,mM))("disabled",!n.youtubeAuthEnabled)}}var FM,NM,zM,BM,JM,VM,HM,UM,GM=["placeholder",$localize(_templateObject167())];function WM(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",52),a.Jc(1,"mat-form-field",54),a.Jc(2,"input",55),a.Pc(3,GM),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(2).youtubePassword=e})),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(2),a.gd("ngModel",n.youtubePassword)("ngModelOptions",a.id(3,mM))("disabled",!n.youtubeAuthEnabled)}}function qM(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",0),a.Jc(1,"form",41),a.Jc(2,"mat-expansion-panel",42),a.Jc(3,"mat-expansion-panel-header"),a.Jc(4,"mat-panel-title"),a.Hc(5),a.Nc(6,_M),a.Gc(),a.Ic(),a.Ic(),a.zd(7,MM,6,1,"p",43),a.Jc(8,"div",44),a.Jc(9,"div",5),a.Jc(10,"div",45),a.Jc(11,"mat-checkbox",46),a.Wc("change",(function(e){return a.rd(i),a.ad().customArgsEnabledChanged(e)}))("ngModelChange",(function(e){return a.rd(i),a.ad().customArgsEnabled=e})),a.Hc(12),a.Nc(13,yM),a.Gc(),a.Ic(),a.Jc(14,"button",47),a.Wc("click",(function(){return a.rd(i),a.ad().openArgsModifierDialog()})),a.Jc(15,"mat-icon"),a.Bd(16,"edit"),a.Ic(),a.Ic(),a.Jc(17,"mat-form-field",48),a.Jc(18,"input",49),a.Pc(19,DM),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().customArgs=e})),a.Ic(),a.Jc(20,"mat-hint"),a.Hc(21),a.Nc(22,IM),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(23,"div",45),a.Jc(24,"mat-checkbox",46),a.Wc("change",(function(e){return a.rd(i),a.ad().customOutputEnabledChanged(e)}))("ngModelChange",(function(e){return a.rd(i),a.ad().customOutputEnabled=e})),a.Hc(25),a.Nc(26,OM),a.Gc(),a.Ic(),a.Jc(27,"mat-form-field",48),a.Jc(28,"input",49),a.Pc(29,RM),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().customOutput=e})),a.Ic(),a.Jc(30,"mat-hint"),a.Jc(31,"a",50),a.Hc(32),a.Nc(33,EM),a.Gc(),a.Ic(),a.Bd(34,". "),a.Hc(35),a.Nc(36,AM),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.zd(37,jM,7,8,"div",51),a.zd(38,WM,4,4,"div",51),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(7),a.gd("ngIf",n.simulatedOutput),a.pc(4),a.gd("disabled",n.current_download)("ngModel",n.customArgsEnabled)("ngModelOptions",a.id(15,mM)),a.pc(7),a.gd("ngModel",n.customArgs)("ngModelOptions",a.id(16,mM))("disabled",!n.customArgsEnabled),a.pc(6),a.gd("disabled",n.current_download)("ngModel",n.customOutputEnabled)("ngModelOptions",a.id(17,mM)),a.pc(4),a.gd("ngModel",n.customOutput)("ngModelOptions",a.id(18,mM))("disabled",!n.customOutputEnabled),a.pc(9),a.gd("ngIf",!n.youtubeAuthDisabledOverride),a.pc(1),a.gd("ngIf",!n.youtubeAuthDisabledOverride)}}function $M(e,t){1&e&&a.Ec(0,"mat-divider",2)}function KM(e,t){if(1&e){var i=a.Kc();a.Hc(0),a.Jc(1,"app-download-item",60),a.Wc("cancelDownload",(function(e){return a.rd(i),a.ad(3).cancelDownload(e)})),a.Ic(),a.zd(2,$M,1,0,"mat-divider",61),a.Gc()}if(2&e){var n=a.ad(),r=n.$implicit,o=n.index,s=a.ad(2);a.pc(1),a.gd("download",r)("queueNumber",o+1),a.pc(1),a.gd("ngIf",o!==s.downloads.length-1)}}function XM(e,t){if(1&e&&(a.Jc(0,"div",5),a.zd(1,KM,3,3,"ng-container",43),a.Ic()),2&e){var i=t.$implicit,n=a.ad(2);a.pc(1),a.gd("ngIf",n.current_download!==i&&i.downloading)}}function YM(e,t){if(1&e&&(a.Jc(0,"div",56),a.Jc(1,"mat-card",57),a.Jc(2,"div",58),a.zd(3,XM,2,1,"div",59),a.Ic(),a.Ic(),a.Ic()),2&e){var i=a.ad();a.pc(3),a.gd("ngForOf",i.downloads)}}function ZM(e,t){if(1&e&&(a.Jc(0,"div",67),a.Ec(1,"mat-progress-bar",68),a.Ec(2,"br"),a.Ic()),2&e){var i=a.ad(2);a.gd("ngClass",i.percentDownloaded-0>99?"make-room-for-spinner":"equal-sizes"),a.pc(1),a.hd("value",i.percentDownloaded)}}function QM(e,t){1&e&&(a.Jc(0,"div",69),a.Ec(1,"mat-spinner",32),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",25))}function eL(e,t){1&e&&a.Ec(0,"mat-progress-bar",70)}function tL(e,t){if(1&e&&(a.Jc(0,"div",62),a.Jc(1,"div",63),a.zd(2,ZM,3,2,"div",64),a.zd(3,QM,2,1,"div",65),a.zd(4,eL,1,0,"ng-template",null,66,a.Ad),a.Ic(),a.Ec(6,"br"),a.Ic()),2&e){var i=a.nd(5),n=a.ad();a.pc(2),a.gd("ngIf",n.current_download.percent_complete&&n.current_download.percent_complete>15)("ngIfElse",i),a.pc(1),a.gd("ngIf",n.percentDownloaded-0>99)}}function iL(e,t){}function nL(e,t){1&e&&a.Ec(0,"mat-progress-bar",82)}function aL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-grid-tile"),a.Jc(1,"app-file-card",79,80),a.Wc("removeFile",(function(e){return a.rd(i),a.ad(3).removeFromMp3(e)})),a.Ic(),a.zd(3,nL,1,0,"mat-progress-bar",81),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad(3);a.pc(1),a.gd("file",n)("title",n.title)("name",n.id)("uid",n.uid)("thumbnailURL",n.thumbnailURL)("length",n.duration)("isAudio",!0)("use_youtubedl_archive",r.use_youtubedl_archive),a.pc(2),a.gd("ngIf",r.downloading_content.audio[n.id])}}function rL(e,t){1&e&&a.Ec(0,"mat-progress-bar",82)}function oL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-grid-tile"),a.Jc(1,"app-file-card",84,80),a.Wc("removeFile",(function(){a.rd(i);var e=t.$implicit,n=t.index;return a.ad(4).removePlaylistMp3(e.id,n)})),a.Ic(),a.zd(3,rL,1,0,"mat-progress-bar",81),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad(4);a.pc(1),a.gd("title",n.name)("name",n.id)("thumbnailURL",r.playlist_thumbnails[n.id])("length",null)("isAudio",!0)("playlist",n)("count",n.fileNames.length)("use_youtubedl_archive",r.use_youtubedl_archive),a.pc(2),a.gd("ngIf",r.downloading_content.audio[n.id])}}function sL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-grid-list",83),a.Wc("resize",(function(e){return a.rd(i),a.ad(3).onResize(e)}),!1,a.qd),a.zd(1,oL,4,9,"mat-grid-tile",27),a.Ic()}if(2&e){var n=a.ad(3);a.gd("cols",n.files_cols),a.pc(1),a.gd("ngForOf",n.playlists.audio)}}function cL(e,t){1&e&&(a.Jc(0,"div"),a.Hc(1),a.Nc(2,VM),a.Gc(),a.Ic())}function lL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"mat-grid-list",74),a.Wc("resize",(function(e){return a.rd(i),a.ad(2).onResize(e)}),!1,a.qd),a.zd(2,aL,4,9,"mat-grid-tile",27),a.Ic(),a.Ec(3,"mat-divider"),a.Jc(4,"div",75),a.Jc(5,"h6"),a.Nc(6,JM),a.Ic(),a.Ic(),a.zd(7,sL,2,2,"mat-grid-list",76),a.Jc(8,"div",77),a.Jc(9,"button",78),a.Wc("click",(function(){return a.rd(i),a.ad(2).openCreatePlaylistDialog("audio")})),a.Jc(10,"mat-icon"),a.Bd(11,"add"),a.Ic(),a.Ic(),a.Ic(),a.zd(12,cL,3,0,"div",43),a.Ic()}if(2&e){var n=a.ad(2);a.pc(1),a.gd("cols",n.files_cols),a.pc(1),a.gd("ngForOf",n.mp3s),a.pc(5),a.gd("ngIf",n.playlists.audio.length>0),a.pc(5),a.gd("ngIf",0===n.playlists.audio.length)}}function uL(e,t){1&e&&a.Ec(0,"mat-progress-bar",82)}function dL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-grid-tile"),a.Jc(1,"app-file-card",79,85),a.Wc("removeFile",(function(e){return a.rd(i),a.ad(3).removeFromMp4(e)})),a.Ic(),a.zd(3,uL,1,0,"mat-progress-bar",81),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad(3);a.pc(1),a.gd("file",n)("title",n.title)("name",n.id)("uid",n.uid)("thumbnailURL",n.thumbnailURL)("length",n.duration)("isAudio",!1)("use_youtubedl_archive",r.use_youtubedl_archive),a.pc(2),a.gd("ngIf",r.downloading_content.video[n.id])}}function hL(e,t){1&e&&a.Ec(0,"mat-progress-bar",82)}function pL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-grid-tile"),a.Jc(1,"app-file-card",84,85),a.Wc("removeFile",(function(){a.rd(i);var e=t.$implicit,n=t.index;return a.ad(4).removePlaylistMp4(e.id,n)})),a.Ic(),a.zd(3,hL,1,0,"mat-progress-bar",81),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad(4);a.pc(1),a.gd("title",n.name)("name",n.id)("thumbnailURL",r.playlist_thumbnails[n.id])("length",null)("isAudio",!1)("playlist",n)("count",n.fileNames.length)("use_youtubedl_archive",r.use_youtubedl_archive),a.pc(2),a.gd("ngIf",r.downloading_content.video[n.id])}}function fL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-grid-list",83),a.Wc("resize",(function(e){return a.rd(i),a.ad(3).onResize(e)}),!1,a.qd),a.zd(1,pL,4,9,"mat-grid-tile",27),a.Ic()}if(2&e){var n=a.ad(3);a.gd("cols",n.files_cols),a.pc(1),a.gd("ngForOf",n.playlists.video)}}function mL(e,t){1&e&&(a.Jc(0,"div"),a.Hc(1),a.Nc(2,UM),a.Gc(),a.Ic())}function gL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"mat-grid-list",74),a.Wc("resize",(function(e){return a.rd(i),a.ad(2).onResize(e)}),!1,a.qd),a.zd(2,dL,4,9,"mat-grid-tile",27),a.Ic(),a.Ec(3,"mat-divider"),a.Jc(4,"div",75),a.Jc(5,"h6"),a.Nc(6,HM),a.Ic(),a.Ic(),a.zd(7,fL,2,2,"mat-grid-list",76),a.Jc(8,"div",77),a.Jc(9,"button",78),a.Wc("click",(function(){return a.rd(i),a.ad(2).openCreatePlaylistDialog("video")})),a.Jc(10,"mat-icon"),a.Bd(11,"add"),a.Ic(),a.Ic(),a.Ic(),a.zd(12,mL,3,0,"div",43),a.Ic()}if(2&e){var n=a.ad(2);a.pc(1),a.gd("cols",n.files_cols),a.pc(1),a.gd("ngForOf",n.mp4s),a.pc(5),a.gd("ngIf",n.playlists.video.length>0),a.pc(5),a.gd("ngIf",0===n.playlists.video.length)}}function vL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",71),a.Jc(1,"mat-accordion"),a.Jc(2,"mat-expansion-panel",72),a.Wc("opened",(function(){return a.rd(i),a.ad().accordionOpened("audio")}))("closed",(function(){return a.rd(i),a.ad().accordionClosed("audio")}))("mouseleave",(function(){return a.rd(i),a.ad().accordionLeft("audio")}))("mouseenter",(function(){return a.rd(i),a.ad().accordionEntered("audio")})),a.Jc(3,"mat-expansion-panel-header"),a.Jc(4,"mat-panel-title"),a.Hc(5),a.Nc(6,FM),a.Gc(),a.Ic(),a.Jc(7,"mat-panel-description"),a.Hc(8),a.Nc(9,NM),a.Gc(),a.Ic(),a.Ic(),a.zd(10,lL,13,4,"div",73),a.Ic(),a.Jc(11,"mat-expansion-panel",72),a.Wc("opened",(function(){return a.rd(i),a.ad().accordionOpened("video")}))("closed",(function(){return a.rd(i),a.ad().accordionClosed("video")}))("mouseleave",(function(){return a.rd(i),a.ad().accordionLeft("video")}))("mouseenter",(function(){return a.rd(i),a.ad().accordionEntered("video")})),a.Jc(12,"mat-expansion-panel-header"),a.Jc(13,"mat-panel-title"),a.Hc(14),a.Nc(15,zM),a.Gc(),a.Ic(),a.Jc(16,"mat-panel-description"),a.Hc(17),a.Nc(18,BM),a.Gc(),a.Ic(),a.Ic(),a.zd(19,gL,13,4,"div",73),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(),r=a.nd(38),o=a.nd(40);a.pc(10),a.gd("ngIf",n.mp3s.length>0)("ngIfElse",r),a.pc(9),a.gd("ngIf",n.mp4s.length>0)("ngIfElse",o)}}function bL(e,t){}function _L(e,t){}FM=$localize(_templateObject168()),NM=$localize(_templateObject169()),zM=$localize(_templateObject170()),BM=$localize(_templateObject171()),JM=$localize(_templateObject172()),VM=$localize(_templateObject173()),HM=$localize(_templateObject174()),UM=$localize(_templateObject175());var yL,kL=!1,wL=!1,CL=!1,xL=!1,SL=((yL=function(){function e(t,i,n,a,r,o,s){_classCallCheck(this,e),this.postsService=t,this.youtubeSearch=i,this.snackBar=n,this.router=a,this.dialog=r,this.platform=o,this.route=s,this.youtubeAuthDisabledOverride=!1,this.iOS=!1,this.determinateProgress=!1,this.downloadingfile=!1,this.multiDownloadMode=!1,this.customArgsEnabled=!1,this.customArgs=null,this.customOutputEnabled=!1,this.customOutput=null,this.youtubeAuthEnabled=!1,this.youtubeUsername=null,this.youtubePassword=null,this.urlError=!1,this.path="",this.url="",this.exists="",this.autoStartDownload=!1,this.fileManagerEnabled=!1,this.allowQualitySelect=!1,this.downloadOnlyMode=!1,this.allowMultiDownloadMode=!1,this.use_youtubedl_archive=!1,this.globalCustomArgs=null,this.allowAdvancedDownload=!1,this.useDefaultDownloadingAgent=!0,this.customDownloadingAgent=null,this.cachedAvailableFormats={},this.youtubeSearchEnabled=!1,this.youtubeAPIKey=null,this.results_loading=!1,this.results_showing=!0,this.results=[],this.mp3s=[],this.mp4s=[],this.files_cols=null,this.playlists={audio:[],video:[]},this.playlist_thumbnails={},this.downloading_content={audio:{},video:{}},this.downloads=[],this.current_download=null,this.urlForm=new Jo("",[Mr.required]),this.qualityOptions={video:[{resolution:null,value:"",label:"Max"},{resolution:"3840x2160",value:"2160",label:"2160p (4K)"},{resolution:"2560x1440",value:"1440",label:"1440p"},{resolution:"1920x1080",value:"1080",label:"1080p"},{resolution:"1280x720",value:"720",label:"720p"},{resolution:"720x480",value:"480",label:"480p"},{resolution:"480x360",value:"360",label:"360p"},{resolution:"360x240",value:"240",label:"240p"},{resolution:"256x144",value:"144",label:"144p"}],audio:[{kbitrate:null,value:"",label:"Max"},{kbitrate:"256",value:"256K",label:"256 Kbps"},{kbitrate:"160",value:"160K",label:"160 Kbps"},{kbitrate:"128",value:"128K",label:"128 Kbps"},{kbitrate:"96",value:"96K",label:"96 Kbps"},{kbitrate:"70",value:"70K",label:"70 Kbps"},{kbitrate:"50",value:"50K",label:"50 Kbps"},{kbitrate:"32",value:"32K",label:"32 Kbps"}]},this.selectedQuality="",this.formats_loading=!1,this.last_valid_url="",this.last_url_check=0,this.test_download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1,error:!1},this.simulatedOutput="",this.audioOnly=!1}return _createClass(e,[{key:"configLoad",value:function(){return zR(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadConfig();case 2:this.autoStartDownload&&this.downloadClicked(),setInterval((function(){return t.getSimulatedOutput()}),1e3);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"loadConfig",value:function(){return zR(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,i,n,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.fileManagerEnabled=this.postsService.config.Extra.file_manager_enabled,this.downloadOnlyMode=this.postsService.config.Extra.download_only_mode,this.allowMultiDownloadMode=this.postsService.config.Extra.allow_multi_download_mode,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.use_youtubedl_archive=this.postsService.config.Downloader.use_youtubedl_archive,this.globalCustomArgs=this.postsService.config.Downloader.custom_args,this.youtubeSearchEnabled=this.postsService.config.API&&this.postsService.config.API.use_youtube_API&&this.postsService.config.API.youtube_API_key,this.youtubeAPIKey=this.youtubeSearchEnabled?this.postsService.config.API.youtube_API_key:null,this.allowQualitySelect=this.postsService.config.Extra.allow_quality_select,this.allowAdvancedDownload=this.postsService.config.Advanced.allow_advanced_download&&(!this.postsService.isLoggedIn||this.postsService.permissions.includes("advanced_download")),this.useDefaultDownloadingAgent=this.postsService.config.Advanced.use_default_downloading_agent,this.customDownloadingAgent=this.postsService.config.Advanced.custom_downloading_agent,this.fileManagerEnabled&&(this.getMp3s(),this.getMp4s()),this.youtubeSearchEnabled&&this.youtubeAPIKey&&(this.youtubeSearch.initializeAPI(this.youtubeAPIKey),this.attachToInput()),this.allowAdvancedDownload&&(null!==localStorage.getItem("customArgsEnabled")&&(this.customArgsEnabled="true"===localStorage.getItem("customArgsEnabled")),null!==localStorage.getItem("customOutputEnabled")&&(this.customOutputEnabled="true"===localStorage.getItem("customOutputEnabled")),null!==localStorage.getItem("youtubeAuthEnabled")&&(this.youtubeAuthEnabled="true"===localStorage.getItem("youtubeAuthEnabled")),t=localStorage.getItem("customArgs"),i=localStorage.getItem("customOutput"),n=localStorage.getItem("youtubeUsername"),t&&"null"!==t&&(this.customArgs=t),i&&"null"!==i&&(this.customOutput=i),n&&"null"!==n&&(this.youtubeUsername=n)),e.abrupt("return",(setInterval((function(){a.current_download&&a.getCurrentDownload()}),500),!0));case 2:case"end":return e.stop()}}),e,this)})))}},{key:"ngOnInit",value:function(){var e=this;this.postsService.initialized?this.configLoad():this.postsService.service_initialized.subscribe((function(t){t&&e.configLoad()})),this.postsService.config_reloaded.subscribe((function(t){t&&e.loadConfig()})),this.iOS=this.platform.IOS,null!==localStorage.getItem("audioOnly")&&(this.audioOnly="true"===localStorage.getItem("audioOnly")),null!==localStorage.getItem("multiDownloadMode")&&(this.multiDownloadMode="true"===localStorage.getItem("multiDownloadMode")),this.route.snapshot.paramMap.get("url")&&(this.url=decodeURIComponent(this.route.snapshot.paramMap.get("url")),this.audioOnly="true"===this.route.snapshot.paramMap.get("audioOnly"),this.autoStartDownload=!0),this.setCols()}},{key:"getMp3s",value:function(){var e=this;this.postsService.getMp3s().subscribe((function(t){var i=t.mp3s,n=t.playlists;JSON.stringify(e.mp3s)!==JSON.stringify(i)&&(e.mp3s=i),e.playlists.audio=n;for(var a=0;a2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||o)if(!1===a&&this.downloadOnlyMode&&!this.iOS)if(n){var s=e[0].split(" ")[0]+e[1].split(" ")[0];this.downloadPlaylist(e,"audio",s)}else this.downloadAudioFile(decodeURI(e));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(n?["/player",{fileNames:e.join("|nvr|"),type:"audio"}]:["/player",{type:"audio",uid:t}]);this.removeDownloadFromCurrentDownloads(r),this.fileManagerEnabled&&(this.getMp3s(),setTimeout((function(){i.audioFileCards.forEach((function(e){e.onHoverResponse()}))}),200))}},{key:"downloadHelperMp4",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(this.downloadingfile=!1,!this.multiDownloadMode||this.downloadOnlyMode||o)if(!1===a&&this.downloadOnlyMode)if(n){var s=e[0].split(" ")[0]+e[1].split(" ")[0];this.downloadPlaylist(e,"video",s)}else this.downloadVideoFile(decodeURI(e));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(n?["/player",{fileNames:e.join("|nvr|"),type:"video"}]:["/player",{type:"video",uid:t}]);this.removeDownloadFromCurrentDownloads(r),this.fileManagerEnabled&&(this.getMp4s(),setTimeout((function(){i.videoFileCards.forEach((function(e){e.onHoverResponse()}))}),200))}},{key:"downloadClicked",value:function(){var e=this;if(this.ValidURL(this.url)){this.urlError=!1,this.path="";var t=this.customArgsEnabled?this.customArgs:null,i=this.customOutputEnabled?this.customOutput:null,n=this.youtubeAuthEnabled&&this.youtubeUsername?this.youtubeUsername:null,a=this.youtubeAuthEnabled&&this.youtubePassword?this.youtubePassword:null;if(this.allowAdvancedDownload&&(t&&localStorage.setItem("customArgs",t),i&&localStorage.setItem("customOutput",i),n&&localStorage.setItem("youtubeUsername",n)),this.audioOnly){var r={uid:Object(oM.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(r),this.current_download||this.multiDownloadMode||(this.current_download=r),this.downloadingfile=!0;var o=null;""!==this.selectedQuality&&(o=this.getSelectedAudioFormat()),this.postsService.makeMP3(this.url,""===this.selectedQuality?null:this.selectedQuality,o,t,i,n,a,r.uid).subscribe((function(t){r.downloading=!1,r.percent_complete=100;var i=!!t.file_names;e.path=i?t.file_names:t.audiopathEncoded,e.current_download=null,"-1"!==e.path&&e.downloadHelperMp3(e.path,t.uid,i,!1,r)}),(function(t){e.downloadingfile=!1,e.current_download=null,r.downloading=!1;var i=e.downloads.indexOf(r);-1!==i&&e.downloads.splice(i),e.openSnackBar("Download failed!","OK.")}))}else{var s={uid:Object(oM.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist"),error:!1};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;var c=this.getSelectedVideoFormat();this.postsService.makeMP4(this.url,""===this.selectedQuality?null:this.selectedQuality,c,t,i,n,a,s.uid).subscribe((function(t){s.downloading=!1,s.percent_complete=100;var i=!!t.file_names;e.path=i?t.file_names:t.videopathEncoded,e.current_download=null,"-1"!==e.path&&e.downloadHelperMp4(e.path,t.uid,i,!1,s)}),(function(t){e.downloadingfile=!1,e.current_download=null,s.downloading=!1;var i=e.downloads.indexOf(s);-1!==i&&e.downloads.splice(i),e.openSnackBar("Download failed!","OK.")}))}this.multiDownloadMode&&(this.url="",this.downloadingfile=!1)}else this.urlError=!0}},{key:"cancelDownload",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e?this.removeDownloadFromCurrentDownloads(e):(this.downloadingfile=!1,this.current_download.downloading=!1,this.current_download=null)}},{key:"getSelectedAudioFormat",value:function(){return""===this.selectedQuality?null:this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats?this.cachedAvailableFormats[this.url].formats.audio[this.selectedQuality].format_id:null}},{key:"getSelectedVideoFormat",value:function(){if(""===this.selectedQuality)return null;if(this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats){var e=this.cachedAvailableFormats[this.url].formats.video;if(e.best_audio_format&&""!==this.selectedQuality)return e[this.selectedQuality].format_id+"+"+e.best_audio_format}return null}},{key:"getDownloadByUID",value:function(e){var t=this.downloads.findIndex((function(t){return t.uid===e}));return-1!==t?this.downloads[t]:null}},{key:"removeDownloadFromCurrentDownloads",value:function(e){this.current_download===e&&(this.current_download=null);var t=this.downloads.indexOf(e);return-1!==t&&(this.downloads.splice(t,1),!0)}},{key:"downloadAudioFile",value:function(e){var t=this;this.downloading_content.audio[e]=!0,this.postsService.downloadFileFromServer(e,"audio").subscribe((function(i){t.downloading_content.audio[e]=!1;var n=i;Object(VR.saveAs)(n,decodeURIComponent(e)+".mp3"),t.fileManagerEnabled||t.postsService.deleteFile(e,!0).subscribe((function(e){t.getMp3s()}))}))}},{key:"downloadVideoFile",value:function(e){var t=this;this.downloading_content.video[e]=!0,this.postsService.downloadFileFromServer(e,"video").subscribe((function(i){t.downloading_content.video[e]=!1;var n=i;Object(VR.saveAs)(n,decodeURIComponent(e)+".mp4"),t.fileManagerEnabled||t.postsService.deleteFile(e,!1).subscribe((function(e){t.getMp4s()}))}))}},{key:"downloadPlaylist",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.postsService.downloadFileFromServer(e,t,n).subscribe((function(e){a&&(i.downloading_content[t][a]=!1);var r=e;Object(VR.saveAs)(r,n+".zip")}))}},{key:"clearInput",value:function(){this.url="",this.results_showing=!1}},{key:"onInputBlur",value:function(){this.results_showing=!1}},{key:"visitURL",value:function(e){window.open(e)}},{key:"useURL",value:function(e){this.results_showing=!1,this.url=e}},{key:"inputChanged",value:function(e){""!==e&&e?this.ValidURL(e)&&(this.results_showing=!1):this.results_showing=!1}},{key:"ValidURL",value:function(e){var t=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(e);return!!t&&(new RegExp(/(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'<> #]+)/),t&&Date.now()-this.last_url_check>1e3&&(e!==this.last_valid_url&&this.allowQualitySelect&&this.getURLInfo(e),this.last_valid_url=e),t)}},{key:"openSnackBar",value:function(e,t){this.snackBar.open(e,t,{duration:2e3})}},{key:"getURLInfo",value:function(e){var t=this;e.includes("playlist")||(this.cachedAvailableFormats[e]||(this.cachedAvailableFormats[e]={}),this.cachedAvailableFormats[e]&&this.cachedAvailableFormats[e].formats||(this.cachedAvailableFormats[e].formats_loading=!0,this.postsService.getFileInfo([e],"irrelevant",!0).subscribe((function(i){t.cachedAvailableFormats[e].formats_loading=!1;var n=i.result;if(n&&n.formats){var a=t.getAudioAndVideoFormats(n.formats);t.cachedAvailableFormats[e].formats={audio:a[0],video:a[1]}}else t.errorFormats(e)}),(function(i){t.errorFormats(e)}))))}},{key:"getSimulatedOutput",value:function(){var e,t,i=this.globalCustomArgs&&""!==this.globalCustomArgs,n=[],a=["youtube-dl",this.url];if(this.customArgsEnabled&&this.customArgs)return this.simulatedOutput=a.join(" ")+" "+this.customArgs.split(",,").join(" "),this.simulatedOutput;(e=n).push.apply(e,a);var r=this.audioOnly?this.audioFolderPath:this.videoFolderPath,o=this.audioOnly?".mp3":".mp4",s=["-o",r+"%(title)s"+o];if(this.customOutputEnabled&&this.customOutput&&(s=["-o",r+this.customOutput+o]),this.useDefaultDownloadingAgent||"aria2c"!==this.customDownloadingAgent||n.push("--external-downloader","aria2c"),(t=n).push.apply(t,_toConsumableArray(s)),this.audioOnly){var c,l=[],u=this.getSelectedAudioFormat();u?l.push("-f",u):this.selectedQuality&&l.push("--audio-quality",this.selectedQuality),(c=n).splice.apply(c,[2,0].concat(l)),n.push("-x","--audio-format","mp3","--write-info-json","--print-json")}else{var d,h=["-f","bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"],p=this.getSelectedVideoFormat();p?h=["-f",p]:this.selectedQuality&&(h=["bestvideo[height=".concat(this.selectedQuality,"]+bestaudio/best[height=").concat(this.selectedQuality,"]")]),(d=n).splice.apply(d,[2,0].concat(_toConsumableArray(h))),n.push("--write-info-json","--print-json")}return this.use_youtubedl_archive&&n.push("--download-archive","archive.txt"),i&&(n=n.concat(this.globalCustomArgs.split(",,"))),this.simulatedOutput=n.join(" "),this.simulatedOutput}},{key:"errorFormats",value:function(e){this.cachedAvailableFormats[e].formats_loading=!1,console.error("Could not load formats for url "+e)}},{key:"attachToInput",value:function(){var e=this;si.a.fromEvent(this.urlInput.nativeElement,"keyup").map((function(e){return e.target.value})).filter((function(e){return e.length>1})).debounceTime(250).do((function(){return e.results_loading=!0})).map((function(t){return e.youtubeSearch.search(t)})).switch().subscribe((function(t){e.results_loading=!1,""!==e.url&&t&&t.length>0?(e.results=t,e.results_showing=!0):e.results_showing=!1}),(function(t){console.log(t),e.results_loading=!1,e.results_showing=!1}),(function(){e.results_loading=!1}))}},{key:"onResize",value:function(e){this.setCols()}},{key:"videoModeChanged",value:function(e){this.selectedQuality="",localStorage.setItem("audioOnly",e.checked.toString())}},{key:"multiDownloadModeChanged",value:function(e){localStorage.setItem("multiDownloadMode",e.checked.toString())}},{key:"customArgsEnabledChanged",value:function(e){localStorage.setItem("customArgsEnabled",e.checked.toString()),!0===e.checked&&this.customOutputEnabled&&(this.customOutputEnabled=!1,localStorage.setItem("customOutputEnabled","false"),this.youtubeAuthEnabled=!1,localStorage.setItem("youtubeAuthEnabled","false"))}},{key:"customOutputEnabledChanged",value:function(e){localStorage.setItem("customOutputEnabled",e.checked.toString()),!0===e.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}},{key:"youtubeAuthEnabledChanged",value:function(e){localStorage.setItem("youtubeAuthEnabled",e.checked.toString()),!0===e.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}},{key:"getAudioAndVideoFormats",value:function(e){for(var t={},i={},n=0;ni&&(t=r.format_id,i=r.bitrate)}return t}},{key:"accordionEntered",value:function(e){"audio"===e?(kL=!0,this.audioFileCards.forEach((function(e){e.onHoverResponse()}))):"video"===e&&(wL=!0,this.videoFileCards.forEach((function(e){e.onHoverResponse()})))}},{key:"accordionLeft",value:function(e){"audio"===e?kL=!1:"video"===e&&(wL=!1)}},{key:"accordionOpened",value:function(e){"audio"===e?CL=!0:"video"===e&&(xL=!0)}},{key:"accordionClosed",value:function(e){"audio"===e?CL=!1:"video"===e&&(xL=!1)}},{key:"openCreatePlaylistDialog",value:function(e){var t=this;this.dialog.open(rM,{data:{filesToSelectFrom:"audio"===e?this.mp3s:this.mp4s,type:e}}).afterClosed().subscribe((function(i){i?("audio"===e&&t.getMp3s(),"video"===e&&t.getMp4s(),t.openSnackBar("Successfully created playlist!","")):!1===i&&t.openSnackBar("ERROR: failed to create playlist!","")}))}},{key:"openArgsModifierDialog",value:function(){var e=this;this.dialog.open(QD,{data:{initial_args:this.customArgs}}).afterClosed().subscribe((function(t){null!=t&&(e.customArgs=t)}))}},{key:"getCurrentDownload",value:function(){var e=this;if(this.current_download){var t=this.current_download.ui_uid?this.current_download.ui_uid:this.current_download.uid;this.postsService.getCurrentDownload(this.postsService.session_id,t).subscribe((function(i){i.download&&t===i.download.ui_uid&&(e.current_download=i.download,e.percentDownloaded=e.current_download.percent_complete)}))}}}]),e}()).\u0275fac=function(e){return new(e||yL)(a.Dc(YO),a.Dc(UR),a.Dc(A_),a.Dc(bO),a.Dc(Th),a.Dc(Ii),a.Dc(cI))},yL.\u0275cmp=a.xc({type:yL,selectors:[["app-root"]],viewQuery:function(e,t){var i;1&e&&(a.Fd(sM,!0,a.r),a.Fd(cM,!0),a.Fd(lM,!0)),2&e&&(a.md(i=a.Xc())&&(t.urlInput=i.first),a.md(i=a.Xc())&&(t.audioFileCards=i),a.md(i=a.Xc())&&(t.videoFileCards=i))},decls:41,vars:16,consts:[[1,"big","demo-basic"],["id","card",2,"margin-right","20px","margin-left","20px",3,"ngClass"],[2,"position","relative"],[1,"example-form"],[1,"container-fluid"],[1,"row"],[1,"col-12",3,"ngClass"],["color","accent",1,"example-full-width"],["matInput","","type","url","name","url",2,"padding-right","25px",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["urlinput",""],["type","button","mat-icon-button","",1,"input-clear-button",3,"click"],["class","col-7 col-sm-3",4,"ngIf"],["class","results-div",4,"ngIf"],[2,"float","left","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["style","float: right; margin-top: -12px",3,"disabled","ngModel","change","ngModelChange",4,"ngIf"],["type","submit","mat-stroked-button","","color","accent",2,"margin-left","8px","margin-bottom","8px",3,"disabled","click"],["style","float: right","mat-stroked-button","","color","warn",3,"click",4,"ngIf"],["class","big demo-basic",4,"ngIf"],["style","margin-top: 15px;","class","big demo-basic",4,"ngIf"],["class","centered big","id","bar_div",4,"ngIf","ngIfElse"],["nofile",""],["style","margin: 20px",4,"ngIf"],["nomp3s",""],["nomp4s",""],[1,"col-7","col-sm-3"],["color","accent",2,"display","inline-block","width","inherit","min-width","120px"],[3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["class","spinner-div",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value"],[1,"spinner-div"],[3,"diameter"],[1,"results-div"],[1,"result-card","mat-elevation-z7",3,"ngClass"],[1,"search-card-title"],[2,"font-size","12px","margin-bottom","10px"],["mat-flat-button","","color","primary",2,"float","left",3,"click"],["mat-stroked-button","","color","primary",2,"float","right",3,"click"],[2,"float","right","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["mat-stroked-button","","color","warn",2,"float","right",3,"click"],[2,"margin-left","20px","margin-right","20px"],[1,"big","no-border-radius-top"],[4,"ngIf"],[1,"container",2,"padding-bottom","20px"],[1,"col-12","col-sm-6"],["color","accent",2,"z-index","999",3,"disabled","ngModel","ngModelOptions","change","ngModelChange"],["mat-icon-button","",1,"edit-button",3,"click"],["color","accent",1,"advanced-input",2,"margin-bottom","42px"],["matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["class","col-12 col-sm-6 mt-2",4,"ngIf"],[1,"col-12","col-sm-6","mt-2"],["color","accent",1,"advanced-input"],["color","accent",1,"advanced-input",2,"margin-top","31px"],["type","password","matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],[1,"big","demo-basic",2,"margin-top","15px"],["id","card",2,"margin-right","20px","margin-left","20px"],[1,"container"],["class","row",4,"ngFor","ngForOf"],[2,"width","100%",3,"download","queueNumber","cancelDownload"],["style","position: relative",4,"ngIf"],["id","bar_div",1,"centered","big"],[1,"margined"],["style","display: inline-block; width: 100%; padding-left: 20px",3,"ngClass",4,"ngIf","ngIfElse"],["class","spinner",4,"ngIf"],["indeterminateprogress",""],[2,"display","inline-block","width","100%","padding-left","20px",3,"ngClass"],["mode","determinate",2,"border-radius","5px",3,"value"],[1,"spinner"],["mode","indeterminate",2,"border-radius","5px"],[2,"margin","20px"],[1,"big",3,"opened","closed","mouseleave","mouseenter"],[4,"ngIf","ngIfElse"],["rowHeight","150px",2,"margin-bottom","15px",3,"cols","resize"],[2,"width","100%","text-align","center","margin-top","10px"],["rowHeight","150px",3,"cols","resize",4,"ngIf"],[1,"add-playlist-button"],["mat-fab","",3,"click"],[3,"file","title","name","uid","thumbnailURL","length","isAudio","use_youtubedl_archive","removeFile"],["audiofilecard",""],["class","download-progress-bar","mode","indeterminate",4,"ngIf"],["mode","indeterminate",1,"download-progress-bar"],["rowHeight","150px",3,"cols","resize"],[3,"title","name","thumbnailURL","length","isAudio","playlist","count","use_youtubedl_archive","removeFile"],["videofilecard",""]],template:function(e,t){if(1&e&&(a.Ec(0,"br"),a.Jc(1,"div",0),a.Jc(2,"mat-card",1),a.Jc(3,"mat-card-title"),a.Hc(4),a.Nc(5,eM),a.Gc(),a.Ic(),a.Jc(6,"mat-card-content"),a.Jc(7,"div",2),a.Jc(8,"form",3),a.Jc(9,"div",4),a.Jc(10,"div",5),a.Jc(11,"div",6),a.Jc(12,"mat-form-field",7),a.Jc(13,"input",8,9),a.Wc("keyup.enter",(function(){return t.downloadClicked()}))("ngModelChange",(function(e){return t.inputChanged(e)}))("ngModelChange",(function(e){return t.url=e})),a.Ic(),a.Ic(),a.Jc(15,"button",10),a.Wc("click",(function(){return t.clearInput()})),a.Jc(16,"mat-icon"),a.Bd(17,"clear"),a.Ic(),a.Ic(),a.Ic(),a.zd(18,gM,8,5,"div",11),a.Ic(),a.Ic(),a.zd(19,CM,2,1,"div",12),a.Ic(),a.Ec(20,"br"),a.Jc(21,"mat-checkbox",13),a.Wc("change",(function(e){return t.videoModeChanged(e)}))("ngModelChange",(function(e){return t.audioOnly=e})),a.Hc(22),a.Nc(23,tM),a.Gc(),a.Ic(),a.zd(24,xM,3,2,"mat-checkbox",14),a.Ic(),a.Ic(),a.Jc(25,"mat-card-actions"),a.Jc(26,"button",15),a.Wc("click",(function(){return t.downloadClicked()})),a.Hc(27),a.Nc(28,iM),a.Gc(),a.Ic(),a.zd(29,SM,3,0,"button",16),a.Ic(),a.Ic(),a.Ic(),a.zd(30,qM,39,19,"div",17),a.zd(31,YM,4,1,"div",18),a.Ec(32,"br"),a.zd(33,tL,7,3,"div",19),a.zd(34,iL,0,0,"ng-template",null,20,a.Ad),a.zd(36,vL,20,4,"div",21),a.zd(37,bL,0,0,"ng-template",null,22,a.Ad),a.zd(39,_L,0,0,"ng-template",null,23,a.Ad)),2&e){var i=a.nd(35);a.pc(2),a.gd("ngClass",t.allowAdvancedDownload?"no-border-radius-bottom":null),a.pc(9),a.gd("ngClass",t.allowQualitySelect?"col-sm-9":null),a.pc(2),a.gd("ngModel",t.url)("placeholder","URL"+(t.youtubeSearchEnabled?" or search":"")),a.pc(5),a.gd("ngIf",t.allowQualitySelect),a.pc(1),a.gd("ngIf",t.results_showing),a.pc(2),a.gd("disabled",t.current_download)("ngModel",t.audioOnly),a.pc(3),a.gd("ngIf",t.allowMultiDownloadMode),a.pc(2),a.gd("disabled",t.downloadingfile),a.pc(3),a.gd("ngIf",!!t.current_download),a.pc(1),a.gd("ngIf",t.allowAdvancedDownload),a.pc(1),a.gd("ngIf",t.multiDownloadMode&&t.downloads.length>0&&!t.current_download),a.pc(2),a.gd("ngIf",t.current_download&&t.current_download.downloading)("ngIfElse",i),a.pc(3),a.gd("ngIf",t.fileManagerEnabled&&(!t.postsService.isLoggedIn||t.postsService.permissions.includes("filemanager")))}},styles:[".demo-card[_ngcontent-%COMP%]{margin:16px}.demo-basic[_ngcontent-%COMP%]{padding:0}.demo-basic[_ngcontent-%COMP%] .mat-card-content[_ngcontent-%COMP%]{padding:16px}mat-toolbar.top[_ngcontent-%COMP%]{height:60px;width:100%;text-align:center}.big[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.example-full-width[_ngcontent-%COMP%]{width:100%}.example-80-width[_ngcontent-%COMP%]{width:80%}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:24px}.spinner[_ngcontent-%COMP%]{position:absolute;display:inline-block;margin-left:-28px;margin-top:-10px}.make-room-for-spinner[_ngcontent-%COMP%]{padding-right:40px}.equal-sizes[_ngcontent-%COMP%]{padding-right:20px}.search-card-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.input-clear-button[_ngcontent-%COMP%]{position:absolute;right:5px;top:22px}.spinner-div[_ngcontent-%COMP%]{display:inline-block;position:absolute;top:15px;right:-40px}.margined[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.results-div[_ngcontent-%COMP%]{position:relative;top:-15px}.first-result-card[_ngcontent-%COMP%]{border-radius:4px 4px 0 0!important}.last-result-card[_ngcontent-%COMP%]{border-radius:0 0 4px 4px!important}.only-result-card[_ngcontent-%COMP%]{border-radius:4px!important}.result-card[_ngcontent-%COMP%]{height:120px;border-radius:0;padding-bottom:5px}.download-progress-bar[_ngcontent-%COMP%]{z-index:999;position:absolute;bottom:0;width:150px;border-radius:0 0 4px 4px;overflow:hidden;bottom:12px}.add-playlist-button[_ngcontent-%COMP%]{float:right}.advanced-input[_ngcontent-%COMP%]{width:100%}.edit-button[_ngcontent-%COMP%]{margin-left:10px;top:-5px}.no-border-radius-bottom[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.no-border-radius-top[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}@media (max-width:576px){.download-progress-bar[_ngcontent-%COMP%]{width:125px}}"]}),yL);si.a.merge=al.a;var IL,OL,DL,EL,AL,TL,PL,RL=i("zuWl"),ML=i.n(RL);IL=$localize(_templateObject176()),OL=$localize(_templateObject177()),DL=$localize(_templateObject178()),EL=$localize(_templateObject179()),AL=$localize(_templateObject180()),TL=$localize(_templateObject181()),PL=$localize(_templateObject182());var LL,jL,FL=((LL=function(){function e(t){_classCallCheck(this,e),this.data=t}return _createClass(e,[{key:"ngOnInit",value:function(){this.filesize=ML.a,this.data&&(this.file=this.data.file)}}]),e}()).\u0275fac=function(e){return new(e||LL)(a.Dc(Oh))},LL.\u0275cmp=a.xc({type:LL,selectors:[["app-video-info-dialog"]],decls:56,vars:8,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-label"],[1,"info-item-value"],["target","_blank",3,"href"],["mat-button","","mat-dialog-close",""]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Bd(1),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div",1),a.Jc(4,"div",2),a.Jc(5,"strong"),a.Hc(6),a.Nc(7,IL),a.Gc(),a.Bd(8,"\xa0"),a.Ic(),a.Ic(),a.Jc(9,"div",3),a.Bd(10),a.Ic(),a.Ic(),a.Jc(11,"div",1),a.Jc(12,"div",2),a.Jc(13,"strong"),a.Hc(14),a.Nc(15,OL),a.Gc(),a.Bd(16,"\xa0"),a.Ic(),a.Ic(),a.Jc(17,"div",3),a.Jc(18,"a",4),a.Bd(19),a.Ic(),a.Ic(),a.Ic(),a.Jc(20,"div",1),a.Jc(21,"div",2),a.Jc(22,"strong"),a.Hc(23),a.Nc(24,DL),a.Gc(),a.Bd(25,"\xa0"),a.Ic(),a.Ic(),a.Jc(26,"div",3),a.Bd(27),a.Ic(),a.Ic(),a.Jc(28,"div",1),a.Jc(29,"div",2),a.Jc(30,"strong"),a.Hc(31),a.Nc(32,EL),a.Gc(),a.Bd(33,"\xa0"),a.Ic(),a.Ic(),a.Jc(34,"div",3),a.Bd(35),a.Ic(),a.Ic(),a.Jc(36,"div",1),a.Jc(37,"div",2),a.Jc(38,"strong"),a.Hc(39),a.Nc(40,AL),a.Gc(),a.Bd(41,"\xa0"),a.Ic(),a.Ic(),a.Jc(42,"div",3),a.Bd(43),a.Ic(),a.Ic(),a.Jc(44,"div",1),a.Jc(45,"div",2),a.Jc(46,"strong"),a.Hc(47),a.Nc(48,TL),a.Gc(),a.Bd(49,"\xa0"),a.Ic(),a.Ic(),a.Jc(50,"div",3),a.Bd(51),a.Ic(),a.Ic(),a.Ic(),a.Jc(52,"mat-dialog-actions"),a.Jc(53,"button",5),a.Hc(54),a.Nc(55,PL),a.Gc(),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.Cd(t.file.title),a.pc(9),a.Cd(t.file.title),a.pc(8),a.gd("href",t.file.url,a.td),a.pc(1),a.Cd(t.file.url),a.pc(8),a.Cd(t.file.uploader?t.file.uploader:"N/A"),a.pc(8),a.Cd(t.file.size?t.filesize(t.file.size):"N/A"),a.pc(8),a.Cd(t.file.path?t.file.path:"N/A"),a.pc(8),a.Cd(t.file.upload_date?t.file.upload_date:"N/A"))},directives:[Mh,Lh,jh,Za,Rh],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px;width:100%}.info-item-value[_ngcontent-%COMP%]{font-size:13px;display:inline-block;width:70%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.info-item-label[_ngcontent-%COMP%]{display:inline-block;width:30%;vertical-align:top}.a-wrap[_ngcontent-%COMP%]{word-wrap:break-word}"]}),LL);jL=$localize(_templateObject183());var NL=["placeholder",$localize(_templateObject184())];function zL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-button-toggle",11),a.Jc(1,"div"),a.Jc(2,"div",12),a.Bd(3),a.Ic(),a.Jc(4,"button",13),a.Wc("click",(function(){a.rd(i);var e=t.index;return a.ad().removeContent(e)})),a.Jc(5,"mat-icon"),a.Bd(6,"cancel"),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit;a.gd("checked",!1),a.pc(3),a.Cd(n)}}function BL(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",14),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad().addContent(e)})),a.Bd(1),a.Ic()}if(2&e){var n=t.$implicit;a.pc(1),a.Cd(n)}}var JL,VL=((JL=function(){function e(t,i,n){_classCallCheck(this,e),this.data=t,this.postsService=i,this.dialogRef=n,this.original_playlist=null,this.playlist=null,this.available_files=[],this.all_files=[],this.playlist_updated=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.data&&(this.playlist=JSON.parse(JSON.stringify(this.data.playlist)),this.original_playlist=JSON.parse(JSON.stringify(this.data.playlist)),this.getFiles())}},{key:"getFiles",value:function(){var e=this;"audio"===this.playlist.type?this.postsService.getMp3s().subscribe((function(t){e.processFiles(t.mp3s)})):this.postsService.getMp4s().subscribe((function(t){e.processFiles(t.mp4s)}))}},{key:"processFiles",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&(this.all_files=t.map((function(e){return e.id}))),this.available_files=this.all_files.filter((function(t){return!e.playlist.fileNames.includes(t)}))}},{key:"updatePlaylist",value:function(){var e=this;this.postsService.updatePlaylist(this.playlist).subscribe((function(t){e.playlist_updated=!0,e.postsService.openSnackBar("Playlist updated successfully."),e.getPlaylist()}))}},{key:"playlistChanged",value:function(){return JSON.stringify(this.playlist)===JSON.stringify(this.original_playlist)}},{key:"getPlaylist",value:function(){var e=this;this.postsService.getPlaylist(this.playlist.id,this.playlist.type,null).subscribe((function(t){t.playlist&&(e.playlist=t.playlist,e.original_playlist=JSON.parse(JSON.stringify(e.playlist)))}))}},{key:"addContent",value:function(e){this.playlist.fileNames.push(e),this.processFiles()}},{key:"removeContent",value:function(e){this.playlist.fileNames.splice(e,1),this.processFiles()}},{key:"drop",value:function(e){BC(this.playlist.fileNames,e.previousIndex,e.currentIndex)}}]),e}()).\u0275fac=function(e){return new(e||JL)(a.Dc(Oh),a.Dc(YO),a.Dc(Ih))},JL.\u0275cmp=a.xc({type:JL,selectors:[["app-modify-playlist"]],decls:20,vars:7,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["cdkDropList","","vertical","","name","videoSelect","aria-label","Video Select",1,"media-list",2,"width","80%","left","9%",3,"cdkDropListDropped"],["group","matButtonToggleGroup"],["class","media-box","cdkDrag","",3,"checked",4,"ngFor","ngForOf"],[1,"add-content-button"],["mat-stroked-button","",3,"disabled","matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-raised-button","","color","accent",3,"disabled","click"],["cdkDrag","",1,"media-box",3,"checked"],[1,"playlist-item-text"],["mat-icon-button","",1,"remove-item-button",3,"click"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(a.Jc(0,"h4",0),a.Hc(1),a.Nc(2,jL),a.Gc(),a.Ic(),a.Jc(3,"mat-dialog-content"),a.Jc(4,"div"),a.Jc(5,"mat-form-field",1),a.Jc(6,"input",2),a.Pc(7,NL),a.Wc("ngModelChange",(function(e){return t.playlist.name=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(8,"mat-button-toggle-group",3,4),a.Wc("cdkDropListDropped",(function(e){return t.drop(e)})),a.zd(10,zL,7,2,"mat-button-toggle",5),a.Ic(),a.Jc(11,"div",6),a.Jc(12,"button",7),a.Bd(13,"Add more content"),a.Ic(),a.Ic(),a.Jc(14,"mat-menu",null,8),a.zd(16,BL,2,1,"button",9),a.Ic(),a.Ic(),a.Jc(17,"mat-dialog-actions"),a.Jc(18,"button",10),a.Wc("click",(function(){return t.updatePlaylist()})),a.Bd(19,"Save"),a.Ic(),a.Ic()),2&e){var i=a.nd(15);a.pc(6),a.gd("ngModel",t.playlist.name),a.pc(4),a.gd("ngForOf",t.playlist.fileNames),a.pc(2),a.gd("disabled",0===t.available_files.length)("matMenuTriggerFor",i),a.pc(4),a.gd("ngForOf",t.available_files),a.pc(2),a.gd("disabled",!t.playlistChanged())("disabled",t.playlistChanged())}},directives:[Mh,Lh,Ud,Pm,_r,Dr,es,vc,xx,yt.s,Za,zg,Lg,jh,_c,fx,_m,Eg],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.media-box[_ngcontent-%COMP%]:last-child{border:none}.media-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .media-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.add-content-button[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:10px}.remove-item-button[_ngcontent-%COMP%]{right:10px;position:absolute;top:4px}.playlist-item-text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%;margin:0 auto}"]}),JL),HL=new si.a(Ht.a);function UL(e,t){e.className=e.className.replace(t,"")}function GL(e,t){e.className.includes(t)||(e.className+=" ".concat(t))}function WL(){return"undefined"!=typeof window?window.navigator:void 0}function qL(e){return Boolean(e.parentElement&&"picture"===e.parentElement.nodeName.toLowerCase())}function $L(e){return"img"===e.nodeName.toLowerCase()}function KL(e,t,i){return $L(e)?i&&"srcset"in e?e.srcset=t:e.src=t:e.style.backgroundImage="url('".concat(t,"')"),e}function XL(e){return function(t){for(var i=t.parentElement.getElementsByTagName("source"),n=0;n1&&void 0!==arguments[1]?arguments[1]:_j;return e.customObservable?e.customObservable:t(e)}}),kj=Object.assign({},aj,{isVisible:function(){return!0},getObservable:function(){return Bt("load")},loadImage:function(e){return[e.imagePath]}}),wj=((cj=function(){function e(t,i,n,r){_classCallCheck(this,e),this.onStateChange=new a.u,this.onLoad=new a.u,this.elementRef=t,this.ngZone=i,this.propertyChanges$=new $l,this.platformId=n,this.hooks=function(e,t){var i=yj,n=t&&t.isBot?t.isBot:i.isBot;if(n(WL(),e))return Object.assign(kj,{isBot:n});if(!t)return i;var a={};return Object.assign(a,t.preset?t.preset:i),Object.keys(t).filter((function(e){return"preset"!==e})).forEach((function(e){a[e]=t[e]})),a}(n,r)}return _createClass(e,[{key:"ngOnChanges",value:function(){!0!==this.debug||this.debugSubscription||(this.debugSubscription=this.onStateChange.subscribe((function(e){return console.log(e)}))),this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode,onStateChange:this.onStateChange})}},{key:"ngAfterContentInit",value:function(){var e=this;if(Object(yt.J)(this.platformId)&&!this.hooks.isBot(WL(),this.platformId))return null;this.ngZone.runOutsideAngular((function(){e.loadSubscription=e.propertyChanges$.pipe(Gt((function(e){return e.onStateChange.emit({reason:"setup"})})),Gt((function(t){return e.hooks.setup(t)})),Tl((function(t){return t.imagePath?e.hooks.getObservable(t).pipe(function(e,t){return function(i){return i.pipe(Gt((function(e){return t.onStateChange.emit({reason:"observer-emit",data:e})})),ii((function(i){return e.isVisible({element:t.element,event:i,offset:t.offset,scrollContainer:t.scrollContainer})})),ui(1),Gt((function(){return t.onStateChange.emit({reason:"start-loading"})})),Object(rf.a)((function(){return e.loadImage(t)})),Gt((function(){return t.onStateChange.emit({reason:"mount-image"})})),Gt((function(i){return e.setLoadedImage({element:t.element,imagePath:i,useSrcset:t.useSrcset})})),Gt((function(){return t.onStateChange.emit({reason:"loading-succeeded"})})),Object(ri.a)((function(){return!0})),Yp((function(i){return t.onStateChange.emit({reason:"loading-failed",data:i}),e.setErrorImage(t),Bt(!1)})),Gt((function(){t.onStateChange.emit({reason:"finally"}),e.finally(t)})))}}(e.hooks,t)):HL}))).subscribe((function(t){return e.onLoad.emit(t)}))}))}},{key:"ngOnDestroy",value:function(){var e,t;null===(e=this.loadSubscription)||void 0===e||e.unsubscribe(),null===(t=this.debugSubscription)||void 0===t||t.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||cj)(a.Dc(a.r),a.Dc(a.I),a.Dc(a.M),a.Dc("options",8))},cj.\u0275dir=a.yc({type:cj,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode",debug:"debug"},outputs:{onStateChange:"onStateChange",onLoad:"onLoad"},features:[a.nc]}),cj),Cj=((uj=lj=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(e){return{ngModule:lj,providers:[{provide:"options",useValue:e}]}}}]),e}()).\u0275mod=a.Bc({type:uj}),uj.\u0275inj=a.Ac({factory:function(e){return new(e||uj)}}),uj);function xj(e,t){if(1&e&&(a.Jc(0,"div"),a.Hc(1),a.Nc(2,gj),a.Gc(),a.Bd(3),a.Ic()),2&e){var i=a.ad();a.pc(3),a.Dd("\xa0",i.count,"")}}function Sj(e,t){1&e&&a.Ec(0,"span")}function Ij(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",12),a.Jc(1,"img",13),a.Wc("error",(function(e){return a.rd(i),a.ad().onImgError(e)}))("onLoad",(function(e){return a.rd(i),a.ad().imageLoaded(e)})),a.Ic(),a.zd(2,Sj,1,0,"span",5),a.Ic()}if(2&e){var n=a.ad();a.pc(1),a.gd("id",n.type)("lazyLoad",n.thumbnailURL)("customObservable",n.scrollAndLoad),a.pc(1),a.gd("ngIf",!n.image_loaded)}}function Oj(e,t){if(1&e&&(a.Jc(0,"button",14),a.Jc(1,"mat-icon"),a.Bd(2,"more_vert"),a.Ic(),a.Ic()),2&e){a.ad();var i=a.nd(15);a.gd("matMenuTriggerFor",i)}}function Dj(e,t){if(1&e&&(a.Jc(0,"button",14),a.Jc(1,"mat-icon"),a.Bd(2,"more_vert"),a.Ic(),a.Ic()),2&e){a.ad();var i=a.nd(28);a.gd("matMenuTriggerFor",i)}}function Ej(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",9),a.Wc("click",(function(){return a.rd(i),a.ad().deleteFile(!0)})),a.Jc(1,"mat-icon"),a.Bd(2,"delete_forever"),a.Ic(),a.Hc(3),a.Nc(4,vj),a.Gc(),a.Ic()}}dj=$localize(_templateObject185()),hj=$localize(_templateObject186()),pj=$localize(_templateObject187()),fj=$localize(_templateObject188()),mj=$localize(_templateObject189()),gj=$localize(_templateObject190()),vj=$localize(_templateObject191());var Aj,Tj=((Aj=function(){function e(t,i,n,r){_classCallCheck(this,e),this.postsService=t,this.snackBar=i,this.mainComponent=n,this.dialog=r,this.isAudio=!0,this.removeFile=new a.u,this.playlist=null,this.count=null,this.use_youtubedl_archive=!1,this.image_loaded=!1,this.image_errored=!1,this.scrollSubject=new Lt.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}return _createClass(e,[{key:"ngOnInit",value:function(){if(this.type=this.isAudio?"audio":"video",this.file&&this.file.url&&this.file.url.includes("youtu")){var e=this.playlist?6:3,t=this.file.url.indexOf(this.playlist?"?list=":"?v=")+e;this.name=this.file.url.substring(t,this.file.url.length)}}},{key:"deleteFile",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.playlist?this.removeFile.emit(this.name):this.postsService.deleteFile(this.uid,this.isAudio,t).subscribe((function(t){t?(e.openSnackBar("Delete success!","OK."),e.removeFile.emit(e.name)):e.openSnackBar("Delete failed!","OK.")}),(function(t){e.openSnackBar("Delete failed!","OK.")}))}},{key:"openVideoInfoDialog",value:function(){this.dialog.open(FL,{data:{file:this.file},minWidth:"50vw"})}},{key:"editPlaylistDialog",value:function(){var e=this,t=this.dialog.open(VL,{data:{playlist:this.playlist,width:"65vw"}});t.afterClosed().subscribe((function(i){t.componentInstance.playlist_updated&&(e.playlist=t.componentInstance.original_playlist,e.title=e.playlist.name,e.count=e.playlist.fileNames.length)}))}},{key:"onImgError",value:function(e){this.image_errored=!0}},{key:"onHoverResponse",value:function(){this.scrollSubject.next()}},{key:"imageLoaded",value:function(e){this.image_loaded=!0}},{key:"openSnackBar",value:function(e,t){this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||Aj)(a.Dc(YO),a.Dc(A_),a.Dc(SL),a.Dc(Th))},Aj.\u0275cmp=a.xc({type:Aj,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",uid:"uid",thumbnailURL:"thumbnailURL",isAudio:"isAudio",playlist:"playlist",count:"count",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{removeFile:"removeFile"},decls:40,vars:7,consts:[[1,"example-card","mat-elevation-z6"],[2,"padding","5px"],[2,"height","52px"],["href","javascript:void(0)",1,"file-link",3,"click"],[1,"max-two-lines"],[4,"ngIf"],["class","img-div",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["playlist_menu","matMenu"],["mat-menu-item","",3,"click"],["action_menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"id","lazyLoad","customObservable","error","onLoad"],["mat-icon-button","",1,"deleteButton",3,"matMenuTriggerFor"]],template:function(e,t){1&e&&(a.Jc(0,"mat-card",0),a.Jc(1,"div",1),a.Jc(2,"div",2),a.Jc(3,"div"),a.Jc(4,"b"),a.Jc(5,"a",3),a.Wc("click",(function(){return t.playlist?t.mainComponent.goToPlaylist(t.name,t.type):t.mainComponent.goToFile(t.name,t.isAudio,t.uid)})),a.Bd(6),a.Ic(),a.Ic(),a.Ic(),a.Jc(7,"span",4),a.Hc(8),a.Nc(9,dj),a.Gc(),a.Bd(10),a.Ic(),a.zd(11,xj,4,1,"div",5),a.Ic(),a.zd(12,Ij,3,4,"div",6),a.Ic(),a.zd(13,Oj,3,1,"button",7),a.Jc(14,"mat-menu",null,8),a.Jc(16,"button",9),a.Wc("click",(function(){return t.editPlaylistDialog()})),a.Jc(17,"mat-icon"),a.Bd(18,"edit"),a.Ic(),a.Hc(19),a.Nc(20,hj),a.Gc(),a.Ic(),a.Jc(21,"button",9),a.Wc("click",(function(){return t.deleteFile()})),a.Jc(22,"mat-icon"),a.Bd(23,"delete_forever"),a.Ic(),a.Hc(24),a.Nc(25,pj),a.Gc(),a.Ic(),a.Ic(),a.zd(26,Dj,3,1,"button",7),a.Jc(27,"mat-menu",null,10),a.Jc(29,"button",9),a.Wc("click",(function(){return t.openVideoInfoDialog()})),a.Jc(30,"mat-icon"),a.Bd(31,"info"),a.Ic(),a.Hc(32),a.Nc(33,fj),a.Gc(),a.Ic(),a.Jc(34,"button",9),a.Wc("click",(function(){return t.deleteFile()})),a.Jc(35,"mat-icon"),a.Bd(36,"delete"),a.Ic(),a.Hc(37),a.Nc(38,mj),a.Gc(),a.Ic(),a.zd(39,Ej,5,0,"button",11),a.Ic(),a.Ic()),2&e&&(a.pc(6),a.Cd(t.title),a.pc(4),a.Dd("\xa0",t.name,""),a.pc(1),a.gd("ngIf",t.playlist),a.pc(1),a.gd("ngIf",!t.image_errored&&t.thumbnailURL),a.pc(1),a.gd("ngIf",t.playlist),a.pc(13),a.gd("ngIf",!t.playlist),a.pc(13),a.gd("ngIf",t.use_youtubedl_archive))},directives:[Nc,yt.t,Lg,Eg,_m,wj,Za,zg],styles:[".example-card[_ngcontent-%COMP%]{width:150px;height:125px;padding:0}.deleteButton[_ngcontent-%COMP%]{top:-5px;right:-5px;position:absolute}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:100%}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{height:60px;padding:0;margin:8px 0 0 -5px;width:calc(100% + 10px);overflow:hidden;border-radius:0 0 4px 4px}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;-webkit-box-orient:vertical;-webkit-line-clamp:2}.file-link[_ngcontent-%COMP%], .max-two-lines[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.file-link[_ngcontent-%COMP%]{width:80%;white-space:nowrap;display:block}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:125px!important}}"]}),Aj);function Pj(e,t){1&e&&(a.Jc(0,"div",6),a.Ec(1,"mat-spinner",7),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",25))}var Rj,Mj,Lj,jj=((Rj=function(){function e(t,i){_classCallCheck(this,e),this.dialogRef=t,this.data=i,this.inputText="",this.inputSubmitted=!1,this.doneEmitter=null,this.onlyEmitOnDone=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.inputTitle=this.data.inputTitle,this.inputPlaceholder=this.data.inputPlaceholder,this.submitText=this.data.submitText,this.data.doneEmitter&&(this.doneEmitter=this.data.doneEmitter,this.onlyEmitOnDone=!0)}},{key:"enterPressed",value:function(){this.inputText&&(this.onlyEmitOnDone?(this.doneEmitter.emit(this.inputText),this.inputSubmitted=!0):this.dialogRef.close(this.inputText))}}]),e}()).\u0275fac=function(e){return new(e||Rj)(a.Dc(Ih),a.Dc(Oh))},Rj.\u0275cmp=a.xc({type:Rj,selectors:[["app-input-dialog"]],decls:12,vars:6,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],[1,"mat-spinner"],[3,"diameter"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Bd(1),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div"),a.Jc(4,"mat-form-field",1),a.Jc(5,"input",2),a.Wc("keyup.enter",(function(){return t.enterPressed()}))("ngModelChange",(function(e){return t.inputText=e})),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(6,"mat-dialog-actions"),a.Jc(7,"button",3),a.Bd(8,"Cancel"),a.Ic(),a.Jc(9,"button",4),a.Wc("click",(function(){return t.enterPressed()})),a.Bd(10),a.Ic(),a.zd(11,Pj,2,1,"div",5),a.Ic()),2&e&&(a.pc(1),a.Cd(t.inputTitle),a.pc(4),a.gd("ngModel",t.inputText)("placeholder",t.inputPlaceholder),a.pc(4),a.gd("disabled",!t.inputText),a.pc(1),a.Cd(t.submitText),a.pc(1),a.gd("ngIf",t.inputSubmitted))},directives:[Mh,Lh,Ud,Pm,_r,Dr,es,jh,Za,Rh,yt.t,jv],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),Rj);Mj=$localize(_templateObject192()),Lj=$localize(_templateObject193());var Fj,Nj,zj,Bj,Jj,Vj=["placeholder",$localize(_templateObject194())];function Hj(e,t){1&e&&(a.Hc(0),a.Nc(1,zj),a.Gc())}function Uj(e,t){1&e&&(a.Hc(0),a.Nc(1,Bj),a.Gc())}function Gj(e,t){1&e&&(a.Hc(0),a.Nc(1,Jj),a.Gc())}Fj=$localize(_templateObject195()),Nj=$localize(_templateObject196()),zj=$localize(_templateObject197()),Bj=$localize(_templateObject198()),Jj=$localize(_templateObject199());var Wj,qj=((Wj=function(){function e(t,i,n,a){_classCallCheck(this,e),this.data=t,this.router=i,this.snackBar=n,this.postsService=a,this.type=null,this.uid=null,this.uuid=null,this.share_url=null,this.default_share_url=null,this.sharing_enabled=null,this.is_playlist=null,this.current_timestamp=null,this.timestamp_enabled=!1}return _createClass(e,[{key:"ngOnInit",value:function(){if(this.data){this.type=this.data.type,this.uid=this.data.uid,this.uuid=this.data.uuid,this.sharing_enabled=this.data.sharing_enabled,this.is_playlist=this.data.is_playlist,this.current_timestamp=(this.data.current_timestamp/1e3).toFixed(2);var e=this.is_playlist?";id=":";uid=";this.default_share_url=window.location.href.split(";")[0]+e+this.uid,this.uuid&&(this.default_share_url+=";uuid="+this.uuid),this.share_url=this.default_share_url}}},{key:"timestampInputChanged",value:function(e){if(this.timestamp_enabled){var t=e.target.value;this.share_url=t>0?this.default_share_url+";timestamp="+t:this.default_share_url}else this.share_url=this.default_share_url}},{key:"useTimestampChanged",value:function(){this.timestampInputChanged({target:{value:this.current_timestamp}})}},{key:"copiedToClipboard",value:function(){this.openSnackBar("Copied to clipboard!")}},{key:"sharingChanged",value:function(e){var t=this;e.checked?this.postsService.enableSharing(this.uid,this.type,this.is_playlist).subscribe((function(e){e.success?(t.openSnackBar("Sharing enabled."),t.sharing_enabled=!0):t.openSnackBar("Failed to enable sharing.")}),(function(e){t.openSnackBar("Failed to enable sharing - server error.")})):this.postsService.disableSharing(this.uid,this.type,this.is_playlist).subscribe((function(e){e.success?(t.openSnackBar("Sharing disabled."),t.sharing_enabled=!1):t.openSnackBar("Failed to disable sharing.")}),(function(e){t.openSnackBar("Failed to disable sharing - server error.")}))}},{key:"openSnackBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||Wj)(a.Dc(Oh),a.Dc(bO),a.Dc(A_),a.Dc(YO))},Wj.\u0275cmp=a.xc({type:Wj,selectors:[["app-share-media-dialog"]],decls:28,vars:12,consts:[["mat-dialog-title",""],[4,"ngIf"],[3,"checked","change"],[2,"margin-right","15px",3,"ngModel","change","ngModelChange"],["matInput","","type","number",3,"ngModel","disabled","ngModelChange","change",6,"placeholder"],[2,"width","100%"],["matInput","",3,"disabled","readonly","value"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","cdkCopyToClipboard","click"],["mat-button","","mat-dialog-close",""]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.zd(1,Hj,2,0,"ng-container",1),a.zd(2,Uj,2,0,"ng-container",1),a.zd(3,Gj,2,0,"ng-container",1),a.Ic(),a.Jc(4,"mat-dialog-content"),a.Jc(5,"div"),a.Jc(6,"div"),a.Jc(7,"mat-checkbox",2),a.Wc("change",(function(e){return t.sharingChanged(e)})),a.Hc(8),a.Nc(9,Mj),a.Gc(),a.Ic(),a.Ic(),a.Jc(10,"div"),a.Jc(11,"mat-checkbox",3),a.Wc("change",(function(){return t.useTimestampChanged()}))("ngModelChange",(function(e){return t.timestamp_enabled=e})),a.Hc(12),a.Nc(13,Lj),a.Gc(),a.Ic(),a.Jc(14,"mat-form-field"),a.Jc(15,"input",4),a.Pc(16,Vj),a.Wc("ngModelChange",(function(e){return t.current_timestamp=e}))("change",(function(e){return t.timestampInputChanged(e)})),a.Ic(),a.Ic(),a.Ic(),a.Jc(17,"div"),a.Jc(18,"mat-form-field",5),a.Ec(19,"input",6),a.Ic(),a.Ic(),a.Jc(20,"div",7),a.Jc(21,"button",8),a.Wc("click",(function(){return t.copiedToClipboard()})),a.Hc(22),a.Nc(23,Fj),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(24,"mat-dialog-actions"),a.Jc(25,"button",9),a.Hc(26),a.Nc(27,Nj),a.Gc(),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.gd("ngIf",t.is_playlist),a.pc(1),a.gd("ngIf",!t.is_playlist&&"video"===t.type),a.pc(1),a.gd("ngIf",!t.is_playlist&&"audio"===t.type),a.pc(4),a.gd("checked",t.sharing_enabled),a.pc(4),a.gd("ngModel",t.timestamp_enabled),a.pc(4),a.gd("ngModel",t.current_timestamp)("disabled",!t.timestamp_enabled),a.pc(4),a.gd("disabled",!t.sharing_enabled)("readonly",!0)("value",t.share_url),a.pc(2),a.gd("disabled",!t.sharing_enabled)("cdkCopyToClipboard",t.share_url))},directives:[Mh,yt.t,Lh,Yc,Dr,es,Ud,Pm,Gr,_r,Za,Ex,jh,Rh],styles:[""]}),Wj),$j=["*"],Kj=["volumeBar"],Xj=function(e){return{dragging:e}};function Yj(e,t){if(1&e&&a.Ec(0,"span",2),2&e){var i=t.$implicit;a.yd("width",null==i.$$style?null:i.$$style.width)("left",null==i.$$style?null:i.$$style.left)}}function Zj(e,t){1&e&&a.Ec(0,"span",2)}function Qj(e,t){1&e&&(a.Jc(0,"span"),a.Bd(1,"LIVE"),a.Ic())}function eF(e,t){if(1&e&&(a.Jc(0,"span"),a.Bd(1),a.bd(2,"vgUtc"),a.Ic()),2&e){var i=a.ad();a.pc(1),a.Cd(a.dd(2,1,i.getTime(),i.vgFormat))}}function tF(e,t){if(1&e&&(a.Jc(0,"option",4),a.Bd(1),a.Ic()),2&e){var i=t.$implicit;a.gd("value",i.id)("selected",!0===i.selected),a.pc(1),a.Dd(" ",i.label," ")}}function iF(e,t){if(1&e&&(a.Jc(0,"option",4),a.Bd(1),a.Ic()),2&e){var i=t.$implicit,n=a.ad();a.gd("value",i.qualityIndex.toString())("selected",i.qualityIndex===(null==n.bitrateSelected?null:n.bitrateSelected.qualityIndex)),a.pc(1),a.Dd(" ",i.label," ")}}var nF,aF,rF,oF,sF,cF,lF,uF,dF,hF,pF,fF,mF,gF,vF,bF,_F,yF,kF,wF,CF,xF,SF,IF,OF,DF,EF,AF,TF,PF,RF=((TF=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||TF)},TF.\u0275prov=a.zc({token:TF,factory:TF.\u0275fac}),TF.VG_ENDED="ended",TF.VG_PAUSED="paused",TF.VG_PLAYING="playing",TF.VG_LOADING="waiting",TF),MF=((AF=function(){function e(){_classCallCheck(this,e),this.medias={},this.playerReadyEvent=new a.u(!0),this.isPlayerReady=!1}return _createClass(e,[{key:"onPlayerReady",value:function(e){this.fsAPI=e,this.isPlayerReady=!0,this.playerReadyEvent.emit(this)}},{key:"getDefaultMedia",value:function(){for(var e in this.medias)if(this.medias[e])return this.medias[e]}},{key:"getMasterMedia",value:function(){var e;for(var t in this.medias)if("true"===this.medias[t].vgMaster||!0===this.medias[t].vgMaster){e=this.medias[t];break}return e||this.getDefaultMedia()}},{key:"isMasterDefined",value:function(){var e=!1;for(var t in this.medias)if("true"===this.medias[t].vgMaster||!0===this.medias[t].vgMaster){e=!0;break}return e}},{key:"getMediaById",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.medias[e];return e&&"*"!==e||(t=this),t}},{key:"play",value:function(){for(var e in this.medias)this.medias[e]&&this.medias[e].play()}},{key:"pause",value:function(){for(var e in this.medias)this.medias[e]&&this.medias[e].pause()}},{key:"seekTime",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var i in this.medias)this.medias[i]&&this.$$seek(this.medias[i],e,t)}},{key:"$$seek",value:function(e,t){var i,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.duration;n?(this.isMasterDefined()&&(a=this.getMasterMedia().duration),i=t*a/100):i=t,e.currentTime=i}},{key:"addTextTrack",value:function(e,t,i){for(var n in this.medias)this.medias[n]&&this.$$addTextTrack(this.medias[n],e,t,i)}},{key:"$$addTextTrack",value:function(e,t,i,n){e.addTextTrack(t,i,n)}},{key:"$$getAllProperties",value:function(e){var t,i={};for(var n in this.medias)this.medias[n]&&(i[n]=this.medias[n]);switch(Object.keys(i).length){case 0:switch(e){case"state":t=RF.VG_PAUSED;break;case"playbackRate":case"volume":t=1;break;case"time":t={current:0,total:0,left:0}}break;case 1:t=i[Object.keys(i)[0]][e];break;default:t=i[this.getMasterMedia().id][e]}return t}},{key:"$$setAllProperties",value:function(e,t){for(var i in this.medias)this.medias[i]&&(this.medias[i][e]=t)}},{key:"registerElement",value:function(e){this.videogularElement=e}},{key:"registerMedia",value:function(e){this.medias[e.id]=e}},{key:"unregisterMedia",value:function(e){delete this.medias[e.id]}},{key:"duration",get:function(){return this.$$getAllProperties("duration")}},{key:"currentTime",set:function(e){this.$$setAllProperties("currentTime",e)},get:function(){return this.$$getAllProperties("currentTime")}},{key:"state",set:function(e){this.$$setAllProperties("state",e)},get:function(){return this.$$getAllProperties("state")}},{key:"volume",set:function(e){this.$$setAllProperties("volume",e)},get:function(){return this.$$getAllProperties("volume")}},{key:"playbackRate",set:function(e){this.$$setAllProperties("playbackRate",e)},get:function(){return this.$$getAllProperties("playbackRate")}},{key:"canPlay",get:function(){return this.$$getAllProperties("canPlay")}},{key:"canPlayThrough",get:function(){return this.$$getAllProperties("canPlayThrough")}},{key:"isMetadataLoaded",get:function(){return this.$$getAllProperties("isMetadataLoaded")}},{key:"isWaiting",get:function(){return this.$$getAllProperties("isWaiting")}},{key:"isCompleted",get:function(){return this.$$getAllProperties("isCompleted")}},{key:"isLive",get:function(){return this.$$getAllProperties("isLive")}},{key:"isMaster",get:function(){return this.$$getAllProperties("isMaster")}},{key:"time",get:function(){return this.$$getAllProperties("time")}},{key:"buffer",get:function(){return this.$$getAllProperties("buffer")}},{key:"buffered",get:function(){return this.$$getAllProperties("buffered")}},{key:"subscriptions",get:function(){return this.$$getAllProperties("subscriptions")}},{key:"textTracks",get:function(){return this.$$getAllProperties("textTracks")}}]),e}()).\u0275fac=function(e){return new(e||AF)},AF.\u0275prov=a.zc({token:AF,factory:AF.\u0275fac}),AF),LF=((EF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.checkInterval=50,this.currentPlayPos=0,this.lastPlayPos=0,this.subscriptions=[],this.isBuffering=!1,this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){var e=this;this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe((function(t){return e.onUpdateBuffer(t)})))}},{key:"onUpdateBuffer",value:function(e){this.isBuffering=e}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||EF)(a.Dc(a.r),a.Dc(MF))},EF.\u0275cmp=a.xc({type:EF,selectors:[["vg-buffering"]],hostVars:2,hostBindings:function(e,t){2&e&&a.tc("is-buffering",t.isBuffering)},inputs:{vgFor:"vgFor"},decls:3,vars:0,consts:[[1,"vg-buffering"],[1,"bufferingContainer"],[1,"loadingSpinner"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Ec(2,"div",2),a.Ic(),a.Ic())},styles:["\n vg-buffering {\n display: none;\n z-index: 201;\n }\n vg-buffering.is-buffering {\n display: block;\n }\n\n .vg-buffering {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n }\n .vg-buffering .bufferingContainer {\n width: 100%;\n position: absolute;\n cursor: pointer;\n top: 50%;\n margin-top: -50px;\n zoom: 1;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n /* Loading Spinner\n * http://www.alessioatzeni.com/blog/css3-loading-animation-loop/\n */\n .vg-buffering .loadingSpinner {\n background-color: rgba(0, 0, 0, 0);\n border: 5px solid rgba(255, 255, 255, 1);\n opacity: .9;\n border-top: 5px solid rgba(0, 0, 0, 0);\n border-left: 5px solid rgba(0, 0, 0, 0);\n border-radius: 50px;\n box-shadow: 0 0 35px #FFFFFF;\n width: 50px;\n height: 50px;\n margin: 0 auto;\n -moz-animation: spin .5s infinite linear;\n -webkit-animation: spin .5s infinite linear;\n }\n .vg-buffering .loadingSpinner .stop {\n -webkit-animation-play-state: paused;\n -moz-animation-play-state: paused;\n }\n @-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(360deg);\n }\n }\n @-moz-keyframes spinoff {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(-360deg);\n }\n }\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n @-webkit-keyframes spinoff {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(-360deg);\n }\n }\n "],encapsulation:2}),EF),jF=((DF=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:DF}),DF.\u0275inj=a.Ac({factory:function(e){return new(e||DF)},imports:[[yt.c]]}),DF),FF=((OF=function(){function e(){_classCallCheck(this,e),this.isHiddenSubject=new Lt.a,this.isHidden=this.isHiddenSubject.asObservable()}return _createClass(e,[{key:"state",value:function(e){this.isHiddenSubject.next(e)}}]),e}()).\u0275fac=function(e){return new(e||OF)},OF.\u0275prov=a.zc({token:OF,factory:OF.\u0275fac}),OF),NF=((IF=function(){function e(t,i,n){_classCallCheck(this,e),this.API=t,this.ref=i,this.hidden=n,this.isAdsPlaying="initial",this.hideControls=!1,this.vgAutohide=!1,this.vgAutohideTime=3,this.subscriptions=[],this.elem=i.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.mouseMove$=rl(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=rl(this.API.videogularElement,"touchstart"),this.subscriptions.push(this.touchStart$.subscribe(this.show.bind(this))),this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.play.subscribe(this.onPlay.bind(this))),this.subscriptions.push(this.target.subscriptions.pause.subscribe(this.onPause.bind(this))),this.subscriptions.push(this.target.subscriptions.startAds.subscribe(this.onStartAds.bind(this))),this.subscriptions.push(this.target.subscriptions.endAds.subscribe(this.onEndAds.bind(this)))}},{key:"ngAfterViewInit",value:function(){this.vgAutohide?this.hide():this.show()}},{key:"onPlay",value:function(){this.vgAutohide&&this.hide()}},{key:"onPause",value:function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1)}},{key:"onStartAds",value:function(){this.isAdsPlaying="none"}},{key:"onEndAds",value:function(){this.isAdsPlaying="initial"}},{key:"hide",value:function(){this.vgAutohide&&(clearTimeout(this.timer),this.hideAsync())}},{key:"show",value:function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1),this.vgAutohide&&this.hideAsync()}},{key:"hideAsync",value:function(){var e=this;this.API.state===RF.VG_PLAYING&&(this.timer=setTimeout((function(){e.hideControls=!0,e.hidden.state(!0)}),1e3*this.vgAutohideTime))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||IF)(a.Dc(MF),a.Dc(a.r),a.Dc(FF))},IF.\u0275cmp=a.xc({type:IF,selectors:[["vg-controls"]],hostVars:4,hostBindings:function(e,t){2&e&&(a.yd("pointer-events",t.isAdsPlaying),a.tc("hide",t.hideControls))},inputs:{vgAutohide:"vgAutohide",vgAutohideTime:"vgAutohideTime",vgFor:"vgFor"},ngContentSelectors:$j,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.ed(0))},styles:["\n vg-controls {\n position: absolute;\n display: flex;\n width: 100%;\n height: 50px;\n z-index: 300;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: bottom 1s;\n -khtml-transition: bottom 1s;\n -moz-transition: bottom 1s;\n -ms-transition: bottom 1s;\n transition: bottom 1s;\n }\n vg-controls.hide {\n bottom: -50px;\n }\n "],encapsulation:2}),IF),zF=((SF=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"getZIndex",value:function(){for(var e,t=1,i=document.getElementsByTagName("*"),n=0,a=i.length;nt&&(t=e+1);return t}},{key:"isMobileDevice",value:function(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")}},{key:"isiOSDevice",value:function(){return navigator.userAgent.match(/ip(hone|ad|od)/i)&&!navigator.userAgent.match(/(iemobile)[\/\s]?([\w\.]*)/i)}},{key:"isCordova",value:function(){return-1===document.URL.indexOf("http://")&&-1===document.URL.indexOf("https://")}}]),e}()).\u0275fac=function(e){return new(e||SF)},SF.\u0275prov=Object(a.zc)({factory:function(){return new SF},token:SF,providedIn:"root"}),SF),BF=((xF=function(){function e(){_classCallCheck(this,e),this.nativeFullscreen=!0,this.isFullscreen=!1,this.onChangeFullscreen=new a.u}return _createClass(e,[{key:"init",value:function(e,t){var i=this;this.videogularElement=e,this.medias=t;var n={w3:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",onchange:"fullscreenchange",onerror:"fullscreenerror"},newWebkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},oldWebkit:{enabled:"webkitIsFullScreen",element:"webkitCurrentFullScreenElement",request:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},moz:{enabled:"mozFullScreen",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",onchange:"mozfullscreenchange",onerror:"mozfullscreenerror"},ios:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitEnterFullscreen",exit:"webkitExitFullscreen",onchange:"webkitendfullscreen",onerror:"webkitfullscreenerror"},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",onchange:"MSFullscreenChange",onerror:"MSFullscreenError"}};for(var a in n)if(n[a].enabled in document){this.polyfill=n[a];break}if(zF.isiOSDevice()&&(this.polyfill=n.ios),this.isAvailable=null!=this.polyfill,null!=this.polyfill){var r;switch(this.polyfill.onchange){case"mozfullscreenchange":r=document;break;case"webkitendfullscreen":r=this.medias.toArray()[0].elem;break;default:r=e}this.fsChangeSubscription=rl(r,this.polyfill.onchange).subscribe((function(){i.onFullscreenChange()}))}}},{key:"onFullscreenChange",value:function(){this.isFullscreen=!!document[this.polyfill.element],this.onChangeFullscreen.emit(this.isFullscreen)}},{key:"toggleFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.isFullscreen?this.exit():this.request(e)}},{key:"request",value:function(e){e||(e=this.videogularElement),this.isFullscreen=!0,this.onChangeFullscreen.emit(!0),this.isAvailable&&this.nativeFullscreen&&(zF.isMobileDevice()?((!this.polyfill.enabled&&e===this.videogularElement||zF.isiOSDevice())&&(e=this.medias.toArray()[0].elem),this.enterElementInFullScreen(e)):this.enterElementInFullScreen(this.videogularElement))}},{key:"enterElementInFullScreen",value:function(e){e[this.polyfill.request]()}},{key:"exit",value:function(){this.isFullscreen=!1,this.onChangeFullscreen.emit(!1),this.isAvailable&&this.nativeFullscreen&&document[this.polyfill.exit]()}}]),e}()).\u0275fac=function(e){return new(e||xF)},xF.\u0275prov=a.zc({token:xF,factory:xF.\u0275fac}),xF),JF=((CF=function(){function e(t,i,n){_classCallCheck(this,e),this.API=i,this.fsAPI=n,this.isFullscreen=!1,this.subscriptions=[],this.ariaValue="normal mode",this.elem=t.nativeElement,this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this)))}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onChangeFullscreen",value:function(e){this.ariaValue=e?"fullscren mode":"normal mode",this.isFullscreen=e}},{key:"onClick",value:function(){this.changeFullscreenState()}},{key:"onKeyDown",value:function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.changeFullscreenState())}},{key:"changeFullscreenState",value:function(){var e=this.target;this.target instanceof MF&&(e=null),this.fsAPI.toggleFullscreen(e)}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||CF)(a.Dc(a.r),a.Dc(MF),a.Dc(BF))},CF.\u0275cmp=a.xc({type:CF,selectors:[["vg-fullscreen"]],hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.onClick()}))("keydown",(function(e){return t.onKeyDown(e)}))},decls:1,vars:5,consts:[["tabindex","0","role","button","aria-label","fullscreen button",1,"icon"]],template:function(e,t){1&e&&a.Ec(0,"div",0),2&e&&(a.tc("vg-icon-fullscreen",!t.isFullscreen)("vg-icon-fullscreen_exit",t.isFullscreen),a.qc("aria-valuetext",t.ariaValue))},styles:["\n vg-fullscreen {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n\n vg-fullscreen .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),CF),VF=((wF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.subscriptions=[],this.ariaValue="unmuted",this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.currentVolume=this.target.volume}},{key:"onClick",value:function(){this.changeMuteState()}},{key:"onKeyDown",value:function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.changeMuteState())}},{key:"changeMuteState",value:function(){var e=this.getVolume();0===e?(0===this.target.volume&&0===this.currentVolume&&(this.currentVolume=1),this.target.volume=this.currentVolume):(this.currentVolume=e,this.target.volume=0)}},{key:"getVolume",value:function(){var e=this.target?this.target.volume:0;return this.ariaValue=e?"unmuted":"muted",e}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||wF)(a.Dc(a.r),a.Dc(MF))},wF.\u0275cmp=a.xc({type:wF,selectors:[["vg-mute"]],hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.onClick()}))("keydown",(function(e){return t.onKeyDown(e)}))},inputs:{vgFor:"vgFor"},decls:1,vars:9,consts:[["tabindex","0","role","button","aria-label","mute button",1,"icon"]],template:function(e,t){1&e&&a.Ec(0,"div",0),2&e&&(a.tc("vg-icon-volume_up",t.getVolume()>=.75)("vg-icon-volume_down",t.getVolume()>=.25&&t.getVolume()<.75)("vg-icon-volume_mute",t.getVolume()>0&&t.getVolume()<.25)("vg-icon-volume_off",0===t.getVolume()),a.qc("aria-valuetext",t.ariaValue))},styles:["\n vg-mute {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-mute .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),wF),HF=((kF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.subscriptions=[],this.elem=t.nativeElement,this.isDragging=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.ariaValue=100*this.getVolume()}},{key:"onClick",value:function(e){this.setVolume(this.calculateVolume(e.clientX))}},{key:"onMouseDown",value:function(e){this.mouseDownPosX=e.clientX,this.isDragging=!0}},{key:"onDrag",value:function(e){this.isDragging&&this.setVolume(this.calculateVolume(e.clientX))}},{key:"onStopDrag",value:function(e){this.isDragging&&(this.isDragging=!1,this.mouseDownPosX===e.clientX&&this.setVolume(this.calculateVolume(e.clientX)))}},{key:"arrowAdjustVolume",value:function(e){38===e.keyCode||39===e.keyCode?(e.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()+10)))):37!==e.keyCode&&40!==e.keyCode||(e.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()-10))))}},{key:"calculateVolume",value:function(e){var t=this.volumeBarRef.nativeElement.getBoundingClientRect();return(e-t.left)/t.width*100}},{key:"setVolume",value:function(e){this.target.volume=Math.max(0,Math.min(1,e/100)),this.ariaValue=100*this.target.volume}},{key:"getVolume",value:function(){return this.target?this.target.volume:0}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||kF)(a.Dc(a.r),a.Dc(MF))},kF.\u0275cmp=a.xc({type:kF,selectors:[["vg-volume"]],viewQuery:function(e,t){var i;1&e&&a.xd(Kj,!0),2&e&&a.md(i=a.Xc())&&(t.volumeBarRef=i.first)},hostBindings:function(e,t){1&e&&a.Wc("mousemove",(function(e){return t.onDrag(e)}),!1,a.pd)("mouseup",(function(e){return t.onStopDrag(e)}),!1,a.pd)("keydown",(function(e){return t.arrowAdjustVolume(e)}))},inputs:{vgFor:"vgFor"},decls:5,vars:9,consts:[["tabindex","0","role","slider","aria-label","volume level","aria-level","polite","aria-valuemin","0","aria-valuemax","100","aria-orientation","horizontal",1,"volumeBar",3,"click","mousedown"],["volumeBar",""],[1,"volumeBackground",3,"ngClass"],[1,"volumeValue"],[1,"volumeKnob"]],template:function(e,t){1&e&&(a.Jc(0,"div",0,1),a.Wc("click",(function(e){return t.onClick(e)}))("mousedown",(function(e){return t.onMouseDown(e)})),a.Jc(2,"div",2),a.Ec(3,"div",3),a.Ec(4,"div",4),a.Ic(),a.Ic()),2&e&&(a.qc("aria-valuenow",t.ariaValue)("aria-valuetext",t.ariaValue+"%"),a.pc(2),a.gd("ngClass",a.jd(7,Xj,t.isDragging)),a.pc(1),a.yd("width",85*t.getVolume()+"%"),a.pc(1),a.yd("left",85*t.getVolume()+"%"))},directives:[yt.q],styles:["\n vg-volume {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 100px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-volume .volumeBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n vg-volume .volumeBackground {\n display: flex;\n flex-grow: 1;\n height: 5px;\n pointer-events: none;\n background-color: #333;\n }\n vg-volume .volumeValue {\n display: flex;\n height: 5px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeKnob {\n position: absolute;\n width: 15px; height: 15px;\n left: 0; top: 50%;\n transform: translateY(-50%);\n border-radius: 15px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeBackground.dragging .volumeValue,\n vg-volume .volumeBackground.dragging .volumeKnob {\n transition: none;\n }\n "],encapsulation:2}),kF),UF=((yF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.subscriptions=[],this.ariaValue=RF.VG_PAUSED,this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onClick",value:function(){this.playPause()}},{key:"onKeyDown",value:function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.playPause())}},{key:"playPause",value:function(){switch(this.getState()){case RF.VG_PLAYING:this.target.pause();break;case RF.VG_PAUSED:case RF.VG_ENDED:this.target.play()}}},{key:"getState",value:function(){return this.ariaValue=this.target?this.target.state:RF.VG_PAUSED,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||yF)(a.Dc(a.r),a.Dc(MF))},yF.\u0275cmp=a.xc({type:yF,selectors:[["vg-play-pause"]],hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.onClick()}))("keydown",(function(e){return t.onKeyDown(e)}))},inputs:{vgFor:"vgFor"},decls:1,vars:6,consts:[["tabindex","0","role","button",1,"icon"]],template:function(e,t){1&e&&a.Ec(0,"div",0),2&e&&(a.tc("vg-icon-pause","playing"===t.getState())("vg-icon-play_arrow","paused"===t.getState()||"ended"===t.getState()),a.qc("aria-label","paused"===t.getState()?"play":"pause")("aria-valuetext",t.ariaValue))},styles:["\n vg-play-pause {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-play-pause .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),yF),GF=((_F=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.subscriptions=[],this.ariaValue=1,this.elem=t.nativeElement,this.playbackValues=["0.5","1.0","1.5","2.0"],this.playbackIndex=1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onClick",value:function(){this.updatePlaybackSpeed()}},{key:"onKeyDown",value:function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.updatePlaybackSpeed())}},{key:"updatePlaybackSpeed",value:function(){this.playbackIndex=++this.playbackIndex%this.playbackValues.length,this.target instanceof MF?this.target.playbackRate=this.playbackValues[this.playbackIndex]:this.target.playbackRate[this.vgFor]=this.playbackValues[this.playbackIndex]}},{key:"getPlaybackRate",value:function(){return this.ariaValue=this.target?this.target.playbackRate:1,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||_F)(a.Dc(a.r),a.Dc(MF))},_F.\u0275cmp=a.xc({type:_F,selectors:[["vg-playback-button"]],hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.onClick()}))("keydown",(function(e){return t.onKeyDown(e)}))},inputs:{playbackValues:"playbackValues",vgFor:"vgFor"},decls:2,vars:2,consts:[["tabindex","0","role","button","aria-label","playback speed button",1,"button"]],template:function(e,t){1&e&&(a.Jc(0,"span",0),a.Bd(1),a.Ic()),2&e&&(a.qc("aria-valuetext",t.ariaValue),a.pc(1),a.Dd(" ",t.getPlaybackRate(),"x "))},styles:["\n vg-playback-button {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n vg-playback-button .button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n }\n "],encapsulation:2}),_F),WF=((bF=function(){function e(t,i,n){var a=this;_classCallCheck(this,e),this.API=i,this.hideScrubBar=!1,this.vgSlider=!0,this.isSeeking=!1,this.wasPlaying=!1,this.subscriptions=[],this.elem=t.nativeElement,this.subscriptions.push(n.isHidden.subscribe((function(e){return a.onHideScrubBar(e)})))}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"seekStart",value:function(){this.target.canPlay&&(this.isSeeking=!0,this.target.state===RF.VG_PLAYING&&(this.wasPlaying=!0),this.target.pause())}},{key:"seekMove",value:function(e){if(this.isSeeking){var t=Math.max(Math.min(100*e/this.elem.scrollWidth,99.9),0);this.target.time.current=t*this.target.time.total/100,this.target.seekTime(t,!0)}}},{key:"seekEnd",value:function(e){if(this.isSeeking=!1,this.target.canPlay){var t=Math.max(Math.min(100*e/this.elem.scrollWidth,99.9),0);this.target.seekTime(t,!0),this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}}},{key:"touchEnd",value:function(){this.isSeeking=!1,this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}},{key:"getTouchOffset",value:function(e){for(var t=0,i=e.target;i;)t+=i.offsetLeft,i=i.offsetParent;return e.touches[0].pageX-t}},{key:"onMouseDownScrubBar",value:function(e){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(e.offsetX)))}},{key:"onMouseMoveScrubBar",value:function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(e.offsetX)}},{key:"onMouseUpScrubBar",value:function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekEnd(e.offsetX)}},{key:"onTouchStartScrubBar",value:function(e){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(this.getTouchOffset(e))))}},{key:"onTouchMoveScrubBar",value:function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(this.getTouchOffset(e))}},{key:"onTouchCancelScrubBar",value:function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}},{key:"onTouchEndScrubBar",value:function(e){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}},{key:"arrowAdjustVolume",value:function(e){this.target&&(38===e.keyCode||39===e.keyCode?(e.preventDefault(),this.target.seekTime((this.target.time.current+5e3)/1e3,!1)):37!==e.keyCode&&40!==e.keyCode||(e.preventDefault(),this.target.seekTime((this.target.time.current-5e3)/1e3,!1)))}},{key:"getPercentage",value:function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}},{key:"onHideScrubBar",value:function(e){this.hideScrubBar=e}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||bF)(a.Dc(a.r),a.Dc(MF),a.Dc(FF))},bF.\u0275cmp=a.xc({type:bF,selectors:[["vg-scrub-bar"]],hostVars:2,hostBindings:function(e,t){1&e&&a.Wc("mousedown",(function(e){return t.onMouseDownScrubBar(e)}))("mousemove",(function(e){return t.onMouseMoveScrubBar(e)}),!1,a.pd)("mouseup",(function(e){return t.onMouseUpScrubBar(e)}),!1,a.pd)("touchstart",(function(e){return t.onTouchStartScrubBar(e)}))("touchmove",(function(e){return t.onTouchMoveScrubBar(e)}),!1,a.pd)("touchcancel",(function(e){return t.onTouchCancelScrubBar(e)}),!1,a.pd)("touchend",(function(e){return t.onTouchEndScrubBar(e)}),!1,a.pd)("keydown",(function(e){return t.arrowAdjustVolume(e)})),2&e&&a.tc("hide",t.hideScrubBar)},inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},ngContentSelectors:$j,decls:2,vars:2,consts:[["tabindex","0","role","slider","aria-label","scrub bar","aria-level","polite","aria-valuemin","0","aria-valuemax","100",1,"scrubBar"]],template:function(e,t){1&e&&(a.fd(),a.Jc(0,"div",0),a.ed(1),a.Ic()),2&e&&a.qc("aria-valuenow",t.getPercentage())("aria-valuetext",t.getPercentage()+"%")},styles:["\n vg-scrub-bar {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: absolute;\n width: 100%;\n height: 5px;\n bottom: 50px;\n margin: 0;\n cursor: pointer;\n align-items: center;\n background: rgba(0, 0, 0, 0.75);\n z-index: 250;\n -webkit-transition: bottom 1s, opacity 0.5s;\n -khtml-transition: bottom 1s, opacity 0.5s;\n -moz-transition: bottom 1s, opacity 0.5s;\n -ms-transition: bottom 1s, opacity 0.5s;\n transition: bottom 1s, opacity 0.5s;\n }\n vg-scrub-bar .scrubBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n height: 100%;\n }\n vg-controls vg-scrub-bar {\n position: relative;\n bottom: 0;\n background: transparent;\n height: 50px;\n flex-grow: 1;\n flex-basis: 0;\n margin: 0 10px;\n -webkit-transition: initial;\n -khtml-transition: initial;\n -moz-transition: initial;\n -ms-transition: initial;\n transition: initial;\n }\n vg-scrub-bar.hide {\n bottom: 0;\n opacity: 0;\n }\n vg-controls vg-scrub-bar.hide {\n bottom: initial;\n opacity: initial;\n }\n "],encapsulation:2}),bF),qF=((vF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.subscriptions=[],this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getBufferTime",value:function(){var e="0%";return this.target&&this.target.buffer&&this.target.buffered.length&&(e=0===this.target.time.total?"0%":this.target.buffer.end/this.target.time.total*100+"%"),e}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||vF)(a.Dc(a.r),a.Dc(MF))},vF.\u0275cmp=a.xc({type:vF,selectors:[["vg-scrub-bar-buffering-time"]],inputs:{vgFor:"vgFor"},decls:1,vars:2,consts:[[1,"background"]],template:function(e,t){1&e&&a.Ec(0,"div",0),2&e&&a.yd("width",t.getBufferTime())},styles:["\n vg-scrub-bar-buffering-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-buffering-time .background {\n background-color: rgba(255, 255, 255, 0.3);\n }\n vg-controls vg-scrub-bar-buffering-time {\n position: absolute;\n top: calc(50% - 3px);\n }\n vg-controls vg-scrub-bar-buffering-time .background {\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n "],encapsulation:2}),vF),$F=((gF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.onLoadedMetadataCalled=!1,this.cuePoints=[],this.subscriptions=[],this.totalCues=0,this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.loadedMetadata.subscribe(this.onLoadedMetadata.bind(this))),this.onLoadedMetadataCalled&&this.onLoadedMetadata()}},{key:"onLoadedMetadata",value:function(){if(this.vgCuePoints){this.cuePoints=[];for(var e=0,t=this.vgCuePoints.length;e=0?this.vgCuePoints[e].endTime:this.vgCuePoints[e].startTime+1)-this.vgCuePoints[e].startTime),n="0",a="0";"number"==typeof i&&this.target.time.total&&(a=100*i/this.target.time.total+"%",n=100*this.vgCuePoints[e].startTime/Math.round(this.target.time.total/1e3)+"%"),this.vgCuePoints[e].$$style={width:a,left:n},this.cuePoints.push(this.vgCuePoints[e])}}}},{key:"updateCuePoints",value:function(){this.target?this.onLoadedMetadata():this.onLoadedMetadataCalled=!0}},{key:"ngOnChanges",value:function(e){e.vgCuePoints.currentValue&&this.updateCuePoints()}},{key:"ngDoCheck",value:function(){this.vgCuePoints&&this.totalCues!==this.vgCuePoints.length&&(this.totalCues=this.vgCuePoints.length,this.updateCuePoints())}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||gF)(a.Dc(a.r),a.Dc(MF))},gF.\u0275cmp=a.xc({type:gF,selectors:[["vg-scrub-bar-cue-points"]],inputs:{vgCuePoints:"vgCuePoints",vgFor:"vgFor"},features:[a.nc],decls:2,vars:1,consts:[[1,"cue-point-container"],["class","cue-point",3,"width","left",4,"ngFor","ngForOf"],[1,"cue-point"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.zd(1,Yj,1,4,"span",1),a.Ic()),2&e&&(a.pc(1),a.gd("ngForOf",t.cuePoints))},directives:[yt.s],styles:["\n vg-scrub-bar-cue-points {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-cue-points .cue-point-container .cue-point {\n position: absolute;\n height: 5px;\n background-color: rgba(255, 204, 0, 0.7);\n }\n vg-controls vg-scrub-bar-cue-points {\n position: absolute;\n top: calc(50% - 3px);\n }\n "],encapsulation:2}),gF),KF=((mF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.vgSlider=!1,this.subscriptions=[],this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getPercentage",value:function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||mF)(a.Dc(a.r),a.Dc(MF))},mF.\u0275cmp=a.xc({type:mF,selectors:[["vg-scrub-bar-current-time"]],inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},decls:2,vars:3,consts:[[1,"background"],["class","slider",4,"ngIf"],[1,"slider"]],template:function(e,t){1&e&&(a.Ec(0,"div",0),a.zd(1,Zj,1,0,"span",1)),2&e&&(a.yd("width",t.getPercentage()),a.pc(1),a.gd("ngIf",t.vgSlider))},directives:[yt.t],styles:["\n vg-scrub-bar-current-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-current-time .background {\n background-color: white;\n }\n vg-controls vg-scrub-bar-current-time {\n position: absolute;\n top: calc(50% - 3px);\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n vg-controls vg-scrub-bar-current-time .background {\n border: 1px solid white;\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n\n vg-scrub-bar-current-time .slider{\n background: white;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n box-shadow: 0px 0px 10px black;\n margin-top: -5px;\n margin-left: -10px;\n }\n "],encapsulation:2}),mF),XF=((fF=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){var i=new Date(e),n=t,a=i.getUTCSeconds(),r=i.getUTCMinutes(),o=i.getUTCHours();return a<10&&(a="0"+a),r<10&&(r="0"+r),o<10&&(o="0"+o),n=(n=(n=n.replace(/ss/g,a)).replace(/mm/g,r)).replace(/hh/g,o)}}]),e}()).\u0275fac=function(e){return new(e||fF)},fF.\u0275pipe=a.Cc({name:"vgUtc",type:fF,pure:!0}),fF),YF=((pF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.vgProperty="current",this.vgFormat="mm:ss",this.subscriptions=[],this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getTime",value:function(){var e=0;return this.target&&(e=Math.round(this.target.time[this.vgProperty]),e=isNaN(e)||this.target.isLive?0:e),e}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||pF)(a.Dc(a.r),a.Dc(MF))},pF.\u0275cmp=a.xc({type:pF,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:$j,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(e,t){1&e&&(a.fd(),a.zd(0,Qj,2,0,"span",0),a.zd(1,eF,3,4,"span",0),a.ed(2)),2&e&&(a.gd("ngIf",null==t.target?null:t.target.isLive),a.pc(1),a.gd("ngIf",!(null!=t.target&&t.target.isLive)))},directives:[yt.t],pipes:[XF],styles:["\n vg-time-display {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 60px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n pointer-events: none;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n "],encapsulation:2}),pF),ZF=((hF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.subscriptions=[],this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return e.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor);var e=Array.from(this.API.getMasterMedia().elem.children).filter((function(e){return"TRACK"===e.tagName})).filter((function(e){return"subtitles"===e.kind})).map((function(e){return{label:e.label,selected:!0===e.default,id:e.srclang}}));this.tracks=[].concat(_toConsumableArray(e),[{id:null,label:"Off",selected:e.every((function(e){return!1===e.selected}))}]);var t=this.tracks.filter((function(e){return!0===e.selected}))[0];this.trackSelected=t.id,this.ariaValue=t.label}},{key:"selectTrack",value:function(e){var t=this;this.trackSelected="null"===e?null:e,this.ariaValue="No track selected",Array.from(this.API.getMasterMedia().elem.textTracks).forEach((function(i){i.language===e?(t.ariaValue=i.label,i.mode="showing"):i.mode="hidden"}))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||hF)(a.Dc(a.r),a.Dc(MF))},hF.\u0275cmp=a.xc({type:hF,selectors:[["vg-track-selector"]],inputs:{vgFor:"vgFor"},decls:5,vars:5,consts:[[1,"container"],[1,"track-selected"],["tabindex","0","aria-label","track selector",1,"trackSelector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Bd(2),a.Ic(),a.Jc(3,"select",2),a.Wc("change",(function(e){return t.selectTrack(e.target.value)})),a.zd(4,tF,2,3,"option",3),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.tc("vg-icon-closed_caption",!t.trackSelected),a.pc(1),a.Dd(" ",t.trackSelected||""," "),a.pc(1),a.qc("aria-valuetext",t.ariaValue),a.pc(1),a.gd("ngForOf",t.tracks))},directives:[yt.s],styles:["\n vg-track-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-track-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-track-selector select.trackSelector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-track-selector select.trackSelector::-ms-expand {\n display: none;\n }\n vg-track-selector select.trackSelector option {\n color: #000;\n }\n vg-track-selector .track-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-track-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),hF),QF=((dF=function(){function e(t,i){_classCallCheck(this,e),this.API=i,this.onBitrateChange=new a.u,this.subscriptions=[],this.elem=t.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){e.bitrates.currentValue&&e.bitrates.currentValue.length&&this.bitrates.forEach((function(e){return e.label=(e.label||Math.round(e.bitrate/1e3)).toString()}))}},{key:"selectBitrate",value:function(e){this.bitrateSelected=this.bitrates[e],this.onBitrateChange.emit(this.bitrates[e])}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||dF)(a.Dc(a.r),a.Dc(MF))},dF.\u0275cmp=a.xc({type:dF,selectors:[["vg-quality-selector"]],inputs:{bitrates:"bitrates"},outputs:{onBitrateChange:"onBitrateChange"},features:[a.nc],decls:5,vars:5,consts:[[1,"container"],[1,"quality-selected"],["tabindex","0","aria-label","quality selector",1,"quality-selector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Bd(2),a.Ic(),a.Jc(3,"select",2),a.Wc("change",(function(e){return t.selectBitrate(e.target.value)})),a.zd(4,iF,2,3,"option",3),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.tc("vg-icon-hd",!t.bitrateSelected),a.pc(1),a.Dd(" ",null==t.bitrateSelected?null:t.bitrateSelected.label," "),a.pc(1),a.qc("aria-valuetext",t.ariaValue),a.pc(1),a.gd("ngForOf",t.bitrates))},directives:[yt.s],styles:["\n vg-quality-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-quality-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-quality-selector select.quality-selector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-quality-selector select.quality-selector::-ms-expand {\n display: none;\n }\n vg-quality-selector select.quality-selector option {\n color: #000;\n }\n vg-quality-selector .quality-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-quality-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),dF),eN=((uF=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:uF}),uF.\u0275inj=a.Ac({factory:function(e){return new(e||uF)},providers:[FF],imports:[[yt.c]]}),uF),tN=((lF=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||lF)},lF.\u0275prov=a.zc({token:lF,factory:lF.\u0275fac}),lF.VG_ABORT="abort",lF.VG_CAN_PLAY="canplay",lF.VG_CAN_PLAY_THROUGH="canplaythrough",lF.VG_DURATION_CHANGE="durationchange",lF.VG_EMPTIED="emptied",lF.VG_ENCRYPTED="encrypted",lF.VG_ENDED="ended",lF.VG_ERROR="error",lF.VG_LOADED_DATA="loadeddata",lF.VG_LOADED_METADATA="loadedmetadata",lF.VG_LOAD_START="loadstart",lF.VG_PAUSE="pause",lF.VG_PLAY="play",lF.VG_PLAYING="playing",lF.VG_PROGRESS="progress",lF.VG_RATE_CHANGE="ratechange",lF.VG_SEEK="seek",lF.VG_SEEKED="seeked",lF.VG_SEEKING="seeking",lF.VG_STALLED="stalled",lF.VG_SUSPEND="suspend",lF.VG_TIME_UPDATE="timeupdate",lF.VG_VOLUME_CHANGE="volumechange",lF.VG_WAITING="waiting",lF.VG_LOAD="load",lF.VG_ENTER="enter",lF.VG_EXIT="exit",lF.VG_START_ADS="startads",lF.VG_END_ADS="endads",lF),iN=((cF=function(){function e(t,i){_classCallCheck(this,e),this.api=t,this.ref=i,this.state=RF.VG_PAUSED,this.time={current:0,total:0,left:0},this.buffer={end:0},this.canPlay=!1,this.canPlayThrough=!1,this.isMetadataLoaded=!1,this.isWaiting=!1,this.isCompleted=!1,this.isLive=!1,this.isBufferDetected=!1,this.checkInterval=200,this.currentPlayPos=0,this.lastPlayPos=0,this.playAtferSync=!1,this.bufferDetected=new Lt.a}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:rl(this.elem,tN.VG_ABORT),canPlay:rl(this.elem,tN.VG_CAN_PLAY),canPlayThrough:rl(this.elem,tN.VG_CAN_PLAY_THROUGH),durationChange:rl(this.elem,tN.VG_DURATION_CHANGE),emptied:rl(this.elem,tN.VG_EMPTIED),encrypted:rl(this.elem,tN.VG_ENCRYPTED),ended:rl(this.elem,tN.VG_ENDED),error:rl(this.elem,tN.VG_ERROR),loadedData:rl(this.elem,tN.VG_LOADED_DATA),loadedMetadata:rl(this.elem,tN.VG_LOADED_METADATA),loadStart:rl(this.elem,tN.VG_LOAD_START),pause:rl(this.elem,tN.VG_PAUSE),play:rl(this.elem,tN.VG_PLAY),playing:rl(this.elem,tN.VG_PLAYING),progress:rl(this.elem,tN.VG_PROGRESS),rateChange:rl(this.elem,tN.VG_RATE_CHANGE),seeked:rl(this.elem,tN.VG_SEEKED),seeking:rl(this.elem,tN.VG_SEEKING),stalled:rl(this.elem,tN.VG_STALLED),suspend:rl(this.elem,tN.VG_SUSPEND),timeUpdate:rl(this.elem,tN.VG_TIME_UPDATE),volumeChange:rl(this.elem,tN.VG_VOLUME_CHANGE),waiting:rl(this.elem,tN.VG_WAITING),startAds:rl(this.elem,tN.VG_START_ADS),endAds:rl(this.elem,tN.VG_END_ADS),mutation:new si.a((function(t){var i=new MutationObserver((function(e){t.next(e)}));return i.observe(e.elem,{childList:!0,attributes:!0}),function(){i.disconnect()}})),bufferDetected:this.bufferDetected},this.mutationObs=this.subscriptions.mutation.subscribe(this.onMutation.bind(this)),this.canPlayObs=this.subscriptions.canPlay.subscribe(this.onCanPlay.bind(this)),this.canPlayThroughObs=this.subscriptions.canPlayThrough.subscribe(this.onCanPlayThrough.bind(this)),this.loadedMetadataObs=this.subscriptions.loadedMetadata.subscribe(this.onLoadMetadata.bind(this)),this.waitingObs=this.subscriptions.waiting.subscribe(this.onWait.bind(this)),this.progressObs=this.subscriptions.progress.subscribe(this.onProgress.bind(this)),this.endedObs=this.subscriptions.ended.subscribe(this.onComplete.bind(this)),this.playingObs=this.subscriptions.playing.subscribe(this.onStartPlaying.bind(this)),this.playObs=this.subscriptions.play.subscribe(this.onPlay.bind(this)),this.pauseObs=this.subscriptions.pause.subscribe(this.onPause.bind(this)),this.timeUpdateObs=this.subscriptions.timeUpdate.subscribe(this.onTimeUpdate.bind(this)),this.volumeChangeObs=this.subscriptions.volumeChange.subscribe(this.onVolumeChange.bind(this)),this.errorObs=this.subscriptions.error.subscribe(this.onError.bind(this)),this.vgMaster&&this.api.playerReadyEvent.subscribe((function(){e.prepareSync()}))}},{key:"prepareSync",value:function(){var e=this,t=[];for(var i in this.api.medias)this.api.medias[i]&&t.push(this.api.medias[i].subscriptions.canPlay);this.canPlayAllSubscription=Hg(t).pipe(Object(ri.a)((function(){for(var t=arguments.length,i=new Array(t),n=0;n.3?(e.playAtferSync=e.state===RF.VG_PLAYING,e.pause(),e.api.medias[t].pause(),e.api.medias[t].currentTime=e.currentTime):e.playAtferSync&&(e.play(),e.api.medias[t].play(),e.playAtferSync=!1)}}))}},{key:"onMutation",value:function(e){for(var t=0,i=e.length;t0&&n.target.src.indexOf("blob:")<0){this.loadMedia();break}}else if("childList"===n.type&&n.removedNodes.length&&"source"===n.removedNodes[0].nodeName.toLowerCase()){this.loadMedia();break}}}},{key:"loadMedia",value:function(){var e=this;this.vgMedia.pause(),this.vgMedia.currentTime=0,this.stopBufferCheck(),this.isBufferDetected=!0,this.bufferDetected.next(this.isBufferDetected),setTimeout((function(){return e.vgMedia.load()}),10)}},{key:"play",value:function(){var e=this;if(!(this.playPromise||this.state!==RF.VG_PAUSED&&this.state!==RF.VG_ENDED))return this.playPromise=this.vgMedia.play(),this.playPromise&&this.playPromise.then&&this.playPromise.catch&&this.playPromise.then((function(){e.playPromise=null})).catch((function(){e.playPromise=null})),this.playPromise}},{key:"pause",value:function(){var e=this;this.playPromise?this.playPromise.then((function(){e.vgMedia.pause()})):this.vgMedia.pause()}},{key:"onCanPlay",value:function(e){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlay=!0,this.ref.detectChanges()}},{key:"onCanPlayThrough",value:function(e){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlayThrough=!0,this.ref.detectChanges()}},{key:"onLoadMetadata",value:function(e){this.isMetadataLoaded=!0,this.time={current:0,left:0,total:1e3*this.duration},this.state=RF.VG_PAUSED;var t=Math.round(this.time.total);this.isLive=t===1/0,this.ref.detectChanges()}},{key:"onWait",value:function(e){this.isWaiting=!0,this.ref.detectChanges()}},{key:"onComplete",value:function(e){this.isCompleted=!0,this.state=RF.VG_ENDED,this.ref.detectChanges()}},{key:"onStartPlaying",value:function(e){this.state=RF.VG_PLAYING,this.ref.detectChanges()}},{key:"onPlay",value:function(e){this.state=RF.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}},{key:"onPause",value:function(e){this.state=RF.VG_PAUSED,this.vgMaster&&(this.playAtferSync||this.syncSubscription.unsubscribe()),this.stopBufferCheck(),this.ref.detectChanges()}},{key:"onTimeUpdate",value:function(e){var t=this.buffered.length-1;this.time={current:1e3*this.currentTime,total:this.time.total,left:1e3*(this.duration-this.currentTime)},t>=0&&(this.buffer={end:1e3*this.buffered.end(t)}),this.ref.detectChanges()}},{key:"onProgress",value:function(e){var t=this.buffered.length-1;t>=0&&(this.buffer={end:1e3*this.buffered.end(t)}),this.ref.detectChanges()}},{key:"onVolumeChange",value:function(e){this.ref.detectChanges()}},{key:"onError",value:function(e){this.ref.detectChanges()}},{key:"bufferCheck",value:function(){var e=1/this.checkInterval;this.currentPlayPos=this.currentTime,!this.isBufferDetected&&this.currentPlayPosthis.lastPlayPos+e&&(this.isBufferDetected=!1),this.bufferDetected.closed||this.bufferDetected.next(this.isBufferDetected),this.lastPlayPos=this.currentPlayPos}},{key:"startBufferCheck",value:function(){var e=this;this.checkBufferSubscription=xl(0,this.checkInterval).subscribe((function(){e.bufferCheck()}))}},{key:"stopBufferCheck",value:function(){this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected)}},{key:"seekTime",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=i?e*this.duration/100:e,this.currentTime=t}},{key:"addTextTrack",value:function(e,t,i,n){var a=this.vgMedia.addTextTrack(e,t,i);return n&&(a.mode=n),a}},{key:"ngOnDestroy",value:function(){this.vgMedia.src="",this.mutationObs.unsubscribe(),this.canPlayObs.unsubscribe(),this.canPlayThroughObs.unsubscribe(),this.loadedMetadataObs.unsubscribe(),this.waitingObs.unsubscribe(),this.progressObs.unsubscribe(),this.endedObs.unsubscribe(),this.playingObs.unsubscribe(),this.playObs.unsubscribe(),this.pauseObs.unsubscribe(),this.timeUpdateObs.unsubscribe(),this.volumeChangeObs.unsubscribe(),this.errorObs.unsubscribe(),this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.syncSubscription&&this.syncSubscription.unsubscribe(),this.bufferDetected.complete(),this.bufferDetected.unsubscribe(),this.api.unregisterMedia(this)}},{key:"id",get:function(){var e=void 0;return this.vgMedia&&(e=this.vgMedia.id),e}},{key:"duration",get:function(){return this.vgMedia.duration}},{key:"currentTime",set:function(e){this.vgMedia.currentTime=e},get:function(){return this.vgMedia.currentTime}},{key:"volume",set:function(e){this.vgMedia.volume=e},get:function(){return this.vgMedia.volume}},{key:"playbackRate",set:function(e){this.vgMedia.playbackRate=e},get:function(){return this.vgMedia.playbackRate}},{key:"buffered",get:function(){return this.vgMedia.buffered}},{key:"textTracks",get:function(){return this.vgMedia.textTracks}}]),e}()).\u0275fac=function(e){return new(e||cF)(a.Dc(MF),a.Dc(a.j))},cF.\u0275dir=a.yc({type:cF,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),cF),nN=((sF=function(){function e(t){_classCallCheck(this,e),this.ref=t,this.onEnterCuePoint=new a.u,this.onUpdateCuePoint=new a.u,this.onExitCuePoint=new a.u,this.onCompleteCuePoint=new a.u,this.subscriptions=[],this.cuesSubscriptions=[],this.totalCues=0}return _createClass(e,[{key:"ngOnInit",value:function(){this.onLoad$=rl(this.ref.nativeElement,tN.VG_LOAD),this.subscriptions.push(this.onLoad$.subscribe(this.onLoad.bind(this)))}},{key:"onLoad",value:function(e){if(e.target&&e.target.track){var t=e.target.track.cues;this.ref.nativeElement.cues=t,this.updateCuePoints(t)}else if(e.target&&e.target.textTracks&&e.target.textTracks.length){var i=e.target.textTracks[0].cues;this.ref.nativeElement.cues=i,this.updateCuePoints(i)}}},{key:"updateCuePoints",value:function(e){this.cuesSubscriptions.forEach((function(e){return e.unsubscribe()}));for(var t=0,i=e.length;t1),a.pc(1),a.gd("ngIf",1===r.playlist.length)}}PF=$localize(_templateObject200());var _N,yN,kN=((_N=function(){function e(t,i,n,a,r){_classCallCheck(this,e),this.postsService=t,this.route=i,this.dialog=n,this.router=a,this.snackBar=r,this.playlist=[],this.original_playlist=null,this.playlist_updating=!1,this.show_player=!1,this.currentIndex=0,this.currentItem=null,this.id=null,this.uid=null,this.subscriptionName=null,this.subPlaylist=null,this.uuid=null,this.timestamp=null,this.is_shared=!1,this.db_playlist=null,this.db_file=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=null,this.sharingEnabled=null,this.url=null,this.name=null,this.downloading=!1,this.original_volume=null}return _createClass(e,[{key:"onResize",value:function(e){this.innerWidth=window.innerWidth}},{key:"ngOnInit",value:function(){var e=this;this.innerWidth=window.innerWidth,this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.uid=this.route.snapshot.paramMap.get("uid"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),this.url=this.route.snapshot.paramMap.get("url"),this.name=this.route.snapshot.paramMap.get("name"),this.uuid=this.route.snapshot.paramMap.get("uuid"),this.timestamp=this.route.snapshot.paramMap.get("timestamp"),this.postsService.initialized?this.processConfig():this.postsService.service_initialized.subscribe((function(t){t&&e.processConfig()}))}},{key:"processConfig",value:function(){this.baseStreamPath=this.postsService.path,this.audioFolderPath=this.postsService.config.Downloader["path-audio"],this.videoFolderPath=this.postsService.config.Downloader["path-video"],this.subscriptionFolderPath=this.postsService.config.Subscriptions.subscriptions_base_path,this.fileNames=this.route.snapshot.paramMap.get("fileNames")?this.route.snapshot.paramMap.get("fileNames").split("|nvr|"):null,this.fileNames||this.type||(this.is_shared=!0),this.uid&&!this.id?this.getFile():this.id&&this.getPlaylistFiles(),this.url?(this.playlist=[],this.playlist.push({title:this.name,label:this.name,src:this.url,type:"video/mp4"}),this.currentItem=this.playlist[0],this.currentIndex=0,this.show_player=!0):(this.subscriptionName||this.fileNames)&&(this.show_player=!0,this.parseFileNames())}},{key:"getFile",value:function(){var e=this,t=!!this.fileNames;this.postsService.getFile(this.uid,null,this.uuid).subscribe((function(i){e.db_file=i.file,e.db_file?(e.sharingEnabled=e.db_file.sharingEnabled,e.fileNames||e.id||(e.fileNames=[e.db_file.id],e.type=e.db_file.isAudio?"audio":"video",t||e.parseFileNames()),e.db_file.sharingEnabled||!e.uuid?e.show_player=!0:t||e.openSnackBar("Error: Sharing has been disabled for this video!","Dismiss")):e.openSnackBar("Failed to get file information from the server.","Dismiss")}))}},{key:"getPlaylistFiles",value:function(){var e=this;this.postsService.getPlaylist(this.id,null,this.uuid).subscribe((function(t){t.playlist?(e.db_playlist=t.playlist,e.fileNames=e.db_playlist.fileNames,e.type=t.type,e.show_player=!0,e.parseFileNames()):e.openSnackBar("Failed to load playlist!","")}),(function(t){e.openSnackBar("Failed to load playlist!","")}))}},{key:"parseFileNames",value:function(){var e=null;"audio"===this.type?e="audio/mp3":"video"===this.type?e="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'."),this.playlist=[];for(var t=0;t0&&t.show_player)},directives:[yt.t,yt.q,aN,iN,vc,xx,yt.s,_c,fx,Za,_m,jv],styles:[".video-player[_ngcontent-%COMP%]{margin:0 auto;min-width:300px}.video-player[_ngcontent-%COMP%]:focus{outline:none}.audio-styles[_ngcontent-%COMP%]{height:50px;background-color:transparent;width:100%}.video-styles[_ngcontent-%COMP%]{width:100%} .mat-button-toggle-label-content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.container-video[_ngcontent-%COMP%]{max-width:100%;padding-left:0;padding-right:0}.progress-bar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:-1px}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:fixed;bottom:25px}.favorite-button[_ngcontent-%COMP%], .share-button[_ngcontent-%COMP%]{left:25px;position:fixed;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px;height:100%}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}.update-playlist-button-div[_ngcontent-%COMP%]{float:right;margin-right:30px;margin-top:25px;margin-bottom:15px}.spinner-div[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-right:12px;top:8px}"]}),_N);yN=$localize(_templateObject201());var wN,CN=["placeholder",$localize(_templateObject202())];wN=$localize(_templateObject203());var xN,SN,IN,ON=["placeholder",$localize(_templateObject204())];xN=$localize(_templateObject205()),SN=$localize(_templateObject206()),IN=$localize(_templateObject207());var DN,EN=["placeholder",$localize(_templateObject208())];DN=$localize(_templateObject209());var AN,TN,PN,RN,MN,LN=["placeholder",$localize(_templateObject210())];function jN(e,t){if(1&e&&(a.Jc(0,"mat-option",22),a.Bd(1),a.Ic()),2&e){var i=t.$implicit,n=a.ad(2);a.gd("value",i+(1===n.timerange_amount?"":"s")),a.pc(1),a.Dd(" ",i+(1===n.timerange_amount?"":"s")," ")}}function FN(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",6),a.Hc(1),a.Nc(2,MN),a.Gc(),a.Jc(3,"mat-form-field",18),a.Jc(4,"input",19),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().timerange_amount=e})),a.Ic(),a.Ic(),a.Jc(5,"mat-select",20),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().timerange_unit=e})),a.zd(6,jN,2,2,"mat-option",21),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(4),a.gd("ngModel",n.timerange_amount),a.pc(1),a.gd("ngModel",n.timerange_unit),a.pc(1),a.gd("ngForOf",n.time_units)}}function NN(e,t){1&e&&(a.Jc(0,"div",23),a.Ec(1,"mat-spinner",24),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",25))}AN=$localize(_templateObject211()),TN=$localize(_templateObject212()),PN=$localize(_templateObject213()),RN=$localize(_templateObject214()),MN=$localize(_templateObject215());var zN,BN,JN,VN,HN,UN,GN,WN,qN=((zN=function(){function e(t,i,n,a){_classCallCheck(this,e),this.postsService=t,this.snackBar=i,this.dialog=n,this.dialogRef=a,this.timerange_unit="days",this.download_all=!0,this.url=null,this.name=null,this.subscribing=!1,this.streamingOnlyMode=!1,this.audioOnlyMode=!1,this.customFileOutput="",this.customArgs="",this.time_units=["day","week","month","year"]}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"subscribeClicked",value:function(){var e=this;if(this.url&&""!==this.url){if(!this.download_all&&!this.timerange_amount)return void this.openSnackBar("You must specify an amount of time");this.subscribing=!0;var t=null;this.download_all||(t="now-"+this.timerange_amount.toString()+this.timerange_unit),this.postsService.createSubscription(this.url,this.name,t,this.streamingOnlyMode,this.audioOnlyMode,this.customArgs,this.customFileOutput).subscribe((function(t){e.subscribing=!1,t.new_sub?e.dialogRef.close(t.new_sub):(t.error&&e.openSnackBar("ERROR: "+t.error),e.dialogRef.close())}))}}},{key:"openArgsModifierDialog",value:function(){var e=this;this.dialog.open(QD,{data:{initial_args:this.customArgs}}).afterClosed().subscribe((function(t){null!=t&&(e.customArgs=t)}))}},{key:"openSnackBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||zN)(a.Dc(YO),a.Dc(A_),a.Dc(Th),a.Dc(Ih))},zN.\u0275cmp=a.xc({type:zN,selectors:[["app-subscribe-dialog"]],decls:63,vars:11,consts:[["mat-dialog-title",""],[1,"container-fluid"],[1,"row"],[1,"col-12","mb-4"],["color","accent"],["matInput","","required","","aria-required","true",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-3"],[3,"ngModel","ngModelChange"],["class","col-12",4,"ngIf"],[3,"disabled","ngModel","ngModelChange"],[1,"col-12","mb-3"],["mat-icon-button","",1,"args-edit-button",3,"click"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],["color","accent",2,"width","50px","text-align","center"],["type","number","matInput","",3,"ngModel","ngModelChange"],["color","accent",1,"unit-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-spinner"],[3,"diameter"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Nc(1,yN),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div",1),a.Jc(4,"div",2),a.Jc(5,"div",3),a.Jc(6,"mat-form-field",4),a.Jc(7,"input",5),a.Pc(8,CN),a.Wc("ngModelChange",(function(e){return t.url=e})),a.Ic(),a.Jc(9,"mat-hint"),a.Hc(10),a.Nc(11,wN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ec(12,"mat-divider"),a.Jc(13,"div",1),a.Jc(14,"div",2),a.Jc(15,"div",6),a.Jc(16,"mat-form-field",4),a.Jc(17,"input",7),a.Pc(18,ON),a.Wc("ngModelChange",(function(e){return t.name=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(19,"div",8),a.Jc(20,"mat-checkbox",9),a.Wc("ngModelChange",(function(e){return t.download_all=e})),a.Hc(21),a.Nc(22,xN),a.Gc(),a.Ic(),a.Ic(),a.zd(23,FN,7,3,"div",10),a.Jc(24,"div",6),a.Jc(25,"div"),a.Jc(26,"mat-checkbox",9),a.Wc("ngModelChange",(function(e){return t.audioOnlyMode=e})),a.Hc(27),a.Nc(28,SN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(29,"div",6),a.Jc(30,"div"),a.Jc(31,"mat-checkbox",11),a.Wc("ngModelChange",(function(e){return t.streamingOnlyMode=e})),a.Hc(32),a.Nc(33,IN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(34,"div",12),a.Jc(35,"mat-form-field",4),a.Jc(36,"input",7),a.Pc(37,EN),a.Wc("ngModelChange",(function(e){return t.customArgs=e})),a.Ic(),a.Jc(38,"button",13),a.Wc("click",(function(){return t.openArgsModifierDialog()})),a.Jc(39,"mat-icon"),a.Bd(40,"edit"),a.Ic(),a.Ic(),a.Jc(41,"mat-hint"),a.Hc(42),a.Nc(43,DN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Jc(44,"div",6),a.Jc(45,"mat-form-field",4),a.Jc(46,"input",7),a.Pc(47,LN),a.Wc("ngModelChange",(function(e){return t.customFileOutput=e})),a.Ic(),a.Jc(48,"mat-hint"),a.Jc(49,"a",14),a.Hc(50),a.Nc(51,AN),a.Gc(),a.Ic(),a.Bd(52,". "),a.Hc(53),a.Nc(54,TN),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(55,"mat-dialog-actions"),a.Jc(56,"button",15),a.Hc(57),a.Nc(58,PN),a.Gc(),a.Ic(),a.Jc(59,"button",16),a.Wc("click",(function(){return t.subscribeClicked()})),a.Hc(60),a.Nc(61,RN),a.Gc(),a.Ic(),a.zd(62,NN,2,1,"div",17),a.Ic()),2&e&&(a.pc(7),a.gd("ngModel",t.url),a.pc(10),a.gd("ngModel",t.name),a.pc(3),a.gd("ngModel",t.download_all),a.pc(3),a.gd("ngIf",!t.download_all),a.pc(3),a.gd("ngModel",t.audioOnlyMode),a.pc(5),a.gd("disabled",t.audioOnlyMode)("ngModel",t.streamingOnlyMode),a.pc(5),a.gd("ngModel",t.customArgs),a.pc(10),a.gd("ngModel",t.customFileOutput),a.pc(13),a.gd("disabled",!t.url),a.pc(3),a.gd("ngIf",t.subscribing))},directives:[Mh,Lh,Ud,Pm,_r,Ks,Dr,es,Ld,Mm,Yc,yt.t,Za,_m,jh,Rh,Gr,mb,yt.s,za,jv],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}.args-edit-button[_ngcontent-%COMP%]{position:absolute;margin-left:10px}"]}),zN);function $N(e,t){if(1&e&&(a.Jc(0,"div",1),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,WN),a.Gc(),a.Bd(4,"\xa0"),a.Ic(),a.Jc(5,"span",2),a.Bd(6),a.Ic(),a.Ic()),2&e){var i=a.ad();a.pc(6),a.Cd(i.sub.archive)}}BN=$localize(_templateObject216()),JN=$localize(_templateObject217()),VN=$localize(_templateObject218()),HN=$localize(_templateObject219()),UN=$localize(_templateObject220()),GN=$localize(_templateObject221()),WN=$localize(_templateObject222());var KN,XN,YN,ZN,QN,ez,tz,iz,nz=((KN=function(){function e(t,i,n){_classCallCheck(this,e),this.dialogRef=t,this.data=i,this.postsService=n,this.sub=null,this.unsubbedEmitter=null}return _createClass(e,[{key:"ngOnInit",value:function(){this.data&&(this.sub=this.data.sub,this.unsubbedEmitter=this.data.unsubbedEmitter)}},{key:"unsubscribe",value:function(){var e=this;this.postsService.unsubscribe(this.sub,!0).subscribe((function(t){e.unsubbedEmitter.emit(!0),e.dialogRef.close()}))}},{key:"downloadArchive",value:function(){this.postsService.downloadArchive(this.sub).subscribe((function(e){saveAs(e,"archive.txt")}))}}]),e}()).\u0275fac=function(e){return new(e||KN)(a.Dc(Ih),a.Dc(Oh),a.Dc(YO))},KN.\u0275cmp=a.xc({type:KN,selectors:[["app-subscription-info-dialog"]],decls:36,vars:5,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-value"],["class","info-item",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","","color","accent",3,"click"],[1,"spacer"],["mat-button","","color","warn",3,"click"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Bd(1),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div",1),a.Jc(4,"strong"),a.Hc(5),a.Nc(6,BN),a.Gc(),a.Bd(7,"\xa0"),a.Ic(),a.Jc(8,"span",2),a.Bd(9),a.Ic(),a.Ic(),a.Jc(10,"div",1),a.Jc(11,"strong"),a.Hc(12),a.Nc(13,JN),a.Gc(),a.Bd(14,"\xa0"),a.Ic(),a.Jc(15,"span",2),a.Bd(16),a.Ic(),a.Ic(),a.Jc(17,"div",1),a.Jc(18,"strong"),a.Hc(19),a.Nc(20,VN),a.Gc(),a.Bd(21,"\xa0"),a.Ic(),a.Jc(22,"span",2),a.Bd(23),a.Ic(),a.Ic(),a.zd(24,$N,7,1,"div",3),a.Ic(),a.Jc(25,"mat-dialog-actions"),a.Jc(26,"button",4),a.Hc(27),a.Nc(28,HN),a.Gc(),a.Ic(),a.Jc(29,"button",5),a.Wc("click",(function(){return t.downloadArchive()})),a.Hc(30),a.Nc(31,UN),a.Gc(),a.Ic(),a.Ec(32,"span",6),a.Jc(33,"button",7),a.Wc("click",(function(){return t.unsubscribe()})),a.Hc(34),a.Nc(35,GN),a.Gc(),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.Cd(t.sub.name),a.pc(8),a.Cd(t.sub.isPlaylist?"Playlist":"Channel"),a.pc(7),a.Cd(t.sub.url),a.pc(7),a.Cd(t.sub.id),a.pc(1),a.gd("ngIf",t.sub.archive))},directives:[Mh,Lh,yt.t,jh,Za,Rh],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px}.info-item-value[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),KN);function az(e,t){if(1&e&&(a.Jc(0,"strong"),a.Bd(1),a.Ic()),2&e){var i=a.ad().$implicit;a.pc(1),a.Cd(i.name)}}function rz(e,t){1&e&&(a.Jc(0,"div"),a.Hc(1),a.Nc(2,QN),a.Gc(),a.Ic())}function oz(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-list-item"),a.Jc(1,"a",9),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad().goToSubscription(e)})),a.zd(2,az,2,1,"strong",10),a.zd(3,rz,3,0,"div",10),a.Ic(),a.Jc(4,"button",11),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad().showSubInfo(e)})),a.Jc(5,"mat-icon"),a.Bd(6,"info"),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit;a.pc(2),a.gd("ngIf",n.name),a.pc(1),a.gd("ngIf",!n.name)}}function sz(e,t){1&e&&(a.Jc(0,"div",12),a.Jc(1,"p"),a.Nc(2,ez),a.Ic(),a.Ic())}function cz(e,t){1&e&&(a.Jc(0,"div",14),a.Hc(1),a.Nc(2,tz),a.Gc(),a.Ic())}function lz(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-list-item"),a.Jc(1,"a",9),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad().goToSubscription(e)})),a.Jc(2,"strong"),a.Bd(3),a.Ic(),a.zd(4,cz,3,0,"div",13),a.Ic(),a.Jc(5,"button",11),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad().showSubInfo(e)})),a.Jc(6,"mat-icon"),a.Bd(7,"info"),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit;a.pc(3),a.Cd(n.name),a.pc(1),a.gd("ngIf",!n.name)}}function uz(e,t){1&e&&(a.Jc(0,"div",12),a.Jc(1,"p"),a.Nc(2,iz),a.Ic(),a.Ic())}function dz(e,t){1&e&&(a.Jc(0,"div",15),a.Ec(1,"mat-progress-bar",16),a.Ic())}XN=$localize(_templateObject223()),YN=$localize(_templateObject224()),ZN=$localize(_templateObject225()),QN=$localize(_templateObject226()),ez=$localize(_templateObject227()),tz=$localize(_templateObject228()),iz=$localize(_templateObject229());var hz,pz,fz,mz,gz,vz=((hz=function(){function e(t,i,n,a){_classCallCheck(this,e),this.dialog=t,this.postsService=i,this.router=n,this.snackBar=a,this.playlist_subscriptions=[],this.channel_subscriptions=[],this.subscriptions=null,this.subscriptions_loading=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.postsService.initialized&&this.getSubscriptions(),this.postsService.service_initialized.subscribe((function(t){t&&e.getSubscriptions()}))}},{key:"getSubscriptions",value:function(){var e=this;this.subscriptions_loading=!0,this.subscriptions=null,this.postsService.getAllSubscriptions().subscribe((function(t){if(e.channel_subscriptions=[],e.playlist_subscriptions=[],e.subscriptions_loading=!1,e.subscriptions=t.subscriptions,e.subscriptions)for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||hz)(a.Dc(Th),a.Dc(YO),a.Dc(bO),a.Dc(A_))},hz.\u0275cmp=a.xc({type:hz,selectors:[["app-subscriptions"]],decls:19,vars:5,consts:[[2,"text-align","center","margin-bottom","15px"],[2,"width","80%","margin","0 auto"],[2,"text-align","center"],[1,"sub-nav-list"],[4,"ngFor","ngForOf"],["style","width: 80%; margin: 0 auto; padding-left: 15px;",4,"ngIf"],[2,"text-align","center","margin-top","10px"],["style","margin: 0 auto; width: 80%",4,"ngIf"],["mat-fab","",1,"add-subscription-button",3,"click"],["matLine","","href","javascript:void(0)",1,"a-list-item",3,"click"],[4,"ngIf"],["mat-icon-button","",3,"click"],[2,"width","80%","margin","0 auto","padding-left","15px"],["class","content-loading-div",4,"ngIf"],[1,"content-loading-div"],[2,"margin","0 auto","width","80%"],["mode","indeterminate"]],template:function(e,t){1&e&&(a.Ec(0,"br"),a.Jc(1,"h2",0),a.Nc(2,XN),a.Ic(),a.Ec(3,"mat-divider",1),a.Ec(4,"br"),a.Jc(5,"h4",2),a.Nc(6,YN),a.Ic(),a.Jc(7,"mat-nav-list",3),a.zd(8,oz,7,2,"mat-list-item",4),a.Ic(),a.zd(9,sz,3,0,"div",5),a.Jc(10,"h4",6),a.Nc(11,ZN),a.Ic(),a.Jc(12,"mat-nav-list",3),a.zd(13,lz,8,2,"mat-list-item",4),a.Ic(),a.zd(14,uz,3,0,"div",5),a.zd(15,dz,2,0,"div",7),a.Jc(16,"button",8),a.Wc("click",(function(){return t.openSubscribeDialog()})),a.Jc(17,"mat-icon"),a.Bd(18,"add"),a.Ic(),a.Ic()),2&e&&(a.pc(8),a.gd("ngForOf",t.channel_subscriptions),a.pc(1),a.gd("ngIf",0===t.channel_subscriptions.length&&t.subscriptions),a.pc(4),a.gd("ngForOf",t.playlist_subscriptions),a.pc(1),a.gd("ngIf",0===t.playlist_subscriptions.length&&t.subscriptions),a.pc(1),a.gd("ngIf",t.subscriptions_loading))},directives:[Mm,eg,yt.s,yt.t,Za,_m,og,ha,_v],styles:[".add-subscription-button[_ngcontent-%COMP%]{position:fixed;bottom:30px;right:30px}.subscription-card[_ngcontent-%COMP%]{height:200px;width:300px}.content-loading-div[_ngcontent-%COMP%]{position:absolute;width:200px;height:50px;bottom:-18px}.a-list-item[_ngcontent-%COMP%]{height:48px;padding-top:12px!important}.sub-nav-list[_ngcontent-%COMP%]{margin:0 auto;width:80%}"]}),hz);function bz(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",4),a.Wc("click",(function(){return a.rd(i),a.ad().deleteForever()})),a.Jc(1,"mat-icon"),a.Bd(2,"delete_forever"),a.Ic(),a.Hc(3),a.Nc(4,gz),a.Gc(),a.Ic()}}function _z(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",10),a.Jc(1,"img",11),a.Wc("error",(function(e){return a.rd(i),a.ad().onImgError(e)})),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(1),a.gd("src",n.file.thumbnailURL,a.td)}}pz=$localize(_templateObject230()),fz=$localize(_templateObject231()),mz=$localize(_templateObject232()),gz=$localize(_templateObject233());var yz,kz,wz=((yz=function(){function e(t,i,n){_classCallCheck(this,e),this.snackBar=t,this.postsService=i,this.dialog=n,this.image_errored=!1,this.image_loaded=!1,this.formattedDuration=null,this.use_youtubedl_archive=!1,this.goToFileEmit=new a.u,this.reloadSubscription=new a.u,this.scrollSubject=new Lt.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}return _createClass(e,[{key:"ngOnInit",value:function(){var e,t,i,n,a;this.file.duration&&(this.formattedDuration=(e=this.file.duration,i=~~(e%3600/60),a="",(t=~~(e/3600))>0&&(a+=t+":"+(i<10?"0":"")),a+=i+":"+((n=~~e%60)<10?"0":""),a+=""+n))}},{key:"onImgError",value:function(e){this.image_errored=!0}},{key:"onHoverResponse",value:function(){this.scrollSubject.next()}},{key:"imageLoaded",value:function(e){this.image_loaded=!0}},{key:"goToFile",value:function(){this.goToFileEmit.emit({name:this.file.id,url:this.file.requested_formats?this.file.requested_formats[0].url:this.file.url})}},{key:"openSubscriptionInfoDialog",value:function(){this.dialog.open(FL,{data:{file:this.file},minWidth:"50vw"})}},{key:"deleteAndRedownload",value:function(){var e=this;this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!1,this.file.uid).subscribe((function(t){e.reloadSubscription.emit(!0),e.openSnackBar("Successfully deleted file: '".concat(e.file.id,"'"),"Dismiss.")}))}},{key:"deleteForever",value:function(){var e=this;this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!0,this.file.uid).subscribe((function(t){e.reloadSubscription.emit(!0),e.openSnackBar("Successfully deleted file: '".concat(e.file.id,"'"),"Dismiss.")}))}},{key:"openSnackBar",value:function(e,t){this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||yz)(a.Dc(A_),a.Dc(YO),a.Dc(Th))},yz.\u0275cmp=a.xc({type:yz,selectors:[["app-subscription-file-card"]],inputs:{file:"file",sub:"sub",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{goToFileEmit:"goToFileEmit",reloadSubscription:"reloadSubscription"},decls:27,vars:5,consts:[[2,"position","relative","width","fit-content"],[1,"duration-time"],["mat-icon-button","",1,"menuButton",3,"matMenuTriggerFor"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["matRipple","",1,"example-card","mat-elevation-z6",3,"click"],[2,"padding","5px"],["class","img-div",4,"ngIf"],[1,"max-two-lines"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"src","error"]],template:function(e,t){if(1&e&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.Hc(2),a.Nc(3,pz),a.Gc(),a.Bd(4),a.Ic(),a.Jc(5,"button",2),a.Jc(6,"mat-icon"),a.Bd(7,"more_vert"),a.Ic(),a.Ic(),a.Jc(8,"mat-menu",null,3),a.Jc(10,"button",4),a.Wc("click",(function(){return t.openSubscriptionInfoDialog()})),a.Jc(11,"mat-icon"),a.Bd(12,"info"),a.Ic(),a.Hc(13),a.Nc(14,fz),a.Gc(),a.Ic(),a.Jc(15,"button",4),a.Wc("click",(function(){return t.deleteAndRedownload()})),a.Jc(16,"mat-icon"),a.Bd(17,"restore"),a.Ic(),a.Hc(18),a.Nc(19,mz),a.Gc(),a.Ic(),a.zd(20,bz,5,0,"button",5),a.Ic(),a.Jc(21,"mat-card",6),a.Wc("click",(function(){return t.goToFile()})),a.Jc(22,"div",7),a.zd(23,_z,2,1,"div",8),a.Jc(24,"span",9),a.Jc(25,"strong"),a.Bd(26),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()),2&e){var i=a.nd(9);a.pc(4),a.Dd("\xa0",t.formattedDuration," "),a.pc(1),a.gd("matMenuTriggerFor",i),a.pc(15),a.gd("ngIf",t.sub.archive&&t.use_youtubedl_archive),a.pc(3),a.gd("ngIf",!t.image_errored&&t.file.thumbnailURL),a.pc(3),a.Cd(t.file.title)}},directives:[Za,zg,_m,Lg,Eg,yt.t,Nc,Da],styles:[".example-card[_ngcontent-%COMP%]{width:200px;height:200px;padding:0;cursor:pointer}.menuButton[_ngcontent-%COMP%]{right:0;top:-1px;position:absolute;z-index:999}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:200px;height:112.5px;-o-object-fit:cover;object-fit:cover}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{max-height:80px;padding:0;margin:32px 0 0 -5px;width:calc(100% + 10px)}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:5px;position:absolute}.duration-time[_ngcontent-%COMP%]{position:absolute;left:5px;top:5px;z-index:99999}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:175px!important}.image[_ngcontent-%COMP%]{width:175px}}"]}),yz);function Cz(e,t){if(1&e&&(a.Jc(0,"h2",9),a.Bd(1),a.Ic()),2&e){var i=a.ad();a.pc(1),a.Dd(" ",i.subscription.name," ")}}kz=$localize(_templateObject234());var xz=["placeholder",$localize(_templateObject235())];function Sz(e,t){if(1&e&&(a.Jc(0,"mat-option",25),a.Bd(1),a.Ic()),2&e){var i=t.$implicit;a.gd("value",i.value),a.pc(1),a.Dd(" ",i.value.label," ")}}function Iz(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",26),a.Jc(1,"app-subscription-file-card",27),a.Wc("reloadSubscription",(function(){return a.rd(i),a.ad(2).getSubscription()}))("goToFileEmit",(function(e){return a.rd(i),a.ad(2).goToFile(e)})),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad(2);a.pc(1),a.gd("file",n)("sub",r.subscription)("use_youtubedl_archive",r.use_youtubedl_archive)}}function Oz(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"div",10),a.Jc(2,"div",11),a.Jc(3,"div",12),a.Jc(4,"mat-select",13),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().filterProperty=e}))("selectionChange",(function(e){return a.rd(i),a.ad().filterOptionChanged(e.value)})),a.zd(5,Sz,2,2,"mat-option",14),a.bd(6,"keyvalue"),a.Ic(),a.Ic(),a.Jc(7,"div",12),a.Jc(8,"button",15),a.Wc("click",(function(){return a.rd(i),a.ad().toggleModeChange()})),a.Jc(9,"mat-icon"),a.Bd(10),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ec(11,"div",16),a.Jc(12,"div",16),a.Jc(13,"h4",17),a.Nc(14,kz),a.Ic(),a.Ic(),a.Jc(15,"div",18),a.Jc(16,"mat-form-field",19),a.Jc(17,"input",20),a.Pc(18,xz),a.Wc("focus",(function(){return a.rd(i),a.ad().searchIsFocused=!0}))("blur",(function(){return a.rd(i),a.ad().searchIsFocused=!1}))("ngModelChange",(function(e){return a.rd(i),a.ad().search_text=e}))("ngModelChange",(function(e){return a.rd(i),a.ad().onSearchInputChanged(e)})),a.Ic(),a.Jc(19,"mat-icon",21),a.Bd(20,"search"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(21,"div",22),a.Jc(22,"div",23),a.zd(23,Iz,2,3,"div",24),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(4),a.gd("ngModel",n.filterProperty),a.pc(1),a.gd("ngForOf",a.cd(6,6,n.filterProperties)),a.pc(5),a.Cd(n.descendingMode?"arrow_downward":"arrow_upward"),a.pc(6),a.gd("ngClass",n.searchIsFocused?"search-bar-focused":"search-bar-unfocused"),a.pc(1),a.gd("ngModel",n.search_text),a.pc(6),a.gd("ngForOf",n.filtered_files)}}function Dz(e,t){1&e&&a.Ec(0,"mat-spinner",28),2&e&&a.gd("diameter",50)}var Ez,Az,Tz,Pz=((Ez=function(){function e(t,i,n){_classCallCheck(this,e),this.postsService=t,this.route=i,this.router=n,this.id=null,this.subscription=null,this.files=null,this.filtered_files=null,this.use_youtubedl_archive=!1,this.search_mode=!1,this.search_text="",this.searchIsFocused=!1,this.descendingMode=!0,this.filterProperties={upload_date:{key:"upload_date",label:"Upload Date",property:"upload_date"},name:{key:"name",label:"Name",property:"title"},file_size:{key:"file_size",label:"File Size",property:"size"},duration:{key:"duration",label:"Duration",property:"duration"}},this.filterProperty=this.filterProperties.upload_date,this.downloading=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.route.snapshot.paramMap.get("id")&&(this.id=this.route.snapshot.paramMap.get("id"),this.postsService.service_initialized.subscribe((function(t){t&&(e.getConfig(),e.getSubscription())})));var t=localStorage.getItem("filter_property");t&&this.filterProperties[t]&&(this.filterProperty=this.filterProperties[t])}},{key:"goBack",value:function(){this.router.navigate(["/subscriptions"])}},{key:"getSubscription",value:function(){var e=this;this.postsService.getSubscription(this.id).subscribe((function(t){e.subscription=t.subscription,e.files=t.files,e.search_mode?e.filterFiles(e.search_text):e.filtered_files=e.files,e.filterByProperty(e.filterProperty.property)}))}},{key:"getConfig",value:function(){this.use_youtubedl_archive=this.postsService.config.Subscriptions.subscriptions_use_youtubedl_archive}},{key:"goToFile",value:function(e){var t=e.name,i=e.url;localStorage.setItem("player_navigator",this.router.url),this.router.navigate(this.subscription.streamingOnly?["/player",{name:t,url:i}]:["/player",{fileNames:t,type:this.subscription.type?this.subscription.type:"video",subscriptionName:this.subscription.name,subPlaylist:this.subscription.isPlaylist,uuid:this.postsService.user?this.postsService.user.uid:null}])}},{key:"onSearchInputChanged",value:function(e){e.length>0?(this.search_mode=!0,this.filterFiles(e)):this.search_mode=!1}},{key:"filterFiles",value:function(e){var t=e.toLowerCase();this.filtered_files=this.files.filter((function(e){return e.id.toLowerCase().includes(t)}))}},{key:"filterByProperty",value:function(e){this.filtered_files=this.filtered_files.sort(this.descendingMode?function(t,i){return t[e]>i[e]?-1:1}:function(t,i){return t[e]>i[e]?1:-1})}},{key:"filterOptionChanged",value:function(e){this.filterByProperty(e.property),localStorage.setItem("filter_property",e.key)}},{key:"toggleModeChange",value:function(){this.descendingMode=!this.descendingMode,this.filterByProperty(this.filterProperty.property)}},{key:"downloadContent",value:function(){for(var e=this,t=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||Mz)(a.Dc(YO),a.Dc(A_),a.Dc(bO))},Mz.\u0275cmp=a.xc({type:Mz,selectors:[["app-login"]],decls:14,vars:5,consts:[[1,"login-card"],[3,"selectedIndex","selectedIndexChange"],["label","Login"],[2,"margin-top","10px"],["matInput","","placeholder","User name",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange","keyup.enter"],[2,"margin-bottom","10px","margin-top","10px"],["color","primary","mat-raised-button","",3,"disabled","click"],["label","Register",4,"ngIf"],["label","Register"],["type","password","matInput","","placeholder","Password",3,"ngModel","ngModelChange"],["type","password","matInput","","placeholder","Confirm Password",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(a.Jc(0,"mat-card",0),a.Jc(1,"mat-tab-group",1),a.Wc("selectedIndexChange",(function(e){return t.selectedTabIndex=e})),a.Jc(2,"mat-tab",2),a.Jc(3,"div",3),a.Jc(4,"mat-form-field"),a.Jc(5,"input",4),a.Wc("ngModelChange",(function(e){return t.loginUsernameInput=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(6,"div"),a.Jc(7,"mat-form-field"),a.Jc(8,"input",5),a.Wc("ngModelChange",(function(e){return t.loginPasswordInput=e}))("keyup.enter",(function(){return t.login()})),a.Ic(),a.Ic(),a.Ic(),a.Jc(9,"div",6),a.Jc(10,"button",7),a.Wc("click",(function(){return t.login()})),a.Hc(11),a.Nc(12,Az),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.zd(13,Rz,14,4,"mat-tab",8),a.Ic(),a.Ic()),2&e&&(a.pc(1),a.gd("selectedIndex",t.selectedTabIndex),a.pc(4),a.gd("ngModel",t.loginUsernameInput),a.pc(3),a.gd("ngModel",t.loginPasswordInput),a.pc(2),a.gd("disabled",t.loggingIn),a.pc(3),a.gd("ngIf",t.registrationEnabled))},directives:[Nc,Ly,Sy,Ud,Pm,_r,Dr,es,Za,yt.t],styles:[".login-card[_ngcontent-%COMP%]{max-width:600px;width:80%;margin:20px auto 0}"]}),Mz);function Vz(e,t){1&e&&(a.Jc(0,"mat-icon",10),a.Bd(1,"done"),a.Ic())}function Hz(e,t){1&e&&(a.Jc(0,"mat-icon",11),a.Bd(1,"error"),a.Ic())}function Uz(e,t){if(1&e&&(a.Jc(0,"div"),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,Fz),a.Gc(),a.Ic(),a.Ec(4,"br"),a.Bd(5),a.Ic()),2&e){var i=a.ad(2);a.pc(5),a.Dd(" ",i.download.error," ")}}function Gz(e,t){if(1&e&&(a.Jc(0,"div"),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,Nz),a.Gc(),a.Ic(),a.Bd(4),a.bd(5,"date"),a.Ic()),2&e){var i=a.ad(2);a.pc(4),a.Dd("\xa0",a.dd(5,1,i.download.timestamp_start,"medium")," ")}}function Wz(e,t){if(1&e&&(a.Jc(0,"div"),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,zz),a.Gc(),a.Ic(),a.Bd(4),a.bd(5,"date"),a.Ic()),2&e){var i=a.ad(2);a.pc(4),a.Dd("\xa0",a.dd(5,1,i.download.timestamp_end,"medium")," ")}}function qz(e,t){if(1&e&&(a.Jc(0,"div"),a.Jc(1,"strong"),a.Hc(2),a.Nc(3,Bz),a.Gc(),a.Ic(),a.Bd(4),a.Ic()),2&e){var i=a.ad(2);a.pc(4),a.Dd("\xa0",i.download.fileNames.join(", ")," ")}}function $z(e,t){if(1&e&&(a.Jc(0,"mat-expansion-panel",12),a.Jc(1,"mat-expansion-panel-header"),a.Jc(2,"div"),a.Hc(3),a.Nc(4,jz),a.Gc(),a.Ic(),a.Jc(5,"div",13),a.Jc(6,"div",14),a.Jc(7,"mat-panel-description"),a.Bd(8),a.bd(9,"date"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.zd(10,Uz,6,1,"div",15),a.zd(11,Gz,6,4,"div",15),a.zd(12,Wz,6,4,"div",15),a.zd(13,qz,5,1,"div",15),a.Ic()),2&e){var i=a.ad();a.pc(8),a.Cd(a.dd(9,5,i.download.timestamp_start,"medium")),a.pc(2),a.gd("ngIf",i.download.error),a.pc(1),a.gd("ngIf",i.download.timestamp_start),a.pc(1),a.gd("ngIf",i.download.timestamp_end),a.pc(1),a.gd("ngIf",i.download.fileNames)}}Lz=$localize(_templateObject238()),jz=$localize(_templateObject239()),Fz=$localize(_templateObject240()),Nz=$localize(_templateObject241()),zz=$localize(_templateObject242()),Bz=$localize(_templateObject243());var Kz,Xz,Yz,Zz,Qz=((Kz=function(){function e(){_classCallCheck(this,e),this.download={uid:null,type:"audio",percent_complete:0,complete:!1,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,timestamp_start:null,timestamp_end:null,is_playlist:!1,error:!1},this.cancelDownload=new a.u,this.queueNumber=null,this.url_id=null}return _createClass(e,[{key:"ngOnInit",value:function(){if(this.download&&this.download.url&&this.download.url.includes("youtu")){var e=this.download.is_playlist?6:3,t=this.download.url.indexOf(this.download.is_playlist?"?list=":"?v=")+e;this.url_id=this.download.url.substring(t,this.download.url.length)}}},{key:"cancelTheDownload",value:function(){this.cancelDownload.emit(this.download)}}]),e}()).\u0275fac=function(e){return new(e||Kz)},Kz.\u0275cmp=a.xc({type:Kz,selectors:[["app-download-item"]],inputs:{download:"download",queueNumber:"queueNumber"},outputs:{cancelDownload:"cancelDownload"},decls:17,vars:11,consts:[[3,"rowHeight","cols"],[3,"colspan"],[2,"display","inline-block","text-align","center","width","100%"],[1,"shorten"],[3,"value","mode"],["style","margin-left: 25px; cursor: default","matTooltip","The download is complete","matTooltip-i18n","",4,"ngIf"],["style","margin-left: 25px; cursor: default","matTooltip","An error has occurred","matTooltip-i18n","",4,"ngIf"],["mat-icon-button","","color","warn",2,"margin-bottom","2px",3,"click"],["fontSet","material-icons-outlined"],["class","ignore-margin",4,"ngIf"],["matTooltip","The download is complete","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],["matTooltip","An error has occurred","matTooltip-i18n","",2,"margin-left","25px","cursor","default"],[1,"ignore-margin"],[2,"width","100%"],[2,"float","right"],[4,"ngIf"]],template:function(e,t){1&e&&(a.Jc(0,"div"),a.Jc(1,"mat-grid-list",0),a.Jc(2,"mat-grid-tile",1),a.Jc(3,"div",2),a.Jc(4,"span",3),a.Hc(5),a.Nc(6,Lz),a.Gc(),a.Bd(7),a.Ic(),a.Ic(),a.Ic(),a.Jc(8,"mat-grid-tile",1),a.Ec(9,"mat-progress-bar",4),a.zd(10,Vz,2,0,"mat-icon",5),a.zd(11,Hz,2,0,"mat-icon",6),a.Ic(),a.Jc(12,"mat-grid-tile",1),a.Jc(13,"button",7),a.Wc("click",(function(){return t.cancelTheDownload()})),a.Jc(14,"mat-icon",8),a.Bd(15,"cancel"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.zd(16,$z,14,8,"mat-expansion-panel",9),a.Ic()),2&e&&(a.pc(1),a.gd("rowHeight",50)("cols",24),a.pc(1),a.gd("colspan",7),a.pc(5),a.Dd("\xa0",t.url_id?t.url_id:t.download.uid,""),a.pc(1),a.gd("colspan",13),a.pc(1),a.gd("value",t.download.complete||t.download.error?100:t.download.percent_complete)("mode",t.download.complete||0!==t.download.percent_complete||t.download.error?"determinate":"indeterminate"),a.pc(1),a.gd("ngIf",t.download.complete),a.pc(1),a.gd("ngIf",t.download.error),a.pc(1),a.gd("colspan",4),a.pc(4),a.gd("ngIf",t.download.timestamp_start))},directives:[Kp,Rp,_v,yt.t,Za,_m,hv,kp,Cp,xp],pipes:[yt.f],styles:[".shorten[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}.mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}.ignore-margin[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px;margin-bottom:-15px}"]}),Kz);function eB(e,t){1&e&&(a.Jc(0,"span"),a.Bd(1,"\xa0"),a.Hc(2),a.Nc(3,Yz),a.Gc(),a.Ic())}function tB(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-card",11),a.Jc(1,"app-download-item",12),a.Wc("cancelDownload",(function(){a.rd(i);var e=a.ad().$implicit,t=a.ad(2).$implicit;return a.ad().clearDownload(t.key,e.value.uid)})),a.Ic(),a.Ic()}if(2&e){var n=a.ad(),r=n.$implicit,o=n.index;a.pc(1),a.gd("download",r.value)("queueNumber",o+1)}}function iB(e,t){if(1&e&&(a.Jc(0,"div",9),a.zd(1,tB,2,2,"mat-card",10),a.Ic()),2&e){var i=t.$implicit;a.pc(1),a.gd("ngIf",i.value)}}function nB(e,t){if(1&e){var i=a.Kc();a.Hc(0),a.Jc(1,"mat-card",3),a.Jc(2,"h4",4),a.Hc(3),a.Nc(4,Xz),a.Gc(),a.Bd(5),a.zd(6,eB,4,0,"span",2),a.Ic(),a.Jc(7,"div",5),a.Jc(8,"div",6),a.zd(9,iB,2,1,"div",7),a.bd(10,"keyvalue"),a.Ic(),a.Ic(),a.Jc(11,"div"),a.Jc(12,"button",8),a.Wc("click",(function(){a.rd(i);var e=a.ad().$implicit;return a.ad().clearDownloads(e.key)})),a.Bd(13,"Clear all downloads"),a.Ic(),a.Ic(),a.Ic(),a.Gc()}if(2&e){var n=a.ad().$implicit,r=a.ad();a.pc(5),a.Dd("\xa0",n.key," "),a.pc(1),a.gd("ngIf",n.key===r.postsService.session_id),a.pc(3),a.gd("ngForOf",a.dd(10,3,n.value,r.sort_downloads))}}function aB(e,t){if(1&e&&(a.Jc(0,"div"),a.zd(1,nB,14,6,"ng-container",2),a.Ic()),2&e){var i=t.$implicit,n=a.ad();a.pc(1),a.gd("ngIf",n.keys(i.value).length>0)}}function rB(e,t){1&e&&(a.Jc(0,"div"),a.Jc(1,"h4",4),a.Nc(2,Zz),a.Ic(),a.Ic())}Xz=$localize(_templateObject244()),Yz=$localize(_templateObject245()),Zz=$localize(_templateObject246());var oB,sB,cB,lB=((sB=function(){function e(t,i){_classCallCheck(this,e),this.postsService=t,this.router=i,this.downloads_check_interval=1e3,this.downloads={},this.interval_id=null,this.keys=Object.keys,this.valid_sessions_length=0,this.sort_downloads=function(e,t){return t.value.timestamp_start-e.value.timestamp_start}}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.getCurrentDownloads(),this.interval_id=setInterval((function(){e.getCurrentDownloads()}),this.downloads_check_interval),this.postsService.service_initialized.subscribe((function(t){t&&(e.postsService.config.Extra.enable_downloads_manager||e.router.navigate(["/home"]))}))}},{key:"ngOnDestroy",value:function(){this.interval_id&&clearInterval(this.interval_id)}},{key:"getCurrentDownloads",value:function(){var e=this;this.postsService.getCurrentDownloads().subscribe((function(t){t.downloads&&e.assignNewValues(t.downloads)}))}},{key:"clearDownload",value:function(e,t){this.postsService.clearDownloads(!1,e,t).subscribe((function(e){}))}},{key:"clearDownloads",value:function(e){var t=this;this.postsService.clearDownloads(!1,e).subscribe((function(e){e.success&&(t.downloads=e.downloads)}))}},{key:"clearAllDownloads",value:function(){var e=this;this.postsService.clearDownloads(!0).subscribe((function(t){t.success&&(e.downloads=t.downloads)}))}},{key:"assignNewValues",value:function(e){var t,i=this,n=Object.keys(e),a=_createForOfIteratorHelper(Object.keys(this.downloads).filter((function(e){return-1===n.indexOf(e)})));try{for(a.s();!(t=a.n()).done;){var r=t.value;delete this.downloads[r]}}catch(c){a.e(c)}finally{a.f()}for(var o=function(t){var a=n[t],r=e[a],o=Object.keys(r);if(i.downloads[a]){var s,l=_createForOfIteratorHelper(Object.keys(i.downloads[a]).filter((function(e){return-1===o.indexOf(e)})));try{for(l.s();!(s=l.n()).done;){var u=s.value;console.log("removing missing download id"),delete i.downloads[a][u]}}catch(c){l.e(c)}finally{l.f()}}if(i.downloads[a])for(var d=0;d0){e=!0;break}return e}}]),e}()).\u0275fac=function(e){return new(e||sB)(a.Dc(YO),a.Dc(bO))},sB.\u0275cmp=a.xc({type:sB,selectors:[["app-downloads"]],decls:4,vars:4,consts:[[2,"padding","20px"],[4,"ngFor","ngForOf"],[4,"ngIf"],[2,"padding-bottom","30px","margin-bottom","15px"],[2,"text-align","center"],[1,"container"],[1,"row"],["class","col-12 my-1",4,"ngFor","ngForOf"],["mat-stroked-button","","color","warn",2,"top","15px",3,"click"],[1,"col-12","my-1"],["class","mat-elevation-z3",4,"ngIf"],[1,"mat-elevation-z3"],[3,"download","queueNumber","cancelDownload"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.zd(1,aB,2,1,"div",1),a.bd(2,"keyvalue"),a.zd(3,rB,3,0,"div",2),a.Ic()),2&e&&(a.pc(1),a.gd("ngForOf",a.cd(2,2,t.downloads)),a.pc(2),a.gd("ngIf",t.downloads&&!t.downloadsValid()))},directives:[yt.s,yt.t,Nc,Za,Qz],pipes:[yt.l],styles:[""],data:{animation:[o("list",[p(":enter",[m("@items",(oB=f(),{type:12,timings:100,animation:oB}),{optional:!0})])]),o("items",[p(":enter",[u({transform:"scale(0.5)",opacity:0}),s("500ms cubic-bezier(.8,-0.6,0.2,1.5)",u({transform:"scale(1)",opacity:1}))]),p(":leave",[u({transform:"scale(1)",opacity:1,height:"*"}),s("1s cubic-bezier(.8,-0.6,0.2,1.5)",u({transform:"scale(0.5)",opacity:0,height:"0px",margin:"0px"}))])])]}}),sB),uB=[{path:"home",component:SL,canActivate:[YO]},{path:"player",component:kN,canActivate:[YO]},{path:"subscriptions",component:vz,canActivate:[YO]},{path:"subscription",component:Pz,canActivate:[YO]},{path:"login",component:Jz},{path:"downloads",component:lB},{path:"",redirectTo:"/home",pathMatch:"full"}],dB=((cB=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:cB}),cB.\u0275inj=a.Ac({factory:function(e){return new(e||cB)},imports:[[BO.forRoot(uB,{useHash:!0})],BO]}),cB),hB=i("2Yyj"),pB=i.n(hB);function fB(e){return"video"===e.element.id?wL||xL:kL||CL}Object(yt.K)(pB.a,"es");var mB,gB=((mB=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:mB,bootstrap:[NR]}),mB.\u0275inj=a.Ac({factory:function(e){return new(e||mB)},providers:[YO],imports:[[yt.c,n.a,Mt,ua,$v,cc,Rm,gb,lc,qf,j_,Jc,D_,er,il,Kb,ym,pg,Xp,Dp,wv,Fv,yc,Ea,Jg,Vh,d_,Jg,ph,qy,fv,ck,Sk,CC,zD,Sx,Ax,bE,rN,eN,sN,jF,Cj.forRoot({isVisible:fB}),BO,dB]]}),mB);a.ud(SL,[yt.q,yt.r,yt.s,yt.t,yt.A,yt.w,yt.x,yt.y,yt.z,yt.u,yt.v,Gv,qv,xn,ts,oo,po,_r,Gr,Xr,gr,ro,ho,$r,Dr,Er,Ks,tc,nc,rc,Xs,Qs,es,Yo,Wo,Cm,xm,Cd,Ud,Ld,jd,Fd,Nd,zd,Pm,Im,mb,fb,za,Ma,as,os,Ws,cs,us,L_,M_,Nc,zc,Bc,Oc,Dc,Ec,Ac,Tc,Rc,Mc,Lc,Pc,jc,Fc,O_,Za,Qa,Yc,Qc,Vb,Hb,Jb,Gb,qb,Ub,_m,ig,eg,og,ng,ha,ag,rg,Aa,hg,dg,Mm,Kp,Rp,Mp,jp,Fp,Lp,Ip,kp,wp,Cp,Sp,xp,bp,_v,Lv,jv,vc,_c,Da,Lg,Eg,zg,Ig,xh,Rh,Mh,Lh,jh,c_,o_,sh,hh,ch,Ly,ky,Sy,Hy,Wy,yy,hv,pv,sk,vk,xk,Xw,eC,lC,aC,Zw,pC,iC,dC,oC,cC,sC,mC,_C,vC,kC,LD,ED,FD,AD,OD,DD,xx,wx,fx,lx,dx,ux,Ex,vE,fE,iN,nN,aN,NF,JF,VF,HF,UF,GF,WF,qF,$F,KF,YF,ZF,QF,oN,LF,wj,EO,_O,yO,IO,bS,NR,Tj,SL,kN,jj,rM,Qz,vz,qN,Pz,wz,nz,WP,kD,oR,FL,QD,HE,LE,qj,Jz,lB,hR,SR,JA,ZE,hA,wA,SE,KA,VL],[yt.b,yt.G,yt.p,yt.k,yt.E,yt.g,yt.C,yt.F,yt.d,yt.f,yt.i,yt.j,yt.l,XF,ZD])},xDdU:function(e,t,i){var n,a,r=i("4fRq"),o=i("I2ZF"),s=0,c=0;e.exports=function(e,t,i){var l=t&&i||0,u=t||[],d=(e=e||{}).node||n,h=void 0!==e.clockseq?e.clockseq:a;if(null==d||null==h){var p=r();null==d&&(d=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=a=16383&(p[6]<<8|p[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,g=f-s+(m-c)/1e4;if(g<0&&void 0===e.clockseq&&(h=h+1&16383),(g<0||f>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=f,c=m,a=h;var v=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;u[l++]=v>>>24&255,u[l++]=v>>>16&255,u[l++]=v>>>8&255,u[l++]=255&v;var b=f/4294967296*1e4&268435455;u[l++]=b>>>8&255,u[l++]=255&b,u[l++]=b>>>24&15|16,u[l++]=b>>>16&255,u[l++]=h>>>8|128,u[l++]=255&h;for(var _=0;_<6;++_)u[l+_]=d[_];return t||o(u)}},xk4V:function(e,t,i){var n=i("4fRq"),a=i("I2ZF");e.exports=function(e,t,i){var r=t&&i||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var s=0;s<16;++s)t[r+s]=o[s];return t||a(o)}},zuWl:function(e,t,i){"use strict";!function(t){var i=/^(b|B)$/,n={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},a={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function r(e){var t,r,o,s,c,l,u,d,h,p,f,m,g,v,b,_=1 - + diff --git a/backend/public/runtime-es2015.8f98e80442a6fc46f61d.js b/backend/public/runtime-es2015.1f02852de81190376ba1.js similarity index 94% rename from backend/public/runtime-es2015.8f98e80442a6fc46f61d.js rename to backend/public/runtime-es2015.1f02852de81190376ba1.js index aad228c2..69e440e5 100644 --- a/backend/public/runtime-es2015.8f98e80442a6fc46f61d.js +++ b/backend/public/runtime-es2015.1f02852de81190376ba1.js @@ -1 +1 @@ -!function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],p=0,s=[];p - +
+ +
+ +
+ +
+ Lines:  + + + 10 + 25 + 50 + 100 + All + + +
+
\ No newline at end of file diff --git a/src/app/components/logs-viewer/logs-viewer.component.ts b/src/app/components/logs-viewer/logs-viewer.component.ts index e96337b5..92095226 100644 --- a/src/app/components/logs-viewer/logs-viewer.component.ts +++ b/src/app/components/logs-viewer/logs-viewer.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, OnInit, AfterViewInit } from '@angular/core'; import { PostsService } from '../../posts.services'; @Component({ @@ -9,7 +9,8 @@ import { PostsService } from '../../posts.services'; export class LogsViewerComponent implements OnInit { logs: string = null; - + requested_lines = 50; + logs_loading = false; constructor(private postsService: PostsService) { } ngOnInit(): void { @@ -17,16 +18,23 @@ export class LogsViewerComponent implements OnInit { } getLogs() { - this.postsService.getLogs().subscribe(res => { + if (!this.logs) { this.logs_loading = true; } // only show loading spinner at the first load + this.postsService.getLogs(this.requested_lines !== 0 ? this.requested_lines : null).subscribe(res => { + this.logs_loading = false; if (res['logs']) { this.logs = res['logs']; } else { this.postsService.openSnackBar('Failed to retrieve logs!'); } }, err => { + this.logs_loading = false; console.error(err); this.postsService.openSnackBar('Failed to retrieve logs!'); }); } + copiedLogsToClipboard() { + this.postsService.openSnackBar('Logs copied to clipboard!'); + } + } diff --git a/src/app/posts.services.ts b/src/app/posts.services.ts index 4e8b20a5..5a50d0b8 100644 --- a/src/app/posts.services.ts +++ b/src/app/posts.services.ts @@ -234,8 +234,8 @@ export class PostsService implements CanActivate { return this.http.post(this.path + 'getVideoInfos', {fileNames: fileNames, type: type, urlMode: urlMode}, this.httpOptions); } - getLogs() { - return this.http.get(this.path + 'logs', this.httpOptions); + getLogs(lines = 50) { + return this.http.post(this.path + 'logs', {lines: lines}, this.httpOptions); } isPinSet() {