TFTPaths/dist/TFTPaths/main-es2015.9880dd2e9e0b72f2441e.js
Daniel Rodriguez 1bcb42c65e Added cost
2019-09-08 12:02:42 +02:00

1 line
No EOL
356 KiB
JavaScript

(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]",M="[object AsyncFunction]",N="[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*$/,Me=/^[-+]0x[0-9a-f]+$/i,Ne=/^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[N]=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[N]=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 Mt(e,t,n,r){for(var i=-1,s=null==e?0:e.length;++i<s;){var o=e[i];t(r,o,n(o),e)}return r}function Nt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Vt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ut(e,t){for(var n=-1,r=null==e?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function jt(e,t){return!(null==e||!e.length)&&Qt(e,t,0)>-1}function Bt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function $t(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Lt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function zt(e,t,n,r){var i=-1,s=null==e?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function Ht(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Wt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Gt=Xt("length");function qt(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Zt(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function Qt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Zt(e,Yt,n)}function Kt(e,t,n,r){for(var i=n-1,s=e.length;++i<s;)if(r(e[i],t))return i;return-1}function Yt(e){return e!=e}function Jt(e,t){var n=null==e?0:e.length;return n?nn(e,t)/n:k}function Xt(e){return function(t){return null==t?i:t[e]}}function en(e){return function(t){return null==e?i:e[t]}}function tn(e,t,n,r,i){return i(e,function(e,i,s){n=r?(r=!1,e):t(n,e,i,s)}),n}function nn(e,t){for(var n,r=-1,s=e.length;++r<s;){var o=t(e[r]);o!==i&&(n=n===i?o:n+o)}return n}function rn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function sn(e){return function(t){return e(t)}}function on(e,t){return $t(t,function(t){return e[t]})}function an(e,t){return e.has(t)}function un(e,t){for(var n=-1,r=e.length;++n<r&&Qt(t,e[n],0)>-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({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});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<r;){var o=e[n];o!==t&&o!==a||(e[n]=a,s[i++]=n)}return s}function _n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function vn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function yn(e){return fn(e)?function(e){for(var t=lt.lastIndex=0;lt.test(e);)++t;return t}(e):Gt(e)}function wn(e){return fn(e)?function(e){return e.match(lt)||[]}(e):function(e){return e.split("")}(e)}var Cn=en({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),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),Mn=Ge.max,Nn=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<n;){var r=e[t];this.set(r[0],r[1])}}function lr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function cr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function hr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new cr;++t<n;)this.add(e[t])}function dr(e){var t=this.__data__=new lr(e);this.size=t.size}function fr(e,t){var n=ta(e),r=!n&&ea(e),i=!n&&!r&&sa(e),s=!n&&!r&&!i&&wa(e),o=n||r||i||s,a=o?rn(e.length,Qe):[],u=a.length;for(var l in e)!t&&!tt.call(e,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ts(l,u))||a.push(l);return a}function pr(e){var t=e.length;return t?e[ui(0,t-1)]:i}function gr(e,t,n){(n===i||Yo(e[t],n))&&(n!==i||t in e)||wr(e,t,n)}function mr(e,t,n){var r=e[t];tt.call(e,t)&&Yo(r,n)&&(n!==i||t in e)||wr(e,t,n)}function _r(e,t){for(var n=e.length;n--;)if(Yo(e[n][0],t))return n;return-1}function vr(e,t,n,r){return Ar(e,function(e,i,s){t(r,e,n(e),s)}),r}function yr(e,t){return e&&$i(t,La(t),e)}function wr(e,t,n){"__proto__"==t&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Cr(e,t){for(var n=-1,s=t.length,o=r(s),a=null==e;++n<s;)o[n]=a?i:Va(e,t[n]);return o}function br(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=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 Mi(e);case N:case V:return new r(+e);case ee:return function(e,t){var n=t?Mi(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 Ni(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 Nt(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<u;){var h=e[i],d=null==n?h:n(h);if(h=r||0!==h?h:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(h)}else o(t,d,r)||l.push(h)}return l}rr.templateSettings={escape:_e,evaluate:ve,interpolate:ye,variable:"",imports:{_:rr}},(rr.prototype=sr.prototype).constructor=rr,(or.prototype=ir(sr.prototype)).constructor=or,(ar.prototype=ir(sr.prototype)).constructor=ar,ur.prototype.clear=function(){this.__data__=Gn?Gn(null):{},this.size=0},ur.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ur.prototype.get=function(e){var t=this.__data__;if(Gn){var n=t[e];return"__lodash_hash_undefined__"===n?i:n}return tt.call(t,e)?t[e]:i},ur.prototype.has=function(e){var t=this.__data__;return Gn?t[e]!==i:tt.call(t,e)},ur.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Gn&&t===i?"__lodash_hash_undefined__":t,this},lr.prototype.clear=function(){this.__data__=[],this.size=0},lr.prototype.delete=function(e){var t=this.__data__,n=_r(t,e);return!(n<0||(n==t.length-1?t.pop():At.call(t,n,1),--this.size,0))},lr.prototype.get=function(e){var t=this.__data__,n=_r(t,e);return n<0?i:t[n][1]},lr.prototype.has=function(e){return _r(this.__data__,e)>-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.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new cr(r)}return n.set(e,t),this.size=n.size,this};var Ar=Hi(Mr),kr=Hi(Nr,!0);function Tr(e,t){var n=!0;return Ar(e,function(e,r,i){return n=!!t(e,r,i)}),n}function Or(e,t,n){for(var r=-1,s=e.length;++r<s;){var o=e[r],a=t(o);if(null!=a&&(u===i?a==a&&!ya(a):n(a,u)))var u=a,l=o}return l}function Pr(e,t){var n=[];return Ar(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Rr(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=ks),i||(i=[]);++s<o;){var a=e[s];t>0&&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 Mr(e,t){return e&&Fr(e,t,La)}function Nr(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&&n<r;)e=e[qs(t[n++])];return n&&n==r?e:i}function jr(e,t,n){var r=t(e);return ta(e)?r:Lt(r,n(e))}function Br(e){return null==e?e===i?Y:H:En&&En in qe(e)?function(e){var t=tt.call(e,En),n=e[En];try{e[En]=i;var r=!0}catch(o){}var s=it.call(e);return r&&(t?e[En]=n:delete e[En]),s}(e):function(e){return it.call(e)}(e)}function $r(e,t){return e>t}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=Nn(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<o&&h.length<c;){var g=d[f],m=t?t(g):g;if(g=n||0!==g?g:0,!(p?an(p,m):s(h,m,n))){for(u=a;--u;){var _=l[u];if(!(_?an(_,m):s(e[u],m,n)))continue e}p&&p.push(m),h.push(g)}}return h}function Wr(e,t,n){var r=null==(e=Us(e,t=Oi(t,e)))?e:e[qs(oo(t))];return null==r?i:It(r,e,n)}function Gr(e){return da(e)&&Br(e)==F}function qr(e,t,n,r,s){return e===t||(null==e||null==t||!da(e)&&!da(t)?e!=e&&t!=t:function(e,t,n,r,s,o){var a=ta(e),u=ta(t),l=a?I:xs(e),c=u?I:xs(t),f=(l=l==F?W:l)==W,p=(c=c==F?W:c)==W,g=l==c;if(g&&sa(e)){if(!sa(t))return!1;a=!0,f=!1}if(g&&!f)return o||(o=new dr),a||wa(e)?ds(e,t,n,r,s,o):function(e,t,n,r,i,s,o){switch(l){case ee:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case X:return!(e.byteLength!=t.byteLength||!s(new wt(e),new wt(t)));case N:case V:case z:return Yo(+e,+t);case j:return e.name==t.name&&e.message==t.message;case q:case Q:return e==t+"";case L:var a=pn;case Z:if(a||(a=_n),e.size!=t.size&&!(r&h))return!1;var u=o.get(e);if(u)return u==t;r|=d,o.set(e,t);var c=ds(a(e),a(t),r,i,s,o);return o.delete(e),c;case K:if(tr)return tr.call(e)==tr.call(t)}return!1}(e,t,0,n,r,s,o);if(!(n&h)){var m=f&&tt.call(e,"__wrapped__"),_=p&&tt.call(t,"__wrapped__");if(m||_){var v=m?e.value():e,y=_?t.value():t;return o||(o=new dr),s(v,y,n,r,o)}}return!!g&&(o||(o=new dr),function(e,t,n,r,s,o){var a=n&h,u=ps(e),l=u.length;if(l!=ps(t).length&&!a)return!1;for(var c=l;c--;){var d=u[c];if(!(a?d in t:tt.call(t,d)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var p=!0;o.set(e,t),o.set(t,e);for(var g=a;++c<l;){var m=e[d=u[c]],_=t[d];if(r)var v=a?r(_,m,d,t,e,o):r(m,_,d,e,t,o);if(!(v===i?m===_||s(m,_,n,r,o):v)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var y=e.constructor,w=t.constructor;y!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,s,o))}(e,t,n,r,qr,s))}function Zr(e,t,n,r){var s=n.length,o=s,a=!r;if(null==e)return!o;for(e=qe(e);s--;){var u=n[s];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++s<o;){var l=(u=n[s])[0],c=e[l],f=u[1];if(a&&u[2]){if(c===i&&!(l in e))return!1}else{var p=new dr;if(r)var g=r(c,f,l,e,t,p);if(!(g===i?qr(f,c,h|d,r,p):g))return!1}}return!0}function Qr(e){return!(!ha(e)||(t=e,rt&&rt in t))&&(ua(e)?lt:Ve).test(Zs(e));var t}function Kr(e){return"function"==typeof e?e:null==e?pu:"object"==typeof e?ta(e)?ti(e[0],e[1]):ei(e):Eu(e)}function Yr(e){if(!Is(e))return In(e);var t=[];for(var n in qe(e))tt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Jr(e,t){return e<t}function Xr(e,t){var n=-1,i=ra(e)?r(e.length):[];return Ar(e,function(e,r,s){i[++n]=t(e,r,s)}),i}function ei(e){var t=Cs(e);return 1==t.length&&t[0][2]?Ns(t[0][0],t[0][1]):function(n){return n===e||Zr(n,e,t)}}function ti(e,t){return Ps(e)&&Ms(t)?Ns(qs(e),t):function(n){var r=Va(n,e);return r===i&&r===t?Ua(n,e):qr(t,r,h|d)}}function ni(e,t,n,r,s){e!==t&&Fr(t,function(o,a){if(s||(s=new dr),ha(o))!function(e,t,n,r,s,o,a){var u=js(e,n),l=js(t,n),c=a.get(l);if(c)gr(e,n,c);else{var h=o?o(u,l,n+"",e,t,a):i,d=h===i;if(d){var f=ta(l),p=!f&&sa(l),g=!f&&!p&&wa(l);h=l,f||p||g?ta(u)?h=u:ia(u)?h=Bi(u):p?(d=!1,h=Ii(l,!0)):g?(d=!1,h=Ni(l,!0)):h=[]:ga(l)||ea(l)?(h=u,ea(u)?h=ka(u):ha(u)&&!ua(u)||(h=As(l))):d=!1}d&&(a.set(l,h),s(h,l,r,o,a),a.delete(l)),gr(e,n,h)}}(e,t,a,n,ni,r,s);else{var u=r?r(js(e,a),o,a+"",e,t,s):i;u===i&&(u=o),gr(e,a,u)}},za)}function ri(e,t){var n=e.length;if(n)return Ts(t+=t<0?n:0,n)?e[t]:i}function ii(e,t,n){var r=-1;return t=$t(t.length?t:[pu],sn(ys())),function(e,t){var r=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,s=t.criteria,o=i.length,a=n.length;++r<o;){var u=Vi(i[r],s[r]);if(u)return r>=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<i;){var o=t[r],a=Ur(e,o);n(a,o)&&hi(s,Oi(o,e),a)}return s}function oi(e,t,n,r){var i=r?Kt:Qt,s=-1,o=t.length,a=e;for(e===t&&(t=Bi(t)),n&&(a=$t(e,sn(n)));++s<o;)for(var u=0,l=t[s],c=n?n(l):l;(u=i(a,c,u,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&&++s<o;){var l=qs(t[s]),c=n;if(s!=a){var h=u[l];(c=r?r(h,l,u):i)===i&&(c=ha(h)?h:Ts(t[s+1])?[]:{})}mr(u,l,c),u=u[l]}return e}var di=qn?function(e,t){return qn.set(e,t),e}:pu,fi=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:hu(t),writable:!0})}:pu;function pi(e,t,n){var i=-1,s=e.length;t<0&&(t=-t>s?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<s;)o[i]=e[i+t];return o}function gi(e,t){var n;return Ar(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function mi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=P){for(;r<i;){var s=r+i>>>1,o=e[s];null!==o&&!ya(o)&&(n?o<=t:o<t)?r=s+1:i=s}return i}return _i(e,t,pu,n)}function _i(e,t,n,r){t=n(t);for(var s=0,o=null==e?0:e.length,a=t!=t,u=null===t,l=ya(t),c=t===i;s<o;){var h=Tn((s+o)/2),d=n(e[h]),f=d!==i,p=null===d,g=d==d,m=ya(d);if(a)var _=r||g;else _=c?g&&(r||f):u?g&&f&&(r||!p):l?g&&f&&!p&&(r||!m):!p&&!m&&(r?d<=t:d<t);_?s=h+1:o=h}return Nn(o,O)}function vi(e,t){for(var n=-1,r=e.length,i=0,s=[];++n<r;){var o=e[n],a=t?t(o):o;if(!n||!Yo(a,u)){var u=a;s[i++]=0===o?0:o}}return s}function yi(e){return"number"==typeof e?e:ya(e)?k:+e}function wi(e){if("string"==typeof e)return e;if(ta(e))return $t(e,wi)+"";if(ya(e))return nr?nr.call(e):"";var t=e+"";return"0"==t&&1/e==-x?"-0":t}function Ci(e,t,n){var r=-1,i=jt,o=e.length,a=!0,u=[],l=u;if(n)a=!1,i=Bt;else if(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<o;){var h=e[r],d=t?t(h):h;if(h=n||0!==h?h:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),u.push(h)}else i(l,d,n)||(l!==u&&l.push(d),u.push(h))}return u}function bi(e,t){return null==(e=Us(e,t=Oi(t,e)))||delete e[qs(oo(t))]}function Ei(e,t,n,r){return hi(e,t,n(Ur(e,t)),r)}function Di(e,t,n,r){for(var i=e.length,s=r?i:-1;(r?s--:++s<i)&&t(e[s],s,e););return n?pi(e,r?0:s,r?s+1:i):pi(e,r?s+1:0,r?i:s)}function xi(e,t){var n=e;return n instanceof ar&&(n=n.value()),zt(t,function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))},n)}function Si(e,t,n){var i=e.length;if(i<2)return i?Ci(e[0]):[];for(var s=-1,o=r(i);++s<i;)for(var a=e[s],u=-1;++u<i;)u!=s&&(o[s]=Sr(o[s]||a,e[u],t,n));return Ci(Rr(o,1),t,n)}function Ai(e,t,n){for(var r=-1,s=e.length,o=t.length,a={};++r<s;)n(a,e[r],r<o?t[r]:i);return a}function ki(e){return ia(e)?e:[]}function Ti(e){return"function"==typeof e?e:pu}function Oi(e,t){return ta(e)?e:Ps(e,t)?[e]:Gs(Ta(e))}var Pi=ci;function Ri(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=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 Mi(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Ni(e,t){var n=t?Mi(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&&e<t||c&&n&&s&&!r&&!o||u&&n&&s||!a&&s||!l)return-1}return 0}function Ui(e,t,n,i){for(var s=-1,o=e.length,a=n.length,u=-1,l=t.length,c=Mn(o-a,0),h=r(l+c),d=!i;++u<l;)h[u]=t[u];for(;++s<a;)(d||s<o)&&(h[n[s]]=e[s]);for(;c--;)h[u++]=e[s++];return h}function ji(e,t,n,i){for(var s=-1,o=e.length,a=-1,u=n.length,l=-1,c=t.length,h=Mn(o-u,0),d=r(h+c),f=!i;++s<h;)d[s]=e[s];for(var p=s;++l<c;)d[p+l]=t[l];for(;++a<u;)(f||s<o)&&(d[p+n[a]]=e[s++]);return d}function Bi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function $i(e,t,n,r){var s=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var u=t[o],l=r?r(n[u],e[u],u,n,e):i;l===i&&(l=e[u]),s?wr(n,u,l):mr(n,u,l)}return n}function Li(e,t){return function(n,r){var i=ta(n)?Mt:vr,s=t?t():{};return i(n,e,ys(r,2),s)}}function zi(e){return ci(function(t,n){var r=-1,s=n.length,o=s>1?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<s;){var u=n[r];u&&e(t,u,r,o)}return t})}function Hi(e,t){return function(n,r){if(null==n)return n;if(!ra(n))return e(n,r);for(var i=n.length,s=t?i:-1,o=qe(n);(t?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function Wi(e){return function(t,n,r){for(var i=-1,s=qe(t),o=r(t),a=o.length;a--;){var u=o[e?a:++i];if(!1===n(s[u],u,s))break}return t}}function Gi(e){return function(t){var n=fn(t=Ta(t))?wn(t):i,r=n?n[0]:t.charAt(0),s=n?Ri(n,1).join(""):t.slice(1);return r[e]()+s}}function qi(e){return function(t){return zt(uu(eu(t).replace(at,"")),e,"")}}function Zi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ir(e.prototype),r=e.apply(n,t);return ha(r)?r:n}}function Qi(e){return function(t,n,r){var s=qe(t);if(!ra(t)){var o=ys(n,3);t=La(t),n=function(e){return o(s[e],e,s)}}var a=e(t,n,r);return a>-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;++r<n;){var l=_s(a=t[r]),c="wrapper"==l?ms(a):i;u=c&&Rs(c[0])&&c[1]==(w|m|v|C)&&!c[4].length&&1==c[9]?u[_s(c[0])].apply(u,c[3]):1==a.length&&Rs(a)?u[l]():u.thru(a)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&ta(r))return u.plant(r).value();for(var i=0,s=n?t[i].apply(this,e):r;++i<n;)s=t[i].call(this,s);return s}})}function Yi(e,t,n,s,o,a,u,l,c,h){var d=t&w,g=t&f,v=t&p,y=t&(m|_),C=t&b,E=v?i:Zi(e);return function f(){for(var p=arguments.length,m=r(p),_=p;_--;)m[_]=arguments[_];if(y)var w=vs(f),b=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(m,w);if(s&&(m=Ui(m,s,o,y)),a&&(m=ji(m,a,u,y)),p-=b,y&&p<h){var D=mn(m,w);return is(e,t,Yi,f.placeholder,n,m,D,l,c,h-p)}var x=g?n:this,S=v?x[e]:e;return p=m.length,l?m=function(e,t){for(var n=e.length,r=Nn(t.length,n),s=Bi(e);r--;){var o=t[r];e[r]=Ts(o,n)?s[o]:i}return e}(m,l):C&&p>1&&m.reverse(),d&&c<p&&(m.length=c),this&&this!==bt&&this instanceof f&&(S=E||Zi(S)),S.apply(x,m)}}function Ji(e,t){return function(n,r){return function(e,t,n,r){return Mr(e,function(e,i,s){t(r,n(e),i,s)}),r}(n,e,t(r),{})}}function Xi(e,t){return function(n,r){var s;if(n===i&&r===i)return t;if(n!==i&&(s=n),r!==i){if(s===i)return r;"string"==typeof n||"string"==typeof r?(n=wi(n),r=wi(r)):(n=yi(n),r=yi(r)),s=e(n,r)}return s}}function es(e){return fs(function(t){return t=$t(t,sn(ys())),ci(function(n){var r=this;return e(t,function(e){return It(e,r,n)})})})}function ts(e,t){var n=(t=t===i?" ":wi(t)).length;if(n<2)return n?li(t,e):t;var r=li(t,kn(e/yn(t)));return fn(t)?Ri(wn(r),0,e).join(""):r.slice(0,e)}function ns(e){return function(t,n,s){return s&&"number"!=typeof s&&Os(t,n,s)&&(n=s=i),t=Da(t),n===i?(n=t,t=0):n=Da(n),function(e,t,n,i){for(var s=-1,o=Mn(kn((t-e)/(n||1)),0),a=r(o);o--;)a[i?o:++s]=e,e+=n;return a}(t,n,s=s===i?t<n?1:-1:Da(s),e)}}function rs(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Aa(t),n=Aa(n)),e(t,n)}}function is(e,t,n,r,s,o,a,u,l,c){var h=t&m;t|=h?v:y,(t&=~(h?y:v))&g||(t&=~(f|p));var d=[e,t,s,h?o:i,h?a:i,h?i:o,h?i:a,u,l,c],_=n.apply(i,d);return Rs(e)&&Bs(_,d),_.placeholder=r,zs(_,e,t)}function ss(e){var t=Ge[e];return function(e,n){if(e=Aa(e),(n=null==n?0:Nn(xa(n),292))&&Rn(e)){var r=(Ta(e)+"e").split("e");return+((r=(Ta(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var os=Hn&&1/_n(new Hn([,-0]))[1]==x?function(e){return new Hn(e)}:yu;function as(e){return function(t){var n=xs(t);return n==L?pn(t):n==Z?vn(t):function(e,t){return $t(t,function(t){return[t,e[t]]})}(t,e(t))}}function us(e,t,n,s,u,l,c,h){var d=t&p;if(!d&&"function"!=typeof e)throw new Ke(o);var b=s?s.length:0;if(b||(t&=~(v|y),s=u=i),c=c===i?c:Mn(xa(c),0),h=h===i?h:xa(h),b-=u?u.length:0,t&y){var E=s,D=u;s=u=i}var x=d?i:ms(e),S=[e,t,n,s,u,E,D,l,c,h];if(x&&function(e,t){var n=e[1],r=t[1],i=n|r;if(!(i<(f|p|w)||r==w&&n==m||r==w&&n==C&&e[7].length<=t[8]||r==(w|C)&&t[7].length<=t[8]&&n==m))return e;r&f&&(e[2]=t[2],i|=n&f?0:g);var s=t[3];if(s){var o=e[3];e[3]=o?Ui(o,s,t[4]):s,e[4]=o?mn(e[3],a):t[4]}(s=t[5])&&(e[5]=(o=e[5])?ji(o,s,t[6]):s,e[6]=o?mn(e[5],a):t[6]),(s=t[7])&&(e[7]=s),r&w&&(e[8]=null==e[8]?t[8]:Nn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(S,x),e=S[0],t=S[1],n=S[2],s=S[3],u=S[4],!(h=S[9]=S[9]===i?d?0:e.length:Mn(S[9]-b,0))&&t&(m|_)&&(t&=~(m|_)),t&&t!=f)A=t==m||t==_?function(e,t,n){var s=Zi(e);return function o(){for(var a=arguments.length,u=r(a),l=a,c=vs(o);l--;)u[l]=arguments[l];var h=a<3&&u[0]!==c&&u[a-1]!==c?[]:mn(u,c);return(a-=h.length)<n?is(e,t,Yi,o.placeholder,i,u,h,i,i,n-a):It(this&&this!==bt&&this instanceof o?s:e,this,u)}}(e,t,h):t!=v&&t!=(f|v)||u.length?Yi.apply(i,S):function(e,t,n,i){var s=t&f,o=Zi(e);return function t(){for(var a=-1,u=arguments.length,l=-1,c=i.length,h=r(c+u),d=this&&this!==bt&&this instanceof t?o:e;++l<c;)h[l]=i[l];for(;u--;)h[l++]=arguments[++a];return It(d,s?n:this,h)}}(e,t,n,s);else var A=function(e,t,n){var r=t&f,i=Zi(e);return function t(){return(this&&this!==bt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return zs((x?di:Bs)(A,S),e,t)}function ls(e,t,n,r){return e===i||Yo(e,Je[n])&&!tt.call(r,n)?t:e}function cs(e,t,n,r,s,o){return ha(e)&&ha(t)&&(o.set(t,e),ni(e,t,i,cs,o),o.delete(t)),e}function hs(e){return ga(e)?i:e}function ds(e,t,n,r,s,o){var a=n&h,u=e.length,l=t.length;if(u!=l&&!(a&&l>u))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<u;){var m=e[f],_=t[f];if(r)var v=a?r(_,m,f,t,e,o):r(m,_,f,e,t,o);if(v!==i){if(v)continue;p=!1;break}if(g){if(!Wt(t,function(e,t){if(!an(g,t)&&(m===e||s(m,e,n,r,o)))return g.push(t)})){p=!1;break}}else if(m!==_&&!s(m,_,n,r,o)){p=!1;break}}return o.delete(e),o.delete(t),p}function fs(e){return Ls(Vs(e,i,to),e+"")}function ps(e){return jr(e,La,Es)}function gs(e){return jr(e,za,Ds)}var ms=qn?function(e){return qn.get(e)}:yu;function _s(e){for(var t=e.name+"",n=Zn[t],r=tt.call(Zn,t)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==e)return i.name}return t}function vs(e){return(tt.call(rr,"placeholder")?rr:e).placeholder}function ys(){var e=rr.iteratee||gu;return e=e===gu?Kr:e,arguments.length?e(arguments[0],arguments[1]):e}function ws(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Cs(e){for(var t=La(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ms(i)]}return t}function bs(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Qr(n)?n:i}var Es=On?function(e){return null==e?[]:(e=qe(e),Ut(On(e),function(t){return St.call(e,t)}))}:Su,Ds=On?function(e){for(var t=[];e;)Lt(t,Es(e)),e=Et(e);return t}:Su,xs=Br;function Ss(e,t,n){for(var r=-1,i=(t=Oi(t,e)).length,s=!1;++r<i;){var o=qs(t[r]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++r!=i?s:!!(i=null==e?0:e.length)&&ca(i)&&Ts(o,i)&&(ta(e)||ea(e))}function As(e){return"function"!=typeof e.constructor||Is(e)?{}:ir(Et(e))}function ks(e){return ta(e)||ea(e)||!!(Gt&&e&&e[Gt])}function Ts(e,t){var n=typeof e;return!!(t=null==t?S:t)&&("number"==n||"symbol"!=n&&je.test(e))&&e>-1&&e%1==0&&e<t}function Os(e,t,n){if(!ha(n))return!1;var r=typeof t;return!!("number"==r?ra(n)&&Ts(t,n.length):"string"==r&&t in n)&&Yo(n[t],e)}function Ps(e,t){if(ta(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ya(e))||Ce.test(e)||!we.test(e)||null!=t&&e in qe(t)}function Rs(e){var t=_s(e),n=rr[t];if("function"!=typeof n||!(t in ar.prototype))return!1;if(e===n)return!0;var r=ms(n);return!!r&&e===r[0]}($n&&xs(new $n(new ArrayBuffer(1)))!=ee||Ln&&xs(new Ln)!=L||zn&&"[object Promise]"!=xs(zn.resolve())||Hn&&xs(new Hn)!=Z||Wn&&xs(new Wn)!=J)&&(xs=function(e){var t=Br(e),n=t==W?e.constructor:i,r=n?Zs(n):"";if(r)switch(r){case Qn:return ee;case Kn:return L;case Yn:return"[object Promise]";case Jn:return Z;case Xn:return J}return t});var Fs=Xe?ua:Au;function Is(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Je)}function Ms(e){return e==e&&!ha(e)}function Ns(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in qe(n))}}function Vs(e,t,n){return t=Mn(t===i?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=Mn(i.length-t,0),a=r(o);++s<o;)a[s]=i[t+s];s=-1;for(var u=r(t+1);++s<t;)u[s]=i[s];return u[t]=n(a),It(e,this,u)}}function Us(e,t){return t.length<2?e:Ur(e,pi(t,0,-1))}function js(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Bs=Hs(di),$s=An||function(e,t){return bt.setTimeout(e,t)},Ls=Hs(fi);function zs(e,t,n){var r=t+"";return Ls(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ke,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Nt(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;++n<t;){var o=ui(n,s),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var Gs=function(e){var t=Wo(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(be,function(e,n,r,i){t.push(r?i.replace(Re,"$1"):n||e)}),t},function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}();function qs(e){if("string"==typeof e||ya(e))return e;var t=e+"";return"0"==t&&1/e==-x?"-0":t}function Zs(e){if(null!=e){try{return et.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Qs(e){if(e instanceof ar)return e.clone();var t=new or(e.__wrapped__,e.__chain__);return t.__actions__=Bi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ks=ci(function(e,t){return ia(e)?Sr(e,Rr(t,1,ia,!0)):[]}),Ys=ci(function(e,t){var n=oo(t);return ia(n)&&(n=i),ia(e)?Sr(e,Rr(t,1,ia,!0),ys(n,2)):[]}),Js=ci(function(e,t){var n=oo(t);return ia(n)&&(n=i),ia(e)?Sr(e,Rr(t,1,ia,!0),i,n):[]});function Xs(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=Mn(r+i,0)),Zt(e,ys(t,3),i)}function eo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var s=r-1;return n!==i&&(s=xa(n),s=n<0?Mn(r+s,0):Nn(s,r-1)),Zt(e,ys(t,3),s,!0)}function to(e){return null!=e&&e.length?Rr(e,1):[]}function no(e){return e&&e.length?e[0]:i}var ro=ci(function(e){var t=$t(e,ki);return t.length&&t[0]===e[0]?Hr(t):[]}),io=ci(function(e){var t=oo(e),n=$t(e,ki);return t===oo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Hr(n,ys(t,2)):[]}),so=ci(function(e){var t=oo(e),n=$t(e,ki);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Hr(n,i,t):[]});function oo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var ao=ci(uo);function uo(e,t){return e&&e.length&&t&&t.length?oi(e,t):e}var lo=fs(function(e,t){var n=null==e?0:e.length,r=Cr(e,t);return ai(e,$t(t,function(e){return Ts(e,n)?+e:e}).sort(Vi)),r});function co(e){return null==e?e:Bn.call(e)}var ho=ci(function(e){return Ci(Rr(e,1,ia,!0))}),fo=ci(function(e){var t=oo(e);return ia(t)&&(t=i),Ci(Rr(e,1,ia,!0),ys(t,2))}),po=ci(function(e){var t=oo(e);return t="function"==typeof t?t:i,Ci(Rr(e,1,ia,!0),i,t)});function go(e){if(!e||!e.length)return[];var t=0;return e=Ut(e,function(e){if(ia(e))return t=Mn(e.length,t),!0}),rn(t,function(t){return $t(e,Xt(t))})}function mo(e,t){if(!e||!e.length)return[];var n=go(e);return null==t?n:$t(n,function(e){return It(t,i,e)})}var _o=ci(function(e,t){return ia(e)?Sr(e,t):[]}),vo=ci(function(e){return Si(Ut(e,ia))}),yo=ci(function(e){var t=oo(e);return ia(t)&&(t=i),Si(Ut(e,ia),ys(t,2))}),wo=ci(function(e){var t=oo(e);return t="function"==typeof t?t:i,Si(Ut(e,ia),i,t)}),Co=ci(go),bo=ci(function(e){var t=e.length,n=t>1?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)?Nt: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 Mo=Li(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),No=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?Nn(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)?Mn(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=Nn(r.length,n);++i<s;)r[i]=t[i].call(this,r[i]);return It(e,this,r)})}),Zo=ci(function(e,t){var n=mn(t,vs(Zo));return us(e,v,i,t,n)}),Qo=ci(function(e,t){var n=mn(t,vs(Qo));return us(e,y,i,t,n)}),Ko=fs(function(e,t){return us(e,C,i,i,i,t)});function Yo(e,t){return e===t||e!=e&&t!=t}var Jo=rs($r),Xo=rs(function(e,t){return e>=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==M||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=Ne.test(e);return n||Ue.test(e)?yt(e.slice(2),n?2:8):Me.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),Ma=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);++n<r;)for(var o=t[n],a=za(o),u=-1,l=a.length;++u<l;){var c=a[u],h=e[c];(h===i||Yo(h,Je[c])&&!tt.call(e,c))&&(e[c]=o[c])}return e}),Na=ci(function(e){return e.push(i,cs),It(Wa,i,e)});function Va(e,t,n){var r=null==e?i:Ur(e,t);return r===i?n:r}function Ua(e,t){return null!=e&&Ss(e,t,zr)}var ja=Ji(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=it.call(t)),e[t]=n},hu(pu)),Ba=Ji(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=it.call(t)),tt.call(e,t)?e[t].push(n):e[t]=[n]},ys),$a=ci(Wr);function La(e){return ra(e)?fr(e):Yr(e)}function za(e){return ra(e)?fr(e,!0):function(e){if(!ha(e))return function(e){var t=[];if(null!=e)for(var n in qe(e))t.push(n);return t}(e);var t=Is(e),n=[];for(var r in e)("constructor"!=r||!t&&tt.call(e,r))&&n.push(r);return n}(e)}var Ha=zi(function(e,t,n){ni(e,t,n)}),Wa=zi(function(e,t,n,r){ni(e,t,n,r)}),Ga=fs(function(e,t){var n={};if(null==e)return n;var r=!1;t=$t(t,function(t){return t=Oi(t,e),r||(r=t.length>1),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 Nt(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 Nt(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"),Mu=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:Mn(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));o<s;)u[a++]=pi(e,o,o+=t);return u},rr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var s=e[t];s&&(i[r++]=s)}return i},rr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Lt(ta(n)?Bi(n):[n],Rr(t,1))},rr.cond=function(e){var t=null==e?0:e.length,n=ys();return e=t?$t(e,function(e){if("function"!=typeof e[1])throw new Ke(o);return[n(e[0]),e[1]]}):[],ci(function(n){for(var r=-1;++r<t;){var i=e[r];if(It(i[0],this,n))return It(i[1],this,n)}})},rr.conforms=function(e){return function(e){var t=La(e);return function(n){return Dr(n,e,t)}}(Er(e,u))},rr.constant=hu,rr.countBy=So,rr.create=function(e,t){var n=ir(e);return null==t?n:yr(n,t)},rr.curry=function e(t,n,r){var s=us(t,m,i,i,i,i,i,n=r?i:n);return s.placeholder=e.placeholder,s},rr.curryRight=function e(t,n,r){var s=us(t,_,i,i,i,i,i,n=r?i:n);return s.placeholder=e.placeholder,s},rr.debounce=Lo,rr.defaults=Ma,rr.defaultsDeep=Na,rr.defer=zo,rr.delay=Ho,rr.difference=Ks,rr.differenceBy=Ys,rr.differenceWith=Js,rr.drop=function(e,t,n){var r=null==e?0:e.length;return r?pi(e,(t=n||t===i?1:xa(t))<0?0:t,r):[]},rr.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?pi(e,0,(t=r-(t=n||t===i?1:xa(t)))<0?0:t):[]},rr.dropRightWhile=function(e,t){return e&&e.length?Di(e,ys(t,3),!0,!0):[]},rr.dropWhile=function(e,t){return e&&e.length?Di(e,ys(t,3),!0):[]},rr.fill=function(e,t,n,r){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&Os(e,t,n)&&(n=0,r=s),function(e,t,n,r){var s=e.length;for((n=xa(n))<0&&(n=-n>s?0:s+n),(r=r===i||r>s?s:xa(r))<0&&(r+=s),r=n>r?0:Sa(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},rr.filter=function(e,t){return(ta(e)?Ut:Pr)(e,ys(t,3))},rr.flatMap=function(e,t){return Rr(Io(e,t),1)},rr.flatMapDeep=function(e,t){return Rr(Io(e,t),x)},rr.flatMapDepth=function(e,t,n){return n=n===i?1:xa(n),Rr(Io(e,t),n)},rr.flatten=to,rr.flattenDeep=function(e){return null!=e&&e.length?Rr(e,x):[]},rr.flattenDepth=function(e,t){return null!=e&&e.length?Rr(e,t=t===i?1:xa(t)):[]},rr.flip=function(e){return us(e,b)},rr.flow=du,rr.flowRight=fu,rr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},rr.functions=function(e){return null==e?[]:Vr(e,La(e))},rr.functionsIn=function(e){return null==e?[]:Vr(e,za(e))},rr.groupBy=Po,rr.initial=function(e){return null!=e&&e.length?pi(e,0,-1):[]},rr.intersection=ro,rr.intersectionBy=io,rr.intersectionWith=so,rr.invert=ja,rr.invertBy=Ba,rr.invokeMap=Ro,rr.iteratee=gu,rr.keyBy=Fo,rr.keys=La,rr.keysIn=za,rr.map=Io,rr.mapKeys=function(e,t){var n={};return t=ys(t,3),Mr(e,function(e,r,i){wr(n,t(e,r,i),e)}),n},rr.mapValues=function(e,t){var n={};return t=ys(t,3),Mr(e,function(e,r,i){wr(n,r,t(e,r,i))}),n},rr.matches=function(e){return ei(Er(e,u))},rr.matchesProperty=function(e,t){return ti(e,Er(t,u))},rr.memoize=Wo,rr.merge=Ha,rr.mergeWith=Wa,rr.method=mu,rr.methodOf=_u,rr.mixin=vu,rr.negate=Go,rr.nthArg=function(e){return e=xa(e),ci(function(t){return ri(t,e)})},rr.omit=Ga,rr.omitBy=function(e,t){return Za(e,Go(ys(t)))},rr.once=function(e){return jo(2,e)},rr.orderBy=function(e,t,n,r){return null==e?[]:(ta(t)||(t=null==t?[]:[t]),ta(n=r?i:n)||(n=null==n?[]:[n]),ii(e,t,n))},rr.over=wu,rr.overArgs=qo,rr.overEvery=Cu,rr.overSome=bu,rr.partial=Zo,rr.partialRight=Qo,rr.partition=Mo,rr.pick=qa,rr.pickBy=Za,rr.property=Eu,rr.propertyOf=function(e){return function(t){return null==e?i:Ur(e,t)}},rr.pull=ao,rr.pullAll=uo,rr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?oi(e,t,ys(n,2)):e},rr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?oi(e,t,i,n):e},rr.pullAt=lo,rr.range=Du,rr.rangeRight=xu,rr.rearg=Ko,rr.reject=function(e,t){return(ta(e)?Ut:Pr)(e,Go(ys(t,3)))},rr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],s=e.length;for(t=ys(t,3);++r<s;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return ai(e,i),n},rr.rest=function(e,t){if("function"!=typeof e)throw new Ke(o);return ci(e,t=t===i?t:xa(t))},rr.reverse=co,rr.sampleSize=function(e,t,n){return t=(n?Os(e,t,n):t===i)?1:xa(t),(ta(e)?function(e,t){return Ws(Bi(e),br(t,0,e.length))}:function(e,t){var n=Ya(e);return Ws(n,br(t,0,n.length))})(e,t)},rr.set=function(e,t,n){return null==e?e:hi(e,t,n)},rr.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:hi(e,t,n,r)},rr.shuffle=function(e){return(ta(e)?function(e){return Ws(Bi(e))}:function(e){return Ws(Ya(e))})(e)},rr.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Os(e,t,n)?(t=0,n=r):(t=null==t?0:xa(t),n=n===i?r:xa(n)),pi(e,t,n)):[]},rr.sortBy=No,rr.sortedUniq=function(e){return e&&e.length?vi(e):[]},rr.sortedUniqBy=function(e,t){return e&&e.length?vi(e,ys(t,2)):[]},rr.split=function(e,t,n){return n&&"number"!=typeof n&&Os(e,t,n)&&(t=n=i),(n=n===i?T: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:Mn(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?Nt:Mr)(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),Mr)},rr.findLast=ko,rr.findLastIndex=eo,rr.findLastKey=function(e,t){return qt(e,ys(t,3),Nr)},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&&Mr(e,ys(t,3))},rr.forOwnRight=function(e,t){return e&&Nr(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=Mn(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=Mn(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>=Nn(t,n)&&e<Mn(t,n)}(e=Aa(e),t,n)},rr.invoke=$a,rr.isArguments=ea,rr.isArray=ta,rr.isArrayBuffer=na,rr.isArrayLike=ra,rr.isArrayLikeObject=ia,rr.isBoolean=function(e){return!0===e||!1===e||da(e)&&Br(e)==N},rr.isBuffer=sa,rr.isDate=oa,rr.isElement=function(e){return da(e)&&1===e.nodeType&&!ga(e)},rr.isEmpty=function(e){if(null==e)return!0;if(ra(e)&&(ta(e)||"string"==typeof e||"function"==typeof e.splice||sa(e)||wa(e)||ea(e)))return!e.length;var t=xs(e);if(t==L||t==Z)return!e.size;if(Is(e))return!Yr(e).length;for(var n in e)if(tt.call(e,n))return!1;return!0},rr.isEqual=function(e,t){return qr(e,t)},rr.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?qr(e,t,i,n):!!r},rr.isError=aa,rr.isFinite=function(e){return"number"==typeof e&&Rn(e)},rr.isFunction=ua,rr.isInteger=la,rr.isLength=ca,rr.isMap=fa,rr.isMatch=function(e,t){return e===t||Zr(e,t,Cs(t))},rr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Zr(e,t,Cs(t),n)},rr.isNaN=function(e){return pa(e)&&e!=+e},rr.isNative=function(e){if(Fs(e))throw new He("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Qr(e)},rr.isNil=function(e){return null==e},rr.isNull=function(e){return null===e},rr.isNumber=pa,rr.isObject=ha,rr.isObjectLike=da,rr.isPlainObject=ga,rr.isRegExp=ma,rr.isSafeInteger=function(e){return la(e)&&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?Mn(r+s,0):Nn(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&&r<t?e+ts(t-r,n):e},rr.padStart=function(e,t,n){e=Ta(e);var r=(t=xa(t))?yn(e):0;return t&&r<t?ts(t-r,n)+e:e},rr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Un(Ta(e).replace(Se,""),t||0)},rr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Os(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=Da(e),t===i?(t=e,e=0):t=Da(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var s=jn();return Nn(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);++r<s;){var o=null==e?i:e[qs(t[r])];o===i&&(r=s,o=n),e=ua(o)?o.call(e):o}return e},rr.round=Iu,rr.runInContext=e,rr.sample=function(e){return(ta(e)?pr:function(e){return pr(Ya(e))})(e)},rr.size=function(e){if(null==e)return 0;if(ra(e))return va(e)?yn(e):e.length;var t=xs(e);return t==L||t==Z?e.size:Yr(e).length},rr.snakeCase=iu,rr.some=function(e,t,n){var r=ta(e)?Wt:gi;return n&&Os(e,t,n)&&(t=i),r(e,ys(t,3))},rr.sortedIndex=function(e,t){return mi(e,t)},rr.sortedIndexBy=function(e,t,n){return _i(e,t,ys(n,2))},rr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=mi(e,t);if(r<n&&Yo(e[r],t))return r}return-1},rr.sortedLastIndex=function(e,t){return mi(e,t,!0)},rr.sortedLastIndexBy=function(e,t,n){return _i(e,t,ys(n,2),!0)},rr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=mi(e,t,!0)-1;if(Yo(e[n],t))return n}return-1},rr.startCase=su,rr.startsWith=function(e,t,n){return e=Ta(e),n=null==n?0:br(xa(n),0,e.length),t=wi(t),e.slice(n,n+t.length)==t},rr.subtract=Mu,rr.sum=function(e){return e&&e.length?nn(e,pu):0},rr.sumBy=function(e,t){return e&&e.length?nn(e,ys(t,2)):0},rr.template=function(e,t,n){var r=rr.templateSettings;n&&Os(e,t,n)&&(t=i),e=Ta(e),t=Ra({},t,r,ls);var s,o,a=Ra({},t.imports,r.imports,ls),u=La(a),l=on(a,u),c=0,h=t.interpolate||$e,d="__p += '",f=Ze((t.escape||$e).source+"|"+h.source+"|"+(h===ye?Fe:$e).source+"|"+(t.evaluate||$e).source+"|$","g"),p="//# sourceURL="+(tt.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++pt+"]")+"\n";e.replace(f,function(t,n,r,i,a,u){return r||(r=i),d+=e.slice(c,u).replace(Le,dn),n&&(s=!0,d+="' +\n__e("+n+") +\n'"),a&&(o=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t}),d+="';\n";var g=tt.call(t,"variable")&&t.variable;g||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(ce,""):d).replace(he,"$1").replace(de,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=lu(function(){return We(u,p+"return "+d).apply(i,l)});if(m.source=d,aa(m))throw m;return m},rr.times=function(e,t){if((e=xa(e))<1||e>S)return[];var n=T,r=Nn(e,T);t=ys(t),e-=T;for(var i=rn(r,t);++n<e;)t(n);return i},rr.toFinite=Da,rr.toInteger=xa,rr.toLength=Sa,rr.toLower=function(e){return Ta(e).toLowerCase()},rr.toNumber=Aa,rr.toSafeInteger=function(e){return e?br(xa(e),-S,S):0===e?e:0},rr.toString=Ta,rr.toUpper=function(e){return Ta(e).toUpperCase()},rr.trim=function(e,t,n){if((e=Ta(e))&&(n||t===i))return e.replace(xe,"");if(!e||!(t=wi(t)))return e;var r=wn(e),s=wn(t);return Ri(r,un(r,s),ln(r,s)+1).join("")},rr.trimEnd=function(e,t,n){if((e=Ta(e))&&(n||t===i))return e.replace(Ae,"");if(!e||!(t=wi(t)))return e;var r=wn(e);return Ri(r,0,ln(r,wn(t))+1).join("")},rr.trimStart=function(e,t,n){if((e=Ta(e))&&(n||t===i))return e.replace(Se,"");if(!e||!(t=wi(t)))return e;var r=wn(e);return Ri(r,un(r,wn(t))).join("")},rr.truncate=function(e,t){var n=30,r="...";if(ha(t)){var s="separator"in t?t.separator:s;n="length"in t?xa(t.length):n,r="omission"in t?wi(t.omission):r}var o=(e=Ta(e)).length;if(fn(e)){var a=wn(e);o=a.length}if(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={},Mr(rr,function(e,t){tt.call(rr.prototype,t)||(ku[t]=e)}),ku),{chain:!1}),rr.VERSION="4.17.15",Nt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rr[e].placeholder=rr}),Nt(["drop","take"],function(e,t){ar.prototype[e]=function(n){n=n===i?1:Mn(xa(n),0);var r=this.__filtered__&&!t?new ar(this):this.clone();return r.__filtered__?r.__takeCount__=Nn(n,r.__takeCount__):r.__views__.push({size:Nn(n,T),type:e+(r.__dir__<0?"Right":"")}),r},ar.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Nt(["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}}),Nt(["head","last"],function(e,t){var n="take"+(t?"Right":"");ar.prototype[e]=function(){return this[n](1).value()[0]}}),Nt(["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)},Mr(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)})}),Nt(["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)})}}),Mr(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<i;){var s=n[r],o=s.size;switch(s.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=Nn(t,e+o);break;case"takeRight":e=Mn(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=s.start,a=s.end,u=a-o,l=r?a:o-1,c=this.__iteratees__,h=c.length,d=0,f=Nn(u,this.__takeCount__);if(!n||!r&&i==u&&f==u)return xi(e,this.__actions__);var p=[];e:for(;u--&&d<f;){for(var g=-1,m=e[l+=t];++g<h;){var _=c[g],v=_.type,y=(0,_.iteratee)(m);if(2==v)m=y;else if(!y){if(1==v)continue e;break e}}p[d++]=m}return p},rr.prototype.at=xo,rr.prototype.chain=function(){return Eo(this)},rr.prototype.commit=function(){return new or(this.value(),this.__chain__)},rr.prototype.next=function(){this.__values__===i&&(this.__values__=Ea(this.value()));var e=this.__index__>=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=++a<c&&i[a]||null;if(r(s))try{s.call(this)}catch(d){t=!0,e=d instanceof h?f(d.errors):[d]}if(u(o))for(a=-1,c=o.length;++a<c;){const n=o[a];if(l(n))try{n.unsubscribe()}catch(d){t=!0,e=e||[],d instanceof h?e=e.concat(f(d.errors)):e.push(d)}}if(t)throw new h(e)}add(t){let n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;(n=new e)._subscriptions=[t]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){const e=this._subscriptions;e?e.push(n):this._subscriptions=[n]}return n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}_addParent(e){let{_parent:t,_parents:n}=this;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function f(e){return e.reduce((e,t)=>e.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;i<n;i++)r[i].next(e)}}error(e){if(this.closed)throw new D;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].error(e);this.observers.length=0}complete(){if(this.closed)throw new D;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new D;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new D;return this.hasError?(e.error(this.thrownError),d.EMPTY):this.isStopped?(e.complete(),d.EMPTY):(this.observers.push(e),new x(this,e))}asObservable(){const e=new C;return e.source=this,e}}return e.create=(e,t)=>new 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;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()},R=e=>t=>(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(),M=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},N=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 N(e);if(V(e))return P(e);if(U(e))return R(e);if(e&&"function"==typeof e[I])return M(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}:N(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}:M(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.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const r=new O(this,void 0,void 0);this.destination.add(r),B(this,e,t,n,r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,r,i){this.destination.next(t)}notifyComplete(e){const t=this.buffer;this.remove(e),this.active--,t.length>0?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,Me=void 0;function Ne(e){const t=Me;return Me=e,t}function Ve(e,t=he.Default){return(Ie||function(e,t=he.Default){if(void 0===Me)throw new Error("inject() must be called from an injection context");return null===Me?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):Me.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='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',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="<body><remove></remove>"+e+"</body>";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="<body><remove></remove>"+e+"</body>";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;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const rt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,it=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function st(e){return(e=String(e)).match(rt)||e.match(it)?e:(tt()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function ot(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function at(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const ut=ot("area,br,col,hr,img,wbr"),lt=ot("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ct=ot("rp,rt"),ht=at(ct,lt),dt=at(ut,at(lt,ot("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),at(ct,ot("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ht),ft=ot("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),pt=ot("srcset"),gt=at(ft,pt,ot("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ot("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),mt=ot("script,style,template");class _t{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!dt.hasOwnProperty(t))return this.sanitizedSomething=!0,!mt.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let i=0;i<n.length;i++){const e=n.item(i),t=e.name,s=t.toLowerCase();if(!gt.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let o=e.value;ft[s]&&(o=st(o)),pt[s]&&(r=o,o=(r=String(r)).split(",").map(e=>st(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("</"),this.buf.push(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,"&amp;").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,"&lt;").replace(/>/g,"&gt;")}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},Mt=[],Nt=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:Mt,value:this,useNew:!1}),r.set(Se,{token:Se,fn:It,deps:Mt,value:this,useNew:!1}),function e(t,n){if(n)if((n=ye(n))instanceof Array)for(let r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw $t("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw $t("Unexpected provider",n);{let e=ye(n.provide);const r=function(e){const t=function(e){let t=Mt;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let r=6,i=ye(n[e]);if(i instanceof Array)for(let e=0,t=i;e<t.length;e++){const n=t[e];n instanceof ue||n==ue?r|=1:n instanceof ce||n==ce?r&=-3:n instanceof le||n==le?r&=-5:i=n instanceof ae?n.token:ye(n)}t.push({token:i,options:r})}}else if(e.useExisting)t=[{token:ye(e.useExisting),options:6}];else if(!(n||Fe in e))throw $t("'deps' required",e);return t}(e);let n=It,r=Mt,i=!1,s=ye(e.provide);if(Fe in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)i=!0,n=ye(e.useClass);else{if("function"!=typeof s)throw $t("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);i=!0,n=s}return{deps:t,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){let r=t.get(e);if(r){if(r.fn!==Vt)throw Bt(e)}else t.set(e,r={token:n.provide,deps:[],useNew:!1,fn:Vt,value:Mt});r.deps.push({token:e=n,options:6})}const i=t.get(e);if(i&&i.fn==Vt)throw Bt(e);t.set(e,r)}}}(r,e)}get(e,t,n=he.Default){const r=this._records.get(e);try{return function e(t,n,r,i,s,o){try{return function(t,n,r,i,s,o){let a;if(!n||o&he.SkipSelf)o&he.Self||(a=i.get(t,s,he.Default));else{if((a=n.value)==Nt)throw Error(Ut+"Circular dependency");if(a===Mt){n.value=Nt;let t=void 0,s=n.useNew,o=n.fn,u=n.deps,l=Mt;if(u.length){l=[];for(let t=0;t<u.length;t++){const n=u[t],s=n.options,o=2&s?r.get(n.token):void 0;l.push(e(n.token,o,r,o||4&s?i:Ft.NULL,1&s?null:Ft.THROW_IF_NOT_FOUND,he.Default))}}n.value=a=s?new o(...l):o.apply(t,l)}}return a}(t,n,r,i,s,o)}catch(a){throw a instanceof Error||(a=new Error(a)),(a[ke]=a[ke]||[]).unshift(t),n&&n.value==Nt&&(n.value=Mt),a}}(e,r,this._records,this.parent,t,n)}catch(i){return function(e,t,n,r){const i=e[ke];throw t[Re]&&i.unshift(t[Re]),e.message=je("\n"+e.message,i,"StaticInjectorError",r),e[Te]=i,e[ke]=null,e}(i,e,0,this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.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<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(zt=n)}}}return zt}function Wt(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Gt(e,t){const n=Zt(e),r=Zt(t);if(n&&r)return function(e,t,n){const r=e[Ht()](),i=t[Ht()]();for(;;){const e=r.next(),t=i.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,Gt);{const i=e&&("object"==typeof e||"function"==typeof e),s=t&&("object"==typeof t||"function"==typeof t);return!(n||!i||r||!s)||Wt(e,t)}}class qt{constructor(e){this.wrapped=e}static wrap(e){return new qt(e)}static unwrap(e){return qt.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof qt}}function Zt(e){return!!Qt(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ht()in e)}function Qt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Kt(e){return!!e&&"function"==typeof e.then}function Yt(e){return!!e&&"function"==typeof e.subscribe}class Jt{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}class Xt{}class en{}function tn(e){const t=Error(`No component factory found for ${me(e)}. Did you add it to @NgModule.entryComponents?`);return t[nn]=e,t}const nn="ngComponent";class rn{resolveComponentFactory(e){throw tn(e)}}let sn=(()=>{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<e.length;r++){const t=e[r];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw tn(e);return new an(t,this._ngModule)}}class an extends en{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}function un(...e){}let ln=(()=>{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<Dn(n,r,i)?t:n,o=Dn(s,r,i),a=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(t=t._next,null==s.previousIndex)r++;else{i||(i=[]);const e=o-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<i.length?i[n]:i[n]=0,s=r+n;t<=s&&s<e&&(i[n]=r+1)}i[s.previousIndex]=t-e}}o!==a&&e(s,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Zt(e))throw new Error(`Error trying to diff '${me(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,i=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)r=this._trackByFn(t,n=e[t]),null!==i&&Wt(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,n,r,t)),Wt(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,t),s=!0),i=i._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Ht()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{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<n.length&&(i=n[r]),r+t+i}class xn{constructor(){}supports(e){return e instanceof Map||Qt(e)}create(){return new Sn}}class Sn{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Qt(e)))throw new Error(`Error trying to diff '${me(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{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 Mn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Nn(e,ln),e})();const Nn=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<<e%32}(e)):r[e]=i}),{matchedQueries:t,references:r,matchedQueryIds:n}}function fr(e,t){return e.map(e=>{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<o.length;t++)Cr(e,o[t],n,r,i,s)}}function wr(e,t,n,r,i,s){if(8&t.flags)yr(e,t.ngContent.index,n,r,i,s);else{const o=lr(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&Cr(e,o,n,r,i,s),32&t.bindingFlags&&Cr(zn(e,t.nodeIndex).componentView,o,n,r,i,s)):Cr(e,o,n,r,i,s),16777216&t.flags){const o=zn(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<o.length;e++)_r(o[e],n,r,i,s)}1&t.flags&&!t.element.name&&vr(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,i,s)}}function Cr(e,t,n,r,i,s){const o=e.renderer;switch(n){case 1:o.appendChild(r,t);break;case 2:o.insertBefore(r,t,i);break;case 3:o.removeChild(r,t);break;case 0:s.push(t)}}const br=/^:([^:]+):(.+)$/;function Er(e){if(":"===e[0]){const t=e.match(br);return[t[1],t[2]]}return["",e]}function Dr(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}function xr(e,t,n,r,i,s,o,a,u,l,c,h,d,f,p,g,m,_,v,y){switch(e){case 1:return t+Sr(n)+r;case 2:return t+Sr(n)+r+Sr(i)+s;case 3:return t+Sr(n)+r+Sr(i)+s+Sr(o)+a;case 4:return t+Sr(n)+r+Sr(i)+s+Sr(o)+a+Sr(u)+l;case 5:return t+Sr(n)+r+Sr(i)+s+Sr(o)+a+Sr(u)+l+Sr(c)+h;case 6:return t+Sr(n)+r+Sr(i)+s+Sr(o)+a+Sr(u)+l+Sr(c)+h+Sr(d)+f;case 7:return t+Sr(n)+r+Sr(i)+s+Sr(o)+a+Sr(u)+l+Sr(c)+h+Sr(d)+f+Sr(p)+g;case 8:return t+Sr(n)+r+Sr(i)+s+Sr(o)+a+Sr(u)+l+Sr(c)+h+Sr(d)+f+Sr(p)+g+Sr(m)+_;case 9:return t+Sr(n)+r+Sr(i)+s+Sr(o)+a+Sr(u)+l+Sr(c)+h+Sr(d)+f+Sr(p)+g+Sr(m)+_+Sr(v)+y;default:throw new Error("Does not support more than 9 expressions")}}function Sr(e){return null!=e?e.toString():""}const Ar=new Object,kr=Kn(Ft),Tr=Kn(Se),Or=Kn(Be);function Pr(e,t,n,r){return n=ye(n),{index:-1,deps:fr(r,me(t)),flags:e,token:t,value:n}}function Rr(e,t,n=Ft.THROW_IF_NOT_FOUND){const r=Ne(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const o=t.tokenKey;switch(o){case kr:case Tr:case Or:return e}const a=e._def.providersByKey[o];let u;if(a){let t=e._providers[a.index];return void 0===t&&(t=e._providers[a.index]=Fr(e,a)),t===Ar?void 0:t}if((u=pe(t.token))&&(i=e,null!=(s=u).providedIn&&(function(e,t){return e._def.modules.indexOf(s.providedIn)>-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{Ne(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<r;t++)i[t]=Rr(e,n[t]);return new t(...i)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const r=n.length;switch(r){case 0:return t();case 1:return t(Rr(e,n[0]));case 2:return t(Rr(e,n[0]),Rr(e,n[1]));case 3:return t(Rr(e,n[0]),Rr(e,n[1]),Rr(e,n[2]));default:const i=Array(r);for(let t=0;t<r;t++)i[t]=Rr(e,n[t]);return t(...i)}}(e,t.value,t.deps);break;case 2048:n=Rr(e,t.deps[0]);break;case 256:n=t.value}return n===Ar||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Ar:n}function Ir(e,t){const n=e.viewContainer._embeddedViews;if((null==t||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),Nr(r),r}function Mr(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 Nr(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),Mr(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),Nr(s),Mr(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,Nr(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;n<t.length;n++)this.delegate.appendChild(e,t[n])}attachViewAfter(e,t){const n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e);for(let i=0;i<t.length;i++)this.delegate.insertBefore(n,t[i],r)}detachView(e){for(let t=0;t<e.length;t++){const n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}}destroyView(e,t){for(let n=0;n<t.length;n++)this.delegate.destroyNode(t[n])}listen(e,t,n){return this.delegate.listen(e,t,n)}listenGlobal(e,t,n){return this.delegate.listen(e,t,n)}setElementProperty(e,t,n){this.delegate.setProperty(e,t,n)}setElementAttribute(e,t,n){const[r,i]=Er(t);null!=n?this.delegate.setAttribute(e,i,n,r):this.delegate.removeAttribute(e,i,r)}setBindingDebugInfo(e,t,n){}setElementClass(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)}setElementStyle(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)}invokeElementMethod(e,t,n){e[t].apply(e,n)}setText(e,t){this.delegate.setValue(e,t)}animate(){throw new Error("Renderer.animate is no longer supported!")}}function Jr(e,t,n,r){return new Xr(e,t,n,r)}class Xr{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=new Array(t.providers.length);for(let r=0;r<t.providers.length;r++){const i=t.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Fr(e,i))}}(this)}get(e,t=Ft.THROW_IF_NOT_FOUND,n=he.Default){let r=0;return n&he.SkipSelf?r|=1:n&he.Self&&(r|=4),Rr(this,{token:e,tokenKey:Kn(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(sn)}destroy(){if(this._destroyed)throw new Error(`The ng module ${me(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,r=new Set;for(let i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){const t=e._providers[i];if(t&&t!==Ar){const e=t.ngOnDestroy;"function"!=typeof e||r.has(t)||(e.apply(t),r.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const ei=Kn(hn),ti=Kn(pn),ni=Kn(ln),ri=Kn(Mn),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;r<t.outputs.length;r++){const i=t.outputs[r],s=n[i.propName];if(!Yt(s))throw new Error(`@Output ${i.propName} not initialized in '${n.constructor.name}'.`);{const n=s.subscribe(pi(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function pi(e,t,n){return r=>or(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;r<s;r++)o[r]=vi(e,t,n,i[r]);return r(...o)}}(e,t.parent,n,r.value,r.deps);case 2048:return vi(e,t.parent,n,r.deps[0]);case 256:return r.value}}function mi(e,t,n,r,i){const s=i.length;switch(s){case 0:return new r;case 1:return new r(vi(e,t,n,i[0]));case 2:return new r(vi(e,t,n,i[0]),vi(e,t,n,i[1]));case 3:return new r(vi(e,t,n,i[0]),vi(e,t,n,i[1]),vi(e,t,n,i[2]));default:const o=new Array(s);for(let r=0;r<s;r++)o[r]=vi(e,t,n,i[r]);return new r(...o)}}const _i={};function vi(e,t,n,r,i=Ft.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const s=e;2&r.flags&&(i=null);const o=r.tokenKey;o===si&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let a=e;for(;a;){if(t)switch(o){case ei:return Kr(yi(a,t,n));case ti:return yi(a,t,n).renderer;case ni:return new ln(zn(a,t.nodeIndex).renderElement);case ri:return zn(a,t.nodeIndex).viewContainer;case ii:if(t.element.template)return zn(a,t.nodeIndex).template;break;case si:return zr(yi(a,t,n));case oi:case ai:return qr(a,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[o];if(e){let t=Hn(a,e.nodeIndex);return t||(t={instance:gi(a,e)},a.nodes[e.nodeIndex]=t),t.instance}}n=cr(a),t=ur(a),a=a.parent,4&r.flags&&(a=null)}const u=s.root.injector.get(r.token,_i);return u!==_i||i===_i?u:s.root.ngModule.injector.get(r.token,i)}function yi(e,t,n){let r;if(n)r=zn(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!cr(r);)r=r.parent;return r}function wi(e,t,n,r,i,s){if(32768&n.flags){const t=zn(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){s=s||{};const t=qt.unwrap(e.oldValues[n.bindingIndex+r]);s[n.bindings[r].nonMinifiedName]=new Jt(t,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,s}function Ci(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let i=0;i<n.length;i++){const s=n[i];let o=s.parent;for(!o&&s.flags&t&&Ei(e,i,s.flags&t,r++),0==(s.childFlags&t)&&(i+=s.childCount);o&&1&o.flags&&i===o.nodeIndex+o.childCount;)o.directChildFlags&t&&(r=bi(e,o,t,r)),o=o.parent}}function bi(e,t,n,r){for(let i=t.nodeIndex+1;i<=t.nodeIndex+t.childCount;i++){const t=e.def.nodes[i];t.flags&n&&Ei(e,i,t.flags&n,r++),i+=t.childCount}return r}function Ei(e,t,n,r){const i=Hn(e,t);if(!i)return;const s=i.instance;s&&(qn.setCurrentNode(e,t),1048576&n&&$n(e,512,r)&&s.ngAfterContentInit(),2097152&n&&s.ngAfterContentChecked(),4194304&n&&$n(e,768,r)&&s.ngAfterViewInit(),8388608&n&&s.ngAfterViewChecked(),131072&n&&s.ngOnDestroy())}const Di=new xe("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>We}),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<t.length;r++){let i=t[r];Array.isArray(i)?(n===t&&(n=t.slice(0,r)),e(i,n)):n!==t&&n.push(i)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}const Mi=new xe("Application Initializer");class Ni{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{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<this.appInits.length;n++){const t=this.appInits[n]();Kt(t)&&e.push(t)}Promise.all(e).then(()=>{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(Ni);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=>Ms(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=>Ms(e,t,r))}}function Ms(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Ns{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<a.length;w++){const[e,t,n]=a[w],[r,i]=Er(t);let s=void 0,o=void 0;switch(15&e){case 4:o=n;break;case 1:case 8:s=n}_[w]={flags:e,ns:r,name:i,nonMinifiedName:i,securityContext:s,suffix:o}}u=u||[];const v=new Array(u.length);for(let w=0;w<u.length;w++){const[e,t]=u[w];v[w]={type:0,target:e,eventName:t,propName:null}}const y=(o=o||[]).map(([e,t])=>{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;a<r.attrs.length;a++){const[e,t,n]=r.attrs[a];s.setAttribute(o,t,n,e)}return o}function Ys(e,t,n,r){for(let o=0;o<n.outputs.length;o++){const a=n.outputs[o],u=Js(e,n.nodeIndex,(s=a.eventName,(i=a.target)?`${i}:${s}`:s));let l=a.target,c=e;"component"===a.target&&(l=null,c=t);const h=c.renderer.listen(l||r,a.eventName,u);e.disposables[n.outputIndex+o]=h}var i,s}function Js(e,t,n){return r=>or(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.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(i+=r.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&Gn(e,n).setDirty(),n+=t.childCount}}function to(e,t){const n=Gn(e,t.nodeIndex);if(!n.dirty)return;let r,i=void 0;if(67108864&t.flags){const n=t.parent.parent;i=no(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=Hn(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(i=no(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(i);const s=t.query.bindings;let o=!1;for(let a=0;a<s.length;a++){const e=s[a];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,o=!0}r[e.propName]=t}o&&n.notifyOnChanges()}function no(e,t,n,r,i){for(let s=t;s<=n;s++){const t=e.def.nodes[s],n=t.matchedQueries[r.id];if(null!=n&&i.push(ro(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=zn(e,s);if((t.childMatchedQueries&r.filterId)===r.filterId&&(no(e,s+1,s+t.childCount,r,i),s+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const s=e[t],o=ar(s);o&&o===n&&no(s,0,s.def.nodes.length-1,r,i)}}const o=n.template._projectedViews;if(o)for(let e=0;e<o.length;e++){const t=o[e];no(t,0,t.def.nodes.length-1,r,i)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(s+=t.childCount)}return i}function ro(e,t,n){if(null!=n)switch(n){case 1:return zn(e,t.nodeIndex).renderElement;case 0:return new ln(zn(e,t.nodeIndex).renderElement);case 2:return zn(e,t.nodeIndex).template;case 3:return zn(e,t.nodeIndex).viewContainer;case 4:return Hn(e,t.nodeIndex).instance}}function io(e,t,n){const r=pr(e,t,n);r&&yr(e,n.ngContent.index,1,r,null,void 0)}function so(e,t){const n=Object.keys(t),r=n.length,i=new Array(r);for(let s=0;s<r;s++){const e=n[s];i[t[e]]=e}return oo(64,e,i)}function oo(e,t,n){const r=new Array(n.length);for(let i=0;i<n.length;i++){const e=n[i];r[i]={flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:Dr(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function ao(e,t,n){const r=new Array(n.length-1);for(let i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function uo(e,t,n){let r;const i=e.renderer;r=i.createText(n.text.prefix);const s=pr(e,t,n);return s&&i.appendChild(s,r),{renderText:r}}function lo(e,t){return(null!=e?e.toString():"")+t.suffix}function co(e,t,n,r){let i=0,s=0,o=0,a=0,u=0,l=null,c=null,h=!1,d=!1,f=null;for(let p=0;p<t.length;p++){const e=t[p];if(e.nodeIndex=p,e.parent=l,e.bindingIndex=i,e.outputIndex=s,e.renderParent=c,o|=e.flags,u|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=l?l.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,h=!1,d=!1,e.element.template&&(u|=e.element.template.nodeMatchedQueries)}if(fo(l,e,t.length),i+=e.bindings.length,s+=e.outputs.length,!c&&3&e.flags&&(f=e),20224&e.flags){h||(h=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?l.element.publicProviders[Kn(e.provider.token)]=e:(d||(d=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[Kn(e.provider.token)]=e),t&&(l.element.componentProvider=e)}if(l?(l.childFlags|=e.flags,l.directChildFlags|=e.flags,l.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(l.childMatchedQueries|=e.element.template.nodeMatchedQueries)):a|=e.flags,e.childCount>0)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;i<n.nodes.length;i++){const s=n.nodes[i];let o;switch(qn.setCurrentNode(e,i),201347067&s.flags){case 1:const n=Ks(e,t,s);let a=void 0;if(33554432&s.flags){const t=mr(s.element.componentView);a=qn.createComponentView(e,s,t,n)}Ys(e,a,s,n),o={renderElement:n,componentView:a,viewContainer:null,template:s.element.template?Wr(e,s):void 0},16777216&s.flags&&(o.viewContainer=$r(e,s,o));break;case 2:o=uo(e,t,s);break;case 512:case 1024:case 2048:case 256:(o=r[i])||4096&s.flags||(o={instance:hi(e,s)});break;case 16:o={instance:di(e,s)};break;case 16384:(o=r[i])||(o={instance:fi(e,s)}),32768&s.flags&&vo(zn(e,s.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o={value:void 0};break;case 67108864:case 134217728:o=new Ii;break;case 8:io(e,t,s),o=void 0}r[i]=o}ko(e,Ao.CreateViewNodes),Ro(e,201326592,268435456,0)}function wo(e){Eo(e),qn.updateDirectives(e,1),To(e,Ao.CheckNoChanges),qn.updateRenderer(e,1),ko(e,Ao.CheckNoChanges),e.state&=-97}function Co(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Bn(e,0,256),Eo(e),qn.updateDirectives(e,0),To(e,Ao.CheckAndUpdate),Ro(e,67108864,536870912,0);let t=Bn(e,256,512);Ci(e,2097152|(t?1048576:0)),qn.updateRenderer(e,0),ko(e,Ao.CheckAndUpdate),Ro(e,134217728,536870912,0),Ci(e,8388608|((t=Bn(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Bn(e,768,1024)}function bo(e,t,n,r,i,s,o,a,u,l,c,h,d){return 0===n?function(e,t,n,r,i,s,o,a,u,l,c,h){switch(201347067&t.flags){case 1:return function(e,t,n,r,i,s,o,a,u,l,c,h){const d=t.bindings.length;let f=!1;return d>0&&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;i<n.length;i++)Xs(e,t,i,n[i])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let i=!1;for(let s=0;s<n.length;s++)nr(e,t,s,n[s])&&(i=!0);if(i){let i="";for(let e=0;e<n.length;e++)i+=lo(n[e],r[e]);i=t.text.prefix+i;const s=Ln(e,t.nodeIndex).renderText;e.renderer.setValue(s,i)}return i}(e,t,n);case 16384:return function(e,t,n){const r=Hn(e,t.nodeIndex),i=r.instance;let s=!1,o=void 0;for(let a=0;a<n.length;a++)tr(e,t,a,n[a])&&(s=!0,o=wi(e,r,t,a,n[a],o));return o&&i.ngOnChanges(o),65536&t.flags&&$n(e,256,t.nodeIndex)&&i.ngOnInit(),262144&t.flags&&i.ngDoCheck(),s}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let i=!1;for(let s=0;s<n.length;s++)nr(e,t,s,n[s])&&(i=!0);if(i){const i=Wn(e,t.nodeIndex);let s;switch(201347067&t.flags){case 32:s=n;break;case 64:s={};for(let t=0;t<n.length;t++)s[r[t].name]=n[t];break;case 128:const e=n[0],i=n.slice(1);s=e.transform(...i)}i.value=s}return i}(e,t,n);default:throw"unreachable"}}(e,t,r)}function Eo(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const r=t.nodes[n];if(4&r.flags){const t=zn(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,sr(r,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Do(e,t,n,r,i,s,o,a,u,l,c,h,d){return 0===n?function(e,t,n,r,i,s,o,a,u,l,c,h){const d=t.bindings.length;d>0&&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<n.length;r++)rr(e,t,r,n[r])}(e,t,r),!1}function xo(e,t){if(Gn(e,t.nodeIndex).dirty)throw Vn(qn.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function So(e){if(!(128&e.state)){if(To(e,Ao.Destroy),ko(e,Ao.Destroy),Ci(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=ar(e);if(t){const n=t.template._projectedViews;n&&(ze(n,n.indexOf(e)),qn.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(zn(e,n).renderElement):2&t.flags?e.renderer.destroyNode(Ln(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&Gn(e,n).destroy()}}(e),cr(e)&&e.renderer.destroy(),e.state|=128}}const Ao=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function ko(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];33554432&i.flags?Oo(zn(e,r).componentView,t):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function To(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];if(16777216&i.flags){const n=zn(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)Oo(n[e],t)}else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function Oo(e,t){const n=e.state;switch(t){case Ao.CheckNoChanges:0==(128&n)&&(12==(12&n)?wo(e):64&n&&Po(e,Ao.CheckNoChangesProjectedViews));break;case Ao.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?wo(e):64&n&&Po(e,t));break;case Ao.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Co(e):64&n&&Po(e,Ao.CheckAndUpdateProjectedViews));break;case Ao.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Co(e):64&n&&Po(e,t));break;case Ao.Destroy:So(e);break;case Ao.CreateViewNodes:yo(e)}}function Po(e,t){To(e,t),ko(e,t)}function Ro(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const i=e.def.nodes.length;for(let s=0;s<i;s++){const i=e.def.nodes[s];if(i.flags&t&&i.flags&n)switch(qn.setCurrentNode(e,i.nodeIndex),r){case 0:to(e,i);break;case 1:xo(e,i)}i.childFlags&t&&i.childFlags&n||(s+=i.childCount)}}let Fo=!1;function Io(e,t,n,r,i,s){const o=i.injector.get(dn);return go(No(e,i,o,t,n),r,s)}function Mo(e,t,n,r,i,s){const o=i.injector.get(dn),a=No(e,i,new pa(o),t,n),u=Go(r);return da(Jo.create,go,null,[a,u,s])}function No(e,t,n,r,i){const s=t.injector.get(Dt),o=t.injector.get(Je),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:s,rendererFactory:n,renderer:a,errorHandler:o}}function Vo(e,t,n,r){const i=Go(n);return da(Jo.create,po,null,[e,t,i,r])}function Uo(e,t,n,r){return n=Lo.get(t.element.componentProvider.provider.token)||Go(n),da(Jo.create,mo,null,[e,t,n,r])}function jo(e,t,n,r){return Jr(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===Bo.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(e=>{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;t<e.providers.length;t++){const r=e.providers[t];n&&(r.flags|=4096);const i=Bo.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=fr(i.deps),r.value=i.value)}if($o.size>0){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;r<e.nodes.length;r++){const i=e.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Bo.has(i.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>Zn);for(let r=0;r<t.length;r++)n(e,t[r]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=Bo.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=fr(n.deps),e.value=n.value)}}}}function qo(e,t,n,r,i,s,o,a,u,l,c,h,d){const f=e.def.nodes[t];return bo(e,f,n,r,i,s,o,a,u,l,c,h,d),224&f.flags?Wn(e,t).value:void 0}function Zo(e,t,n,r,i,s,o,a,u,l,c,h,d){const f=e.def.nodes[t];return Do(e,f,n,r,i,s,o,a,u,l,c,h,d),224&f.flags?Wn(e,t).value:void 0}function Qo(e){return da(Jo.detectChanges,Co,null,[e])}function Ko(e){return da(Jo.checkNoChanges,wo,null,[e])}function Yo(e){return da(Jo.destroy,So,null,[e])}const Jo=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();let Xo,ea,ta;function na(e,t){ea=e,ta=t}function ra(e,t,n,r){return na(e,t),da(Jo.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function ia(e,t){if(128&e.state)throw jn(Jo[Xo]);return na(e,ua(e,0)),e.def.updateDirectives(function(e,n,r,...i){const s=e.def.nodes[n];return 0===t?oa(e,s,r,i):aa(e,s,r,i),16384&s.flags&&na(e,ua(e,n)),224&s.flags?Wn(e,s.nodeIndex).value:void 0},e)}function sa(e,t){if(128&e.state)throw jn(Jo[Xo]);return na(e,la(e,0)),e.def.updateRenderer(function(e,n,r,...i){const s=e.def.nodes[n];return 0===t?oa(e,s,r,i):aa(e,s,r,i),3&s.flags&&na(e,la(e,n)),224&s.flags?Wn(e,s.nodeIndex).value:void 0},e)}function oa(e,t,n,r){if(bo(e,t,n,...r)){const o=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],a=o[e];8&r.flags&&(n[(i=r.nonMinifiedName,s=void 0,s=i.replace(/[$@]/g,"_"),`ng-reflect-${i=s.replace(At,(...e)=>"-"+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<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function la(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class ca{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,r=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=ur(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return zn(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return qr(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){ha(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&ha(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!cr(e);)e=e.parent;return e.parent?zn(e.parent,ur(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?lr(this.view,this.nodeDef):lr(this.elView,this.elDef)}logError(e,...t){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const i=function(e,t){let n=-1;for(let r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(n,r);let s=-1;n.factory(()=>++s===i?e.error.bind(e,...t):Zn),s<i&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function ha(e,t,n){for(let r in t.references)n[r]=ro(e,t,t.references[r])}function da(e,t,n,r){const i=Xo,s=ea,o=ta;try{Xo=e;const u=t.apply(n,r);return ea=s,ta=o,Xo=i,u}catch(a){if(Qe(a)||!ea)throw a;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),Un(e,t),e}(a,fa())}}function fa(){return ea?new ca(ea,ta):null}class pa{constructor(e){this.delegate=e}createRenderer(e,t){return new ga(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class ga{constructor(e){this.delegate=e,this.debugContextFactory=fa,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){const t=Bs(e);js.delete(t.nativeNode),t instanceof Vs&&(t.listeners.length=0),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){const t=new Us(n,null,r);t.name=e,$s(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&$s(new Vs(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&$s(new Vs(t,null,n)),t}appendChild(e,t){const n=Bs(e),r=Bs(t);n&&r&&n instanceof Us&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const r=Bs(e),i=Bs(t),s=Bs(n);r&&i&&r instanceof Us&&r.insertBefore(s,i),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=Bs(e),r=Bs(t);n&&r&&n instanceof Us&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=fa();return r&&$s(new Us(n,null,r)),n}setAttribute(e,t,n,r){const i=Bs(e);i&&i instanceof Us&&(i.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=Bs(e);r&&r instanceof Us&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=Bs(e);n&&n instanceof Us&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=Bs(e);n&&n instanceof Us&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const i=Bs(e);i&&i instanceof Us&&(i.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=Bs(e);r&&r instanceof Us&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=Bs(e);r&&r instanceof Us&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=Bs(e);r&&r.listeners.push(new Ns(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function ma(e,t,n){return new _a(e,t,n)}class _a extends $e{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(Fo)return;Fo=!0;const e=tt()?{setCurrentNode:na,createRootView:Mo,createEmbeddedView:Vo,createComponentView:Uo,createNgModuleRef:jo,overrideProvider:zo,overrideComponentView:Ho,clearOverrides:Wo,checkAndUpdateView:Qo,checkNoChangesView:Ko,destroyView:Yo,createDebugContext:(e,t)=>new 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 Ma=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})();class Na extends Ma{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<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{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<t;n++){const t=e[n];this.add(B(this,t,t,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n,r,i){const s=this.values,o=this.toRespond?s[n]===ru?--this.toRespond:this.toRespond:0;s[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function ou(e){return new C(t=>{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.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;i<n;i++){const i=t++%n;e.next(r[i])}}e.complete()}}function mu(e,t,n){return function(r){return r.lift(new _u(e,t,n))}}class _u{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new vu(e,this.nextOrObserver,this.error,this.complete))}}class vu extends g{constructor(e,t,n,i){super(e),this._tapNext=v,this._tapError=v,this._tapComplete=v,this._tapError=n||v,this._tapComplete=i||v,r(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||v,this._tapError=t.error||v,this._tapComplete=t.complete||v)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const yu=(e=function(){return new nu})=>mu({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 Mu(e,this.project))}}class Mu 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 Nu(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<e.length;n++)if(null!=this.getStyle(t,e[n]+"AnimationName")){this._animationPrefix="-"+e[n].toLowerCase()+"-";break}}const n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(n).forEach(e=>{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;r<t.length;r++)n[r]=t[r];return n}clearNodes(e){for(;e.firstChild;)e.removeChild(e.firstChild)}appendChild(e,t){e.appendChild(t)}removeChild(e,t){e.removeChild(t)}replaceChild(e,t,n){e.replaceChild(t,n)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}insertBefore(e,t,n){e.insertBefore(n,t)}insertAllBefore(e,t,n){n.forEach(n=>e.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<n.length;r++){const e=n.item(r);t.set(e.name,e.value)}return t}hasAttribute(e,t){return e.hasAttribute(t)}hasAttributeNS(e,t,n){return e.hasAttributeNS(t,n)}getAttribute(e,t){return e.getAttribute(t)}getAttributeNS(e,t,n){return e.getAttributeNS(t,n)}setAttribute(e,t,n){e.setAttribute(t,n)}setAttributeNS(e,t,n,r){e.setAttributeNS(t,n,r)}removeAttribute(e,t){e.removeAttribute(t)}removeAttributeNS(e,t,n){e.removeAttributeNS(t,n)}templateAwareRoot(e){return this.isTemplateElement(e)?this.content(e):e}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}getBoundingClientRect(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}getTitle(e){return e.title}setTitle(e,t){e.title=t||""}elementMatches(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}isTemplateElement(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName}isTextNode(e){return e.nodeType===Node.TEXT_NODE}isCommentNode(e){return e.nodeType===Node.COMMENT_NODE}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}hasShadowRoot(e){return null!=e.shadowRoot&&e instanceof HTMLElement}isShadowRoot(e){return e instanceof DocumentFragment}importIntoDoc(e){return document.importNode(this.templateAwareRoot(e),!0)}adoptNode(e){return document.adoptNode(e)}getHref(e){return e.getAttribute("href")}getEventKey(e){let t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),e.location===qu&&Qu.hasOwnProperty(t)&&(t=Qu[t]))}return Zu[t]||t}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=Xu||(Xu=document.querySelector("base"))?Xu.getAttribute("href"):null;return null==t?null:(n=t,Ju||(Ju=document.createElement("a")),Ju.setAttribute("href",n),"/"===Ju.pathname.charAt(0)?Ju.pathname:"/"+Ju.pathname);var n}resetBaseElement(){Xu=null}getUserAgent(){return window.navigator.userAgent}setData(e,t,n){this.setAttribute(e,"data-"+t,n)}getData(e,t){return this.getAttribute(e,"data-"+t)}getComputedStyle(e){return getComputedStyle(e)}supportsWebAnimation(){return"function"==typeof Element.prototype.animate}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,i]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,e)}setCookie(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}}let Ju,Xu=null;function el(){return!!window.history.pushState}let tl=(()=>{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:Mi,useFactory:function(e,t,n){return()=>{n.get(Ni).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<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}class cl{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=zu().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}class hl{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{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<t.length;r++){let i=t[r];Array.isArray(i)?_l(e,i,n):(i=i.replace(pl,e),n.push(i))}return n}function vl(e){return t=>{!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<i.length;s++){const e=document.createElement("style");e.textContent=i[s],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}const xl=(()=>"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",Ml=(()=>{const e="undefined"!=typeof Zone&&Zone[xl("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),Nl=function(e){return!!Ml&&Ml.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;n<t.length&&!0!==e[Fl];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}}};class Ul extends cl{constructor(e,t,n){super(e),this.ngZone=t,n&&function(e){return e===qa}(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype[Il])return;const e=Event.prototype[Il]=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Fl]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let r=n;if(!e[Sl]||as.isInAngularZone()&&!Nl(t))e[Pl](t,r,!1);else{let n=kl[t];n||(n=kl[t]=xl(Ol+t+Tl));let i=e[n];const s=i&&i.length>0;i||(i=e[n]=[]);const o=Nl(t)?Zone.root:Zone.current;if(0===i.length)i.push({zone:o,handler:r});else{let e=!1;for(let t=0;t<i.length;t++)if(i[t].handler===r){e=!0;break}e||i.push({zone:o,handler:r})}s||e[Sl](t,Vl,!1)}return()=>this.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<s.length;a++)if(s[a].handler===n){o=!0,s.splice(a,1);break}o?0===s.length&&r.apply(e,[t,Vl,!1]):e[Rl].apply(e,[t,n,!1])}}const jl={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Bl=new xe("HammerGestureConfig"),$l=new xe("HammerLoader");class Ll{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}class zl extends cl{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!jl.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,i=()=>{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;r<e.length;r++){const i=e.charAt(r);"'"===i&&n?t=!t:'"'===i&&t&&(n=!n)}return t&&n}(e)?e:(tt()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}(t));case Et.SCRIPT:if(t instanceof Jl)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case Et.URL:return t instanceof ec||t instanceof Xl?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),st(String(t)));case Et.RESOURCE_URL:if(t instanceof ec)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}checkNotSafeValue(e,t){if(e instanceof Ql)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(e){return new Kl(e)}bypassSecurityTrustStyle(e){return new Yl(e)}bypassSecurityTrustScript(e){return new Jl(e)}bypassSecurityTrustUrl(e){return new Xl(e)}bypassSecurityTrustResourceUrl(e){return new ec(e)}}class Ql{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class Kl extends Ql{getTypeName(){return"HTML"}}class Yl extends Ql{getTypeName(){return"Style"}}class Jl extends Ql{getTypeName(){return"Script"}}class Xl extends Ql{getTypeName(){return"URL"}}class ec extends Ql{getTypeName(){return"ResourceURL"}}const tc=Es(Ls,"browser",[{provide:$i,useValue:"browser"},{provide:Bi,useValue:function(){Yu.makeCurrent(),il.init()},multi:!0},{provide:wa,useClass:tl,deps:[Ga]},{provide:Ga,useFactory:function(){return document},deps:[]}]);function nc(){return new Je}class rc{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:rc,providers:[{provide:Vi,useValue:e.appId},{provide:nl,useExisting:Vi},rl]}}}"undefined"!=typeof window&&window;class ic{constructor(e,t){this.id=e,this.url=t}}class sc extends ic{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class oc extends ic{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ac extends ic{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class uc extends ic{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class lc extends ic{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cc extends ic{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hc extends ic{constructor(e,t,n,r,i){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class dc extends ic{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fc extends ic{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pc{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class gc{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class mc{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _c{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vc{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yc{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wc{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Cc{}const bc="primary";class Ec{constructor(e){this.params=e||{}}has(e){return this.params.hasOwnProperty(e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Dc(e){return new Ec(e)}const xc="ngNavigationCancelingError";function Sc(e){const t=Error("NavigationCancelingError: "+e);return t[xc]=!0,t}function Ac(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const i={};for(let s=0;s<r.length;s++){const t=r[s],n=e[s];if(t.startsWith(":"))i[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}class kc{constructor(e,t){this.routes=e,this.module=t}}function Tc(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];Oc(r,Pc(t,r))}}function Oc(e,t){if(!e)throw new Error(`\n Invalid configuration of route '${t}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(e))throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==bc)throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&e.component)throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);if(e.path&&e.matcher)throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);e.children&&Tc(e.children,t)}function Pc(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function Rc(e){const t=e.children&&e.children.map(Rc),n=t?Object.assign({},e,{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==bc&&(n.component=Cc),n}function Fc(e,t){const n=Object.keys(e),r=Object.keys(t);if(!n||!r||n.length!=r.length)return!1;let i;for(let s=0;s<n.length;s++)if(e[i=n[s]]!==t[i])return!1;return!0}function Ic(e){return Array.prototype.concat.apply([],e)}function Mc(e){return e.length>0?e[e.length-1]:null}function Nc(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,Nc(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 Nc(e.children,(e,r)=>{r===bc&&(n=n.concat(t(e,r)))}),Nc(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 Nc(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;n<e.length;++n)if(!Fc(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Fc(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function yh(e,t){var n,r;return Fc(e.params,t.params)&&Lc(n=e.url,r=t.url)&&n.every((e,t)=>Fc(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&&Nc(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 Nc(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!==Mc(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<e.segments.length;){if(r>=n.length)return s;const t=e.segments[i],o=Dh(n[r]),a=r<n.length-1?n[r+1]:null;if(i>0&&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<e.segments.length){const t=new Bc(e.segments.slice(0,r.pathIndex),{});return t.children[bc]=new Bc(e.segments.slice(r.pathIndex),e.children),Sh(t,0,i)}return r.match&&0===i.length?new Bc(e.segments,{}):r.match&&!e.hasChildren()?Ah(e,t,n):r.match?Sh(e,0,i):Ah(e,t,n)}function Sh(e,t,n){if(0===n.length)return new Bc(e.segments,{});{const r=function(e){return"object"!=typeof e[0]?{[bc]:e}:void 0===e[0].outlets?{[bc]:e}:e[0].outlets}(n),i={};return Nc(r,(n,r)=>{null!==n&&(i[r]=xh(e.children[r],t,n))}),Nc(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<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){const e=kh(n[i].outlets);return new Bc(r,e)}if(0===i&&wh(n[0])){r.push(new $c(e.segments[t].path,n[0])),i++;continue}const s=Dh(n[i]),o=i<n.length-1?n[i+1]:null;s&&o&&wh(o)?(r.push(new $c(s,Th(o))),i+=2):(r.push(new $c(s,{})),i++)}return new Bc(r,{})}function kh(e){const t={};return Nc(e,(e,n)=>{null!==e&&(t[n]=Ah(new Bc([],{}),0,e))}),t}function Th(e){const t={};return Nc(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]}),Nc(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;Nc(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 Mh(e){return e instanceof jc}class Nh{constructor(e){this.segmentGroup=e||null}}class Vh{constructor(e){this.urlTree=e}}function Uh(e){return new C(t=>t.error(new Nh(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 Nh)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 Nh)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 Nc(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 Nh)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 Nh(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 Nc(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 Nc(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]}),Nc(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;Nc(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(Nu((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||Mh(r))return r}return e},e)},Yh),uu(e=>e!==Yh),L(e=>Mh(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?Mc(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={};Nc(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(Mh(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(Nu(e,t),fu(1),wu(t))(n)}:function(t){return y(Nu((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;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,e),e}{const r=new dh(new eu((i=n.value).url),new eu(i.params),new eu(i.queryParams),new eu(i.fragment),new eu(i.data),i.outlet,i.component,i),s=n.children.map(n=>e(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=Mh(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 Nc(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=Mh(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<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(Mh(e))return Uc(this.currentUrlTree,e,t);const n=this.parseUrl(e);return Uc(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{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"),Md=[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 Nd(){return new bs("Router",Ed)}class Vd{constructor(e,t){}static forRoot(e,t){return{ngModule:Vd,providers:[Md,$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:Nd},[Hd,{provide:Mi,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,Mn,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<n;r++){const e=B(this,t[r],null,r);e&&this.add(e)}}notifyNext(e,t,n,r,i){this.values[n]=t,i._hasValue||(i._hasValue=!0,this.haveValues++)}notifyComplete(e){const{destination:t,haveValues:n,values:r}=this,i=r.length;e._hasValue?(this.completed++,this.completed===i&&(n===i&&t.next(r),t.complete())):t.complete()}}const Xd=new xe("NgValueAccessor"),ef=new xe("CompositionEventMode");class tf{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},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<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{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<e?{minlength:{requiredLength:e,actualLength:n}}:null}}static maxLength(e){return t=>{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 <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ngModelWithFormGroup:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\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<e.length;t++){const r=e.item(t),i=this._getOptionValue(r.value);n.push(i)}}else{const e=t.options;for(let t=0;t<e.length;t++){const r=e.item(t);if(r.selected){const e=this._getOptionValue(r.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,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)._value:e}},class{constructor(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=()=>{},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: <input type="radio" formControlName="food" name="food">\n ')}}],Of="VALID",Pf="INVALID",Rf="PENDING",Ff="DISABLED";function If(e){const t=Nf(e)?e.validators:e;return Array.isArray(t)?Af(t):t||null}function Mf(e,t){const n=Nf(t)?t.asyncValidators:e;return Array.isArray(n)?kf(n):n||null}function Nf(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=Mf(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){Nf(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),Mf(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),Mf(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),Mf(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},{name:"Pantheon",roles:["dragon","guardian"],cost:5,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]<n[e]?-1:0)}selectRole(e){if(e!==this.selectedRole){this.resetComposition(),this.selectedRole=e;let t=0;this.champions.map(n=>(-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%] .imageWrap[_ngcontent-%COMP%] .cost[_ngcontent-%COMP%]{color:#fff;float:left;background:#000;padding:3px;border-radius:10px;margin:3px}#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,Na,[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,Na,[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,[Mn,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,[Mn,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,Na,[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,[Mn,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,[Mn,Fn,kn],{ngForOf:[0,"ngForOf"]},null),(e()(),Zs(16777216,null,null,1,null,sp)),ui(6,278528,null,0,Ua,[Mn,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,[Mn,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,[Mn,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,Mn,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.length;i++){const s=e[i];s.token===Pt&&!0===s.value&&(r=!0),1073741824&s.flags&&n.push(s.token),s.index=i,t[Kn(s.token)]=s}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}([Pr(512,sn,on,[[8,[Yd,pp,vp]],[3,sn],Be]),Pr(5120,Hi,Ws,[[3,Hi]]),Pr(4608,Pa,Ra,[Hi,[2,Oa]]),Pr(5120,Di,Gs,[as]),Pr(5120,Vi,Ui,[]),Pr(5120,kn,zs,[]),Pr(5120,Tn,Hs,[]),Pr(4608,ql,Zl,[Ga]),Pr(6144,Dt,null,[ql]),Pr(4608,Bl,Ll,[]),Pr(5120,ul,function(e,t,n,r,i,s,o,a){return[new Ul(e,t,n),new Gl(r),new zl(i,s,o,a)]},[Ga,as,$i,Ga,Ga,Bl,zi,[2,$l]]),Pr(4608,ll,ll,[ul,as]),Pr(135680,dl,dl,[Ga]),Pr(4608,yl,yl,[ll,dl,Vi]),Pr(6144,dn,null,[yl]),Pr(6144,hl,null,[dl]),Pr(4608,ps,ps,[as]),Pr(5120,dh,zd,[Ed]),Pr(4608,Od,Od,[]),Pr(6144,kd,null,[Od]),Pr(135680,Pd,Pd,[Ed,Ts,Yi,Ft,kd]),Pr(4608,Td,Td,[]),Pr(5120,Rd,Ud,[Ed,Za,Fd]),Pr(5120,qd,Gd,[Hd]),Pr(5120,Li,function(e){return[e]},[qd]),Pr(4608,Kf,Kf,[]),Pr(4608,vf,vf,[]),Pr(1073742336,Wa,Wa,[]),Pr(1024,Je,nc,[]),Pr(1024,bs,function(){return[Nd()]},[]),Pr(512,Hd,Hd,[Ft]),Pr(1024,Mi,function(e,t){return[(n=e,sl("probe",al),sl("coreTokens",Object.assign({},ol,(n||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>al),Wd(t)];var n},[[2,bs],Hd]),Pr(512,Ni,Ni,[[2,Mi]]),Pr(131584,As,As,[as,zi,Ft,Je,sn,Ni]),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]]]);