You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
YoutubeDL-Material/backend/public/1-es5.6bc1f7cd24dfb6add92c.js

1 line
1.3 MiB

function _templateObject246(){var e=_taggedTemplateLiteral([":No downloads label\u241f7117fc42f860e86d983bfccfcf2654e5750f3406\u241f6454341788755868274:No downloads available!"]);return _templateObject246=function(){return e},e}function _templateObject245(){var e=_taggedTemplateLiteral([":Current session\u241feb98135e35af26a9a326ee69bd8ff104d36dd8ec\u241f2634265024545519524:(current)"]);return _templateObject245=function(){return e},e}function _templateObject244(){var e=_taggedTemplateLiteral([":Session ID\u241fa1ad8b1be9be43b5183bd2c3186d4e19496f2a0b\u241f98219539077594180:Session ID:"]);return _templateObject244=function(){return e},e}function _templateObject243(){var e=_taggedTemplateLiteral([":File path(s) label\u241fad127117f9471612f47d01eae09709da444a36a4\u241f3348508922595416508:File path(s):"]);return _templateObject243=function(){return e},e}function _templateObject242(){var e=_taggedTemplateLiteral([":Download end label\u241f08ff9375ec078065bcdd7637b7ea65fce2979266\u241f8797064057284793198:Download end:"]);return _templateObject242=function(){return e},e}function _templateObject241(){var e=_taggedTemplateLiteral([":Download start label\u241f77b0c73840665945b25bd128709aa64c8f017e1c\u241f2437792661281269671:Download start:"]);return _templateObject241=function(){return e},e}function _templateObject240(){var e=_taggedTemplateLiteral([":Error label\u241fe9aff8e6df2e2bf6299ea27bb2894c70bc48bd4d\u241f7911469195681429827:An error has occurred:"]);return _templateObject240=function(){return e},e}function _templateObject239(){var e=_taggedTemplateLiteral([":Details\u241f4f8b2bb476981727ab34ed40fde1218361f92c45\u241f5028777105388019087:Details"]);return _templateObject239=function(){return e},e}function _templateObject238(){var e=_taggedTemplateLiteral([":Download ID\u241fca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1\u241f1074038423230804155:ID:"]);return _templateObject238=function(){return e},e}function _templateObject237(){var e=_taggedTemplateLiteral([":Register\u241fcfc2f436ec2beffb042e7511a73c89c372e86a6c\u241f3301086086650990787:Register"]);return _templateObject237=function(){return e},e}function _templateObject236(){var e=_taggedTemplateLiteral([":Login\u241f6765b4c916060f6bc42d9bb69e80377dbcb5e4e9\u241f2454050363478003966:Login"]);return _templateObject236=function(){return e},e}function _templateObject235(){var e=_taggedTemplateLiteral([":Subscription videos search placeholder\u241f7e892ba15f2c6c17e83510e273b3e10fc32ea016\u241f4580988005648117665:Search"]);return _templateObject235=function(){return e},e}function _templateObject234(){var e=_taggedTemplateLiteral([":Subscription videos title\u241fa52dae09be10ca3a65da918533ced3d3f4992238\u241f8936704404804793618:Videos"]);return _templateObject234=function(){return e},e}function _templateObject233(){var e=_taggedTemplateLiteral([":Delete forever subscription video button\u241f2031adb51e07a41844e8ba7704b054e98345c9c1\u241f880206287081443054:Delete forever"]);return _templateObject233=function(){return e},e}function _templateObject232(){var e=_taggedTemplateLiteral([":Delete and redownload subscription video button\u241f94e01842dcee90531caa52e4147f70679bac87fe\u241f8460889291602192517:Delete and redownload"]);return _templateObject232=function(){return e},e}function _templateObject231(){var e=_taggedTemplateLiteral([":Subscription video info button\u241f321e4419a943044e674beb55b8039f42a9761ca5\u241f314315645942131479:Info"]);return _templateObject231=function(){return e},e}function _templateObject230(){var e=_taggedTemplateLiteral([":Video duration label\u241f2054791b822475aeaea95c0119113de3200f5e1c\u241f7115285952699064699:Length:"]);return _templateObject230=function(){return e},e}function _templateObject229(){var e=_taggedTemplateLiteral([":No playlist subscriptions text\u241f587b57ced54965d8874c3fd0e9dfedb987e5df04\u241f3403368727234976136:You have no playlist subscriptions."]);return _templateObject229=function(){return e},e}function _templateObject228(){var e=_taggedTemplateLiteral([":Subscription playlist not available text\u241f2e0a410652cb07d069f576b61eab32586a18320d\u241f4161141077899894301:Name not available. Playlist retrieval in progress."]);return _templateObject228=function(){return e},e}function _templateObject227(){var e=_taggedTemplateLiteral([":No channel subscriptions text\u241f4636cd4a1379c50d471e98786098c4d39e1e82ad\u241f2560406180065361139:You have no channel subscriptions."]);return _templateObject227=function(){return e},e}function _templateObject226(){var e=_taggedTemplateLiteral([":Subscription playlist not available text\u241f29b89f751593e1b347eef103891b7a1ff36ec03f\u241f973700466393519727:Name not available. Channel retrieval in progress."]);return _templateObject226=function(){return e},e}function _templateObject225(){var e=_taggedTemplateLiteral([":Subscriptions playlists title\u241f47546e45bbb476baaaad38244db444c427ddc502\u241f1823843876735462104:Playlists"]);return _templateObject225=function(){return e},e}function _templateObject224(){var e=_taggedTemplateLiteral([":Subscriptions channels title\u241f807cf11e6ac1cde912496f764c176bdfdd6b7e19\u241f8181077408762380407:Channels"]);return _templateObject224=function(){return e},e}function _templateObject223(){var e=_taggedTemplateLiteral([":Subscriptions title\u241fe2319dec5b4ccfb6ed9f55ccabd63650a8fdf547\u241f3180145612302390475:Your subscriptions"]);return _templateObject223=function(){return e},e}function _templateObject222(){var e=_taggedTemplateLiteral([":Subscription ID property\u241fa44d86aa1e6c20ced07aca3a7c081d8db9ded1c6\u241f2158775445713924699:Archive:"]);return _templateObject222=function(){return e},e}function _templateObject221(){var e=_taggedTemplateLiteral([":Unsubscribe button\u241f3042bd3ad8dffcfeca5fd1ae6159fd1047434e95\u241f1698114086921246480:Unsubscribe"]);return _templateObject221=function(){return e},e}function _templateObject220(){var e=_taggedTemplateLiteral([":Export Archive button\u241f8efc77bf327659c0fec1f518cf48a98cdcd9dddf\u241f5613381975493898311:Export Archive"]);return _templateObject220=function(){return e},e}function _templateObject219(){var e=_taggedTemplateLiteral([":Close subscription info button\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject219=function(){return e},e}function _templateObject218(){var e=_taggedTemplateLiteral([":Subscription ID property\u241fca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1\u241f1074038423230804155:ID:"]);return _templateObject218=function(){return e},e}function _templateObject217(){var e=_taggedTemplateLiteral([":Subscription URL property\u241fc52db455cca9109ee47e1a612c3f4117c09eb71b\u241f8598886608217248074:URL:"]);return _templateObject217=function(){return e},e}function _templateObject216(){var e=_taggedTemplateLiteral([":Subscription type property\u241fe78c0d60ac39787f62c9159646fe0b3c1ed55a1d\u241f2736556170366900089:Type:"]);return _templateObject216=function(){return e},e}function _templateObject215(){var e=_taggedTemplateLiteral([":Download time range prefix\u241f28a678e9cabf86e44c32594c43fa0e890135c20f\u241f2424458468042538424:Download videos uploaded in the last"]);return _templateObject215=function(){return e},e}function _templateObject214(){var e=_taggedTemplateLiteral([":Subscribe button\u241fd0336848b0c375a1c25ba369b3481ee383217a4f\u241f1144407473317535723:Subscribe"]);return _templateObject214=function(){return e},e}function _templateObject213(){var e=_taggedTemplateLiteral([":Subscribe cancel button\u241fd7b35c384aecd25a516200d6921836374613dfe7\u241f2159130950882492111:Cancel"]);return _templateObject213=function(){return e},e}function _templateObject212(){var e=_taggedTemplateLiteral([":Custom Output input hint\u241f19d1ae64d94d28a29b2c57ae8671aace906b5401\u241f3584692608114953661:Path is relative to the config download path. Don't include extension."]);return _templateObject212=function(){return e},e}function _templateObject211(){var e=_taggedTemplateLiteral([":Custom output template documentation link\u241ffcfd4675b4c90f08d18d3abede9a9a4dff4cfdc7\u241f4895326106573044490:Documentation"]);return _templateObject211=function(){return e},e}function _templateObject210(){var e=_taggedTemplateLiteral([":Subscription custom file output placeholder\u241f98b6ec9ec138186d663e64770267b67334353d63\u241f4096999545370137829:Custom file output"]);return _templateObject210=function(){return e},e}function _templateObject209(){var e=_taggedTemplateLiteral([":Custom args hint\u241ff432e1a8d6adb12e612127978ce2e0ced933959c\u241f6149317832585935644:These are added after the standard args."]);return _templateObject209=function(){return e},e}function _templateObject208(){var e=_taggedTemplateLiteral([":Subscription custom args placeholder\u241fad2f8ac8b7de7945b80c8e424484da94e597125f\u241f7810908229283352132:Custom args"]);return _templateObject208=function(){return e},e}function _templateObject207(){var e=_taggedTemplateLiteral([":Streaming-only mode\u241f408ca4911457e84a348cecf214f02c69289aa8f1\u241f1474682218975380155:Streaming-only mode"]);return _templateObject207=function(){return e},e}function _templateObject206(){var e=_taggedTemplateLiteral([":Streaming-only mode\u241fc76a955642714b8949ff3e4b4990864a2e2cac95\u241f4743212858568319264:Audio-only mode"]);return _templateObject206=function(){return e},e}function _templateObject205(){var e=_taggedTemplateLiteral([":Download all uploads subscription setting\u241fea30873bd3f0d5e4fb2378eec3f0a1db77634a28\u241f2789218157148692814:Download all uploads"]);return _templateObject205=function(){return e},e}function _templateObject204(){var e=_taggedTemplateLiteral([":Subscription custom name placeholder\u241f08f5d0ef937ae17feb1b04aff15ad88911e87baf\u241f1402261878731426139:Custom name"]);return _templateObject204=function(){return e},e}function _templateObject203(){var e=_taggedTemplateLiteral([":Subscription URL input hint\u241f93efc99ae087fc116de708ecd3ace86ca237cf30\u241f6758330192665823220:The playlist or channel URL"]);return _templateObject203=function(){return e},e}function _templateObject202(){var e=_taggedTemplateLiteral([":Subscription URL input placeholder\u241f801b98c6f02fe3b32f6afa3ee854c99ed83474e6\u241f2375260419993138758:URL"]);return _templateObject202=function(){return e},e}function _templateObject201(){var e=_taggedTemplateLiteral([":Subscribe dialog title\u241fa9806cf78ce00eb2613eeca11354a97e033377b8\u241f4500902888758611270:Subscribe to playlist or channel"]);return _templateObject201=function(){return e},e}function _templateObject200(){var e=_taggedTemplateLiteral([":Playlist save changes button\u241f5b3075e8dc3f3921ec316b0bd83b6d14a06c1a4f\u241f7000649363168371045:Save changes"]);return _templateObject200=function(){return e},e}function _templateObject199(){var e=_taggedTemplateLiteral([":Share audio dialog title\u241f1d540dcd271b316545d070f9d182c372d923aadd\u241f3735500696745720245:Share audio"]);return _templateObject199=function(){return e},e}function _templateObject198(){var e=_taggedTemplateLiteral([":Share video dialog title\u241f15da89490e04496ca9ea1e1b3d44fb5efd4a75d9\u241f1305889615005911428:Share video"]);return _templateObject198=function(){return e},e}function _templateObject197(){var e=_taggedTemplateLiteral([":Share playlist dialog title\u241fa249a5ae13e0835383885aaf697d2890cc3e53e9\u241f3024429387570590252:Share playlist"]);return _templateObject197=function(){return e},e}function _templateObject196(){var e=_taggedTemplateLiteral([":Close button\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject196=function(){return e},e}function _templateObject195(){var e=_taggedTemplateLiteral([":Copy to clipboard button\u241f3a6e5a6aa78ca864f6542410c5dafb6334538106\u241f8738732372986673558:Copy to clipboard"]);return _templateObject195=function(){return e},e}function _templateObject194(){var e=_taggedTemplateLiteral([":Seconds\u241f4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c\u241f8874012390997067175:Seconds"]);return _templateObject194=function(){return e},e}function _templateObject193(){var e=_taggedTemplateLiteral([":Use timestamp\u241f6580b6a950d952df847cb3d8e7176720a740adc8\u241f2355512602260135881:Use timestamp"]);return _templateObject193=function(){return e},e}function _templateObject192(){var e=_taggedTemplateLiteral([":Enable sharing checkbox\u241f1f6d14a780a37a97899dc611881e6bc971268285\u241f3852386690131857488:Enable sharing"]);return _templateObject192=function(){return e},e}function _templateObject191(){var e=_taggedTemplateLiteral([":Delete and blacklist video button\u241f34504b488c24c27e68089be549f0eeae6ebaf30b\u241f593208667984994894:Delete and blacklist"]);return _templateObject191=function(){return e},e}function _templateObject190(){var e=_taggedTemplateLiteral([":Playlist video count\u241fe684046d73bcee88e82f7ff01e2852789a05fc32\u241f6836949342567686088:Count:"]);return _templateObject190=function(){return e},e}function _templateObject189(){var e=_taggedTemplateLiteral([":Delete video button\u241f826b25211922a1b46436589233cb6f1a163d89b7\u241f7022070615528435141:Delete"]);return _templateObject189=function(){return e},e}function _templateObject188(){var e=_taggedTemplateLiteral([":Video info button\u241f321e4419a943044e674beb55b8039f42a9761ca5\u241f314315645942131479:Info"]);return _templateObject188=function(){return e},e}function _templateObject187(){var e=_taggedTemplateLiteral([":Delete playlist\u241f826b25211922a1b46436589233cb6f1a163d89b7\u241f7022070615528435141:Delete"]);return _templateObject187=function(){return e},e}function _templateObject186(){var e=_taggedTemplateLiteral([":Playlist edit button\u241f28f86ffd419b869711aa13f5e5ff54be6d70731c\u241f7585826646011739428:Edit"]);return _templateObject186=function(){return e},e}function _templateObject185(){var e=_taggedTemplateLiteral([":File or playlist ID\u241fca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1\u241f1074038423230804155:ID:"]);return _templateObject185=function(){return e},e}function _templateObject184(){var e=_taggedTemplateLiteral([":Name\u241fcff1428d10d59d14e45edec3c735a27b5482db59\u241f8953033926734869941:Name"]);return _templateObject184=function(){return e},e}function _templateObject183(){var e=_taggedTemplateLiteral([":Modify playlist dialog title\u241f4f389e41e4592f7f9bb76abdd8af4afdfb13f4f1\u241f6411548663373200045:Modify playlist"]);return _templateObject183=function(){return e},e}function _templateObject182(){var e=_taggedTemplateLiteral([":Close subscription info button\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject182=function(){return e},e}function _templateObject181(){var e=_taggedTemplateLiteral([":Video upload date property\u241fa67e7d843cef735c79d5ef1c8ba4af3e758912bb\u241f73382088968432490:Upload Date:"]);return _templateObject181=function(){return e},e}function _templateObject180(){var e=_taggedTemplateLiteral([":Video path property\u241fbd630d8669b16e5f264ec4649d9b469fe03e5ff4\u241f2612252809311306032:Path:"]);return _templateObject180=function(){return e},e}function _templateObject179(){var e=_taggedTemplateLiteral([":Video file size property\u241f109c6f4a5e46efb933612ededfaf52a13178b7e0\u241f8712868262622854125:File size:"]);return _templateObject179=function(){return e},e}function _templateObject178(){var e=_taggedTemplateLiteral([":Video ID property\u241fc6eb45d085384903e53ab001a3513d1de6a1dbac\u241f6975318892267864632:Uploader:"]);return _templateObject178=function(){return e},e}function _templateObject177(){var e=_taggedTemplateLiteral([":Video URL property\u241fc52db455cca9109ee47e1a612c3f4117c09eb71b\u241f8598886608217248074:URL:"]);return _templateObject177=function(){return e},e}function _templateObject176(){var e=_taggedTemplateLiteral([":Video name property\u241f616e206cb4f25bd5885fc35925365e43cf5fb929\u241f7658402240953727096:Name:"]);return _templateObject176=function(){return e},e}function _templateObject175(){var e=_taggedTemplateLiteral([":No video playlists available text\u241f0f59c46ca29e9725898093c9ea6b586730d0624e\u241f6806070849891381327: No playlists available. Create one from your downloading video files by clicking the blue plus button. "]);return _templateObject175=function(){return e},e}function _templateObject174(){var e=_taggedTemplateLiteral([":Playlists title\u241f47546e45bbb476baaaad38244db444c427ddc502\u241f1823843876735462104:Playlists"]);return _templateObject174=function(){return e},e}function _templateObject173(){var e=_taggedTemplateLiteral([":No video playlists available text\u241f78bd81adb4609b68cfa4c589222bdc233ba1faaa\u241f5049342015162771379: No playlists available. Create one from your downloading audio files by clicking the blue plus button. "]);return _templateObject173=function(){return e},e}function _templateObject172(){var e=_taggedTemplateLiteral([":Playlists title\u241f47546e45bbb476baaaad38244db444c427ddc502\u241f1823843876735462104:Playlists"]);return _templateObject172=function(){return e},e}function _templateObject171(){var e=_taggedTemplateLiteral([":Video files description\u241f960582a8b9d7942716866ecfb7718309728f2916\u241f691504174199627518: Your video files are here "]);return _templateObject171=function(){return e},e}function _templateObject170(){var e=_taggedTemplateLiteral([":Video files title\u241f9d2b62bb0b91e2e17fb4177a7e3d6756a2e6ee33\u241f429855630861441368: Video "]);return _templateObject170=function(){return e},e}function _templateObject169(){var e=_taggedTemplateLiteral([":Audio files description\u241f9779715ac05308973d8f1c8658b29b986e92450f\u241f3371870979788549262: Your audio files are here "]);return _templateObject169=function(){return e},e}function _templateObject168(){var e=_taggedTemplateLiteral([":Audio files title\u241f4a0dada6e841a425de3e5006e6a04df26c644fa5\u241f520791250454025553: Audio "]);return _templateObject168=function(){return e},e}function _templateObject167(){var e=_taggedTemplateLiteral([":YT Password placeholder\u241fc32ef07f8803a223a83ed17024b38e8d82292407\u241f1431416938026210429:Password"]);return _templateObject167=function(){return e},e}function _templateObject166(){var e=_taggedTemplateLiteral([":YT Username placeholder\u241f08c74dc9762957593b91f6eb5d65efdfc975bf48\u241f5248717555542428023:Username"]);return _templateObject166=function(){return e},e}function _templateObject165(){var e=_taggedTemplateLiteral([":Use authentication checkbox\u241f8fad10737d3e3735a6699a4d89cbf6c20f6bb55f\u241f294759932648923187: Use authentication "]);return _templateObject165=function(){return e},e}function _templateObject164(){var e=_taggedTemplateLiteral([":Simulated command label\u241fb7ffe7c6586d6f3f18a9246806a7c7d5538ab43e\u241f4637303589735709945: Simulated command: "]);return _templateObject164=function(){return e},e}function _templateObject163(){var e=_taggedTemplateLiteral([":Custom Output input hint\u241f19d1ae64d94d28a29b2c57ae8671aace906b5401\u241f3584692608114953661:Path is relative to the config download path. Don't include extension."]);return _templateObject163=function(){return e},e}function _templateObject162(){var e=_taggedTemplateLiteral([":Youtube-dl output template documentation link\u241ffcfd4675b4c90f08d18d3abede9a9a4dff4cfdc7\u241f4895326106573044490:Documentation"]);return _templateObject162=function(){return e},e}function _templateObject161(){var e=_taggedTemplateLiteral([":Custom output placeholder\u241fd9c02face477f2f9cdaae318ccee5f89856851fb\u241f3075663591125020403:Custom output"]);return _templateObject161=function(){return e},e}function _templateObject160(){var e=_taggedTemplateLiteral([":Use custom output checkbox\u241f3a92a3443c65a52f37ca7efb8f453b35dbefbf29\u241f5904983012542242085: Use custom output "]);return _templateObject160=function(){return e},e}function _templateObject159(){var e=_taggedTemplateLiteral([":Custom Args input hint\u241fa6911c2157f1b775284bbe9654ce5eb30cf45d7f\u241f1027155491043285709: No need to include URL, just everything after. Args are delimited using two commas like so: ,, "]);return _templateObject159=function(){return e},e}function _templateObject158(){var e=_taggedTemplateLiteral([":Custom args placeholder\u241fad2f8ac8b7de7945b80c8e424484da94e597125f\u241f7810908229283352132:Custom args"]);return _templateObject158=function(){return e},e}function _templateObject157(){var e=_taggedTemplateLiteral([":Use custom args checkbox\u241f4e4c721129466be9c3862294dc40241b64045998\u241f5091669664044282329: Use custom args "]);return _templateObject157=function(){return e},e}function _templateObject156(){var e=_taggedTemplateLiteral([":Advanced download mode panel\u241f322ed150e02666fe2259c5b4614eac7066f4ffa0\u241f7427754392029374006: Advanced "]);return _templateObject156=function(){return e},e}function _templateObject155(){var e=_taggedTemplateLiteral([":Cancel download button\u241f6a3777f913cf3f288664f0632b9f24794fdcc24e\u241f6991067716289442185: Cancel "]);return _templateObject155=function(){return e},e}function _templateObject154(){var e=_taggedTemplateLiteral([":Multi-download Mode checkbox\u241f96a01fafe135afc58b0f8071a4ab00234495ce18\u241f1215999553275961560: Multi-download Mode "]);return _templateObject154=function(){return e},e}function _templateObject153(){var e=_taggedTemplateLiteral([":YT search View button for searched video\u241fd3f02f845e62cebd75fde451ab8479d2a8ad784d\u241f3757598085627016432: View "]);return _templateObject153=function(){return e},e}function _templateObject152(){var e=_taggedTemplateLiteral([":YT search Use URL button for searched video\u241f4be966a9dcfbc9b54dfcc604b831c0289f847fa4\u241f1403543919071826528:Use URL"]);return _templateObject152=function(){return e},e}function _templateObject151(){var e=_taggedTemplateLiteral([":Quality select label\u241fa38ae1082fec79ba1f379978337385a539a28e73\u241f5496522374593352740: Quality "]);return _templateObject151=function(){return e},e}function _templateObject150(){var e=_taggedTemplateLiteral([":Main download button\u241f6a21ba5fb0ac804a525bf9ab168038c3ee88e661\u241f4646958190966105516: Download "]);return _templateObject150=function(){return e},e}function _templateObject149(){var e=_taggedTemplateLiteral([":Only Audio checkbox\u241f4a9889d36910edc8323d7bab60858ab3da6d91df\u241f4309609853428050389: Only Audio "]);return _templateObject149=function(){return e},e}function _templateObject148(){var e=_taggedTemplateLiteral([":Youtube downloader home page label\u241f038ebcb2a89155d90c24fa1c17bfe83dbadc3c20\u241f8791777206240453371:Youtube Downloader"]);return _templateObject148=function(){return e},e}function _templateObject147(){var e=_taggedTemplateLiteral([":Videos title\u241fa52dae09be10ca3a65da918533ced3d3f4992238\u241f8936704404804793618:Videos"]);return _templateObject147=function(){return e},e}function _templateObject146(){var e=_taggedTemplateLiteral([":Audio files title\u241ff47e2d56dd8a145b2e9599da9730c049d52962a2\u241f253926325379303932:Audio files"]);return _templateObject146=function(){return e},e}function _templateObject145(){var e=_taggedTemplateLiteral([":Playlist name placeholder\u241fcff1428d10d59d14e45edec3c735a27b5482db59\u241f8953033926734869941:Name"]);return _templateObject145=function(){return e},e}function _templateObject144(){var e=_taggedTemplateLiteral([":Create a playlist dialog title\u241f17f0ea5d2d7a262b0e875acc70475f102aee84e6\u241f3949911572988594237:Create a playlist"]);return _templateObject144=function(){return e},e}function _templateObject143(){var e=_taggedTemplateLiteral([":Navigation menu Downloads Page title\u241f822fab38216f64e8166d368b59fe756ca39d301b\u241f9040361513231775562:Downloads"]);return _templateObject143=function(){return e},e}function _templateObject142(){var e=_taggedTemplateLiteral([":Navigation menu Subscriptions Page title\u241f357064ca9d9ac859eb618e28e8126fa32be049e2\u241f1812379335568847528:Subscriptions"]);return _templateObject142=function(){return e},e}function _templateObject141(){var e=_taggedTemplateLiteral([":Navigation menu Login Page title\u241f6765b4c916060f6bc42d9bb69e80377dbcb5e4e9\u241f2454050363478003966:Login"]);return _templateObject141=function(){return e},e}function _templateObject140(){var e=_taggedTemplateLiteral([":Navigation menu Home Page title\u241f92eee6be6de0b11c924e3ab27db30257159c0a7c\u241f2821179408673282599:Home"]);return _templateObject140=function(){return e},e}function _templateObject139(){var e=_taggedTemplateLiteral([":Settings menu label\u241f121cc5391cd2a5115bc2b3160379ee5b36cd7716\u241f4930506384627295710:Settings"]);return _templateObject139=function(){return e},e}function _templateObject138(){var e=_taggedTemplateLiteral([":Dark mode toggle label\u241fadb4562d2dbd3584370e44496969d58c511ecb63\u241f3892161059518616136:Dark"]);return _templateObject138=function(){return e},e}function _templateObject137(){var e=_taggedTemplateLiteral([":Profile menu label\u241f994363f08f9fbfa3b3994ff7b35c6904fdff18d8\u241f4915431133669985304:Profile"]);return _templateObject137=function(){return e},e}function _templateObject136(){var e=_taggedTemplateLiteral([":About menu label\u241f004b222ff9ef9dd4771b777950ca1d0e4cd4348a\u241f1726363342938046830:About"]);return _templateObject136=function(){return e},e}function _templateObject135(){var e=_taggedTemplateLiteral([":Create\u241f70a67e04629f6d412db0a12d51820b480788d795\u241f5674286808255988565:Create"]);return _templateObject135=function(){return e},e}function _templateObject134(){var e=_taggedTemplateLiteral([":Password\u241fc32ef07f8803a223a83ed17024b38e8d82292407\u241f1431416938026210429:Password"]);return _templateObject134=function(){return e},e}function _templateObject133(){var e=_taggedTemplateLiteral([":No default admin detected explanation\u241f2d2adf3ca26a676bca2269295b7455a26fd26980\u241f1428648941210584739:No default admin account detected. This will create and set the password for an admin account with the user name as 'admin'."]);return _templateObject133=function(){return e},e}function _templateObject132(){var e=_taggedTemplateLiteral([":Create admin account dialog title\u241fa1dbca87b9f36d2b06a5cbcffb5814c4ae9b798a\u241f1671378244656756701:Create admin account"]);return _templateObject132=function(){return e},e}function _templateObject131(){var e=_taggedTemplateLiteral([":Login\u241f6765b4c916060f6bc42d9bb69e80377dbcb5e4e9\u241f2454050363478003966:Login"]);return _templateObject131=function(){return e},e}function _templateObject130(){var e=_taggedTemplateLiteral([":Not logged in notification\u241ffa96f2137af0a24e6d6d54c598c0af7d5d5ad344\u241f276791482480581557:You are not logged in."]);return _templateObject130=function(){return e},e}function _templateObject129(){var e=_taggedTemplateLiteral([":Created\u241fa5ed099ffc9e96f6970df843289ade8a7d20ab9f\u241f1616250945945379783:Created:"]);return _templateObject129=function(){return e},e}function _templateObject128(){var e=_taggedTemplateLiteral([":UID\u241fac9d09de42edca1296371e4d801349c9096ac8de\u241f5524669285756836501:UID:"]);return _templateObject128=function(){return e},e}function _templateObject127(){var e=_taggedTemplateLiteral([":Name\u241f616e206cb4f25bd5885fc35925365e43cf5fb929\u241f7658402240953727096:Name:"]);return _templateObject127=function(){return e},e}function _templateObject126(){var e=_taggedTemplateLiteral([":Logout\u241fbb694b49d408265c91c62799c2b3a7e3151c824d\u241f3797778920049399855:Logout"]);return _templateObject126=function(){return e},e}function _templateObject125(){var e=_taggedTemplateLiteral([":Close\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject125=function(){return e},e}function _templateObject124(){var e=_taggedTemplateLiteral([":User profile dialog title\u241f42ff677ec14f111e88bd6cdd30145378e994d1bf\u241f3496181279436331299:Your Profile"]);return _templateObject124=function(){return e},e}function _templateObject123(){var e=_taggedTemplateLiteral([":View latest update\u241fa16e92385b4fd9677bb830a4b796b8b79c113290\u241f509090351011426949:Update available"]);return _templateObject123=function(){return e},e}function _templateObject122(){var e=_taggedTemplateLiteral([":Checking for updates text\u241fe22f3a5351944f3a1a10cfc7da6f65dfbe0037fe\u241f9163379406577397382:Checking for updates..."]);return _templateObject122=function(){return e},e}function _templateObject121(){var e=_taggedTemplateLiteral([":About bug suffix\u241fe1f398f38ff1534303d4bb80bd6cece245f24016\u241f1971178156716923826:to create an issue!"]);return _templateObject121=function(){return e},e}function _templateObject120(){var e=_taggedTemplateLiteral([":About bug click here\u241f9b3cedfa83c6d7acb3210953289d1be4aab115c7\u241f5261595325941116751:Click here"]);return _templateObject120=function(){return e},e}function _templateObject119(){var e=_taggedTemplateLiteral([":About bug prefix\u241fb33536f59b94ec935a16bd6869d836895dc5300c\u241f3353248286278121979:Found a bug or have a suggestion?"]);return _templateObject119=function(){return e},e}function _templateObject118(){var e=_taggedTemplateLiteral([":Update through settings menu hint\u241f189b28aaa19b3c51c6111ad039c4fd5e2a22e370\u241f41092526824232895:You can update from the settings menu."]);return _templateObject118=function(){return e},e}function _templateObject117(){var e=_taggedTemplateLiteral([":Version label\u241fa45e3b05f0529dc5246d70ef62304c94426d4c81\u241f5296103174605274070:Installed version:"]);return _templateObject117=function(){return e},e}function _templateObject116(){var e=_taggedTemplateLiteral([":About second paragraph\u241fbc0ad0ee6630acb7fcb7802ec79f5a0ee943c1a7\u241f786314306504588277: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."]);return _templateObject116=function(){return e},e}function _templateObject115(){var e=_taggedTemplateLiteral([":About first paragraph\u241f199c17e5d6a419313af3c325f06dcbb9645ca618\u241f7048705050249868840: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."]);return _templateObject115=function(){return e},e}function _templateObject114(){var e=_taggedTemplateLiteral([":About dialog title\u241fcec82c0a545f37420d55a9b6c45c20546e82f94e\u241f8863443674032361244:About YoutubeDL-Material"]);return _templateObject114=function(){return e},e}function _templateObject113(){var e=_taggedTemplateLiteral([":Logs settings label\u241feb3d5aefff38a814b76da74371cbf02c0789a1ef\u241f4804785061014590286:Logs"]);return _templateObject113=function(){return e},e}function _templateObject112(){var e=_taggedTemplateLiteral([":Allow registration setting\u241f37224420db54d4bc7696f157b779a7225f03ca9d\u241f7605921570763703610:Allow user registration"]);return _templateObject112=function(){return e},e}function _templateObject111(){var e=_taggedTemplateLiteral([":Users settings label\u241f4d13a9cd5ed3dcee0eab22cb25198d43886942be\u241f4555457172864212828:Users"]);return _templateObject111=function(){return e},e}function _templateObject110(){var e=_taggedTemplateLiteral([":Set cookies button\u241f80651a7ad1229ea6613557d3559f702cfa5aecf5\u241f7799461682551341531:Set Cookies"]);return _templateObject110=function(){return e},e}function _templateObject109(){var e=_taggedTemplateLiteral([":Use cookies setting\u241f431e5f3a0dde88768d1074baedd65266412b3f02\u241f7284221456145715230:Use Cookies"]);return _templateObject109=function(){return e},e}function _templateObject108(){var e=_taggedTemplateLiteral([":Allow advanced downloading setting\u241fdc3d990391c944d1fbfc7cfb402f7b5e112fb3a8\u241f4097058672287489906:Allow advanced download"]);return _templateObject108=function(){return e},e}function _templateObject107(){var e=_taggedTemplateLiteral([":Logger level select label\u241f00e274c496b094a019f0679c3fab3945793f3335\u241f6118371693924897057:Select a logger level"]);return _templateObject107=function(){return e},e}function _templateObject106(){var e=_taggedTemplateLiteral([":Custom downloader select label\u241fec71e08aee647ea4a71fd6b7510c54d84a797ca6\u241f13573305706839101:Select a downloader"]);return _templateObject106=function(){return e},e}function _templateObject105(){var e=_taggedTemplateLiteral([":Use default downloading agent setting\u241f5fab47f146b0a4b809dcebf3db9da94df6299ea1\u241f1862425442411516950:Use default downloading agent"]);return _templateObject105=function(){return e},e}function _templateObject104(){var e=_taggedTemplateLiteral([":Generate audio only bookmarklet checkbox\u241fc505d6c5de63cc700f0aaf8a4b31fae9e18024e5\u241f7868265792526063076:Generate 'audio only' bookmarklet"]);return _templateObject104=function(){return e},e}function _templateObject103(){var e=_taggedTemplateLiteral([":Bookmarklet instructions\u241f61b81b11aad0b9d970ece2fce18405f07eac69c2\u241f907045314542317789: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."]);return _templateObject103=function(){return e},e}function _templateObject102(){var e=_taggedTemplateLiteral([":Firefox setup suffix\u241fcb17ff8fe3961cf90f44bee97c88a3f3347a7e55\u241f5226296152980000564:Not much is required other than changing the extension's settings to set the frontend URL."]);return _templateObject102=function(){return e},e}function _templateObject101(){var e=_taggedTemplateLiteral([":Firefox setup prefix link\u241feb81be6b49e195e5307811d1d08a19259d411f37\u241f3930152199106610543:Detailed setup instructions."]);return _templateObject101=function(){return e},e}function _templateObject100(){var e=_taggedTemplateLiteral([":Firefox click here suffix\u241f9a2ec6da48771128384887525bdcac992632c863\u241f8910153976238540666:to install the official YoutubeDL-Material Firefox extension right off the Firefox extensions page."]);return _templateObject100=function(){return e},e}function _templateObject99(){var e=_taggedTemplateLiteral([":Firefox ext click here\u241f9b3cedfa83c6d7acb3210953289d1be4aab115c7\u241f5261595325941116751:Click here"]);return _templateObject99=function(){return e},e}function _templateObject98(){var e=_taggedTemplateLiteral([":Chrome setup suffix\u241f5b5296423906ab3371fdb2b5a5aaa83acaa2ee52\u241f8028660067162629884:You must manually load the extension and modify the extension's settings to set the frontend URL."]);return _templateObject98=function(){return e},e}function _templateObject97(){var e=_taggedTemplateLiteral([":Chrome click here suffix\u241f7f09776373995003161235c0c8d02b7f91dbc4df\u241f2498765655243362925:to download the official YoutubeDL-Material Chrome extension manually."]);return _templateObject97=function(){return e},e}function _templateObject96(){var e=_taggedTemplateLiteral([":Chrome ext click here\u241f9b3cedfa83c6d7acb3210953289d1be4aab115c7\u241f5261595325941116751:Click here"]);return _templateObject96=function(){return e},e}function _templateObject95(){var e=_taggedTemplateLiteral([":Youtube API Key setting hint\u241f8602e313cdfa7c4cc475ccbe86459fce3c3fd986\u241f3231872778665115286:Generating a key is easy!"]);return _templateObject95=function(){return e},e}function _templateObject94(){var e=_taggedTemplateLiteral([":Youtube API Key setting placeholder\u241fce10d31febb3d9d60c160750570310f303a22c22\u241f8352766560503075759:Youtube API Key"]);return _templateObject94=function(){return e},e}function _templateObject93(){var e=_taggedTemplateLiteral([":Use YouTube API setting\u241fd5d7c61349f3b0859336066e6d453fc35d334fe5\u241f921806454742404419:Use YouTube API"]);return _templateObject93=function(){return e},e}function _templateObject92(){var e=_taggedTemplateLiteral([":Generate key button\u241f1b258b258b4cc475ceb2871305b61756b0134f4a\u241f5193539160604294602:Generate"]);return _templateObject92=function(){return e},e}function _templateObject91(){var e=_taggedTemplateLiteral([":View API docs setting hint\u241f41016a73d8ad85e6cb26dffa0a8fab9fe8f60d8e\u241f7819423665857999846:View documentation"]);return _templateObject91=function(){return e},e}function _templateObject90(){var e=_taggedTemplateLiteral([":Public API Key setting placeholder\u241f23bd81dcc30b74d06279a26d7a42e8901c1b124e\u241f5137591319364175431:Public API Key"]);return _templateObject90=function(){return e},e}function _templateObject89(){var e=_taggedTemplateLiteral([":Enable Public API key setting\u241f1c4dbce56d96b8974aac24a02f7ab2ee81415014\u241f1129973800849533636:Enable Public API"]);return _templateObject89=function(){return e},e}function _templateObject88(){var e=_taggedTemplateLiteral([":Set new pin button\u241ff5ec7b2cdf87d41154f4fcbc86e856314409dcb9\u241f5079149426228636902:Set New Pin"]);return _templateObject88=function(){return e},e}function _templateObject87(){var e=_taggedTemplateLiteral([":Require pin for settings setting\u241fd8b47221b5af9e9e4cd5cb434d76fc0c91611409\u241f8888472341408176239:Require pin for settings"]);return _templateObject87=function(){return e},e}function _templateObject86(){var e=_taggedTemplateLiteral([":Allow multi-download mode setting\u241f09d31c803a7252658694e1e3176b97f5655a3fe3\u241f1457782201611151239:Allow multi-download mode"]);return _templateObject86=function(){return e},e}function _templateObject85(){var e=_taggedTemplateLiteral([":Download only mode setting\u241fbda5508e24e0d77debb28bcd9194d8fefb1cfb92\u241f2765258699599899343:Download only mode"]);return _templateObject85=function(){return e},e}function _templateObject84(){var e=_taggedTemplateLiteral([":Allow quality seelct setting\u241fc33bd5392b39dbed36b8e5a1145163a15d45835f\u241f2252491142626131446:Allow quality select"]);return _templateObject84=function(){return e},e}function _templateObject83(){var e=_taggedTemplateLiteral([":Downloads manager enabled setting\u241fa5a1be0a5df07de9eec57f5d2a86ed0204b2e75a\u241f316726944811110918:Downloads manager enabled"]);return _templateObject83=function(){return e},e}function _templateObject82(){var e=_taggedTemplateLiteral([":File manager enabled setting\u241f78d3531417c0d4ba4c90f0d4ae741edc261ec8df\u241f488432415925701010:File manager enabled"]);return _templateObject82=function(){return e},e}function _templateObject81(){var e=_taggedTemplateLiteral([":Top title input placeholder\u241f61f8fd90b5f8cb20c70371feb2ee5e1fac5a9095\u241f1974727764328838461:Top title"]);return _templateObject81=function(){return e},e}function _templateObject80(){var e=_taggedTemplateLiteral([":Safe download override setting\u241fd01715b75228878a773ae6d059acc639d4898a03\u241f8028244888189462244:Safe download override"]);return _templateObject80=function(){return e},e}function _templateObject79(){var e=_taggedTemplateLiteral([":Use youtubedl archive setting\u241f78e49b7339b4fa7184dd21bcaae107ce9b7076f6\u241f7083950546207237945:Use youtube-dl archive"]);return _templateObject79=function(){return e},e}function _templateObject78(){var e=_taggedTemplateLiteral([":Custom args setting input hint\u241f6b995e7130b4d667eaab6c5f61b362ace486d26d\u241f5003828392179181130:Global custom args for downloads on the home page. Args are delimited using two commas like so: ,,"]);return _templateObject78=function(){return e},e}function _templateObject77(){var e=_taggedTemplateLiteral([":Custom args input placeholder\u241fad2f8ac8b7de7945b80c8e424484da94e597125f\u241f7810908229283352132:Custom args"]);return _templateObject77=function(){return e},e}function _templateObject76(){var e=_taggedTemplateLiteral([":Video path setting input hint\u241f17c92e6d47a213fa95b5aa344b3f258147123f93\u241f2955739827391836971:Path for video downloads. It is relative to YTDL-Material's root folder."]);return _templateObject76=function(){return e},e}function _templateObject75(){var e=_taggedTemplateLiteral([":Video folder path input placeholder\u241f46826331da1949bd6fb74624447057099c9d20cd\u241f3354965786971797948:Video folder path"]);return _templateObject75=function(){return e},e}function _templateObject74(){var e=_taggedTemplateLiteral([":Aduio path setting input hint\u241fc2c89cdf45d46ea64d2ed2f9ac15dfa4d77e26ca\u241f3848357852843054025:Path for audio only downloads. It is relative to YTDL-Material's root folder."]);return _templateObject74=function(){return e},e}function _templateObject73(){var e=_taggedTemplateLiteral([":Audio folder path input placeholder\u241fab2756805742e84ad0cc0468f4be2d8aa9f855a5\u241f3475061775640312711:Audio folder path"]);return _templateObject73=function(){return e},e}function _templateObject72(){var e=_taggedTemplateLiteral([":Language select label\u241ffe46ccaae902ce974e2441abe752399288298619\u241f2826581353496868063:Language"]);return _templateObject72=function(){return e},e}function _templateObject71(){var e=_taggedTemplateLiteral([":Allow theme change setting\u241f7a6bacee4c31cb5c0ac2d24274fb4610d8858602\u241f8325128210832071900:Allow theme change"]);return _templateObject71=function(){return e},e}function _templateObject70(){var e=_taggedTemplateLiteral([":Dark theme label\u241fadb4562d2dbd3584370e44496969d58c511ecb63\u241f3892161059518616136:Dark"]);return _templateObject70=function(){return e},e}function _templateObject69(){var e=_taggedTemplateLiteral([":Default theme label\u241fff7cee38a2259526c519f878e71b964f41db4348\u241f5607669932062416162:Default"]);return _templateObject69=function(){return e},e}function _templateObject68(){var e=_taggedTemplateLiteral([":Theme select label\u241f27a56aad79d8b61269ed303f11664cc78bcc2522\u241f7103588127254721505:Theme"]);return _templateObject68=function(){return e},e}function _templateObject67(){var e=_taggedTemplateLiteral([":youtube-dl archive explanation suffix\u241f29ed79a98fc01e7f9537777598e31dbde3aa7981\u241f6686872891691588730: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."]);return _templateObject67=function(){return e},e}function _templateObject66(){var e=_taggedTemplateLiteral([":youtube-dl archive explanation middle\u241f09006404cccc24b7a8f8d1ce0b39f2761ab841d8\u241f954972440308853962:feature, downloaded videos from your subscriptions get recorded in a text file in the subscriptions archive sub-directory."]);return _templateObject66=function(){return e},e}function _templateObject65(){var e=_taggedTemplateLiteral([":youtube-dl archive explanation prefix link\u241ffa9fe4255231dd1cc6b29d3d254a25cb7c764f0f\u241f6707903974690925048:With youtube-dl's archive"]);return _templateObject65=function(){return e},e}function _templateObject64(){var e=_taggedTemplateLiteral([":Use youtube-dl archive setting\u241f78e49b7339b4fa7184dd21bcaae107ce9b7076f6\u241f7083950546207237945:Use youtube-dl archive"]);return _templateObject64=function(){return e},e}function _templateObject63(){var e=_taggedTemplateLiteral([":Check interval setting input hint\u241f0f56a7449b77630c114615395bbda4cab398efd8\u241f1580663059483543498:Unit is seconds, only include numbers."]);return _templateObject63=function(){return e},e}function _templateObject62(){var e=_taggedTemplateLiteral([":Check interval input setting placeholder\u241f5bef4b25ba680da7fff06b86a91b1fc7e6a926e3\u241f5349606203941321178:Check interval"]);return _templateObject62=function(){return e},e}function _templateObject61(){var e=_taggedTemplateLiteral([":Subscriptions base path setting input hint\u241fbc9892814ee2d119ae94378c905ea440a249b84a\u241f2622759576830659218:Base path for videos from your subscribed channels and playlists. It is relative to YTDL-Material's root folder."]);return _templateObject61=function(){return e},e}function _templateObject60(){var e=_taggedTemplateLiteral([":Subscriptions base path input setting placeholder\u241f4bee2a4bef2d26d37c9b353c278e24e5cd309ce3\u241f6919010605968316948:Subscriptions base path"]);return _templateObject60=function(){return e},e}function _templateObject59(){var e=_taggedTemplateLiteral([":Allow subscriptions setting\u241f4e3120311801c4acd18de7146add2ee4a4417773\u241f5800596718492516574:Allow subscriptions"]);return _templateObject59=function(){return e},e}function _templateObject58(){var e=_taggedTemplateLiteral([":Key file path input placeholder\u241f736551b93461d2de64b118cf4043eee1d1c2cb2c\u241f2320113463068090884:Key file path"]);return _templateObject58=function(){return e},e}function _templateObject57(){var e=_taggedTemplateLiteral([":Cert file path input placeholder\u241f0c1875a79b7ecc792cc1bebca3e063e40b5764f9\u241f2857997144709025078:Cert file path"]);return _templateObject57=function(){return e},e}function _templateObject56(){var e=_taggedTemplateLiteral([":Use encryption setting\u241fcbe16a57be414e84b6a68309d08fad894df797d6\u241f5503616660881623306:Use encryption"]);return _templateObject56=function(){return e},e}function _templateObject55(){var e=_taggedTemplateLiteral([":Users base path hint\u241fa64505c41150663968e277ec9b3ddaa5f4838798\u241f7466856953916038997:Base path for users and their downloaded videos."]);return _templateObject55=function(){return e},e}function _templateObject54(){var e=_taggedTemplateLiteral([":Users base path placeholder\u241f2eb03565fcdce7a7a67abc277a936a32fcf51557\u241f553126943997197705:Users base path"]);return _templateObject54=function(){return e},e}function _templateObject53(){var e=_taggedTemplateLiteral([":Multi user mode setting\u241fd4477669a560750d2064051a510ef4d7679e2f3e\u241f8189972369495207275:Multi-user mode"]);return _templateObject53=function(){return e},e}function _templateObject52(){var e=_taggedTemplateLiteral([":Port setting input hint\u241f22e8f1d0423a3b784fe40fab187b92c06541b577\u241f12816402920404434:The desired port. Default is 17442."]);return _templateObject52=function(){return e},e}function _templateObject51(){var e=_taggedTemplateLiteral([":Port input placeholder\u241fcb2741a46e3560f6bc6dfd99d385e86b08b26d72\u241f6117946241126833991:Port"]);return _templateObject51=function(){return e},e}function _templateObject50(){var e=_taggedTemplateLiteral([":URL setting input hint\u241f54c512cca1923ab72faf1a0bd98d3d172469629a\u241f5463756323010996100:URL this app will be accessed from, without the port."]);return _templateObject50=function(){return e},e}function _templateObject49(){var e=_taggedTemplateLiteral([":URL input placeholder\u241f801b98c6f02fe3b32f6afa3ee854c99ed83474e6\u241f2375260419993138758:URL"]);return _templateObject49=function(){return e},e}function _templateObject48(){var e=_taggedTemplateLiteral([":Settings cancel and close button\u241ffe8fd36dbf5deee1d56564965787a782a66eba44\u241f1370226763724525124:{VAR_SELECT, select, true {Close} false {Cancel} other {otha}}"]);return _templateObject48=function(){return e},e}function _templateObject47(){var e=_taggedTemplateLiteral([":Settings save button\u241f52c9a103b812f258bcddc3d90a6e3f46871d25fe\u241f3768927257183755959:Save"]);return _templateObject47=function(){return e},e}function _templateObject46(){var e=_taggedTemplateLiteral([":Host settings label\u241fbc2e854e111ecf2bd7db170da5e3c2ed08181d88\u241f6201638315245239510:Advanced"]);return _templateObject46=function(){return e},e}function _templateObject45(){var e=_taggedTemplateLiteral([":Extra settings label\u241fd5f69691f9f05711633128b5a3db696783266b58\u241f7419412790104674886:Extra"]);return _templateObject45=function(){return e},e}function _templateObject44(){var e=_taggedTemplateLiteral([":Downloader settings label\u241f0ba25ad86a240576c4f20a2fada4722ebba77b1e\u241f5385813889746830226:Downloader"]);return _templateObject44=function(){return e},e}function _templateObject43(){var e=_taggedTemplateLiteral([":Main settings label\u241f82421c3e46a0453a70c42900eab51d58d79e6599\u241f3815928829326879804:Main"]);return _templateObject43=function(){return e},e}function _templateObject42(){var e=_taggedTemplateLiteral([":Settings title\u241f121cc5391cd2a5115bc2b3160379ee5b36cd7716\u241f4930506384627295710:Settings"]);return _templateObject42=function(){return e},e}function _templateObject41(){var e=_taggedTemplateLiteral([":Label for lines select in logger view\u241f5009630cdf32ab4f1c78737b9617b8773512c05a\u241f1273958037222279236:Lines:"]);return _templateObject41=function(){return e},e}function _templateObject40(){var e=_taggedTemplateLiteral([":Copy to clipboard button text\u241f3a6e5a6aa78ca864f6542410c5dafb6334538106\u241f8738732372986673558:Copy to clipboard"]);return _templateObject40=function(){return e},e}function _templateObject39(){var e=_taggedTemplateLiteral([":Logs placeholder\u241ffd59fb984749fcdb5e386ae85faec82f8e5ac098\u241f3745032841365555599:Logs will appear here"]);return _templateObject39=function(){return e},e}function _templateObject38(){var e=_taggedTemplateLiteral([":Actions users table header\u241f59a8c38db3091a63ac1cb9590188dc3a972acfb3\u241f4360239040231802726: Actions "]);return _templateObject38=function(){return e},e}function _templateObject37(){var e=_taggedTemplateLiteral([":Role users table header\u241f52c1447c1ec9570a2a3025c7e566557b8d19ed92\u241f2803298218425845065: Role "]);return _templateObject37=function(){return e},e}function _templateObject36(){var e=_taggedTemplateLiteral([":Username users table header\u241f746f64ddd9001ac456327cd9a3d5152203a4b93c\u241f5277049347608663780: User name "]);return _templateObject36=function(){return e},e}function _templateObject35(){var e=_taggedTemplateLiteral([":Edit role\u241fb0d7dd8a1b0349622d6e0c6e643e24a9ea0efa1d\u241f7421160648436431593:Edit Role"]);return _templateObject35=function(){return e},e}function _templateObject34(){var e=_taggedTemplateLiteral([":Add users button\u241f4d92a0395dd66778a931460118626c5794a3fc7a\u241f506553185810307410:Add Users"]);return _templateObject34=function(){return e},e}function _templateObject33(){var e=_taggedTemplateLiteral([":No\u241f3d3ae7deebc5949b0c1c78b9847886a94321d9fd\u241f3542042671420335679:No"]);return _templateObject33=function(){return e},e}function _templateObject32(){var e=_taggedTemplateLiteral([":Yes\u241f4f20f2d5a6882190892e58b85f6ccbedfa737952\u241f2807800733729323332:Yes"]);return _templateObject32=function(){return e},e}function _templateObject31(){var e=_taggedTemplateLiteral([":Manage role dialog title\u241f57c6c05d8ebf4ef1180c2705033c044f655bb2c4\u241f6937165687043532169:Manage role"]);return _templateObject31=function(){return e},e}function _templateObject30(){var e=_taggedTemplateLiteral([":Close\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject30=function(){return e},e}function _templateObject29(){var e=_taggedTemplateLiteral([":No\u241f3d3ae7deebc5949b0c1c78b9847886a94321d9fd\u241f3542042671420335679:No"]);return _templateObject29=function(){return e},e}function _templateObject28(){var e=_taggedTemplateLiteral([":Yes\u241f4f20f2d5a6882190892e58b85f6ccbedfa737952\u241f2807800733729323332:Yes"]);return _templateObject28=function(){return e},e}function _templateObject27(){var e=_taggedTemplateLiteral([":Use default\u241f40da072004086c9ec00d125165da91eaade7f541\u241f1641415171855135728:Use default"]);return _templateObject27=function(){return e},e}function _templateObject26(){var e=_taggedTemplateLiteral([":Set new password\u241f6498fa1b8f563988f769654a75411bb8060134b9\u241f4099895221156718403:Set new password"]);return _templateObject26=function(){return e},e}function _templateObject25(){var e=_taggedTemplateLiteral([":New password placeholder\u241fe70e209561583f360b1e9cefd2cbb1fe434b6229\u241f3588415639242079458:New password"]);return _templateObject25=function(){return e},e}function _templateObject24(){var e=_taggedTemplateLiteral([":User UID\u241f29c97c8e76763bb15b6d515648fa5bd1eb0f7510\u241f1937680469704133878:User UID:"]);return _templateObject24=function(){return e},e}function _templateObject23(){var e=_taggedTemplateLiteral([":Manage user dialog title\u241f2bd201aea09e43fbfd3cd15ec0499b6755302329\u241f4975588549700433407:Manage user"]);return _templateObject23=function(){return e},e}function _templateObject22(){var e=_taggedTemplateLiteral([":Close\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject22=function(){return e},e}function _templateObject21(){var e=_taggedTemplateLiteral([":Close button\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject21=function(){return e},e}function _templateObject20(){var e=_taggedTemplateLiteral([":Register user button\u241fcfc2f436ec2beffb042e7511a73c89c372e86a6c\u241f3301086086650990787:Register"]);return _templateObject20=function(){return e},e}function _templateObject19(){var e=_taggedTemplateLiteral([":Password placeholder\u241fc32ef07f8803a223a83ed17024b38e8d82292407\u241f1431416938026210429:Password"]);return _templateObject19=function(){return e},e}function _templateObject18(){var e=_taggedTemplateLiteral([":User name placeholder\u241f024886ca34a6f309e3e51c2ed849320592c3faaa\u241f5312727456282218392:User name"]);return _templateObject18=function(){return e},e}function _templateObject17(){var e=_taggedTemplateLiteral([":Register user dialog title\u241fb7ff2e2b909c53abe088fe60b9f4b6ac7757247f\u241f1815535846517216306:Register a user"]);return _templateObject17=function(){return e},e}function _templateObject16(){var e=_taggedTemplateLiteral([":Select a version\u241f1372e61c5bd06100844bd43b98b016aabc468f62\u241f5795132952021594188:Select a version:"]);return _templateObject16=function(){return e},e}function _templateObject15(){var e=_taggedTemplateLiteral([":Close update progress dialog\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject15=function(){return e},e}function _templateObject14(){var e=_taggedTemplateLiteral([":Update progress dialog title\u241f91ecce65f1d23f9419d1c953cd6b7bc7f91c110e\u241f7113575027620819093:Updater"]);return _templateObject14=function(){return e},e}function _templateObject13(){var e=_taggedTemplateLiteral([":Drag and Drop\u241f98a8a42e5efffe17ab786636ed0139b4c7032d0e\u241f5214302308131956174:Drag and Drop"]);return _templateObject13=function(){return e},e}function _templateObject12(){var e=_taggedTemplateLiteral([":Close\u241ff4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8\u241f7819314041543176992:Close"]);return _templateObject12=function(){return e},e}function _templateObject11(){var e=_taggedTemplateLiteral([":Cookies upload warning\u241f85e0725c870b28458fd3bbba905397d890f00a69\u241f8128925538914530324:NOTE: Uploading new cookies will overrride your previous cookies. Also note that cookies are instance-wide, not per-user."]);return _templateObject11=function(){return e},e}function _templateObject10(){var e=_taggedTemplateLiteral([":Cookies uploader dialog title\u241febadf946ae90f13ecd0c70f09edbc0f983af8a0f\u241f3873596794856864418:Upload new cookies"]);return _templateObject10=function(){return e},e}function _templateObject9(){var e=_taggedTemplateLiteral([":Arg value placeholder\u241f25d8ad5eba2ec24e68295a27d6a4bb9b49e3dacd\u241f9086775160067017111:Arg value"]);return _templateObject9=function(){return e},e}function _templateObject8(){var e=_taggedTemplateLiteral([":Arg modifier modify button\u241fb2623aee44b70c9a4ba1fce16c8a593b0a4c7974\u241f3251759404563225821:Modify"]);return _templateObject8=function(){return e},e}function _templateObject7(){var e=_taggedTemplateLiteral([":Arg modifier cancel button\u241fd7b35c384aecd25a516200d6921836374613dfe7\u241f2159130950882492111:Cancel"]);return _templateObject7=function(){return e},e}function _templateObject6(){var e=_taggedTemplateLiteral([":Search args by category button\u241f7de2451ed3fb8d8b847979bd3f0c740b970f167b\u241f1014075402717090995:Add arg"]);return _templateObject6=function(){return e},e}function _templateObject5(){var e=_taggedTemplateLiteral([":Use arg value checkbox\u241f9eeb91caef5a50256dd87e1c4b7b3e8216479377\u241f5487374754798278253:Use arg value"]);return _templateObject5=function(){return e},e}function _templateObject4(){var e=_taggedTemplateLiteral([":Search args by category button\u241fc8b0e59eb491f2ac7505f0fbab747062e6b32b23\u241f827176536271704947:Search by category"]);return _templateObject4=function(){return e},e}function _templateObject3(){var e=_taggedTemplateLiteral([":Add arg card title\u241f0b71824ae71972f236039bed43f8d2323e8fd570\u241f7066397187762906016:Add an arg"]);return _templateObject3=function(){return e},e}function _templateObject2(){var e=_taggedTemplateLiteral([":Simulated args title\u241f7fc1946abe2b40f60059c6cd19975d677095fd19\u241f3319938540903314395:Simulated new args"]);return _templateObject2=function(){return e},e}function _templateObject(){var e=_taggedTemplateLiteral([":Modify args title\u241fd9e83ac17026e70ef6e9c0f3240a3b2450367f40\u241f3653857180335075556:Modify youtube-dl args"]);return _templateObject=function(){return e},e}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _defineProperty(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _get(e,t,i){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=_superPropBase(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(i):a.value}})(e,t,i||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _createForOfIteratorHelper(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=_unsupportedIterableToArray(e))){var t=0,i=function(){};return{s:i,n:function(){return t>=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<t;i++)n[i]=e[i];return n}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"2Yyj":function(e,t,i){var n,a,r;!function(o){if("object"==typeof e.exports){var s=o(0,t);void 0!==s&&(e.exports=s)}else a=[i,t],void 0===(r="function"==typeof(n=o)?n.apply(t,a):n)||(e.exports=r)}((function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=void 0;t.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(e){return 1===e?1:5}]}))},"4fRq":function(e,t){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);e.exports=function(){return i(n),n}}else{var a=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((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]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:[e[1]<<(t-=32)|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t]},n=function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]},a=function(e,t){return[e[0]^t[0],e[1]^t[1]]},r=function(e){return e=a(e,[0,e[0]>>>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<l;g+=16)h=[255&o.charCodeAt(g+4)|(255&o.charCodeAt(g+5))<<8|(255&o.charCodeAt(g+6))<<16|(255&o.charCodeAt(g+7))<<24,255&o.charCodeAt(g)|(255&o.charCodeAt(g+1))<<8|(255&o.charCodeAt(g+2))<<16|(255&o.charCodeAt(g+3))<<24],p=[255&o.charCodeAt(g+12)|(255&o.charCodeAt(g+13))<<8|(255&o.charCodeAt(g+14))<<16|(255&o.charCodeAt(g+15))<<24,255&o.charCodeAt(g+8)|(255&o.charCodeAt(g+9))<<8|(255&o.charCodeAt(g+10))<<16|(255&o.charCodeAt(g+11))<<24],h=t(h,f),h=i(h,31),h=t(h,m),u=a(u,h),u=i(u,27),u=e(u,d),u=e(t(u,[0,5]),[0,1390208809]),p=t(p,m),p=i(p,33),p=t(p,f),d=a(d,p),d=i(d,31),d=e(d,u),d=e(t(d,[0,5]),[0,944331445]);switch(h=[0,0],p=[0,0],c){case 15:p=a(p,n([0,o.charCodeAt(g+14)],48));case 14:p=a(p,n([0,o.charCodeAt(g+13)],40));case 13:p=a(p,n([0,o.charCodeAt(g+12)],32));case 12:p=a(p,n([0,o.charCodeAt(g+11)],24));case 11:p=a(p,n([0,o.charCodeAt(g+10)],16));case 10:p=a(p,n([0,o.charCodeAt(g+9)],8));case 9:p=a(p,[0,o.charCodeAt(g+8)]),p=t(p,m),p=i(p,33),p=t(p,f),d=a(d,p);case 8:h=a(h,n([0,o.charCodeAt(g+7)],56));case 7:h=a(h,n([0,o.charCodeAt(g+6)],48));case 6:h=a(h,n([0,o.charCodeAt(g+5)],40));case 5:h=a(h,n([0,o.charCodeAt(g+4)],32));case 4:h=a(h,n([0,o.charCodeAt(g+3)],24));case 3:h=a(h,n([0,o.charCodeAt(g+2)],16));case 2:h=a(h,n([0,o.charCodeAt(g+1)],8));case 1:h=a(h,[0,o.charCodeAt(g)]),h=t(h,f),h=i(h,31),h=t(h,m),u=a(u,h)}return u=a(u,[0,o.length]),d=a(d,[0,o.length]),u=e(u,d),d=e(d,u),u=r(u),d=r(d),u=e(u,d),d=e(d,u),("00000000"+(u[0]>>>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;i<n;i++)t(e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t(e[a],a,e)},l=function(e,t){var i=[];return null==e?i:Array.prototype.map&&e.map===Array.prototype.map?e.map(t):(c(e,(function(e,n,a){i.push(t(e,n,a))})),i)},u=function(e){if(null==navigator.plugins)return e.NOT_AVAILABLE;for(var t=[],i=0,n=navigator.plugins.length;i<n;i++)navigator.plugins[i]&&t.push(navigator.plugins[i]);return d(e)&&(t=t.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))),l(t,(function(e){var t=l(e,(function(e){return[e.type,e.suffixes]}));return[e.name,e.description,t]}))},d=function(e){for(var t=!1,i=0,n=e.plugins.sortPluginsFor.length;i<n;i++)if(navigator.userAgent.match(e.plugins.sortPluginsFor[i])){t=!0;break}return t},h=function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},p=function(){if(!h())return!1;var e=f();return!!window.WebGLRenderingContext&&!!e},f=function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(i){}return t||(t=null),t},m=[{key:"userAgent",getData:function(e){e(navigator.userAgent)}},{key:"webdriver",getData:function(e,t){e(null==navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"language",getData:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepth",getData:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemory",getData:function(e,t){e(navigator.deviceMemory||t.NOT_AVAILABLE)}},{key:"pixelRatio",getData:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"hardwareConcurrency",getData:function(e,t){e(function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE}(t))}},{key:"screenResolution",getData:function(e,t){e(function(e){var t=[window.screen.width,window.screen.height];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}(t))}},{key:"availableScreenResolution",getData:function(e,t){e(function(e){if(window.screen.availWidth&&window.screen.availHeight){var t=[window.screen.availHeight,window.screen.availWidth];return e.screen.detectScreenOrientation&&t.sort().reverse(),t}return e.NOT_AVAILABLE}(t))}},{key:"timezoneOffset",getData:function(e){e((new Date).getTimezoneOffset())}},{key:"timezone",getData:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}},{key:"sessionStorage",getData:function(e,t){e(function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}}(t))}},{key:"localStorage",getData:function(e,t){e(function(e){try{return!!window.localStorage}catch(t){return e.ERROR}}(t))}},{key:"indexedDb",getData:function(e,t){e(function(e){try{return!!window.indexedDB}catch(t){return e.ERROR}}(t))}},{key:"addBehavior",getData:function(e){e(!(!document.body||!document.body.addBehavior))}},{key:"openDatabase",getData:function(e){e(!!window.openDatabase)}},{key:"cpuClass",getData:function(e,t){e(function(e){return navigator.cpuClass||e.NOT_AVAILABLE}(t))}},{key:"platform",getData:function(e,t){e(function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE}(t))}},{key:"doNotTrack",getData:function(e,t){e(function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE}(t))}},{key:"plugins",getData:function(e,t){"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&/Trident/.test(navigator.userAgent)?e(t.plugins.excludeIE?t.EXCLUDED:function(e){var t=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?t=l(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(t){try{return new window.ActiveXObject(t),t}catch(i){return e.ERROR}})):t.push(e.NOT_AVAILABLE),navigator.plugins&&(t=t.concat(u(e))),t}(t)):e(u(t))}},{key:"canvas",getData:function(e,t){h()?e(function(e){var t=[],i=document.createElement("canvas");i.width=2e3,i.height=200,i.style.display="inline";var n=i.getContext("2d");return n.rect(0,0,10,10),n.rect(2,2,6,6),t.push("canvas winding:"+(!1===n.isPointInPath(5,5,"evenodd")?"yes":"no")),n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",n.font=e.dontUseFakeFontInCanvas?"11pt Arial":"11pt no-real-font-123",n.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03",2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03",4,45),n.globalCompositeOperation="multiply",n.fillStyle="rgb(255,0,255)",n.beginPath(),n.arc(50,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(0,255,255)",n.beginPath(),n.arc(100,50,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,255,0)",n.beginPath(),n.arc(75,100,50,0,2*Math.PI,!0),n.closePath(),n.fill(),n.fillStyle="rgb(255,0,255)",n.arc(75,75,75,0,2*Math.PI,!0),n.arc(75,75,25,0,2*Math.PI,!0),n.fill("evenodd"),i.toDataURL&&t.push("canvas fp:"+i.toDataURL()),t}(t)):e(t.NOT_AVAILABLE)}},{key:"webgl",getData:function(e,t){p()?e(function(){var e,t=function(t){return e.clearColor(0,0,0,1),e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),"["+t[0]+", "+t[1]+"]"};if(!(e=f()))return null;var i=[],n=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,n);var a=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);e.bufferData(e.ARRAY_BUFFER,a,e.STATIC_DRAW),n.itemSize=3,n.numItems=3;var r=e.createProgram(),o=e.createShader(e.VERTEX_SHADER);e.shaderSource(o,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),e.compileShader(o);var s=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(s,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),e.compileShader(s),e.attachShader(r,o),e.attachShader(r,s),e.linkProgram(r),e.useProgram(r),r.vertexPosAttrib=e.getAttribLocation(r,"attrVertex"),r.offsetUniform=e.getUniformLocation(r,"uniformOffset"),e.enableVertexAttribArray(r.vertexPosArray),e.vertexAttribPointer(r.vertexPosAttrib,n.itemSize,e.FLOAT,!1,0,0),e.uniform2f(r.offsetUniform,1,1),e.drawArrays(e.TRIANGLE_STRIP,0,n.numItems);try{i.push(e.canvas.toDataURL())}catch(u){}i.push("extensions:"+(e.getSupportedExtensions()||[]).join(";")),i.push("webgl aliased line width range:"+t(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE))),i.push("webgl aliased point size range:"+t(e.getParameter(e.ALIASED_POINT_SIZE_RANGE))),i.push("webgl alpha bits:"+e.getParameter(e.ALPHA_BITS)),i.push("webgl antialiasing:"+(e.getContextAttributes().antialias?"yes":"no")),i.push("webgl blue bits:"+e.getParameter(e.BLUE_BITS)),i.push("webgl depth bits:"+e.getParameter(e.DEPTH_BITS)),i.push("webgl green bits:"+e.getParameter(e.GREEN_BITS)),i.push("webgl max anisotropy:"+function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var i=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===i&&(i=2),i}return null}(e)),i.push("webgl max combined texture image units:"+e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),i.push("webgl max cube map texture size:"+e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)),i.push("webgl max fragment uniform vectors:"+e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)),i.push("webgl max render buffer size:"+e.getParameter(e.MAX_RENDERBUFFER_SIZE)),i.push("webgl max texture image units:"+e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),i.push("webgl max texture size:"+e.getParameter(e.MAX_TEXTURE_SIZE)),i.push("webgl max varying vectors:"+e.getParameter(e.MAX_VARYING_VECTORS)),i.push("webgl max vertex attribs:"+e.getParameter(e.MAX_VERTEX_ATTRIBS)),i.push("webgl max vertex texture image units:"+e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),i.push("webgl max vertex uniform vectors:"+e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)),i.push("webgl max viewport dims:"+t(e.getParameter(e.MAX_VIEWPORT_DIMS))),i.push("webgl red bits:"+e.getParameter(e.RED_BITS)),i.push("webgl renderer:"+e.getParameter(e.RENDERER)),i.push("webgl shading language version:"+e.getParameter(e.SHADING_LANGUAGE_VERSION)),i.push("webgl stencil bits:"+e.getParameter(e.STENCIL_BITS)),i.push("webgl vendor:"+e.getParameter(e.VENDOR)),i.push("webgl version:"+e.getParameter(e.VERSION));try{var l=e.getExtension("WEBGL_debug_renderer_info");l&&(i.push("webgl unmasked vendor:"+e.getParameter(l.UNMASKED_VENDOR_WEBGL)),i.push("webgl unmasked renderer:"+e.getParameter(l.UNMASKED_RENDERER_WEBGL)))}catch(u){}return e.getShaderPrecisionFormat?(c(["FLOAT","INT"],(function(t){c(["VERTEX","FRAGMENT"],(function(n){c(["HIGH","MEDIUM","LOW"],(function(a){c(["precision","rangeMin","rangeMax"],(function(r){var o=e.getShaderPrecisionFormat(e[n+"_SHADER"],e[a+"_"+t])[r];"precision"!==r&&(r="precision "+r);var s=["webgl ",n.toLowerCase()," shader ",a.toLowerCase()," ",t.toLowerCase()," ",r,":",o].join("");i.push(s)}))}))}))})),i):i}()):e(t.NOT_AVAILABLE)}},{key:"webglVendorAndRenderer",getData:function(e){p()?e(function(){try{var e=f(),t=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL)}catch(i){return null}}()):e()}},{key:"adBlock",getData:function(e){e(function(){var e=document.createElement("div");e.innerHTML="&nbsp;",e.className="adsbox";var t=!1;try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(i){t=!1}return t}())}},{key:"hasLiedLanguages",getData:function(e){e(function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}())}},{key:"hasLiedResolution",getData:function(e){e(window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight)}},{key:"hasLiedOs",getData:function(e){e(function(){var e,t=navigator.userAgent.toLowerCase(),i=navigator.oscpu,n=navigator.platform.toLowerCase();if(e=t.indexOf("windows phone")>=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<i.length;n++)if(t=e[n].offsetWidth!==s[i[n]]||e[n].offsetHeight!==c[i[n]])return t;return t},h=function(){for(var e=[],t=0,n=i.length;t<n;t++){var a=l();a.style.fontFamily=i[t],r.appendChild(a),e.push(a)}return e}();a.appendChild(r);for(var p=0,f=i.length;p<f;p++)s[i[p]]=h[p].offsetWidth,c[i[p]]=h[p].offsetHeight;var m=function(){for(var e={},t=0,a=n.length;t<a;t++){for(var r=[],s=0,c=i.length;s<c;s++){var l=u(n[t],i[s]);o.appendChild(l),r.push(l)}e[n[t]]=r}return e}();a.appendChild(o);for(var g=[],v=0,b=n.length;v<b;v++)d(m[n[v]])&&g.push(n[v]);a.removeChild(o),a.removeChild(r),e(g)},pauseBefore:!0},{key:"fontsFlash",getData:function(e,t){return void 0!==window.swfobject?window.swfobject.hasFlashPlayerVersion("9.0.0")?t.fonts.swfPath?void function(e,t){window.___fp_swf_loaded=function(t){e(t)};var i,n=t.fonts.swfContainerId;(i=document.createElement("div")).setAttribute("id",(void 0).fonts.swfContainerId),document.body.appendChild(i),window.swfobject.embedSWF(t.fonts.swfPath,n,"1","1","9.0.0",!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:"always",menu:"false"},{})}((function(t){e(t)}),t):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")},pauseBefore:!0},{key:"audio",getData:function(e,t){var i=t.audio;if(i.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(t.EXCLUDED);var n=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==n)return e(t.NOT_AVAILABLE);var a=new n(1,44100,44100),r=a.createOscillator();r.type="triangle",r.frequency.setValueAtTime(1e4,a.currentTime);var o=a.createDynamicsCompressor();c([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==o[e[0]]&&"function"==typeof o[e[0]].setValueAtTime&&o[e[0]].setValueAtTime(e[1],a.currentTime)})),r.connect(o),o.connect(a.destination),r.start(0),a.startRendering();var s=setTimeout((function(){return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/Valve/fingerprintjs2 with your user agent: "'+navigator.userAgent+'".'),a.oncomplete=function(){},a=null,e("audioTimeout")}),i.timeout);a.oncomplete=function(t){var i;try{clearTimeout(s),i=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),r.disconnect(),o.disconnect()}catch(n){return void e(n)}e(i)}}},{key:"enumerateDevices",getData:function(e,t){if(!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)return e(t.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label})))})).catch((function(t){e(t)}))}}],g=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")};return g.get=function(e,t){t?e||(e={}):(t=e,e={}),function(e,t){if(null==t)return e;var i,n;for(n in t)null==(i=t[n])||Object.prototype.hasOwnProperty.call(e,n)||(e[n]=i)}(e,s),e.components=e.extraComponents.concat(m);var i={data:[],addPreprocessedComponent:function(t,n){"function"==typeof e.preprocessor&&(n=e.preprocessor(t,n)),i.data.push({key:t,value:n})}},n=-1;!function a(r){if((n+=1)>=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<i.length;a++){var r=i[a];if(r.value===(e.NOT_AVAILABLE||"not available"))n.push({key:r.key,value:"unknown"});else if("plugins"===r.key)n.push({key:"plugins",value:l(r.value,(function(e){var t=l(e[2],(function(e){return e.join?e.join("~"):e})).join(",");return[e[0],e[1],t].join("::")}))});else if(-1!==["canvas","webgl"].indexOf(r.key))n.push({key:r.key,value:r.value.join("~")});else if(-1!==["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(r.key)){if(!r.value)continue;n.push({key:r.key,value:1})}else n.push(r.value?r.value.join?{key:r.key,value:r.value.join(";")}:r:{key:r.key,value:r.value})}var s=o(l(n,(function(e){return e.value})).join("~~~"),31);t(s,n)}))},g.x64hash128=o,g.VERSION="2.1.0",g}))},EcEN:function(e,t,i){var n=i("xDdU"),a=i("xk4V"),r=a;r.v1=n,r.v4=a,e.exports=r},I2ZF:function(e,t){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}},Iab2:function(e,t,i){var n,a;void 0===(a="function"==typeof(n=function(){"use strict";function t(e,t,i){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){r(n.response,t,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=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<e.style.length;i++){var n=e.style.item(i);t+=W(0,n,e.style.getPropertyValue(n))}for(var a in e.style)e.style.hasOwnProperty(a)&&!a.startsWith("_")&&(t+=W(0,a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[a]));e.setAttribute("style",t)}function $(e,t,i){e.style&&(Object.keys(t).forEach((function(n){var a=ie(n);i&&!i.hasOwnProperty(n)&&(i[n]=e.style[a]),e.style[a]=t[n]})),_()&&q(e))}function K(e,t){e.style&&(Object.keys(t).forEach((function(t){var i=ie(t);e.style[i]=""})),_()&&q(e))}function X(e){return Array.isArray(e)?1==e.length?e[0]:l(e):e}var Y=new RegExp("{{\\s*(.+?)\\s*}}","g");function Z(e){var t=[];if("string"==typeof e){for(var i;i=Y.exec(e);)t.push(i[1]);Y.lastIndex=0}return t}function Q(e,t,i){var n=e.toString(),a=n.replace(Y,(function(e,n){var a=t[n];return t.hasOwnProperty(n)||(i.push("Please provide a value for the animation param ".concat(n)),a=""),a.toString()}));return a==n?e:a}function ee(e){for(var t=[],i=e.next();!i.done;)t.push(i.value),i=e.next();return t}var te=/-+([a-z0-9])/g;function ie(e){return e.replace(te,(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return t[1].toUpperCase()}))}function ne(e,t){return 0===e||0===t}function ae(e,t,i){var n=Object.keys(i);if(n.length&&t.length){var a=t[0],r=[];if(n.forEach((function(e){a.hasOwnProperty(e)||r.push(e),a[e]=i[e]})),r.length)for(var o=function(){var i=t[s];r.forEach((function(t){i[t]=oe(e,t)}))},s=1;s<t.length;s++)o()}return t}function re(e,t,i){switch(t.type){case 7:return e.visitTrigger(t,i);case 0:return e.visitState(t,i);case 1:return e.visitTransition(t,i);case 2:return e.visitSequence(t,i);case 3:return e.visitGroup(t,i);case 4:return e.visitAnimate(t,i);case 5:return e.visitKeyframes(t,i);case 6:return e.visitStyle(t,i);case 8:return e.visitReference(t,i);case 9:return e.visitAnimateChild(t,i);case 10:return e.visitAnimateRef(t,i);case 11:return e.visitQuery(t,i);case 12:return e.visitStagger(t,i);default:throw new Error("Unable to resolve animation metadata node #".concat(t.type))}}function oe(e,t){return window.getComputedStyle(e)[t]}var se=new Set(["true","1"]),ce=new Set(["false","0"]);function le(e,t){var i=se.has(e)||ce.has(e),n=se.has(t)||ce.has(t);return function(a,r){var o="*"==e||e==a,s="*"==t||t==r;return!o&&i&&"boolean"==typeof a&&(o=a?se.has(e):ce.has(e)),!s&&n&&"boolean"==typeof r&&(s=r?se.has(t):ce.has(t)),o&&s}}var ue=new RegExp("s*:selfs*,?","g");function de(e,t,i){return new he(e).build(t,i)}var he=function(){function e(t){_classCallCheck(this,e),this._driver=t}return _createClass(e,[{key:"build",value:function(e,t){var i=new pe(t);return this._resetContextStyleTimingState(i),re(this,X(e),i)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var i=this,n=t.queryCount=0,a=t.depCount=0,r=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach((function(e){if(i._resetContextStyleTimingState(t),0==e.type){var s=e,c=s.name;c.toString().split(/\s*,\s*/).forEach((function(e){s.name=e,r.push(i.visitState(s,t))})),s.name=c}else if(1==e.type){var l=i.visitTransition(e,t);n+=l.queryCount,a+=l.depCount,o.push(l)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:e.name,states:r,transitions:o,queryCount:n,depCount:a,options:null}}},{key:"visitState",value:function(e,t){var i=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(i.containsDynamicStyles){var a=new Set,r=n||{};if(i.styles.forEach((function(e){if(fe(e)){var t=e;Object.keys(t).forEach((function(e){Z(t[e]).forEach((function(e){r.hasOwnProperty(e)||a.add(e)}))}))}})),a.size){var o=ee(a.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(o.join(", ")))}}return{type:0,name:e.name,style:i,options:n?{params:n}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var i,n,a,r=re(this,X(e.animation),t);return{type:1,matchers:(i=e.expr,n=t.errors,a=[],"string"==typeof i?i.split(/\s*,\s*/).forEach((function(e){return function(e,t,i){if(":"==e[0]){var n=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(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||u<c,c=u,r.push(u),n}));s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&t.errors.push("Please ensure that all keyframe offsets are in order");var u=e.steps.length,d=0;a>0&&a<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==a&&(d=1/(u-1));var h=u-1,p=t.currentTime,f=t.currentAnimateTimings,m=f.duration;return l.forEach((function(e,a){var o=d>0?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<i.length;a++){var r=i[a];if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1}return!0}(c.params,l.params)){var p=[],f=r.matchStyles(c.value,c.params,p),m=r.matchStyles(l.value,l.params,p);p.length?this._engine.reportError(p):this._engine.afterFlush((function(){K(e,f),$(e,m)}))}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach((function(t,i){delete t[e]})),this._elementListeners.forEach((function(i,n){t._elementListeners.set(n,i.filter((function(t){return t.name!=e})))}))}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach((function(e){return e.destroy()})),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var i=this,n=this._engine.driver.query(e,".ng-trigger",!0);n.forEach((function(e){if(!e.__ng_removed){var n=i._engine.fetchNamespacesByElement(e);n.size?n.forEach((function(i){return i.triggerLeaveAnimation(e,t,!1,!0)})):i.clearElementCache(e)}})),this._engine.afterFlushAnimationsDone((function(){return n.forEach((function(e){return i.clearElementCache(e)}))}))}},{key:"triggerLeaveAnimation",value:function(e,t,i,n){var a=this,r=this._engine.statesByElement.get(e);if(r){var o=[];if(Object.keys(r).forEach((function(t){if(a._triggers[t]){var i=a.trigger(e,t,"void",n);i&&o.push(i)}})),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),i&&y(o).onDone((function(){return a._engine.processLeaveNode(e)})),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,i=this._elementListeners.get(e);if(i){var n=new Set;i.forEach((function(i){var a=i.name;if(!n.has(a)){n.add(a);var r=t._triggers[a].fallbackTransition,o=t._engine.statesByElement.get(e)[a]||He,s=new Ve("void"),c=new We(t.id,a,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:a,transition:r,fromState:o,toState:s,player:c,isFallbackTransition:!0})}}))}}},{key:"removeNode",value:function(e,t){var i=this,n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var a=!1;if(n.totalAnimations){var r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)a=!0;else for(var o=e;o=o.parentNode;)if(n.statesByElement.get(o)){a=!0;break}}if(this.prepareLeaveAnimationListeners(e),a)n.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==Be||(n.afterFlush((function(){return i.clearElementCache(e)})),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){Ye(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,i=[];return this._queue.forEach((function(n){var a=n.player;if(!a.destroyed){var r=n.element,o=t._elementListeners.get(r);o&&o.forEach((function(t){if(t.name==n.triggerName){var i=x(r,n.triggerName,n.fromState.value,n.toState.value);i._data=e,w(n.player,t.phase,i,t.callback)}})),a.markedForDestroy?t._engine.afterFlush((function(){a.destroy()})):i.push(n)}})),this._queue=[],i.sort((function(e,i){var n=e.transition.ast.depCount,a=i.transition.ast.depCount;return 0==n||0==a?n-a:t._engine.driver.containsElement(e.element,i.element)?1:-1}))}},{key:"destroy",value:function(e){this.players.forEach((function(e){return e.destroy()})),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find((function(t){return t.element===e}))||t}}]),e}(),Ge=function(){function e(t,i,n){_classCallCheck(this,e),this.bodyNode=t,this.driver=i,this._normalizer=n,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=function(e,t){}}return _createClass(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"createNamespace",value:function(e,t){var i=new Ue(e,t,this);return t.parentNode?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}},{key:"_balanceNamespaceList",value:function(e,t){var i=this._namespaceList.length-1;if(i>=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<n.length;a++){var r=i[n[a]].namespaceId;if(r){var o=this._fetchNamespace(r);o&&t.add(o)}}return t}},{key:"trigger",value:function(e,t,i,n){if(qe(t)){var a=this._fetchNamespace(e);if(a)return a.trigger(t,i,n),!0}return!1}},{key:"insertNode",value:function(e,t,i,n){if(qe(t)){var a=t.__ng_removed;if(a&&a.setForRemoval){a.setForRemoval=!1,a.setForMove=!0;var r=this.collectedLeaveElements.indexOf(t);r>=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<this.collectedEnterElements.length;n++)Ye(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var a=[];try{i=this._flushAnimations(a,t)}finally{for(var r=0;r<a.length;r++)a[r]()}}else for(var o=0;o<this.collectedLeaveElements.length;o++)this.processLeaveNode(this.collectedLeaveElements[o]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((function(e){return e()})),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],i.length?y(i).onDone((function(){s.forEach((function(e){return e()}))})):s.forEach((function(e){return e()}))}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(e.join("\n")))}},{key:"_flushAnimations",value:function(e,t){var i=this,n=new be,a=[],r=new Map,o=[],s=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach((function(e){u.add(e);for(var t=i.driver.query(e,".ng-animate-queued",!0),n=0;n<t.length;n++)u.add(t[n])}));var d=this.bodyNode,h=Array.from(this.statesByElement.keys()),p=Xe(h,this.collectedEnterElements),f=new Map,m=0;p.forEach((function(e,t){var i="ng-enter"+m++;f.set(t,i),e.forEach((function(e){return Ye(e,i)}))}));for(var g=[],v=new Set,b=new Set,_=0;_<this.collectedLeaveElements.length;_++){var k=this.collectedLeaveElements[_],w=k.__ng_removed;w&&w.setForRemoval&&(g.push(k),v.add(k),w.hasAnimation?this.driver.query(k,".ng-star-inserted",!0).forEach((function(e){return v.add(e)})):b.add(k))}var C=new Map,x=Xe(h,Array.from(v));x.forEach((function(e,t){var i="ng-leave"+m++;C.set(t,i),e.forEach((function(e){return Ye(e,i)}))})),e.push((function(){p.forEach((function(e,t){var i=f.get(t);e.forEach((function(e){return Ze(e,i)}))})),x.forEach((function(e,t){var i=C.get(t);e.forEach((function(e){return Ze(e,i)}))})),g.forEach((function(e){i.processLeaveNode(e)}))}));for(var I=[],O=[],D=this._namespaceList.length-1;D>=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;N<g.length;N++){var z=g[N],B=z.__ng_removed;if(Ze(z,"ng-leave"),!B||!B.hasAnimation){var J=[];if(s.size){var V=s.get(z);V&&V.length&&J.push.apply(J,_toConsumableArray(V));for(var H=this.driver.query(z,".ng-animating",!0),U=0;U<H.length;U++){var G=s.get(H[U]);G&&G.length&&J.push.apply(J,_toConsumableArray(G))}}var W=J.filter((function(e){return!e.destroyed}));W.length?Qe(this,z,W):this.processLeaveNode(z)}}return g.length=0,L.forEach((function(e){i.players.push(e),e.onDone((function(){e.destroy();var t=i.players.indexOf(e);i.players.splice(t,1)})),e.play()})),L}},{key:"elementContainsData",value:function(e,t){var i=!1,n=t.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,i,n,a){var r=[];if(t){var o=this.playersByQueriedElement.get(e);o&&(r=o)}else{var s=this.playersByElement.get(e);if(s){var c=!a||"void"==a;s.forEach((function(e){e.queued||(c||e.triggerName==n)&&r.push(e)}))}}return(i||n)&&(r=r.filter((function(e){return!(i&&i!=e.namespaceId||n&&n!=e.triggerName)}))),r}},{key:"_beforeAnimationBuild",value:function(e,t,i){var n,a=this,r=t.element,o=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,c=_createForOfIteratorHelper(t.timelines);try{var l=function(){var e=n.value.element,c=e!==r,l=S(i,e,[]);a._getPreviousPlayers(e,c,o,s,t.toState).forEach((function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)}))};for(c.s();!(n=c.n()).done;)l()}catch(u){c.e(u)}finally{c.f()}K(r,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,i,n,a,r){var o=this,s=t.triggerName,c=t.element,l=[],u=new Set,d=new Set,h=t.timelines.map((function(t){var h=t.element;u.add(h);var p=h.__ng_removed;if(p&&p.removedBeforeQueried)return new v(t.duration,t.delay);var f,m,g=h!==c,_=(f=(i.get(h)||ze).map((function(e){return e.getRealPlayer()})),m=[],function e(t,i){for(var n=0;n<t.length;n++){var a=t[n];a instanceof b?e(a.players,i):i.push(a)}}(f,m),m).filter((function(e){return!!e.element&&e.element===h})),y=a.get(h),w=r.get(h),C=k(0,o._normalizer,0,t.keyframes,y,w),x=o._buildPlayer(t,C,_);if(t.subTimeline&&n&&d.add(h),g){var S=new We(e,s,h);S.setRealPlayer(x),l.push(S)}return x}));l.forEach((function(e){S(o.playersByQueriedElement,e.element,[]).push(e),e.onDone((function(){return function(e,t,i){var n;if(e instanceof Map){if(n=e.get(t)){if(n.length){var a=n.indexOf(i);n.splice(a,1)}0==n.length&&e.delete(t)}}else if(n=e[t]){if(n.length){var r=n.indexOf(i);n.splice(r,1)}0==n.length&&delete e[t]}return n}(o.playersByQueriedElement,e.element,e)}))})),u.forEach((function(e){return Ye(e,"ng-animating")}));var p=y(h);return p.onDestroy((function(){u.forEach((function(e){return Ze(e,"ng-animating")})),$(c,t.toStyles)})),d.forEach((function(e){S(n,e,[]).push(p)})),p}},{key:"_buildPlayer",value:function(e,t,i){return t.length>0?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<i.length;n++){var a=i[n];rt(a)&&((t=t||{})[a]=e[a])}return t}function rt(e){return"display"===e||"position"===e}var ot=function(){function e(t,i,n,a,r,o,s){var c=this;_classCallCheck(this,e),this._element=t,this._name=i,this._duration=n,this._delay=a,this._easing=r,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return c._handleCallback(e)}}return _createClass(e,[{key:"apply",value:function(){var e,t,i;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(i=ht(e,"").trim()).length&&(function(e,t){for(var i=0;i<e.length;i++)e.charAt(i)}(i),t="".concat(i,", ").concat(t)),dt(e,"",t),ut(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){st(this._element,this._name,"paused")}},{key:"resume",value:function(){st(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=ct(this._element,this._name);this._position=e*this._duration,dt(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),i=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=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<e.length;i++)if(e[i].indexOf(t)>=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<t;n++)i[n-1]=arguments[n];return xt(this._renderer,this.element,this.id,e,i)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){return 0}}]),e}();function xt(e,t,i,n,a){return e.setProperty(t,"@@".concat(i,":").concat(n),a)}var St,It,Ot,Dt=((St=function(){function e(t,i,n){_classCallCheck(this,e),this.delegate=t,this.engine=i,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return _createClass(e,[{key:"createRenderer",value:function(e,t){var i=this,n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var a=this._rendererCache.get(n);return a||(a=new Et("",n,this.engine),this._rendererCache.set(n,a)),a}var r=t.id,o=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(o,e),t.data.animation.forEach((function t(n){Array.isArray(n)?n.forEach(t):i.engine.registerTrigger(r,o,e,n.name,n)})),new At(this,o,n,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then((function(){e._microtaskId++}))}},{key:"scheduleListenerCallback",value:function(e,t,i){var n=this;e>=0&&e<this._microtaskId?this._zone.run((function(){return t(i)})):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((function(){n._zone.run((function(){n._animationCallbacksBuffer.forEach((function(e){var t=_slicedToArray(e,2);(0,t[0])(t[1])})),n._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([t,i]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)})),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}()).\u0275fac=function(e){return new(e||St)(a.Sc(a.Q),a.Sc(tt),a.Sc(a.I))},St.\u0275prov=a.zc({token:St,factory:St.\u0275fac}),St),Et=function(){function e(t,i,n){_classCallCheck(this,e),this.namespaceId=t,this.delegate=i,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(e){return i.destroyNode(e)}:null}return _createClass(e,[{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,i){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,!0)}},{key:"removeChild",value:function(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,i,n){this.delegate.setAttribute(e,t,i,n)}},{key:"removeAttribute",value:function(e,t,i){this.delegate.removeAttribute(e,t,i)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,i,n){this.delegate.setStyle(e,t,i,n)}},{key:"removeStyle",value:function(e,t,i){this.delegate.removeStyle(e,t,i)}},{key:"setProperty",value:function(e,t,i){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,i){return this.delegate.listen(e,t,i)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),At=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,n,a,r)).factory=e,o.namespaceId=n,o}return _createClass(i,[{key:"setProperty",value:function(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}},{key:"listen",value:function(e,t,i){var n,a,r=this;if("@"==t.charAt(0)){var o,s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),c=t.substr(1),l="";return"@"!=c.charAt(0)&&(a=(n=c).indexOf("."),c=(o=_slicedToArray([n.substring(0,a),n.substr(a+1)],2))[0],l=o[1]),this.engine.listen(this.namespaceId,s,c,l,(function(e){r.factory.scheduleListenerCallback(e._data||-1,i,e)}))}return this.delegate.listen(e,t,i)}}]),i}(Et),Tt=((It=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a){return _classCallCheck(this,i),t.call(this,e.body,n,a)}return i}(tt)).\u0275fac=function(e){return new(e||It)(a.Sc(yt.e),a.Sc(B),a.Sc(De))},It.\u0275prov=a.zc({token:It,factory:It.\u0275fac}),It),Pt=new a.x("AnimationModuleType"),Rt=[{provide:B,useFactory:function(){return"function"==typeof bt()?new vt:new mt}},{provide:Pt,useValue:"BrowserAnimations"},{provide:r,useClass:kt},{provide:De,useFactory:function(){return new Ee}},{provide:tt,useClass:Tt},{provide:a.Q,useFactory:function(e,t,i){return new Dt(e,t,i)},deps:[n.d,tt,a.I]}],Mt=((Ot=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Ot}),Ot.\u0275inj=a.Ac({factory:function(e){return new(e||Ot)},providers:Rt,imports:[n.a]}),Ot),Lt=i("XNiG"),jt=i("quSY"),Ft=i("z+Ro"),Nt=i("yCtX"),zt=i("jZKg");function Bt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t[t.length-1];return Object(Ft.a)(n)?(t.pop(),Object(zt.a)(t,n)):Object(Nt.a)(t)}function Jt(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return i.length?i.some((function(t){return e[t]})):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var Vt=i("7o/Q"),Ht=i("KqfI"),Ut=i("n6bG");function Gt(e,t,i){return function(n){return n.lift(new Wt(e,t,i))}}var Wt=function(){function e(t,i,n){_classCallCheck(this,e),this.nextOrObserver=t,this.error=i,this.complete=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new qt(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),qt=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))._tapNext=Ht.a,o._tapError=Ht.a,o._tapComplete=Ht.a,o._tapError=a||Ht.a,o._tapComplete=r||Ht.a,Object(Ut.a)(n)?(o._context=_assertThisInitialized(o),o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||Ht.a,o._tapError=n.error||Ht.a,o._tapComplete=n.complete||Ht.a),o}return _createClass(i,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),i}(Vt.a),$t=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.pending=!1,a}return _createClass(i,[{key:"schedule",value:function(e){var t=arguments.length>1&&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<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");Wi&&this._deleteMessagesContainer(),Gi.clear()}},{key:"_createMessageElement",value:function(e){var t=this._document.createElement("div");this._setMessageId(t),t.textContent=e,this._createMessagesContainer(),Wi.appendChild(t),Gi.set(e,{messageElement:t,referenceCount:0})}},{key:"_setMessageId",value:function(e){e.id||(e.id="cdk-describedby-message-".concat(Ui++))}},{key:"_deleteMessageElement",value:function(e){var t=Gi.get(e),i=t&&t.messageElement;Wi&&i&&Wi.removeChild(i),Gi.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!Wi){var e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode.removeChild(e),(Wi=this._document.createElement("div")).id="cdk-describedby-message-container",Wi.setAttribute("aria-hidden","true"),Wi.style.display="none",this._document.body.appendChild(Wi)}}},{key:"_deleteMessagesContainer",value:function(){Wi&&Wi.parentNode&&(Wi.parentNode.removeChild(Wi),Wi=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=Ji(e,"aria-describedby").filter((function(e){return 0!=e.indexOf("cdk-describedby-message")}));e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var i,n,a,r,o=Gi.get(t);i=e,n="aria-describedby",a=o.messageElement.id,(r=Ji(i,n)).some((function(e){return e.trim()==a.trim()}))||(r.push(a.trim()),i.setAttribute(n,r.join(" "))),e.setAttribute("cdk-describedby-host",""),o.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var i,n,a,r,o=Gi.get(t);o.referenceCount--,i=e,n="aria-describedby",a=o.messageElement.id,(r=Ji(i,n).filter((function(e){return e!=a.trim()}))).length?i.setAttribute(n,r.join(" ")):i.removeAttribute(n),e.removeAttribute("cdk-describedby-host")}},{key:"_isElementDescribedByMessage",value:function(e,t){var i=Ji(e,"aria-describedby"),n=Gi.get(t),a=n&&n.messageElement.id;return!!a&&-1!=i.indexOf(a)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var i=null==t?"":"".concat(t).trim(),n=e.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}()).\u0275fac=function(e){return new(e||Vi)(a.Sc(yt.e))},Vi.\u0275prov=Object(a.zc)({factory:function(){return new Vi(Object(a.Sc)(yt.e))},token:Vi,providedIn:"root"}),Vi),$i=function(){function e(t){var i=this;_classCallCheck(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Lt.a,this._typeaheadSubscription=jt.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new Lt.a,this.change=new Lt.a,t instanceof a.O&&t.changes.subscribe((function(e){if(i._activeItem){var t=e.toArray().indexOf(i._activeItem);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<i.length+1;n++){var a=(e._activeItemIndex+n)%i.length,r=i[a];if(!e._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(a);break}}e._pressedLetters=[]})),this}},{key:"setActiveItem",value:function(e){var t=this._activeItemIndex;this.updateActiveItem(e),this._activeItemIndex!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,i=e.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every((function(i){return!e[i]||t._allowedModifierKeys.indexOf(i)>-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<t.length;i++)t[i].hasAttribute("cdk-focus-".concat(e))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",t[i]):t[i].hasAttribute("cdk-focus-region-".concat(e))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",t[i]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return e?(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),Object(a.jb)()&&!this._checker.isFocusable(e)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",e),e.focus(),!0):this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,i=0;i<t.length;i++){var n=t[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[i]):null;if(n)return n}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,i=t.length-1;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&&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;c<o;c++)s[c-1]=arguments[c];return 1===s.length&&"number"==typeof s[0]?n=s[0]:(i=(t=_slicedToArray(s,2))[0],n=t[1]),this.clear(),clearTimeout(this._previousTimeout),i||(i=r&&r.politeness?r.politeness:"polite"),null==n&&r&&(n=r.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular((function(){return new Promise((function(t){clearTimeout(a._previousTimeout),a._previousTimeout=setTimeout((function(){a._liveElement.textContent=e,t(),"number"==typeof n&&(a._previousTimeout=setTimeout((function(){return a.clear()}),n))}),100)}))}))}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div"),i=0;i<e.length;i++)e[i].parentNode.removeChild(e[i]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}]),e}()).\u0275fac=function(e){return new(e||an)(a.Sc(sn,8),a.Sc(a.I),a.Sc(yt.e),a.Sc(cn,8))},an.\u0275prov=Object(a.zc)({factory:function(){return new an(Object(a.Sc)(sn,8),Object(a.Sc)(a.I),Object(a.Sc)(yt.e),Object(a.Sc)(cn,8))},token:an,providedIn:"root"}),an),un=new a.x("cdk-focus-monitor-default-options"),dn=Ai({passive:!0,capture:!0}),hn=((on=function(){function e(t,i,n,a){var r=this;_classCallCheck(this,e),this._ngZone=t,this._platform=i,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=function(){r._lastTouchTarget=null,r._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(){r._lastTouchTarget||r._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=function(e){null!=r._touchTimeoutId&&clearTimeout(r._touchTimeoutId),r._lastTouchTarget=e.composedPath?e.composedPath()[0]:e.target,r._touchTimeoutId=setTimeout((function(){return r._lastTouchTarget=null}),650)},this._windowFocusListener=function(){r._windowFocused=!0,r._windowFocusTimeoutId=setTimeout((function(){return r._windowFocused=!1}))},this._document=n,this._detectionMode=(null==a?void 0:a.detectionMode)||0}return _createClass(e,[{key:"monitor",value:function(e){var t=this,i=arguments.length>1&&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;i<e;i++)t[i]=arguments[i];var n=t[t.length-1];return Object(Ft.a)(n)?(t.pop(),function(e){return En(t,e,n)}):function(e){return En(t,e)}}var Tn=["*",[["mat-option"],["ng-container"]]],Pn=["*","mat-option, ng-container"];function Rn(e,t){if(1&e&&a.Ec(0,"mat-pseudo-checkbox",3),2&e){var i=a.ad();a.gd("state",i.selected?"checked":"unchecked")("disabled",i.disabled)}}var Mn,Ln=["*"],jn=function(){var e=function e(){_classCallCheck(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),Fn=function(){var e=function e(){_classCallCheck(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),Nn=new a.ab("9.2.0"),zn=new a.x("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Bn=((Mn=function(){function e(t,i,n){_classCallCheck(this,e),this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(e,[{key:"_getDocument",value:function(){var e=this._document||document;return"object"==typeof e&&e?e:null}},{key:"_getWindow",value:function(){var e=this._getDocument(),t=(null==e?void 0:e.defaultView)||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return Object(a.jb)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){var e=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),t=this._getDocument();e&&t&&!t.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){var e=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,t=this._getDocument();if(!e&&t&&t.body&&"function"==typeof getComputedStyle){var i=t.createElement("div");i.classList.add("mat-theme-loaded-marker"),t.body.appendChild(i);var 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"),t.body.removeChild(i)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Nn.full!==In.full&&console.warn("The Angular Material version ("+Nn.full+") does not match the Angular CDK version ("+In.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275mod=a.Bc({type:Mn}),Mn.\u0275inj=a.Ac({factory:function(e){return new(e||Mn)(a.Sc(yn),a.Sc(zn,8),a.Sc(yt.e,8))},imports:[[Sn],Sn]}),Mn);function Jn(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;r<n;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a)))._disabled=!1,e}return _createClass(i,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e)}}]),i}(e)}function Vn(e,t){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;o<a;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).color=t,e}return _createClass(n,[{key:"color",get:function(){return this._color},set:function(e){var i=e||t;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),i&&this._elementRef.nativeElement.classList.add("mat-".concat(i)),this._color=i)}}]),n}(e)}function Hn(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;r<n;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a)))._disableRipple=!1,e}return _createClass(i,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=fi(e)}}]),i}(e)}function Un(e){var t=arguments.length>1&&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;o<a;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r)))._tabIndex=t,e}return _createClass(n,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?e:t}}]),n}(e)}function Gn(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;r<n;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a))).errorState=!1,e.stateChanges=new Lt.a,e}return _createClass(i,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}]),i}(e)}function Wn(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;r<n;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a)))._isInitialized=!1,e._pendingSubscribers=[],e.initialized=new si.a((function(t){e._isInitialized?e._notifySubscriber(t):e._pendingSubscribers.push(t)})),e}return _createClass(i,[{key:"_markInitialized",value:function(){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}},{key:"_notifySubscriber",value:function(e){e.next(),e.complete()}}]),i}(e)}var qn,$n=new a.x("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(a.ib)(a.C)}}),Kn=function(){function e(){_classCallCheck(this,e),this._localeChanges=new Lt.a}return _createClass(e,[{key:"deserialize",value:function(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}},{key:"setLocale",value:function(e){this.locale=e,this._localeChanges.next()}},{key:"compareDate",value:function(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)}},{key:"sameDate",value:function(e,t){if(e&&t){var i=this.isValid(e),n=this.isValid(t);return i&&n?!this.compareDate(e,t):i==n}return e==t}},{key:"clampDate",value:function(e,t,i){return t&&this.compareDate(e,t)<0?t:i&&this.compareDate(e,i)>0?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;n<e;n++)i[n]=t(n);return i}var ia,na,aa,ra,oa,sa=((na=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this)).useUtcForDisplay=!0,_get(_getPrototypeOf(i.prototype),"setLocale",_assertThisInitialized(a)).call(_assertThisInitialized(a),e),a.useUtcForDisplay=!n.TRIDENT,a._clampDate=n.TRIDENT||n.EDGE,a}return _createClass(i,[{key:"getYear",value:function(e){return e.getFullYear()}},{key:"getMonth",value:function(e){return e.getMonth()}},{key:"getDate",value:function(e){return e.getDate()}},{key:"getDayOfWeek",value:function(e){return e.getDay()}},{key:"getMonthNames",value:function(e){var t=this;if(qn){var i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return ta(12,(function(e){return t._stripDirectionalityCharacters(t._format(i,new Date(2017,e,1)))}))}return Yn[e]}},{key:"getDateNames",value:function(){var e=this;if(qn){var t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ta(31,(function(i){return e._stripDirectionalityCharacters(e._format(t,new Date(2017,0,i+1)))}))}return Zn}},{key:"getDayOfWeekNames",value:function(e){var t=this;if(qn){var i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return ta(7,(function(e){return t._stripDirectionalityCharacters(t._format(i,new Date(2017,0,e+1)))}))}return Qn[e]}},{key:"getYearName",value:function(e){if(qn){var t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(t,e))}return String(this.getYear(e))}},{key:"getFirstDayOfWeek",value:function(){return 0}},{key:"getNumDaysInMonth",value:function(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}},{key:"clone",value:function(e){return new Date(e.getTime())}},{key:"createDate",value:function(e,t,i){if(t<0||t>11)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()<r._lastTouchStartEvent+800;r._target.rippleDisabled||t||i||(r._isPointerDown=!0,r.fadeInRipple(e.clientX,e.clientY,r._target.rippleConfig))},this._onTouchStart=function(e){if(!r._target.rippleDisabled){r._lastTouchStartEvent=Date.now(),r._isPointerDown=!0;for(var t=e.changedTouches,i=0;i<t.length;i++)r.fadeInRipple(t[i].clientX,t[i].clientY,r._target.rippleConfig)}},this._onPointerUp=function(){r._isPointerDown&&(r._isPointerDown=!1,r._activeRipples.forEach((function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()})))},a.isBrowser&&(this._containerElement=_i(n),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))}return _createClass(e,[{key:"fadeInRipple",value:function(e,t){var i=this,n=arguments.length>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;o<e+1;o++)n[o].group&&n[o].group===a[r]&&r++;return r}return 0}function Ja(e,t,i,n){var a=e*t;return a<i?a:a+t>i+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<t;n++)i[n]=arguments[n];return i.some((function(t){return e._getHostElement().hasAttribute(t)}))}}]),i}(Ya)).\u0275fac=function(e){return new(e||Ga)(a.Dc(a.r),a.Dc(hn),a.Dc(Pt,8))},Ga.\u0275cmp=a.xc({type:Ga,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(e,t){var i;1&e&&a.Fd(Da,!0),2&e&&a.md(i=a.Xc())&&(t.ripple=i.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(e,t){2&e&&(a.qc("disabled",t.disabled||null),a.tc("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],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}),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;n<t;n++)i[n]=arguments[n];this._verifyValueAssignment(i),i.forEach((function(t){return e._markSelected(t)})),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];this._verifyValueAssignment(i),i.forEach((function(t){return e._unmarkSelected(t)})),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach((function(t){return e._unmarkSelected(t)}))}},{key:"_verifyValueAssignment",value:function(e){if(e.length>1&&!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;i<e;i++)t[i]=arguments[i];if(1===t.length){var n=t[0];if(Object(rr.a)(n))return lr(n,null);if(Object(or.a)(n)&&Object.getPrototypeOf(n)===Object.prototype){var a=Object.keys(n);return lr(a.map((function(e){return n[e]})),a)}}if("function"==typeof t[t.length-1]){var r=t.pop();return lr(t=1===t.length&&Object(rr.a)(t[0])?t[0]:t,null).pipe(Object(ri.a)((function(e){return r.apply(void 0,_toConsumableArray(e))})))}return lr(t,null)}function lr(e,t){return new si.a((function(i){var n=e.length;if(0!==n)for(var a=new Array(n),r=0,o=0,s=function(s){var c=Object(sr.a)(e[s]),l=!1;i.add(c.subscribe({next:function(e){l||(l=!0,o++),a[s]=e},error:function(e){return i.error(e)},complete:function(){++r!==n&&l||(o===n&&i.next(t?t.reduce((function(e,t,i){return e[t]=a[i],e}),{}):a),i.complete())}}))},c=0;c<n;c++)s(c);else i.complete()}))}var ur,dr,hr,pr,fr=new a.x("NgValueAccessor"),mr={provide:fr,useExisting:Object(a.hb)((function(){return gr})),multi:!0},gr=((ur=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,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{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||ur)(a.Dc(a.P),a.Dc(a.r))},ur.\u0275dir=a.yc({type:ur,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&a.Wc("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(){return t.onTouched()}))},features:[a.oc([mr])]}),ur),vr={provide:fr,useExisting:Object(a.hb)((function(){return _r})),multi:!0},br=new a.x("CompositionEventMode"),_r=((pr=function(){function e(t,i,n){var a;_classCallCheck(this,e),this._renderer=t,this._elementRef=i,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(a=Object(yt.N)()?Object(yt.N)().getUserAgent():"",!/android (\d+)/.test(a.toLowerCase())))}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=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}()).\u0275fac=function(e){return new(e||pr)(a.Dc(a.P),a.Dc(a.r),a.Dc(br,8))},pr.\u0275dir=a.yc({type:pr,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(e,t){1&e&&a.Wc("input",(function(e){return t._handleInput(e.target.value)}))("blur",(function(){return t.onTouched()}))("compositionstart",(function(){return t._compositionStart()}))("compositionend",(function(e){return t._compositionEnd(e.target.value)}))},features:[a.oc([vr])]}),pr),yr=((hr=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}}]),e}()).\u0275fac=function(e){return new(e||hr)},hr.\u0275dir=a.yc({type:hr}),hr),kr=((dr=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return _createClass(i,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),i}(yr)).\u0275fac=function(e){return wr(e||dr)},dr.\u0275dir=a.yc({type:dr,features:[a.mc]}),dr),wr=a.Lc(kr);function Cr(){throw new Error("unimplemented")}var xr,Sr,Ir=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return _createClass(i,[{key:"validator",get:function(){return Cr()}},{key:"asyncValidator",get:function(){return Cr()}}]),i}(yr),Or=function(){function e(t){_classCallCheck(this,e),this._cd=t}return _createClass(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),Dr=((Sr=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){return _classCallCheck(this,i),t.call(this,e)}return i}(Or)).\u0275fac=function(e){return new(e||Sr)(a.Dc(Ir,2))},Sr.\u0275dir=a.yc({type:Sr,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&a.tc("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[a.mc]}),Sr),Er=((xr=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){return _classCallCheck(this,i),t.call(this,e)}return i}(Or)).\u0275fac=function(e){return new(e||xr)(a.Dc(kr,2))},xr.\u0275dir=a.yc({type:xr,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&a.tc("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[a.mc]}),xr);function Ar(e){return null==e||0===e.length}var Tr=new a.x("NgValidators"),Pr=new a.x("NgAsyncValidators"),Rr=/^(?=.{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])?)*$/,Mr=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"min",value:function(e){return function(t){if(Ar(t.value)||Ar(e))return null;var i=parseFloat(t.value);return!isNaN(i)&&i<e?{min:{min:e,actual:t.value}}:null}}},{key:"max",value:function(e){return function(t){if(Ar(t.value)||Ar(e))return null;var i=parseFloat(t.value);return!isNaN(i)&&i>e?{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 i<e?{minlength:{requiredLength:e,actualLength:i}}:null}}},{key:"maxLength",value:function(e){return function(t){var i=t.value?t.value.length:0;return i>e?{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: <input type="radio" formControlName="food" name="food">\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 <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Zr='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Qr='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',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 <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\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<i.length;t++){var n=i[t];if(this._compareWith(this._optionMap.get(n),e))return n}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}},{key:"compareWith",set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(e)));this._compareWith=e}}]),e}()).\u0275fac=function(e){return new(e||ao)(a.Dc(a.P),a.Dc(a.r))},ao.\u0275dir=a.yc({type:ao,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&a.Wc("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[a.oc([to])]}),ao),oo=((no=function(){function e(t,i,n){_classCallCheck(this,e),this._element=t,this._renderer=i,this._select=n,this._select&&(this.id=this._select._registerOption())}return _createClass(e,[{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}},{key:"ngValue",set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(io(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}}]),e}()).\u0275fac=function(e){return new(e||no)(a.Dc(a.r),a.Dc(a.P),a.Dc(ro,9))},no.\u0275dir=a.yc({type:no,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),no),so={provide:fr,useExisting:Object(a.hb)((function(){return ho})),multi:!0};function co(e,t){return null==e?"".concat(t):("string"==typeof t&&(t="'".concat(t,"'")),t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var lo,uo,ho=((uo=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){var t,i=this;if(this.value=e,Array.isArray(e)){var n=e.map((function(e){return i._getOptionId(e)}));t=function(e,t){e._setSelected(n.indexOf(t.toString())>-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;r<a.length;r++){var o=a.item(r),s=t._getOptionValue(o.value);n.push(s)}else for(var c=i.options,l=0;l<c.length;l++){var u=c.item(l);if(u.selected){var d=t._getOptionValue(u.value);n.push(d)}}t.value=n,e(n)}}},{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(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,i=Array.from(this._optionMap.keys());t<i.length;t++){var n=i[t];if(this._compareWith(this._optionMap.get(n)._value,e))return n}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}},{key:"compareWith",set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(e)));this._compareWith=e}}]),e}()).\u0275fac=function(e){return new(e||uo)(a.Dc(a.P),a.Dc(a.r))},uo.\u0275dir=a.yc({type:uo,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&a.Wc("change",(function(e){return t.onChange(e.target)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[a.oc([so])]}),uo),po=((lo=function(){function e(t,i,n){_classCallCheck(this,e),this._element=t,this._renderer=i,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return _createClass(e,[{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"_setSelected",value:function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}},{key:"ngValue",set:function(e){null!=this._select&&(this._value=e,this._setElementValue(co(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._select?(this._value=e,this._setElementValue(co(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}}]),e}()).\u0275fac=function(e){return new(e||lo)(a.Dc(a.r),a.Dc(a.P),a.Dc(ho,9))},lo.\u0275dir=a.yc({type:lo,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),lo);function fo(e,t){return[].concat(_toConsumableArray(t.path),[e])}function mo(e,t){e||_o(t,"Cannot find control with"),t.valueAccessor||_o(t,"No value accessor for form control with"),e.validator=Mr.compose([e.validator,t.validator]),e.asyncValidator=Mr.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange((function(i){e._pendingValue=i,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&go(e,t)}))}(e,t),function(e,t){e.registerOnChange((function(e,i){t.valueAccessor.writeValue(e),i&&t.viewToModelUpdate(e)}))}(e,t),function(e,t){t.valueAccessor.registerOnTouched((function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&go(e,t),"submit"!==e.updateOn&&e.markAsTouched()}))}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange((function(e){t.valueAccessor.setDisabledState(e)})),t._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))})),t._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))}))}function go(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function vo(e,t){null==e&&_o(t,"Cannot find control with"),e.validator=Mr.compose([e.validator,t.validator]),e.asyncValidator=Mr.composeAsync([e.asyncValidator,t.asyncValidator])}function bo(e){return _o(e,"There is no FormControl instance attached to form control element with")}function _o(e,t){var i;throw i=e.path.length>1?"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);e<t.length;e++){var i=t[e];if(this.controls[i].enabled)return!1}return Object.keys(this.controls).length>0||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 <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\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: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}},{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;u<d;u++)e(t[u],i,n,a,r)}a.add(o)}(e,t,(function(e){n.next(arguments.length>1?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(++n<a&&(e=i.shift()));if(this.active=!1,t){for(;++n<a&&(e=i.shift());)e.unsubscribe();throw t}}}]),i}(Xt))(ol),cl=1,ll=Promise.resolve(),ul={};function dl(e){return e in ul&&(delete ul[e],!0)}var hl=function(e){var t=cl++;return ul[t]=!0,ll.then((function(){return dl(t)&&e()})),t},pl=function(e){dl(e)},fl=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=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<a&&(e=i.shift()));if(this.active=!1,t){for(;++n<a&&(e=i.shift());)e.unsubscribe();throw t}}}]),i}(Xt))(fl);function gl(e,t){return function(i){return i.lift(new vl(e,t))}}var vl=function(){function e(t,i){_classCallCheck(this,e),this.compare=t,this.keySelector=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new bl(e,this.compare,this.keySelector))}}]),e}(),bl=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)).keySelector=a,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return _createClass(i,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var i=this.keySelector;t=i?i(e):e}catch(a){return this.destination.error(a)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,t)}catch(a){return this.destination.error(a)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}]),i}(Vt.a),_l=i("l7GE"),yl=i("ZUHj"),kl=function(){function e(t){_classCallCheck(this,e),this.durationSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new wl(e,this.durationSelector))}}]),e}(),wl=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).durationSelector=n,a.hasValue=!1,a}return _createClass(i,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(n){return this.destination.error(n)}var i=Object(yl.a)(this,t);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,i=this.throttled;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(e,t,i,n){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),i}(_l.a);function Cl(e){return!Object(rr.a)(e)&&e-parseFloat(e)+1>=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;o<r&&!e.closed;o++)e.next(n[o]);else for(var s=0;s<r&&!e.closed;s++)e.next(n[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||Ll).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,i=this._windowTime,n=this._events,a=n.length,r=0;r<a&&!(e-n[r].time<i);)r++;return a>t&&(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.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right}))}function wu(e,t){return t.some((function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.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<n.length;i++){var a=n[i];void 0!==t[a]&&(this[a]=t[a])}},Ou=function e(t,i,n,a,r){_classCallCheck(this,e),this.offsetX=n,this.offsetY=a,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=i.overlayX,this.overlayY=i.overlayY},Du=function e(t,i){_classCallCheck(this,e),this.connectionPair=t,this.scrollableViewProperties=i};function Eu(e,t){if("top"!==t&&"bottom"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid ".concat(e,' "').concat(t,'". ')+'Expected "top", "bottom" or "center".')}function Au(e,t){if("start"!==t&&"end"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid ".concat(e,' "').concat(t,'". ')+'Expected "start", "end" or "center".')}var Tu,Pu,Ru=((Tu=function(){function e(t){var i=this;_classCallCheck(this,e),this._attachedOverlays=[],this._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-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;i<t.length;i++)t[i].parentNode.removeChild(t[i]);var n=this._document.createElement("div");n.classList.add("cdk-overlay-container"),Mu?n.setAttribute("platform","test"):e||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}]),e}()).\u0275fac=function(e){return new(e||Pu)(a.Sc(yt.e),a.Sc(Ii))},Pu.\u0275prov=Object(a.zc)({factory:function(){return new Pu(Object(a.Sc)(yt.e),Object(a.Sc)(Ii))},token:Pu,providedIn:"root"}),Pu),ju=function(){function e(t,i,n,a,r,o,s,c){var l=this;_classCallCheck(this,e),this._portalOutlet=t,this._host=i,this._pane=n,this._config=a,this._ngZone=r,this._keyboardDispatcher=o,this._document=s,this._location=c,this._backdropElement=null,this._backdropClick=new Lt.a,this._attachments=new Lt.a,this._detachments=new Lt.a,this._locationChanges=jt.a.EMPTY,this._backdropClickHandler=function(e){return l._backdropClick.next(e)},this._keydownEventsObservable=new si.a((function(e){var t=l._keydownEvents.subscribe(e);return l._keydownEventSubscriptions++,function(){t.unsubscribe(),l._keydownEventSubscriptions--}})),this._keydownEvents=new Lt.a,this._keydownEventSubscriptions=0,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy}return _createClass(e,[{key:"attach",value:function(e){var t=this,i=this._portalOutlet.attach(e);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(ui(1)).subscribe((function(){t.hasAttached()&&t.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((function(){return t.dispose()}))),i}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),e}}},{key:"dispose",value:function(){var e=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,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick.asObservable()}},{key:"attachments",value:function(){return this._attachments.asObservable()}},{key:"detachments",value:function(){return this._detachments.asObservable()}},{key:"keydownEvents",value:function(){return this._keydownEventsObservable}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=bi(this._config.width),e.height=bi(this._config.height),e.minWidth=bi(this._config.minWidth),e.minHeight=bi(this._config.minHeight),e.maxWidth=bi(this._config.maxWidth),e.maxHeight=bi(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"auto":"none"}},{key:"_attachBackdrop",value:function(){var e=this;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((function(){requestAnimationFrame((function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")}))})):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e,t=this,i=this._backdropElement;if(i){var n=function n(){i&&(i.removeEventListener("click",t._backdropClickHandler),i.removeEventListener("transitionend",n),i.parentNode&&i.parentNode.removeChild(i)),t._backdropElement==i&&(t._backdropElement=null),t._config.backdropClass&&t._toggleClasses(i,t._config.backdropClass,!1),clearTimeout(e)};i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular((function(){i.addEventListener("transitionend",n)})),i.style.pointerEvents="none",e=this._ngZone.runOutsideAngular((function(){return setTimeout(n,500)}))}}},{key:"_toggleClasses",value:function(e,t,i){var n=e.classList;vi(t).forEach((function(e){e&&(i?n.add(e):n.remove(e))}))}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular((function(){var t=e._ngZone.onStable.asObservable().pipe(Ol(Object(al.a)(e._attachments,e._detachments))).subscribe((function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())}))}))}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}},{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}}]),e}(),Fu=/([A-Za-z%]+)$/,Nu=function(){function e(t,i,n,a,r){_classCallCheck(this,e),this._viewportRuler=i,this._document=n,this._platform=a,this._overlayContainer=r,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 Lt.a,this._resizeSubscription=jt.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}return _createClass(e,[{key:"attach",value:function(e){var t=this;if(this._overlayRef&&e!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe((function(){t._isInitialRender=!0,t.apply()}))}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,i=this._originRect,n=this._overlayRect,a=this._viewportRect,r=[],o=_createForOfIteratorHelper(this._preferredPositions);try{for(o.s();!(t=o.n()).done;){var s=t.value,c=this._getOriginPoint(i,s),l=this._getOverlayPoint(c,n,s),u=this._getOverlayFit(l,n,a,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(u,l,a)?r.push({position:s,origin:c,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!e||e.overlayFit.visibleArea<u.visibleArea)&&(e={overlayFit:u,overlayPoint:l,originPoint:c,position:s,overlayRect:n})}}catch(v){o.e(v)}finally{o.f()}if(r.length){var d,h=null,p=-1,f=_createForOfIteratorHelper(r);try{for(f.s();!(d=f.n()).done;){var m=d.value,g=m.boundingBoxRect.width*m.boundingBoxRect.height*(m.position.weight||1);g>p&&(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.x<this._viewportMargin?r.left-i.left-e.x:0,a=t.height<=r.height?c||-s:e.y<this._viewportMargin?r.top-i.top-e.y:0,this._previousPushAmount={x:n,y:a},{x:e.x+n,y:e.y+a}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var i=this._getScrollVisibility(),n=new Du(e,i);this._positionChanges.next(n)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,i=this._boundingBox.querySelectorAll(this._transformOriginSelector),n=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var a=0;a<i.length;a++)i[a].style.transformOrigin="".concat(t," ").concat(n)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var i,n,a,r,o,s,c=this._viewportRect,l=this._isRtl();if("top"===t.overlayY)n=e.y,i=c.height-n+this._viewportMargin;else if("bottom"===t.overlayY)a=c.height-e.y+2*this._viewportMargin,i=c.height-a+this._viewportMargin;else{var u=Math.min(c.bottom-e.y+c.top,e.y),d=this._lastBoundingBoxSize.height;i=2*u,n=e.y-u,i>d&&!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;n<t;n++)i[n-1]=arguments[n];return i.reduce((function(e,t){return e-Math.max(t,0)}),e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach((function(e){Au("originX",e.originX),Eu("originY",e.originY),Au("overlayX",e.overlayX),Eu("overlayY",e.overlayY)}))}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&vi(e).forEach((function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))}))}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach((function(t){e._pane.classList.remove(t)})),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof a.r)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}},{key:"positions",get:function(){return this._preferredPositions}}]),e}();function zu(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function Bu(e){if("number"!=typeof e&&null!=e){var t=_slicedToArray(e.split(Fu),2),i=t[0],n=t[1];return n&&"px"!==n?null:parseFloat(i)}return e||null}var Ju,Vu,Hu,Uu,Gu,Wu=function(){function e(t,i,n,a,r,o,s){_classCallCheck(this,e),this._preferredPositions=[],this._positionStrategy=new Nu(n,a,r,o,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,i)}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,i,n){var a=new Ou(e,t,i,n);return this._preferredPositions.push(a),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}},{key:"_isRtl",get:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"onPositionChange",get:function(){return this._positionStrategy.positionChanges}},{key:"positions",get:function(){return this._preferredPositions}}]),e}(),qu=function(){function e(){_classCallCheck(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return _createClass(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&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;h<a.length;h++)a[h].style.width="".concat(t,"px");for(var p=0;p<r.length;p++)r[p].style.width="".concat(i,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}},{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=fi(e)}},{key:"_shouldAlwaysFloat",get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",get:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"_labelChild",get:function(){return this._labelChildNonStatic||this._labelChildStatic}}]),i}(Jd)).\u0275fac=function(e){return new(e||Rd)(a.Dc(a.r),a.Dc(a.j),a.Dc(qa,8),a.Dc(Cn,8),a.Dc(Vd,8),a.Dc(Ii),a.Dc(a.I),a.Dc(Pt,8))},Rd.\u0275cmp=a.xc({type:Rd,selectors:[["mat-form-field"]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,Sd,!0),a.wd(i,Sd,!0),a.vc(i,jd,!0),a.wd(i,jd,!0),a.vc(i,Fd,!0),a.vc(i,Cd,!0),a.vc(i,Ld,!0),a.vc(i,Nd,!0),a.vc(i,zd,!0)),2&e&&(a.md(n=a.Xc())&&(t._controlNonStatic=n.first),a.md(n=a.Xc())&&(t._controlStatic=n.first),a.md(n=a.Xc())&&(t._labelChildNonStatic=n.first),a.md(n=a.Xc())&&(t._labelChildStatic=n.first),a.md(n=a.Xc())&&(t._placeholderChild=n.first),a.md(n=a.Xc())&&(t._errorChildren=n),a.md(n=a.Xc())&&(t._hintChildren=n),a.md(n=a.Xc())&&(t._prefixChildren=n),a.md(n=a.Xc())&&(t._suffixChildren=n))},viewQuery:function(e,t){var i;1&e&&(a.Fd(nd,!0),a.xd(ad,!0),a.Fd(rd,!0),a.Fd(od,!0)),2&e&&(a.md(i=a.Xc())&&(t.underlineRef=i.first),a.md(i=a.Xc())&&(t._connectionContainerRef=i.first),a.md(i=a.Xc())&&(t._inputContainerRef=i.first),a.md(i=a.Xc())&&(t._label=i.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&a.tc("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat)("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[a.oc([{provide:Hd,useExisting:Rd}]),a.mc],ngContentSelectors:kd,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(a.fd(yd),a.Jc(0,"div",0),a.Jc(1,"div",1,2),a.Wc("click",(function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)})),a.zd(3,sd,9,0,"ng-container",3),a.zd(4,cd,2,0,"div",4),a.Jc(5,"div",5,6),a.ed(7),a.Jc(8,"span",7),a.zd(9,hd,5,16,"label",8),a.Ic(),a.Ic(),a.zd(10,pd,2,0,"div",9),a.Ic(),a.zd(11,fd,3,4,"div",10),a.Jc(12,"div",11),a.zd(13,md,2,1,"div",12),a.zd(14,vd,5,2,"div",13),a.Ic(),a.Ic()),2&e&&(a.pc(3),a.gd("ngIf","outline"==t.appearance),a.pc(1),a.gd("ngIf",t._prefixChildren.length),a.pc(5),a.gd("ngIf",t._hasFloatingLabel()),a.pc(1),a.gd("ngIf",t._suffixChildren.length),a.pc(1),a.gd("ngIf","outline"!=t.appearance),a.pc(1),a.gd("ngSwitch",t._getDisplayedMessages()),a.pc(1),a.gd("ngSwitchCase","error"),a.pc(1),a.gd("ngSwitchCase","hint"))},directives:[yt.t,yt.x,yt.y,zi],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[xd.transitionMessages]},changeDetection:0}),Rd),Gd=((Pd=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Pd}),Pd.\u0275inj=a.Ac({factory:function(e){return new(e||Pd)},imports:[[yt.c,Bi]]}),Pd);function Wd(e){var t,i=arguments.length>1&&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-t<e||0==i);return Math.max(t,0)}},{key:"_nextRow",value:function(){this.columnIndex=0,this.rowIndex++;for(var e=0;e<this.tracker.length;e++)this.tracker[e]=Math.max(0,this.tracker[e]-1)}},{key:"_findGapEndIndex",value:function(e){for(var t=e+1;t<this.tracker.length;t++)if(0!=this.tracker[t])return t;return this.tracker.length}},{key:"_markTilePosition",value:function(e,t){for(var i=0;i<t.colspan;i++)this.tracker[e+i]=t.rowspan}},{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var e=Math.max.apply(Math,_toConsumableArray(this.tracker));return e>1?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: <mat-grid-list cols="3">')}},{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?"?":s<i.length-1?"&":"")+o}}else this.params=new hf,this.urlWithParams=i}return _createClass(e,[{key:"serializeBody",value:function(){return null===this.body?null:pf(this.body)||ff(this.body)||mf(this.body)||"string"==typeof this.body?this.body:this.body instanceof hf?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||mf(this.body)?null:ff(this.body)?this.body.type||null:pf(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof hf?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&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("<svg></svg>");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("<svg> tag not found");return i}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),i=e.attributes,n=0;n<i.length;n++){var a=i[n],r=a.name,o=a.value;"id"!==r&&t.setAttribute(r,o)}for(var s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[s].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchUrl",value:function(e){var t=this;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==e)throw Error('Cannot fetch icon from URL "'.concat(e,'".'));var i=this._sanitizer.sanitize(a.T.RESOURCE_URL,e);if(!i)throw Xf(e);var n=this._inProgressUrlFetches.get(i);if(n)return n;var r=this._httpClient.get(i,{responseType:"text"}).pipe(ef((function(){return t._inProgressUrlFetches.delete(i)})),Object(af.a)());return this._inProgressUrlFetches.set(i,r),r}},{key:"_addSvgIconConfig",value:function(e,t,i){return this._svgIconConfigs.set(im(e,t),i),this}},{key:"_addSvgIconSetConfig",value:function(e,t){var i=this._iconSetConfigs.get(e);return i?i.push(t):this._iconSetConfigs.set(e,[t]),this}}]),e}()).\u0275fac=function(e){return new(e||Zf)(a.Sc(Pf,8),a.Sc(n.b),a.Sc(yt.e,8),a.Sc(a.t,8))},Zf.\u0275prov=Object(a.zc)({factory:function(){return new Zf(Object(a.Sc)(Pf,8),Object(a.Sc)(n.b),Object(a.Sc)(yt.e,8),Object(a.Sc)(a.t,8))},token:Zf,providedIn:"root"}),Zf);function tm(e){return e.cloneNode(!0)}function im(e,t){return e+":"+t}var nm,am,rm,om,sm,cm,lm,um,dm,hm,pm,fm=Vn((function e(t){_classCallCheck(this,e),this._elementRef=t})),mm=new a.x("mat-icon-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:""}}}}),gm=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],vm=gm.map((function(e){return"[".concat(e,"]")})).join(", "),bm=/^url\(['"]?#(.*?)['"]?\)$/,_m=((am=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))._iconRegistry=n,s._location=r,s._errorHandler=o,s._inline=!1,a||e.nativeElement.setAttribute("aria-hidden","true"),s}return _createClass(i,[{key:"_splitIconName",value:function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'.concat(e,'"'))}}},{key:"ngOnChanges",value:function(e){var t=this,i=e.svgIcon;if(i)if(this.svgIcon){var n=_slicedToArray(this._splitIconName(this.svgIcon),2),a=n[0],r=n[1];this._iconRegistry.getNamedSvgIcon(r,a).pipe(ui(1)).subscribe((function(e){return t._setSvgElement(e)}),(function(e){var i="Error retrieving icon ".concat(a,":").concat(r,"! ").concat(e.message);t._errorHandler?t._errorHandler.handleError(new Error(i)):console.error(i)}))}else i.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngOnInit",value:function(){this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var e=this._elementsWithExternalReferences;if(e&&this._location&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}},{key:"ngOnDestroy",value:function(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),i=0;i<t.length;i++)t[i].textContent+=" ";if(this._location){var n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n)}this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var i=e.childNodes[t];1===i.nodeType&&"svg"!==i.nodeName.toLowerCase()||e.removeChild(i)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach((function(t,i){t.forEach((function(t){i.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))}))}))}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(vm),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,n=function(e){gm.forEach((function(n){var a=t[e],r=a.getAttribute(n),o=r?r.match(bm):null;if(o){var s=i.get(a);s||(s=[],i.set(a,s)),s.push({name:n,value:o[1]})}}))},a=0;a<t.length;a++)n(a)}},{key:"inline",get:function(){return this._inline},set:function(e){this._inline=fi(e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){this._fontSet=this._cleanupFontValue(e)}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){this._fontIcon=this._cleanupFontValue(e)}}]),i}(fm)).\u0275fac=function(e){return new(e||am)(a.Dc(a.r),a.Dc(em),a.Tc("aria-hidden"),a.Dc(mm,8),a.Dc(a.t,8))},am.\u0275cmp=a.xc({type:am,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(e,t){2&e&&a.tc("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[a.mc,a.nc],ngContentSelectors:$f,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.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}),am),ym=((nm=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:nm}),nm.\u0275inj=a.Ac({factory:function(e){return new(e||nm)},imports:[[Bn],Bn]}),nm),km=Ai({passive:!0}),wm=((lm=function(){function e(t,i){_classCallCheck(this,e),this._platform=t,this._ngZone=i,this._monitoredElements=new Map}return _createClass(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return ci;var i=_i(e),n=this._monitoredElements.get(i);if(n)return n.subject.asObservable();var a=new Lt.a,r="cdk-text-field-autofilled",o=function(e){"cdk-text-field-autofill-start"!==e.animationName||i.classList.contains(r)?"cdk-text-field-autofill-end"===e.animationName&&i.classList.contains(r)&&(i.classList.remove(r),t._ngZone.run((function(){return a.next({target:e.target,isAutofilled:!1})}))):(i.classList.add(r),t._ngZone.run((function(){return a.next({target:e.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){i.addEventListener("animationstart",o,km),i.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(i,{subject:a,unlisten:function(){i.removeEventListener("animationstart",o,km)}}),a.asObservable()}},{key:"stopMonitoring",value:function(e){var t=_i(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach((function(t,i){return e.stopMonitoring(i)}))}}]),e}()).\u0275fac=function(e){return new(e||lm)(a.Sc(Ii),a.Sc(a.I))},lm.\u0275prov=Object(a.zc)({factory:function(){return new lm(Object(a.Sc)(Ii),Object(a.Sc)(a.I))},token:lm,providedIn:"root"}),lm),Cm=((cm=function(){function e(t,i){_classCallCheck(this,e),this._elementRef=t,this._autofillMonitor=i,this.cdkAutofill=new a.u}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._autofillMonitor.monitor(this._elementRef).subscribe((function(t){return e.cdkAutofill.emit(t)}))}},{key:"ngOnDestroy",value:function(){this._autofillMonitor.stopMonitoring(this._elementRef)}}]),e}()).\u0275fac=function(e){return new(e||cm)(a.Dc(a.r),a.Dc(wm))},cm.\u0275dir=a.yc({type:cm,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),cm),xm=((sm=function(){function e(t,i,n,a){_classCallCheck(this,e),this._elementRef=t,this._platform=i,this._ngZone=n,this._destroyed=new Lt.a,this._enabled=!0,this._previousMinRows=-1,this._document=a,this._textareaElement=this._elementRef.nativeElement}return _createClass(e,[{key:"_setMinHeight",value:function(){var e=this.minRows&&this._cachedLineHeight?"".concat(this.minRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.minHeight=e)}},{key:"_setMaxHeight",value:function(){var e=this.maxRows&&this._cachedLineHeight?"".concat(this.maxRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.maxHeight=e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular((function(){rl(e._getWindow(),"resize").pipe(Il(16),Ol(e._destroyed)).subscribe((function(){return e.resizeToFitContent(!0)}))})))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,this._textareaElement.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var e=this,t=arguments.length>0&&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<this.options.length}},{key:"_getOptionIndex",value:function(e){return this.options.toArray().indexOf(e)}},{key:"_markOptionsForCheck",value:function(){this.options&&this.options.forEach((function(e){return e._markForCheck()}))}},{key:"_allowFocusEscape",value:function(){var e=this;this._tabIndex=-1,setTimeout((function(){e._tabIndex=0,e._changeDetector.markForCheck()}))}},{key:"_updateTabIndex",value:function(){this._tabIndex=0===this.options.length?-1:0}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=fi(e),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(e){var t=fi(e);if(t!==this._multiple){if(Object(a.jb)()&&this._contentInitialized)throw new Error("Cannot change `multiple` mode of mat-selection-list after initialization.");this._multiple=t,this.selectedOptions=new nr(this._multiple,this.selectedOptions.selected)}}}]),i}(sg)).\u0275fac=function(e){return new(e||$m)(a.Dc(a.r),a.Tc("tabindex"),a.Dc(a.j))},$m.\u0275cmp=a.xc({type:$m,selectors:[["mat-selection-list"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,dg,!0),2&e&&a.md(n=a.Xc())&&(t.options=n)},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,t){1&e&&a.Wc("focus",(function(){return t._onFocus()}))("blur",(function(){return t._onTouched()}))("keydown",(function(e){return t._keydown(e)})),2&e&&a.qc("aria-multiselectable",t.multiple)("aria-disabled",t.disabled.toString())("tabindex",t._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[a.oc([lg]),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}),$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;a<n;a++)e.childNodes[a].nodeType===t&&(i+=e.childNodes[a].textContent);return i.trim()}}]),i}(Dg)).\u0275fac=function(e){return new(e||bg)(a.Dc(a.r),a.Dc(yt.e),a.Dc(hn),a.Dc(Og,8))},bg.\u0275cmp=a.xc({type:bg,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&a.Wc("click",(function(e){return t._checkDisabled(e)}))("mouseenter",(function(){return t._handleMouseEnter()})),2&e&&(a.qc("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),a.tc("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[a.mc],attrs:fg,ngContentSelectors:mg,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(a.fd(),a.ed(0),a.Ec(1,"div",0)),2&e&&(a.pc(1),a.gd("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[Da],encapsulation:2,changeDetection:0}),bg),Ag=new a.x("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),Tg=0,Pg=((yg=function(){function e(t,i,n){_classCallCheck(this,e),this._elementRef=t,this._ngZone=i,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new a.O,this._tabSubscription=jt.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Lt.a,this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new a.u,this.close=this.closed,this.panelId="mat-menu-panel-".concat(Tg++)}return _createClass(e,[{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new Xi(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe((function(){return e.closed.emit("tab")})),this._directDescendantItems.changes.pipe(An(this._directDescendantItems),Tl((function(e){return Object(al.a).apply(void 0,_toConsumableArray(e.map((function(e){return e._focused}))))}))).subscribe((function(t){return e._keyManager.updateActiveItem(t)}))}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(An(this._directDescendantItems),Tl((function(e){return Object(al.a).apply(void 0,_toConsumableArray(e.map((function(e){return e._hovered}))))})))}},{key:"addItem",value:function(e){}},{key:"removeItem",value:function(e){}},{key:"_handleKeydown",value:function(e){var t=e.keyCode,i=this._keyManager;switch(t){case 27:Jt(e)||(e.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:Jt(e)||(36===t?i.setFirstItemActive():i.setLastItemActive(),e.preventDefault());break;default:38!==t&&40!==t||i.setFocusOrigin("keyboard"),i.onKeydown(e)}}},{key:"focusFirstItem",value:function(){var e=this,t=arguments.length>0&&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: <mat-menu xPosition="before" #menu="matMenu"></mat-menu>')}(),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: <mat-menu yPosition="above" #menu="matMenu"></mat-menu>')}(),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 <mat-menu #menu="matMenu"></mat-menu>\n <button [matMenuTriggerFor]="menu"></button>')}()}},{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;i<e;i++)t[i]=arguments[i];var n=null,a=null;return Object(Ft.a)(t[t.length-1])&&(a=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(rr.a)(t[0])&&(t=t[0]),Object(Nt.a)(t,a).lift(new Wg(n))}var Ug,Gg,Wg=function(){function e(t){_classCallCheck(this,e),this.resultSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new qg(e,this.resultSelector))}}]),e}(),qg=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var a;return _classCallCheck(this,i),(a=t.call(this,e)).resultSelector=n,a.active=0,a.values=[],a.observables=[],a}return _createClass(i,[{key:"_next",value:function(e){this.values.push(Vg),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var i=0;i<t;i++){var n=e[i];this.add(Object(yl.a)(this,n,n,i))}}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,i,n,a){var r=this.values,o=this.toRespond?r[i]===Vg?--this.toRespond:this.toRespond:0;r[i]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}]),i}(_l.a),$g=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Kg(e,this.total))}}]),e}(),Kg=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){++this.count>this.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 `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` 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<t.length;i++)if(t[i].isActive){e._indexToSelect=e._selectedIndex=i;break}e._changeDetectorRef.markForCheck()}))}},{key:"_subscribeToAllTabChanges",value:function(){var e=this;this._allTabs.changes.pipe(An(this._allTabs)).subscribe((function(t){e._tabs.reset(t.filter((function(t){return!t._closestTabGroup||t._closestTabGroup===e}))),e._tabs.notifyOnChanges()}))}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"_focusChanged",value:function(e){this.focusChange.emit(this._createChangeEvent(e))}},{key:"_createChangeEvent",value:function(e){var t=new Py;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}},{key:"_subscribeToTabLabels",value:function(){var e=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(al.a).apply(void 0,_toConsumableArray(this._tabs.map((function(e){return e._stateChanges})))).subscribe((function(){return e._changeDetectorRef.markForCheck()}))}},{key:"_clampTabIndex",value:function(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}},{key:"_getTabLabelId",value:function(e){return"mat-tab-label-".concat(this._groupId,"-").concat(e)}},{key:"_getTabContentId",value:function(e){return"mat-tab-content-".concat(this._groupId,"-").concat(e)}},{key:"_setTabBodyWrapperHeight",value:function(e){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(e,t,i){e.disabled||(this.selectedIndex=t.focusIndex=i)}},{key:"_getTabIndex",value:function(e,t){return e.disabled?null:this.selectedIndex===t?0:-1}},{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(e){this._dynamicHeight=fi(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){this._indexToSelect=mi(e,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement;t.classList.remove("mat-background-".concat(this.backgroundColor)),e&&t.classList.add("mat-background-".concat(e)),this._backgroundColor=e}}]),i}(Ry)).\u0275fac=function(e){return new(e||ny)(a.Dc(a.r),a.Dc(a.j),a.Dc(Ay,8),a.Dc(Pt,8))},ny.\u0275dir=a.yc({type:ny,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.mc]}),ny),Ly=((iy=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r){return _classCallCheck(this,i),t.call(this,e,n,a,r)}return i}(My)).\u0275fac=function(e){return new(e||iy)(a.Dc(a.r),a.Dc(a.j),a.Dc(Ay,8),a.Dc(Pt,8))},iy.\u0275cmp=a.xc({type:iy,selectors:[["mat-tab-group"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,Sy,!0),2&e&&a.md(n=a.Xc())&&(t._allTabs=n)},viewQuery:function(e,t){var i;1&e&&(a.Fd(V_,!0),a.Fd(H_,!0)),2&e&&(a.md(i=a.Xc())&&(t._tabBodyWrapper=i.first),a.md(i=a.Xc())&&(t._tabHeader=i.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&a.tc("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a.oc([{provide:xy,useExisting:iy}]),a.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(e,t){1&e&&(a.Jc(0,"mat-tab-header",0,1),a.Wc("indexFocused",(function(e){return t._focusChanged(e)}))("selectFocusedIndex",(function(e){return t.selectedIndex=e})),a.zd(2,q_,4,14,"div",2),a.Ic(),a.Jc(3,"div",3,4),a.zd(5,$_,1,8,"mat-tab-body",5),a.Ic()),2&e&&(a.gd("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),a.pc(2),a.gd("ngForOf",t._tabs),a.pc(1),a.tc("_mat-animation-noopable","NoopAnimations"===t._animationMode),a.pc(2),a.gd("ngForOf",t._tabs))},directives:function(){return[Jy,yt.s,Fy,Da,pn,yt.t,hu,Ey]},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}),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;i<c?this.scrollDistance-=c-i+60:n>l&&(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;i<t.length;i++)if(t[i].active)return this.selectedIndex=i,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement.classList;t.remove("mat-background-".concat(this.backgroundColor)),e&&t.add("mat-background-".concat(e)),this._backgroundColor=e}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=fi(e)}}]),i}(zy)).\u0275fac=function(e){return new(e||oy)(a.Dc(a.r),a.Dc(Cn,8),a.Dc(a.I),a.Dc(a.j),a.Dc(Zl),a.Dc(Ii,8),a.Dc(Pt,8))},oy.\u0275dir=a.yc({type:oy,inputs:{color:"color",backgroundColor:"backgroundColor",disableRipple:"disableRipple"},features:[a.mc]}),oy),Hy=((ry=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}(Vy)).\u0275fac=function(e){return new(e||ry)(a.Dc(a.r),a.Dc(Cn,8),a.Dc(a.I),a.Dc(a.j),a.Dc(Zl),a.Dc(Ii,8),a.Dc(Pt,8))},ry.\u0275cmp=a.xc({type:ry,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,Wy,!0),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-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(e,t){2&e&&a.tc("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())("mat-primary","warn"!==t.color&&"accent"!==t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.mc],attrs:vy,ngContentSelectors:N_,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(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(10),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-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}),ry),Uy=Un(Hn(Jn((function e(){_classCallCheck(this,e)})))),Gy=((hy=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n,a,r,o,s){var c;return _classCallCheck(this,i),(c=t.call(this))._tabNavBar=e,c.elementRef=n,c._focusMonitor=o,c._isActive=!1,c.rippleConfig=a||{},c.tabIndex=parseInt(r)||0,"NoopAnimations"===s&&(c.rippleConfig.animation={enterDuration:0,exitDuration:0}),o.monitor(n),c}return _createClass(i,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}},{key:"active",get:function(){return this._isActive},set:function(e){e!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink(this.elementRef))}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}]),i}(Uy)).\u0275fac=function(e){return new(e||hy)(a.Dc(Vy),a.Dc(a.r),a.Dc(Oa,8),a.Tc("tabindex"),a.Dc(hn),a.Dc(Pt,8))},hy.\u0275dir=a.yc({type:hy,inputs:{active:"active"},features:[a.mc]}),hy),Wy=((dy=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,n,o,s,c,l))._tabLinkRipple=new Ia(_assertThisInitialized(u),a,n,r),u._tabLinkRipple.setupTriggerEvents(n.nativeElement),u}return _createClass(i,[{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(i.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),i}(Gy)).\u0275fac=function(e){return new(e||dy)(a.Dc(Hy),a.Dc(a.r),a.Dc(a.I),a.Dc(Ii),a.Dc(Oa,8),a.Tc("tabindex"),a.Dc(hn),a.Dc(Pt,8))},dy.\u0275dir=a.yc({type:dy,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(e,t){2&e&&(a.qc("aria-current",t.active?"page":null)("aria-disabled",t.disabled)("tabIndex",t.tabIndex),a.tc("mat-tab-disabled",t.disabled)("mat-tab-label-active",t.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.mc]}),dy),qy=((uy=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:uy}),uy.\u0275inj=a.Ac({factory:function(e){return new(e||uy)},imports:[[yt.c,Bn,mu,Ea,Bi,kn],Bn]}),uy);function $y(e,t){if(1&e&&(a.Jc(0,"mat-option",19),a.Bd(1),a.Ic()),2&e){var i=t.$implicit;a.gd("value",i),a.pc(1),a.Dd(" ",i," ")}}function Ky(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-form-field",16),a.Jc(1,"mat-select",17),a.Wc("selectionChange",(function(e){return a.rd(i),a.ad(2)._changePageSize(e.value)})),a.zd(2,$y,2,2,"mat-option",18),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.gd("color",n.color),a.pc(1),a.gd("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),a.pc(1),a.gd("ngForOf",n._displayedPageSizeOptions)}}function Xy(e,t){if(1&e&&(a.Jc(0,"div",20),a.Bd(1),a.Ic()),2&e){var i=a.ad(2);a.pc(1),a.Cd(i.pageSize)}}function Yy(e,t){if(1&e&&(a.Jc(0,"div",12),a.Jc(1,"div",13),a.Bd(2),a.Ic(),a.zd(3,Ky,3,5,"mat-form-field",14),a.zd(4,Xy,2,1,"div",15),a.Ic()),2&e){var i=a.ad();a.pc(2),a.Dd(" ",i._intl.itemsPerPageLabel," "),a.pc(1),a.gd("ngIf",i._displayedPageSizeOptions.length>1),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<e&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(e){var t=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(t)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((function(e,t){return e-t})),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}},{key:"pageIndex",get:function(){return this._pageIndex},set:function(e){this._pageIndex=Math.max(mi(e),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(e){this._length=mi(e),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=Math.max(mi(e),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(e){this._pageSizeOptions=(e||[]).map((function(e){return mi(e)})),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(e){this._hidePageSize=fi(e)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(e){this._showFirstLastButtons=fi(e)}}]),i}(ok)).\u0275fac=function(e){return new(e||ik)(a.Dc(nk),a.Dc(a.j),a.Dc(rk,8))},ik.\u0275cmp=a.xc({type:ik,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:[a.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(e,t){1&e&&(a.Jc(0,"div",0),a.Jc(1,"div",1),a.zd(2,Yy,5,3,"div",2),a.Jc(3,"div",3),a.Jc(4,"div",4),a.Bd(5),a.Ic(),a.zd(6,Zy,3,5,"button",5),a.Jc(7,"button",6),a.Wc("click",(function(){return t.previousPage()})),a.Zc(),a.Jc(8,"svg",7),a.Ec(9,"path",8),a.Ic(),a.Ic(),a.Yc(),a.Jc(10,"button",9),a.Wc("click",(function(){return t.nextPage()})),a.Zc(),a.Jc(11,"svg",7),a.Ec(12,"path",10),a.Ic(),a.Ic(),a.zd(13,Qy,3,5,"button",11),a.Ic(),a.Ic(),a.Ic()),2&e&&(a.pc(2),a.gd("ngIf",!t.hidePageSize),a.pc(3),a.Dd(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),a.pc(1),a.gd("ngIf",t.showFirstLastButtons),a.pc(1),a.gd("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),a.qc("aria-label",t._intl.previousPageLabel),a.pc(3),a.gd("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),a.qc("aria-label",t._intl.nextPageLabel),a.pc(3),a.gd("ngIf",t.showFirstLastButtons))},directives:[yt.t,Za,hv,Ud,mb,yt.s,za],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}),ik),ck=((tk=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:tk}),tk.\u0275inj=a.Ac({factory:function(e){return new(e||tk)},providers:[ak],imports:[[yt.c,er,gb,fv]]}),tk),lk=["mat-sort-header",""];function uk(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",3),a.Wc("@arrowPosition.start",(function(){return a.rd(i),a.ad()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return a.rd(i),a.ad()._disableViewStateAnimation=!1})),a.Ec(1,"div",4),a.Jc(2,"div",5),a.Ec(3,"div",6),a.Ec(4,"div",7),a.Ec(5,"div",8),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.gd("@arrowOpacity",n._getArrowViewState())("@arrowPosition",n._getArrowViewState())("@allowChildren",n._getArrowDirectionState()),a.pc(2),a.gd("@indicator",n._getArrowDirectionState()),a.pc(1),a.gd("@leftPointer",n._getArrowDirectionState()),a.pc(1),a.gd("@rightPointer",n._getArrowDirectionState())}}var dk,hk,pk,fk,mk=["*"],gk=Wn(Jn((function e(){_classCallCheck(this,e)}))),vk=((dk=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments)).sortables=new Map,e._stateChanges=new Lt.a,e.start="asc",e._direction="",e.sortChange=new a.u,e}return _createClass(i,[{key:"register",value:function(e){if(!e.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(e.id))throw Error("Cannot have two MatSortables with the same id (".concat(e.id,")."));this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(e){if(!e)return"";var t,i,n,a=(t=e.start||this.start,i=null!=e.disableClear?e.disableClear:this.disableClear,n=["asc","desc"],"desc"==t&&n.reverse(),i||n.push(""),n),r=a.indexOf(this.direction)+1;return r>=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;r<n;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a)))._sticky=!1,e._hasStickyChanged=!1,e}return _createClass(i,[{key:"hasStickyChanged",value:function(){var e=this._hasStickyChanged;return this._hasStickyChanged=!1,e}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}},{key:"sticky",get:function(){return this._sticky},set:function(e){var t=this._sticky;this._sticky=fi(e),this._hasStickyChanged=t!==this._sticky}}]),i}(e)}var Pk,Rk,Mk,Lk,jk,Fk,Nk,zk,Bk,Jk,Vk,Hk,Uk,Gk,Wk,qk=new a.x("CDK_TABLE"),$k=new a.x("text-column-options"),Kk=((Mk=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||Mk)(a.Dc(a.Y))},Mk.\u0275dir=a.yc({type:Mk,selectors:[["","cdkCellDef",""]]}),Mk),Xk=((Rk=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||Rk)(a.Dc(a.Y))},Rk.\u0275dir=a.yc({type:Rk,selectors:[["","cdkHeaderCellDef",""]]}),Rk),Yk=((Pk=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||Pk)(a.Dc(a.Y))},Pk.\u0275dir=a.yc({type:Pk,selectors:[["","cdkFooterCellDef",""]]}),Pk),Zk=Tk((function e(){_classCallCheck(this,e)})),Qk=((Lk=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n;return _classCallCheck(this,i),(n=t.call(this))._table=e,n._stickyEnd=!1,n}return _createClass(i,[{key:"name",get:function(){return this._name},set:function(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"))}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(e){var t=this._stickyEnd;this._stickyEnd=fi(e),this._hasStickyChanged=t!==this._stickyEnd}}]),i}(Zk)).\u0275fac=function(e){return new(e||Lk)(a.Dc(qk,8))},Lk.\u0275dir=a.yc({type:Lk,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,Kk,!0),a.vc(i,Xk,!0),a.vc(i,Yk,!0)),2&e&&(a.md(n=a.Xc())&&(t.cell=n.first),a.md(n=a.Xc())&&(t.headerCell=n.first),a.md(n=a.Xc())&&(t.footerCell=n.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[a.oc([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Lk}]),a.mc]}),Lk),ew=function e(t,i){_classCallCheck(this,e),i.nativeElement.classList.add("cdk-column-".concat(t.cssClassFriendlyName))},tw=((zk=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){return _classCallCheck(this,i),t.call(this,e,n)}return i}(ew)).\u0275fac=function(e){return new(e||zk)(a.Dc(Qk),a.Dc(a.r))},zk.\u0275dir=a.yc({type:zk,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[a.mc]}),zk),iw=((Nk=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){return _classCallCheck(this,i),t.call(this,e,n)}return i}(ew)).\u0275fac=function(e){return new(e||Nk)(a.Dc(Qk),a.Dc(a.r))},Nk.\u0275dir=a.yc({type:Nk,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[a.mc]}),Nk),nw=((Fk=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){return _classCallCheck(this,i),t.call(this,e,n)}return i}(ew)).\u0275fac=function(e){return new(e||Fk)(a.Dc(Qk),a.Dc(a.r))},Fk.\u0275dir=a.yc({type:Fk,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[a.mc]}),Fk),aw=((jk=function(){function e(t,i){_classCallCheck(this,e),this.template=t,this._differs=i}return _createClass(e,[{key:"ngOnChanges",value:function(e){if(!this._columnsDiffer){var t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(e){return this instanceof ow?e.headerCell.template:this instanceof cw?e.footerCell.template:e.cell.template}}]),e}()).\u0275fac=function(e){a.Vc()},jk.\u0275dir=a.yc({type:jk,features:[a.nc]}),jk),rw=Tk(function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(aw)),ow=((Bk=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))._table=a,r}return _createClass(i,[{key:"ngOnChanges",value:function(e){_get(_getPrototypeOf(i.prototype),"ngOnChanges",this).call(this,e)}}]),i}(rw)).\u0275fac=function(e){return new(e||Bk)(a.Dc(a.Y),a.Dc(a.A),a.Dc(qk,8))},Bk.\u0275dir=a.yc({type:Bk,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[a.mc,a.nc]}),Bk),sw=Tk(function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(aw)),cw=((Wk=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))._table=a,r}return _createClass(i,[{key:"ngOnChanges",value:function(e){_get(_getPrototypeOf(i.prototype),"ngOnChanges",this).call(this,e)}}]),i}(sw)).\u0275fac=function(e){return new(e||Wk)(a.Dc(a.Y),a.Dc(a.A),a.Dc(qk,8))},Wk.\u0275dir=a.yc({type:Wk,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[a.mc,a.nc]}),Wk),lw=((Gk=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))._table=a,r}return i}(aw)).\u0275fac=function(e){return new(e||Gk)(a.Dc(a.Y),a.Dc(a.A),a.Dc(qk,8))},Gk.\u0275dir=a.yc({type:Gk,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[a.mc]}),Gk),uw=((Uk=function(){function e(t){_classCallCheck(this,e),this._viewContainer=t,e.mostRecentCellOutlet=this}return _createClass(e,[{key:"ngOnDestroy",value:function(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}}]),e}()).\u0275fac=function(e){return new(e||Uk)(a.Dc(a.cb))},Uk.\u0275dir=a.yc({type:Uk,selectors:[["","cdkCellOutlet",""]]}),Uk.mostRecentCellOutlet=null,Uk),dw=((Hk=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Hk)},Hk.\u0275cmp=a.xc({type:Hk,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&a.Fc(0,0)},directives:[uw],encapsulation:2}),Hk),hw=((Vk=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Vk)},Vk.\u0275cmp=a.xc({type:Vk,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&a.Fc(0,0)},directives:[uw],encapsulation:2}),Vk),pw=((Jk=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Jk)},Jk.\u0275cmp=a.xc({type:Jk,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&a.Fc(0,0)},directives:[uw],encapsulation:2}),Jk),fw=["top","bottom","left","right"],mw=function(){function e(t,i,n){var a=!(arguments.length>3&&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;r<a.children.length;r++)this._removeStickyStyle(a.children[r],t)}}}catch(o){n.e(o)}finally{n.f()}}},{key:"updateStickyColumns",value:function(e,t,i){var n=t.some((function(e){return e}))||i.some((function(e){return e}));if(e.length&&n&&this._isBrowser){var a,r=e[0],o=r.children.length,s=this._getCellWidths(r),c=this._getStickyStartColumnPositions(s,t),l=this._getStickyEndColumnPositions(s,i),u="rtl"===this.direction,d=_createForOfIteratorHelper(e);try{for(d.s();!(a=d.n()).done;)for(var h=a.value,p=0;p<o;p++){var f=h.children[p];t[p]&&this._addStickyStyle(f,u?"right":"left",c[p]),i[p]&&this._addStickyStyle(f,u?"left":"right",l[p])}}catch(m){d.e(m)}finally{d.f()}}}},{key:"stickRows",value:function(e,t,i){if(this._isBrowser)for(var n="bottom"===i?e.reverse():e,a=0,r=0;r<n.length;r++)if(t[r]){var o=n[r];if(this._isNativeHtmlTable)for(var s=0;s<o.children.length;s++)this._addStickyStyle(o.children[s],i,a);else this._addStickyStyle(o,i,a);if(r===n.length-1)return;a+=o.getBoundingClientRect().height}}},{key:"updateStickyFooterContainer",value:function(e,t){if(this._isNativeHtmlTable){var i=e.querySelector("tfoot");t.some((function(e){return!e}))?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0)}}},{key:"_removeStickyStyle",value:function(e,t){var i,n=_createForOfIteratorHelper(t);try{for(n.s();!(i=n.n()).done;){var a=i.value;e.style[a]=""}}catch(r){n.e(r)}finally{n.f()}e.style.zIndex=this._getCalculatedZIndex(e),fw.some((function(t){return!!e.style[t]}))||(e.style.position="",e.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(e,t,i){e.classList.add(this._stickCellCss),e.style[t]="".concat(i,"px"),e.style.cssText+="position: -webkit-sticky; position: sticky; ",e.style.zIndex=this._getCalculatedZIndex(e)}},{key:"_getCalculatedZIndex",value:function(e){var t,i={top:100,bottom:10,left:1,right:1},n=0,a=_createForOfIteratorHelper(fw);try{for(a.s();!(t=a.n()).done;){var r=t.value;e.style[r]&&(n+=i[r])}}catch(o){a.e(o)}finally{a.f()}return n?"".concat(n):""}},{key:"_getCellWidths",value:function(e){for(var t=[],i=e.children,n=0;n<i.length;n++)t.push(i[n].getBoundingClientRect().width);return t}},{key:"_getStickyStartColumnPositions",value:function(e,t){for(var i=[],n=0,a=0;a<e.length;a++)t[a]&&(i[a]=n,n+=e[a]);return i}},{key:"_getStickyEndColumnPositions",value:function(e,t){for(var i=[],n=0,a=e.length;a>0;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;a<i.length;a++)e._renderRows[a].rowDef===t&&n.push(i[a]);e._addStickyColumnStyles(n,t)})),n.forEach((function(t,i){e._addStickyColumnStyles([t],e._footerRowDefs[i])})),Array.from(this._columnDefsByName.values()).forEach((function(e){return e.resetStickyChanged()}))}},{key:"_getAllRenderRows",value:function(){var e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var i=0;i<this._data.length;i++){var n=this._data[i],a=this._getRenderRowsForData(n,i,t.get(n));this._cachedRenderRowsMap.has(n)||this._cachedRenderRowsMap.set(n,new WeakMap);for(var r=0;r<a.length;r++){var o=a[r],s=this._cachedRenderRowsMap.get(o.data);s.has(o.rowDef)?s.get(o.rowDef).push(o):s.set(o.rowDef,[o]),e.push(o)}}return e}},{key:"_getRenderRowsForData",value:function(e,t,i){return this._getRowDefs(e,t).map((function(n){var a=i&&i.has(n)?i.get(n):[];if(a.length){var r=a.shift();return r.dataIndex=t,r}return{data:e,rowDef:n,dataIndex:t}}))}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),Sw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach((function(t){if(e._columnDefsByName.has(t.name))throw Error('Duplicate column definition name provided: "'.concat(t.name,'".'));e._columnDefsByName.set(t.name,t)}))}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=Sw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Sw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Sw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var e=this._rowDefs.filter((function(e){return!e.when}));if(!this.multiTemplateDataRows&&e.length>1)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;i<e.viewContainer.length;i++){var n=e.viewContainer.get(i);t.push(n.rootNodes[0])}return t}},{key:"_getRowDefs",value:function(e,t){if(1==this._rowDefs.length)return[this._rowDefs[0]];var i=[];if(this.multiTemplateDataRows)i=this._rowDefs.filter((function(i){return!i.when||i.when(t,e)}));else{var n=this._rowDefs.find((function(i){return i.when&&i.when(t,e)}))||this._defaultRowDef;n&&i.push(n)}if(!i.length)throw function(e){return Error("Could not find a matching row definition for the"+"provided row data: ".concat(JSON.stringify(e)))}(e);return i}},{key:"_insertRow",value:function(e,t){this._renderRow(this._rowOutlet,e.rowDef,t,{$implicit:e.data})}},{key:"_renderRow",value:function(e,t,i){var n=arguments.length>3&&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;t<i;t++){var n=e.get(t).context;n.count=i,n.first=0===t,n.last=t===i-1,n.even=t%2==0,n.odd=!n.even,this.multiTemplateDataRows?(n.dataIndex=this._renderRows[t].dataIndex,n.renderIndex=t):n.index=this._renderRows[t].dataIndex}}},{key:"_getCellTemplates",value:function(e){var t=this;return e&&e.columns?Array.from(e.columns,(function(i){var n=t._columnDefsByName.get(i);if(!n)throw gw(i);return e.extractCellTemplate(n)})):[]}},{key:"_applyNativeTableSections",value:function(){for(var e=this._document.createDocumentFragment(),t=0,i=[{tag:"thead",outlet:this._headerRowOutlet},{tag:"tbody",outlet:this._rowOutlet},{tag:"tfoot",outlet:this._footerRowOutlet}];t<i.length;t++){var n=i[t],a=this._document.createElement(n.tag);a.setAttribute("role","rowgroup"),a.appendChild(n.outlet.elementRef.nativeElement),e.appendChild(a)}this._elementRef.nativeElement.appendChild(e)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows(),this.updateStickyColumnStyles()}},{key:"_checkStickyStates",value:function(){var e=function(e,t){return e||t.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&this.updateStickyColumnStyles()}},{key:"_setupStickyStyler",value:function(){var e=this;this._stickyStyler=new mw(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._platform.isBrowser),(this._dir?this._dir.change:Bt()).pipe(Ol(this._onDestroy)).subscribe((function(t){e._stickyStyler.direction=t,e.updateStickyColumnStyles()}))}},{key:"_getOwnDefs",value:function(e){var t=this;return e.filter((function(e){return!e._table||e._table===t}))}},{key:"trackBy",get:function(){return this._trackByFn},set:function(e){Object(a.jb)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(e),".")),this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=fi(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()}}]),e}()).\u0275fac=function(e){return new(e||vw)(a.Dc(a.A),a.Dc(a.j),a.Dc(a.r),a.Tc("role"),a.Dc(Cn,8),a.Dc(yt.e),a.Dc(Ii))},vw.\u0275cmp=a.xc({type:vw,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,Qk,!0),a.vc(i,lw,!0),a.vc(i,ow,!0),a.vc(i,cw,!0)),2&e&&(a.md(n=a.Xc())&&(t._contentColumnDefs=n),a.md(n=a.Xc())&&(t._contentRowDefs=n),a.md(n=a.Xc())&&(t._contentHeaderRowDefs=n),a.md(n=a.Xc())&&(t._contentFooterRowDefs=n))},viewQuery:function(e,t){var i;1&e&&(a.xd(kw,!0),a.xd(ww,!0),a.xd(Cw,!0)),2&e&&(a.md(i=a.Xc())&&(t._rowOutlet=i.first),a.md(i=a.Xc())&&(t._headerRowOutlet=i.first),a.md(i=a.Xc())&&(t._footerRowOutlet=i.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[a.oc([{provide:qk,useExisting:vw}])],ngContentSelectors:Dk,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(a.fd(Ok),a.ed(0),a.Fc(1,0),a.Fc(2,1),a.Fc(3,2))},directives:[ww,kw,Cw],encapsulation:2}),vw);function Sw(e,t){return e.concat(Array.from(t))}var Iw,Ow,Dw=((Ow=function(){function e(t,i){_classCallCheck(this,e),this._table=t,this._options=i,this.justify="start",this._options=i||{}}return _createClass(e,[{key:"ngOnInit",value:function(){if(this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||function(e,t){return e[t]}),!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)}},{key:"ngOnDestroy",value:function(){this._table&&this._table.removeColumnDef(this.columnDef)}},{key:"_createDefaultHeaderText",value:function(){var e=this.name;if(Object(a.jb)()&&!e)throw Error("Table text column must have a name.");return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(e):e[0].toUpperCase()+e.slice(1)}},{key:"_syncColumnDefName",value:function(){this.columnDef&&(this.columnDef.name=this.name)}},{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._syncColumnDefName()}}]),e}()).\u0275fac=function(e){return new(e||Ow)(a.Dc(xw,8),a.Dc($k,8))},Ow.\u0275cmp=a.xc({type:Ow,selectors:[["cdk-text-column"]],viewQuery:function(e,t){var i;1&e&&(a.xd(Qk,!0),a.xd(Kk,!0),a.xd(Xk,!0)),2&e&&(a.md(i=a.Xc())&&(t.columnDef=i.first),a.md(i=a.Xc())&&(t.cell=i.first),a.md(i=a.Xc())&&(t.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(e,t){1&e&&(a.Hc(0,0),a.zd(1,Ek,2,3,"th",1),a.zd(2,Ak,2,3,"td",2),a.Gc())},directives:[Qk,Xk,Kk,tw,nw],encapsulation:2}),Ow),Ew=((Iw=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Iw}),Iw.\u0275inj=a.Ac({factory:function(e){return new(e||Iw)}}),Iw),Aw=[[["caption"]]],Tw=["caption"];function Pw(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 Rw(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)," ")}}var Mw,Lw,jw,Fw,Nw,zw,Bw,Jw,Vw,Hw,Uw,Gw,Ww,qw,$w,Kw,Xw=((Mw=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",e}return i}(xw)).\u0275fac=function(e){return Yw(e||Mw)},Mw.\u0275cmp=a.xc({type:Mw,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[a.oc([{provide:xw,useExisting:Mw},{provide:qk,useExisting:Mw}]),a.mc],ngContentSelectors:Tw,decls:4,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(a.fd(Aw),a.ed(0),a.Fc(1,0),a.Fc(2,1),a.Fc(3,2))},directives:[ww,kw,Cw],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}),Mw),Yw=a.Lc(Xw),Zw=((Lw=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Kk)).\u0275fac=function(e){return Qw(e||Lw)},Lw.\u0275dir=a.yc({type:Lw,selectors:[["","matCellDef",""]],features:[a.oc([{provide:Kk,useExisting:Lw}]),a.mc]}),Lw),Qw=a.Lc(Zw),eC=((jw=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Xk)).\u0275fac=function(e){return tC(e||jw)},jw.\u0275dir=a.yc({type:jw,selectors:[["","matHeaderCellDef",""]],features:[a.oc([{provide:Xk,useExisting:jw}]),a.mc]}),jw),tC=a.Lc(eC),iC=((Fw=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Yk)).\u0275fac=function(e){return nC(e||Fw)},Fw.\u0275dir=a.yc({type:Fw,selectors:[["","matFooterCellDef",""]],features:[a.oc([{provide:Yk,useExisting:Fw}]),a.mc]}),Fw),nC=a.Lc(iC),aC=((Nw=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Qk)).\u0275fac=function(e){return rC(e||Nw)},Nw.\u0275dir=a.yc({type:Nw,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[a.oc([{provide:Qk,useExisting:Nw},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Nw}]),a.mc]}),Nw),rC=a.Lc(aC),oC=((Vw=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),n.nativeElement.classList.add("mat-column-".concat(e.cssClassFriendlyName)),a}return i}(tw)).\u0275fac=function(e){return new(e||Vw)(a.Dc(Qk),a.Dc(a.r))},Vw.\u0275dir=a.yc({type:Vw,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[a.mc]}),Vw),sC=((Jw=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),n.nativeElement.classList.add("mat-column-".concat(e.cssClassFriendlyName)),a}return i}(iw)).\u0275fac=function(e){return new(e||Jw)(a.Dc(Qk),a.Dc(a.r))},Jw.\u0275dir=a.yc({type:Jw,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[a.mc]}),Jw),cC=((Bw=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),n.nativeElement.classList.add("mat-column-".concat(e.cssClassFriendlyName)),a}return i}(nw)).\u0275fac=function(e){return new(e||Bw)(a.Dc(Qk),a.Dc(a.r))},Bw.\u0275dir=a.yc({type:Bw,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[a.mc]}),Bw),lC=((zw=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(ow)).\u0275fac=function(e){return uC(e||zw)},zw.\u0275dir=a.yc({type:zw,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[a.oc([{provide:ow,useExisting:zw}]),a.mc]}),zw),uC=a.Lc(lC),dC=((Hw=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(cw)).\u0275fac=function(e){return hC(e||Hw)},Hw.\u0275dir=a.yc({type:Hw,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[a.oc([{provide:cw,useExisting:Hw}]),a.mc]}),Hw),hC=a.Lc(dC),pC=((Uw=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(lw)).\u0275fac=function(e){return fC(e||Uw)},Uw.\u0275dir=a.yc({type:Uw,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[a.oc([{provide:lw,useExisting:Uw}]),a.mc]}),Uw),fC=a.Lc(pC),mC=((Gw=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(dw)).\u0275fac=function(e){return gC(e||Gw)},Gw.\u0275cmp=a.xc({type:Gw,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[a.oc([{provide:dw,useExisting:Gw}]),a.mc],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&a.Fc(0,0)},directives:[uw],encapsulation:2}),Gw),gC=a.Lc(mC),vC=((Ww=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(hw)).\u0275fac=function(e){return bC(e||Ww)},Ww.\u0275cmp=a.xc({type:Ww,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[a.oc([{provide:hw,useExisting:Ww}]),a.mc],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&a.Fc(0,0)},directives:[uw],encapsulation:2}),Ww),bC=a.Lc(vC),_C=((qw=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(pw)).\u0275fac=function(e){return yC(e||qw)},qw.\u0275cmp=a.xc({type:qw,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[a.oc([{provide:pw,useExisting:qw}]),a.mc],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&a.Fc(0,0)},directives:[uw],encapsulation:2}),qw),yC=a.Lc(_C),kC=(($w=function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(Dw)).\u0275fac=function(e){return wC(e||$w)},$w.\u0275cmp=a.xc({type:$w,selectors:[["mat-text-column"]],features:[a.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(e,t){1&e&&(a.Hc(0,0),a.zd(1,Pw,2,3,"th",1),a.zd(2,Rw,2,3,"td",2),a.Gc())},directives:[aC,eC,Zw,oC,cC],encapsulation:2}),$w),wC=a.Lc(kC),CC=((Kw=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:Kw}),Kw.\u0275inj=a.Ac({factory:function(e){return new(e||Kw)},imports:[[Ew,Bn]]}),Kw),xC=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))._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:r<o&&(s=-1):null!=r?s=1:null!=o&&(s=-1),s*("asc"==a?1:-1)})):t},e.filterPredicate=function(e,t){var i=Object.keys(e).reduce((function(t,i){return t+e[i]+"\u25ec"}),"").toLowerCase(),n=t.trim().toLowerCase();return-1!=i.indexOf(n)},e._data=new Ik(n),e._updateChangeSubscription(),e}return _createClass(i,[{key:"_updateChangeSubscription",value:function(){var e=this,t=this._sort?Object(al.a)(this._sort.sortChange,this._sort.initialized):Bt(null),i=this._paginator?Object(al.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Bt(null),n=Hg([this._data,this._filter]).pipe(Object(ri.a)((function(t){var i=_slicedToArray(t,1)[0];return e._filterData(i)}))),a=Hg([n,t]).pipe(Object(ri.a)((function(t){var i=_slicedToArray(t,1)[0];return e._orderData(i)}))),r=Hg([a,i]).pipe(Object(ri.a)((function(t){var i=_slicedToArray(t,1)[0];return e._pageData(i)})));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=r.subscribe((function(t){return e._renderData.next(t)}))}},{key:"_filterData",value:function(e){var t=this;return this.filteredData=this.filter?e.filter((function(e){return t.filterPredicate(e,t.filter)})):e,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(e){return this.sort?this.sortData(e.slice(),this.sort):e}},{key:"_pageData",value:function(e){if(!this.paginator)return e;var t=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(t,t+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(e){var t=this;Promise.resolve().then((function(){var i=t.paginator;if(i&&(i.length=e,i.pageIndex>0)){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;a<i.length;a++)i[a].removeAttribute("id");if(n.length)for(var r=t.querySelectorAll("canvas"),o=0;o<n.length;o++){var s=r[o].getContext("2d");s&&s.drawImage(n[o],0,0)}return t}function LC(e,t,i){return Math.max(t,Math.min(i,e))}function jC(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function FC(e){return"t"===e.type[0]}function NC(e,t){var i=e.rootNodes[0];if(i.nodeType!==t.ELEMENT_NODE){var n=t.createElement("div");return n.appendChild(i),n}return i}function zC(e,t){var i=t.getBoundingClientRect();e.style.width="".concat(i.width,"px"),e.style.height="".concat(i.height,"px"),e.style.transform=RC(i.left,i.top)}function BC(e,t,i){var n=JC(t,e.length-1),a=JC(i,e.length-1);if(n!==a){for(var r=e[n],o=a<n?-1:1,s=n;s!==a;s+=o)e[s]=e[s+o];e[a]=r}}function JC(e,t){return Math.max(0,Math.min(t,e))}var VC=function(){function e(t,i,n,a,r){var o=this;_classCallCheck(this,e),this._dragDropRegistry=i,this._ngZone=a,this._viewportRuler=r,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=function(){return!0},this.beforeStarted=new Lt.a,this.entered=new Lt.a,this.exited=new Lt.a,this.dropped=new Lt.a,this.sorted=new Lt.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=jt.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Lt.a,this._cachedShadowRoot=null,this._startScrollInterval=function(){o._stopScrolling(),function(){var e=arguments.length>0&&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&&i<r+c&&t>o-s&&t<a+s}function GC(e,t){for(var i=0;i<e.length;i++)if(t(e[i],i,e))return i;return-1}function WC(e,t,i){var n=e.top,a=e.bottom,r=e.left,o=e.right;return i>=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.length<i?t.push(e):t[n%i]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var i=this.count>=this.total?this.total:this.count,n=this.ring,a=0;a<i;a++){var r=t++%i;e.next(n[r])}e.complete()}}]),i}(Vt.a);function Nx(){var e=arguments.length>0&&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.length<e.length))return null;for(var a={},r=0;r<n.length;r++){var o=n[r],s=e[r];if(o.startsWith(":"))a[o.substring(1)]=s;else if(o!==s.path)return null}return{consumed:e.slice(0,n.length),posParams:a}}var CS=function e(t,i){_classCallCheck(this,e),this.routes=t,this.module=i};function xS(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=0;i<e.length;i++){var n=e[i];SS(n,IS(t,n))}}function SS(e,t){if(!e)throw new Error("\n Invalid configuration of route '".concat(t,"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n "));if(Array.isArray(e))throw new Error("Invalid configuration of route '".concat(t,"': Array cannot be specified"));if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&"primary"!==e.outlet)throw new Error("Invalid configuration of route '".concat(t,"': a componentless route without children or loadChildren cannot have a named outlet set"));if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and children cannot be used together"));if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and loadChildren cannot be used together"));if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': children and loadChildren cannot be used together"));if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and component cannot be used together"));if(e.path&&e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': path and matcher cannot be used together"));if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"'. One of the following must be provided: component, redirectTo, children or loadChildren"));if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': routes must have either a path or a matcher specified"));if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '".concat(t,"': path cannot start with a slash"));if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error("Invalid configuration of route '{path: \"".concat(t,'", redirectTo: "').concat(e.redirectTo,"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'."));if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '".concat(t,"': pathMatch can only be set to 'prefix' or 'full'"));e.children&&xS(e.children,t)}function IS(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function OS(e){var t=e.children&&e.children.map(OS),i=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!i.component&&(t||i.loadChildren)&&i.outlet&&"primary"!==i.outlet&&(i.component=bS),i}function DS(e,t){var i,n=Object.keys(e),a=Object.keys(t);if(!n||!a||n.length!=a.length)return!1;for(var r=0;r<n.length;r++)if(!ES(e[i=n[r]],t[i]))return!1;return!0}function ES(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length==t.length&&e.every((function(e){return t.indexOf(e)>-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;i<e.length;++i)if(!DS(e[i],t[i]))return!1;return!0}(t.url,i.url)||e.url.next(i.url),DS(t.data,i.data)||e.data.next(i.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function mI(e,t){var i,n;return DS(e.params,t.params)&&NS(i=e.url,n=t.url)&&i.every((function(e,t){return DS(e.parameters,n[t].parameters)}))&&!(!e.parent!=!t.parent)&&(!e.parent||mI(e.parent,t.parent))}function gI(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function vI(e,t,i,n,a){var r={};return n&&PS(n,(function(e,t){r[t]=Array.isArray(e)?e.map((function(e){return"".concat(e)})):"".concat(e)})),new LS(i.root===e?t:function e(t,i,n){var a={};return PS(t.children,(function(t,r){a[r]=t===i?n:e(t,i,n)})),new jS(t.segments,a)}(i.root,e,t),r,a)}var bI=function(){function e(t,i,n){if(_classCallCheck(this,e),this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=n,t&&n.length>0&&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<e.segments.length;){if(n>=i.length)return r;var o=e.segments[a],s=yI(i[n]),c=n<i.length-1?i[n+1]:null;if(a>0&&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.pathIndex<e.segments.length){var r=new jS(e.segments.slice(0,n.pathIndex),{});return r.children.primary=new jS(e.segments.slice(n.pathIndex),e.children),wI(r,0,a)}return n.match&&0===a.length?new jS(e.segments,{}):n.match&&!e.hasChildren()?CI(e,t,i):n.match?wI(e,0,a):CI(e,t,i)}function wI(e,t,i){if(0===i.length)return new jS(e.segments,{});var n=function(e){return"object"!=typeof e[0]||void 0===e[0].outlets?{primary:e}:e[0].outlets}(i),a={};return PS(n,(function(i,n){null!==i&&(a[n]=kI(e.children[n],t,i))})),PS(e.children,(function(e,t){void 0===n[t]&&(a[t]=e)})),new jS(e.segments,a)}function CI(e,t,i){for(var n=e.segments.slice(0,t),a=0;a<i.length;){if("object"==typeof i[a]&&void 0!==i[a].outlets){var r=xI(i[a].outlets);return new jS(n,r)}if(0===a&&gI(i[0]))n.push(new FS(e.segments[t].path,i[0])),a++;else{var o=yI(i[a]),s=a<i.length-1?i[a+1]:null;o&&s&&gI(s)?(n.push(new FS(o,SI(s))),a+=2):(n.push(new FS(o,{})),a++)}}return new jS(n,{})}function xI(e){var t={};return PS(e,(function(e,i){null!==e&&(t[i]=CI(new jS([],{}),0,e))})),t}function SI(e){var t={};return PS(e,(function(e,i){return t[i]="".concat(e)})),t}function II(e,t,i){return e==i.path&&DS(t,i.parameters)}var OI=function(){function e(t,i,n,a){_classCallCheck(this,e),this.routeReuseStrategy=t,this.futureState=i,this.currState=n,this.forwardEvent=a}return _createClass(e,[{key:"activate",value:function(e){var t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,e),fI(this.futureState.root),this.activateChildRoutes(t,i,e)}},{key:"deactivateChildRoutes",value:function(e,t,i){var n=this,a=rI(t);e.children.forEach((function(e){var t=e.value.outlet;n.deactivateRoutes(e,a[t],i),delete a[t]})),PS(a,(function(e,t){n.deactivateRouteAndItsChildren(e,i)}))}},{key:"deactivateRoutes",value:function(e,t,i){var n=e.value,a=t?t.value:null;if(n===a)if(n.component){var r=i.getContext(n.outlet);r&&this.deactivateChildRoutes(e,t,r.children)}else this.deactivateChildRoutes(e,t,i);else a&&this.deactivateRouteAndItsChildren(t,i)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var i=t.getContext(e.value.outlet);if(i&&i.outlet){var n=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:n,route:e,contexts:a})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){var i=this,n=t.getContext(e.value.outlet);if(n){var a=rI(e),r=e.value.component?n.children:t;PS(a,(function(e,t){return i.deactivateRouteAndItsChildren(e,r)})),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}},{key:"activateChildRoutes",value:function(e,t,i){var n=this,a=rI(t);e.children.forEach((function(e){n.activateRoutes(e,a[e.value.outlet],i),n.forwardEvent(new gS(e.value.snapshot))})),e.children.length&&this.forwardEvent(new fS(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,i){var n=e.value,a=t?t.value:null;if(fI(n),n===a)if(n.component){var r=i.getOrCreateContext(n.outlet);this.activateChildRoutes(e,t,r.children)}else this.activateChildRoutes(e,t,i);else if(n.component){var o=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){var s=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),DI(s.route)}else{var c=function(e){for(var t=e.parent;t;t=t.parent){var i=t.routeConfig;if(i&&i._loadedConfig)return i._loadedConfig;if(i&&i.component)return null}return null}(n.snapshot),l=c?c.module.componentFactoryResolver:null;o.attachRef=null,o.route=n,o.resolver=l,o.outlet&&o.outlet.activateWith(n,l),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,i)}}]),e}();function DI(e){fI(e.value),e.children.forEach(DI)}function EI(e){return"function"==typeof e}function AI(e){return e instanceof LS}var TI=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},PI=function e(t){_classCallCheck(this,e),this.urlTree=t};function RI(e){return new si.a((function(t){return t.error(new TI(e))}))}function MI(e){return new si.a((function(t){return t.error(new PI(e))}))}function LI(e){return new si.a((function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))}))}var jI=function(){function e(t,i,n,r,o){_classCallCheck(this,e),this.configLoader=i,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(a.G)}return _createClass(e,[{key:"apply",value:function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(ri.a)((function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)}))).pipe(Yp((function(t){if(t instanceof PI)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof TI)throw e.noMatchError(t);throw t})))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Object(ri.a)((function(i){return t.createUrlTree(i,e.queryParams,e.fragment)}))).pipe(Yp((function(e){if(e instanceof TI)throw t.noMatchError(e);throw e})))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,i){var n=e.segments.length>0?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;n<t.children.length;++n)e(t.children[n],i.children[n])}(i,s),s}var c,l=new cI(new Ik((c=i.value).url),new Ik(c.params),new Ik(c.queryParams),new Ik(c.fragment),new Ik(c.data),c.outlet,c.component,c),u=i.children.map((function(i){return e(t,i)}));return new aI(l,u)}(e,t._root,i?i._root:void 0);return new oI(n,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:i})})),Gt((function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),(n=t.rootContexts,a=t.routeReuseStrategy,r=function(e){return t.triggerEvent(e)},Object(ri.a)((function(e){return new OI(a,e.targetRouterState,e.currentRouterState,r).activate(n),e}))),Gt({next:function(){o=!0},complete:function(){o=!0}}),ef((function(){if(!o&&!s){t.resetUrlToCurrentUrlTree();var n=new aS(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));i.next(n),e.resolve(!1)}t.currentNavigation=null})),Yp((function(n){if(s=!0,(c=n)&&c.ngNavigationCancelingError){var a=AI(n.url);a||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var r=new aS(e.id,t.serializeUrl(e.extractedUrl),n.message);i.next(r),a?setTimeout((function(){var i=t.urlHandlingStrategy.merge(n.url,t.rawUrlTree);return t.scheduleNavigation(i,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})}),0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var o=new rS(e.id,t.serializeUrl(e.extractedUrl),n);i.next(o);try{e.resolve(t.errorHandler(n))}catch(l){e.reject(l)}}var c;return ci})))})))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(t){var i=e.parseUrl(t.url),n="popstate"===t.type?"popstate":"hashchange",a=t.state&&t.state.navigationId?t.state:null;setTimeout((function(){e.scheduleNavigation(i,n,a,{replaceUrl:!0})}),0)})))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){xS(e),this.config=e.map(OS),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&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;t<e.length;t++){var i=e[t];if(null==i)throw new Error("The requested path contains ".concat(i," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(i){t=this.malformedUriErrorHandler(i,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(AI(e))return MS(this.currentUrlTree,e,t);var i=this.parseUrl(e);return MS(this.currentUrlTree,i,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce((function(t,i){var n=e[i];return null!=n&&(t[i]=n),t}),{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe((function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new nS(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)}),(function(t){e.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(e,t,i,n,a){var r,o,s,c=this.getTransition();if(c&&"imperative"!==t&&"imperative"===c.source&&c.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(c&&"hashchange"==t&&"popstate"===c.source&&c.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(c&&"popstate"==t&&"hashchange"===c.source&&c.rawUrl.toString()===e.toString())return Promise.resolve(!0);a?(r=a.resolve,o=a.reject,s=a.promise):s=new Promise((function(e,t){r=e,o=t}));var l=++this.navigationId;return this.setTransition({id:l,source:t,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:n,resolve:r,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(e){return Promise.reject(e)}))}},{key:"setBrowserUrl",value:function(e,t,i,n){var a=this.urlSerializer.serialize(e);n=n||{},this.location.isCurrentPathEqualTo(a)||t?this.location.replaceState(a,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(a,"",Object.assign(Object.assign({},n),{navigationId:i}))}},{key:"resetStateAndUrl",value:function(e,t,i){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),e}()).\u0275fac=function(e){a.Vc()},vO.\u0275dir=a.yc({type:vO}),vO),_O=((gO=function(){function e(t,i,n,a,r){_classCallCheck(this,e),this.router=t,this.route=i,this.commands=[],null==n&&a.setAttribute(r.nativeElement,"tabindex","0")}return _createClass(e,[{key:"onClick",value:function(){var e={skipLocationChange:kO(this.skipLocationChange),replaceUrl:kO(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"preserveQueryParams",set:function(e){Object(a.jb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:kO(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:kO(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||gO)(a.Dc(bO),a.Dc(cI),a.Tc("tabindex"),a.Dc(a.P),a.Dc(a.r))},gO.\u0275dir=a.yc({type:gO,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),gO),yO=((mO=function(){function e(t,i,n){var a=this;_classCallCheck(this,e),this.router=t,this.route=i,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe((function(e){e instanceof nS&&a.updateTargetUrlAndHref()}))}return _createClass(e,[{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,i,n){if(0!==e||t||i||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var a={skipLocationChange:kO(this.skipLocationChange),replaceUrl:kO(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"preserveQueryParams",set:function(e){Object(a.jb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:kO(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:kO(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||mO)(a.Dc(bO),a.Dc(cI),a.Dc(yt.o))},mO.\u0275dir=a.yc({type:mO,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&a.Wc("click",(function(e){return t.onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)})),2&e&&(a.Mc("href",t.href,a.td),a.qc("target",t.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[a.nc]}),mO);function kO(e){return""===e||!!e}var wO,CO,xO,SO,IO=((wO=function(){function e(t,i,n,a,r){var o=this;_classCallCheck(this,e),this.router=t,this.element=i,this.renderer=n,this.link=a,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe((function(e){e instanceof nS&&o.update()}))}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;this.links.changes.subscribe((function(t){return e.update()})),this.linksWithHrefs.changes.subscribe((function(t){return e.update()})),this.update()}},{key:"ngOnChanges",value:function(e){this.update()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"update",value:function(){var e=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((function(){var t=e.hasActiveLinks();e.isActive!==t&&(e.isActive=t,e.classes.forEach((function(i){t?e.renderer.addClass(e.element.nativeElement,i):e.renderer.removeClass(e.element.nativeElement,i)})))}))}},{key:"isLinkActive",value:function(e){var t=this;return function(i){return e.isActive(i.urlTree,t.routerLinkActiveOptions.exact)}}},{key:"hasActiveLinks",value:function(){var e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}},{key:"routerLinkActive",set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter((function(e){return!!e}))}}]),e}()).\u0275fac=function(e){return new(e||wO)(a.Dc(bO),a.Dc(a.r),a.Dc(a.P),a.Dc(_O,8),a.Dc(yO,8))},wO.\u0275dir=a.yc({type:wO,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,i){var n;1&e&&(a.vc(i,_O,!0),a.vc(i,yO,!0)),2&e&&(a.md(n=a.Xc())&&(t.links=n),a.md(n=a.Xc())&&(t.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[a.nc]}),wO),OO=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new DO,this.attachRef=null},DO=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var i=this.getOrCreateContext(e);i.outlet=t,this.contexts.set(e,i)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new OO,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),EO=((CO=function(){function e(t,i,n,r,o){_classCallCheck(this,e),this.parentContexts=t,this.location=i,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new a.u,this.deactivateEvents=new a.u,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var i=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,a=new AO(e,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,a),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}}]),e}()).\u0275fac=function(e){return new(e||CO)(a.Dc(DO),a.Dc(a.cb),a.Dc(a.n),a.Tc("name"),a.Dc(a.j))},CO.\u0275dir=a.yc({type:CO,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),CO),AO=function(){function e(t,i,n){_classCallCheck(this,e),this.route=t,this.childContexts=i,this.parent=n}return _createClass(e,[{key:"get",value:function(e,t){return e===cI?this.route:e===DO?this.childContexts:this.parent.get(e,t)}}]),e}(),TO=function e(){_classCallCheck(this,e)},PO=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return Bt(null)}}]),e}(),RO=((SO=function(){function e(t,i,n,a,r){_classCallCheck(this,e),this.router=t,this.injector=a,this.preloadingStrategy=r,this.loader=new uO(i,n,(function(e){return t.triggerEvent(new dS(e))}),(function(e){return t.triggerEvent(new hS(e))}))}return _createClass(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(ii((function(e){return e instanceof nS})),of((function(){return e.preload()}))).subscribe((function(){}))}},{key:"preload",value:function(){var e=this.injector.get(a.G);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var i,n=[],a=_createForOfIteratorHelper(t);try{for(a.s();!(i=a.n()).done;){var r=i.value;if(r.loadChildren&&!r.canLoad&&r._loadedConfig){var o=r._loadedConfig;n.push(this.processRoutes(o.module,o.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children))}}catch(s){a.e(s)}finally{a.f()}return Object(sr.a)(n).pipe(Object(On.a)(),Object(ri.a)((function(e){})))}},{key:"preloadConfig",value:function(e,t){var i=this;return this.preloadingStrategy.preload(t,(function(){return i.loader.load(e.injector,t).pipe(Object(rf.a)((function(e){return t._loadedConfig=e,i.processRoutes(e.module,e.routes)})))}))}}]),e}()).\u0275fac=function(e){return new(e||SO)(a.Sc(bO),a.Sc(a.F),a.Sc(a.k),a.Sc(a.y),a.Sc(TO))},SO.\u0275prov=a.zc({token:SO,factory:SO.\u0275fac}),SO),MO=((xO=function(){function e(t,i){var n=arguments.length>2&&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&&e<this.chips.length}},{key:"_isInputEmpty",value:function(e){return!(!e||"input"!==e.nodeName.toLowerCase()||e.value)}},{key:"_setSelectionByValue",value:function(e){var t=this,i=!(arguments.length>1&&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"<b>".concat(e,"</b>")})):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;n<e.length;n++)i(n);this.dropEventTimerSubscription&&this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=xl(200,200).subscribe((function(){if(t.files.length>0&&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;c<r.length;c++)s(c);i.numOfActiveReadEntries--}))}()}}},{key:"resetFileInput",value:function(){if(this.fileSelector&&this.fileSelector.nativeElement){var e=this.fileSelector.nativeElement,t=e.parentElement,i=this.getHelperFormElement(),n=this.getFileInputPlaceholderElement();t!==i&&(this.renderer.insertBefore(t,n,e),this.renderer.appendChild(i,e),i.reset(),this.renderer.insertBefore(t,e,n),this.renderer.removeChild(t,n))}}},{key:"getHelperFormElement",value:function(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}},{key:"getFileInputPlaceholderElement",value:function(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}},{key:"canGetAsEntry",value:function(e){return!!e.webkitGetAsEntry}},{key:"isDropzoneDisabled",value:function(){return this.globalDraggingInProgress||this.disabled}},{key:"addToQueue",value:function(e){this.files.push(e)}},{key:"preventAndStop",value:function(e){e.stopPropagation(),e.preventDefault()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=null!=e&&"false"!=="".concat(e)}}]),e}()).\u0275fac=function(e){return new(e||sE)(a.Dc(a.I),a.Dc(a.P))},sE.\u0275cmp=a.xc({type:sE,selectors:[["ngx-file-drop"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,fE,!0,a.Y),2&e&&a.md(n=a.Xc())&&(t.contentTemplate=n.first)},viewQuery:function(e,t){var i;1&e&&a.xd(eE,!0),2&e&&a.md(i=a.Xc())&&(t.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(e,t){if(1&e&&(a.Jc(0,"div",0),a.Wc("drop",(function(e){return t.dropFiles(e)}))("dragover",(function(e){return t.onDragOver(e)}))("dragenter",(function(e){return t.onDragEnter(e)}))("dragleave",(function(e){return t.onDragLeave(e)})),a.Jc(1,"div",1),a.Jc(2,"input",2,3),a.Wc("change",(function(e){return t.uploadFiles(e)})),a.Ic(),a.zd(4,nE,2,2,"ng-template",null,4,a.Ad),a.zd(6,aE,0,0,"ng-template",5),a.Ic(),a.Ic()),2&e){var i=a.nd(5);a.tc("ngx-file-drop__drop-zone--over",t.isDraggingOverDropZone),a.gd("className",t.dropZoneClassName),a.pc(1),a.gd("className",t.contentClassName),a.pc(1),a.gd("accept",t.accept)("multiple",t.multiple),a.qc("directory",t.directory||void 0)("webkitdirectory",t.directory||void 0)("mozdirectory",t.directory||void 0)("msdirectory",t.directory||void 0)("odirectory",t.directory||void 0),a.pc(4),a.gd("ngTemplateOutlet",t.contentTemplate||i)("ngTemplateOutletContext",a.jd(13,hE,t.openFileSelector))}},directives:[yt.A,yt.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}"]}),mE([Object(a.z)(),gE("design:type",String)],sE.prototype,"accept",void 0),mE([Object(a.z)(),gE("design:type",Boolean)],sE.prototype,"directory",void 0),mE([Object(a.z)(),gE("design:type",Boolean)],sE.prototype,"multiple",void 0),mE([Object(a.z)(),gE("design:type",String)],sE.prototype,"dropZoneLabel",void 0),mE([Object(a.z)(),gE("design:type",String)],sE.prototype,"dropZoneClassName",void 0),mE([Object(a.z)(),gE("design:type",Boolean)],sE.prototype,"useDragEnter",void 0),mE([Object(a.z)(),gE("design:type",String)],sE.prototype,"contentClassName",void 0),mE([Object(a.z)(),gE("design:type",Boolean),gE("design:paramtypes",[Boolean])],sE.prototype,"disabled",null),mE([Object(a.z)(),gE("design:type",Boolean)],sE.prototype,"showBrowseBtn",void 0),mE([Object(a.z)(),gE("design:type",String)],sE.prototype,"browseBtnClassName",void 0),mE([Object(a.z)(),gE("design:type",String)],sE.prototype,"browseBtnLabel",void 0),mE([Object(a.K)(),gE("design:type",a.u)],sE.prototype,"onFileDrop",void 0),mE([Object(a.K)(),gE("design:type",a.u)],sE.prototype,"onFileOver",void 0),mE([Object(a.K)(),gE("design:type",a.u)],sE.prototype,"onFileLeave",void 0),mE([Object(a.p)(fE,{read:a.Y}),gE("design:type",a.Y)],sE.prototype,"contentTemplate",void 0),mE([Object(a.bb)("fileSelector",{static:!0}),gE("design:type",a.r)],sE.prototype,"fileSelector",void 0),sE=mE([gE("design:paramtypes",[a.I,a.P])],sE)),bE=((oE=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:oE,bootstrap:function(){return[vE]}}),oE.\u0275inj=a.Ac({factory:function(e){return new(e||oE)},providers:[],imports:[[yt.c]]}),oE);function _E(e,t){1&e&&(a.Jc(0,"div"),a.Jc(1,"div"),a.Hc(2),a.Nc(3,dE),a.Gc(),a.Ic(),a.Jc(4,"div",11),a.Jc(5,"button",12),a.Wc("click",(function(){return(0,t.openFileSelector)()})),a.Bd(6,"Browse Files"),a.Ic(),a.Ic(),a.Ic())}function yE(e,t){1&e&&a.Ec(0,"mat-spinner",16),2&e&&a.gd("diameter",38)}function kE(e,t){if(1&e){var i=a.Kc();a.Jc(0,"tr"),a.Jc(1,"td",13),a.Jc(2,"strong"),a.Bd(3),a.Ic(),a.Ic(),a.Jc(4,"td"),a.Jc(5,"button",14),a.Wc("click",(function(){return a.rd(i),a.ad().uploadFile()})),a.Jc(6,"mat-icon"),a.Bd(7,"publish"),a.Ic(),a.zd(8,yE,1,1,"mat-spinner",15),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad();a.pc(3),a.Cd(n.relativePath),a.pc(2),a.gd("disabled",r.uploading||r.uploaded),a.pc(3),a.gd("ngIf",r.uploading)}}cE=$localize(_templateObject10()),lE=$localize(_templateObject11()),uE=$localize(_templateObject12()),dE=$localize(_templateObject13());var wE,CE,xE,SE=((wE=function(){function e(t){_classCallCheck(this,e),this.postsService=t,this.files=[],this.uploading=!1,this.uploaded=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"dropped",value:function(e){this.files=e,this.uploading=!1,this.uploaded=!1}},{key:"uploadFile",value:function(){var e=this;this.uploading=!0;var t,i=_createForOfIteratorHelper(this.files);try{var n=function(){var i=t.value;i.fileEntry.isFile&&i.fileEntry.file((function(t){var n=new FormData;n.append("cookies",t,i.relativePath),e.postsService.uploadCookiesFile(n).subscribe((function(t){e.uploading=!1,t.success&&(e.uploaded=!0,e.postsService.openSnackBar("Cookies successfully uploaded!"))}),(function(t){e.uploading=!1}))}))};for(i.s();!(t=i.n()).done;)n()}catch(a){i.e(a)}finally{i.f()}}},{key:"fileOver",value:function(e){}},{key:"fileLeave",value:function(e){}}]),e}()).\u0275fac=function(e){return new(e||wE)(a.Dc(YO))},wE.\u0275cmp=a.xc({type:wE,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(e,t){1&e&&(a.Jc(0,"h4",0),a.Nc(1,cE),a.Ic(),a.Jc(2,"mat-dialog-content"),a.Jc(3,"div"),a.Jc(4,"div",1),a.Jc(5,"ngx-file-drop",2),a.Wc("onFileDrop",(function(e){return t.dropped(e)}))("onFileOver",(function(e){return t.fileOver(e)}))("onFileLeave",(function(e){return t.fileLeave(e)})),a.zd(6,_E,7,0,"ng-template",3),a.Ic(),a.Jc(7,"div",4),a.Jc(8,"p",5),a.Nc(9,lE),a.Ic(),a.Ic(),a.Jc(10,"div",6),a.Jc(11,"table",7),a.Jc(12,"tbody",8),a.zd(13,kE,9,3,"tr",9),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(14,"mat-dialog-actions"),a.Jc(15,"button",10),a.Hc(16),a.Nc(17,uE),a.Gc(),a.Ic(),a.Ic()),2&e&&(a.pc(5),a.gd("multiple",!1),a.pc(8),a.gd("ngForOf",t.files))},directives:[Mh,Lh,vE,fE,yt.s,jh,Za,Rh,hv,_m,yt.t,jv],styles:[".spinner[_ngcontent-%COMP%]{bottom:1px;left:.5px;position:absolute}"]}),wE);function IE(e,t){1&e&&(a.Jc(0,"h6"),a.Bd(1,"Update in progress"),a.Ic())}function OE(e,t){1&e&&(a.Jc(0,"h6"),a.Bd(1,"Update failed"),a.Ic())}function DE(e,t){1&e&&(a.Jc(0,"h6"),a.Bd(1,"Update succeeded!"),a.Ic())}function EE(e,t){1&e&&a.Ec(0,"mat-progress-bar",7)}function AE(e,t){1&e&&a.Ec(0,"mat-progress-bar",8)}function TE(e,t){if(1&e&&(a.Jc(0,"p",9),a.Bd(1),a.Ic()),2&e){var i=a.ad(2);a.pc(1),a.Cd(i.updateStatus.details)}}function PE(e,t){if(1&e&&(a.Jc(0,"div"),a.Jc(1,"div",3),a.zd(2,IE,2,0,"h6",1),a.zd(3,OE,2,0,"h6",1),a.zd(4,DE,2,0,"h6",1),a.Ic(),a.zd(5,EE,1,0,"mat-progress-bar",4),a.zd(6,AE,1,0,"mat-progress-bar",5),a.zd(7,TE,2,1,"p",6),a.Ic()),2&e){var i=a.ad();a.pc(2),a.gd("ngIf",i.updateStatus.updating),a.pc(1),a.gd("ngIf",!i.updateStatus.updating&&i.updateStatus.error),a.pc(1),a.gd("ngIf",!i.updateStatus.updating&&!i.updateStatus.error),a.pc(1),a.gd("ngIf",i.updateStatus.updating),a.pc(1),a.gd("ngIf",!i.updateStatus.updating),a.pc(1),a.gd("ngIf",i.updateStatus.details)}}CE=$localize(_templateObject14()),xE=$localize(_templateObject15());var RE,ME,LE=((RE=function(){function e(t,i){_classCallCheck(this,e),this.postsService=t,this.snackBar=i,this.updateStatus=null,this.updateInterval=250,this.errored=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.getUpdateProgress(),setInterval((function(){e.updateStatus.updating&&e.getUpdateProgress()}),250)}},{key:"getUpdateProgress",value:function(){var e=this;this.postsService.getUpdaterStatus().subscribe((function(t){t&&(e.updateStatus=t,e.updateStatus&&e.updateStatus.error&&e.openSnackBar("Update failed. Check logs for more details."))}))}},{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||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<n.CURRENT_VERSION),a.pc(1),a.Dd("\xa0",n.selectedVersion,"")}}ME=$localize(_templateObject16());var JE,VE,HE=((JE=function(){function e(t,i){_classCallCheck(this,e),this.postsService=t,this.dialog=i,this.availableVersions=null,this.availableVersionsFiltered=[],this.versionsShowLimit=5,this.latestStableRelease=null,this.selectedVersion=null,this.CURRENT_VERSION="v4.0"}return _createClass(e,[{key:"ngOnInit",value:function(){this.getAvailableVersions()}},{key:"updateServer",value:function(){var e=this;this.postsService.updateServer(this.selectedVersion).subscribe((function(t){t.success&&e.openUpdateProgressDialog()}))}},{key:"getAvailableVersions",value:function(){var e=this;this.availableVersionsFiltered=[],this.postsService.getAvailableRelease().subscribe((function(t){e.availableVersions=t;for(var i=0;i<e.availableVersions.length;i++){var n=e.availableVersions[i];if(e.latestStableRelease||n.tag_name.includes("rc")||(e.latestStableRelease=n,e.selectedVersion=e.latestStableRelease.tag_name),e.latestStableRelease&&i>=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<this.available_permissions.length;e++){var t=this.available_permissions[e];this.permissions[t]=this.user.permission_overrides.includes(t)?this.user.permissions.includes(t)?"yes":"no":"default"}}},{key:"changeUserPermissions",value:function(e,t){this.postsService.setUserPermission(this.user.uid,t,e.value).subscribe((function(e){}))}},{key:"setNewPassword",value:function(){var e=this;this.settingNewPassword=!0,this.postsService.changeUserPassword(this.user.uid,this.newPasswordInput).subscribe((function(t){e.newPasswordInput="",e.settingNewPassword=!1}))}}]),e}()).\u0275fac=function(e){return new(e||sA)(a.Dc(YO),a.Dc(Oh))},sA.\u0275cmp=a.xc({type:sA,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(e,t){1&e&&(a.zd(0,QE,4,1,"h4",0),a.zd(1,oA,15,4,"mat-dialog-content",1),a.Jc(2,"mat-dialog-actions"),a.Jc(3,"button",2),a.Hc(4),a.Nc(5,KE),a.Gc(),a.Ic(),a.Ic()),2&e&&(a.gd("ngIf",t.user),a.pc(1),a.gd("ngIf",t.user))},directives:[yt.t,jh,Za,Rh,Mh,Lh,Ud,Pm,_r,Dr,es,ig,yt.s,og,ha,Gv,qv],styles:[".mat-radio-button[_ngcontent-%COMP%]{margin-right:10px;margin-top:5px}"]}),sA);function pA(e,t){if(1&e&&(a.Jc(0,"h4",3),a.Hc(1),a.Nc(2,lA),a.Gc(),a.Bd(3),a.Ic()),2&e){var i=a.ad();a.pc(3),a.Dd("\xa0-\xa0",i.role.name,"")}}function fA(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-list-item",5),a.Jc(1,"h3",6),a.Bd(2),a.Ic(),a.Jc(3,"span",6),a.Jc(4,"mat-radio-group",7),a.Wc("change",(function(e){a.rd(i);var n=t.$implicit,r=a.ad(2);return r.changeRolePermissions(e,n,r.permissions[n])}))("ngModelChange",(function(e){a.rd(i);var n=t.$implicit;return a.ad(2).permissions[n]=e})),a.Jc(5,"mat-radio-button",8),a.Hc(6),a.Nc(7,uA),a.Gc(),a.Ic(),a.Jc(8,"mat-radio-button",9),a.Hc(9),a.Nc(10,dA),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&&"admin"===r.role.name)("ngModel",r.permissions[n]),a.qc("aria-label","Give role permission for "+n)}}function mA(e,t){if(1&e&&(a.Jc(0,"mat-dialog-content"),a.Jc(1,"mat-list"),a.zd(2,fA,11,4,"mat-list-item",4),a.Ic(),a.Ic()),2&e){var i=a.ad();a.pc(2),a.gd("ngForOf",i.available_permissions)}}cA=$localize(_templateObject30()),lA=$localize(_templateObject31()),uA=$localize(_templateObject32()),dA=$localize(_templateObject33());var gA,vA,bA,_A,yA,kA,wA=((gA=function(){function e(t,i,n){_classCallCheck(this,e),this.postsService=t,this.dialogRef=i,this.data=n,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())}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"parsePermissions",value:function(){this.permissions={};for(var e=0;e<this.available_permissions.length;e++){var t=this.available_permissions[e];this.permissions[t]=this.role.permissions.includes(t)?"yes":"no"}}},{key:"changeRolePermissions",value:function(e,t){var i=this;this.postsService.setRolePermission(this.role.name,t,e.value).subscribe((function(e){e.success||(i.permissions[t]="yes"===i.permissions[t]?"no":"yes")}),(function(e){i.permissions[t]="yes"===i.permissions[t]?"no":"yes"}))}}]),e}()).\u0275fac=function(e){return new(e||gA)(a.Dc(YO),a.Dc(Ih),a.Dc(Oh))},gA.\u0275cmp=a.xc({type:gA,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(e,t){1&e&&(a.zd(0,pA,4,1,"h4",0),a.zd(1,mA,3,1,"mat-dialog-content",1),a.Jc(2,"mat-dialog-actions"),a.Jc(3,"button",2),a.Hc(4),a.Nc(5,cA),a.Gc(),a.Ic(),a.Ic()),2&e&&(a.gd("ngIf",t.role),a.pc(1),a.gd("ngIf",t.role))},directives:[yt.t,jh,Za,Rh,Mh,Lh,ig,yt.s,og,ha,Gv,Dr,es,qv],styles:[".mat-radio-button[_ngcontent-%COMP%]{margin-right:10px;margin-top:5px}"]}),gA);function CA(e,t){1&e&&(a.Jc(0,"mat-header-cell",24),a.Hc(1),a.Nc(2,_A),a.Gc(),a.Ic())}function xA(e,t){if(1&e){var i=a.Kc();a.Jc(0,"span"),a.Jc(1,"span",26),a.Jc(2,"mat-form-field"),a.Jc(3,"input",27),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(3).constructedObject.name=e})),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(3);a.pc(3),a.gd("ngModel",n.constructedObject.name)}}function SA(e,t){if(1&e&&a.Bd(0),2&e){var i=a.ad().$implicit;a.Dd(" ",i.name," ")}}function IA(e,t){if(1&e&&(a.Jc(0,"mat-cell"),a.zd(1,xA,4,1,"span",0),a.zd(2,SA,1,1,"ng-template",null,25,a.Ad),a.Ic()),2&e){var i=t.$implicit,n=a.nd(3),r=a.ad(2);a.pc(1),a.gd("ngIf",r.editObject&&r.editObject.uid===i.uid)("ngIfElse",n)}}function OA(e,t){1&e&&(a.Jc(0,"mat-header-cell",24),a.Hc(1),a.Nc(2,yA),a.Gc(),a.Ic())}function DA(e,t){if(1&e){var i=a.Kc();a.Jc(0,"span"),a.Jc(1,"span",26),a.Jc(2,"mat-form-field"),a.Jc(3,"mat-select",29),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad(3).constructedObject.role=e})),a.Jc(4,"mat-option",30),a.Bd(5,"Admin"),a.Ic(),a.Jc(6,"mat-option",31),a.Bd(7,"User"),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(3);a.pc(3),a.gd("ngModel",n.constructedObject.role)}}function EA(e,t){if(1&e&&a.Bd(0),2&e){var i=a.ad().$implicit;a.Dd(" ",i.role," ")}}function AA(e,t){if(1&e&&(a.Jc(0,"mat-cell"),a.zd(1,DA,8,1,"span",0),a.zd(2,EA,1,1,"ng-template",null,28,a.Ad),a.Ic()),2&e){var i=t.$implicit,n=a.nd(3),r=a.ad(2);a.pc(1),a.gd("ngIf",r.editObject&&r.editObject.uid===i.uid)("ngIfElse",n)}}function TA(e,t){1&e&&(a.Jc(0,"mat-header-cell",24),a.Hc(1),a.Nc(2,kA),a.Gc(),a.Ic())}function PA(e,t){if(1&e){var i=a.Kc();a.Jc(0,"span"),a.Jc(1,"button",35),a.Wc("click",(function(){a.rd(i);var e=a.ad().$implicit;return a.ad(2).finishEditing(e.uid)})),a.Jc(2,"mat-icon"),a.Bd(3,"done"),a.Ic(),a.Ic(),a.Jc(4,"button",36),a.Wc("click",(function(){return a.rd(i),a.ad(3).disableEditMode()})),a.Jc(5,"mat-icon"),a.Bd(6,"cancel"),a.Ic(),a.Ic(),a.Ic()}}function RA(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",37),a.Wc("click",(function(){a.rd(i);var e=a.ad().$implicit;return a.ad(2).enableEditMode(e.uid)})),a.Jc(1,"mat-icon"),a.Bd(2,"edit"),a.Ic(),a.Ic()}}function MA(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-cell"),a.zd(1,PA,7,0,"span",0),a.zd(2,RA,3,0,"ng-template",null,32,a.Ad),a.Jc(4,"button",33),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad(2).manageUser(e.uid)})),a.Jc(5,"mat-icon"),a.Bd(6,"settings"),a.Ic(),a.Ic(),a.Jc(7,"button",34),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad(2).removeUser(e.uid)})),a.Jc(8,"mat-icon"),a.Bd(9,"delete"),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit,r=a.nd(3),o=a.ad(2);a.pc(1),a.gd("ngIf",o.editObject&&o.editObject.uid===n.uid)("ngIfElse",r),a.pc(3),a.gd("disabled",o.editObject&&o.editObject.uid===n.uid),a.pc(3),a.gd("disabled",o.editObject&&o.editObject.uid===n.uid||n.uid===o.postsService.user.uid)}}function LA(e,t){1&e&&a.Ec(0,"mat-header-row")}function jA(e,t){1&e&&a.Ec(0,"mat-row")}function FA(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",38),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad(2).openModifyRole(e)})),a.Bd(1),a.Ic()}if(2&e){var n=t.$implicit;a.pc(1),a.Cd(n.name)}}function NA(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"div",3),a.Jc(2,"div",4),a.Jc(3,"div",5),a.Jc(4,"div",6),a.Jc(5,"mat-form-field"),a.Jc(6,"input",7),a.Wc("keyup",(function(e){return a.rd(i),a.ad().applyFilter(e.target.value)})),a.Ic(),a.Ic(),a.Ic(),a.Jc(7,"div",8),a.Jc(8,"mat-table",9,10),a.Hc(10,11),a.zd(11,CA,3,0,"mat-header-cell",12),a.zd(12,IA,4,2,"mat-cell",13),a.Gc(),a.Hc(13,14),a.zd(14,OA,3,0,"mat-header-cell",12),a.zd(15,AA,4,2,"mat-cell",13),a.Gc(),a.Hc(16,15),a.zd(17,TA,3,0,"mat-header-cell",12),a.zd(18,MA,10,4,"mat-cell",13),a.Gc(),a.zd(19,LA,1,0,"mat-header-row",16),a.zd(20,jA,1,0,"mat-row",17),a.Ic(),a.Ec(21,"mat-paginator",18,19),a.Jc(23,"button",20),a.Wc("click",(function(){return a.rd(i),a.ad().openAddUserDialog()})),a.Hc(24),a.Nc(25,vA),a.Gc(),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.Jc(26,"button",21),a.Hc(27),a.Nc(28,bA),a.Gc(),a.Ic(),a.Jc(29,"mat-menu",null,22),a.zd(31,FA,2,1,"button",23),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.nd(30),r=a.ad();a.pc(8),a.gd("dataSource",r.dataSource),a.pc(11),a.gd("matHeaderRowDef",r.displayedColumns),a.pc(1),a.gd("matRowDefColumns",r.displayedColumns),a.pc(1),a.gd("length",r.length)("pageSize",r.pageSize)("pageSizeOptions",r.pageSizeOptions),a.pc(2),a.gd("disabled",!r.users),a.pc(3),a.gd("matMenuTriggerFor",n),a.pc(5),a.gd("ngForOf",r.roles)}}function zA(e,t){1&e&&a.Ec(0,"mat-spinner")}vA=$localize(_templateObject34()),bA=$localize(_templateObject35()),_A=$localize(_templateObject36()),yA=$localize(_templateObject37()),kA=$localize(_templateObject38());var BA,JA=((BA=function(){function e(t,i,n,a){_classCallCheck(this,e),this.postsService=t,this.snackBar=i,this.dialog=n,this.dialogRef=a,this.displayedColumns=["name","role","actions"],this.dataSource=new xC,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}return _createClass(e,[{key:"ngOnInit",value:function(){this.getArray(),this.getRoles()}},{key:"ngAfterViewInit",value:function(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}},{key:"afterGetData",value:function(){this.dataSource.sort=this.sort}},{key:"setPageSizeOptions",value:function(e){this.pageSizeOptions=e.split(",").map((function(e){return+e}))}},{key:"applyFilter",value:function(e){e=(e=e.trim()).toLowerCase(),this.dataSource.filter=e}},{key:"getArray",value:function(){var e=this;this.postsService.getUsers().subscribe((function(t){e.users=t.users,e.createAndSortData(),e.afterGetData()}))}},{key:"getRoles",value:function(){var e=this;this.postsService.getRoles().subscribe((function(t){e.roles=[];for(var i=t.roles,n=Object.keys(i),a=0;a<n.length;a++){var r=n[a];e.roles.push({name:r,permissions:i[r].permissions})}}))}},{key:"openAddUserDialog",value:function(){var e=this;this.dialog.open(ZE).afterClosed().subscribe((function(t){t&&!t.error?(e.openSnackBar("Successfully added user "+t.name),e.getArray()):t&&t.error&&e.openSnackBar("Failed to add user")}))}},{key:"finishEditing",value:function(e){if(this.constructedObject&&this.constructedObject.name&&this.constructedObject.role&&!VA(this.constructedObject.name)&&!VA(this.constructedObject.role)){var t=this.indexOfUser(e);this.users[t]=this.constructedObject,this.constructedObject={},this.editObject=null,this.setUser(this.users[t]),this.createAndSortData()}}},{key:"enableEditMode",value:function(e){if(this.uidInUserList(e)&&this.indexOfUser(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;t<this.users.length;t++)if(this.users[t].uid===e)return!0;return!1}},{key:"indexOfUser",value:function(e){for(var t=0;t<this.users.length;t++)if(this.users[t].uid===e)return t;return-1}},{key:"setUser",value:function(e){var t=this;this.postsService.changeUser(e).subscribe((function(e){t.getArray()}))}},{key:"manageUser",value:function(e){var t=this.indexOfUser(e);this.dialog.open(hA,{data:{user:this.users[t]},width:"65vw"})}},{key:"removeUser",value:function(e){var t=this;this.postsService.deleteUser(e).subscribe((function(e){t.getArray()}),(function(e){t.getArray()}))}},{key:"createAndSortData",value:function(){this.users.sort((function(e,t){return t.name>e.name}));for(var e=[],t=0;t<this.users.length;t++)e.push(JSON.parse(JSON.stringify(this.users[t])));this.dataSource.data=e}},{key:"openModifyRole",value:function(e){var t=this;this.dialog.open(wA,{data:{role:e}}).afterClosed().subscribe((function(e){t.getRoles()}))}},{key:"closeDialog",value:function(){this.dialogRef.close()}},{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||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;e<this.filesToSelectFrom.length;e++){var t=this.filesToSelectFrom[e];if(t.id===this.filesSelect.value[0]){if(t.thumbnailURL)return t.thumbnailURL;if(t.thumbnail)return t.thumbnail}}return null}}]),e}()).\u0275fac=function(e){return new(e||QR)(a.Dc(Oh),a.Dc(YO),a.Dc(Ih))},QR.\u0275cmp=a.xc({type:QR,selectors:[["app-create-playlist"]],decls:16,vars:9,consts:[["mat-dialog-title",""],["color","accent"],["matInput","","type","text","required","","aria-required","",3,"ngModel","ngModelOptions","ngModelChange",6,"placeholder"],[4,"ngIf"],["multiple","","required","","aria-required","",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["style","float: left",4,"ngIf"],["color","primary","mat-flat-button","",2,"float","right",3,"disabled","click"],[3,"value"],[2,"float","left"],[3,"diameter"]],template:function(e,t){1&e&&(a.Jc(0,"h4",0),a.Nc(1,JR),a.Ic(),a.Jc(2,"form"),a.Jc(3,"div"),a.Jc(4,"mat-form-field",1),a.Jc(5,"input",2),a.Pc(6,$R),a.Wc("ngModelChange",(function(e){return t.name=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(7,"div"),a.Jc(8,"mat-form-field",1),a.zd(9,KR,3,0,"mat-label",3),a.zd(10,XR,3,0,"mat-label",3),a.Jc(11,"mat-select",4),a.zd(12,YR,2,2,"mat-option",5),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.zd(13,ZR,2,1,"div",6),a.Jc(14,"button",7),a.Wc("click",(function(){return t.createPlaylist()})),a.Bd(15,"Create"),a.Ic()),2&e&&(a.pc(5),a.gd("ngModel",t.name)("ngModelOptions",a.id(8,aM)),a.pc(4),a.gd("ngIf","audio"===t.type),a.pc(1),a.gd("ngIf","video"===t.type),a.pc(1),a.gd("formControl",t.filesSelect),a.pc(1),a.gd("ngForOf",t.filesToSelectFrom),a.pc(1),a.gd("ngIf",t.create_in_progress),a.pc(1),a.gd("disabled",!t.name||!t.filesSelect.value||0===t.filesSelect.value.length))},directives:[Mh,ts,Er,Wo,Ud,Pm,_r,Ks,Dr,es,yt.t,mb,as,yt.s,Za,jd,za,jv],styles:[""]}),QR),oM=i("EcEN"),sM=["urlinput"],cM=["audiofilecard"],lM=["videofilecard"];function uM(e,t){if(1&e&&(a.Jc(0,"mat-option",30),a.Bd(1),a.Ic()),2&e){var i=a.ad().$implicit;a.gd("value",i.value),a.pc(1),a.Dd(" ",i.label," ")}}function dM(e,t){if(1&e&&(a.Hc(0),a.zd(1,uM,2,2,"mat-option",29),a.Gc()),2&e){var i=t.$implicit,n=a.ad(2);a.pc(1),a.gd("ngIf",""===i.value||n.url&&n.cachedAvailableFormats[n.url]&&n.cachedAvailableFormats[n.url].formats&&n.cachedAvailableFormats[n.url].formats[n.audioOnly?"audio":"video"][i.value])}}function hM(e,t){1&e&&(a.Jc(0,"div",31),a.Ec(1,"mat-spinner",32),a.Ic()),2&e&&(a.pc(1),a.gd("diameter",25))}eM=$localize(_templateObject148()),tM=$localize(_templateObject149()),iM=$localize(_templateObject150()),nM=$localize(_templateObject151());var pM,fM,mM=function(){return{standalone:!0}};function gM(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",24),a.Jc(1,"mat-form-field",25),a.Jc(2,"mat-label"),a.Hc(3),a.Nc(4,nM),a.Gc(),a.Ic(),a.Jc(5,"mat-select",26),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().selectedQuality=e})),a.zd(6,dM,2,1,"ng-container",27),a.Ic(),a.zd(7,hM,2,1,"div",28),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(5),a.gd("ngModelOptions",a.id(4,mM))("ngModel",n.selectedQuality),a.pc(1),a.gd("ngForOf",n.qualityOptions[n.audioOnly?"audio":"video"]),a.pc(1),a.gd("ngIf",""!==n.url&&n.cachedAvailableFormats[n.url]&&n.cachedAvailableFormats[n.url].formats_loading)}}pM=$localize(_templateObject152()),fM=$localize(_templateObject153());var vM,bM,_M,yM,kM=function(e,t,i){return[e,t,i]};function wM(e,t){if(1&e){var i=a.Kc();a.Jc(0,"span"),a.Jc(1,"mat-card",34),a.Jc(2,"div",35),a.Bd(3),a.Ic(),a.Jc(4,"div",36),a.Bd(5),a.Ic(),a.Jc(6,"button",37),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad(2).useURL(e.videoUrl)})),a.Hc(7),a.Nc(8,pM),a.Gc(),a.Ic(),a.Jc(9,"button",38),a.Wc("click",(function(){a.rd(i);var e=t.$implicit;return a.ad(2).visitURL(e.videoUrl)})),a.Hc(10),a.Nc(11,fM),a.Gc(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=t.$implicit,r=t.index,o=a.ad(2);a.pc(1),a.gd("ngClass",a.ld(3,kM,0===r&&o.results.length>1?"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;a<e.playlists.audio.length;a++){for(var r=e.playlists.audio[a],o=null,s=0;s<e.mp3s.length;s++)e.mp3s[s].id===r.fileNames[0]&&(o=e.mp3s[s]);o&&(e.playlist_thumbnails[r.id]=o.thumbnailURL)}}),(function(e){console.log(e)}))}},{key:"getMp4s",value:function(){var e=this;this.postsService.getMp4s().subscribe((function(t){var i=t.mp4s,n=t.playlists;JSON.stringify(e.mp4s)!==JSON.stringify(i)&&(e.mp4s=i),e.playlists.video=n;for(var a=0;a<e.playlists.video.length;a++){for(var r=e.playlists.video[a],o=null,s=0;s<e.mp4s.length;s++)e.mp4s[s].id===r.fileNames[0]&&(o=e.mp4s[s]);o&&(e.playlist_thumbnails[r.id]=o.thumbnailURL)}}),(function(e){console.log(e)}))}},{key:"setCols",value:function(){this.files_cols=window.innerWidth<=350?1:window.innerWidth<=500?2:window.innerWidth<=750?3:4}},{key:"goToFile",value:function(e,t,i){t?this.downloadHelperMp3(e,i,!1,!1,null,!0):this.downloadHelperMp4(e,i,!1,!1,null,!0)}},{key:"goToPlaylist",value:function(e,t){var i=this.getPlaylistObjectByID(e,t);i?this.downloadOnlyMode?(this.downloading_content[t][e]=!0,this.downloadPlaylist(i.fileNames,t,i.name,e)):(localStorage.setItem("player_navigator",this.router.url),this.router.navigate(["/player",{fileNames:i.fileNames.join("|nvr|"),type:t,id:e,uid:e}])):console.error("Playlist with ID ".concat(e," not found!"))}},{key:"getPlaylistObjectByID",value:function(e,t){for(var i=0;i<this.playlists[t].length;i++){var n=this.playlists[t][i];if(n.id===e)return n}return null}},{key:"removeFromMp3",value:function(e){for(var t=0;t<this.mp3s.length;t++)this.mp3s[t].id!==e&&this.mp3s[t].id+".mp3"!==e||this.mp3s.splice(t,1);this.getMp3s()}},{key:"removePlaylistMp3",value:function(e,t){var i=this;this.postsService.removePlaylist(e,"audio").subscribe((function(e){e.success&&(i.playlists.audio.splice(t,1),i.openSnackBar("Playlist successfully removed.","")),i.getMp3s()}))}},{key:"removeFromMp4",value:function(e){for(var t=0;t<this.mp4s.length;t++)this.mp4s[t].id!==e&&this.mp4s[t].id+".mp4"!==e||this.mp4s.splice(t,1);this.getMp4s()}},{key:"removePlaylistMp4",value:function(e,t){var i=this;this.postsService.removePlaylist(e,"video").subscribe((function(e){e.success&&(i.playlists.video.splice(t,1),i.openSnackBar("Playlist successfully removed.","")),i.getMp4s()}))}},{key:"downloadHelperMp3",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&&!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;n<e.length;n++){var a={type:null},r=e[n];if(a.type="none"===r.vcodec?"audio":"video","audio"===a.type&&r.abr){var o=r.abr.toString()+"K";a.bitrate=r.abr,a.format_id=r.format_id,a.ext=r.ext,t[o]?"m4a"===r.ext&&(t[o]=a):t[o]=a}else if("video"===a.type){var s=r.height.toString();"mp4"===r.ext&&(a.height=r.height,a.acodec=r.acodec,a.format_id=r.format_id,i[s]&&"none"===a.acodec||(i[s]=a))}}return i.best_audio_format=this.getBestAudioFormatForMp4(t),[t,i]}},{key:"getBestAudioFormatForMp4",value:function(e){for(var t=null,i=0,n=Object.keys(e),a=0;a<n.length;a++){var r=e[n[a]];"m4a"===r.ext&&r.bitrate>i&&(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;n<i.length;n++){var a=i[n].getAttribute(e);a&&("srcset"in i[n]?i[n].srcset=a:i[n].src=a)}}}var YL=XL("defaultImage"),ZL=XL("lazyLoad"),QL=XL("errorImage");function ej(e){return function(t,i,n){$L(t)&&qL(t)&&e(t),i&&KL(t,i,n)}}var tj=ej(YL),ij=ej(ZL),nj=ej(QL),aj={finally:function(e){var t=e.element;GL(t,"ng-lazyloaded"),UL(t,"ng-lazyloading")},loadImage:function(e){var t,i=e.element,n=e.useSrcset,a=e.imagePath,r=e.decode;if($L(i)&&qL(i)){var o=i.parentNode.cloneNode(!0);t=o.getElementsByTagName("img")[0],ZL(t),KL(t,a,n)}else t=new Image,$L(i)&&i.sizes&&(t.sizes=i.sizes),n&&"srcset"in t?t.srcset=a:t.src=a;return r&&t.decode?t.decode().then((function(){return a})):new Promise((function(e,i){t.onload=function(){return e(a)},t.onerror=function(){return i(null)}}))},setErrorImage:function(e){var t=e.element,i=e.errorImagePath,n=e.useSrcset;nj(t,i,n),GL(t,"ng-failed-lazyloaded")},setLoadedImage:function(e){var t=e.element,i=e.imagePath,n=e.useSrcset;ij(t,i,n)},setup:function(e){var t=e.element,i=e.defaultImagePath,n=e.useSrcset;tj(t,i,n),GL(t,"ng-lazyloading"),function(e,t){return e.className&&e.className.includes("ng-lazyloaded")}(t)&&UL(t,"ng-lazyloaded")},isBot:function(e){return!(!e||!e.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(e.userAgent)}},rj=new WeakMap,oj=new Lt.a;function sj(e){e.forEach((function(e){return oj.next(e)}))}var cj,lj,uj,dj,hj,pj,fj,mj,gj,vj,bj={},_j=function(e){var t=e.scrollContainer||bj,i={root:e.scrollContainer||null};e.offset&&(i.rootMargin="".concat(e.offset,"px"));var n=rj.get(t);return n||(n=new IntersectionObserver(sj,i),rj.set(t,n)),n.observe(e.element),si.a.create((function(t){var i=oj.pipe(ii((function(t){return t.target===e.element}))).subscribe(t);return function(){i.unsubscribe(),n.unobserve(e.element)}}))},yj=Object.assign({},aj,{isVisible:function(e){return e.event.isIntersecting},getObservable:function(e){var t=arguments.length>1&&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;n<a;n++)(e=parseInt(window.getComputedStyle(i[n])["z-index"],10))>t&&(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<t;e++){var i=1e3*((this.vgCuePoints[e].endTime>=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<t;n++)i[n]=arguments[n];i.some((function(e){return 4===e.target.readyState}))&&!e.syncSubscription&&(e.startSync(),e.syncSubscription.unsubscribe())}))).subscribe()}},{key:"startSync",value:function(){var e=this;this.syncSubscription=xl(0,1e3).subscribe((function(){for(var t in e.api.medias)if(e.api.medias[t]!==e){var i=e.api.medias[t].currentTime-e.currentTime;i<-.3||i>.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;t<i;t++){var n=e[t];if("attributes"===n.type&&"src"===n.attributeName){if(n.target.src&&n.target.src.length>0&&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.currentPlayPos<this.lastPlayPos+e&&(this.isBufferDetected=!0),this.isBufferDetected&&this.currentPlayPos>this.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;t<i;t++)this.onEnter$=rl(e[t],tN.VG_ENTER),this.cuesSubscriptions.push(this.onEnter$.subscribe(this.onEnter.bind(this))),this.onExit$=rl(e[t],tN.VG_EXIT),this.cuesSubscriptions.push(this.onExit$.subscribe(this.onExit.bind(this)))}},{key:"onEnter",value:function(e){this.onEnterCuePoint.emit(e.target)}},{key:"onExit",value:function(e){this.onExitCuePoint.emit(e.target)}},{key:"ngDoCheck",value:function(){this.ref.nativeElement.track&&this.ref.nativeElement.track.cues&&this.totalCues!==this.ref.nativeElement.track.cues.length&&(this.totalCues=this.ref.nativeElement.track.cues.length,this.ref.nativeElement.cues=this.ref.nativeElement.track.cues,this.updateCuePoints(this.ref.nativeElement.track.cues))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||sF)(a.Dc(a.r))},sF.\u0275dir=a.yc({type:sF,selectors:[["","vgCuePoints",""]],outputs:{onEnterCuePoint:"onEnterCuePoint",onUpdateCuePoint:"onUpdateCuePoint",onExitCuePoint:"onExitCuePoint",onCompleteCuePoint:"onCompleteCuePoint"}}),sF),aN=((oF=function(){function e(t,i,n,r){_classCallCheck(this,e),this.api=i,this.fsAPI=n,this.controlsHidden=r,this.isFullscreen=!1,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.onPlayerReady=new a.u,this.onMediaReady=new a.u,this.subscriptions=[],this.elem=t.nativeElement,this.api.registerElement(this.elem)}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;this.medias.toArray().forEach((function(t){e.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)}},{key:"onChangeFullscreen",value:function(e){this.fsAPI.nativeFullscreen?this.isNativeFullscreen=e:(this.isFullscreen=e,this.zIndex=e?zF.getZIndex().toString():"auto")}},{key:"onHideControls",value:function(e){this.areControlsHidden=e}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||oF)(a.Dc(a.r),a.Dc(MF),a.Dc(BF),a.Dc(FF))},oF.\u0275cmp=a.xc({type:oF,selectors:[["vg-player"]],contentQueries:function(e,t,i){var n;1&e&&a.vc(i,iN,!1),2&e&&a.md(n=a.Xc())&&(t.medias=n)},hostVars:8,hostBindings:function(e,t){2&e&&(a.yd("z-index",t.zIndex),a.tc("fullscreen",t.isFullscreen)("native-fullscreen",t.isNativeFullscreen)("controls-hidden",t.areControlsHidden))},outputs:{onPlayerReady:"onPlayerReady",onMediaReady:"onMediaReady"},features:[a.oc([MF,BF,FF])],ngContentSelectors:$j,decls:1,vars:0,template:function(e,t){1&e&&(a.fd(),a.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}),oF),rN=((rF=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:rF}),rF.\u0275inj=a.Ac({factory:function(e){return new(e||rF)},providers:[MF,BF,zF,FF,RF,tN]}),rF),oN=((aF=function(){function e(t,i,n,a){_classCallCheck(this,e),this.API=i,this.fsAPI=n,this.controlsHidden=a,this.isNativeFullscreen=!1,this.areControlsHidden=!1,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.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((function(t){return e.onUpdateBuffer(t)})))}},{key:"onUpdateBuffer",value:function(e){this.isBuffering=e}},{key:"onChangeFullscreen",value:function(e){this.fsAPI.nativeFullscreen&&(this.isNativeFullscreen=e)}},{key:"onHideControls",value:function(e){this.areControlsHidden=e}},{key:"onClick",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(){var e=RF.VG_PAUSED;if(this.target)if(this.target.state instanceof Array){for(var t=0,i=this.target.state.length;t<i;t++)if(this.target.state[t]===RF.VG_PLAYING){e=RF.VG_PLAYING;break}}else e=this.target.state;return e}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))}}]),e}()).\u0275fac=function(e){return new(e||aF)(a.Dc(a.r),a.Dc(MF),a.Dc(BF),a.Dc(FF))},aF.\u0275cmp=a.xc({type:aF,selectors:[["vg-overlay-play"]],hostVars:2,hostBindings:function(e,t){1&e&&a.Wc("click",(function(){return t.onClick()})),2&e&&a.tc("is-buffering",t.isBuffering)},inputs:{vgFor:"vgFor"},decls:2,vars:6,consts:[[1,"vg-overlay-play"],[1,"overlay-play-container"]],template:function(e,t){1&e&&(a.Jc(0,"div",0),a.Ec(1,"div",1),a.Ic()),2&e&&(a.tc("native-fullscreen",t.isNativeFullscreen)("controls-hidden",t.areControlsHidden),a.pc(1),a.tc("vg-icon-play_arrow","playing"!==t.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}),aF),sN=((nF=function e(){_classCallCheck(this,e)}).\u0275mod=a.Bc({type:nF}),nF.\u0275inj=a.Ac({factory:function(e){return new(e||nF)},imports:[[yt.c]]}),nF);function cN(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-button-toggle",12),a.Wc("click",(function(){a.rd(i);var e=t.$implicit,n=t.index;return a.ad(2).onClickPlaylistItem(e,n)})),a.Bd(1),a.Ic()}if(2&e){var n=t.$implicit,r=a.ad(2);a.gd("checked",r.currentItem.title===n.title)("value",n.title),a.pc(1),a.Cd(n.label)}}function lN(e,t){1&e&&a.Ec(0,"mat-spinner",17),2&e&&a.gd("diameter",25)}function uN(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div",13),a.Jc(1,"div",14),a.zd(2,lN,1,1,"mat-spinner",15),a.Ic(),a.Jc(3,"button",16),a.Wc("click",(function(){return a.rd(i),a.ad(2).updatePlaylist()})),a.Hc(4),a.Nc(5,PF),a.Gc(),a.Bd(6,"\xa0"),a.Jc(7,"mat-icon"),a.Bd(8,"update"),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad(2);a.pc(2),a.gd("ngIf",n.playlist_updating),a.pc(1),a.gd("disabled",n.playlist_updating)}}function dN(e,t){1&e&&a.Ec(0,"mat-spinner",23),2&e&&a.gd("diameter",50)}function hN(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",24),a.Wc("click",(function(){return a.rd(i),a.ad(3).namePlaylistDialog()})),a.Jc(1,"mat-icon",19),a.Bd(2,"favorite"),a.Ic(),a.Ic()}}function pN(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",25),a.Wc("click",(function(){return a.rd(i),a.ad(3).openShareDialog()})),a.Jc(1,"mat-icon",19),a.Bd(2,"share"),a.Ic(),a.Ic()}}function fN(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"button",18),a.Wc("click",(function(){return a.rd(i),a.ad(2).downloadContent()})),a.Jc(2,"mat-icon",19),a.Bd(3,"save"),a.Ic(),a.zd(4,dN,1,1,"mat-spinner",20),a.Ic(),a.zd(5,hN,3,0,"button",21),a.zd(6,pN,3,0,"button",22),a.Ic()}if(2&e){var n=a.ad(2);a.pc(1),a.gd("disabled",n.downloading),a.pc(3),a.gd("ngIf",n.downloading),a.pc(1),a.gd("ngIf",!n.id),a.pc(1),a.gd("ngIf",!n.is_shared&&n.id&&(!n.postsService.isLoggedIn||n.postsService.permissions.includes("sharing")))}}function mN(e,t){1&e&&a.Ec(0,"mat-spinner",23),2&e&&a.gd("diameter",50)}function gN(e,t){if(1&e){var i=a.Kc();a.Jc(0,"button",25),a.Wc("click",(function(){return a.rd(i),a.ad(3).openShareDialog()})),a.Jc(1,"mat-icon",19),a.Bd(2,"share"),a.Ic(),a.Ic()}}function vN(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"button",18),a.Wc("click",(function(){return a.rd(i),a.ad(2).downloadFile()})),a.Jc(2,"mat-icon",19),a.Bd(3,"save"),a.Ic(),a.zd(4,mN,1,1,"mat-spinner",20),a.Ic(),a.zd(5,gN,3,0,"button",22),a.Ic()}if(2&e){var n=a.ad(2);a.pc(1),a.gd("disabled",n.downloading),a.pc(3),a.gd("ngIf",n.downloading),a.pc(1),a.gd("ngIf",!n.is_shared&&n.uid&&"false"!==n.uid&&"subscription"!==n.type&&(!n.postsService.isLoggedIn||n.postsService.permissions.includes("sharing")))}}function bN(e,t){if(1&e){var i=a.Kc();a.Jc(0,"div"),a.Jc(1,"div",1),a.Jc(2,"div",2),a.Jc(3,"div",3),a.Jc(4,"vg-player",4),a.Wc("onPlayerReady",(function(e){return a.rd(i),a.ad().onPlayerReady(e)})),a.Ec(5,"video",5,6),a.Ic(),a.Ic(),a.Jc(7,"div",7),a.Jc(8,"mat-button-toggle-group",8,9),a.Wc("cdkDropListDropped",(function(e){return a.rd(i),a.ad().drop(e)})),a.zd(10,cN,2,3,"mat-button-toggle",10),a.Ic(),a.Ic(),a.Ic(),a.Ic(),a.zd(11,uN,9,2,"div",11),a.zd(12,fN,7,4,"div",0),a.zd(13,vN,6,3,"div",0),a.Ic()}if(2&e){var n=a.nd(6),r=a.ad();a.pc(1),a.gd("ngClass","audio"===r.type?null:"container-video"),a.pc(2),a.gd("ngClass","audio"===r.type?"my-2 px-1":"video-col"),a.pc(1),a.yd("background-color","audio"===r.type?"transparent":"black"),a.pc(1),a.gd("ngClass","audio"===r.type?"audio-styles":"video-styles")("vgMedia",n)("src",r.currentItem.src,a.td),a.pc(3),a.gd("cdkDropListSortingDisabled",!r.id),a.pc(2),a.gd("ngForOf",r.playlist),a.pc(1),a.gd("ngIf",r.id&&r.playlistChanged()),a.pc(1),a.gd("ngIf",r.playlist.length>1),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;t<this.fileNames.length;t++){var i=this.fileNames[t],n=null,a=null;this.subscriptionName?(n="audio"===this.type?"audio/":"video/",a=this.baseStreamPath+n+encodeURIComponent(i)+"?subName="+this.subscriptionName+"&subPlaylist="+this.subPlaylist):(n=this.type+"/",a=this.baseStreamPath+n+encodeURIComponent(i));var r=this.uuid?"&uuid=".concat(this.uuid):"",o=this.id||!this.db_file?"":"&uid=".concat(this.db_file.uid),s=this.id||!this.db_file?"":"&type=".concat(this.db_file.type),c=this.id?"&id=".concat(this.id):"";this.postsService.isLoggedIn?(a+=(this.subscriptionName?"&":"?")+"jwt=".concat(this.postsService.token),this.is_shared&&(a+="".concat(r).concat(o).concat(s).concat(c))):this.is_shared&&(a+=(this.subscriptionName?"&":"?")+"test=test".concat(r).concat(o).concat(s).concat(c));var l,u=decodeURIComponent(i);l=u.includes("/")||u.includes("\\")?u.replace(/^.*[\\\/]/,""):u,this.playlist.push({title:i,src:a,type:e,label:l})}this.currentItem=this.playlist[this.currentIndex],this.original_playlist=JSON.stringify(this.playlist)}},{key:"onPlayerReady",value:function(e){var t=this;this.api=e,localStorage.getItem("player_volume")&&(this.api.volume=parseFloat(localStorage.getItem("player_volume"))),setInterval((function(){return t.saveVolume(t.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)}},{key:"saveVolume",value:function(e){this.original_volume!==e.volume&&(localStorage.setItem("player_volume",e.volume),this.original_volume=e.volume)}},{key:"nextVideo",value:function(){this.currentIndex!==this.playlist.length-1&&(this.currentIndex++,this.currentItem=this.playlist[this.currentIndex])}},{key:"playVideo",value:function(){this.api.play()}},{key:"onClickPlaylistItem",value:function(e,t){this.currentIndex=t,this.currentItem=e}},{key:"getFileInfos",value:function(){var e=this.getFileNames();this.postsService.getFileInfo(e,this.type,!1).subscribe((function(e){}))}},{key:"getFileNames",value:function(){for(var e=[],t=0;t<this.playlist.length;t++)e.push(this.playlist[t].title);return e}},{key:"decodeURI",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return decodeURI(e)}))},{key:"downloadContent",value:function(){for(var e=this,t=[],i=0;i<this.playlist.length;i++)t.push(this.playlist[i].title);var n=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloading=!0,this.postsService.downloadFileFromServer(t,this.type,n).subscribe((function(t){e.downloading=!1,saveAs(t,n+".zip")}),(function(t){console.log(t),e.downloading=!1}))}},{key:"downloadFile",value:function(){var e=this,t="audio"===this.type?".mp3":".mp4",i=this.playlist[0].title;this.downloading=!0,this.postsService.downloadFileFromServer(i,this.type,null,null,this.subscriptionName,this.subPlaylist,this.is_shared?this.db_file.uid:null,this.uuid).subscribe((function(n){e.downloading=!1,saveAs(n,i+t)}),(function(t){console.log(t),e.downloading=!1}))}},{key:"namePlaylistDialog",value:function(){var e=this,t=new a.u,i=this.dialog.open(jj,{width:"300px",data:{inputTitle:"Name the playlist",inputPlaceholder:"Name",submitText:"Favorite",doneEmitter:t}});t.subscribe((function(t){if(t){var n=e.getFileNames();e.postsService.createPlaylist(t,n,e.type,null).subscribe((function(n){if(n.success){i.close();var a=n.new_playlist;e.db_playlist=a,e.openSnackBar("Playlist '"+t+"' successfully created!",""),e.playlistPostCreationHandler(a.id)}}))}}))}},{key:"playlistPostCreationHandler",value:function(e){this.id=e,this.router.navigateByUrl(this.router.url+";id="+e)}},{key:"drop",value:function(e){BC(this.playlist,e.previousIndex,e.currentIndex)}},{key:"playlistChanged",value:function(){return JSON.stringify(this.playlist)!==this.original_playlist}},{key:"updatePlaylist",value:function(){var e=this,t=this.getFileNames();this.playlist_updating=!0,this.postsService.updatePlaylistFiles(this.id,t,this.type).subscribe((function(i){if(e.playlist_updating=!1,i.success){var n=t.join("|nvr|");e.router.navigate(["/player",{fileNames:n,type:e.type,id:e.id}]),e.openSnackBar("Successfully updated playlist.",""),e.original_playlist=JSON.stringify(e.playlist)}else e.openSnackBar("ERROR: Failed to update playlist.","")}))}},{key:"openShareDialog",value:function(){var e=this;this.dialog.open(qj,{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((function(t){e.id?e.getPlaylistFiles():e.getFile()}))}},{key:"openSnackBar",value:function(e,t){this.snackBar.open(e,t,{duration:2e3})}}]),e}()).\u0275fac=function(e){return new(e||_N)(a.Dc(YO),a.Dc(cI),a.Dc(Th),a.Dc(bO),a.Dc(A_))},_N.\u0275cmp=a.xc({type:_N,selectors:[["app-player"]],hostBindings:function(e,t){1&e&&a.Wc("resize",(function(e){return t.onResize(e)}),!1,a.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(e,t){1&e&&a.zd(0,bN,14,12,"div",0),2&e&&a.gd("ngIf",t.playlist.length>0&&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;i<e.subscriptions.length;i++){var n=e.subscriptions[i];n.isPlaylist?e.playlist_subscriptions.push(n):e.channel_subscriptions.push(n)}else e.subscriptions=[]}),(function(t){e.subscriptions_loading=!1,console.error("Failed to get subscriptions"),e.openSnackBar("ERROR: Failed to get subscriptions!","OK.")}))}},{key:"goToSubscription",value:function(e){this.router.navigate(["/subscription",{id:e.id}])}},{key:"openSubscribeDialog",value:function(){var e=this;this.dialog.open(qN,{maxWidth:500,width:"80vw"}).afterClosed().subscribe((function(t){t&&(t.isPlaylist?e.playlist_subscriptions.push(t):e.channel_subscriptions.push(t))}))}},{key:"showSubInfo",value:function(e){var t=this,i=new a.u;this.dialog.open(nz,{data:{sub:e,unsubbedEmitter:i}}),i.subscribe((function(i){i&&(t.openSnackBar("".concat(e.name," successfully deleted!")),t.getSubscriptions())}))}},{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||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;i<this.files.length;i++)t.push(this.files[i].path);this.downloading=!0,this.postsService.downloadFileFromServer(t,"video",this.subscription.name,!0).subscribe((function(t){e.downloading=!1,saveAs(t,e.subscription.name+".zip")}),(function(t){console.log(t),e.downloading=!1}))}}]),e}()).\u0275fac=function(e){return new(e||Ez)(a.Dc(YO),a.Dc(cI),a.Dc(bO))},Ez.\u0275cmp=a.xc({type:Ez,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(e,t){1&e&&(a.Jc(0,"div",0),a.Jc(1,"button",1),a.Wc("click",(function(){return t.goBack()})),a.Jc(2,"mat-icon"),a.Bd(3,"arrow_back"),a.Ic(),a.Ic(),a.Jc(4,"div",2),a.zd(5,Cz,2,1,"h2",3),a.Ic(),a.Ec(6,"mat-divider",4),a.Ec(7,"br"),a.zd(8,Oz,24,8,"div",5),a.Jc(9,"button",6),a.Wc("click",(function(){return t.downloadContent()})),a.Jc(10,"mat-icon",7),a.Bd(11,"save"),a.Ic(),a.zd(12,Dz,1,1,"mat-spinner",8),a.Ic(),a.Ic()),2&e&&(a.pc(5),a.gd("ngIf",t.subscription),a.pc(3),a.gd("ngIf",t.subscription),a.pc(1),a.gd("disabled",t.downloading),a.pc(3),a.gd("ngIf",t.downloading))},directives:[Za,_m,yt.t,Mm,mb,Dr,es,yt.s,Ud,yt.q,Pm,_r,zd,za,wz,jv],pipes:[yt.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}"]}),Ez);function Rz(e,t){if(1&e){var i=a.Kc();a.Jc(0,"mat-tab",9),a.Jc(1,"div",3),a.Jc(2,"mat-form-field"),a.Jc(3,"input",4),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().registrationUsernameInput=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(4,"div"),a.Jc(5,"mat-form-field"),a.Jc(6,"input",10),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().registrationPasswordInput=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(7,"div"),a.Jc(8,"mat-form-field"),a.Jc(9,"input",11),a.Wc("ngModelChange",(function(e){return a.rd(i),a.ad().registrationPasswordConfirmationInput=e})),a.Ic(),a.Ic(),a.Ic(),a.Jc(10,"div",6),a.Jc(11,"button",7),a.Wc("click",(function(){return a.rd(i),a.ad().register()})),a.Hc(12),a.Nc(13,Tz),a.Gc(),a.Ic(),a.Ic(),a.Ic()}if(2&e){var n=a.ad();a.pc(3),a.gd("ngModel",n.registrationUsernameInput),a.pc(3),a.gd("ngModel",n.registrationPasswordInput),a.pc(3),a.gd("ngModel",n.registrationPasswordConfirmationInput),a.pc(2),a.gd("disabled",n.registering)}}Az=$localize(_templateObject236()),Tz=$localize(_templateObject237());var Mz,Lz,jz,Fz,Nz,zz,Bz,Jz=((Mz=function(){function e(t,i,n){_classCallCheck(this,e),this.postsService=t,this.snackBar=i,this.router=n,this.selectedTabIndex=0,this.loginUsernameInput="",this.loginPasswordInput="",this.loggingIn=!1,this.registrationEnabled=!1,this.registrationUsernameInput="",this.registrationPasswordInput="",this.registrationPasswordConfirmationInput="",this.registering=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.postsService.isLoggedIn&&this.router.navigate(["/home"]),this.postsService.service_initialized.subscribe((function(t){t&&(e.postsService.config.Advanced.multi_user_mode||e.router.navigate(["/home"]),e.registrationEnabled=e.postsService.config.Users&&e.postsService.config.Users.allow_registration)}))}},{key:"login",value:function(){var e=this;""!==this.loginPasswordInput&&(this.loggingIn=!0,this.postsService.login(this.loginUsernameInput,this.loginPasswordInput).subscribe((function(t){e.loggingIn=!1,t.token?e.postsService.afterLogin(t.user,t.token,t.permissions,t.available_permissions):e.openSnackBar("Login failed, unknown error.")}),(function(t){e.loggingIn=!1;var i=t.status;e.openSnackBar(401===i?"User name or password is incorrect!":404===i?"Login failed, cannot connect to the server.":"Login failed, unknown error.")})))}},{key:"register",value:function(){var e=this;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((function(t){e.registering=!1,t&&t.user?(e.openSnackBar("User ".concat(t.user.name," successfully registered.")),e.loginUsernameInput=t.user.name,e.selectedTabIndex=0):e.openSnackBar("Failed to register user, unknown error.")}),(function(t){e.registering=!1,t&&t.error&&"string"==typeof t.error?e.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!")}},{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||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;d<o.length;d++){var h=o[d],p=e[a][h];if(i.downloads[a][h]){var f=i.downloads[a][h];f.percent_complete=p.percent_complete,f.complete=p.complete,f.timestamp_end=p.timestamp_end,f.downloading=p.downloading,f.error=p.error}else i.downloads[a][h]=p}else i.downloads[a]=r},s=0;s<n.length;s++)o(s)}},{key:"downloadsValid",value:function(){for(var e=!1,t=this.keys(this.downloads),i=0;i<t.length;i++)if(this.keys(this.downloads[t[i]]).length>0){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<arguments.length&&void 0!==arguments[1]?arguments[1]:{},y=[],k=0,w=void 0,C=void 0;if(isNaN(e))throw new TypeError("Invalid number");return r=!0===_.bits,f=!0===_.unix,p=void 0!==_.round?_.round:f?1:2,l=void 0!==_.locale?_.locale:"",u=_.localeOptions||{},m=void 0!==_.separator?_.separator:"",g=void 0!==_.spacer?_.spacer:f?"":" ",b=_.symbols||{},v=2===(t=_.base||2)&&_.standard||"jedec",h=_.output||"string",s=!0===_.fullform,c=_.fullforms instanceof Array?_.fullforms:[],w=void 0!==_.exponent?_.exponent:-1,o=2<t?1e3:1024,(d=(C=Number(e))<0)&&(C=-C),(-1===w||isNaN(w))&&(w=Math.floor(Math.log(C)/Math.log(o)))<0&&(w=0),8<w&&(w=8),"exponent"===h?w:(0===C?(y[0]=0,y[1]=f?"":n[v][r?"bits":"bytes"][w]):(k=C/(2===t?Math.pow(2,10*w):Math.pow(1e3,w)),r&&o<=(k*=8)&&w<8&&(k/=o,w++),y[0]=Number(k.toFixed(0<w?p:0)),y[0]===o&&w<8&&void 0===_.exponent&&(y[0]=1,w++),y[1]=10===t&&1===w?r?"kb":"kB":n[v][r?"bits":"bytes"][w],f&&(y[1]="jedec"===v?y[1].charAt(0):0<w?y[1].replace(/B$/,""):y[1],i.test(y[1])&&(y[0]=Math.floor(y[0]),y[1]=""))),d&&(y[0]=-y[0]),y[1]=b[y[1]]||y[1],!0===l?y[0]=y[0].toLocaleString():0<l.length?y[0]=y[0].toLocaleString(l,u):0<m.length&&(y[0]=y[0].toString().replace(".",m)),"array"===h?y:(s&&(y[1]=c[w]?c[w]:a[v][w]+(r?"bit":"byte")+(1===y[0]?"":"s")),"object"===h?{value:y[0],symbol:y[1],exponent:w}:y.join(g)))}r.partial=function(e){return function(t){return r(t,e)}},e.exports=r}("undefined"!=typeof window?window:global)}}]);