diff --git a/app/src/assets/images/greencheck.png b/app/src/assets/images/greencheck.png new file mode 100644 index 0000000..7d119ee Binary files /dev/null and b/app/src/assets/images/greencheck.png differ diff --git a/app/src/common/constants.ts b/app/src/common/constants.ts index 5c95389..572c159 100644 --- a/app/src/common/constants.ts +++ b/app/src/common/constants.ts @@ -11,7 +11,8 @@ export class Constants { ], cost: 3, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Ahri', @@ -21,7 +22,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'AurelionSol', @@ -31,7 +33,8 @@ export class Constants { ], cost: 4, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Anivia', @@ -41,7 +44,8 @@ export class Constants { ], cost: 5, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Ashe', @@ -51,7 +55,8 @@ export class Constants { ], cost: 3, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Akali', @@ -61,7 +66,8 @@ export class Constants { ], cost: 4, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Brand', @@ -71,7 +77,8 @@ export class Constants { ], cost: 4, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Braum', @@ -81,7 +88,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Blitzcrank', @@ -91,7 +99,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Chogath', @@ -101,7 +110,8 @@ export class Constants { ], cost: 4, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Draven', @@ -111,7 +121,8 @@ export class Constants { ], cost: 4, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Darius', @@ -121,7 +132,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false } , { @@ -132,7 +144,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Elise', @@ -142,7 +155,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Fiora', @@ -152,7 +166,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Gnar', @@ -163,7 +178,8 @@ export class Constants { ], cost: 3, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Garen', @@ -173,7 +189,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Gangplank', @@ -184,7 +201,8 @@ export class Constants { ], cost: 3, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Graves', @@ -194,7 +212,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Kayle', @@ -204,7 +223,8 @@ export class Constants { ], cost: 5, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Karthus', @@ -214,7 +234,8 @@ export class Constants { ], cost: 5, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Kennen', @@ -225,7 +246,8 @@ export class Constants { ], cost: 3, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Katarina', @@ -235,7 +257,8 @@ export class Constants { ], cost: 3, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Kindred', @@ -245,7 +268,8 @@ export class Constants { ], cost: 4, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Kassadin', @@ -255,7 +279,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Khazix', @@ -265,7 +290,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Lissandra', @@ -275,7 +301,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Lucian', @@ -285,7 +312,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Lulu', @@ -295,7 +323,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Leona', @@ -305,7 +334,8 @@ export class Constants { ], cost: 4, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'MissFortune', @@ -315,7 +345,8 @@ export class Constants { ], cost: 5, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Mordekaiser', @@ -325,7 +356,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Morgana', @@ -335,7 +367,8 @@ export class Constants { ], cost: 3, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Nidalee', @@ -345,7 +378,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Pyke', @@ -355,7 +389,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Poppy', @@ -365,7 +400,8 @@ export class Constants { ], cost: 3, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Rengar', @@ -375,7 +411,8 @@ export class Constants { ], cost: 3, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'RekSai', @@ -385,7 +422,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Swain', @@ -396,7 +434,8 @@ export class Constants { ], cost: 5, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Sejuani', @@ -406,7 +445,8 @@ export class Constants { ], cost: 4, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Shen', @@ -416,7 +456,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Shyvana', @@ -426,7 +467,8 @@ export class Constants { ], cost: 3, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'TwistedFate', @@ -436,7 +478,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Tristana', @@ -446,7 +489,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Varus', @@ -456,7 +500,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Vayne', @@ -466,7 +511,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Veigar', @@ -476,7 +522,8 @@ export class Constants { ], cost: 3, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Volibear', @@ -486,7 +533,8 @@ export class Constants { ], cost: 3, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Warwick', @@ -496,7 +544,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Yasuo', @@ -506,7 +555,8 @@ export class Constants { ], cost: 5, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Zed', @@ -516,7 +566,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Camille', @@ -526,7 +577,8 @@ export class Constants { ], cost: 1, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Jayce', @@ -536,7 +588,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Jinx', @@ -546,7 +599,8 @@ export class Constants { ], cost: 4, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false }, { name: 'Vi', @@ -556,7 +610,8 @@ export class Constants { ], cost: 2, isSelected: false, - sinergy: false + sinergy: false, + sinergy2: false } ]; public static championName = 'name'; diff --git a/app/src/components/home/home.component.html b/app/src/components/home/home.component.html index eda1dfd..9c52fe4 100644 --- a/app/src/components/home/home.component.html +++ b/app/src/components/home/home.component.html @@ -9,8 +9,11 @@ [ngClass]="{ 'selected': champion.isSelected, 'sinergy': champion.sinergy && !champion.isSelected, - 'dark': !champion.isSelected && !champion.sinergy && !noChampSelected - }"> + 'sinergy2': champion.sinergy2 && !champion.isSelected, + 'dark': !champion.isSelected && !champion.sinergy && !champion.sinergy2 && !noChampSelected + }"> + +
{{role}} @@ -28,6 +31,8 @@ + 1 sinergy + 2 sinergies
diff --git a/app/src/components/home/home.component.scss b/app/src/components/home/home.component.scss index f2c0312..145b39f 100644 --- a/app/src/components/home/home.component.scss +++ b/app/src/components/home/home.component.scss @@ -17,6 +17,7 @@ color: white; } } + button { -webkit-border-radius: 4; -moz-border-radius: 4; @@ -26,6 +27,19 @@ padding: 10px 20px 10px 20px; text-decoration: none; } + + #oneSinergy { + color: #5c7edec7; + margin: 0% 0.5% 0% 1%; + font-weight: bold; + } + + + #twoSinergies { + color: #b7de5cc7; + margin: 0% 0% 0% 0.5%; + font-weight: bold; + } } #champions{ @@ -68,6 +82,12 @@ height: 4em; background-size: cover; background-position: center; + + .checkSelectedChampion{ + float: right; + margin: -15% -15% 0% 0%; + + } } .rolesWrap{ @@ -100,6 +120,12 @@ box-shadow: inset 0 0 0 3px #5c7edec7; } + .sinergy2{ + -webkit-box-shadow: inset 0 0 0 3px #b7de5cc7; + -moz-box-shadow: inset 0 0 0 3px #b7de5cc7; + box-shadow: inset 0 0 0 3px #b7de5cc7; + } + .dark { opacity: 0.3; } @@ -117,6 +143,7 @@ display: flex; align-items: center; justify-content: center; + margin-top: 1%; .roleSelectedRoles{ float: left; diff --git a/app/src/components/home/home.component.ts b/app/src/components/home/home.component.ts index 74a8e99..d1bb4fe 100644 --- a/app/src/components/home/home.component.ts +++ b/app/src/components/home/home.component.ts @@ -106,28 +106,32 @@ export class HomeComponent implements OnInit { * @param role name of role */ selectRole(role) { - this.resetComposition(); - this.selectedRole = role; - let countChampions = 0; - this.champions.map( champion => { - if (_.indexOf(champion.roles, role) !== -1) { - champion.isSelected = true; - countChampions++; - this.championsPool.push(champion); - champion.roles.forEach( rol => { - this.rolesCount[rol]++; - }); - } - return champion; - }); - this.updatePool(); - this.updateSinergies(); - this.teamSize = countChampions; - this.formFilters.patchValue({ - teamSize: this.teamSize - }); - this.getBonus(); - this.noChampSelected = false; + if (role !== this.selectedRole) { + this.resetComposition(); + this.selectedRole = role; + let countChampions = 0; + this.champions.map( champion => { + if (_.indexOf(champion.roles, role) !== -1) { + champion.isSelected = true; + countChampions++; + this.championsPool.push(champion); + champion.roles.forEach( rol => { + this.rolesCount[rol]++; + }); + } + return champion; + }); + this.updatePool(); + this.updateSinergies(); + this.teamSize = countChampions; + this.formFilters.patchValue({ + teamSize: this.teamSize + }); + this.getBonus(); + this.noChampSelected = false; + } else { + this.resetComposition(); + } } /** @@ -162,15 +166,26 @@ export class HomeComponent implements OnInit { */ updateSinergies() { this.champions.map(champion => { - return champion.sinergy = false; + champion.sinergy2 = false; + return champion.sinergy = false; }); - this.rolesPool.forEach( role => { - this.champions.map(champion => { - if (_.indexOf(champion.roles, role) !== -1 ) { - return champion.sinergy = true; + this.champions.map(champion => { + let countRoles = 0; + this.rolesPool.forEach( role => { + if (_.indexOf(champion.roles, role) !== -1 ) { + countRoles++; + } + }); + switch (countRoles) { + case 1: + return champion.sinergy = true; + break; + case 2: + return champion.sinergy2 = true; + break; } - }); }); + } /** @@ -197,6 +212,7 @@ export class HomeComponent implements OnInit { this.teamSize = 0; this.champions.map(champion => { champion.sinergy = false; + champion.sinergy2 = false; champion.isSelected = false; return champion; }); diff --git a/app/src/models/champion.ts b/app/src/models/champion.ts index 321fb13..a371b68 100644 --- a/app/src/models/champion.ts +++ b/app/src/models/champion.ts @@ -4,6 +4,7 @@ export class Champion { public roles: string[], public cost: number, public isSelected: boolean, - public sinergy: boolean + public sinergy: boolean, + public sinergy2: boolean ) {} } diff --git a/dist/TFTPaths/assets/images/greencheck.png b/dist/TFTPaths/assets/images/greencheck.png new file mode 100644 index 0000000..7d119ee Binary files /dev/null and b/dist/TFTPaths/assets/images/greencheck.png differ diff --git a/dist/TFTPaths/index.html b/dist/TFTPaths/index.html index e8da851..6b37a19 100644 --- a/dist/TFTPaths/index.html +++ b/dist/TFTPaths/index.html @@ -19,5 +19,5 @@ - + diff --git a/dist/TFTPaths/main-es2015.199bb722f0f4a2593176.js b/dist/TFTPaths/main-es2015.199bb722f0f4a2593176.js new file mode 100644 index 0000000..f7d6ec3 --- /dev/null +++ b/dist/TFTPaths/main-es2015.199bb722f0f4a2593176.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},LvDl:function(e,t,n){(function(e){var r;(function(){var i,s=200,o="Expected a function",a="__lodash_placeholder__",u=1,l=2,c=4,h=1,d=2,f=1,p=2,g=4,m=8,_=16,v=32,y=64,w=128,C=256,b=512,E=800,D=16,x=1/0,S=9007199254740991,A=17976931348623157e292,k=NaN,T=4294967295,O=T-1,P=T>>>1,R=[["ary",w],["bind",f],["bindKey",p],["curry",m],["curryRight",_],["flip",b],["partial",v],["partialRight",y],["rearg",C]],F="[object Arguments]",I="[object Array]",N="[object AsyncFunction]",M="[object Boolean]",V="[object Date]",U="[object DOMException]",j="[object Error]",B="[object Function]",$="[object GeneratorFunction]",L="[object Map]",z="[object Number]",H="[object Null]",W="[object Object]",G="[object Proxy]",q="[object RegExp]",Z="[object Set]",Q="[object String]",K="[object Symbol]",Y="[object Undefined]",J="[object WeakMap]",X="[object ArrayBuffer]",ee="[object DataView]",te="[object Float32Array]",ne="[object Float64Array]",re="[object Int8Array]",ie="[object Int16Array]",se="[object Int32Array]",oe="[object Uint8Array]",ae="[object Uint8ClampedArray]",ue="[object Uint16Array]",le="[object Uint32Array]",ce=/\b__p \+= '';/g,he=/\b(__p \+=) '' \+/g,de=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fe=/&(?:amp|lt|gt|quot|#39);/g,pe=/[&<>"']/g,ge=RegExp(fe.source),me=RegExp(pe.source),_e=/<%-([\s\S]+?)%>/g,ve=/<%([\s\S]+?)%>/g,ye=/<%=([\s\S]+?)%>/g,we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ee=/[\\^$.*+?()[\]{}|]/g,De=RegExp(Ee.source),xe=/^\s+|\s+$/g,Se=/^\s+/,Ae=/\s+$/,ke=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Te=/\{\n\/\* \[wrapped with (.+)\] \*/,Oe=/,? & /,Pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Re=/\\(\\)?/g,Fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ie=/\w*$/,Ne=/^[-+]0x[0-9a-f]+$/i,Me=/^0b[01]+$/i,Ve=/^\[object .+?Constructor\]$/,Ue=/^0o[0-7]+$/i,je=/^(?:0|[1-9]\d*)$/,Be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$e=/($^)/,Le=/['\n\r\u2028\u2029\\]/g,ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",He="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",We="["+He+"]",Ge="["+ze+"]",qe="\\d+",Ze="[a-z\\xdf-\\xf6\\xf8-\\xff]",Qe="[^\\ud800-\\udfff"+He+qe+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ke="\\ud83c[\\udffb-\\udfff]",Ye="[^\\ud800-\\udfff]",Je="(?:\\ud83c[\\udde6-\\uddff]){2}",Xe="[\\ud800-\\udbff][\\udc00-\\udfff]",et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",tt="(?:"+Ze+"|"+Qe+")",nt="(?:"+et+"|"+Qe+")",rt="(?:"+Ge+"|"+Ke+")?",it="[\\ufe0e\\ufe0f]?"+rt+"(?:\\u200d(?:"+[Ye,Je,Xe].join("|")+")[\\ufe0e\\ufe0f]?"+rt+")*",st="(?:"+["[\\u2700-\\u27bf]",Je,Xe].join("|")+")"+it,ot="(?:"+[Ye+Ge+"?",Ge,Je,Xe,"[\\ud800-\\udfff]"].join("|")+")",at=RegExp("['\u2019]","g"),ut=RegExp(Ge,"g"),lt=RegExp(Ke+"(?="+Ke+")|"+ot+it,"g"),ct=RegExp([et+"?"+Ze+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[We,et,"$"].join("|")+")",nt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[We,et+tt,"$"].join("|")+")",et+"?"+tt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",et+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qe,st].join("|"),"g"),ht=RegExp("[\\u200d\\ud800-\\udfff"+ze+"\\ufe0e\\ufe0f]"),dt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pt=-1,gt={};gt[te]=gt[ne]=gt[re]=gt[ie]=gt[se]=gt[oe]=gt[ae]=gt[ue]=gt[le]=!0,gt[F]=gt[I]=gt[X]=gt[M]=gt[ee]=gt[V]=gt[j]=gt[B]=gt[L]=gt[z]=gt[W]=gt[q]=gt[Z]=gt[Q]=gt[J]=!1;var mt={};mt[F]=mt[I]=mt[X]=mt[ee]=mt[M]=mt[V]=mt[te]=mt[ne]=mt[re]=mt[ie]=mt[se]=mt[L]=mt[z]=mt[W]=mt[q]=mt[Z]=mt[Q]=mt[K]=mt[oe]=mt[ae]=mt[ue]=mt[le]=!0,mt[j]=mt[B]=mt[J]=!1;var _t={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vt=parseFloat,yt=parseInt,wt="object"==typeof global&&global&&global.Object===Object&&global,Ct="object"==typeof self&&self&&self.Object===Object&&self,bt=wt||Ct||Function("return this")(),Et=t&&!t.nodeType&&t,Dt=Et&&"object"==typeof e&&e&&!e.nodeType&&e,xt=Dt&&Dt.exports===Et,St=xt&&wt.process,At=function(){try{return Dt&&Dt.require&&Dt.require("util").types||St&&St.binding&&St.binding("util")}catch(e){}}(),kt=At&&At.isArrayBuffer,Tt=At&&At.isDate,Ot=At&&At.isMap,Pt=At&&At.isRegExp,Rt=At&&At.isSet,Ft=At&&At.isTypedArray;function It(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Nt(e,t,n,r){for(var i=-1,s=null==e?0:e.length;++i-1}function Bt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function ln(e,t){for(var n=e.length;n--&&Qt(t,e[n],0)>-1;);return n}var cn=en({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),hn=en({"&":"&","<":"<",">":">",'"':""","'":"'"});function dn(e){return"\\"+_t[e]}function fn(e){return ht.test(e)}function pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function gn(e,t){return function(n){return e(t(n))}}function mn(e,t){for(var n=-1,r=e.length,i=0,s=[];++n",""":'"',"'":"'"}),bn=function e(t){var n,r=(t=null==t?bt:bn.defaults(bt.Object(),t,bn.pick(bt,ft))).Array,ze=t.Date,He=t.Error,We=t.Function,Ge=t.Math,qe=t.Object,Ze=t.RegExp,Qe=t.String,Ke=t.TypeError,Ye=r.prototype,Je=qe.prototype,Xe=t["__core-js_shared__"],et=We.prototype.toString,tt=Je.hasOwnProperty,nt=0,rt=(n=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",it=Je.toString,st=et.call(qe),ot=bt._,lt=Ze("^"+et.call(tt).replace(Ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ht=xt?t.Buffer:i,_t=t.Symbol,wt=t.Uint8Array,Ct=ht?ht.allocUnsafe:i,Et=gn(qe.getPrototypeOf,qe),Dt=qe.create,St=Je.propertyIsEnumerable,At=Ye.splice,Gt=_t?_t.isConcatSpreadable:i,en=_t?_t.iterator:i,En=_t?_t.toStringTag:i,Dn=function(){try{var e=bs(qe,"defineProperty");return e({},"",{}),e}catch(t){}}(),xn=t.clearTimeout!==bt.clearTimeout&&t.clearTimeout,Sn=ze&&ze.now!==bt.Date.now&&ze.now,An=t.setTimeout!==bt.setTimeout&&t.setTimeout,kn=Ge.ceil,Tn=Ge.floor,On=qe.getOwnPropertySymbols,Pn=ht?ht.isBuffer:i,Rn=t.isFinite,Fn=Ye.join,In=gn(qe.keys,qe),Nn=Ge.max,Mn=Ge.min,Vn=ze.now,Un=t.parseInt,jn=Ge.random,Bn=Ye.reverse,$n=bs(t,"DataView"),Ln=bs(t,"Map"),zn=bs(t,"Promise"),Hn=bs(t,"Set"),Wn=bs(t,"WeakMap"),Gn=bs(qe,"create"),qn=Wn&&new Wn,Zn={},Qn=Zs($n),Kn=Zs(Ln),Yn=Zs(zn),Jn=Zs(Hn),Xn=Zs(Wn),er=_t?_t.prototype:i,tr=er?er.valueOf:i,nr=er?er.toString:i;function rr(e){if(da(e)&&!ta(e)&&!(e instanceof ar)){if(e instanceof or)return e;if(tt.call(e,"__wrapped__"))return Qs(e)}return new or(e)}var ir=function(){function e(){}return function(t){if(!ha(t))return{};if(Dt)return Dt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function sr(){}function or(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function ar(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=T,this.__views__=[]}function ur(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Er(e,t,n,r,s,o){var a,h=t&u,d=t&l,f=t&c;if(n&&(a=s?n(e,r,s,o):n(e)),a!==i)return a;if(!ha(e))return e;var p=ta(e);if(p){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!h)return Bi(e,a)}else{var g=xs(e),m=g==B||g==$;if(sa(e))return Ii(e,h);if(g==W||g==F||m&&!s){if(a=d||m?{}:As(e),!h)return d?function(e,t){return $i(e,Ds(e),t)}(e,function(t,n){return t&&$i(e,za(e),t)}(a)):function(e,t){return $i(e,Es(e),t)}(e,yr(a,e))}else{if(!mt[g])return s?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case X:return Ni(e);case M:case V:return new r(+e);case ee:return function(e,t){var n=t?Ni(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case te:case ne:case re:case ie:case se:case oe:case ae:case ue:case le:return Mi(e,n);case L:return new r;case z:case Q:return new r(e);case q:return function(e){var t=new e.constructor(e.source,Ie.exec(e));return t.lastIndex=e.lastIndex,t}(e);case Z:return new r;case K:return tr?qe(tr.call(e)):{}}}(e,g,h)}}o||(o=new dr);var _=o.get(e);if(_)return _;o.set(e,a),_a(e)?e.forEach(function(r){a.add(Er(r,t,n,r,e,o))}):fa(e)&&e.forEach(function(r,i){a.set(i,Er(r,t,n,i,e,o))});var v=p?i:(f?d?gs:ps:d?za:La)(e);return Mt(v||e,function(r,i){v&&(r=e[i=r]),mr(a,i,Er(r,t,n,i,e,o))}),a}function Dr(e,t,n){var r=n.length;if(null==e)return!r;for(e=qe(e);r--;){var s=n[r],o=e[s];if(o===i&&!(s in e)||!(0,t[s])(o))return!1}return!0}function xr(e,t,n){if("function"!=typeof e)throw new Ke(o);return $s(function(){e.apply(i,n)},t)}function Sr(e,t,n,r){var i=-1,o=jt,a=!0,u=e.length,l=[],c=t.length;if(!u)return l;n&&(t=$t(t,sn(n))),r?(o=Bt,a=!1):t.length>=s&&(o=an,a=!1,t=new hr(t));e:for(;++i-1},lr.prototype.set=function(e,t){var n=this.__data__,r=_r(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},cr.prototype.clear=function(){this.size=0,this.__data__={hash:new ur,map:new(Ln||lr),string:new ur}},cr.prototype.delete=function(e){var t=ws(this,e).delete(e);return this.size-=t?1:0,t},cr.prototype.get=function(e){return ws(this,e).get(e)},cr.prototype.has=function(e){return ws(this,e).has(e)},cr.prototype.set=function(e,t){var n=ws(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},hr.prototype.add=hr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},hr.prototype.has=function(e){return this.__data__.has(e)},dr.prototype.clear=function(){this.__data__=new lr,this.size=0},dr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},dr.prototype.get=function(e){return this.__data__.get(e)},dr.prototype.has=function(e){return this.__data__.has(e)},dr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof lr){var r=n.__data__;if(!Ln||r.length0&&n(a)?t>1?Rr(a,t-1,n,r,i):Lt(i,a):r||(i[i.length]=a)}return i}var Fr=Wi(),Ir=Wi(!0);function Nr(e,t){return e&&Fr(e,t,La)}function Mr(e,t){return e&&Ir(e,t,La)}function Vr(e,t){return Ut(t,function(t){return ua(e[t])})}function Ur(e,t){for(var n=0,r=(t=Oi(t,e)).length;null!=e&&nt}function Lr(e,t){return null!=e&&tt.call(e,t)}function zr(e,t){return null!=e&&t in qe(e)}function Hr(e,t,n){for(var s=n?Bt:jt,o=e[0].length,a=e.length,u=a,l=r(a),c=1/0,h=[];u--;){var d=e[u];u&&t&&(d=$t(d,sn(t))),c=Mn(d.length,c),l[u]=!n&&(t||o>=120&&d.length>=120)?new hr(u&&d):i}d=e[0];var f=-1,p=l[0];e:for(;++f=a?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});r--;)e[r]=e[r].value;return e}(Xr(e,function(e,n,i){return{criteria:$t(t,function(t){return t(e)}),index:++r,value:e}}))}function si(e,t,n){for(var r=-1,i=t.length,s={};++r-1;)a!==e&&At.call(a,u,1),At.call(e,u,1);return e}function ai(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==s){var s=i;Ts(i)?At.call(e,i,1):bi(e,i)}}return e}function ui(e,t){return e+Tn(jn()*(t-e+1))}function li(e,t){var n="";if(!e||t<1||t>S)return n;do{t%2&&(n+=e),(t=Tn(t/2))&&(e+=e)}while(t);return n}function ci(e,t){return Ls(Vs(e,t,pu),e+"")}function hi(e,t,n,r){if(!ha(e))return e;for(var s=-1,o=(t=Oi(t,e)).length,a=o-1,u=e;null!=u&&++ss?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=r(s);++i>>1,o=e[s];null!==o&&!ya(o)&&(n?o<=t:o=s){var c=t?null:os(e);if(c)return _n(c);a=!1,i=an,l=new hr}else l=t?[]:u;e:for(;++r=r?e:pi(e,t,n)}var Fi=xn||function(e){return bt.clearTimeout(e)};function Ii(e,t){if(t)return e.slice();var n=e.length,r=Ct?Ct(n):new e.constructor(n);return e.copy(r),r}function Ni(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Mi(e,t){var n=t?Ni(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Vi(e,t){if(e!==t){var n=e!==i,r=null===e,s=e==e,o=ya(e),a=t!==i,u=null===t,l=t==t,c=ya(t);if(!u&&!c&&!o&&e>t||o&&a&&l&&!u&&!c||r&&a&&l||!n&&l||!s)return 1;if(!r&&!o&&!c&&e1?n[s-1]:i,a=s>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(s--,o):i,a&&Os(n[0],n[1],a)&&(o=s<3?i:o,s=1),t=qe(t);++r-1?s[o?t[a]:a]:i}}function Ki(e){return fs(function(t){var n=t.length,r=n,s=or.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Ke(o);if(s&&!u&&"wrapper"==_s(a))var u=new or([],!0)}for(r=u?r:n;++r1&&m.reverse(),d&&cu))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var f=-1,p=!0,g=n&d?new hr:i;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ke,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Mt(R,function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Te);return t?t[1].split(Oe):[]}(r),n)))}function Hs(e){var t=0,n=0;return function(){var r=Vn(),s=D-(r-n);if(n=r,s>0){if(++t>=E)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ws(e,t){var n=-1,r=e.length,s=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,mo(e,n)});function Eo(e){var t=rr(e);return t.__chain__=!0,t}function Do(e,t){return t(e)}var xo=fs(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,s=function(t){return Cr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ar&&Ts(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Do,args:[s],thisArg:i}),new or(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(s)}),So=Li(function(e,t,n){tt.call(e,n)?++e[n]:wr(e,n,1)}),Ao=Qi(Xs),ko=Qi(eo);function To(e,t){return(ta(e)?Mt:Ar)(e,ys(t,3))}function Oo(e,t){return(ta(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:kr)(e,ys(t,3))}var Po=Li(function(e,t,n){tt.call(e,n)?e[n].push(t):wr(e,n,[t])}),Ro=ci(function(e,t,n){var i=-1,s="function"==typeof t,o=ra(e)?r(e.length):[];return Ar(e,function(e){o[++i]=s?It(t,e,n):Wr(e,t,n)}),o}),Fo=Li(function(e,t,n){wr(e,n,t)});function Io(e,t){return(ta(e)?$t:Xr)(e,ys(t,3))}var No=Li(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Mo=ci(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Os(e,t[0],t[1])?t=[]:n>2&&Os(t[0],t[1],t[2])&&(t=[t[0]]),ii(e,Rr(t,1),[])}),Vo=Sn||function(){return bt.Date.now()};function Uo(e,t,n){return t=n?i:t,us(e,w,i,i,i,i,t=e&&null==t?e.length:t)}function jo(e,t){var n;if("function"!=typeof t)throw new Ke(o);return e=xa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Bo=ci(function(e,t,n){var r=f;if(n.length){var i=mn(n,vs(Bo));r|=v}return us(e,r,t,n,i)}),$o=ci(function(e,t,n){var r=f|p;if(n.length){var i=mn(n,vs($o));r|=v}return us(t,r,e,n,i)});function Lo(e,t,n){var r,s,a,u,l,c,h=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new Ke(o);function g(t){var n=r,o=s;return r=s=i,h=t,u=e.apply(o,n)}function m(e){var n=e-c;return c===i||n>=t||n<0||f&&e-h>=a}function _(){var e=Vo();if(m(e))return v(e);l=$s(_,function(e){var n=t-(e-c);return f?Mn(n,a-(e-h)):n}(e))}function v(e){return l=i,p&&r?g(e):(r=s=i,u)}function y(){var e=Vo(),n=m(e);if(r=arguments,s=this,c=e,n){if(l===i)return function(e){return h=e,l=$s(_,t),d?g(e):u}(c);if(f)return Fi(l),l=$s(_,t),g(c)}return l===i&&(l=$s(_,t)),u}return t=Aa(t)||0,ha(n)&&(d=!!n.leading,a=(f="maxWait"in n)?Nn(Aa(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),y.cancel=function(){l!==i&&Fi(l),h=0,r=c=s=l=i},y.flush=function(){return l===i?u:v(Vo())},y}var zo=ci(function(e,t){return xr(e,1,t)}),Ho=ci(function(e,t,n){return xr(e,Aa(t)||0,n)});function Wo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ke(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(Wo.Cache||cr),n}function Go(e){if("function"!=typeof e)throw new Ke(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Wo.Cache=cr;var qo=Pi(function(e,t){var n=(t=1==t.length&&ta(t[0])?$t(t[0],sn(ys())):$t(Rr(t,1),sn(ys()))).length;return ci(function(r){for(var i=-1,s=Mn(r.length,n);++i=t}),ea=Gr(function(){return arguments}())?Gr:function(e){return da(e)&&tt.call(e,"callee")&&!St.call(e,"callee")},ta=r.isArray,na=kt?sn(kt):function(e){return da(e)&&Br(e)==X};function ra(e){return null!=e&&ca(e.length)&&!ua(e)}function ia(e){return da(e)&&ra(e)}var sa=Pn||Au,oa=Tt?sn(Tt):function(e){return da(e)&&Br(e)==V};function aa(e){if(!da(e))return!1;var t=Br(e);return t==j||t==U||"string"==typeof e.message&&"string"==typeof e.name&&!ga(e)}function ua(e){if(!ha(e))return!1;var t=Br(e);return t==B||t==$||t==N||t==G}function la(e){return"number"==typeof e&&e==xa(e)}function ca(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=S}function ha(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function da(e){return null!=e&&"object"==typeof e}var fa=Ot?sn(Ot):function(e){return da(e)&&xs(e)==L};function pa(e){return"number"==typeof e||da(e)&&Br(e)==z}function ga(e){if(!da(e)||Br(e)!=W)return!1;var t=Et(e);if(null===t)return!0;var n=tt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&et.call(n)==st}var ma=Pt?sn(Pt):function(e){return da(e)&&Br(e)==q},_a=Rt?sn(Rt):function(e){return da(e)&&xs(e)==Z};function va(e){return"string"==typeof e||!ta(e)&&da(e)&&Br(e)==Q}function ya(e){return"symbol"==typeof e||da(e)&&Br(e)==K}var wa=Ft?sn(Ft):function(e){return da(e)&&ca(e.length)&&!!gt[Br(e)]},Ca=rs(Jr),ba=rs(function(e,t){return e<=t});function Ea(e){if(!e)return[];if(ra(e))return va(e)?wn(e):Bi(e);if(en&&e[en])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[en]());var t=xs(e);return(t==L?pn:t==Z?_n:Ya)(e)}function Da(e){return e?(e=Aa(e))===x||e===-x?(e<0?-1:1)*A:e==e?e:0:0===e?e:0}function xa(e){var t=Da(e),n=t%1;return t==t?n?t-n:t:0}function Sa(e){return e?br(xa(e),0,T):0}function Aa(e){if("number"==typeof e)return e;if(ya(e))return k;if(ha(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ha(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(xe,"");var n=Me.test(e);return n||Ue.test(e)?yt(e.slice(2),n?2:8):Ne.test(e)?k:+e}function ka(e){return $i(e,za(e))}function Ta(e){return null==e?"":wi(e)}var Oa=zi(function(e,t){if(Is(t)||ra(t))$i(t,La(t),e);else for(var n in t)tt.call(t,n)&&mr(e,n,t[n])}),Pa=zi(function(e,t){$i(t,za(t),e)}),Ra=zi(function(e,t,n,r){$i(t,za(t),e,r)}),Fa=zi(function(e,t,n,r){$i(t,La(t),e,r)}),Ia=fs(Cr),Na=ci(function(e,t){e=qe(e);var n=-1,r=t.length,s=r>2?t[2]:i;for(s&&Os(t[0],t[1],s)&&(r=1);++n1),t}),$i(e,gs(e),n),r&&(n=Er(n,u|l|c,hs));for(var i=t.length;i--;)bi(n,t[i]);return n}),qa=fs(function(e,t){return null==e?{}:function(e,t){return si(e,t,function(t,n){return Ua(e,n)})}(e,t)});function Za(e,t){if(null==e)return{};var n=$t(gs(e),function(e){return[e]});return t=ys(t),si(e,n,function(e,n){return t(e,n[0])})}var Qa=as(La),Ka=as(za);function Ya(e){return null==e?[]:on(e,La(e))}var Ja=qi(function(e,t,n){return t=t.toLowerCase(),e+(n?Xa(t):t)});function Xa(e){return au(Ta(e).toLowerCase())}function eu(e){return(e=Ta(e))&&e.replace(Be,cn).replace(ut,"")}var tu=qi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),nu=qi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ru=Gi("toLowerCase"),iu=qi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),su=qi(function(e,t,n){return e+(n?" ":"")+au(t)}),ou=qi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),au=Gi("toUpperCase");function uu(e,t,n){return e=Ta(e),(t=n?i:t)===i?function(e){return dt.test(e)}(e)?function(e){return e.match(ct)||[]}(e):function(e){return e.match(Pe)||[]}(e):e.match(t)||[]}var lu=ci(function(e,t){try{return It(e,i,t)}catch(n){return aa(n)?n:new He(n)}}),cu=fs(function(e,t){return Mt(t,function(t){t=qs(t),wr(e,t,Bo(e[t],e))}),e});function hu(e){return function(){return e}}var du=Ki(),fu=Ki(!0);function pu(e){return e}function gu(e){return Kr("function"==typeof e?e:Er(e,u))}var mu=ci(function(e,t){return function(n){return Wr(n,e,t)}}),_u=ci(function(e,t){return function(n){return Wr(e,n,t)}});function vu(e,t,n){var r=La(t),i=Vr(t,r);null!=n||ha(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Vr(t,La(t)));var s=!(ha(n)&&"chain"in n&&!n.chain),o=ua(e);return Mt(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__),i=n.__actions__=Bi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})}),e}function yu(){}var wu=es($t),Cu=es(Vt),bu=es(Wt);function Eu(e){return Ps(e)?Xt(qs(e)):function(e){return function(t){return Ur(t,e)}}(e)}var Du=ns(),xu=ns(!0);function Su(){return[]}function Au(){return!1}var ku,Tu=Xi(function(e,t){return e+t},0),Ou=ss("ceil"),Pu=Xi(function(e,t){return e/t},1),Ru=ss("floor"),Fu=Xi(function(e,t){return e*t},1),Iu=ss("round"),Nu=Xi(function(e,t){return e-t},0);return rr.after=function(e,t){if("function"!=typeof t)throw new Ke(o);return e=xa(e),function(){if(--e<1)return t.apply(this,arguments)}},rr.ary=Uo,rr.assign=Oa,rr.assignIn=Pa,rr.assignInWith=Ra,rr.assignWith=Fa,rr.at=Ia,rr.before=jo,rr.bind=Bo,rr.bindAll=cu,rr.bindKey=$o,rr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ta(e)?e:[e]},rr.chain=Eo,rr.chunk=function(e,t,n){t=(n?Os(e,t,n):t===i)?1:Nn(xa(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var o=0,a=0,u=r(kn(s/t));os?0:s+n),(r=r===i||r>s?s:xa(r))<0&&(r+=s),r=n>r?0:Sa(r);n>>0)?(e=Ta(e))&&("string"==typeof t||null!=t&&!ma(t))&&!(t=wi(t))&&fn(e)?Ri(wn(e),0,n):e.split(t,n):[]},rr.spread=function(e,t){if("function"!=typeof e)throw new Ke(o);return t=null==t?0:Nn(xa(t),0),ci(function(n){var r=n[t],i=Ri(n,0,t);return r&&Lt(i,r),It(e,this,i)})},rr.tail=function(e){var t=null==e?0:e.length;return t?pi(e,1,t):[]},rr.take=function(e,t,n){return e&&e.length?pi(e,0,(t=n||t===i?1:xa(t))<0?0:t):[]},rr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?pi(e,(t=r-(t=n||t===i?1:xa(t)))<0?0:t,r):[]},rr.takeRightWhile=function(e,t){return e&&e.length?Di(e,ys(t,3),!1,!0):[]},rr.takeWhile=function(e,t){return e&&e.length?Di(e,ys(t,3)):[]},rr.tap=function(e,t){return t(e),e},rr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ke(o);return ha(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Lo(e,t,{leading:r,maxWait:t,trailing:i})},rr.thru=Do,rr.toArray=Ea,rr.toPairs=Qa,rr.toPairsIn=Ka,rr.toPath=function(e){return ta(e)?$t(e,qs):ya(e)?[e]:Bi(Gs(Ta(e)))},rr.toPlainObject=ka,rr.transform=function(e,t,n){var r=ta(e),i=r||sa(e)||wa(e);if(t=ys(t,4),null==n){var s=e&&e.constructor;n=i?r?new s:[]:ha(e)&&ua(s)?ir(Et(e)):{}}return(i?Mt:Nr)(e,function(e,r,i){return t(n,e,r,i)}),n},rr.unary=function(e){return Uo(e,1)},rr.union=ho,rr.unionBy=fo,rr.unionWith=po,rr.uniq=function(e){return e&&e.length?Ci(e):[]},rr.uniqBy=function(e,t){return e&&e.length?Ci(e,ys(t,2)):[]},rr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Ci(e,i,t):[]},rr.unset=function(e,t){return null==e||bi(e,t)},rr.unzip=go,rr.unzipWith=mo,rr.update=function(e,t,n){return null==e?e:Ei(e,t,Ti(n))},rr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Ei(e,t,Ti(n),r)},rr.values=Ya,rr.valuesIn=function(e){return null==e?[]:on(e,za(e))},rr.without=_o,rr.words=uu,rr.wrap=function(e,t){return Zo(Ti(t),e)},rr.xor=vo,rr.xorBy=yo,rr.xorWith=wo,rr.zip=Co,rr.zipObject=function(e,t){return Ai(e||[],t||[],mr)},rr.zipObjectDeep=function(e,t){return Ai(e||[],t||[],hi)},rr.zipWith=bo,rr.entries=Qa,rr.entriesIn=Ka,rr.extend=Pa,rr.extendWith=Ra,vu(rr,rr),rr.add=Tu,rr.attempt=lu,rr.camelCase=Ja,rr.capitalize=Xa,rr.ceil=Ou,rr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Aa(n))==n?n:0),t!==i&&(t=(t=Aa(t))==t?t:0),br(Aa(e),t,n)},rr.clone=function(e){return Er(e,c)},rr.cloneDeep=function(e){return Er(e,u|c)},rr.cloneDeepWith=function(e,t){return Er(e,u|c,t="function"==typeof t?t:i)},rr.cloneWith=function(e,t){return Er(e,c,t="function"==typeof t?t:i)},rr.conformsTo=function(e,t){return null==t||Dr(e,t,La(t))},rr.deburr=eu,rr.defaultTo=function(e,t){return null==e||e!=e?t:e},rr.divide=Pu,rr.endsWith=function(e,t,n){e=Ta(e),t=wi(t);var r=e.length,s=n=n===i?r:br(xa(n),0,r);return(n-=t.length)>=0&&e.slice(n,s)==t},rr.eq=Yo,rr.escape=function(e){return(e=Ta(e))&&me.test(e)?e.replace(pe,hn):e},rr.escapeRegExp=function(e){return(e=Ta(e))&&De.test(e)?e.replace(Ee,"\\$&"):e},rr.every=function(e,t,n){var r=ta(e)?Vt:Tr;return n&&Os(e,t,n)&&(t=i),r(e,ys(t,3))},rr.find=Ao,rr.findIndex=Xs,rr.findKey=function(e,t){return qt(e,ys(t,3),Nr)},rr.findLast=ko,rr.findLastIndex=eo,rr.findLastKey=function(e,t){return qt(e,ys(t,3),Mr)},rr.floor=Ru,rr.forEach=To,rr.forEachRight=Oo,rr.forIn=function(e,t){return null==e?e:Fr(e,ys(t,3),za)},rr.forInRight=function(e,t){return null==e?e:Ir(e,ys(t,3),za)},rr.forOwn=function(e,t){return e&&Nr(e,ys(t,3))},rr.forOwnRight=function(e,t){return e&&Mr(e,ys(t,3))},rr.get=Va,rr.gt=Jo,rr.gte=Xo,rr.has=function(e,t){return null!=e&&Ss(e,t,Lr)},rr.hasIn=Ua,rr.head=no,rr.identity=pu,rr.includes=function(e,t,n,r){e=ra(e)?e:Ya(e),n=n&&!r?xa(n):0;var i=e.length;return n<0&&(n=Nn(i+n,0)),va(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Qt(e,t,n)>-1},rr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:xa(n);return i<0&&(i=Nn(r+i,0)),Qt(e,t,i)},rr.inRange=function(e,t,n){return t=Da(t),n===i?(n=t,t=0):n=Da(n),function(e,t,n){return e>=Mn(t,n)&&e=-S&&e<=S},rr.isSet=_a,rr.isString=va,rr.isSymbol=ya,rr.isTypedArray=wa,rr.isUndefined=function(e){return e===i},rr.isWeakMap=function(e){return da(e)&&xs(e)==J},rr.isWeakSet=function(e){return da(e)&&"[object WeakSet]"==Br(e)},rr.join=function(e,t){return null==e?"":Fn.call(e,t)},rr.kebabCase=tu,rr.last=oo,rr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var s=r;return n!==i&&(s=(s=xa(n))<0?Nn(r+s,0):Mn(s,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,s):Zt(e,Yt,s,!0)},rr.lowerCase=nu,rr.lowerFirst=ru,rr.lt=Ca,rr.lte=ba,rr.max=function(e){return e&&e.length?Or(e,pu,$r):i},rr.maxBy=function(e,t){return e&&e.length?Or(e,ys(t,2),$r):i},rr.mean=function(e){return Jt(e,pu)},rr.meanBy=function(e,t){return Jt(e,ys(t,2))},rr.min=function(e){return e&&e.length?Or(e,pu,Jr):i},rr.minBy=function(e,t){return e&&e.length?Or(e,ys(t,2),Jr):i},rr.stubArray=Su,rr.stubFalse=Au,rr.stubObject=function(){return{}},rr.stubString=function(){return""},rr.stubTrue=function(){return!0},rr.multiply=Fu,rr.nth=function(e,t){return e&&e.length?ri(e,xa(t)):i},rr.noConflict=function(){return bt._===this&&(bt._=ot),this},rr.noop=yu,rr.now=Vo,rr.pad=function(e,t,n){e=Ta(e);var r=(t=xa(t))?yn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ts(Tn(i),n)+e+ts(kn(i),n)},rr.padEnd=function(e,t,n){e=Ta(e);var r=(t=xa(t))?yn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var s=jn();return Mn(e+s*(t-e+vt("1e-"+((s+"").length-1))),t)}return ui(e,t)},rr.reduce=function(e,t,n){var r=ta(e)?zt:tn,i=arguments.length<3;return r(e,ys(t,4),n,i,Ar)},rr.reduceRight=function(e,t,n){var r=ta(e)?Ht:tn,i=arguments.length<3;return r(e,ys(t,4),n,i,kr)},rr.repeat=function(e,t,n){return t=(n?Os(e,t,n):t===i)?1:xa(t),li(Ta(e),t)},rr.replace=function(){var e=arguments,t=Ta(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rr.result=function(e,t,n){var r=-1,s=(t=Oi(t,e)).length;for(s||(s=1,e=i);++rS)return[];var n=T,r=Mn(e,T);t=ys(t),e-=T;for(var i=rn(r,t);++n=o)return e;var u=n-yn(r);if(u<1)return r;var l=a?Ri(a,0,u).join(""):e.slice(0,u);if(s===i)return l+r;if(a&&(u+=l.length-u),ma(s)){if(e.slice(u).search(s)){var c,h=l;for(s.global||(s=Ze(s.source,Ta(Ie.exec(s))+"g")),s.lastIndex=0;c=s.exec(h);)var d=c.index;l=l.slice(0,d===i?u:d)}}else if(e.indexOf(wi(s),u)!=u){var f=l.lastIndexOf(s);f>-1&&(l=l.slice(0,f))}return l+r},rr.unescape=function(e){return(e=Ta(e))&&ge.test(e)?e.replace(fe,Cn):e},rr.uniqueId=function(e){var t=++nt;return Ta(e)+t},rr.upperCase=ou,rr.upperFirst=au,rr.each=To,rr.eachRight=Oo,rr.first=no,vu(rr,(ku={},Nr(rr,function(e,t){tt.call(rr.prototype,t)||(ku[t]=e)}),ku),{chain:!1}),rr.VERSION="4.17.15",Mt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rr[e].placeholder=rr}),Mt(["drop","take"],function(e,t){ar.prototype[e]=function(n){n=n===i?1:Nn(xa(n),0);var r=this.__filtered__&&!t?new ar(this):this.clone();return r.__filtered__?r.__takeCount__=Mn(n,r.__takeCount__):r.__views__.push({size:Mn(n,T),type:e+(r.__dir__<0?"Right":"")}),r},ar.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Mt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;ar.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ys(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Mt(["head","last"],function(e,t){var n="take"+(t?"Right":"");ar.prototype[e]=function(){return this[n](1).value()[0]}}),Mt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ar.prototype[e]=function(){return this.__filtered__?new ar(this):this[n](1)}}),ar.prototype.compact=function(){return this.filter(pu)},ar.prototype.find=function(e){return this.filter(e).head()},ar.prototype.findLast=function(e){return this.reverse().find(e)},ar.prototype.invokeMap=ci(function(e,t){return"function"==typeof e?new ar(this):this.map(function(n){return Wr(n,e,t)})}),ar.prototype.reject=function(e){return this.filter(Go(ys(e)))},ar.prototype.slice=function(e,t){e=xa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ar(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=xa(t))<0?n.dropRight(-t):n.take(t-e)),n)},ar.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ar.prototype.toArray=function(){return this.take(T)},Nr(ar.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),s=rr[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);s&&(rr.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof ar,l=a[0],c=u||ta(t),h=function(e){var t=s.apply(rr,Lt([e],a));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var d=this.__chain__,f=!!this.__actions__.length,p=o&&!d,g=u&&!f;if(!o&&c){t=g?t:new ar(this);var m=e.apply(t,a);return m.__actions__.push({func:Do,args:[h],thisArg:i}),new or(m,d)}return p&&g?e.apply(this,a):(m=this.thru(h),p?r?m.value()[0]:m.value():m)})}),Mt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);rr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ta(i)?i:[],e)}return this[n](function(n){return t.apply(ta(n)?n:[],e)})}}),Nr(ar.prototype,function(e,t){var n=rr[t];if(n){var r=n.name+"";tt.call(Zn,r)||(Zn[r]=[]),Zn[r].push({name:t,func:n})}}),Zn[Yi(i,p).name]=[{name:"wrapper",func:i}],ar.prototype.clone=function(){var e=new ar(this.__wrapped__);return e.__actions__=Bi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Bi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Bi(this.__views__),e},ar.prototype.reverse=function(){if(this.__filtered__){var e=new ar(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ar.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ta(e),r=t<0,i=n?e.length:0,s=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},rr.prototype.plant=function(e){for(var t,n=this;n instanceof sr;){var r=Qs(n);r.__index__=0,r.__values__=i,t?s.__wrapped__=r:t=r;var s=r;n=n.__wrapped__}return s.__wrapped__=e,t},rr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ar){var t=e;return this.__actions__.length&&(t=new ar(this)),(t=t.reverse()).__actions__.push({func:Do,args:[co],thisArg:i}),new or(t,this.__chain__)}return this.thru(co)},rr.prototype.toJSON=rr.prototype.valueOf=rr.prototype.value=function(){return xi(this.__wrapped__,this.__actions__)},rr.prototype.first=rr.prototype.head,en&&(rr.prototype[en]=function(){return this}),rr}();bt._=bn,(r=(function(){return bn}).call(t,n,t,e))===i||(e.exports=r)}).call(this)}).call(this,n("YuTi")(e))},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){i=e},get useDeprecatedSynchronousErrorHandling(){return i}};function o(e){setTimeout(()=>{throw e})}const a={closed:!0,next(e){},error(e){if(s.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},u=Array.isArray||(e=>e&&"number"==typeof e.length);function l(e){return null!==e&&"object"==typeof e}function c(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}c.prototype=Object.create(Error.prototype);const h=c;let d=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:i,_unsubscribe:s,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let a=-1,c=i?i.length:0;for(;n;)n.remove(this),n=++ae.concat(t instanceof h?t.errors:t),[])}const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class g extends d{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof g?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[p](){return this}static create(e,t,n){const r=new g(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class m extends g{constructor(e,t,n,i){let s;super(),this._parentSubscriber=e;let o=this;r(t)?s=t:t&&(s=t.next,n=t.error,i=t.complete,t!==a&&(r((o=Object.create(t)).unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=i}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=s;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return s.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const _="function"==typeof Symbol&&Symbol.observable||"@@observable";function v(){}function y(...e){return w(e)}function w(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:v}let C=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,i=function(e,t,n){if(e){if(e instanceof g)return e;if(e[p])return e[p]()}return e||t||n?new g(e,t,n):new g(a)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(e){try{return this._subscribe(e)}catch(t){s.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof g?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=b(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(i){n(i),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[_](){return this}pipe(...e){return 0===e.length?this:w(e)(this)}toPromise(e){return new(e=b(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function b(e){if(e||(e=s.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}E.prototype=Object.create(Error.prototype);const D=E;class x extends d{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class S extends g{constructor(e){super(e),this.destination=e}}let A=(()=>{class e extends C{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new S(this)}lift(e){const t=new k(this,this);return t.operator=e,t}next(e){if(this.closed)throw new D;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;inew k(e,t),e})();class k extends A{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):d.EMPTY}}function T(e){return e&&"function"==typeof e.schedule}class O extends g{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const P=e=>t=>{for(let n=0,r=e.length;nt=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);function F(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const I=F(),N=e=>t=>{const n=e[I]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t},M=e=>t=>{const n=e[_]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},V=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function U(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const j=e=>{if(e instanceof C)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[_])return M(e);if(V(e))return P(e);if(U(e))return R(e);if(e&&"function"==typeof e[I])return N(e);{const t=l(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function B(e,t,n,r,i=new O(e,n,r)){if(!i.closed)return j(t)(i)}class $ extends g{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function L(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new z(e,t))}}class z{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new H(e,this.project,this.thisArg))}}class H extends g{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function W(e,t){return new C(t?n=>{const r=new d;let i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:P(e))}function G(e,t){if(!t)return e instanceof C?e:new C(j(e));if(null!=e){if(function(e){return e&&"function"==typeof e[_]}(e))return function(e,t){return new C(t?n=>{const r=new d;return r.add(t.schedule(()=>{const i=e[_]();r.add(i.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r}:M(e))}(e,t);if(U(e))return function(e,t){return new C(t?n=>{const r=new d;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r}:R(e))}(e,t);if(V(e))return W(e,t);if(function(e){return e&&"function"==typeof e[I]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new C(t?n=>{const r=new d;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[I](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const s=i.next();e=s.value,t=s.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r}:N(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function q(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(q((n,r)=>G(e(n,r)).pipe(L((e,i)=>t(n,e,r,i))),n)):("number"==typeof t&&(n=t),t=>t.lift(new Z(e,n)))}class Z{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Q(e,this.project,this.concurrent))}}class Q extends ${constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function K(e){return e}function Y(e=Number.POSITIVE_INFINITY){return q(K,e)}function J(){return function(e){return e.lift(new X(e))}}class X{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new ee(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class ee extends g{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const te=class extends C{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d).add(this.source.subscribe(new re(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}refCount(){return J()(this)}}.prototype,ne={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:te._subscribe},_isComplete:{value:te._isComplete,writable:!0},getSubject:{value:te.getSubject},connect:{value:te.connect},refCount:{value:te.refCount}};class re extends S{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function ie(){return new A}const se="__parameters__";function oe(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function i(...e){if(this instanceof i)return r.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,r){const i=e.hasOwnProperty(se)?e[se]:Object.defineProperty(e,se,{value:[]})[se];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}const ae=oe("Inject",e=>({token:e})),ue=oe("Optional"),le=oe("Self"),ce=oe("SkipSelf");var he=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function de(e){for(let t in e)if(e[t]===de)return t;throw Error("Could not find renamed property on target object.")}function fe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function pe(e){const t=e[ge];return t&&t.token===e?t:null}const ge=de({ngInjectableDef:de});function me(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(me).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const _e=de({__forward_ref__:de});function ve(e){return e.__forward_ref__=ve,e.toString=function(){return me(this())},e}function ye(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(_e)&&t.__forward_ref__===ve?t():e}const we="undefined"!=typeof globalThis&&globalThis,Ce="undefined"!=typeof window&&window,be="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ee="undefined"!=typeof global&&global,De=we||Ee||Ce||be;class xe{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=fe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Se=new xe("INJECTOR",-1),Ae=new Object,ke="ngTempTokenPath",Te="ngTokenPath",Oe=/\n/gm,Pe="\u0275",Re="__source",Fe=de({provide:String,useValue:de});let Ie,Ne=void 0;function Me(e){const t=Ne;return Ne=e,t}function Ve(e,t=he.Default){return(Ie||function(e,t=he.Default){if(void 0===Ne)throw new Error("inject() must be called from an injection context");return null===Ne?function(e,t,n){const r=pe(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&he.Optional)return null;throw new Error(`Injector: NOT_FOUND [${me(e)}]`)}(e,0,t):Ne.get(e,t&he.Optional?null:void 0,t)})(e,t)}class Ue{get(e,t=Ae){if(t===Ae){const t=new Error(`NullInjectorError: No provider for ${me(e)}!`);throw t.name="NullInjectorError",t}return t}}function je(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Pe?e.substr(2):e;let i=me(t);if(t instanceof Array)i=t.map(me).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):me(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Oe,"\n ")}`}class Be{}class $e{}function Le(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ze(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const He=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),We=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(De))(),Ge="ngDebugContext",qe="ngOriginalError",Ze="ngErrorLogger";function Qe(e){return e[Ge]}function Ke(e){return e[qe]}function Ye(e,...t){e.error(...t)}class Je{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[Ze]||Ye}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Qe(e)?Qe(e):this._findContext(Ke(e)):null}_findOriginalError(e){let t=Ke(e);for(;t&&Ke(t);)t=Ke(t);return t}}let Xe=!0,et=!1;function tt(){return et=!0,Xe}class nt{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e=""+e+"";try{const n=(new window.DOMParser).parseFromString(e,"text/html").body;return n.removeChild(n.firstChild),n}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0st(e.trim())).join(", ")),this.buf.push(" ",t,'="',wt(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();dt.hasOwnProperty(t)&&!ut.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(wt(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const vt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yt=/([^\#-~ |!])/g;function wt(e){return e.replace(/&/g,"&").replace(vt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(yt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Ct;function bt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const Et=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class Dt{}const xt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),St=/^url\(([^)]+)\)$/,At=/([A-Z])/g;function kt(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}let Tt=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ot(),e})();const Ot=(...e)=>{},Pt=new xe("The presence of this token marks an injector as being the root injector."),Rt=function(e,t,n){return new jt(e,t,n)};let Ft=(()=>{class e{static create(e,t){return Array.isArray(e)?Rt(e,t,""):Rt(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=Ae,e.NULL=new Ue,e.ngInjectableDef=fe({token:e,providedIn:"any",factory:()=>Ve(Se)}),e.__NG_ELEMENT_ID__=-1,e})();const It=function(e){return e},Nt=[],Mt=It,Vt=function(){return Array.prototype.slice.call(arguments)},Ut="\u0275";class jt{constructor(e,t=Ft.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(Ft,{token:Ft,fn:It,deps:Nt,value:this,useNew:!1}),r.set(Se,{token:Se,fn:It,deps:Nt,value:this,useNew:!1}),function e(t,n){if(n)if((n=ye(n))instanceof Array)for(let r=0;re.push(me(n))),`StaticInjector[${e.join(", ")}]`}}function Bt(e){return $t("Cannot mix multi providers and regular providers",e)}function $t(e,t){return new Error(je(e,t,"StaticInjectorError"))}const Lt=new xe("AnalyzeForEntryComponents");let zt=null;function Ht(){if(!zt){const e=De.Symbol;if(e&&e.iterator)zt=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t{class e{}return e.NULL=new rn,e})();class on{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>cn(e),e})();const cn=un;class hn{}class dn{}const fn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let pn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>gn(),e})();const gn=un;class mn{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const _n=new mn("8.2.2");class vn{constructor(){}supports(e){return Zt(e)}create(e){return new wn(e)}}const yn=(e,t)=>t;class wn{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||yn}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){const s=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==i&&Wt(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,e,r,t)),Wt(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,r,t),s=!0),i=i._next,t++}),this.length=t;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Wt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Wt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new Cn(t,n),i,r),e}_verifyReinsertion(e,t,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new En),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new En),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Cn{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class bn{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Wt(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class En{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new bn,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Dn(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new An(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Wt(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class An{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let kn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ce,new ue]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=fe({token:e,providedIn:"root",factory:()=>new e([new vn])}),e})(),Tn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new ce,new ue]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=fe({token:e,providedIn:"root",factory:()=>new e([new xn])}),e})();const On=[new xn],Pn=new kn([new vn]),Rn=new Tn(On);let Fn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>In(e,ln),e})();const In=un;let Nn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Mn(e,ln),e})();const Mn=un;function Vn(e,t,n,r){let i=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return Un(n,t),n}(i,e)}function Un(e,t){e[Ge]=t,e[Ze]=t.logError.bind(t)}function jn(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Bn(e,t,n){const r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function $n(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Ln(e,t){return e.nodes[t]}function zn(e,t){return e.nodes[t]}function Hn(e,t){return e.nodes[t]}function Wn(e,t){return e.nodes[t]}function Gn(e,t){return e.nodes[t]}const qn={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Zn=()=>{},Qn=new Map;function Kn(e){let t=Qn.get(e);return t||(t=me(e)+"_"+Qn.size,Qn.set(e,t)),t}const Yn="$$undefined",Jn="$$empty";function Xn(e){return{id:Yn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let er=0;function tr(e,t,n,r){return!(!(2&e.state)&&Wt(e.oldValues[t.bindingIndex+n],r))}function nr(e,t,n,r){return!!tr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function rr(e,t,n,r){const i=e.oldValues[t.bindingIndex+n];if(1&e.state||!Gt(i,r)){const s=t.bindings[n].name;throw Vn(qn.createDebugContext(e,t.nodeIndex),`${s}: ${i}`,`${s}: ${r}`,0!=(1&e.state))}}function ir(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function sr(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function or(e,t,n,r){try{return ir(33554432&e.def.nodes[t].flags?zn(e,t).componentView:e),qn.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function ar(e){return e.parent?zn(e.parent,e.parentNodeDef.nodeIndex):null}function ur(e){return e.parent?e.parentNodeDef.parent:null}function lr(e,t){switch(201347067&t.flags){case 1:return zn(e,t.nodeIndex).renderElement;case 2:return Ln(e,t.nodeIndex).renderText}}function cr(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function hr(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function dr(e){const t={};let n=0;const r={};return e&&e.forEach(([e,i])=>{"number"==typeof e?(t[e]=i,n|=function(e){return 1<{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,Re,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Kn(n)}})}function pr(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===He.Native?zn(e,n.renderParent.nodeIndex).renderElement:void 0:t}const gr=new WeakMap;function mr(e){let t=gr.get(e);return t||((t=e(()=>Zn)).factory=e,gr.set(e,t)),t}function _r(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(lr(e,e.def.lastRenderRootNode))),vr(e,t,0,e.def.nodes.length-1,n,r,i)}function vr(e,t,n,r,i,s,o){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&wr(e,n,t,i,s,o),a+=n.childCount}}function yr(e,t,n,r,i,s){let o=e;for(;o&&!cr(o);)o=o.parent;const a=o.parent,u=ur(o),l=u.nodeIndex+u.childCount;for(let c=u.nodeIndex+1;c<=l;c++){const e=a.def.nodes[c];e.ngContentIndex===t&&wr(a,e,n,r,i,s),c+=e.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t-1}(i)||"root"===s.providedIn&&i._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:u.factory,deps:[],index:n,token:t.token},e._providers[n]=Ar,e._providers[n]=Fr(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Me(r)}var i,s}function Fr(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(Rr(e,n[0]));case 2:return new t(Rr(e,n[0]),Rr(e,n[1]));case 3:return new t(Rr(e,n[0]),Rr(e,n[1]),Rr(e,n[2]));default:const i=new Array(r);for(let t=0;t=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,ze(n,t),qn.dirtyParentQueries(r),Mr(r),r}function Nr(e,t,n){const r=t?lr(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),s=n.renderer.nextSibling(r);_r(n,2,i,s,void 0)}function Mr(e){_r(e,3,null,null,void 0)}const Vr=new Object;function Ur(e,t,n,r,i,s){return new jr(e,t,n,r,i,s)}class jr extends en{constructor(e,t,n,r,i,s){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=i,this.ngContentSelectors=s,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const i=mr(this.viewDefFactory),s=i.nodes[0].element.componentProvider.nodeIndex,o=qn.createRootView(e,t||[],n,i,r,Vr),a=Hn(o,s).instance;return n&&o.renderer.setAttribute(zn(o,0).renderElement,"ng-version",_n.full),new Br(o,new Hr(o),a)}}class Br extends Xt{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new ln(zn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Zr(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function $r(e,t,n){return new Lr(e,t,n)}class Lr{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new ln(this._data.renderElement)}get injector(){return new Zr(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=ur(e),e=e.parent;return e?new Zr(e,t):new Zr(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Ir(this._data,e);qn.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Hr(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const s=n||this.parentInjector;i||e instanceof an||(i=s.get(Be));const o=e.create(s,r,void 0,i);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let i=t.viewContainer._embeddedViews;null==n&&(n=i.length),r.viewContainerParent=e,Le(i,n,r),function(e,t){const n=ar(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(4&n.flags)return;t.parent.def.nodeFlags|=4,n.flags|=4;let r=n.parent;for(;r;)r.childFlags|=4,r=r.parent}(0,t.parentNodeDef)}(t,r),qn.dirtyParentQueries(r),Nr(t,n>0?i[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,r){const i=e.viewContainer._embeddedViews,s=i[n];ze(i,n),null==r&&(r=i.length),Le(i,r,s),qn.dirtyParentQueries(s),Mr(s),Nr(e,r>0?i[r-1]:null,s)}(this._data,0,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Ir(this._data,e);t&&qn.destroyView(t)}detach(e){const t=Ir(this._data,e);return t?new Hr(t):null}}function zr(e){return new Hr(e)}class Hr{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return _r(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){ir(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{qn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){qn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),qn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Mr(this._view),qn.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function Wr(e,t){return new Gr(e,t)}class Gr extends Fn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Hr(qn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new ln(zn(this._parentView,this._def.nodeIndex).renderElement)}}function qr(e,t){return new Zr(e,t)}class Zr{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Ft.THROW_IF_NOT_FOUND){return qn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Kn(e)},t)}}function Qr(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=zn(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return Ln(e,n.nodeIndex).renderText;if(20240&n.flags)return Hn(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Kr(e){return new Yr(e.renderer)}class Yr{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=Er(t),i=this.delegate.createElement(r,n);return e&&this.delegate.appendChild(e,i),i}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;ne())}onDestroy(e){this._destroyListeners.push(e)}}const ei=Kn(hn),ti=Kn(pn),ni=Kn(ln),ri=Kn(Nn),ii=Kn(Fn),si=Kn(Tt),oi=Kn(Ft),ai=Kn(Se);function ui(e,t,n,r,i,s,o,a){const u=[];if(o)for(let c in o){const[e,t]=o[c];u[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const l=[];if(a)for(let c in a)l.push({type:1,propName:c,target:null,eventName:a[c]});return ci(e,t|=16384,n,r,i,i,s,u,l)}function li(e,t,n,r,i){return ci(-1,e,t,0,n,r,i)}function ci(e,t,n,r,i,s,o,a,u){const{matchedQueries:l,references:c,matchedQueryIds:h}=dr(n);u||(u=[]),a||(a=[]),s=ye(s);const d=fr(o,me(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l,matchedQueryIds:h,references:c,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Dr(a),outputs:u,element:null,provider:{token:i,value:s,deps:d},text:null,query:null,ngContent:null}}function hi(e,t){return gi(e,t)}function di(e,t){let n=e;for(;n.parent&&!cr(n);)n=n.parent;return mi(n.parent,ur(n),!0,t.provider.value,t.provider.deps)}function fi(e,t){const n=mi(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;ror(e,t,n,r)}function gi(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return mi(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){const s=i.length;switch(s){case 0:return r();case 1:return r(vi(e,t,n,i[0]));case 2:return r(vi(e,t,n,i[0]),vi(e,t,n,i[1]));case 3:return r(vi(e,t,n,i[0]),vi(e,t,n,i[1]),vi(e,t,n,i[2]));default:const o=Array(s);for(let r=0;rWe}),xi={},Si=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Ai=void 0;var ki=["en",[["a","p"],["AM","PM"],Ai],[["AM","PM"],Ai,Ai],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ai,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ai,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ai,"{1} 'at' {0}",Ai],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];const Ti="en-US";let Oi=Ti;function Pi(e){var t;t="Expected localeId to be defined",null==e&&function(e){throw new Error(`ASSERTION ERROR: ${e}`)}(t),"string"==typeof e&&(Oi=e.toLowerCase().replace(/_/g,"-"))}class Ri extends A{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,i=e=>null,s=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(i=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,i,s);return e instanceof d&&e.add(o),o}}function Fi(){return this._results[Ht()]()}class Ii{constructor(){this.dirty=!0,this._results=[],this.changes=new Ri,this.length=0;const e=Ht(),t=Ii.prototype;t[e]||(t[e]=Fi)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}const Vi=new xe("AppId");function Ui(){return`${ji()}${ji()}${ji()}`}function ji(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Bi=new xe("Platform Initializer"),$i=new xe("Platform ID"),Li=new xe("appBootstrapListener");class zi{log(e){console.log(e)}warn(e){console.warn(e)}}const Hi=new xe("LocaleId"),Wi=!1;function Gi(){throw new Error("Runtime compiler is not loaded")}const qi=Gi,Zi=Gi,Qi=Gi,Ki=Gi;class Yi{constructor(){this.compileModuleSync=qi,this.compileModuleAsync=Zi,this.compileModuleAndAllComponentsSync=Qi,this.compileModuleAndAllComponentsAsync=Ki}clearCache(){}clearCacheFor(e){}getModuleId(e){}}class Ji{}let Xi,es;function ts(){const e=De.wtf;return!(!e||!(Xi=e.trace)||(es=Xi.events,0))}const ns=ts(),rs=ns?function(e,t=null){return es.createScope(e,t)}:(e,t)=>(function(e,t){return null}),is=ns?function(e,t){return Xi.leaveScope(e,t),t}:(e,t)=>t,ss=(()=>Promise.resolve(0))();function os(e){"undefined"==typeof Zone?ss.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class as{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ri(!1),this.onMicrotaskEmpty=new Ri(!1),this.onStable=new Ri(!1),this.onError=new Ri(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,i,s,o)=>{try{return hs(t),e.invokeTask(r,i,s,o)}finally{ds(t)}},onInvoke:(e,n,r,i,s,o,a)=>{try{return hs(t),e.invoke(r,i,s,o,a)}finally{ds(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,cs(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!as.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(as.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+r,e,ls,us,us);try{return i.runTask(s,t,n)}finally{i.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function us(){}const ls={};function cs(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function hs(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ds(e){e._nesting--,cs(e)}class fs{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ri,this.onMicrotaskEmpty=new Ri,this.onStable=new Ri,this.onError=new Ri}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}class ps{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{as.assertNotInAngularZone(),os(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())os(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}let gs=(()=>{class e{constructor(){this._applications=new Map,vs.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return vs.findTestabilityInTree(this,e,t)}}return e.ctorParameters=()=>[],e})();class ms{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let _s,vs=new ms,ys=function(e,t,n){return e.get(Ji).createCompiler([t]).compileModuleAsync(n)},ws=function(e){return e instanceof an};const Cs=new xe("AllowMultipleToken");class bs{constructor(e,t){this.name=e,this.token=t}}function Es(e,t,n=[]){const r=`Platform: ${t}`,i=new xe(r);return(t=[])=>{let s=Ds();if(!s||s.injector.get(Cs,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(_s&&!_s.destroyed&&!_s.injector.get(Cs,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");_s=e.get(xs);const t=e.get(Bi,null);t&&t.forEach(e=>e())}(Ft.create({providers:e,name:r}))}return function(e){const t=Ds();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function Ds(){return _s&&!_s.destroyed?_s:null}class xs{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(i=t?t.ngZone:void 0)?new fs:("zone.js"===i?void 0:i)||new as({enableLongStackTrace:tt()}),r=[{provide:as,useValue:n}];var i;return n.run(()=>{const t=Ft.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(t),s=i.injector.get(Je,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return Wi&&Pi(i.injector.get(Hi,Ti)||Ti),i.onDestroy(()=>ks(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const i=n();return Kt(i)?i.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):i}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,n,()=>{const e=i.injector.get(Mi);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const n=Ss({},t);return ys(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(As);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${me(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}function Ss(e,t){return Array.isArray(t)?t.reduce(Ss,e):Object.assign({},e,t)}let As=(()=>{class e{constructor(e,t,n,r,i,s){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=tt(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new C(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new C(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{as.assertNotInAngularZone(),os(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{as.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return T(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof C?e[0]:Y(t)(W(e,n))}(o,a.pipe(e=>J()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,ne);return r.source=t,r.subjectFactory=n,r}}(ie)(e))))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof en?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=ws(n)?null:this._injector.get(Be),i=n.create(Ft.NULL,[],t||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const s=i.injector.get(ps,null);return s&&i.injector.get(gs).registerApplication(i.location.nativeElement,s),this._loadComponent(i),tt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,is(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;ks(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Li,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),ks(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=rs("ApplicationRef#tick()"),e})();function ks(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ts{}const Os="#",Ps="NgFactory";class Rs{}const Fs={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class Is{constructor(e,t){this._compiler=e,this._config=t||Fs}load(e){return!Wi&&this._compiler instanceof Yi?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split(Os);return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>Ns(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split(Os),i=Ps;return void 0===r&&(r="default",i=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+i]).then(e=>Ns(e,t,r))}}function Ns(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Ms{constructor(e,t){this.name=e,this.callback=t}}class Vs{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Us&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Us extends Vs{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof Us&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof Us&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof Us&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Us)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const js=new Map,Bs=function(e){return js.get(e)||null};function $s(e){js.set(e.nativeNode,e)}const Ls=Es(null,"core",[{provide:$i,useValue:"unknown"},{provide:xs,deps:[Ft]},{provide:gs,deps:[]},{provide:zi,deps:[]}]);function zs(){return Pn}function Hs(){return Rn}function Ws(e){return e?(Wi&&Pi(e),e):Ti}function Gs(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}class qs{constructor(e){}}function Zs(e,t,n,r,i,s){e|=1;const{matchedQueries:o,references:a,matchedQueryIds:u}=dr(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:u,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?mr(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Zn},provider:null,text:null,query:null,ngContent:null}}function Qs(e,t,n,r,i,s,o=[],a,u,l,c,h){l||(l=Zn);const{matchedQueries:d,references:f,matchedQueryIds:p}=dr(n);let g=null,m=null;s&&([g,m]=Er(s)),a=a||[];const _=new Array(a.length);for(let w=0;w{const[n,r]=Er(e);return[n,r,t]});return h=function(e){if(e&&e.id===Yn){const t=null!=e.encapsulation&&e.encapsulation!==He.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${er++}`:Jn}return e&&e.id===Jn&&(e=null),e||null}(h),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:p,references:f,ngContentIndex:r,childCount:i,bindings:_,bindingFlags:Dr(_),outputs:v,element:{ns:g,name:m,attrs:y,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:l||Zn},provider:null,text:null,query:null,ngContent:null}}function Ks(e,t,n){const r=n.element,i=e.root.selectorOrNode,s=e.renderer;let o;if(e.parent||!i){o=r.name?s.createElement(r.name,r.ns):s.createComment("");const i=pr(e,t,n);i&&s.appendChild(i,o)}else o=s.selectRootElement(i,!!r.componentRendererType&&r.componentRendererType.encapsulation===He.ShadowDom);if(r.attrs)for(let a=0;aor(e,t,n,r)}function Xs(e,t,n,r){if(!nr(e,t,n,r))return!1;const i=t.bindings[n],s=zn(e,t.nodeIndex),o=s.renderElement,a=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,s){const o=t.securityContext;let a=o?e.root.sanitizer.sanitize(o,s):s;a=null!=a?a.toString():null;const u=e.renderer;null!=s?u.setAttribute(n,i,a,r):u.removeAttribute(n,i,r)}(e,i,o,i.ns,a,r);break;case 2:!function(e,t,n,r){const i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,o,a,r);break;case 4:!function(e,t,n,r,i){let s=e.root.sanitizer.sanitize(Et.STYLE,i);if(null!=s){s=s.toString();const e=t.suffix;null!=e&&(s+=e)}else s=null;const o=e.renderer;null!=s?o.setStyle(n,r,s):o.removeStyle(n,r)}(e,i,o,a,r);break;case 8:!function(e,t,n,r,i){const s=t.securityContext;let o=s?e.root.sanitizer.sanitize(s,i):i;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&i.flags?s.componentView:e,i,o,a,r)}return!0}function eo(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&hr(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let i=0;i<=r;i++){const r=e.def.nodes[i];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Gn(e,i).setDirty(),!(1&r.flags&&i+r.childCount0)l=e,ho(e)||(c=e);else for(;l&&p===l.nodeIndex+l.childCount;){const e=l.parent;e&&(e.childFlags|=l.childFlags,e.childMatchedQueries|=l.childMatchedQueries),c=(l=e)&&ho(l)?l.renderParent:l}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||Zn,updateRenderer:r||Zn,handleEvent:(e,n,r,i)=>t[n].element.handleEvent(e,r,i),bindingCount:i,outputCount:s,lastRenderRootNode:f}}function ho(e){return 0!=(1&e.flags)&&null===e.element.name}function fo(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function po(e,t,n,r){const i=_o(e.root,e.renderer,e,t,n);return vo(i,e.component,r),yo(i),i}function go(e,t,n){const r=_o(e,e.renderer,null,null,t);return vo(r,n,n),yo(r),r}function mo(e,t,n,r){const i=t.element.componentRendererType;let s;return s=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,_o(e.root,s,e,t.element.componentProvider,n)}function _o(e,t,n,r,i){const s=new Array(i.nodes.length),o=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:o,initIndex:-1}}function vo(e,t,n){e.component=t,e.context=n}function yo(e){let t;cr(e)&&(t=zn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let i=0;i0&&Xs(e,t,0,n)&&(f=!0),d>1&&Xs(e,t,1,r)&&(f=!0),d>2&&Xs(e,t,2,i)&&(f=!0),d>3&&Xs(e,t,3,s)&&(f=!0),d>4&&Xs(e,t,4,o)&&(f=!0),d>5&&Xs(e,t,5,a)&&(f=!0),d>6&&Xs(e,t,6,u)&&(f=!0),d>7&&Xs(e,t,7,l)&&(f=!0),d>8&&Xs(e,t,8,c)&&(f=!0),d>9&&Xs(e,t,9,h)&&(f=!0),f}(e,t,n,r,i,s,o,a,u,l,c,h);case 2:return function(e,t,n,r,i,s,o,a,u,l,c,h){let d=!1;const f=t.bindings,p=f.length;if(p>0&&nr(e,t,0,n)&&(d=!0),p>1&&nr(e,t,1,r)&&(d=!0),p>2&&nr(e,t,2,i)&&(d=!0),p>3&&nr(e,t,3,s)&&(d=!0),p>4&&nr(e,t,4,o)&&(d=!0),p>5&&nr(e,t,5,a)&&(d=!0),p>6&&nr(e,t,6,u)&&(d=!0),p>7&&nr(e,t,7,l)&&(d=!0),p>8&&nr(e,t,8,c)&&(d=!0),p>9&&nr(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;p>0&&(d+=lo(n,f[0])),p>1&&(d+=lo(r,f[1])),p>2&&(d+=lo(i,f[2])),p>3&&(d+=lo(s,f[3])),p>4&&(d+=lo(o,f[4])),p>5&&(d+=lo(a,f[5])),p>6&&(d+=lo(u,f[6])),p>7&&(d+=lo(l,f[7])),p>8&&(d+=lo(c,f[8])),p>9&&(d+=lo(h,f[9]));const g=Ln(e,t.nodeIndex).renderText;e.renderer.setValue(g,d)}return d}(e,t,n,r,i,s,o,a,u,l,c,h);case 16384:return function(e,t,n,r,i,s,o,a,u,l,c,h){const d=Hn(e,t.nodeIndex),f=d.instance;let p=!1,g=void 0;const m=t.bindings.length;return m>0&&tr(e,t,0,n)&&(p=!0,g=wi(e,d,t,0,n,g)),m>1&&tr(e,t,1,r)&&(p=!0,g=wi(e,d,t,1,r,g)),m>2&&tr(e,t,2,i)&&(p=!0,g=wi(e,d,t,2,i,g)),m>3&&tr(e,t,3,s)&&(p=!0,g=wi(e,d,t,3,s,g)),m>4&&tr(e,t,4,o)&&(p=!0,g=wi(e,d,t,4,o,g)),m>5&&tr(e,t,5,a)&&(p=!0,g=wi(e,d,t,5,a,g)),m>6&&tr(e,t,6,u)&&(p=!0,g=wi(e,d,t,6,u,g)),m>7&&tr(e,t,7,l)&&(p=!0,g=wi(e,d,t,7,l,g)),m>8&&tr(e,t,8,c)&&(p=!0,g=wi(e,d,t,8,c,g)),m>9&&tr(e,t,9,h)&&(p=!0,g=wi(e,d,t,9,h,g)),g&&f.ngOnChanges(g),65536&t.flags&&$n(e,256,t.nodeIndex)&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),p}(e,t,n,r,i,s,o,a,u,l,c,h);case 32:case 64:case 128:return function(e,t,n,r,i,s,o,a,u,l,c,h){const d=t.bindings;let f=!1;const p=d.length;if(p>0&&nr(e,t,0,n)&&(f=!0),p>1&&nr(e,t,1,r)&&(f=!0),p>2&&nr(e,t,2,i)&&(f=!0),p>3&&nr(e,t,3,s)&&(f=!0),p>4&&nr(e,t,4,o)&&(f=!0),p>5&&nr(e,t,5,a)&&(f=!0),p>6&&nr(e,t,6,u)&&(f=!0),p>7&&nr(e,t,7,l)&&(f=!0),p>8&&nr(e,t,8,c)&&(f=!0),p>9&&nr(e,t,9,h)&&(f=!0),f){const f=Wn(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=new Array(d.length),p>0&&(g[0]=n),p>1&&(g[1]=r),p>2&&(g[2]=i),p>3&&(g[3]=s),p>4&&(g[4]=o),p>5&&(g[5]=a),p>6&&(g[6]=u),p>7&&(g[7]=l),p>8&&(g[8]=c),p>9&&(g[9]=h);break;case 64:g={},p>0&&(g[d[0].name]=n),p>1&&(g[d[1].name]=r),p>2&&(g[d[2].name]=i),p>3&&(g[d[3].name]=s),p>4&&(g[d[4].name]=o),p>5&&(g[d[5].name]=a),p>6&&(g[d[6].name]=u),p>7&&(g[d[7].name]=l),p>8&&(g[d[8].name]=c),p>9&&(g[d[9].name]=h);break;case 128:const e=n;switch(p){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,i);break;case 4:g=e.transform(r,i,s);break;case 5:g=e.transform(r,i,s,o);break;case 6:g=e.transform(r,i,s,o,a);break;case 7:g=e.transform(r,i,s,o,a,u);break;case 8:g=e.transform(r,i,s,o,a,u,l);break;case 9:g=e.transform(r,i,s,o,a,u,l,c);break;case 10:g=e.transform(r,i,s,o,a,u,l,c,h)}}f.value=g}return f}(e,t,n,r,i,s,o,a,u,l,c,h);default:throw"unreachable"}}(e,t,r,i,s,o,a,u,l,c,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let i=0;i0&&rr(e,t,0,n),d>1&&rr(e,t,1,r),d>2&&rr(e,t,2,i),d>3&&rr(e,t,3,s),d>4&&rr(e,t,4,o),d>5&&rr(e,t,5,a),d>6&&rr(e,t,6,u),d>7&&rr(e,t,7,l),d>8&&rr(e,t,8,c),d>9&&rr(e,t,9,h)}(e,t,r,i,s,o,a,u,l,c,h,d):function(e,t,n){for(let r=0;r{const r=Bo.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{$o.forEach((r,i)=>{pe(i).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t0){let t=new Set(e.modules);$o.forEach((r,i)=>{if(t.has(pe(i).providedIn)){let t={token:i,flags:r.flags|(n?4096:0),deps:fr(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Kn(i)]=t}})}}(e=e.factory(()=>Zn)),e):e}(r))}const Bo=new Map,$o=new Map,Lo=new Map;function zo(e){let t;Bo.set(e.token,e),"function"==typeof e.token&&(t=pe(e.token))&&"function"==typeof t.providedIn&&$o.set(e.token,e)}function Ho(e,t){const n=mr(t.viewDefFactory),r=mr(n.nodes[0].element.componentView);Lo.set(e,r)}function Wo(){Bo.clear(),$o.clear(),Lo.clear()}function Go(e){if(0===Bo.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;rZn);for(let r=0;r"-"+e[1].toLowerCase())}`)]=kt(a))}const r=t.parent,a=zn(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(a,t,r):e.renderer.removeAttribute(a,t)}else e.renderer.setValue(a,`bindings=${JSON.stringify(n,null,2)}`)}}var i,s}function aa(e,t,n,r){Do(e,t,n,...r)}function ua(e,t){for(let n=t;n++s===i?e.error.bind(e,...t):Zn),snew ca(e,t),handleEvent:ra,updateDirectives:ia,updateRenderer:sa}:{setCurrentNode:()=>{},createRootView:Io,createEmbeddedView:po,createComponentView:mo,createNgModuleRef:Jr,overrideProvider:Zn,overrideComponentView:Zn,clearOverrides:Zn,checkAndUpdateView:Co,checkNoChangesView:wo,destroyView:So,createDebugContext:(e,t)=>new ca(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?qo:Zo,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?qo:Zo,e)};qn.setCurrentNode=e.setCurrentNode,qn.createRootView=e.createRootView,qn.createEmbeddedView=e.createEmbeddedView,qn.createComponentView=e.createComponentView,qn.createNgModuleRef=e.createNgModuleRef,qn.overrideProvider=e.overrideProvider,qn.overrideComponentView=e.overrideComponentView,qn.clearOverrides=e.clearOverrides,qn.checkAndUpdateView=e.checkAndUpdateView,qn.checkNoChangesView=e.checkNoChangesView,qn.destroyView=e.destroyView,qn.resolveDep=vi,qn.createDebugContext=e.createDebugContext,qn.handleEvent=e.handleEvent,qn.updateDirectives=e.updateDirectives,qn.updateRenderer=e.updateRenderer,qn.dirtyParentQueries=eo}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(mr(this._ngModuleDefFactory));return qn.createNgModuleRef(this.moduleType,e||Ft.NULL,this._bootstrapComponents,t)}}class va{}class ya{constructor(){this.title="TFTPaths"}}class wa{}const Ca=new xe("Location Initialized");class ba{}const Ea=new xe("appBaseHref");class Da{constructor(e,t){this._subject=new Ri,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=Da.stripTrailingSlash(xa(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+Da.normalizeQueryParams(t))}normalize(e){return Da.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,xa(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da.normalizeQueryParams(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Da.normalizeQueryParams(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static normalizeQueryParams(e){return e&&"?"!==e[0]?"?"+e:e}static joinWithSlash(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}static stripTrailingSlash(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}function xa(e){return e.replace(/\/index.html$/,"")}class Sa extends ba{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=Da.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let i=this.prepareExternalUrl(n+Da.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){let i=this.prepareExternalUrl(n+Da.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class Aa extends ba{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Da.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+Da.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const i=this.prepareExternalUrl(n+Da.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){const i=this.prepareExternalUrl(n+Da.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}const ka=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),Ta=function(e){return function(e){const t=e.toLowerCase().replace(/_/g,"-");let n=xi[t];if(n)return n;const r=t.split("-")[0];if(n=xi[r])return n;if("en"===r)return ki;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Si.PluralCase]},Oa=new xe("UseV4Plurals");class Pa{}class Ra extends Pa{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):Ta(t||this.locale)(e)){case ka.Zero:return"zero";case ka.One:return"one";case ka.Two:return"two";case ka.Few:return"few";case ka.Many:return"many";default:return"other"}}}class Fa{}class Ia{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}getValue(){return null}setClass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}setNgClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Zt(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}applyChanges(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${me(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}let Na=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})();class Ma extends Na{constructor(e){super(e)}set klass(e){this._delegate.setClass(e)}set ngClass(e){this._delegate.setNgClass(e)}ngDoCheck(){this._delegate.applyChanges()}}class Va{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}class Ua{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){tt()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Va(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new ja(e,n);t.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const s=new ja(e,i);t.push(s)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}class ja{constructor(e,t){this.record=e,this.view=t}}class Ba{constructor(e,t){this._viewContainer=e,this._context=new $a,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){La("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){La("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}class $a{constructor(){this.$implicit=null,this.ngIf=null}}function La(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${me(t)}'.`)}const za=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;class Ha{transform(e){if(!e)return e;if("string"!=typeof e)throw function(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${me(Ha)}'`)}(0,e);return e.replace(za,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}class Wa{}const Ga=new xe("DocumentToken"),qa="server";let Za=(()=>{class e{}return e.ngInjectableDef=fe({token:e,providedIn:"root",factory:()=>new Qa(Ve(Ga),window,Ve(Je))}),e})();class Qa{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const n=this.document.querySelector(`#${e}`);if(n)return void this.scrollToElement(n);const r=this.document.querySelector(`[name='${e}']`);if(r)return void this.scrollToElement(r)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}const Ka=new C(e=>e.complete());function Ya(e){return e?function(e){return new C(t=>e.schedule(()=>t.complete()))}(e):Ka}function Ja(e){const t=new C(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function Xa(...e){let t=e[e.length-1];switch(T(t)?e.pop():t=void 0,e.length){case 0:return Ya(t);case 1:return t?W(e,t):Ja(e[0]);default:return W(e,t)}}class eu extends A{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new D;return this._value}next(e){super.next(this._value=e)}}function tu(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}tu.prototype=Object.create(Error.prototype);const nu=tu,ru={};class iu{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new su(e,this.resultSelector))}}class su extends ${constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(ru),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n{let n;try{n=e()}catch(r){return void t.error(r)}return(n?G(n):Ya()).subscribe(t)})}function au(){return Y(1)}function uu(e,t){return function(n){return n.lift(new lu(e,t))}}class lu{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new cu(e,this.predicate,this.thisArg))}}class cu extends g{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function hu(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}hu.prototype=Object.create(Error.prototype);const du=hu;function fu(e){return function(t){return 0===e?Ya():t.lift(new pu(e))}}class pu{constructor(e){if(this.total=e,this.total<0)throw new du}call(e,t){return t.subscribe(new gu(e,this.total))}}class gu extends g{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;imu({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw e()}});function wu(e=null){return t=>t.lift(new Cu(e))}class Cu{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new bu(e,this.defaultValue))}}class bu extends g{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Eu(e,t){const n=arguments.length>=2;return r=>r.pipe(e?uu((t,n)=>e(t,n,r)):K,fu(1),n?wu(t):yu(()=>new nu))}function Du(e){return function(t){const n=new xu(e),r=t.lift(n);return n.caught=r}}class xu{constructor(e){this.selector=e}call(e,t){return t.subscribe(new Su(e,this.selector,this.caught))}}class Su extends ${constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new O(this,void 0,void 0);this.add(r),B(this,n,void 0,void 0,r)}}}function Au(e){return t=>0===e?Ya():t.lift(new ku(e))}class ku{constructor(e){if(this.total=e,this.total<0)throw new du}call(e,t){return t.subscribe(new Tu(e,this.total))}}class Tu extends g{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function Ou(e,t){const n=arguments.length>=2;return r=>r.pipe(e?uu((t,n)=>e(t,n,r)):K,Au(1),n?wu(t):yu(()=>new nu))}class Pu{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new Ru(e,this.predicate,this.thisArg,this.source))}}class Ru extends g{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Fu(e,t){return"function"==typeof t?n=>n.pipe(Fu((n,r)=>G(e(n,r)).pipe(L((e,i)=>t(n,e,r,i))))):t=>t.lift(new Iu(e))}class Iu{constructor(e){this.project=e}call(e,t){return t.subscribe(new Nu(e,this.project))}}class Nu extends ${constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}_innerSub(e,t,n){const r=this.innerSubscription;r&&r.unsubscribe();const i=new O(this,void 0,void 0);this.destination.add(i),this.innerSubscription=B(this,e,t,n,i)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,r,i){this.destination.next(t)}}function Mu(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Vu(e,t,n))}}class Vu{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new Uu(e,this.accumulator,this.seed,this.hasSeed))}}class Uu extends g{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function ju(e,t){return q(e,t,1)}class Bu{constructor(e){this.callback=e}call(e,t){return t.subscribe(new $u(e,this.callback))}}class $u extends g{constructor(e,t){super(e),this.add(new d(t))}}let Lu=null;function zu(){return Lu}class Hu{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class Wu extends Hu{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const t=this.createElement("div",document);if(null!=this.getStyle(t,"animationName"))this._animationPrefix="";else{const e=["Webkit","Moz","O","ms"];for(let n=0;n{null!=this.getStyle(t,e)&&(this._transitionEnd=n[e])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const Gu={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},qu=3,Zu={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Qu={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ku=(()=>{if(De.Node)return De.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class Yu extends Wu{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new Yu,Lu||(Lu=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return Gu}contains(e,t){return Ku.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;re.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r{class e extends wa{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=zu().getLocation(),this._history=zu().getHistory()}getBaseHrefFromDOM(){return zu().getBaseHref(this._doc)}onPopState(e){zu().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){zu().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){el()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){el()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.ctorParameters=()=>[{type:void 0,decorators:[{type:ae,args:[Ga]}]}],e})();const nl=new xe("TRANSITION_ID"),rl=[{provide:Ni,useFactory:function(e,t,n){return()=>{n.get(Mi).donePromise.then(()=>{const n=zu();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[nl,Ga,Ft],multi:!0}];class il{static init(){var e;e=new il,vs=e}addToWindow(e){De.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},De.getAllAngularTestabilities=()=>e.getAllTestabilities(),De.getAllAngularRootElements=()=>e.getAllRootElements(),De.frameworkStabilizers||(De.frameworkStabilizers=[]),De.frameworkStabilizers.push(e=>{const t=De.getAllAngularTestabilities();let n=t.length,r=!1;const i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?zu().isShadowRoot(t)?this.findTestabilityInTree(e,zu().getHost(t),!0):this.findTestabilityInTree(e,zu().parentElement(t),!0):null}}function sl(e,t){"undefined"!=typeof COMPILED&&COMPILED||((De.ng=De.ng||{})[e]=t)}const ol=(()=>({ApplicationRef:As,NgZone:as}))();function al(e){return Bs(e)}const ul=new xe("EventManagerPlugins");class ll{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}class dl extends hl{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>zu().remove(e))}}const fl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},pl=/%COMP%/g,gl="_nghost-%COMP%",ml="_ngcontent-%COMP%";function _l(e,t,n){for(let r=0;r{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}class yl{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new wl(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case He.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new El(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case He.Native:case He.ShadowDom:return new Dl(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=_l(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class wl{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(fl[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const i=fl[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=fl[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&fn.DashCase?e.style.setProperty(t,n,r&fn.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&fn.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){bl(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return bl(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,vl(n)):this.eventManager.addEventListener(e,t,vl(n))}}const Cl=(()=>"@".charCodeAt(0))();function bl(e,t){if(e.charCodeAt(0)===Cl)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class El extends wl{constructor(e,t,n,r){super(e),this.component=n;const i=_l(r+"-"+n.id,n.styles,[]);t.addStyles(i),this.contentAttr=ml.replace(pl,r+"-"+n.id),this.hostAttr=gl.replace(pl,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Dl extends wl{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===He.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=_l(r.id,r.styles,[]);for(let s=0;s"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),Sl=xl("addEventListener"),Al=xl("removeEventListener"),kl={},Tl="FALSE",Ol="ANGULAR",Pl="addEventListener",Rl="removeEventListener",Fl="__zone_symbol__propagationStopped",Il="__zone_symbol__stopImmediatePropagation",Nl=(()=>{const e="undefined"!=typeof Zone&&Zone[xl("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),Ml=function(e){return!!Nl&&Nl.hasOwnProperty(e)},Vl=function(e){const t=kl[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n0;i||(i=e[n]=[]);const o=Ml(t)?Zone.root:Zone.current;if(0===i.length)i.push({zone:o,handler:r});else{let e=!1;for(let t=0;tthis.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[Al];if(!r)return e[Rl].apply(e,[t,n,!1]);let i=kl[t],s=i&&e[i];if(!s)return e[Rl].apply(e,[t,n,!1]);let o=!1;for(let a=0;a{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(i=()=>{});r||(i=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),i=()=>{}}),()=>{i()}}return r.runOutsideAngular(()=>{const i=this._config.buildHammer(e),s=function(e){r.runGuarded(function(){n(e)})};return i.on(t,s),()=>{i.off(t,s),"function"==typeof i.destroy&&i.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}const Hl=["alt","control","meta","shift"],Wl={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class Gl extends cl{constructor(e){super(e)}supports(e){return null!=Gl.parseEventName(e)}addEventListener(e,t,n){const r=Gl.parseEventName(t),i=Gl.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>zu().onAndCancel(e,r.domEventName,i))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=Gl._normalizeKey(t.pop());let i="";if(Hl.forEach(e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")}),i+=r,0!=t.length||0===r.length)return null;const s={};return s.domEventName=n,s.fullKey=i,s}static getEventFullKey(e){let t="",n=zu().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Hl.forEach(r=>{r!=n&&(0,Wl[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(e,t,n){return r=>{Gl.getEventFullKey(r)===e&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}class ql{}class Zl extends ql{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case Et.NONE:return t;case Et.HTML:return t instanceof Kl?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{Ct=Ct||new nt(e);let r=t?String(t):"";n=Ct.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=Ct.getInertBodyElement(r)}while(r!==s);const o=new _t,a=o.sanitizeChildren(bt(n)||n);return tt()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=bt(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case Et.STYLE:return t instanceof Yl?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(St);return t&&st(t[1])===t[1]||e.match(xt)&&function(e){let t=!0,n=!0;for(let r=0;re.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function Mc(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Vc(e){return Yt(e)?e:Kt(e)?G(Promise.resolve(e)):Xa(e)}function Uc(e,t,n){return n?function(e,t){return Fc(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Lc(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length){return!!Lc(n.segments.slice(0,i.length),i)&&!r.hasChildren()}if(n.segments.length===i.length){if(!Lc(n.segments,i))return!1;for(const t in r.children){if(!n.children[t])return!1;if(!e(n.children[t],r.children[t]))return!1}return!0}{const e=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!Lc(n.segments,e)&&!!n.children[bc]&&t(n.children[bc],r,s)}}(t,n,n.segments)}(e.root,t.root)}class jc{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Dc(this.queryParams)),this._queryParamMap}toString(){return Gc.serialize(this)}}class Bc{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Mc(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return qc(this)}}class $c{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Dc(this.parameters)),this._parameterMap}toString(){return Xc(this)}}function Lc(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function zc(e,t){let n=[];return Mc(e.children,(e,r)=>{r===bc&&(n=n.concat(t(e,r)))}),Mc(e.children,(e,r)=>{r!==bc&&(n=n.concat(t(e,r)))}),n}class Hc{}class Wc{parse(e){const t=new ih(e);return new jc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return qc(t);if(n){const n=t.children[bc]?e(t.children[bc],!1):"",r=[];return Mc(t.children,(t,n)=>{n!==bc&&r.push(`${n}:${e(t,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=zc(t,(n,r)=>r===bc?[e(t.children[bc],!1)]:[`${r}:${e(n,!1)}`]);return`${qc(t)}/(${n.join("//")})`}}(e.root,!0)}`}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Qc(t)}=${Qc(e)}`).join("&"):`${Qc(t)}=${Qc(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Gc=new Wc;function qc(e){return e.segments.map(e=>Xc(e)).join("/")}function Zc(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qc(e){return Zc(e).replace(/%3B/gi,";")}function Kc(e){return Zc(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Yc(e){return decodeURIComponent(e)}function Jc(e){return Yc(e.replace(/\+/g,"%20"))}function Xc(e){return`${Kc(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Kc(e)}=${Kc(t[e])}`).join("")}`;var t}const eh=/^[^\/()?;=#]+/;function th(e){const t=e.match(eh);return t?t[0]:""}const nh=/^[^=?&#]+/,rh=/^[^?&#]+/;class ih{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Bc([],{}):new Bc([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[bc]=new Bc(e,t)),n}parseSegment(){const e=th(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new $c(Yc(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=th(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=th(this.remaining);e&&this.capture(n=e)}e[Yc(t)]=Yc(n)}parseQueryParam(e){const t=function(e){const t=e.match(nh);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(rh);return t?t[0]:""}(this.remaining);e&&this.capture(n=e)}const r=Jc(t),i=Jc(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(e[r]=t=[t]),t.push(i)}else e[r]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=th(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=bc);const s=this.parseChildren();t[i]=1===Object.keys(s).length?s[bc]:new Bc([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class sh{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=oh(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=oh(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=ah(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return ah(e,this._root).map(e=>e.value)}}function oh(e,t){if(e===t.value)return t;for(const n of t.children){const t=oh(e,n);if(t)return t}return null}function ah(e,t){if(e===t.value)return[t];for(const n of t.children){const r=ah(e,n);if(r.length)return r.unshift(t),r}return[]}class uh{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function lh(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class ch extends sh{constructor(e,t){super(e),this.snapshot=t,mh(this,e)}toString(){return this.snapshot.toString()}}function hh(e,t){const n=function(e,t){const n=new ph([],{},{},"",{},bc,t,null,e.root,-1,{});return new gh("",new uh(n,[]))}(e,t),r=new eu([new $c("",{})]),i=new eu({}),s=new eu({}),o=new eu({}),a=new eu(""),u=new dh(r,i,o,a,s,bc,t,n.root);return u.snapshot=n.root,new ch(new uh(u,[]),n)}class dh{constructor(e,t,n,r,i,s,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(L(e=>Dc(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(L(e=>Dc(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function fh(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class ph{constructor(e,t,n,r,i,s,o,a,u,l,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Dc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Dc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class gh extends sh{constructor(e,t){super(t),this.url=e,mh(this,t)}toString(){return _h(this._root)}}function mh(e,t){t.value._routerState=e,t.children.forEach(t=>mh(e,t))}function _h(e){const t=e.children.length>0?` { ${e.children.map(_h).join(", ")} } `:"";return`${e.value}${t}`}function vh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Fc(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Fc(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;nFc(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||yh(e.parent,t.parent))}function wh(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Ch(e,t,n,r,i){let s={};return r&&Mc(r,(e,t)=>{s[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new jc(n.root===e?t:function e(t,n,r){const i={};return Mc(t.children,(t,s)=>{i[s]=t===n?r:e(t,n,r)}),new Bc(t.segments,i)}(n.root,e,t),s,i)}class bh{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&wh(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(r&&r!==Nc(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Eh{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Dh(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[bc]:`${e}`}function xh(e,t,n){if(e||(e=new Bc([],{})),0===e.segments.length&&e.hasChildren())return Sh(e,t,n);const r=function(e,t,n){let r=0,i=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return s;const t=e.segments[i],o=Dh(n[r]),a=r0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Oh(o,a,t))return s;r+=2}else{if(!Oh(o,{},t))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex{null!==n&&(i[r]=xh(e.children[r],t,n))}),Mc(e.children,(e,t)=>{void 0===r[t]&&(i[t]=e)}),new Bc(e.segments,i)}}function Ah(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i{null!==e&&(t[n]=Ah(new Bc([],{}),0,e))}),t}function Th(e){const t={};return Mc(e,(e,n)=>t[n]=`${e}`),t}function Oh(e,t,n){return e==n.path&&Fc(t,n.parameters)}const Ph=(e,t,n)=>L(r=>(new Rh(t,r.targetRouterState,r.currentRouterState,n).activate(e),r));class Rh{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),vh(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=lh(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),Mc(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=lh(e),i=e.value.component?n.children:t;Mc(r,(e,t)=>this.deactivateRouteAndItsChildren(e,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=lh(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new yc(e.value.snapshot))}),e.children.length&&this.forwardEvent(new _c(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(vh(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),Fh(e.route)}else{const n=function(e){for(let t=r.snapshot.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(),i=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=i,t.outlet&&t.outlet.activateWith(r,i),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function Fh(e){vh(e.value),e.children.forEach(Fh)}function Ih(e){return"function"==typeof e}function Nh(e){return e instanceof jc}class Mh{constructor(e){this.segmentGroup=e||null}}class Vh{constructor(e){this.urlTree=e}}function Uh(e){return new C(t=>t.error(new Mh(e)))}function jh(e){return new C(t=>t.error(new Vh(e)))}function Bh(e){return new C(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class $h{constructor(e,t,n,r,i){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(Be)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,bc).pipe(L(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Du(e=>{if(e instanceof Vh)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Mh)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,bc).pipe(L(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(Du(e=>{if(e instanceof Mh)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Bc([],{[bc]:e}):e;return new jc(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(L(e=>new Bc([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return Xa({});const n=[],r=[],i={};return Mc(e,(e,s)=>{const o=t(s,e).pipe(L(e=>i[s]=e));s===bc?n.push(o):r.push(o)}),Xa.apply(null,n.concat(r)).pipe(au(),Eu(),L(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,i,s){return Xa(...n).pipe(L(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,i,s).pipe(Du(e=>{if(e instanceof Mh)return Xa(null);throw e}))),au(),Ou(e=>!!e),Du((e,n)=>{if(e instanceof nu||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,i))return Xa(new Bc([],{}));throw new Mh(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,i,s,o){return Wh(r)!==s?Uh(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s):Uh(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?jh(i):this.lineralizeSegments(n,i).pipe(q(n=>{const i=new Bc(n,{});return this.expandSegment(e,i,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s){const{matched:o,consumedSegments:a,lastChild:u,positionalParamSegments:l}=Lh(t,r,i);if(!o)return Uh(t);const c=this.applyRedirectCommands(a,r.redirectTo,l);return r.redirectTo.startsWith("/")?jh(c):this.lineralizeSegments(r,c).pipe(q(r=>this.expandSegment(e,t,n,r.concat(i.slice(u)),s,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(L(e=>(n._loadedConfig=e,new Bc(r,{})))):Xa(new Bc(r,{}));const{matched:i,consumedSegments:s,lastChild:o}=Lh(t,n,r);if(!i)return Uh(t);const a=r.slice(o);return this.getChildConfig(e,n,r).pipe(q(e=>{const n=e.module,r=e.routes,{segmentGroup:i,slicedSegments:o}=function(e,t,n,r){return n.length>0&&function(e,t,n){return r.some(n=>Hh(e,t,n)&&Wh(n)!==bc)}(e,n)?{segmentGroup:zh(new Bc(t,function(e,t){const n={};n[bc]=t;for(const r of e)""===r.path&&Wh(r)!==bc&&(n[Wh(r)]=new Bc([],{}));return n}(r,new Bc(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return r.some(n=>Hh(e,t,n))}(e,n)?{segmentGroup:zh(new Bc(e.segments,function(e,t,n,r){const i={};for(const s of n)Hh(e,t,s)&&!r[Wh(s)]&&(i[Wh(s)]=new Bc([],{}));return Object.assign({},r,i)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,a,r);return 0===o.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(L(e=>new Bc(s,e))):0===r.length&&0===o.length?Xa(new Bc(s,{})):this.expandSegment(n,i,r,o,bc,!0).pipe(L(e=>new Bc(s.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Xa(new kc(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Xa(t._loadedConfig):function(e,t,n){const r=t.canLoad;return r&&0!==r.length?G(r).pipe(L(r=>{const i=e.get(r);let s;if(function(e){return e&&Ih(e.canLoad)}(i))s=i.canLoad(t,n);else{if(!Ih(i))throw new Error("Invalid CanLoad guard");s=i(t,n)}return Vc(s)})).pipe(au(),(i=e=>!0===e,e=>e.lift(new Pu(i,void 0,e)))):Xa(!0);var i}(e.injector,t,n).pipe(q(n=>n?this.configLoader.load(e.injector,t).pipe(L(e=>(t._loadedConfig=e,e))):function(e){return new C(t=>t.error(Sc(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Xa(new kc([],e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Xa(n);if(r.numberOfChildren>1||!r.children[bc])return Bh(e.redirectTo);r=r.children[bc]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const i=this.createSegmentGroup(e,t.root,n,r);return new jc(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Mc(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const i=this.createSegments(e,t.segments,n,r);let s={};return Mc(t.children,(t,i)=>{s[i]=this.createSegmentGroup(e,t,n,r)}),new Bc(i,s)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function Lh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||Ac)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function zh(e){if(1===e.numberOfChildren&&e.children[bc]){const t=e.children[bc];return new Bc(e.segments.concat(t.segments),t.children)}return e}function Hh(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Wh(e){return e.outlet||bc}class Gh{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class qh{constructor(e,t){this.component=e,this.route=t}}function Zh(e,t,n){const r=e._root;return function e(t,n,r,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=lh(n);return t.children.forEach(t=>{!function(t,n,r,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=n?n.value:null,u=r?r.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Lc(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Lc(e.url,t.url)||!Fc(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yh(e,t)||!Fc(e.queryParams,t.queryParams);case"paramsChange":default:return!yh(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Gh(i)):(o.data=a.data,o._resolvedData=a._resolvedData),e(t,n,o.component?u?u.children:null:r,i,s),l&&s.canDeactivateChecks.push(new qh(u&&u.outlet&&u.outlet.component||null,a))}else a&&Kh(n,u,s),s.canActivateChecks.push(new Gh(i)),e(t,null,o.component?u?u.children:null:r,i,s)}(t,o[t.value.outlet],r,i.concat([t.value]),s),delete o[t.value.outlet]}),Mc(o,(e,t)=>Kh(e,r.getContext(t),s)),s}(r,t?t._root:null,n,[r.value])}function Qh(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Kh(e,t,n){const r=lh(e),i=e.value;Mc(r,(e,r)=>{Kh(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new qh(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}const Yh=Symbol("INITIAL_VALUE");function Jh(){return Fu(e=>(function(...e){let t=null,n=null;return T(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&u(e[0])&&(e=e[0]),W(e,n).lift(new iu(t))})(...e.map(e=>e.pipe(Au(1),function(...e){return t=>{let n=e[e.length-1];T(n)?e.pop():n=null;const r=e.length;return function(...e){return au()(Xa(...e))}(1!==r||n?r>0?W(e,n):Ya(n):Ja(e[0]),t)}}(Yh)))).pipe(Mu((e,t)=>{let n=!1;return t.reduce((e,r,i)=>{if(e!==Yh)return e;if(r===Yh&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||Nh(r))return r}return e},e)},Yh),uu(e=>e!==Yh),L(e=>Nh(e)?e:!0===e),Au(1)))}function Xh(e,t){return null!==e&&t&&t(new vc(e)),Xa(!0)}function ed(e,t){return null!==e&&t&&t(new mc(e)),Xa(!0)}function td(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?Xa(r.map(r=>ou(()=>{const i=Qh(r,t,n);let s;if(function(e){return e&&Ih(e.canActivate)}(i))s=Vc(i.canActivate(t,e));else{if(!Ih(i))throw new Error("Invalid CanActivate guard");s=Vc(i(t,e))}return s.pipe(Ou())}))).pipe(Jh()):Xa(!0)}function nd(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(e=>(function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null})(e)).filter(e=>null!==e).map(t=>ou(()=>Xa(t.guards.map(i=>{const s=Qh(i,t.node,n);let o;if(function(e){return e&&Ih(e.canActivateChild)}(s))o=Vc(s.canActivateChild(r,e));else{if(!Ih(s))throw new Error("Invalid CanActivateChild guard");o=Vc(s(r,e))}return o.pipe(Ou())})).pipe(Jh())));return Xa(i).pipe(Jh())}class rd{}class id{constructor(e,t,n,r,i,s){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){try{const t=ad(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,bc),r=new ph([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},bc,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new uh(r,n),s=new gh(this.url,i);return this.inheritParamsAndData(s._root),Xa(s)}catch(e){return new C(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=fh(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=zc(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};n.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(),n.sort((e,t)=>e.value.outlet===bc?-1:t.value.outlet===bc?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const s of e)try{return this.processSegmentAgainstRoute(s,t,n,r)}catch(i){if(!(i instanceof rd))throw i}if(this.noLeftoversInUrl(t,n,r))return[];throw new rd}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new rd;if((e.outlet||bc)!==r)throw new rd;let i,s=[],o=[];if("**"===e.path){const s=n.length>0?Nc(n).parameters:{};i=new ph(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cd(e),r,e.component,e,sd(t),od(t)+n.length,hd(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new rd;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||Ac)(n,e,t);if(!r)throw new rd;const i={};Mc(r.posParams,(e,t)=>{i[t]=e.path});const s=r.consumed.length>0?Object.assign({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(t,e,n);s=a.consumedSegments,o=n.slice(a.lastChild),i=new ph(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cd(e),r,e.component,e,sd(t),od(t)+s.length,hd(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:u,slicedSegments:l}=ad(t,s,o,a,this.relativeLinkResolution);if(0===l.length&&u.hasChildren()){const e=this.processChildren(a,u);return[new uh(i,e)]}if(0===a.length&&0===l.length)return[new uh(i,[])];const c=this.processSegment(a,u,l,bc);return[new uh(i,c)]}}function sd(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function od(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function ad(e,t,n,r,i){if(n.length>0&&function(e,t,n){return r.some(n=>ud(e,t,n)&&ld(n)!==bc)}(e,n)){const i=new Bc(t,function(e,t,n,r){const i={};i[bc]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const s of n)if(""===s.path&&ld(s)!==bc){const n=new Bc([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,i[ld(s)]=n}return i}(e,t,r,new Bc(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return r.some(n=>ud(e,t,n))}(e,n)){const s=new Bc(e.segments,function(e,t,n,r,i,s){const o={};for(const a of r)if(ud(e,n,a)&&!i[ld(a)]){const n=new Bc([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[ld(a)]=n}return Object.assign({},i,o)}(e,t,n,r,e.children,i));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const s=new Bc(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function ud(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ld(e){return e.outlet||bc}function cd(e){return e.data||{}}function hd(e){return e.resolve||{}}function dd(e,t,n,r){const i=Qh(e,t,r);return Vc(i.resolve?i.resolve(t,n):i(t,n))}function fd(e){return function(t){return t.pipe(Fu(t=>{const n=e(t);return n?G(n).pipe(L(()=>t)):G([t])}))}}class pd{}class gd{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const md=new xe("ROUTES");class _d{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(L(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new kc(Ic(r.injector.get(md)).map(Rc),r)}))}loadModuleFactory(e){return"string"==typeof e?G(this.loader.load(e)):Vc(e()).pipe(q(e=>e instanceof $e?Xa(e):G(this.compiler.compileModuleAsync(e))))}}class vd{}class yd{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function wd(e){throw e}function Cd(e,t,n){return t.parse("/")}function bd(e,t){return Xa(null)}class Ed{constructor(e,t,n,r,i,s,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new A,this.errorHandler=wd,this.malformedUriErrorHandler=Cd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:bd,afterPreactivation:bd},this.urlHandlingStrategy=new yd,this.routeReuseStrategy=new gd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(Be),this.console=i.get(zi);const u=i.get(as);this.isNgZoneEnabled=u instanceof as,this.resetConfig(a),this.currentUrlTree=new jc(new Bc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new _d(s,o,e=>this.triggerEvent(new pc(e)),e=>this.triggerEvent(new gc(e))),this.routerState=hh(this.currentUrlTree,this.rootComponentType),this.transitions=new eu({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(uu(e=>0!==e.id),L(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Fu(e=>{let n=!1,r=!1;return Xa(e).pipe(mu(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Fu(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Xa(e).pipe(Fu(e=>{const n=this.transitions.getValue();return t.next(new sc(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?Ka:[e]}),Fu(e=>Promise.resolve(e)),function(e,t,n,r){return function(i){return i.pipe(Fu(i=>(function(e,t,n,r,s){return new $h(e,t,n,i.extractedUrl,s).apply()})(e,t,n,0,r).pipe(L(e=>Object.assign({},i,{urlAfterRedirects:e})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),mu(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,i){return function(s){return s.pipe(q(s=>(function(e,t,n,r,i="emptyOnly",s="legacy"){return new id(e,t,n,r,i,s).recognize()})(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),r,i).pipe(L(e=>Object.assign({},s,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),mu(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),mu(e=>{const n=new lc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:s,extras:o}=e,a=new sc(n,this.serializeUrl(r),i,s);t.next(a);const u=hh(r,this.rootComponentType).snapshot;return Xa(Object.assign({},e,{targetSnapshot:u,urlAfterRedirects:r,extras:Object.assign({},o,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Ka}),fd(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),mu(e=>{const t=new cc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),L(e=>Object.assign({},e,{guards:Zh(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(q(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?Xa(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return G(o).pipe(q(e=>(function(e,t,n,r,i){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?Xa(s.map(s=>{const o=Qh(s,t,i);let a;if(function(e){return e&&Ih(e.canDeactivate)}(o))a=Vc(o.canDeactivate(e,t,n,r));else{if(!Ih(o))throw new Error("Invalid CanDeactivate guard");a=Vc(o(e,t,n,r))}return a.pipe(Ou())})).pipe(Jh()):Xa(!0)})(e.component,e.route,n,t,r)),Ou(e=>!0!==e,!0))}(0,r,i,e).pipe(q(n=>n&&function(e){return"boolean"==typeof n}()?function(e,t,n,r){return G(s).pipe(ju(t=>G([ed(t.route.parent,r),Xh(t.route,r),nd(e,t.path,n),td(e,t.route,n)]).pipe(au(),Ou(e=>!0!==e,!0))),Ou(e=>!0!==e,!0))}(r,0,e,t):Xa(n)),L(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),mu(e=>{if(Nh(e.guardsResult)){const t=Sc(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),mu(e=>{const t=new hc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),uu(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new ac(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),fd(e=>{if(e.guards.canActivateChecks.length)return Xa(e).pipe(mu(e=>{const t=new dc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),function(e,t){return function(n){return n.pipe(q(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;return i.length?G(i).pipe(ju(n=>(function(e,t,n,i){return function(e,t,n,r){const i=Object.keys(e);if(0===i.length)return Xa({});if(1===i.length){const s=i[0];return dd(e[s],t,n,r).pipe(L(e=>({[s]:e})))}const s={};return G(i).pipe(q(i=>dd(e[i],t,n,r).pipe(L(e=>(s[i]=e,e))))).pipe(Eu(),L(()=>s))}(e._resolve,e,r,i).pipe(L(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,fh(e,n).resolve),null)))})(n.route,0,e,t)),function(e,t){return arguments.length>=2?function(n){return y(Mu(e,t),fu(1),wu(t))(n)}:function(t){return y(Mu((t,n,r)=>e(t,n,r+1)),fu(1))(t)}}((e,t)=>e),L(e=>n)):Xa(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),mu(e=>{const t=new fc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),fd(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),L(e=>{const t=function(e,t,n){const r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){const i=r.value;i._futureSnapshot=n.value;const s=function(t,n,r){return n.children.map(n=>{for(const i of r.children)if(t.shouldReuseRoute(i.value.snapshot,n.value))return e(t,n,i);return e(t,n)})}(t,n,r);return new uh(i,s)}{const r=t.retrieve(n.value);if(r){const e=r.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let r=0;re(t,n));return new uh(r,s)}}var i}(e,t._root,n?n._root:void 0);return new ch(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),mu(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Ph(this.rootContexts,this.routeReuseStrategy,e=>this.triggerEvent(e)),mu({next(){n=!0},complete(){n=!0}}),function(e){return t=>t.lift(new Bu(e))}(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new ac(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),Du(n=>{if(r=!0,function(e){return n&&n[xc]}()){const r=Nh(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const i=new ac(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(i),e.resolve(!1),r&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new uc(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(i){e.reject(i)}}return Ka}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign({},this.getTransition(),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Tc(e),this.config=e.map(Rc),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:i,preserveQueryParams:s,queryParamsHandling:o,preserveFragment:a}=t;tt()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const u=n||this.routerState.root,l=a?this.currentUrlTree.fragment:i;let c=null;if(o)switch(o){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=s?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,i){if(0===n.length)return Ch(t.root,t.root,t,r,i);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new bh(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return Mc(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new bh(n,t,r)}(n);if(s.toRoot())return Ch(t.root,new Bc([],{}),t,r,i);const o=function(e,n,r){if(e.isAbsolute)return new Eh(t.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new Eh(r.snapshot._urlSegment,!0,0);const i=wh(e.commands[0])?0:1;return function(t,n,s){let o=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+i,u=e.numberOfDoubleDots;for(;u>a;){if(u-=a,!(o=o.parent))throw new Error("Invalid number of '../'");a=o.segments.length}return new Eh(o,!1,a-u)}()}(s,0,e),a=o.processChildren?Sh(o.segmentGroup,o.index,s.commands):xh(o.segmentGroup,o.index,s.commands);return Ch(o.segmentGroup,a,t,r,i)}(u,this.currentUrlTree,e,c,l)}navigateByUrl(e,t={skipLocationChange:!1}){tt()&&this.isNgZoneEnabled&&!as.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Nh(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new oc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r){const i=this.getTransition();if(i&&"imperative"!==t&&"imperative"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"hashchange"==t&&"popstate"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"popstate"==t&&"hashchange"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);let s=null,o=null;const a=new Promise((e,t)=>{s=e,o=t}),u=++this.navigationId;return this.setTransition({id:u,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:s,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const i=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign({},r,{navigationId:n})):this.location.go(i,"",Object.assign({},r,{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class Dd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new xd,this.attachRef=null}}class xd{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Dd,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Sd{constructor(e,t,n,r,i){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ri,this.deactivateEvents=new Ri,this.name=r||bc,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new Ad(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class Ad{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===dh?this.route:e===xd?this.childContexts:this.parent.get(e,t)}}class kd{}class Td{preload(e,t){return t().pipe(Du(()=>Xa(null)))}}class Od{preload(e,t){return Xa(null)}}class Pd{constructor(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=new _d(t,n,t=>e.triggerEvent(new pc(t)),t=>e.triggerEvent(new gc(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(uu(e=>e instanceof oc),ju(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Be);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return G(n).pipe(Y(),L(e=>void 0))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(q(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}class Rd{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof sc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof oc&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof wc&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new wc(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const Fd=new xe("ROUTER_CONFIGURATION"),Id=new xe("ROUTER_FORROOT_GUARD"),Nd=[Da,{provide:Hc,useClass:Wc},{provide:Ed,useFactory:Ld,deps:[As,Hc,xd,Da,Ft,Ts,Yi,md,Fd,[vd,new ue],[pd,new ue]]},xd,{provide:dh,useFactory:zd,deps:[Ed]},{provide:Ts,useClass:Is},Pd,Od,Td,{provide:Fd,useValue:{enableTracing:!1}}];function Md(){return new bs("Router",Ed)}class Vd{constructor(e,t){}static forRoot(e,t){return{ngModule:Vd,providers:[Nd,$d(e),{provide:Id,useFactory:Bd,deps:[[Ed,new ue,new ce]]},{provide:Fd,useValue:t||{}},{provide:ba,useFactory:jd,deps:[wa,[new ae(Ea),new ue],Fd]},{provide:Rd,useFactory:Ud,deps:[Ed,Za,Fd]},{provide:kd,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:Od},{provide:bs,multi:!0,useFactory:Md},[Hd,{provide:Ni,multi:!0,useFactory:Wd,deps:[Hd]},{provide:qd,useFactory:Gd,deps:[Hd]},{provide:Li,multi:!0,useExisting:qd}]]}}static forChild(e){return{ngModule:Vd,providers:[$d(e)]}}}function Ud(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Rd(e,t,n)}function jd(e,t,n={}){return n.useHash?new Sa(e,t):new Aa(e,t)}function Bd(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function $d(e){return[{provide:Lt,multi:!0,useValue:e},{provide:md,multi:!0,useValue:e}]}function Ld(e,t,n,r,i,s,o,a,u={},l,c){const h=new Ed(null,t,n,r,i,s,o,Ic(a));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),u.errorHandler&&(h.errorHandler=u.errorHandler),u.malformedUriErrorHandler&&(h.malformedUriErrorHandler=u.malformedUriErrorHandler),u.enableTracing){const e=zu();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return u.onSameUrlNavigation&&(h.onSameUrlNavigation=u.onSameUrlNavigation),u.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=u.paramsInheritanceStrategy),u.urlUpdateStrategy&&(h.urlUpdateStrategy=u.urlUpdateStrategy),u.relativeLinkResolution&&(h.relativeLinkResolution=u.relativeLinkResolution),h}function zd(e){return e.routerState.root}class Hd{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new A}appInitializer(){return this.injector.get(Ca,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(Ed),r=this.injector.get(Fd);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Xa(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(Fd),n=this.injector.get(Pd),r=this.injector.get(Rd),i=this.injector.get(Ed),s=this.injector.get(As);e===s.components[0]&&(this.isLegacyEnabled(t)?i.initialNavigation():this.isLegacyDisabled(t)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}function Wd(e){return e.appInitializer.bind(e)}function Gd(e){return e.bootstrapListener.bind(e)}const qd=new xe("Router Initializer");var Zd=Xn({encapsulation:2,styles:[],data:{}});function Qd(e){return co(0,[(e()(),Qs(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ui(1,212992,null,0,Sd,[xd,Nn,sn,[8,null],Tt],null,null)],function(e,t){e(t,1,0)},null)}function Kd(e){return co(0,[(e()(),Qs(0,0,null,null,1,"ng-component",[],null,null,null,Qd,Zd)),ui(1,49152,null,0,Cc,[],null,null)],null,null)}var Yd=Ur("ng-component",Cc,Kd,{},{},[]);class Jd extends ${constructor(e,t){super(e),this.sources=t,this.completed=0,this.haveValues=0;const n=t.length;this.values=new Array(n);for(let r=0;r{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=zu()?zu().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}class nf{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class rf extends nf{get formDirective(){return null}get path(){return null}}function sf(){throw new Error("unimplemented")}class of extends nf{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return sf()}get asyncValidator(){return sf()}}class af{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}class uf extends af{constructor(e){super(e)}}class lf extends af{constructor(e){super(e)}}function cf(e){return null==e||0===e.length}const hf=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/;class df{static min(e){return t=>{if(cf(t.value)||cf(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(cf(t.value)||cf(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return cf(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return cf(e.value)?null:hf.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(cf(t.value))return null;const n=t.value?t.value.length:0;return n{const n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}static pattern(e){if(!e)return df.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(cf(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(ff);return 0==t.length?null:function(e){return gf(function(e,n){return t.map(t=>t(e))}(e))}}static composeAsync(e){if(!e)return null;const t=e.filter(ff);return 0==t.length?null:function(e){return function e(...t){let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&u(t[0])&&(t=t[0]),0===t.length?Ka:n?e(t).pipe(L(e=>n(...e))):new C(e=>new Jd(e,t))}(function(e,n){return t.map(t=>t(e))}(e).map(pf)).pipe(L(gf))}}}function ff(e){return null!=e}function pf(e){const t=Kt(e)?G(e):e;if(!Yt(t))throw new Error("Expected validator to return Promise or Observable.");return t}function gf(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function mf(e){return e.validate?t=>e.validate(t):e}function _f(e){return e.validate?t=>e.validate(t):e}class vf{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}const yf={formControlName:'\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n
\n
\n \n
\n
',ngModelWithFormGroup:'\n
\n \n \n
\n '};class wf{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${yf.formControlName}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${yf.formGroupName}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${yf.ngModelGroup}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${yf.formControlName}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${yf.formGroupName}`)}static arrayParentException(){throw new Error(`formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${yf.formArrayName}`)}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(e){console.warn(`\n It looks like you're using ngModel on the same form field as ${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/${"formControl"===e?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}function Cf(e,t){return[...t.path,e]}function bf(e,t){e||Sf(t,"Cannot find control with"),t.valueAccessor||Sf(t,"No value accessor for form control with"),e.validator=df.compose([e.validator,t.validator]),e.asyncValidator=df.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Ef(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Ef(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function Ef(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Df(e,t){null==e&&Sf(t,"Cannot find control with"),e.validator=df.compose([e.validator,t.validator]),e.asyncValidator=df.composeAsync([e.asyncValidator,t.asyncValidator])}function xf(e){return Sf(e,"There is no FormControl instance attached to form control element with")}function Sf(e,t){let n;throw n=e.path.length>1?`path: '${e.path.join(" -> ")}'`:e.path[0]?`name: '${e.path}'`:"unspecified name attribute",new Error(`${t} ${n}`)}function Af(e){return null!=e?df.compose(e.map(mf)):null}function kf(e){return null!=e?df.composeAsync(e.map(_f)):null}const Tf=[class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Wt}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Wt}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(t.hasOwnProperty("selectedOptions")){const e=t.selectedOptions;for(let t=0;t{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(of),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}],Of="VALID",Pf="INVALID",Rf="PENDING",Ff="DISABLED";function If(e){const t=Mf(e)?e.validators:e;return Array.isArray(t)?Af(t):t||null}function Nf(e,t){const n=Mf(t)?t.asyncValidators:e;return Array.isArray(n)?kf(n):n||null}function Mf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Vf{constructor(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return this.status===Of}get invalid(){return this.status===Pf}get pending(){return this.status==Rf}get disabled(){return this.status===Ff}get enabled(){return this.status!==Ff}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this.validator=If(e)}setAsyncValidators(e){this.asyncValidator=Nf(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Rf,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Ff,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Of,this._forEachChild(t=>{t.enable(Object.assign({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Of&&this.status!==Rf||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)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ff:Of}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Rf;const t=pf(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>this.setErrors(t,{emitEvent:e}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce((e,t)=>e instanceof jf?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Bf&&e.at(t)||null,e))}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Ri,this.statusChanges=new Ri}_calculateStatus(){return this._allControlsDisabled()?Ff:this.errors?Pf:this._anyControlsHaveStatus(Rf)?Rf:this._anyControlsHaveStatus(Pf)?Pf:Of}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Mf(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Uf extends Vf{constructor(e=null,t,n){super(If(t),Nf(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(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}}class jf extends Vf{constructor(e,t,n){super(If(t),Nf(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof Uf?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(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: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){let t=!1;return this._forEachChild((n,r)=>{t=t||this.contains(r)&&e(n)}),t}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Bf extends Vf{constructor(e,t,n){super(If(t),Nf(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Uf?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(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 ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}class $f extends rf{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Cf(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Af(this._validators)}get asyncValidator(){return kf(this._asyncValidators)}_checkParentType(){}}class Lf{}const zf=new xe("NgModelWithFormControlWarning");class Hf extends rf{constructor(e,t){super(),this._validators=e,this._asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Ri}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return bf(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){!function(t,n){const r=t.indexOf(e);r>-1&&t.splice(r,1)}(this.directives)}addFormGroup(e){const t=this.form.get(e.path);Df(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormGroup(e){}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){const t=this.form.get(e.path);Df(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormArray(e){}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,t=this.directives,this.form._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(function(e,t){t.valueAccessor.registerOnChange(()=>xf(t)),t.valueAccessor.registerOnTouched(()=>xf(t)),t._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(e.control,e),t&&bf(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const e=Af(this._validators);this.form.validator=df.compose([this.form.validator,e]);const t=kf(this._asyncValidators);this.form.asyncValidator=df.composeAsync([this.form.asyncValidator,t])}_checkFormPresent(){this.form||wf.missingFormException()}}class Wf extends $f{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){qf(this._parent)&&wf.groupParentException()}}class Gf extends rf{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Cf(this.name,this._parent)}get validator(){return Af(this._validators)}get asyncValidator(){return kf(this._asyncValidators)}_checkParentType(){qf(this._parent)&&wf.arrayParentException()}}function qf(e){return!(e instanceof Wf||e instanceof Hf||e instanceof Gf)}let Zf=(()=>{class e extends of{constructor(e,t,n,r,i){super(),this._ngModelWarningConfig=i,this._added=!1,this.update=new Ri,this._ngModelWarningSent=!1,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||Sf(e,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,i=void 0;return t.forEach(t=>{t.constructor===tf?n=t:function(e){return Tf.some(t=>e.constructor===t)}(t)?(r&&Sf(e,"More than one built-in value accessor matches form control with"),r=t):(i&&Sf(e,"More than one custom value accessor matches form control with"),i=t)}),i||r||n||(Sf(e,"No valid value accessor for form control with"),null)}(this,r)}set isDisabled(e){wf.disabledAttrWarning()}ngOnChanges(t){var n,r;this._added||this._setUpControl(),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Wt(t,n.currentValue)}(t,this.viewModel)&&("formControlName",n=e,this,r=this._ngModelWarningConfig,tt()&&"never"!==r&&((null!==r&&"once"!==r||n._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(wf.ngModelWarning("formControlName"),n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Cf(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Af(this._rawValidators)}get asyncValidator(){return kf(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Wf)&&this._parent instanceof $f?wf.ngModelGroupException():this._parent instanceof Wf||this._parent instanceof Hf||this._parent instanceof Gf||wf.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e._ngModelWarningSentOnce=!1,e})();class Qf{}class Kf{group(e,t=null){const n=this._reduceControls(e);let r=null,i=null,s=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null)),new jf(n,{asyncValidators:i,updateOn:s,validators:r})}control(e,t,n){return new Uf(e,t,n)}array(e,t,n){const r=e.map(e=>this._createControl(e));return new Bf(r,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof Uf||e instanceof jf||e instanceof Bf?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}class Yf{static withConfig(e){return{ngModule:Yf,providers:[{provide:zf,useValue:e.warnOnNgModelWithFormControl}]}}}let Jf=(()=>{class e{}return e.Champions=[{name:"Aatrox",roles:["demon","blademaster"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Ahri",roles:["wild","sorcerer"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"AurelionSol",roles:["dragon","sorcerer"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Anivia",roles:["glacial","elementalist"],cost:5,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Ashe",roles:["glacial","ranger"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Akali",roles:["ninja","assassin"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Brand",roles:["demon","elementalist"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Braum",roles:["glacial","guardian"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Blitzcrank",roles:["robot","brawler"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Chogath",roles:["void","brawler"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Draven",roles:["imperial","blademaster"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Darius",roles:["imperial","knight"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Evelynn",roles:["demon","assassin"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Elise",roles:["demon","shapeshifter"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Fiora",roles:["noble","blademaster"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Gnar",roles:["wild","yordle","shapeshifter"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Garen",roles:["noble","knight"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Gangplank",roles:["pirate","gunslinger","blademaster"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Graves",roles:["pirate","gunslinger"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Kayle",roles:["noble","knight"],cost:5,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Karthus",roles:["phantom","sorcerer"],cost:5,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Kennen",roles:["ninja","yordle","elementalist"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Katarina",roles:["imperial","assassin"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Kindred",roles:["phantom","ranger"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Kassadin",roles:["void","sorcerer"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Khazix",roles:["void","assassin"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Lissandra",roles:["glacial","elementalist"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Lucian",roles:["noble","gunslinger"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Lulu",roles:["yordle","sorcerer"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Leona",roles:["noble","guardian"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"MissFortune",roles:["pirate","gunslinger"],cost:5,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Mordekaiser",roles:["phantom","knight"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Morgana",roles:["demon","sorcerer"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Nidalee",roles:["wild","shapeshifter"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Pyke",roles:["pirate","assassin"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Poppy",roles:["yordle","knight"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Rengar",roles:["wild","assassin"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"RekSai",roles:["void","brawler"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Swain",roles:["demon","imperial","shapeshifter"],cost:5,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Sejuani",roles:["glacial","knight"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Shen",roles:["ninja","blademaster"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Shyvana",roles:["dragon","shapeshifter"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"TwistedFate",roles:["pirate","sorcerer"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Tristana",roles:["yordle","gunslinger"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Varus",roles:["demon","ranger"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Vayne",roles:["noble","ranger"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Veigar",roles:["yordle","sorcerer"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Volibear",roles:["glacial","brawler"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Warwick",roles:["wild","brawler"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Yasuo",roles:["exile","blademaster"],cost:5,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Zed",roles:["ninja","assassin"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Camille",roles:["hextech","blademaster"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Jayce",roles:["hextech","shapeshifter"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Jinx",roles:["hextech","gunslinger"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Vi",roles:["hextech","brawler"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1}],e.championName="name",e.roles=["demon","blademaster","imperial","assassin","shapeshifter","wild","noble","ranger","sorcerer","yordle","knight","ninja","elementalist","pirate","hextech","brawler","glacial","void","exile","dragon","gunslinger","phantom","guardian","robot"],e.bonuses=[{description:"Demon basic attacks have a 40% chance to burn 20 mana from their target and return 15 mana to the attacker",role:"demon",units:2,maxUnits:6},{description:"Demon basic attacks have a 40% chance to burn 20 mana from their target and return 30 mana to the attacker",role:"demon",units:4,maxUnits:6},{description:"Demon basic attacks have a 40% chance to burn 20 mana from their target and return 45 mana to the attacker",role:"demon",units:6,maxUnits:6},{description:"Dragons are 83% inmune to Magic Damage",role:"dragon",units:2,maxUnits:2},{description:"Exiles start combat with a shield equal to 100% max HP when placed adjacent to NO other units",role:"exile",units:1,maxUnits:1},{description:"Glacial units have a 25% chance to stun on hit for two seconds",role:"glacial",units:2,maxUnits:6},{description:"Glacial units have a 35% chance to stun on hit for two seconds",role:"glacial",units:4,maxUnits:6},{description:"Glacial units have a 45% chance to stun on hit for two seconds",role:"glacial",units:6,maxUnits:6},{description:"Robots start combat with full mana",role:"robot",units:1,maxUnits:1},{description:"Double damage for one random Imperial",role:"imperial",units:2,maxUnits:4},{description:"Double damage for all Imperials",role:"imperial",units:4,maxUnits:4},{description:"+60 Armor and magic resist, heal 35 on hit for random ally",role:"noble",units:3,maxUnits:6},{description:"+60 Armor and magic resist, heal 35 on hit for all allies",role:"noble",units:6,maxUnits:6},{description:"Exactly 1: +60 attack damage and ability power for one Ninja",role:"ninja",units:1,maxUnits:4},{description:"Exactly 4: +70 attack damage and ability power for your Ninjas",role:"ninja",units:4,maxUnits:4},{description:"You earn up to 4 additional gold from each PVP round, average 1.75 gold",role:"pirate",units:3,maxUnits:3},{description:"Curse a random enemy at the start of combat, setting their HP to 100",role:"phantom",units:2,maxUnits:2},{description:"Each unit's attacks give then Fury (5 stack cap). Stacks give 12% attack speed. For Wild",role:"wild",units:2,maxUnits:4},{description:"Each unit's attacks give then Fury (5 stack cap). Stacks give 12% attack speed. For team",role:"wild",units:4,maxUnits:4},{description:"Void units deal true damage",role:"void",units:3,maxUnits:3},{description:"Attacks against your Yordles have a 30% chance to miss, also dodges on-hit effects",role:"yordle",units:3,maxUnits:6},{description:"Attacks against your Yordles have a 55% chance to miss, also dodges on-hit effects",role:"yordle",units:6,maxUnits:6},{description:"+125% crit damage for Assassins",role:"assassin",units:3,maxUnits:6},{description:"+350% crit damage for Assassins",role:"assassin",units:6,maxUnits:6},{description:"Blademasters attack 1 extra time",role:"blademaster",units:3,maxUnits:9},{description:"Blademasters attack 2 extra times",role:"blademaster",units:6,maxUnits:9},{description:"Blademasters attack 4 extra times",role:"blademaster",units:9,maxUnits:9},{description:"+300 health to Brawlers",role:"brawler",units:2,maxUnits:6},{description:"+600 health to Brawlers",role:"brawler",units:4,maxUnits:6},{description:"+1000 health to Brawlers",role:"brawler",units:6,maxUnits:6},{description:"Each combat, summon a golem with 2200 hp",role:"elementalist",units:3,maxUnits:3},{description:"+50 Armor to allies that start combat adjacent to them, guardians don't buff themselves",role:"guardian",units:2,maxUnits:2},{description:"50% chance on attack to attack one additional target in range",role:"gunslinger",units:2,maxUnits:6},{description:"50% chance on attack to attack two additional targets in range",role:"gunslinger",units:4,maxUnits:6},{description:"50% chance on attack to attack three additional targets in range",role:"gunslinger",units:6,maxUnits:6},{description:"Your team ignores 15 damage from all sources",role:"knight",units:2,maxUnits:6},{description:"Your team ignores 30 damage from all sources",role:"knight",units:4,maxUnits:6},{description:"Your team ignores 55 damage from all sources",role:"knight",units:6,maxUnits:6},{description:"Every 3 seconds, Rangers have a 25% chance to double their attack speed for 3s",role:"ranger",units:2,maxUnits:4},{description:"Every 3 seconds Rangers have a 65% chance to double their attack speed for 3s",role:"ranger",units:4,maxUnits:4},{description:"On transform gain 60% max HP",role:"shapeshifter",units:3,maxUnits:6},{description:"On transform gain 120% max HP",role:"shapeshifter",units:3,maxUnits:6},{description:"Your team has +40 Ability Power",role:"sorcerer",units:3,maxUnits:6},{description:"Your team has +100 Ability Power",role:"sorcerer",units:6,maxUnits:6},{description:"Throw a bomb at an enemy unit with an item, and disables all items in a 1 hex radius for 8 seconds.",role:"hextech",units:2,maxUnits:4},{description:"Throw a bomb at an enemy unit with an item, and disables all items in a 2 hex radius for 8 seconds.",role:"hextech",units:4,maxUnits:4}],e})();var Xf=n("LvDl");class ep{constructor(e,t){this.fb=e,this.sanitizer=t,this.teamSize=0,this.champions=[...Jf.Champions],this.roles=[...Jf.roles],this.championsPool=[],this.rolesPool=[],this.rolesCount=[],this.bonuses=[...Jf.bonuses],this.bonusesPool=[],this.noChampSelected=!0,this.selectedRole=""}ngOnInit(){this.roles.forEach(e=>{this.rolesCount[e]=0}),this.formFilters=this.fb.group({teamSize:[this.teamSize]}),this.championSort(Jf.championName)}getImage(e){return this.sanitizer.bypassSecurityTrustStyle(`url(${"../../assets/images/"+e+".png"})`)}selectChampion(e){const t=this.champions.findIndex(t=>t.name===e.name);this.champions[t].isSelected?(this.champions[t].isSelected=!1,this.championsPool=Xf.remove(this.championsPool,t=>t.name!==e.name),e.roles.forEach(e=>{this.rolesCount[e]--}),this.formFilters.patchValue({teamSize:--this.teamSize}),0===this.teamSize&&(this.noChampSelected=!0)):(this.champions[t].isSelected=!0,this.championsPool.push(e),e.roles.forEach(e=>{this.rolesCount[e]++}),this.formFilters.patchValue({teamSize:++this.teamSize}),this.noChampSelected=!1),this.getBonus(),this.updatePool(),this.updateSinergies()}championSort(e){this.champions.sort((t,n)=>t[e]>n[e]?1:t[e](-1!==Xf.indexOf(n.roles,e)&&(n.isSelected=!0,t++,this.championsPool.push(n),n.roles.forEach(e=>{this.rolesCount[e]++})),n)),this.updatePool(),this.updateSinergies(),this.teamSize=t,this.formFilters.patchValue({teamSize:this.teamSize}),this.getBonus(),this.noChampSelected=!1}else this.resetComposition()}getBonus(){this.bonusesPool=[],this.bonuses.forEach(e=>{"ninja"===e.role?this.rolesCount[e.role]===e.units&&(this.bonusesPool[e.role]=e):e.units<=this.rolesCount[e.role]&&(this.bonusesPool[e.role]=e)})}updatePool(){this.rolesPool=[],this.championsPool.forEach(e=>{this.rolesPool=Xf.union(this.rolesPool,e.roles)})}updateSinergies(){this.champions.map(e=>(e.sinergy2=!1,e.sinergy=!1)),this.champions.map(e=>{let t=0;switch(this.rolesPool.forEach(n=>{-1!==Xf.indexOf(e.roles,n)&&t++}),t){case 1:return e.sinergy=!0;case 2:return e.sinergy2=!0}})}checkRoleFilter(e){return this.selectedRole===e}resetComposition(){this.rolesCount=[],this.rolesPool=[],this.championsPool=[],this.noChampSelected=!0,this.selectedRole="",this.teamSize=0,this.champions.map(e=>(e.sinergy=!1,e.sinergy2=!1,e.isSelected=!1,e)),this.ngOnInit()}}var tp=Xn({encapsulation:0,styles:[["#filters[_ngcontent-%COMP%]{width:100%;float:left;text-align:center}#filters[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#fff;font-size:1em}#filters[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:1%;border:0;background-color:#000;border:none;font-size:1em;width:1em;color:#fff}#filters[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:4px;color:#fff;background:#929182;padding:10px 20px;text-decoration:none}#filters[_ngcontent-%COMP%] #oneSinergy[_ngcontent-%COMP%]{color:#5c7edec7;margin:0 .5% 0 1%;font-weight:700}#filters[_ngcontent-%COMP%] #twoSinergies[_ngcontent-%COMP%]{color:#b7de5cc7;margin:0 0 0 .5%;font-weight:700}#champions[_ngcontent-%COMP%]{margin:0 10%;float:left}#champions[_ngcontent-%COMP%] #rolesFilterWrap[_ngcontent-%COMP%]{margin:1% 0;width:100%;display:flex;align-items:center;justify-content:center;cursor:pointer}#champions[_ngcontent-%COMP%] #rolesFilterWrap[_ngcontent-%COMP%] .roleFilter[_ngcontent-%COMP%]{float:left;margin:.1%}#champions[_ngcontent-%COMP%] #rolesFilterWrap[_ngcontent-%COMP%] .roleFilter[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{float:left;width:30px;height:30px}#champions[_ngcontent-%COMP%] #rolesFilterWrap[_ngcontent-%COMP%] .roleFilter[_ngcontent-%COMP%] .selectedFilter[_ngcontent-%COMP%]{-webkit-filter:invert(16%) sepia(29%) saturate(6804%) hue-rotate(349deg) brightness(87%) contrast(124%);filter:invert(16%) sepia(29%) saturate(6804%) hue-rotate(349deg) brightness(87%) contrast(124%)}#champions[_ngcontent-%COMP%] .champion[_ngcontent-%COMP%]{margin:1%;float:left;text-align:center;cursor:pointer}#champions[_ngcontent-%COMP%] .champion[_ngcontent-%COMP%] .imageWrap[_ngcontent-%COMP%]{width:4em;height:4em;background-size:cover;background-position:center}#champions[_ngcontent-%COMP%] .champion[_ngcontent-%COMP%] .imageWrap[_ngcontent-%COMP%] .checkSelectedChampion[_ngcontent-%COMP%]{float:right;margin:-15% -15% 0 0}#champions[_ngcontent-%COMP%] .champion[_ngcontent-%COMP%] .rolesWrap[_ngcontent-%COMP%]{margin:1%;width:100%;display:flex;align-items:center;justify-content:center}#champions[_ngcontent-%COMP%] .champion[_ngcontent-%COMP%] .rolesWrap[_ngcontent-%COMP%] .roles[_ngcontent-%COMP%]{float:left}#champions[_ngcontent-%COMP%] .champion[_ngcontent-%COMP%] .rolesWrap[_ngcontent-%COMP%] .roles[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{float:left;width:20px;height:20px}#champions[_ngcontent-%COMP%] .champion[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{box-shadow:inset 0 0 0 3px red}#champions[_ngcontent-%COMP%] .champion[_ngcontent-%COMP%] .sinergy[_ngcontent-%COMP%]{box-shadow:inset 0 0 0 3px #5c7edec7}#champions[_ngcontent-%COMP%] .champion[_ngcontent-%COMP%] .sinergy2[_ngcontent-%COMP%]{box-shadow:inset 0 0 0 3px #b7de5cc7}#champions[_ngcontent-%COMP%] .champion[_ngcontent-%COMP%] .dark[_ngcontent-%COMP%]{opacity:.3}#selectedRoles[_ngcontent-%COMP%]{float:left;width:100%;text-align:center}#selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center;margin-top:1%}#selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%]{float:left}#selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#fff}#selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{float:left;width:50px;height:50px}#selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%] .bonus1[_ngcontent-%COMP%], #selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%] .bonus2[_ngcontent-%COMP%], #selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%] .bonus3[_ngcontent-%COMP%]{-webkit-filter:invert(71%) sepia(53%) saturate(336%) hue-rotate(10deg) brightness(94%) contrast(89%);filter:invert(71%) sepia(53%) saturate(336%) hue-rotate(10deg) brightness(94%) contrast(89%)}#selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%] .bonus1e[_ngcontent-%COMP%], #selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%] .bonus2e[_ngcontent-%COMP%], #selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%] .bonus3e[_ngcontent-%COMP%], #selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%] .bonus4e[_ngcontent-%COMP%], #selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%] .bonus6e[_ngcontent-%COMP%], #selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%] .bonus9[_ngcontent-%COMP%]{-webkit-filter:invert(16%) sepia(29%) saturate(6804%) hue-rotate(349deg) brightness(87%) contrast(124%);filter:invert(16%) sepia(29%) saturate(6804%) hue-rotate(349deg) brightness(87%) contrast(124%)}#selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%] .bonus4[_ngcontent-%COMP%], #selectedRoles[_ngcontent-%COMP%] #selectedRolesWrap[_ngcontent-%COMP%] .roleSelectedRoles[_ngcontent-%COMP%] .bonus6[_ngcontent-%COMP%]{-webkit-filter:invert(69%) sepia(41%) saturate(414%) hue-rotate(173deg) brightness(102%) contrast(101%);filter:invert(69%) sepia(41%) saturate(414%) hue-rotate(173deg) brightness(102%) contrast(101%)}#bonuses[_ngcontent-%COMP%]{width:100%;text-align:center}#bonuses[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}.clear[_ngcontent-%COMP%]{clear:both}"]],data:{}});function np(e){return co(0,[(e()(),Qs(0,0,null,null,4,"div",[["class","roleFilter"]],null,null,null,null,null)),(e()(),Qs(1,0,null,null,3,"img",[],[[8,"title",0],[8,"src",4],[8,"alt",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.selectRole(e.context.$implicit)&&r),r},null,null)),li(512,null,Fa,Ia,[kn,Tn,ln,pn]),ui(3,278528,null,0,Ma,[Fa],{ngClass:[0,"ngClass"]},null),so(4,{selectedFilter:0})],function(e,t){var n=e(t,4,0,t.component.checkRoleFilter(t.context.$implicit));e(t,3,0,n)},function(e,t){e(t,1,0,xr(1,"",t.context.$implicit,""),xr(1,"../../assets/images/",t.context.$implicit,".png"),xr(1,"",t.context.$implicit,""))})}function rp(e){return co(0,[(e()(),Qs(0,0,null,null,0,"img",[["class","checkSelectedChampion"],["src","../../assets/images/greencheck.png"]],null,null,null,null,null))],null,null)}function ip(e){return co(0,[(e()(),Qs(0,0,null,null,1,"div",[["class","roles"]],null,null,null,null,null)),(e()(),Qs(1,0,null,null,0,"img",[],[[8,"title",0],[8,"src",4],[8,"alt",0]],null,null,null,null))],null,function(e,t){e(t,1,0,xr(1,"",t.context.$implicit,""),xr(1,"../../assets/images/",t.context.$implicit,".png"),xr(1,"",t.context.$implicit,""))})}function sp(e){return co(0,[(e()(),Qs(0,0,null,null,11,"div",[["class","champion"]],null,null,null,null,null)),(e()(),Qs(1,0,null,null,5,"div",[["class","imageWrap"]],[[8,"title",0],[4,"background-image",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.selectChampion(e.context.$implicit)&&r),r},null,null)),li(512,null,Fa,Ia,[kn,Tn,ln,pn]),ui(3,278528,null,0,Ma,[Fa],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),so(4,{selected:0,sinergy:1,sinergy2:2,dark:3}),(e()(),Zs(16777216,null,null,1,null,rp)),ui(6,16384,null,0,Ba,[Nn,Fn],{ngIf:[0,"ngIf"]},null),(e()(),Qs(7,0,null,null,3,"div",[["class","rolesWrap"]],null,null,null,null,null)),(e()(),Zs(16777216,null,null,1,null,ip)),ui(9,278528,null,0,Ua,[Nn,Fn,kn],{ngForOf:[0,"ngForOf"]},null),(e()(),Qs(10,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(e()(),Qs(11,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null))],function(e,t){var n=e(t,4,0,t.context.$implicit.isSelected,t.context.$implicit.sinergy&&!t.context.$implicit.isSelected,t.context.$implicit.sinergy2&&!t.context.$implicit.isSelected,!(t.context.$implicit.isSelected||t.context.$implicit.sinergy||t.context.$implicit.sinergy2||t.component.noChampSelected));e(t,3,0,"imageWrap",n),e(t,6,0,t.context.$implicit.isSelected),e(t,9,0,t.context.$implicit.roles)},function(e,t){var n=t.component;e(t,1,0,xr(1,"",t.context.$implicit.name,""),n.getImage(t.context.$implicit.name))})}function op(e){return co(0,[(e()(),Qs(0,0,null,null,6,"div",[["class","roleSelectedRoles"]],null,null,null,null,null)),(e()(),Qs(1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),ao(2,null,["",""])),(e()(),Qs(3,0,null,null,3,"img",[],[[8,"title",0],[8,"src",4],[8,"alt",0]],null,null,null,null)),li(512,null,Fa,Ia,[kn,Tn,ln,pn]),ui(5,278528,null,0,Ma,[Fa],{ngClass:[0,"ngClass"]},null),so(6,{bonus1:0,bonus1e:1,bonus2:2,bonus2e:3,bonus3:4,bonus3e:5,bonus4:6,bonus4e:7,bonus6:8,bonus6e:9,bonus9:10})],function(e,t){var n=t.component,r=e(t,6,1,[n.bonusesPool[t.context.$implicit]&&1===n.bonusesPool[t.context.$implicit].units&&1!==n.bonusesPool[t.context.$implicit].maxUnits,n.bonusesPool[t.context.$implicit]&&1===n.bonusesPool[t.context.$implicit].units&&1===n.bonusesPool[t.context.$implicit].maxUnits,n.bonusesPool[t.context.$implicit]&&2===n.bonusesPool[t.context.$implicit].units&&2!==n.bonusesPool[t.context.$implicit].maxUnits,n.bonusesPool[t.context.$implicit]&&2===n.bonusesPool[t.context.$implicit].units&&2===n.bonusesPool[t.context.$implicit].maxUnits,n.bonusesPool[t.context.$implicit]&&3===n.bonusesPool[t.context.$implicit].units&&3!==n.bonusesPool[t.context.$implicit].maxUnits,n.bonusesPool[t.context.$implicit]&&3===n.bonusesPool[t.context.$implicit].units&&3===n.bonusesPool[t.context.$implicit].maxUnits,n.bonusesPool[t.context.$implicit]&&4===n.bonusesPool[t.context.$implicit].units&&4!==n.bonusesPool[t.context.$implicit].maxUnits,n.bonusesPool[t.context.$implicit]&&4===n.bonusesPool[t.context.$implicit].units&&4===n.bonusesPool[t.context.$implicit].maxUnits,n.bonusesPool[t.context.$implicit]&&6===n.bonusesPool[t.context.$implicit].units&&6!==n.bonusesPool[t.context.$implicit].maxUnits,n.bonusesPool[t.context.$implicit]&&6===n.bonusesPool[t.context.$implicit].units&&6===n.bonusesPool[t.context.$implicit].maxUnits,n.bonusesPool[t.context.$implicit]&&9===n.bonusesPool[t.context.$implicit].units]);e(t,5,0,r)},function(e,t){e(t,2,0,t.component.rolesCount[t.context.$implicit]),e(t,3,0,xr(1,"",t.context.$implicit,""),xr(1,"../../assets/images/",t.context.$implicit,".png"),xr(1,"",t.context.$implicit,""))})}function ap(e){return co(0,[(e()(),Qs(0,0,null,null,4,"span",[],null,null,null,null,null)),(e()(),Qs(1,0,null,null,2,"b",[],null,null,null,null,null)),(e()(),ao(2,null,["","-","\xa0:"])),oo(128,3,new Array(2)),(e()(),ao(4,null,["\xa0"," "]))],null,function(e,t){var n=t.component,r=function(e,t,n,r){if(qt.isWrapped(r)){r=qt.unwrap(r);const t=e.def.nodes[2].bindingIndex+0,n=qt.unwrap(e.oldValues[t]);e.oldValues[t]=new qt(n)}return r}(t,0,0,e(t,3,0,Qr(t.parent.parent,0),n.bonusesPool[t.parent.context.$implicit].role));e(t,2,0,r,n.bonusesPool[t.parent.context.$implicit].units),e(t,4,0,n.bonusesPool[t.parent.context.$implicit].description)})}function up(e){return co(0,[(e()(),Qs(0,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),Zs(16777216,null,null,1,null,ap)),ui(2,16384,null,0,Ba,[Nn,Fn],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,t.component.bonusesPool[t.context.$implicit])},null)}function lp(e){return co(0,[(t=0,n=Ha,r=[],ci(-1,t|=16,null,0,n,n,r)),(e()(),Qs(1,0,null,null,5,"div",[["id","champions"]],null,null,null,null,null)),(e()(),Qs(2,0,null,null,2,"div",[["id","rolesFilterWrap"]],null,null,null,null,null)),(e()(),Zs(16777216,null,null,1,null,np)),ui(4,278528,null,0,Ua,[Nn,Fn,kn],{ngForOf:[0,"ngForOf"]},null),(e()(),Zs(16777216,null,null,1,null,sp)),ui(6,278528,null,0,Ua,[Nn,Fn,kn],{ngForOf:[0,"ngForOf"]},null),(e()(),Qs(7,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(e()(),Qs(8,0,null,null,19,"div",[["id","filters"]],null,null,null,null,null)),(e()(),Qs(9,0,null,null,18,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(e,t,n){var r=!0;return"submit"===t&&(r=!1!==Qr(e,11).onSubmit(n)&&r),"reset"===t&&(r=!1!==Qr(e,11).onReset()&&r),r},null,null)),ui(10,16384,null,0,Lf,[],null,null),ui(11,540672,null,0,Hf,[[8,null],[8,null]],{form:[0,"form"]},null),li(2048,null,rf,null,[Hf]),ui(13,16384,null,0,lf,[[4,rf]],null,null),(e()(),Qs(14,0,null,null,7,"label",[],null,null,null,null,null)),(e()(),ao(-1,null,[" Team Size: "])),(e()(),Qs(16,0,null,null,5,"input",[["disabled",""],["formControlName","teamSize"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0;return"input"===t&&(r=!1!==Qr(e,17)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==Qr(e,17).onTouched()&&r),"compositionstart"===t&&(r=!1!==Qr(e,17)._compositionStart()&&r),"compositionend"===t&&(r=!1!==Qr(e,17)._compositionEnd(n.target.value)&&r),r},null,null)),ui(17,16384,null,0,tf,[pn,ln,[2,ef]],null,null),li(1024,null,Xd,function(e){return[e]},[tf]),ui(19,671744,null,0,Zf,[[3,rf],[8,null],[8,null],[6,Xd],[2,zf]],{name:[0,"name"],isDisabled:[1,"isDisabled"]},null),li(2048,null,of,null,[Zf]),ui(21,16384,null,0,uf,[[4,of]],null,null),(e()(),Qs(22,0,null,null,1,"button",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.resetComposition()&&r),r},null,null)),(e()(),ao(-1,null,["Reset"])),(e()(),Qs(24,0,null,null,1,"span",[["id","oneSinergy"]],null,null,null,null,null)),(e()(),ao(-1,null,["1 sinergy"])),(e()(),Qs(26,0,null,null,1,"span",[["id","twoSinergies"]],null,null,null,null,null)),(e()(),ao(-1,null,["2 sinergies"])),(e()(),Qs(28,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(e()(),Qs(29,0,null,null,5,"div",[["id","selectedRoles"]],null,null,null,null,null)),(e()(),Qs(30,0,null,null,3,"div",[["id","selectedRolesWrap"]],null,null,null,null,null)),(e()(),Zs(16777216,null,null,1,null,op)),ui(32,278528,null,0,Ua,[Nn,Fn,kn],{ngForOf:[0,"ngForOf"]},null),(e()(),Qs(33,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(e()(),Qs(34,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(e()(),Qs(35,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null)),(e()(),Qs(36,0,null,null,2,"div",[["id","bonuses"]],null,null,null,null,null)),(e()(),Zs(16777216,null,null,1,null,up)),ui(38,278528,null,0,Ua,[Nn,Fn,kn],{ngForOf:[0,"ngForOf"]},null),(e()(),Qs(39,0,null,null,0,"div",[["class","clear"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,4,0,n.roles),e(t,6,0,n.champions),e(t,11,0,n.formFilters),e(t,19,0,"teamSize",""),e(t,32,0,n.rolesPool),e(t,38,0,n.rolesPool)},function(e,t){e(t,9,0,Qr(t,13).ngClassUntouched,Qr(t,13).ngClassTouched,Qr(t,13).ngClassPristine,Qr(t,13).ngClassDirty,Qr(t,13).ngClassValid,Qr(t,13).ngClassInvalid,Qr(t,13).ngClassPending),e(t,16,0,Qr(t,21).ngClassUntouched,Qr(t,21).ngClassTouched,Qr(t,21).ngClassPristine,Qr(t,21).ngClassDirty,Qr(t,21).ngClassValid,Qr(t,21).ngClassInvalid,Qr(t,21).ngClassPending)});var t,n,r}class cp{constructor(){}ngOnInit(){}}var hp=Xn({encapsulation:0,styles:[["#nav[_ngcontent-%COMP%]{width:100%;text-align:center}#footer[_ngcontent-%COMP%]{width:100%;text-align:center;color:#fff;padding:2% 0}"]],data:{}});function dp(e){return co(0,[(e()(),Qs(0,0,null,null,1,"div",[["id","nav"]],null,null,null,null,null)),(e()(),Qs(1,0,null,null,0,"img",[["alt","TFTPaths"],["src","../../assets/images/logo.png"]],null,null,null,null,null)),(e()(),Qs(2,0,null,null,1,"app-home",[],null,null,null,lp,tp)),ui(3,114688,null,0,ep,[Kf,ql],null,null),(e()(),Qs(4,0,null,null,0,"div",[["id","footer"]],null,null,null,null,null))],function(e,t){e(t,3,0)},null)}function fp(e){return co(0,[(e()(),Qs(0,0,null,null,1,"app-layout",[],null,null,null,dp,hp)),ui(1,114688,null,0,cp,[],null,null)],function(e,t){e(t,1,0)},null)}var pp=Ur("app-layout",cp,fp,{},{},[]),gp=Xn({encapsulation:0,styles:[[""]],data:{}});function mp(e){return co(0,[(e()(),Qs(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ui(1,212992,null,0,Sd,[xd,Nn,sn,[8,null],Tt],null,null)],function(e,t){e(t,1,0)},null)}function _p(e){return co(0,[(e()(),Qs(0,0,null,null,1,"app-root",[],null,null,null,mp,gp)),ui(1,49152,null,0,ya,[],null,null)],null,null)}var vp=Ur("app-root",ya,_p,{},{},[]);class yp{}var wp=ma(va,[ya],function(e){return function(e){const t={},n=[];let r=!1;for(let i=0;i(e[t.name]=t.token,e),{}))),()=>al),Wd(t)];var n},[[2,bs],Hd]),Pr(512,Mi,Mi,[[2,Ni]]),Pr(131584,As,As,[as,zi,Ft,Je,sn,Mi]),Pr(1073742336,qs,qs,[As]),Pr(1073742336,rc,rc,[[3,rc]]),Pr(1024,Id,Bd,[[3,Ed]]),Pr(512,Hc,Wc,[]),Pr(512,xd,xd,[]),Pr(256,Fd,{},[]),Pr(1024,ba,jd,[wa,[2,Ea],Fd]),Pr(512,Da,Da,[ba,wa]),Pr(512,Yi,Yi,[]),Pr(512,Ts,Is,[Yi,[2,Rs]]),Pr(1024,md,function(){return[[{path:"",component:cp,pathMatch:"full"},{path:"**",component:cp,pathMatch:"full"}]]},[]),Pr(1024,Ed,Ld,[As,Hc,xd,Da,Ft,Ts,Yi,md,Fd,[2,vd],[2,pd]]),Pr(1073742336,Vd,Vd,[[2,Id],[2,Ed]]),Pr(1073742336,yp,yp,[]),Pr(1073742336,Qf,Qf,[]),Pr(1073742336,Yf,Yf,[]),Pr(1073742336,va,va,[]),Pr(256,Pt,!0,[])])});(function(){if(et)throw new Error("Cannot enable prod mode after platform setup.");Xe=!1})(),tc().bootstrapModuleFactory(wp).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/dist/TFTPaths/main-es5.b9d89e8afffa5156ba78.js b/dist/TFTPaths/main-es5.b9d89e8afffa5156ba78.js new file mode 100644 index 0000000..15d33d2 --- /dev/null +++ b/dist/TFTPaths/main-es5.b9d89e8afffa5156ba78.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},LvDl:function(t,e,n){(function(t){var r;(function(){var o,i=200,u="Expected a function",a="__lodash_placeholder__",s=1,l=2,c=4,f=1,p=2,h=1,d=2,g=4,v=8,y=16,m=32,_=64,b=128,w=256,C=512,E=800,D=16,x=1/0,S=9007199254740991,A=17976931348623157e292,P=NaN,O=4294967295,T=O-1,k=O>>>1,R=[["ary",b],["bind",h],["bindKey",d],["curry",v],["curryRight",y],["flip",C],["partial",m],["partialRight",_],["rearg",w]],F="[object Arguments]",I="[object Array]",N="[object AsyncFunction]",M="[object Boolean]",j="[object Date]",V="[object DOMException]",U="[object Error]",B="[object Function]",L="[object GeneratorFunction]",z="[object Map]",H="[object Number]",W="[object Null]",G="[object Object]",q="[object Proxy]",$="[object RegExp]",Z="[object Set]",Q="[object String]",K="[object Symbol]",Y="[object Undefined]",J="[object WeakMap]",X="[object ArrayBuffer]",tt="[object DataView]",et="[object Float32Array]",nt="[object Float64Array]",rt="[object Int8Array]",ot="[object Int16Array]",it="[object Int32Array]",ut="[object Uint8Array]",at="[object Uint8ClampedArray]",st="[object Uint16Array]",lt="[object Uint32Array]",ct=/\b__p \+= '';/g,ft=/\b(__p \+=) '' \+/g,pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ht=/&(?:amp|lt|gt|quot|#39);/g,dt=/[&<>"']/g,gt=RegExp(ht.source),vt=RegExp(dt.source),yt=/<%-([\s\S]+?)%>/g,mt=/<%([\s\S]+?)%>/g,_t=/<%=([\s\S]+?)%>/g,bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wt=/^\w*$/,Ct=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Et=/[\\^$.*+?()[\]{}|]/g,Dt=RegExp(Et.source),xt=/^\s+|\s+$/g,St=/^\s+/,At=/\s+$/,Pt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ot=/\{\n\/\* \[wrapped with (.+)\] \*/,Tt=/,? & /,kt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Rt=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,It=/\w*$/,Nt=/^[-+]0x[0-9a-f]+$/i,Mt=/^0b[01]+$/i,jt=/^\[object .+?Constructor\]$/,Vt=/^0o[0-7]+$/i,Ut=/^(?:0|[1-9]\d*)$/,Bt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Lt=/($^)/,zt=/['\n\r\u2028\u2029\\]/g,Ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Wt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Gt="["+Wt+"]",qt="["+Ht+"]",$t="\\d+",Zt="[a-z\\xdf-\\xf6\\xf8-\\xff]",Qt="[^\\ud800-\\udfff"+Wt+$t+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Kt="\\ud83c[\\udffb-\\udfff]",Yt="[^\\ud800-\\udfff]",Jt="(?:\\ud83c[\\udde6-\\uddff]){2}",Xt="[\\ud800-\\udbff][\\udc00-\\udfff]",te="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ee="(?:"+Zt+"|"+Qt+")",ne="(?:"+te+"|"+Qt+")",re="(?:"+qt+"|"+Kt+")?",oe="[\\ufe0e\\ufe0f]?"+re+"(?:\\u200d(?:"+[Yt,Jt,Xt].join("|")+")[\\ufe0e\\ufe0f]?"+re+")*",ie="(?:"+["[\\u2700-\\u27bf]",Jt,Xt].join("|")+")"+oe,ue="(?:"+[Yt+qt+"?",qt,Jt,Xt,"[\\ud800-\\udfff]"].join("|")+")",ae=RegExp("['\u2019]","g"),se=RegExp(qt,"g"),le=RegExp(Kt+"(?="+Kt+")|"+ue+oe,"g"),ce=RegExp([te+"?"+Zt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[Gt,te,"$"].join("|")+")",ne+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[Gt,te+ee,"$"].join("|")+")",te+"?"+ee+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",te+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$t,ie].join("|"),"g"),fe=RegExp("[\\u200d\\ud800-\\udfff"+Ht+"\\ufe0e\\ufe0f]"),pe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,he=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],de=-1,ge={};ge[et]=ge[nt]=ge[rt]=ge[ot]=ge[it]=ge[ut]=ge[at]=ge[st]=ge[lt]=!0,ge[F]=ge[I]=ge[X]=ge[M]=ge[tt]=ge[j]=ge[U]=ge[B]=ge[z]=ge[H]=ge[G]=ge[$]=ge[Z]=ge[Q]=ge[J]=!1;var ve={};ve[F]=ve[I]=ve[X]=ve[tt]=ve[M]=ve[j]=ve[et]=ve[nt]=ve[rt]=ve[ot]=ve[it]=ve[z]=ve[H]=ve[G]=ve[$]=ve[Z]=ve[Q]=ve[K]=ve[ut]=ve[at]=ve[st]=ve[lt]=!0,ve[U]=ve[B]=ve[J]=!1;var ye={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},me=parseFloat,_e=parseInt,be="object"==typeof global&&global&&global.Object===Object&&global,we="object"==typeof self&&self&&self.Object===Object&&self,Ce=be||we||Function("return this")(),Ee=e&&!e.nodeType&&e,De=Ee&&"object"==typeof t&&t&&!t.nodeType&&t,xe=De&&De.exports===Ee,Se=xe&&be.process,Ae=function(){try{return De&&De.require&&De.require("util").types||Se&&Se.binding&&Se.binding("util")}catch(t){}}(),Pe=Ae&&Ae.isArrayBuffer,Oe=Ae&&Ae.isDate,Te=Ae&&Ae.isMap,ke=Ae&&Ae.isRegExp,Re=Ae&&Ae.isSet,Fe=Ae&&Ae.isTypedArray;function Ie(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ne(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o-1}function Be(t,e,n){for(var r=-1,o=null==t?0:t.length;++r-1;);return n}function ln(t,e){for(var n=t.length;n--&&Qe(e,t[n],0)>-1;);return n}var cn=tn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),fn=tn({"&":"&","<":"<",">":">",'"':""","'":"'"});function pn(t){return"\\"+ye[t]}function hn(t){return fe.test(t)}function dn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function gn(t,e){return function(n){return t(e(n))}}function vn(t,e){for(var n=-1,r=t.length,o=0,i=[];++n",""":'"',"'":"'"}),Cn=function t(e){var n,r=(e=null==e?Ce:Cn.defaults(Ce.Object(),e,Cn.pick(Ce,he))).Array,Ht=e.Date,Wt=e.Error,Gt=e.Function,qt=e.Math,$t=e.Object,Zt=e.RegExp,Qt=e.String,Kt=e.TypeError,Yt=r.prototype,Jt=$t.prototype,Xt=e["__core-js_shared__"],te=Gt.prototype.toString,ee=Jt.hasOwnProperty,ne=0,re=(n=/[^.]+$/.exec(Xt&&Xt.keys&&Xt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",oe=Jt.toString,ie=te.call($t),ue=Ce._,le=Zt("^"+te.call(ee).replace(Et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fe=xe?e.Buffer:o,ye=e.Symbol,be=e.Uint8Array,we=fe?fe.allocUnsafe:o,Ee=gn($t.getPrototypeOf,$t),De=$t.create,Se=Jt.propertyIsEnumerable,Ae=Yt.splice,qe=ye?ye.isConcatSpreadable:o,tn=ye?ye.iterator:o,En=ye?ye.toStringTag:o,Dn=function(){try{var t=Ei($t,"defineProperty");return t({},"",{}),t}catch(e){}}(),xn=e.clearTimeout!==Ce.clearTimeout&&e.clearTimeout,Sn=Ht&&Ht.now!==Ce.Date.now&&Ht.now,An=e.setTimeout!==Ce.setTimeout&&e.setTimeout,Pn=qt.ceil,On=qt.floor,Tn=$t.getOwnPropertySymbols,kn=fe?fe.isBuffer:o,Rn=e.isFinite,Fn=Yt.join,In=gn($t.keys,$t),Nn=qt.max,Mn=qt.min,jn=Ht.now,Vn=e.parseInt,Un=qt.random,Bn=Yt.reverse,Ln=Ei(e,"DataView"),zn=Ei(e,"Map"),Hn=Ei(e,"Promise"),Wn=Ei(e,"Set"),Gn=Ei(e,"WeakMap"),qn=Ei($t,"create"),$n=Gn&&new Gn,Zn={},Qn=Qi(Ln),Kn=Qi(zn),Yn=Qi(Hn),Jn=Qi(Wn),Xn=Qi(Gn),tr=ye?ye.prototype:o,er=tr?tr.valueOf:o,nr=tr?tr.toString:o;function rr(t){if(pa(t)&&!ea(t)&&!(t instanceof ar)){if(t instanceof ur)return t;if(ee.call(t,"__wrapped__"))return Ki(t)}return new ur(t)}var or=function(){function t(){}return function(e){if(!fa(e))return{};if(De)return De(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function ir(){}function ur(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function ar(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=O,this.__views__=[]}function sr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Er(t,e,n,r,i,u){var a,f=e&s,p=e&l,h=e&c;if(n&&(a=i?n(t,r,i,u):n(t)),a!==o)return a;if(!fa(t))return t;var d=ea(t);if(d){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ee.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!f)return Lo(t,a)}else{var g=Si(t),v=g==B||g==L;if(ia(t))return No(t,f);if(g==G||g==F||v&&!i){if(a=p||v?{}:Pi(t),!f)return p?function(t,e){return zo(t,xi(t),e)}(t,function(e,n){return e&&zo(t,Ha(t),e)}(a)):function(t,e){return zo(t,Di(t),e)}(t,_r(a,t))}else{if(!ve[g])return i?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case X:return Mo(t);case M:case j:return new r(+t);case tt:return function(t,e){var n=e?Mo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case et:case nt:case rt:case ot:case it:case ut:case at:case st:case lt:return jo(t,n);case z:return new r;case H:case Q:return new r(t);case $:return function(t){var e=new t.constructor(t.source,It.exec(t));return e.lastIndex=t.lastIndex,e}(t);case Z:return new r;case K:return er?$t(er.call(t)):{}}}(t,g,f)}}u||(u=new pr);var y=u.get(t);if(y)return y;u.set(t,a),ya(t)?t.forEach(function(r){a.add(Er(r,e,n,r,t,u))}):ha(t)&&t.forEach(function(r,o){a.set(o,Er(r,e,n,o,t,u))});var m=d?o:(h?p?vi:gi:p?Ha:za)(t);return Me(m||t,function(r,o){m&&(r=t[o=r]),vr(a,o,Er(r,e,n,o,t,u))}),a}function Dr(t,e,n){var r=n.length;if(null==t)return!r;for(t=$t(t);r--;){var i=n[r],u=t[i];if(u===o&&!(i in t)||!(0,e[i])(u))return!1}return!0}function xr(t,e,n){if("function"!=typeof t)throw new Kt(u);return zi(function(){t.apply(o,n)},e)}function Sr(t,e,n,r){var o=-1,u=Ue,a=!0,s=t.length,l=[],c=e.length;if(!s)return l;n&&(e=Le(e,on(n))),r?(u=Be,a=!1):e.length>=i&&(u=an,a=!1,e=new fr(e));t:for(;++o-1},lr.prototype.set=function(t,e){var n=this.__data__,r=yr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},cr.prototype.clear=function(){this.size=0,this.__data__={hash:new sr,map:new(zn||lr),string:new sr}},cr.prototype.delete=function(t){var e=wi(this,t).delete(t);return this.size-=e?1:0,e},cr.prototype.get=function(t){return wi(this,t).get(t)},cr.prototype.has=function(t){return wi(this,t).has(t)},cr.prototype.set=function(t,e){var n=wi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},fr.prototype.add=fr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},fr.prototype.has=function(t){return this.__data__.has(t)},pr.prototype.clear=function(){this.__data__=new lr,this.size=0},pr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},pr.prototype.get=function(t){return this.__data__.get(t)},pr.prototype.has=function(t){return this.__data__.has(t)},pr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof lr){var r=n.__data__;if(!zn||r.length0&&n(a)?e>1?Rr(a,e-1,n,r,o):ze(o,a):r||(o[o.length]=a)}return o}var Fr=qo(),Ir=qo(!0);function Nr(t,e){return t&&Fr(t,e,za)}function Mr(t,e){return t&&Ir(t,e,za)}function jr(t,e){return Ve(e,function(e){return sa(t[e])})}function Vr(t,e){for(var n=0,r=(e=ko(e,t)).length;null!=t&&ne}function zr(t,e){return null!=t&&ee.call(t,e)}function Hr(t,e){return null!=t&&e in $t(t)}function Wr(t,e,n){for(var i=n?Be:Ue,u=t[0].length,a=t.length,s=a,l=r(a),c=1/0,f=[];s--;){var p=t[s];s&&e&&(p=Le(p,on(e))),c=Mn(p.length,c),l[s]=!n&&(e||u>=120&&p.length>=120)?new fr(s&&p):o}p=t[0];var h=-1,d=l[0];t:for(;++h=a?s:s*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)});r--;)t[r]=t[r].value;return t}(Xr(t,function(t,n,o){return{criteria:Le(e,function(e){return e(t)}),index:++r,value:t}}))}function io(t,e,n){for(var r=-1,o=e.length,i={};++r-1;)a!==t&&Ae.call(a,s,1),Ae.call(t,s,1);return t}function ao(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Ti(o)?Ae.call(t,o,1):Eo(t,o)}}return t}function so(t,e){return t+On(Un()*(e-t+1))}function lo(t,e){var n="";if(!t||e<1||e>S)return n;do{e%2&&(n+=t),(e=On(e/2))&&(t+=t)}while(e);return n}function co(t,e){return Hi(Vi(t,e,ds),t+"")}function fo(t,e,n,r){if(!fa(t))return t;for(var i=-1,u=(e=ko(e,t)).length,a=u-1,s=t;null!=s&&++ii?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var u=r(i);++o>>1,u=t[i];null!==u&&!_a(u)&&(n?u<=e:u=i){var c=e?null:ai(t);if(c)return yn(c);a=!1,o=an,l=new fr}else l=e?[]:s;t:for(;++r=r?t:go(t,e,n)}var Io=xn||function(t){return Ce.clearTimeout(t)};function No(t,e){if(e)return t.slice();var n=t.length,r=we?we(n):new t.constructor(n);return t.copy(r),r}function Mo(t){var e=new t.constructor(t.byteLength);return new be(e).set(new be(t)),e}function jo(t,e){var n=e?Mo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Vo(t,e){if(t!==e){var n=t!==o,r=null===t,i=t==t,u=_a(t),a=e!==o,s=null===e,l=e==e,c=_a(e);if(!s&&!c&&!u&&t>e||u&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!u&&!c&&t1?n[i-1]:o,a=i>2?n[2]:o;for(u=t.length>3&&"function"==typeof u?(i--,u):o,a&&ki(n[0],n[1],a)&&(u=i<3?o:u,i=1),e=$t(e);++r-1?i[u?e[a]:a]:o}}function Yo(t){return di(function(e){var n=e.length,r=n,i=ur.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new Kt(u);if(i&&!s&&"wrapper"==mi(a))var s=new ur([],!0)}for(r=s?r:n;++r1&&v.reverse(),p&&cs))return!1;var c=u.get(t);if(c&&u.get(e))return c==e;var h=-1,d=!0,g=n&p?new fr:o;for(u.set(t,e),u.set(e,t);++h-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Pt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Me(R,function(n){var r="_."+n[0];e&n[1]&&!Ue(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(Ot);return e?e[1].split(Tt):[]}(r),n)))}function Gi(t){var e=0,n=0;return function(){var r=jn(),i=D-(r-n);if(n=r,i>0){if(++e>=E)return arguments[0]}else e=0;return t.apply(o,arguments)}}function qi(t,e){var n=-1,r=t.length,i=r-1;for(e=e===o?r:e;++n1?t[e-1]:o;return n="function"==typeof n?(t.pop(),n):o,vu(t,n)});function Eu(t){var e=rr(t);return e.__chain__=!0,e}function Du(t,e){return e(t)}var xu=di(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return wr(e,t)};return!(e>1||this.__actions__.length)&&r instanceof ar&&Ti(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Du,args:[i],thisArg:o}),new ur(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(o),t})):this.thru(i)}),Su=Ho(function(t,e,n){ee.call(t,n)?++t[n]:br(t,n,1)}),Au=Ko(tu),Pu=Ko(eu);function Ou(t,e){return(ea(t)?Me:Ar)(t,bi(e,3))}function Tu(t,e){return(ea(t)?function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}:Pr)(t,bi(e,3))}var ku=Ho(function(t,e,n){ee.call(t,n)?t[n].push(e):br(t,n,[e])}),Ru=co(function(t,e,n){var o=-1,i="function"==typeof e,u=ra(t)?r(t.length):[];return Ar(t,function(t){u[++o]=i?Ie(e,t,n):Gr(t,e,n)}),u}),Fu=Ho(function(t,e,n){br(t,n,e)});function Iu(t,e){return(ea(t)?Le:Xr)(t,bi(e,3))}var Nu=Ho(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),Mu=co(function(t,e){if(null==t)return[];var n=e.length;return n>1&&ki(t,e[0],e[1])?e=[]:n>2&&ki(e[0],e[1],e[2])&&(e=[e[0]]),oo(t,Rr(e,1),[])}),ju=Sn||function(){return Ce.Date.now()};function Vu(t,e,n){return e=n?o:e,li(t,b,o,o,o,o,e=t&&null==e?t.length:e)}function Uu(t,e){var n;if("function"!=typeof e)throw new Kt(u);return t=xa(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var Bu=co(function(t,e,n){var r=h;if(n.length){var o=vn(n,_i(Bu));r|=m}return li(t,r,e,n,o)}),Lu=co(function(t,e,n){var r=h|d;if(n.length){var o=vn(n,_i(Lu));r|=m}return li(e,r,t,n,o)});function zu(t,e,n){var r,i,a,s,l,c,f=0,p=!1,h=!1,d=!0;if("function"!=typeof t)throw new Kt(u);function g(e){var n=r,u=i;return r=i=o,f=e,s=t.apply(u,n)}function v(t){var n=t-c;return c===o||n>=e||n<0||h&&t-f>=a}function y(){var t=ju();if(v(t))return m(t);l=zi(y,function(t){var n=e-(t-c);return h?Mn(n,a-(t-f)):n}(t))}function m(t){return l=o,d&&r?g(t):(r=i=o,s)}function _(){var t=ju(),n=v(t);if(r=arguments,i=this,c=t,n){if(l===o)return function(t){return f=t,l=zi(y,e),p?g(t):s}(c);if(h)return Io(l),l=zi(y,e),g(c)}return l===o&&(l=zi(y,e)),s}return e=Aa(e)||0,fa(n)&&(p=!!n.leading,a=(h="maxWait"in n)?Nn(Aa(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),_.cancel=function(){l!==o&&Io(l),f=0,r=c=i=l=o},_.flush=function(){return l===o?s:m(ju())},_}var Hu=co(function(t,e){return xr(t,1,e)}),Wu=co(function(t,e,n){return xr(t,Aa(e)||0,n)});function Gu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Kt(u);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(Gu.Cache||cr),n}function qu(t){if("function"!=typeof t)throw new Kt(u);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Gu.Cache=cr;var $u=Ro(function(t,e){var n=(e=1==e.length&&ea(e[0])?Le(e[0],on(bi())):Le(Rr(e,1),on(bi()))).length;return co(function(r){for(var o=-1,i=Mn(r.length,n);++o=e}),ta=qr(function(){return arguments}())?qr:function(t){return pa(t)&&ee.call(t,"callee")&&!Se.call(t,"callee")},ea=r.isArray,na=Pe?on(Pe):function(t){return pa(t)&&Br(t)==X};function ra(t){return null!=t&&ca(t.length)&&!sa(t)}function oa(t){return pa(t)&&ra(t)}var ia=kn||As,ua=Oe?on(Oe):function(t){return pa(t)&&Br(t)==j};function aa(t){if(!pa(t))return!1;var e=Br(t);return e==U||e==V||"string"==typeof t.message&&"string"==typeof t.name&&!ga(t)}function sa(t){if(!fa(t))return!1;var e=Br(t);return e==B||e==L||e==N||e==q}function la(t){return"number"==typeof t&&t==xa(t)}function ca(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=S}function fa(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function pa(t){return null!=t&&"object"==typeof t}var ha=Te?on(Te):function(t){return pa(t)&&Si(t)==z};function da(t){return"number"==typeof t||pa(t)&&Br(t)==H}function ga(t){if(!pa(t)||Br(t)!=G)return!1;var e=Ee(t);if(null===e)return!0;var n=ee.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&te.call(n)==ie}var va=ke?on(ke):function(t){return pa(t)&&Br(t)==$},ya=Re?on(Re):function(t){return pa(t)&&Si(t)==Z};function ma(t){return"string"==typeof t||!ea(t)&&pa(t)&&Br(t)==Q}function _a(t){return"symbol"==typeof t||pa(t)&&Br(t)==K}var ba=Fe?on(Fe):function(t){return pa(t)&&ca(t.length)&&!!ge[Br(t)]},wa=oi(Jr),Ca=oi(function(t,e){return t<=e});function Ea(t){if(!t)return[];if(ra(t))return ma(t)?bn(t):Lo(t);if(tn&&t[tn])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[tn]());var e=Si(t);return(e==z?dn:e==Z?yn:Ya)(t)}function Da(t){return t?(t=Aa(t))===x||t===-x?(t<0?-1:1)*A:t==t?t:0:0===t?t:0}function xa(t){var e=Da(t),n=e%1;return e==e?n?e-n:e:0}function Sa(t){return t?Cr(xa(t),0,O):0}function Aa(t){if("number"==typeof t)return t;if(_a(t))return P;if(fa(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=fa(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(xt,"");var n=Mt.test(t);return n||Vt.test(t)?_e(t.slice(2),n?2:8):Nt.test(t)?P:+t}function Pa(t){return zo(t,Ha(t))}function Oa(t){return null==t?"":wo(t)}var Ta=Wo(function(t,e){if(Ni(e)||ra(e))zo(e,za(e),t);else for(var n in e)ee.call(e,n)&&vr(t,n,e[n])}),ka=Wo(function(t,e){zo(e,Ha(e),t)}),Ra=Wo(function(t,e,n,r){zo(e,Ha(e),t,r)}),Fa=Wo(function(t,e,n,r){zo(e,za(e),t,r)}),Ia=di(wr),Na=co(function(t,e){t=$t(t);var n=-1,r=e.length,i=r>2?e[2]:o;for(i&&ki(e[0],e[1],i)&&(r=1);++n1),e}),zo(t,vi(t),n),r&&(n=Er(n,s|l|c,pi));for(var o=e.length;o--;)Eo(n,e[o]);return n}),$a=di(function(t,e){return null==t?{}:function(t,e){return io(t,e,function(e,n){return Va(t,n)})}(t,e)});function Za(t,e){if(null==t)return{};var n=Le(vi(t),function(t){return[t]});return e=bi(e),io(t,n,function(t,n){return e(t,n[0])})}var Qa=si(za),Ka=si(Ha);function Ya(t){return null==t?[]:un(t,za(t))}var Ja=Zo(function(t,e,n){return e=e.toLowerCase(),t+(n?Xa(e):e)});function Xa(t){return as(Oa(t).toLowerCase())}function ts(t){return(t=Oa(t))&&t.replace(Bt,cn).replace(se,"")}var es=Zo(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),ns=Zo(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),rs=$o("toLowerCase"),os=Zo(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),is=Zo(function(t,e,n){return t+(n?" ":"")+as(e)}),us=Zo(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),as=$o("toUpperCase");function ss(t,e,n){return t=Oa(t),(e=n?o:e)===o?function(t){return pe.test(t)}(t)?function(t){return t.match(ce)||[]}(t):function(t){return t.match(kt)||[]}(t):t.match(e)||[]}var ls=co(function(t,e){try{return Ie(t,o,e)}catch(n){return aa(n)?n:new Wt(n)}}),cs=di(function(t,e){return Me(e,function(e){e=Zi(e),br(t,e,Bu(t[e],t))}),t});function fs(t){return function(){return t}}var ps=Yo(),hs=Yo(!0);function ds(t){return t}function gs(t){return Kr("function"==typeof t?t:Er(t,s))}var vs=co(function(t,e){return function(n){return Gr(n,t,e)}}),ys=co(function(t,e){return function(n){return Gr(t,n,e)}});function ms(t,e,n){var r=za(e),o=jr(e,r);null!=n||fa(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=jr(e,za(e)));var i=!(fa(n)&&"chain"in n&&!n.chain),u=sa(t);return Me(o,function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__),o=n.__actions__=Lo(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,ze([this.value()],arguments))})}),t}function _s(){}var bs=ei(Le),ws=ei(je),Cs=ei(Ge);function Es(t){return Ri(t)?Xe(Zi(t)):function(t){return function(e){return Vr(e,t)}}(t)}var Ds=ri(),xs=ri(!0);function Ss(){return[]}function As(){return!1}var Ps,Os=ti(function(t,e){return t+e},0),Ts=ui("ceil"),ks=ti(function(t,e){return t/e},1),Rs=ui("floor"),Fs=ti(function(t,e){return t*e},1),Is=ui("round"),Ns=ti(function(t,e){return t-e},0);return rr.after=function(t,e){if("function"!=typeof e)throw new Kt(u);return t=xa(t),function(){if(--t<1)return e.apply(this,arguments)}},rr.ary=Vu,rr.assign=Ta,rr.assignIn=ka,rr.assignInWith=Ra,rr.assignWith=Fa,rr.at=Ia,rr.before=Uu,rr.bind=Bu,rr.bindAll=cs,rr.bindKey=Lu,rr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return ea(t)?t:[t]},rr.chain=Eu,rr.chunk=function(t,e,n){e=(n?ki(t,e,n):e===o)?1:Nn(xa(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var u=0,a=0,s=r(Pn(i/e));ui?0:i+n),(r=r===o||r>i?i:xa(r))<0&&(r+=i),r=n>r?0:Sa(r);n>>0)?(t=Oa(t))&&("string"==typeof e||null!=e&&!va(e))&&!(e=wo(e))&&hn(t)?Fo(bn(t),0,n):t.split(e,n):[]},rr.spread=function(t,e){if("function"!=typeof t)throw new Kt(u);return e=null==e?0:Nn(xa(e),0),co(function(n){var r=n[e],o=Fo(n,0,e);return r&&ze(o,r),Ie(t,this,o)})},rr.tail=function(t){var e=null==t?0:t.length;return e?go(t,1,e):[]},rr.take=function(t,e,n){return t&&t.length?go(t,0,(e=n||e===o?1:xa(e))<0?0:e):[]},rr.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?go(t,(e=r-(e=n||e===o?1:xa(e)))<0?0:e,r):[]},rr.takeRightWhile=function(t,e){return t&&t.length?xo(t,bi(e,3),!1,!0):[]},rr.takeWhile=function(t,e){return t&&t.length?xo(t,bi(e,3)):[]},rr.tap=function(t,e){return e(t),t},rr.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new Kt(u);return fa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),zu(t,e,{leading:r,maxWait:e,trailing:o})},rr.thru=Du,rr.toArray=Ea,rr.toPairs=Qa,rr.toPairsIn=Ka,rr.toPath=function(t){return ea(t)?Le(t,Zi):_a(t)?[t]:Lo($i(Oa(t)))},rr.toPlainObject=Pa,rr.transform=function(t,e,n){var r=ea(t),o=r||ia(t)||ba(t);if(e=bi(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:fa(t)&&sa(i)?or(Ee(t)):{}}return(o?Me:Nr)(t,function(t,r,o){return e(n,t,r,o)}),n},rr.unary=function(t){return Vu(t,1)},rr.union=pu,rr.unionBy=hu,rr.unionWith=du,rr.uniq=function(t){return t&&t.length?Co(t):[]},rr.uniqBy=function(t,e){return t&&t.length?Co(t,bi(e,2)):[]},rr.uniqWith=function(t,e){return e="function"==typeof e?e:o,t&&t.length?Co(t,o,e):[]},rr.unset=function(t,e){return null==t||Eo(t,e)},rr.unzip=gu,rr.unzipWith=vu,rr.update=function(t,e,n){return null==t?t:Do(t,e,To(n))},rr.updateWith=function(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:Do(t,e,To(n),r)},rr.values=Ya,rr.valuesIn=function(t){return null==t?[]:un(t,Ha(t))},rr.without=yu,rr.words=ss,rr.wrap=function(t,e){return Zu(To(e),t)},rr.xor=mu,rr.xorBy=_u,rr.xorWith=bu,rr.zip=wu,rr.zipObject=function(t,e){return Po(t||[],e||[],vr)},rr.zipObjectDeep=function(t,e){return Po(t||[],e||[],fo)},rr.zipWith=Cu,rr.entries=Qa,rr.entriesIn=Ka,rr.extend=ka,rr.extendWith=Ra,ms(rr,rr),rr.add=Os,rr.attempt=ls,rr.camelCase=Ja,rr.capitalize=Xa,rr.ceil=Ts,rr.clamp=function(t,e,n){return n===o&&(n=e,e=o),n!==o&&(n=(n=Aa(n))==n?n:0),e!==o&&(e=(e=Aa(e))==e?e:0),Cr(Aa(t),e,n)},rr.clone=function(t){return Er(t,c)},rr.cloneDeep=function(t){return Er(t,s|c)},rr.cloneDeepWith=function(t,e){return Er(t,s|c,e="function"==typeof e?e:o)},rr.cloneWith=function(t,e){return Er(t,c,e="function"==typeof e?e:o)},rr.conformsTo=function(t,e){return null==e||Dr(t,e,za(e))},rr.deburr=ts,rr.defaultTo=function(t,e){return null==t||t!=t?e:t},rr.divide=ks,rr.endsWith=function(t,e,n){t=Oa(t),e=wo(e);var r=t.length,i=n=n===o?r:Cr(xa(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},rr.eq=Yu,rr.escape=function(t){return(t=Oa(t))&&vt.test(t)?t.replace(dt,fn):t},rr.escapeRegExp=function(t){return(t=Oa(t))&&Dt.test(t)?t.replace(Et,"\\$&"):t},rr.every=function(t,e,n){var r=ea(t)?je:Or;return n&&ki(t,e,n)&&(e=o),r(t,bi(e,3))},rr.find=Au,rr.findIndex=tu,rr.findKey=function(t,e){return $e(t,bi(e,3),Nr)},rr.findLast=Pu,rr.findLastIndex=eu,rr.findLastKey=function(t,e){return $e(t,bi(e,3),Mr)},rr.floor=Rs,rr.forEach=Ou,rr.forEachRight=Tu,rr.forIn=function(t,e){return null==t?t:Fr(t,bi(e,3),Ha)},rr.forInRight=function(t,e){return null==t?t:Ir(t,bi(e,3),Ha)},rr.forOwn=function(t,e){return t&&Nr(t,bi(e,3))},rr.forOwnRight=function(t,e){return t&&Mr(t,bi(e,3))},rr.get=ja,rr.gt=Ju,rr.gte=Xu,rr.has=function(t,e){return null!=t&&Ai(t,e,zr)},rr.hasIn=Va,rr.head=ru,rr.identity=ds,rr.includes=function(t,e,n,r){t=ra(t)?t:Ya(t),n=n&&!r?xa(n):0;var o=t.length;return n<0&&(n=Nn(o+n,0)),ma(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&Qe(t,e,n)>-1},rr.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:xa(n);return o<0&&(o=Nn(r+o,0)),Qe(t,e,o)},rr.inRange=function(t,e,n){return e=Da(e),n===o?(n=e,e=0):n=Da(n),function(t,e,n){return t>=Mn(e,n)&&t=-S&&t<=S},rr.isSet=ya,rr.isString=ma,rr.isSymbol=_a,rr.isTypedArray=ba,rr.isUndefined=function(t){return t===o},rr.isWeakMap=function(t){return pa(t)&&Si(t)==J},rr.isWeakSet=function(t){return pa(t)&&"[object WeakSet]"==Br(t)},rr.join=function(t,e){return null==t?"":Fn.call(t,e)},rr.kebabCase=es,rr.last=au,rr.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=xa(n))<0?Nn(r+i,0):Mn(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):Ze(t,Ye,i,!0)},rr.lowerCase=ns,rr.lowerFirst=rs,rr.lt=wa,rr.lte=Ca,rr.max=function(t){return t&&t.length?Tr(t,ds,Lr):o},rr.maxBy=function(t,e){return t&&t.length?Tr(t,bi(e,2),Lr):o},rr.mean=function(t){return Je(t,ds)},rr.meanBy=function(t,e){return Je(t,bi(e,2))},rr.min=function(t){return t&&t.length?Tr(t,ds,Jr):o},rr.minBy=function(t,e){return t&&t.length?Tr(t,bi(e,2),Jr):o},rr.stubArray=Ss,rr.stubFalse=As,rr.stubObject=function(){return{}},rr.stubString=function(){return""},rr.stubTrue=function(){return!0},rr.multiply=Fs,rr.nth=function(t,e){return t&&t.length?ro(t,xa(e)):o},rr.noConflict=function(){return Ce._===this&&(Ce._=ue),this},rr.noop=_s,rr.now=ju,rr.pad=function(t,e,n){t=Oa(t);var r=(e=xa(e))?_n(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return ni(On(o),n)+t+ni(Pn(o),n)},rr.padEnd=function(t,e,n){t=Oa(t);var r=(e=xa(e))?_n(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Un();return Mn(t+i*(e-t+me("1e-"+((i+"").length-1))),e)}return so(t,e)},rr.reduce=function(t,e,n){var r=ea(t)?He:en,o=arguments.length<3;return r(t,bi(e,4),n,o,Ar)},rr.reduceRight=function(t,e,n){var r=ea(t)?We:en,o=arguments.length<3;return r(t,bi(e,4),n,o,Pr)},rr.repeat=function(t,e,n){return e=(n?ki(t,e,n):e===o)?1:xa(e),lo(Oa(t),e)},rr.replace=function(){var t=arguments,e=Oa(t[0]);return t.length<3?e:e.replace(t[1],t[2])},rr.result=function(t,e,n){var r=-1,i=(e=ko(e,t)).length;for(i||(i=1,t=o);++rS)return[];var n=O,r=Mn(t,O);e=bi(e),t-=O;for(var o=rn(r,e);++n=u)return t;var s=n-_n(r);if(s<1)return r;var l=a?Fo(a,0,s).join(""):t.slice(0,s);if(i===o)return l+r;if(a&&(s+=l.length-s),va(i)){if(t.slice(s).search(i)){var c,f=l;for(i.global||(i=Zt(i.source,Oa(It.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var p=c.index;l=l.slice(0,p===o?s:p)}}else if(t.indexOf(wo(i),s)!=s){var h=l.lastIndexOf(i);h>-1&&(l=l.slice(0,h))}return l+r},rr.unescape=function(t){return(t=Oa(t))&>.test(t)?t.replace(ht,wn):t},rr.uniqueId=function(t){var e=++ne;return Oa(t)+e},rr.upperCase=us,rr.upperFirst=as,rr.each=Ou,rr.eachRight=Tu,rr.first=ru,ms(rr,(Ps={},Nr(rr,function(t,e){ee.call(rr.prototype,e)||(Ps[e]=t)}),Ps),{chain:!1}),rr.VERSION="4.17.15",Me(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){rr[t].placeholder=rr}),Me(["drop","take"],function(t,e){ar.prototype[t]=function(n){n=n===o?1:Nn(xa(n),0);var r=this.__filtered__&&!e?new ar(this):this.clone();return r.__filtered__?r.__takeCount__=Mn(n,r.__takeCount__):r.__views__.push({size:Mn(n,O),type:t+(r.__dir__<0?"Right":"")}),r},ar.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Me(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;ar.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:bi(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Me(["head","last"],function(t,e){var n="take"+(e?"Right":"");ar.prototype[t]=function(){return this[n](1).value()[0]}}),Me(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");ar.prototype[t]=function(){return this.__filtered__?new ar(this):this[n](1)}}),ar.prototype.compact=function(){return this.filter(ds)},ar.prototype.find=function(t){return this.filter(t).head()},ar.prototype.findLast=function(t){return this.reverse().find(t)},ar.prototype.invokeMap=co(function(t,e){return"function"==typeof t?new ar(this):this.map(function(n){return Gr(n,t,e)})}),ar.prototype.reject=function(t){return this.filter(qu(bi(t)))},ar.prototype.slice=function(t,e){t=xa(t);var n=this;return n.__filtered__&&(t>0||e<0)?new ar(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(n=(e=xa(e))<0?n.dropRight(-e):n.take(e-t)),n)},ar.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ar.prototype.toArray=function(){return this.take(O)},Nr(ar.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=rr[r?"take"+("last"==e?"Right":""):e],u=r||/^find/.test(e);i&&(rr.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof ar,l=a[0],c=s||ea(e),f=function(t){var e=i.apply(rr,ze([t],a));return r&&p?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var p=this.__chain__,h=!!this.__actions__.length,d=u&&!p,g=s&&!h;if(!u&&c){e=g?e:new ar(this);var v=t.apply(e,a);return v.__actions__.push({func:Du,args:[f],thisArg:o}),new ur(v,p)}return d&&g?t.apply(this,a):(v=this.thru(f),d?r?v.value()[0]:v.value():v)})}),Me(["pop","push","shift","sort","splice","unshift"],function(t){var e=Yt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);rr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(ea(o)?o:[],t)}return this[n](function(n){return e.apply(ea(n)?n:[],t)})}}),Nr(ar.prototype,function(t,e){var n=rr[e];if(n){var r=n.name+"";ee.call(Zn,r)||(Zn[r]=[]),Zn[r].push({name:e,func:n})}}),Zn[Jo(o,d).name]=[{name:"wrapper",func:o}],ar.prototype.clone=function(){var t=new ar(this.__wrapped__);return t.__actions__=Lo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Lo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Lo(this.__views__),t},ar.prototype.reverse=function(){if(this.__filtered__){var t=new ar(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},ar.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=ea(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},rr.prototype.plant=function(t){for(var e,n=this;n instanceof ir;){var r=Ki(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},rr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof ar){var e=t;return this.__actions__.length&&(e=new ar(this)),(e=e.reverse()).__actions__.push({func:Du,args:[fu],thisArg:o}),new ur(e,this.__chain__)}return this.thru(fu)},rr.prototype.toJSON=rr.prototype.valueOf=rr.prototype.value=function(){return So(this.__wrapped__,this.__actions__)},rr.prototype.first=rr.prototype.head,tn&&(rr.prototype[tn]=function(){return this}),rr}();Ce._=Cn,(r=(function(){return Cn}).call(e,n,e,t))===o||(t.exports=r)}).call(this)}).call(this,n("YuTi")(t))},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},zUnb:function(t,e,n){"use strict";n.r(e);var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;a--)(o=t[a])&&(u=(i<3?o(u):i>3?o(e,n,u):o(e,n))||u);return i>3&&u&&Object.defineProperty(e,n,u),u}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function s(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function l(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function c(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Q);function ot(t){return t}function it(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),et(ot,t)}function ut(){return function(t){return t.lift(new at(t))}}var at=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new st(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),st=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(E),lt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new v).add(this.source.subscribe(new ft(this.getSubject(),this))),t.closed?(this._connection=null,t=v.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return ut()(this)},e}(O).prototype,ct={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:lt._subscribe},_isComplete:{value:lt._isComplete,writable:!0},getSubject:{value:lt.getSubject},connect:{value:lt.connect},refCount:{value:lt.refCount}},ft=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(I);function pt(){return new N}var ht="__parameters__";function dt(t,e,n){var r=function(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var i=[];for(var u in e)if(e.hasOwnProperty(u)){var a=e[u];i.push(u+":"+("string"==typeof a?JSON.stringify(a):Dt(a)))}o="{"+i.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+o+"]: "+t.replace(jt,"\n ")}var qt=function(){return function(){}}(),$t=function(){return function(){}}();function Zt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Qt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}var Kt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Yt=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ft)}(),Jt="ngDebugContext",Xt="ngOriginalError",te="ngErrorLogger";function ee(t){return t[Jt]}function ne(t){return t[Xt]}function re(t){for(var e=[],n=1;n',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();_e.hasOwnProperty(e)&&!ge.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(Ae(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),xe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Se=/([^\#-~ |!])/g;function Ae(t){return t.replace(/&/g,"&").replace(xe,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Se,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Pe(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Oe=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),Te=function(){return function(){}}(),ke=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Re=/^url\(([^)]+)\)$/,Fe=/([A-Z])/g;function Ie(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}var Ne=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Me()},t}(),Me=function(){for(var t=[],e=0;e-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providers[c]=t._def.providersByKey[e.tokenKey]={flags:5120,value:a.factory,deps:[],index:c,token:e.token},t._providers[c]=kr,t._providers[c]=jr(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{zt(i)}}function jr(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Mr(t,n[0]));case 2:return new e(Mr(t,n[0]),Mr(t,n[1]));case 3:return new e(Mr(t,n[0]),Mr(t,n[1]),Mr(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Qt(n,e),Yn.dirtyParentQueries(r),Br(r),r}function Ur(t,e,n){var r=e?hr(e,e.def.lastRenderRootNode):t.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);wr(n,2,o,i,void 0)}function Br(t){wr(t,3,null,null,void 0)}var Lr=new Object;function zr(t,e,n,r,o,i){return new Hr(t,e,n,r,o,i)}var Hr=function(t){function e(e,n,r,o,i,u){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=u,a.viewDefFactory=r,a}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=br(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,u=Yn.createRootView(t,e||[],n,o,r,Lr),a=Zn(u,i).instance;return n&&u.renderer.setAttribute($n(u,0).renderElement,"ng-version",wn.full),new Wr(u,new Zr(u),a)},e}(un),Wr=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new dn($n(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Jr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(on);function Gr(t,e,n){return new qr(t,e,n)}var qr=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new dn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Jr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=pr(t),t=t.parent;return t?new Jr(t,e):new Jr(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Vr(this._data,t);Yn.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Zr(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof pn||(o=i.get(qt));var u=t.create(i,r,void 0,o);return this.insert(u.hostView,e),u},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,u=t;return i=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=i.length),(o=u._view).viewContainerParent=this._view,Zt(i,r,o),function(t,e){var n=fr(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Yn.dirtyParentQueries(o),Ur(n,r>0?i[r-1]:null,o),u.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,u,a=this._embeddedViews.indexOf(t._view);return o=e,u=(i=(n=this._data).viewContainer._embeddedViews)[r=a],Qt(i,r),null==o&&(o=i.length),Zt(i,o,u),Yn.dirtyParentQueries(u),Br(u),Ur(n,o>0?i[o-1]:null,u),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Vr(this._data,t);e&&Yn.destroyView(e)},t.prototype.detach=function(t){var e=Vr(this._data,t);return e?new Zr(e):null},t}();function $r(t){return new Zr(t)}var Zr=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return wr(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){sr(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Yn.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Yn.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Yn.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Br(this._view),Yn.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Qr(t,e){return new Kr(t,e)}var Kr=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new Zr(Yn.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new dn($n(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(jn);function Yr(t,e){return new Jr(t,e)}var Jr=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Ue.THROW_IF_NOT_FOUND),Yn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:tr(t)},e)},t}();function Xr(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=$n(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return qn(t,n.nodeIndex).renderText;if(20240&n.flags)return Zn(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function to(t){return new eo(t.renderer)}var eo=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=l(Ar(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return wo(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Eo(t,e,n,o[0]));case 2:return r(Eo(t,e,n,o[0]),Eo(t,e,n,o[1]));case 3:return r(Eo(t,e,n,o[0]),Eo(t,e,n,o[1]),Eo(t,e,n,o[2]));default:for(var u=Array(i),a=0;a0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),wi=function(){function t(){this._applications=new Map,Ci.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Ci.findTestabilityInTree(this,t,e)},u([a("design:paramtypes",[])],t)}(),Ci=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Ei=new It("AllowMultipleToken"),Di=function(){return function(t,e){this.name=t,this.token=e}}();function xi(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new It(r);return function(e){void 0===e&&(e=[]);var i=Si();if(!i||i.injector.get(Ei,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var u=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(mi&&!mi.destroyed&&!mi.injector.get(Ei,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");mi=t.get(Ai);var e=t.get(Wo,null);e&&e.forEach(function(t){return t()})}(Ue.create({providers:u,name:r}))}return function(t){var e=Si();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function Si(){return mi&&!mi.destroyed?mi:null}var Ai=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new _i:("zone.js"===n?void 0:n)||new pi({enableLongStackTrace:ae()}),i=[{provide:pi,useValue:o}];return o.run(function(){var e=Ue.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),u=n.injector.get(oe,null);if(!u)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return Qo&&No(n.injector.get(Zo,Io)||Io),n.onDestroy(function(){return Ti(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){u.handleError(t)}})}),function(t,e,o){try{var i=((u=n.injector.get(Bo)).runInitializers(),u.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return en(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(a){throw e.runOutsideAngular(function(){return t.handleError(a)}),a}var u}(u,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Pi({},e);return function(t,e,n){return t.get(oi).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Oi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Dt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Pi(t,e){return Array.isArray(e)?e.reduce(Pi,t):i({},t,e)}var Oi=function(){function t(t,e,n,r,o,i){var u=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ae(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var a=new O(function(t){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){t.next(u._stable),t.complete()})}),s=new O(function(t){var e;u._zone.runOutsideAngular(function(){e=u._zone.onStable.subscribe(function(){pi.assertNotInAngularZone(),fi(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,t.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){pi.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof O?t[0]:it(n)(X(t,r))}(a,s.pipe(function(t){return ut()((e=pt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,ct);return r.source=t,r.subjectFactory=n,r})(t));var e}))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof un?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof pn?null:this._injector.get(qt),i=n.create(Ue.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var u=i.injector.get(bi,null);return u&&i.injector.get(wi).registerApplication(i.location.nativeElement,u),this._loadComponent(i),ae()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var t,n,r,o,i=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var u=e._tickScope();try{this._runningTick=!0;try{for(var a=s(this._views),l=a.next();!l.done;l=a.next())l.value.detectChanges()}catch(p){t={error:p}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}if(this._enforceNoNewChanges)try{for(var c=s(this._views),f=c.next();!f.done;f=c.next())f.value.checkNoChanges()}catch(h){r={error:h}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}}catch(d){this._zone.runOutsideAngular(function(){return i._exceptionHandler.handleError(d)})}finally{this._runningTick=!1,li(u)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Ti(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(qo,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Ti(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=si("ApplicationRef#tick()"),t}();function Ti(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var ki=function(){return function(){}}(),Ri=function(){return function(){}}(),Fi={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ii=function(){function t(t,e){this._compiler=t,this._config=e||Fi}return t.prototype.load=function(t){return!Qo&&this._compiler instanceof ri?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=l(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("zn8P")(o).then(function(t){return t[i]}).then(function(t){return Ni(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=l(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return Ni(t,r,o)})},t}();function Ni(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var Mi=function(){return function(t,e){this.name=t,this.callback=e}}(),ji=function(){function t(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof Vi&&e.addChild(this)}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Vi=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,c([o+1,0],e)),e.forEach(function(e){e.parent&&e.parent.removeChild(e),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof Vi&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof Vi&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof Vi&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(ji),Ui=new Map,Bi=function(t){return Ui.get(t)||null};function Li(t){Ui.set(t.nativeNode,t)}var zi=xi(null,"core",[{provide:Go,useValue:"unknown"},{provide:Ai,deps:[Ue]},{provide:wi,deps:[]},{provide:$o,deps:[]}]);function Hi(){return Nn}function Wi(){return Mn}function Gi(t){return t?(Qo&&No(t),t):Io}function qi(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}var $i=function(){return function(t){}}();function Zi(t,e,n,r,o,i){t|=1;var u=vr(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u.matchedQueries,matchedQueryIds:u.matchedQueryIds,references:u.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?br(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Jn},provider:null,text:null,query:null,ngContent:null}}function Qi(t,e,n,r,o,i,u,a,s,c,f,p){var h;void 0===u&&(u=[]),c||(c=Jn);var d=vr(n),g=d.matchedQueries,v=d.references,y=d.matchedQueryIds,m=null,_=null;i&&(m=(h=l(Ar(i),2))[0],_=h[1]),a=a||[];for(var b=new Array(a.length),w=0;w0)l=g,fu(g)||(c=g);else for(;l&&d===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&&fu(l)?l.renderParent:l}}return{factory:null,nodeFlags:u,rootNodeFlags:a,nodeMatchedQueries:s,flags:t,nodes:e,updateDirectives:n||Jn,updateRenderer:r||Jn,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:h}}function fu(t){return 0!=(1&t.flags)&&null===t.element.name}function pu(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function hu(t,e,n,r){var o=vu(t.root,t.renderer,t,e,n);return yu(o,t.component,r),mu(o),o}function du(t,e,n){var r=vu(t,t.renderer,null,null,e);return yu(r,n,n),mu(r),r}function gu(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,vu(t.root,o,t,e.element.componentProvider,n)}function vu(t,e,n,r,o){var i=new Array(o.nodes.length),u=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:u,initIndex:-1}}function yu(t,e,n){t.component=e,t.context=n}function mu(t){var e;dr(t)&&(e=$n(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&Xi(t,e,0,n)&&(h=!0),p>1&&Xi(t,e,1,r)&&(h=!0),p>2&&Xi(t,e,2,o)&&(h=!0),p>3&&Xi(t,e,3,i)&&(h=!0),p>4&&Xi(t,e,4,u)&&(h=!0),p>5&&Xi(t,e,5,a)&&(h=!0),p>6&&Xi(t,e,6,s)&&(h=!0),p>7&&Xi(t,e,7,l)&&(h=!0),p>8&&Xi(t,e,8,c)&&(h=!0),p>9&&Xi(t,e,9,f)&&(h=!0),h}(t,e,n,r,o,i,u,a,s,l,c,f);case 2:return function(t,e,n,r,o,i,u,a,s,l,c,f){var p=!1,h=e.bindings,d=h.length;if(d>0&&ur(t,e,0,n)&&(p=!0),d>1&&ur(t,e,1,r)&&(p=!0),d>2&&ur(t,e,2,o)&&(p=!0),d>3&&ur(t,e,3,i)&&(p=!0),d>4&&ur(t,e,4,u)&&(p=!0),d>5&&ur(t,e,5,a)&&(p=!0),d>6&&ur(t,e,6,s)&&(p=!0),d>7&&ur(t,e,7,l)&&(p=!0),d>8&&ur(t,e,8,c)&&(p=!0),d>9&&ur(t,e,9,f)&&(p=!0),p){var g=e.text.prefix;d>0&&(g+=lu(n,h[0])),d>1&&(g+=lu(r,h[1])),d>2&&(g+=lu(o,h[2])),d>3&&(g+=lu(i,h[3])),d>4&&(g+=lu(u,h[4])),d>5&&(g+=lu(a,h[5])),d>6&&(g+=lu(s,h[6])),d>7&&(g+=lu(l,h[7])),d>8&&(g+=lu(c,h[8])),d>9&&(g+=lu(f,h[9]));var v=qn(t,e.nodeIndex).renderText;t.renderer.setValue(v,g)}return p}(t,e,n,r,o,i,u,a,s,l,c,f);case 16384:return function(t,e,n,r,o,i,u,a,s,l,c,f){var p=Zn(t,e.nodeIndex),h=p.instance,d=!1,g=void 0,v=e.bindings.length;return v>0&&ir(t,e,0,n)&&(d=!0,g=xo(t,p,e,0,n,g)),v>1&&ir(t,e,1,r)&&(d=!0,g=xo(t,p,e,1,r,g)),v>2&&ir(t,e,2,o)&&(d=!0,g=xo(t,p,e,2,o,g)),v>3&&ir(t,e,3,i)&&(d=!0,g=xo(t,p,e,3,i,g)),v>4&&ir(t,e,4,u)&&(d=!0,g=xo(t,p,e,4,u,g)),v>5&&ir(t,e,5,a)&&(d=!0,g=xo(t,p,e,5,a,g)),v>6&&ir(t,e,6,s)&&(d=!0,g=xo(t,p,e,6,s,g)),v>7&&ir(t,e,7,l)&&(d=!0,g=xo(t,p,e,7,l,g)),v>8&&ir(t,e,8,c)&&(d=!0,g=xo(t,p,e,8,c,g)),v>9&&ir(t,e,9,f)&&(d=!0,g=xo(t,p,e,9,f,g)),g&&h.ngOnChanges(g),65536&e.flags&&Gn(t,256,e.nodeIndex)&&h.ngOnInit(),262144&e.flags&&h.ngDoCheck(),d}(t,e,n,r,o,i,u,a,s,l,c,f);case 32:case 64:case 128:return function(t,e,n,r,o,i,u,a,s,l,c,f){var p=e.bindings,h=!1,d=p.length;if(d>0&&ur(t,e,0,n)&&(h=!0),d>1&&ur(t,e,1,r)&&(h=!0),d>2&&ur(t,e,2,o)&&(h=!0),d>3&&ur(t,e,3,i)&&(h=!0),d>4&&ur(t,e,4,u)&&(h=!0),d>5&&ur(t,e,5,a)&&(h=!0),d>6&&ur(t,e,6,s)&&(h=!0),d>7&&ur(t,e,7,l)&&(h=!0),d>8&&ur(t,e,8,c)&&(h=!0),d>9&&ur(t,e,9,f)&&(h=!0),h){var g=Qn(t,e.nodeIndex),v=void 0;switch(201347067&e.flags){case 32:v=new Array(p.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=u),d>5&&(v[5]=a),d>6&&(v[6]=s),d>7&&(v[7]=l),d>8&&(v[8]=c),d>9&&(v[9]=f);break;case 64:v={},d>0&&(v[p[0].name]=n),d>1&&(v[p[1].name]=r),d>2&&(v[p[2].name]=o),d>3&&(v[p[3].name]=i),d>4&&(v[p[4].name]=u),d>5&&(v[p[5].name]=a),d>6&&(v[p[6].name]=s),d>7&&(v[p[7].name]=l),d>8&&(v[p[8].name]=c),d>9&&(v[p[9].name]=f);break;case 128:var y=n;switch(d){case 1:v=y.transform(n);break;case 2:v=y.transform(r);break;case 3:v=y.transform(r,o);break;case 4:v=y.transform(r,o,i);break;case 5:v=y.transform(r,o,i,u);break;case 6:v=y.transform(r,o,i,u,a);break;case 7:v=y.transform(r,o,i,u,a,s);break;case 8:v=y.transform(r,o,i,u,a,s,l);break;case 9:v=y.transform(r,o,i,u,a,s,l,c);break;case 10:v=y.transform(r,o,i,u,a,s,l,c,f)}}g.value=v}return h}(t,e,n,r,o,i,u,a,s,l,c,f);default:throw"unreachable"}}(t,e,r,o,i,u,a,s,l,f,p,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&ar(t,e,0,n),p>1&&ar(t,e,1,r),p>2&&ar(t,e,2,o),p>3&&ar(t,e,3,i),p>4&&ar(t,e,4,u),p>5&&ar(t,e,5,a),p>6&&ar(t,e,6,s),p>7&&ar(t,e,7,l),p>8&&ar(t,e,8,c),p>9&&ar(t,e,9,f)}(t,e,r,o,i,u,a,s,l,c,f,p):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);Bu.forEach(function(e,r){if(i.has(Ct(r).providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:yr(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[tr(r)]=o}})}}(t=t.factory(function(){return Jn})),t):t}(r))}var Uu=new Map,Bu=new Map,Lu=new Map;function zu(t){var e;Uu.set(t.token,t),"function"==typeof t.token&&(e=Ct(t.token))&&"function"==typeof e.providedIn&&Bu.set(t.token,t)}function Hu(t,e){var n=br(e.viewDefFactory),r=br(n.nodes[0].element.componentView);Lu.set(t,r)}function Wu(){Uu.clear(),Bu.clear(),Lu.clear()}function Gu(t){if(0===Uu.size)return t;var e=function(t){for(var e=[],n=null,r=0;r0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Da.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Da.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Da.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Ca),Aa=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return Da.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Da.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Da.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Da.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Ca),Pa=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Oa=new It("UseV4Plurals"),Ta=function(){return function(){}}(),ka=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=To[e];if(n)return n;var r=e.split("-")[0];if(n=To[r])return n;if("en"===r)return Fo;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[ko.PluralCase]}(e||this.locale)(t)){case Pa.Zero:return"zero";case Pa.One:return"one";case Pa.Two:return"two";case Pa.Few:return"few";case Pa.Many:return"many";default:return"other"}},e}(Ta),Ra=function(){return function(){}}(),Fa=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return t.prototype.getValue=function(){return null},t.prototype.setClass=function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},t.prototype.setNgClass=function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Xe(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},t.prototype.applyChanges=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Dt(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t}(),Ia=function(t){function e(e){return t.call(this,e)||this}return o(e,t),Object.defineProperty(e.prototype,"klass",{set:function(t){this._delegate.setClass(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(t){this._delegate.setNgClass(t)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){this._delegate.applyChanges()},e}(function(){function t(t){this._delegate=t}return t.prototype.getValue=function(){return this._delegate.getValue()},t.ngDirectiveDef=void 0,t}()),Na=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Ma=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){ae()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new Na(null,e._ngForOf,-1,-1),null===o?void 0:o),u=new ja(t,i);n.push(u)}else null==o?e._viewContainer.remove(null===r?void 0:r):null!==r&&(i=e._viewContainer.get(r),e._viewContainer.move(i,o),u=new ja(t,i),n.push(u))});for(var r=0;r0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?us(function(e,n){return t(e,n,r)}):ot,fs(1),n?_s(e):ys(function(){return new ts}))}}function Es(t){return function(e){var n=new Ds(t),r=e.lift(n);return n.caught=r}}var Ds=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new xs(t,this.selector,this.caught))},t}(),xs=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(o){return void t.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var r=new V(this,void 0,void 0);this.add(r),Z(this,n,void 0,void 0,r)}},e}(Q);function Ss(t){return function(e){return 0===t?Qa():e.lift(new As(t))}}var As=function(){function t(t){if(this.total=t,this.total<0)throw new cs}return t.prototype.call=function(t,e){return e.subscribe(new Ps(t,this.total))},t}(),Ps=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(E);function Os(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?us(function(e,n){return t(e,n,r)}):ot,Ss(1),n?_s(e):ys(function(){return new ts}))}}var Ts=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new ks(t,this.predicate,this.thisArg,this.source))},t}(),ks=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(E);function Rs(t,e){return"function"==typeof e?function(n){return n.pipe(Rs(function(n,r){return tt(t(n,r)).pipe(K(function(t,o){return e(n,t,r,o)}))}))}:function(e){return e.lift(new Fs(t))}}var Fs=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Is(t,this.project))},t}(),Is=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return o(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new V(this,void 0,void 0);this.destination.add(o),this.innerSubscription=Z(this,t,e,n,o)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(Q);function Ns(){for(var t=[],e=0;e=2&&(n=!0),function(r){return r.lift(new js(t,e,n))}}var js=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Vs(t,this.accumulator,this.seed,this.hasSeed))},t}(),Vs=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(E);function Us(t,e){return et(t,e,1)}var Bs=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Ls(t,this.callback))},t}(),Ls=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new v(n)),r}return o(e,t),e}(E),zs=null;function Hs(){return zs}var Ws,Gs=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;u||(u=t[i]=[]);var s=Ol(e)?Zone.root:Zone.current;if(0===u.length)u.push({zone:s,handler:o});else{for(var l=!1,c=0;c-1},e}(sl),jl=["alt","control","meta","shift"],Vl={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Ul=function(t){function e(e){return t.call(this,e)||this}var n;return o(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var o=n.parseEventName(e),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Hs().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(e.pop()),i="";if(jl.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=o,0!=e.length||0===o.length)return null;var u={};return u.domEventName=r,u.fullKey=i,u},e.getEventFullKey=function(t){var e="",n=Hs().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),jl.forEach(function(r){r!=n&&(0,Vl[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(o){n.getEventFullKey(o)===t&&r.runGuarded(function(){return e(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(sl),Bl=function(){return function(){}}(),Ll=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Oe.NONE:return e;case Oe.HTML:return e instanceof Hl?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{de=de||new se(t);var r=e?String(e):"";n=de.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=de.getInertBodyElement(r)}while(r!==i);var u=new De,a=u.sanitizeChildren(Pe(n)||n);return ae()&&u.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n)for(var s=Pe(n)||n;s.firstChild;)s.removeChild(s.firstChild)}}(this._doc,String(e)));case Oe.STYLE:return e instanceof Wl?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Re);return e&&fe(e[1])===e[1]||t.match(ke)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Oc(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Tc(t){return nn(t)?t:en(t)?tt(Promise.resolve(t)):Ya(t)}function kc(t,e,n){return n?function(t,e){return Sc(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Nc(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!Nc(u=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Nc(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var u=o.slice(0,n.segments.length),a=o.slice(n.segments.length);return!!Nc(n.segments,u)&&!!n.children[gc]&&e(n.children[gc],r,a)}(e,n,n.segments)}(t.root,e.root)}var Rc=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=yc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Uc.serialize(this)},t}(),Fc=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Oc(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Bc(this)},t}(),Ic=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=yc(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return qc(this)},t}();function Nc(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Mc(t,e){var n=[];return Oc(t.children,function(t,r){r===gc&&(n=n.concat(e(t,r)))}),Oc(t.children,function(t,r){r!==gc&&(n=n.concat(e(t,r)))}),n}var jc=function(){return function(){}}(),Vc=function(){function t(){}return t.prototype.parse=function(t){var e=new Yc(t);return new Rc(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Bc(e);if(n){var r=e.children[gc]?t(e.children[gc],!1):"",o=[];return Oc(e.children,function(e,n){n!==gc&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Mc(e,function(n,r){return r===gc?[t(e.children[gc],!1)]:[r+":"+t(n,!1)]});return Bc(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return zc(t)+"="+zc(e)}).join("&"):zc(t)+"="+zc(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Uc=new Vc;function Bc(t){return t.segments.map(function(t){return qc(t)}).join("/")}function Lc(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function zc(t){return Lc(t).replace(/%3B/gi,";")}function Hc(t){return Lc(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wc(t){return decodeURIComponent(t)}function Gc(t){return Wc(t.replace(/\+/g,"%20"))}function qc(t){return""+Hc(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Hc(t)+"="+Hc(e[t])}).join(""));var e}var $c=/^[^\/()?;=#]+/;function Zc(t){var e=t.match($c);return e?e[0]:""}var Qc=/^[^=?&#]+/,Kc=/^[^?&#]+/,Yc=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Fc([],{}):new Fc([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[gc]=new Fc(t,e)),n},t.prototype.parseSegment=function(){var t=Zc(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Ic(Wc(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Zc(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Zc(this.remaining);r&&this.capture(n=r)}t[Wc(e)]=Wc(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Qc))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(Kc);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Gc(n),u=Gc(r);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(t[i]=a=[a]),a.push(u)}else t[i]=u}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Zc(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=gc);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[gc]:new Fc([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Jc=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=Xc(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=Xc(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=tf(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return tf(t,this._root).map(function(t){return t.value})},t}();function Xc(t,e){var n,r;if(t===e.value)return e;try{for(var o=s(e.children),i=o.next();!i.done;i=o.next()){var u=Xc(t,i.value);if(u)return u}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function tf(t,e){var n,r;if(t===e.value)return[e];try{for(var o=s(e.children),i=o.next();!i.done;i=o.next()){var u=tf(t,i.value);if(u.length)return u.unshift(e),u}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[]}var ef=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function nf(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var rf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,cf(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Jc);function of(t,e){var n=function(t,e){var n=new sf([],{},{},"",{},gc,e,null,t.root,-1,{});return new lf("",new ef(n,[]))}(t,e),r=new Ja([new Ic("",{})]),o=new Ja({}),i=new Ja({}),u=new Ja({}),a=new Ja(""),s=new uf(r,o,u,a,i,gc,e,n.root);return s.snapshot=n.root,new rf(new ef(s,[]),n)}var uf=function(){function t(t,e,n,r,o,i,u,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=u,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(K(function(t){return yc(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(K(function(t){return yc(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function af(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],u=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(u.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var sf=function(){function t(t,e,n,r,o,i,u,a,s,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=u,this.routeConfig=a,this._urlSegment=s,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=yc(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=yc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),lf=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,cf(r,n),r}return o(e,t),e.prototype.toString=function(){return ff(this._root)},e}(Jc);function cf(t,e){e.value._routerState=t,e.children.forEach(function(e){return cf(t,e)})}function ff(t){var e=t.children.length>0?" { "+t.children.map(ff).join(", ")+" } ":"";return""+t.value+e}function pf(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Sc(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Sc(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&df(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Pc(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),yf=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function mf(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[gc]:""+t}function _f(t,e,n){if(t||(t=new Fc([],{})),0===t.segments.length&&t.hasChildren())return bf(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var u=t.segments[o],a=mf(n[r]),s=r0&&void 0===a)break;if(a&&s&&"object"==typeof s&&void 0===s.outlets){if(!Df(a,s,u))return i;r+=2}else{if(!Df(a,{},u))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new Fc([],((r={})[gc]=t,r)):t;return new Rc(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(K(function(t){return new Fc([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Ya({});var i=[],u=[],a={};return Oc(n,function(n,o){var s,l,c=(s=o,l=n,r.expandSegmentGroup(t,e,l,s)).pipe(K(function(t){return a[o]=t}));o===gc?i.push(c):u.push(c)}),Ya.apply(null,i.concat(u)).pipe(is(),Cs(),K(function(){return a}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var u=this;return Ya.apply(void 0,c(n)).pipe(K(function(a){return u.expandSegmentAgainstRoute(t,e,n,a,r,o,i).pipe(Es(function(t){if(t instanceof Of)return Ya(null);throw t}))}),is(),Os(function(t){return!!t}),Es(function(t,n){if(t instanceof ts||"EmptyError"===t.name){if(u.noLeftoversInUrl(e,r,o))return Ya(new Fc([],{}));throw new Of(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,u){return Vf(r)!==i?kf(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):kf(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Rf(i):this.lineralizeSegments(n,i).pipe(et(function(n){var i=new Fc(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var u=this,a=Nf(e,r,o),s=a.consumedSegments,l=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return kf(e);var f=this.applyRedirectCommands(s,r.redirectTo,c);return r.redirectTo.startsWith("/")?Rf(f):this.lineralizeSegments(r,f).pipe(et(function(r){return u.expandSegment(t,e,n,r.concat(o.slice(l)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(K(function(t){return n._loadedConfig=t,new Fc(r,{})})):Ya(new Fc(r,{}));var u=Nf(e,n,r),a=u.consumedSegments,l=u.lastChild;if(!u.matched)return kf(e);var c=r.slice(l);return this.getChildConfig(t,n,r).pipe(et(function(t){var n=t.module,r=t.routes,u=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return jf(t,e,n)&&Vf(n)!==gc})}(t,n)?{segmentGroup:Mf(new Fc(e,function(t,e){var n,r,o={};o[gc]=e;try{for(var i=s(t),u=i.next();!u.done;u=i.next()){var a=u.value;""===a.path&&Vf(a)!==gc&&(o[Vf(a)]=new Fc([],{}))}}catch(l){n={error:l}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new Fc(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return jf(t,e,n)})}(t,n)?{segmentGroup:Mf(new Fc(t.segments,function(t,e,n,r){var o,u,a={};try{for(var l=s(n),c=l.next();!c.done;c=l.next()){var f=c.value;jf(t,e,f)&&!r[Vf(f)]&&(a[Vf(f)]=new Fc([],{}))}}catch(p){o={error:p}}finally{try{c&&!c.done&&(u=l.return)&&u.call(l)}finally{if(o)throw o.error}}return i({},r,a)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,a,c,r),l=u.segmentGroup,f=u.slicedSegments;return 0===f.length&&l.hasChildren()?o.expandChildren(n,r,l).pipe(K(function(t){return new Fc(a,t)})):0===r.length&&0===f.length?Ya(new Fc(a,{})):o.expandSegment(n,l,r,f,gc,!0).pipe(K(function(t){return new Fc(a.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?Ya(new wc(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ya(e._loadedConfig):function(t,e,n){var r,o=e.canLoad;return o&&0!==o.length?tt(o).pipe(K(function(r){var o,i=t.get(r);if(function(t){return t&&Af(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!Af(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return Tc(o)})).pipe(is(),(r=function(t){return!0===t},function(t){return t.lift(new Ts(r,void 0,t))})):Ya(!0)}(t.injector,e,n).pipe(et(function(n){return n?r.configLoader.load(t.injector,e).pipe(K(function(t){return e._loadedConfig=t,t})):function(t){return new O(function(e){return e.error(_c("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):Ya(new wc([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Ya(n);if(r.numberOfChildren>1||!r.children[gc])return Ff(t.redirectTo);r=r.children[gc]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new Rc(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Oc(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),u={};return Oc(e.children,function(e,i){u[i]=o.createSegmentGroup(t,e,n,r)}),new Fc(i,u)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=s(e),u=i.next();!u.done;u=i.next()){var a=u.value;if(a.path===t.path)return e.splice(o),a;o++}}catch(l){n={error:l}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function Nf(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||bc)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Mf(t){if(1===t.numberOfChildren&&t.children[gc]){var e=t.children[gc];return new Fc(t.segments.concat(e.segments),e.children)}return t}function jf(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Vf(t){return t.outlet||gc}var Uf=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),Bf=function(){return function(t,e){this.component=t,this.route=e}}();function Lf(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function zf(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=nf(e);return t.children.forEach(function(t){!function(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=t.value,u=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(u&&i.routeConfig===u.routeConfig){var s=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Nc(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Nc(t.url,e.url)||!Sc(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hf(t,e)||!Sc(t.queryParams,e.queryParams);case"paramsChange":default:return!hf(t,e)}}(u,i,i.routeConfig.runGuardsAndResolvers);s?o.canActivateChecks.push(new Uf(r)):(i.data=u.data,i._resolvedData=u._resolvedData),zf(t,e,i.component?a?a.children:null:n,r,o),s&&o.canDeactivateChecks.push(new Bf(a&&a.outlet&&a.outlet.component||null,u))}else u&&Hf(e,a,o),o.canActivateChecks.push(new Uf(r)),zf(t,null,i.component?a?a.children:null:n,r,o)}(t,i[t.value.outlet],n,r.concat([t.value]),o),delete i[t.value.outlet]}),Oc(i,function(t,e){return Hf(t,n.getContext(e),o)}),o}function Hf(t,e,n){var r=nf(t),o=t.value;Oc(r,function(t,r){Hf(t,o.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Bf(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}var Wf=Symbol("INITIAL_VALUE");function Gf(){return Rs(function(t){return(function(){for(var t=[],e=0;e0?X(t,n):Qa(n):Ka(t[0]),e)}}(Wf))}))).pipe(Ms(function(t,e){var n=!1;return e.reduce(function(t,r,o){if(t!==Wf)return t;if(r===Wf&&(n=!0),!n){if(!1===r)return r;if(o===e.length-1||Pf(r))return r}return t},t)},Wf),us(function(t){return t!==Wf}),K(function(t){return Pf(t)?t:!0===t}),Ss(1))})}function qf(t,e){return null!==t&&e&&e(new fc(t)),Ya(!0)}function $f(t,e){return null!==t&&e&&e(new lc(t)),Ya(!0)}function Zf(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Ya(r.map(function(r){return os(function(){var o,i=Lf(r,e,n);if(function(t){return t&&Af(t.canActivate)}(i))o=Tc(i.canActivate(e,t));else{if(!Af(i))throw new Error("Invalid CanActivate guard");o=Tc(i(e,t))}return o.pipe(Os())})})).pipe(Gf()):Ya(!0)}function Qf(t,e,n){var r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return os(function(){return Ya(e.guards.map(function(o){var i,u=Lf(o,e.node,n);if(function(t){return t&&Af(t.canActivateChild)}(u))i=Tc(u.canActivateChild(r,t));else{if(!Af(u))throw new Error("Invalid CanActivateChild guard");i=Tc(u(r,t))}return i.pipe(Os())})).pipe(Gf())})});return Ya(o).pipe(Gf())}var Kf=function(){return function(){}}(),Yf=function(){function t(t,e,n,r,o,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=tp(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,gc),n=new sf([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},gc,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ef(n,e),o=new lf(this.url,r);return this.inheritParamsAndData(o._root),Ya(o)}catch(u){return new O(function(t){return t.error(u)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=af(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=Mc(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===gc?-1:e.value.outlet===gc?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){var o,i;try{for(var u=s(t),a=u.next();!a.done;a=u.next()){var l=a.value;try{return this.processSegmentAgainstRoute(l,e,n,r)}catch(c){if(!(c instanceof Kf))throw c}}}catch(f){o={error:f}}finally{try{a&&!a.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new Kf},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new Kf;if((t.outlet||gc)!==r)throw new Kf;var o,u=[],a=[];if("**"===t.path){var s=n.length>0?Pc(n).parameters:{};o=new sf(n,s,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,rp(t),r,t.component,t,Jf(e),Xf(e)+n.length,op(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Kf;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||bc)(n,t,e);if(!r)throw new Kf;var o={};Oc(r.posParams,function(t,e){o[e]=t.path});var u=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:u}}(e,t,n);u=l.consumedSegments,a=n.slice(l.lastChild),o=new sf(u,l.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,rp(t),r,t.component,t,Jf(e),Xf(e)+u.length,op(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=tp(e,u,a,c,this.relativeLinkResolution),p=f.segmentGroup,h=f.slicedSegments;if(0===h.length&&p.hasChildren()){var d=this.processChildren(c,p);return[new ef(o,d)]}if(0===c.length&&0===h.length)return[new ef(o,[])];var g=this.processSegment(c,p,h,gc);return[new ef(o,g)]},t}();function Jf(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Xf(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function tp(t,e,n,r,o){if(n.length>0&&function(t,e,n){return r.some(function(n){return ep(t,e,n)&&np(n)!==gc})}(t,n)){var u=new Fc(e,function(t,e,n,r){var o,i,u={};u[gc]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var a=s(n),l=a.next();!l.done;l=a.next()){var c=l.value;if(""===c.path&&np(c)!==gc){var f=new Fc([],{});f._sourceSegment=t,f._segmentIndexShift=e.length,u[np(c)]=f}}}catch(p){o={error:p}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return u}(t,e,r,new Fc(n,t.children)));return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return ep(t,e,n)})}(t,n)){var a=new Fc(t.segments,function(t,e,n,r,o,u){var a,l,c={};try{for(var f=s(r),p=f.next();!p.done;p=f.next()){var h=p.value;if(ep(t,n,h)&&!o[np(h)]){var d=new Fc([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===u?t.segments.length:e.length,c[np(h)]=d}}}catch(g){a={error:g}}finally{try{p&&!p.done&&(l=f.return)&&l.call(f)}finally{if(a)throw a.error}}return i({},o,c)}(t,e,n,r,t.children,o));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var l=new Fc(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function ep(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function np(t){return t.outlet||gc}function rp(t){return t.data||{}}function op(t){return t.resolve||{}}function ip(t,e,n,r){var o=Lf(t,e,r);return Tc(o.resolve?o.resolve(e,n):o(e,n))}function up(t){return function(e){return e.pipe(Rs(function(e){var n=t(e);return n?tt(n).pipe(K(function(){return e})):tt([e])}))}}var ap=function(){return function(){}}(),sp=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),lp=new It("ROUTES"),cp=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(K(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new wc(Ac(o.injector.get(lp)).map(xc),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?tt(this.loader.load(t)):Tc(t()).pipe(et(function(t){return t instanceof $t?Ya(t):tt(e.compiler.compileModuleAsync(t))}))},t}(),fp=function(){return function(){}}(),pp=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function hp(t){throw t}function dp(t,e,n){return e.parse("/")}function gp(t,e){return Ya(null)}var vp=function(){function t(t,e,n,r,o,i,u,a){var s=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new N,this.errorHandler=hp,this.malformedUriErrorHandler=dp,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:gp,afterPreactivation:gp},this.urlHandlingStrategy=new pp,this.routeReuseStrategy=new sp,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(qt),this.console=o.get($o);var l=o.get(pi);this.isNgZoneEnabled=l instanceof pi,this.resetConfig(a),this.currentUrlTree=new Rc(new Fc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new cp(i,u,function(t){return s.triggerEvent(new ac(t))},function(t){return s.triggerEvent(new sc(t))}),this.routerState=of(this.currentUrlTree,this.rootComponentType),this.transitions=new Ja({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 t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(us(function(t){return 0!==t.id}),K(function(t){return i({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Rs(function(t){var r,o,u,a,l=!1,c=!1;return Ya(t).pipe(ds(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?i({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Rs(function(t){var r,o,u,a,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ya(t).pipe(Rs(function(t){var r=e.transitions.getValue();return n.next(new Jl(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?Za:[t]}),Rs(function(t){return Promise.resolve(t)}),(r=e.ngModule.injector,o=e.configLoader,u=e.urlSerializer,a=e.config,function(t){return t.pipe(Rs(function(t){return function(e,n,r,o,i){return new If(e,n,r,t.extractedUrl,i).apply()}(r,o,u,0,a).pipe(K(function(e){return i({},t,{urlAfterRedirects:e})}))}))}),ds(function(t){e.currentNavigation=i({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,n,r,o,u){return function(r){return r.pipe(et(function(r){return function(t,e,n,r,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new Yf(t,e,n,r,o,i).recognize()}(t,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,e.serializeUrl(a)),o,u).pipe(K(function(t){return i({},r,{targetSnapshot:t})}));var a}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),ds(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)}),ds(function(t){var r=new nc(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var l=t.extractedUrl,c=t.source,f=t.restoredState,p=t.extras,h=new Jl(t.id,e.serializeUrl(l),c,f);n.next(h);var d=of(l,e.rootComponentType).snapshot;return Ya(i({},t,{targetSnapshot:d,urlAfterRedirects:l,extras:i({},p,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Za}),up(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),ds(function(t){var n=new rc(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),K(function(t){return i({},t,{guards:(n=t.targetSnapshot,r=t.currentSnapshot,o=e.rootContexts,u=n._root,zf(u,r?r._root:null,o,[u.value]))});var n,r,o,u}),function(t,e){return function(n){return n.pipe(et(function(n){var r=n.targetSnapshot,o=n.currentSnapshot,u=n.guards,a=u.canActivateChecks,s=u.canDeactivateChecks;return 0===s.length&&0===a.length?Ya(i({},n,{guardsResult:!0})):function(t,e,n,r){return tt(s).pipe(et(function(t){return function(t,e,n,r,o){var i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?Ya(i.map(function(i){var u,a=Lf(i,e,o);if(function(t){return t&&Af(t.canDeactivate)}(a))u=Tc(a.canDeactivate(t,e,n,r));else{if(!Af(a))throw new Error("Invalid CanDeactivate guard");u=Tc(a(t,e,n,r))}return u.pipe(Os())})).pipe(Gf()):Ya(!0)}(t.component,t.route,n,e,r)}),Os(function(t){return!0!==t},!0))}(0,r,o,t).pipe(et(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return tt(a).pipe(Us(function(e){return tt([$f(e.route.parent,r),qf(e.route,r),Qf(t,e.path,n),Zf(t,e.route,n)]).pipe(is(),Os(function(t){return!0!==t},!0))}),Os(function(t){return!0!==t},!0))}(r,0,t,e):Ya(n)}),K(function(t){return i({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),ds(function(t){if(Pf(t.guardsResult)){var n=_c('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),ds(function(t){var n=new oc(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),us(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new tc(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),up(function(t){if(t.guards.canActivateChecks.length)return Ya(t).pipe(ds(function(t){var n=new ic(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(et(function(t){var e=t.targetSnapshot,o=t.guards.canActivateChecks;return o.length?tt(o).pipe(Us(function(t){return function(t,n,r,o){return function(t,e,n,r){var o=Object.keys(t);if(0===o.length)return Ya({});if(1===o.length){var i=o[0];return ip(t[i],e,n,r).pipe(K(function(t){var e;return(e={})[i]=t,e}))}var u={};return tt(o).pipe(et(function(o){return ip(t[o],e,n,r).pipe(K(function(t){return u[o]=t,t}))})).pipe(Cs(),K(function(){return u}))}(t._resolve,t,e,o).pipe(K(function(e){return t._resolvedData=e,t.data=i({},t.data,af(t,r).resolve),null}))}(t.route,0,n,r)}),function(t,e){return arguments.length>=2?function(n){return A(Ms(t,e),fs(1),_s(e))(n)}:function(e){return A(Ms(function(e,n,r){return t(e,n,r+1)}),fs(1))(e)}}(function(t,e){return t}),K(function(e){return t})):Ya(t)}))}),ds(function(t){var n=new uc(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,r}),up(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),K(function(t){var n,r,o,u=(o=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(l=r.value)._futureSnapshot=n.value;var o=function(e,n,r){return n.children.map(function(n){var o,i;try{for(var u=s(r.children),a=u.next();!a.done;a=u.next()){var l=a.value;if(e.shouldReuseRoute(l.value.snapshot,n.value))return t(e,n,l)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return t(e,n)})}(e,n,r);return new ef(l,o)}var i=e.retrieve(n.value);if(i){var u=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;ra;){if(s-=a,!(u=u.parent))throw new Error("Invalid number of '../'");a=u.segments.length}return new yf(u,!1,a-s)}()}(i,0,t),a=u.processChildren?bf(u.segmentGroup,u.index,i.commands):_f(u.segmentGroup,u.index,i.commands);return gf(u.segmentGroup,a,e,r,o)}(l,this.currentUrlTree,t,p,f)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),ae()&&this.isNgZoneEnabled&&!pi.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Pf(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;et?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return rh(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return rh(t.value)?null:oh.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(rh(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(rh(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(uh);return 0==e.length?null:function(t){return sh(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(uh);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),hh=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Xp),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}(),dh=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),gh='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',vh='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',yh=function(){function t(){}return t.controlParentException=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 "+gh)},t.ngModelGroupException=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 '+vh+'\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n \n
\n
\n \n
\n
')},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+gh)},t.groupParentException=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 "+vh)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=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 ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}();function mh(t,e){return c(e.path,[t])}function _h(t,e){t||Eh(e,"Cannot find control with"),e.valueAccessor||Eh(e,"No value accessor for form control with"),t.validator=ih.compose([t.validator,e.validator]),t.asyncValidator=ih.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&bh(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&bh(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function bh(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function wh(t,e){null==t&&Eh(e,"Cannot find control with"),t.validator=ih.compose([t.validator,e.validator]),t.asyncValidator=ih.composeAsync([t.asyncValidator,e.asyncValidator])}function Ch(t){return Eh(t,"There is no FormControl instance attached to form control element with")}function Eh(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function Dh(t){return null!=t?ih.compose(t.map(lh)):null}function xh(t){return null!=t?ih.composeAsync(t.map(ch)):null}var Sh=[$p,dh,fh,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Ke}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var r=s(Array.from(this._optionMap.keys())),o=r.next();!o.done;o=r.next()){var i=o.value;if(this._compareWith(this._optionMap.get(i),t))return i}}catch(u){e={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Ke}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(Th),Fh=function(t){function e(e,n,r){var o=t.call(this,Ah(n),Ph(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof kh?t.value:t.getRawValue()})},e.prototype.clear=function(){this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=s(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Th),Ih=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return mh(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Dh(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return xh(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(Yp),Nh=function(){return function(){}}(),Mh=new It("NgModelWithFormControlWarning"),jh=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Mo,r}return o(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return _h(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e,n;(n=(e=this.directives).indexOf(t))>-1&&e.splice(n,1)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);wh(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);wh(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,e=this.directives,this.form._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return Ch(e)}),e.valueAccessor.registerOnTouched(function(){return Ch(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&_h(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=Dh(this._validators);this.form.validator=ih.compose([this.form.validator,t]);var e=xh(this._asyncValidators);this.form.asyncValidator=ih.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||yh.missingFormException()},e}(Yp),Vh=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return o(e,t),e.prototype._checkParentType=function(){Bh(this._parent)&&yh.groupParentException()},e}(Ih),Uh=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return o(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return mh(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Dh(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return xh(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){Bh(this._parent)&&yh.arrayParentException()},e}(Yp);function Bh(t){return!(t instanceof Vh||t instanceof jh||t instanceof Uh)}var Lh=function(t){function e(e,n,r,o,i){var u=t.call(this)||this;return u._ngModelWarningConfig=i,u._added=!1,u.update=new Mo,u._ngModelWarningSent=!1,u._parent=e,u._rawValidators=n||[],u._rawAsyncValidators=r||[],u.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||Eh(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===Qp?n=e:(i=e,Sh.some(function(t){return i.constructor===t})?(r&&Eh(t,"More than one built-in value accessor matches form control with"),r=e):(o&&Eh(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(Eh(t,"No valid value accessor for form control with"),null)}(u,o),u}var n;return o(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){yh.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){var e,r;this._added||this._setUpControl(),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Ke(e,n.currentValue)}(t,this.viewModel)&&("formControlName",e=n,this,r=this._ngModelWarningConfig,ae()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||this._ngModelWarningSent)||(yh.ngModelWarning("formControlName"),e._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return mh(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Dh(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return xh(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof Vh)&&this._parent instanceof Ih?yh.ngModelGroupException():this._parent instanceof Vh||this._parent instanceof jh||this._parent instanceof Uh||yh.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e._ngModelWarningSentOnce=!1,e}(Xp),zh=function(){return function(){}}(),Hh=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null,o=null,i=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new Rh(n,{asyncValidators:o,updateOn:i,validators:r})},t.prototype.control=function(t,e,n){return new kh(t,e,n)},t.prototype.array=function(t,e,n){var r=this,o=t.map(function(t){return r._createControl(t)});return new Fh(o,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){return t instanceof kh||t instanceof Rh||t instanceof Fh?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t}(),Wh=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:Mh,useValue:t.warnOnNgModelWithFormControl}]}},t}(),Gh=function(){function t(){}return t.Champions=[{name:"Aatrox",roles:["demon","blademaster"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Ahri",roles:["wild","sorcerer"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"AurelionSol",roles:["dragon","sorcerer"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Anivia",roles:["glacial","elementalist"],cost:5,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Ashe",roles:["glacial","ranger"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Akali",roles:["ninja","assassin"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Brand",roles:["demon","elementalist"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Braum",roles:["glacial","guardian"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Blitzcrank",roles:["robot","brawler"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Chogath",roles:["void","brawler"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Draven",roles:["imperial","blademaster"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Darius",roles:["imperial","knight"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Evelynn",roles:["demon","assassin"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Elise",roles:["demon","shapeshifter"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Fiora",roles:["noble","blademaster"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Gnar",roles:["wild","yordle","shapeshifter"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Garen",roles:["noble","knight"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Gangplank",roles:["pirate","gunslinger","blademaster"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Graves",roles:["pirate","gunslinger"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Kayle",roles:["noble","knight"],cost:5,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Karthus",roles:["phantom","sorcerer"],cost:5,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Kennen",roles:["ninja","yordle","elementalist"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Katarina",roles:["imperial","assassin"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Kindred",roles:["phantom","ranger"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Kassadin",roles:["void","sorcerer"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Khazix",roles:["void","assassin"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Lissandra",roles:["glacial","elementalist"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Lucian",roles:["noble","gunslinger"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Lulu",roles:["yordle","sorcerer"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Leona",roles:["noble","guardian"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"MissFortune",roles:["pirate","gunslinger"],cost:5,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Mordekaiser",roles:["phantom","knight"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Morgana",roles:["demon","sorcerer"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Nidalee",roles:["wild","shapeshifter"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Pyke",roles:["pirate","assassin"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Poppy",roles:["yordle","knight"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Rengar",roles:["wild","assassin"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"RekSai",roles:["void","brawler"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Swain",roles:["demon","imperial","shapeshifter"],cost:5,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Sejuani",roles:["glacial","knight"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Shen",roles:["ninja","blademaster"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Shyvana",roles:["dragon","shapeshifter"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"TwistedFate",roles:["pirate","sorcerer"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Tristana",roles:["yordle","gunslinger"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Varus",roles:["demon","ranger"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Vayne",roles:["noble","ranger"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Veigar",roles:["yordle","sorcerer"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Volibear",roles:["glacial","brawler"],cost:3,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Warwick",roles:["wild","brawler"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Yasuo",roles:["exile","blademaster"],cost:5,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Zed",roles:["ninja","assassin"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Camille",roles:["hextech","blademaster"],cost:1,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Jayce",roles:["hextech","shapeshifter"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Jinx",roles:["hextech","gunslinger"],cost:4,isSelected:!1,sinergy:!1,sinergy2:!1},{name:"Vi",roles:["hextech","brawler"],cost:2,isSelected:!1,sinergy:!1,sinergy2:!1}],t.championName="name",t.roles=["demon","blademaster","imperial","assassin","shapeshifter","wild","noble","ranger","sorcerer","yordle","knight","ninja","elementalist","pirate","hextech","brawler","glacial","void","exile","dragon","gunslinger","phantom","guardian","robot"],t.bonuses=[{description:"Demon basic attacks have a 40% chance to burn 20 mana from their target and return 15 mana to the attacker",role:"demon",units:2,maxUnits:6},{description:"Demon basic attacks have a 40% chance to burn 20 mana from their target and return 30 mana to the attacker",role:"demon",units:4,maxUnits:6},{description:"Demon basic attacks have a 40% chance to burn 20 mana from their target and return 45 mana to the attacker",role:"demon",units:6,maxUnits:6},{description:"Dragons are 83% inmune to Magic Damage",role:"dragon",units:2,maxUnits:2},{description:"Exiles start combat with a shield equal to 100% max HP when placed adjacent to NO other units",role:"exile",units:1,maxUnits:1},{description:"Glacial units have a 25% chance to stun on hit for two seconds",role:"glacial",units:2,maxUnits:6},{description:"Glacial units have a 35% chance to stun on hit for two seconds",role:"glacial",units:4,maxUnits:6},{description:"Glacial units have a 45% chance to stun on hit for two seconds",role:"glacial",units:6,maxUnits:6},{description:"Robots start combat with full mana",role:"robot",units:1,maxUnits:1},{description:"Double damage for one random Imperial",role:"imperial",units:2,maxUnits:4},{description:"Double damage for all Imperials",role:"imperial",units:4,maxUnits:4},{description:"+60 Armor and magic resist, heal 35 on hit for random ally",role:"noble",units:3,maxUnits:6},{description:"+60 Armor and magic resist, heal 35 on hit for all allies",role:"noble",units:6,maxUnits:6},{description:"Exactly 1: +60 attack damage and ability power for one Ninja",role:"ninja",units:1,maxUnits:4},{description:"Exactly 4: +70 attack damage and ability power for your Ninjas",role:"ninja",units:4,maxUnits:4},{description:"You earn up to 4 additional gold from each PVP round, average 1.75 gold",role:"pirate",units:3,maxUnits:3},{description:"Curse a random enemy at the start of combat, setting their HP to 100",role:"phantom",units:2,maxUnits:2},{description:"Each unit's attacks give then Fury (5 stack cap). Stacks give 12% attack speed. For Wild",role:"wild",units:2,maxUnits:4},{description:"Each unit's attacks give then Fury (5 stack cap). Stacks give 12% attack speed. For team",role:"wild",units:4,maxUnits:4},{description:"Void units deal true damage",role:"void",units:3,maxUnits:3},{description:"Attacks against your Yordles have a 30% chance to miss, also dodges on-hit effects",role:"yordle",units:3,maxUnits:6},{description:"Attacks against your Yordles have a 55% chance to miss, also dodges on-hit effects",role:"yordle",units:6,maxUnits:6},{description:"+125% crit damage for Assassins",role:"assassin",units:3,maxUnits:6},{description:"+350% crit damage for Assassins",role:"assassin",units:6,maxUnits:6},{description:"Blademasters attack 1 extra time",role:"blademaster",units:3,maxUnits:9},{description:"Blademasters attack 2 extra times",role:"blademaster",units:6,maxUnits:9},{description:"Blademasters attack 4 extra times",role:"blademaster",units:9,maxUnits:9},{description:"+300 health to Brawlers",role:"brawler",units:2,maxUnits:6},{description:"+600 health to Brawlers",role:"brawler",units:4,maxUnits:6},{description:"+1000 health to Brawlers",role:"brawler",units:6,maxUnits:6},{description:"Each combat, summon a golem with 2200 hp",role:"elementalist",units:3,maxUnits:3},{description:"+50 Armor to allies that start combat adjacent to them, guardians don't buff themselves",role:"guardian",units:2,maxUnits:2},{description:"50% chance on attack to attack one additional target in range",role:"gunslinger",units:2,maxUnits:6},{description:"50% chance on attack to attack two additional targets in range",role:"gunslinger",units:4,maxUnits:6},{description:"50% chance on attack to attack three additional targets in range",role:"gunslinger",units:6,maxUnits:6},{description:"Your team ignores 15 damage from all sources",role:"knight",units:2,maxUnits:6},{description:"Your team ignores 30 damage from all sources",role:"knight",units:4,maxUnits:6},{description:"Your team ignores 55 damage from all sources",role:"knight",units:6,maxUnits:6},{description:"Every 3 seconds, Rangers have a 25% chance to double their attack speed for 3s",role:"ranger",units:2,maxUnits:4},{description:"Every 3 seconds Rangers have a 65% chance to double their attack speed for 3s",role:"ranger",units:4,maxUnits:4},{description:"On transform gain 60% max HP",role:"shapeshifter",units:3,maxUnits:6},{description:"On transform gain 120% max HP",role:"shapeshifter",units:3,maxUnits:6},{description:"Your team has +40 Ability Power",role:"sorcerer",units:3,maxUnits:6},{description:"Your team has +100 Ability Power",role:"sorcerer",units:6,maxUnits:6},{description:"Throw a bomb at an enemy unit with an item, and disables all items in a 1 hex radius for 8 seconds.",role:"hextech",units:2,maxUnits:4},{description:"Throw a bomb at an enemy unit with an item, and disables all items in a 2 hex radius for 8 seconds.",role:"hextech",units:4,maxUnits:4}],t}(),qh=n("LvDl"),$h=function(){function t(t,e){this.fb=t,this.sanitizer=e,this.teamSize=0,this.champions=c(Gh.Champions),this.roles=c(Gh.roles),this.championsPool=[],this.rolesPool=[],this.rolesCount=[],this.bonuses=c(Gh.bonuses),this.bonusesPool=[],this.noChampSelected=!0,this.selectedRole=""}return t.prototype.ngOnInit=function(){var t=this;this.roles.forEach(function(e){t.rolesCount[e]=0}),this.formFilters=this.fb.group({teamSize:[this.teamSize]}),this.championSort(Gh.championName)},t.prototype.getImage=function(t){return this.sanitizer.bypassSecurityTrustStyle("url(../../assets/images/"+t+".png)")},t.prototype.selectChampion=function(t){var e=this,n=this.champions.findIndex(function(e){return e.name===t.name});this.champions[n].isSelected?(this.champions[n].isSelected=!1,this.championsPool=qh.remove(this.championsPool,function(e){return e.name!==t.name}),t.roles.forEach(function(t){e.rolesCount[t]--}),this.formFilters.patchValue({teamSize:--this.teamSize}),0===this.teamSize&&(this.noChampSelected=!0)):(this.champions[n].isSelected=!0,this.championsPool.push(t),t.roles.forEach(function(t){e.rolesCount[t]++}),this.formFilters.patchValue({teamSize:++this.teamSize}),this.noChampSelected=!1),this.getBonus(),this.updatePool(),this.updateSinergies()},t.prototype.championSort=function(t){this.champions.sort(function(e,n){return e[t]>n[t]?1:e[t]