text: (self.webpackChunkmotivation=self.webpackChunkmotivation||[]).push([[179],{255:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=255,t.exports=e},704:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(r,i){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},c=o.push,u=o.indexOf,h={},d=h.toString,p=h.hasOwnProperty,f=p.toString,g=f.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=r.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){var r,i,o=(n=n||b).createElement("script");if(o.text=t,e)for(r in _)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function C(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?h[d.call(t)]||"object":typeof t}var x="3.6.0",S=function(t,e){return new S.fn.init(t,e)};function E(t){var e=!!t&&"length"in t&&t.length,n=C(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}S.fn=S.prototype={jquery:x,constructor:S,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},S.extend=S.fn.extend=function(){var t,e,n,r,i,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)r=t[e],"__proto__"!==e&&s!==r&&(c&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[e],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,s[e]=S.extend(c,o,r)):void 0!==r&&(s[e]=r));return s},S.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==d.call(t)||(e=s(t))&&("function"!=typeof(n=p.call(e,"constructor")&&e.constructor)||f.call(n)!==g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){w(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(E(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(E(Object(t))?S.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,s=!n;i<o;i++)!e(t[i],i)!==s&&r.push(t[i]);return r},map:function(t,e,n){var r,i,o=0,s=[];if(E(t))for(r=t.length;o<r;o++)null!=(i=e(t[o],o,n))&&s.push(i);else for(o in t)null!=(i=e(t[o],o,n))&&s.push(i);return l(s)},guid:1,support:m}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=o[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){h["[object "+e+"]"]=e.toLowerCase()});var O=function(t){var e,n,r,i,o,s,a,l,c,u,h,d,p,f,g,m,v,y,b,_="sizzle"+1*new Date,w=t.document,C=0,x=0,S=lt(),E=lt(),O=lt(),T=lt(),k=function(t,e){return t===e&&(h=!0),0},A={}.hasOwnProperty,P=[],M=P.pop,I=P.push,R=P.push,D=P.slice,j=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",V="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",L="\\[[\\x20\\t\\r\\n\\f]*("+F+")(?:"+V+"*([*^$|!~]?=)"+V+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+V+"*\\]",U=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",H=new RegExp(V+"+","g"),$=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),q=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),z=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),B=new RegExp(V+"|>"),W=new RegExp(U),G=new RegExp("^"+F+"$"),Z={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"\ufffd":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){d()},st=_t(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{R.apply(P=D.call(w.childNodes),w.childNodes)}catch(Et){R={apply:P.length?function(t,e){I.apply(t,D.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function at(t,e,r,i){var o,a,c,u,h,f,v,y=e&&e.ownerDocument,w=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return r;if(!i&&(d(e),e=e||p,g)){if(11!==w&&(h=K.exec(t)))if(o=h[1]){if(9===w){if(!(c=e.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(y&&(c=y.getElementById(o))&&b(e,c)&&c.id===o)return r.push(c),r}else{if(h[2])return R.apply(r,e.getElementsByTagName(t)),r;if((o=h[3])&&n.getElementsByClassName&&e.getElementsByClassName)return R.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!T[t+" "]&&(!m||!m.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(v=t,y=e,1===w&&(B.test(t)||z.test(t))){for((y=tt.test(t)&&vt(e.parentNode)||e)===e&&n.scope||((u=e.getAttribute("id"))?u=u.replace(rt,it):e.setAttribute("id",u=_)),a=(f=s(t)).length;a--;)f[a]=(u?"#"+u:":scope")+" "+bt(f[a]);v=f.join(",")}try{return R.apply(r,y.querySelectorAll(v)),r}catch(C){T(t,!0)}finally{u===_&&e.removeAttribute("id")}}}return l(t.replace($,"$1"),e,r,i)}function lt(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function ct(t){return t[_]=!0,t}function ut(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(Et){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function dt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ct(function(e){return e=+e,ct(function(n,r){for(var i,o=t([],n.length,e),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=at.support={},o=at.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!Y.test(t&&t.namespaceURI||e&&e.nodeName||"HTML")},d=at.setDocument=function(t){var e,i,s=t?t.ownerDocument||t:w;return s!=p&&9===s.nodeType&&s.documentElement?(f=(p=s).documentElement,g=!o(p),w!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),n.scope=ut(function(t){return f.appendChild(t).appendChild(p.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),n.attributes=ut(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=ut(function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=ut(function(t){return f.appendChild(t).id=_,!p.getElementsByName||!p.getElementsByName(_).length}),n.getById?(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},v=[],m=[],(n.qsa=J.test(p.querySelectorAll))&&(ut(function(t){var e;f.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+N+")"),t.querySelectorAll("[id~="+_+"-]").length||m.push("~="),(e=p.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")}),ut(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=J.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ut(function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",U)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(f.compareDocumentPosition),b=e||J.test(f.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},k=e?function(t,e){if(t===e)return h=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t==p||t.ownerDocument==w&&b(w,t)?-1:e==p||e.ownerDocument==w&&b(w,e)?1:u?j(u,t)-j(u,e):0:4&r?-1:1)}:function(t,e){if(t===e)return h=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,s=[t],a=[e];if(!i||!o)return t==p?-1:e==p?1:i?-1:o?1:u?j(u,t)-j(u,e):0;if(i===o)return dt(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?dt(s[r],a[r]):s[r]==w?-1:a[r]==w?1:0},p):p},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if(d(t),n.matchesSelector&&g&&!T[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var r=y.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(Et){T(e,!0)}return at(e,p,null,[t]).length>0},at.contains=function(t,e){return(t.ownerDocument||t)!=p&&d(t),b(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!=p&&d(t);var i=r.attrHandle[e.toLowerCase()],o=i&&A.call(r.attrHandle,e.toLowerCase())?i(t,e,!g):void 0;return void 0!==o?o:n.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},at.escape=function(t){return(t+"").replace(rt,it)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,r=[],i=0,o=0;if(h=!n.detectDuplicates,u=!n.sortStable&&t.slice(0),t.sort(k),h){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return u=null,t},i=at.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=at.selectors={cacheLength:50,createPseudo:ct,match:Z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Z.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=s(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+V+"|$)"))&&S(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var i=at.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,l){var c,u,h,d,p,f,g=o!==s?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(o){for(;g;){for(d=e;d=d[g];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?m.firstChild:m.lastChild],s&&y){for(b=(p=(c=(u=(h=(d=m)[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===C&&c[1])&&c[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(b=p=0)||f.pop();)if(1===d.nodeType&&++b&&d===e){u[t]=[C,p,b];break}}else if(y&&(b=p=(c=(u=(h=(d=e)[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===C&&c[1]),!1===b)for(;(d=++p&&d&&d[g]||(b=p=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((u=(h=d[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]=[C,b]),d!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return i[_]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?ct(function(t,n){for(var r,o=i(t,e),s=o.length;s--;)t[r=j(t,o[s])]=!(n[r]=o[s])}):function(t){return i(t,0,n)}):i}},pseudos:{not:ct(function(t){var e=[],n=[],r=a(t.replace($,"$1"));return r[_]?ct(function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:ct(function(t){return function(e){return at(t,e).length>0}}),contains:ct(function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}}),lang:ct(function(t){return G.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return X.test(t.nodeName)},input:function(t){return Q.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:mt(function(){return[0]}),last:mt(function(t,e){return[e-1]}),eq:mt(function(t,e,n){return[n<0?n+e:n]}),even:mt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:mt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:mt(function(t,e,n){for(var r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t}),gt:mt(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=pt(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=ft(e);function yt(){}function bt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function _t(t,e,n){var r=e.dir,i=e.next,o=i||r,s=n&&"parentNode"===o,a=x++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||s)return t(e,n,i);return!1}:function(e,n,l){var c,u,h,d=[C,a];if(l){for(;e=e[r];)if((1===e.nodeType||s)&&t(e,n,l))return!0}else for(;e=e[r];)if(1===e.nodeType||s)if(u=(h=e[_]||(e[_]={}))[e.uniqueID]||(h[e.uniqueID]={}),i&&i===e.nodeName.toLowerCase())e=e[r]||e;else{if((c=u[o])&&c[0]===C&&c[1]===a)return d[2]=c[2];if(u[o]=d,d[2]=t(e,n,l))return!0}return!1}}function wt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function Ct(t,e,n,r,i){for(var o,s=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(n&&!n(o,r,i)||(s.push(o),c&&e.push(a)));return s}function xt(t,e,n,r,i,o){return r&&!r[_]&&(r=xt(r)),i&&!i[_]&&(i=xt(i,o)),ct(function(o,s,a,l){var c,u,h,d=[],p=[],f=s.length,g=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)at(t,e[r],n);return n}(e||"*",a.nodeType?[a]:a,[]),m=!t||!o&&e?g:Ct(g,d,t,a,l),v=n?i||(o?t:f||r)?[]:s:m;if(n&&n(m,v,a,l),r)for(c=Ct(v,p),r(c,[],a,l),u=c.length;u--;)(h=c[u])&&(v[p[u]]=!(m[p[u]]=h));if(o){if(i||t){if(i){for(c=[],u=v.length;u--;)(h=v[u])&&c.push(m[u]=h);i(null,v=[],c,l)}for(u=v.length;u--;)(h=v[u])&&(c=i?j(o,h):d[u])>-1&&(o[c]=!(s[c]=h))}}else v=Ct(v===s?v.splice(f,v.length):v),i?i(null,s,v,l):R.apply(s,v)})}function St(t){for(var e,n,i,o=t.length,s=r.relative[t[0].type],a=s||r.relative[" "],l=s?1:0,u=_t(function(t){return t===e},a,!0),h=_t(function(t){return j(e,t)>-1},a,!0),d=[function(t,n,r){var i=!s&&(r||n!==c)||((e=n).nodeType?u(t,n,r):h(t,n,r));return e=null,i}];l<o;l++)if(n=r.relative[t[l].type])d=[_t(wt(d),n)];else{if((n=r.filter[t[l].type].apply(null,t[l].matches))[_]){for(i=++l;i<o&&!r.relative[t[i].type];i++);return xt(l>1&&wt(d),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace($,"$1"),n,l<i&&St(t.slice(l,i)),i<o&&St(t=t.slice(i)),i<o&&bt(t))}d.push(n)}return wt(d)}return yt.prototype=r.filters=r.pseudos,r.setFilters=new yt,s=at.tokenize=function(t,e){var n,i,o,s,a,l,c,u=E[t+" "];if(u)return e?0:u.slice(0);for(a=t,l=[],c=r.preFilter;a;){for(s in n&&!(i=q.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),n=!1,(i=z.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace($," ")}),a=a.slice(n.length)),r.filter)!(i=Z[s].exec(a))||c[s]&&!(i=c[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return e?a.length:a?at.error(t):E(t,l).slice(0)},a=at.compile=function(t,e){var n,i=[],o=[],a=O[t+" "];if(!a){for(e||(e=s(t)),n=e.length;n--;)(a=St(e[n]))[_]?i.push(a):o.push(a);(a=O(t,function(t,e){var n=e.length>0,i=t.length>0,o=function(o,s,a,l,u){var h,f,m,v=0,y="0",b=o&&[],_=[],w=c,x=o||i&&r.find.TAG("*",u),S=C+=null==w?1:Math.random()||.1,E=x.length;for(u&&(c=s==p||s||u);y!==E&&null!=(h=x[y]);y++){if(i&&h){for(f=0,s||h.ownerDocument==p||(d(h),a=!g);m=t[f++];)if(m(h,s||p,a)){l.push(h);break}u&&(C=S)}n&&((h=!m&&h)&&v--,o&&b.push(h))}if(v+=y,n&&y!==v){for(f=0;m=e[f++];)m(b,_,s,a);if(o){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=M.call(l));_=Ct(_)}R.apply(l,_),u&&!o&&_.length>0&&v+e.length>1&&at.uniqueSort(l)}return u&&(C=S,c=w),b};return n?ct(o):o}(o,i))).selector=t}return a},l=at.select=function(t,e,n,i){var o,l,c,u,h,d="function"==typeof t&&t,p=!i&&s(t=d.selector||t);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&g&&r.relative[l[1].type]){if(!(e=(r.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return n;d&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=Z.needsContext.test(t)?0:l.length;o--&&!r.relative[u=(c=l[o]).type];)if((h=r.find[u])&&(i=h(c.matches[0].replace(et,nt),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(o,1),!(t=i.length&&bt(l)))return R.apply(n,i),n;break}}return(d||a(t,p))(i,e,!g,n,!e||tt.test(t)&&vt(e.parentNode)||e),n},n.sortStable=_.split("").sort(k).join("")===_,n.detectDuplicates=!!h,d(),n.sortDetached=ut(function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))}),ut(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ht("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&ut(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ht("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ut(function(t){return null==t.getAttribute("disabled")})||ht(N,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),at}(r);S.find=O,S.expr=O.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=O.uniqueSort,S.text=O.getText,S.isXMLDoc=O.isXML,S.contains=O.contains,S.escapeSelector=O.escape;var T=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&S(t).is(n))break;r.push(t)}return r},k=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},A=S.expr.match.needsContext;function P(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(t,e,n){return v(e)?S.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?S.grep(t,function(t){return t===e!==n}):"string"!=typeof e?S.grep(t,function(t){return u.call(e,t)>-1!==n}):S.filter(e,t,n)}S.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?S.find.matchesSelector(r,t)?[r]:[]:S.find.matches(t,S.grep(e,function(t){return 1===t.nodeType}))},S.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(S(t).filter(function(){for(e=0;e<r;e++)if(S.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)S.find(t,i[e],n);return r>1?S.uniqueSort(n):n},filter:function(t){return this.pushStack(I(this,t||[],!1))},not:function(t){return this.pushStack(I(this,t||[],!0))},is:function(t){return!!I(this,"string"==typeof t&&A.test(t)?S(t):t||[],!1).length}});var R,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||R,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:D.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(S.merge(this,S.parseHTML(r[1],(e=e instanceof S?e[0]:e)&&e.nodeType?e.ownerDocument||e:b,!0)),M.test(r[1])&&S.isPlainObject(e))for(r in e)v(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(S):S.makeArray(t,this)}).prototype=S.fn,R=S(b);var j=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function V(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(S.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,i=this.length,o=[],s="string"!=typeof t&&S(t);if(!A.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?S.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?u.call(S(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return T(t,"parentNode")},parentsUntil:function(t,e,n){return T(t,"parentNode",n)},next:function(t){return V(t,"nextSibling")},prev:function(t){return V(t,"previousSibling")},nextAll:function(t){return T(t,"nextSibling")},prevAll:function(t){return T(t,"previousSibling")},nextUntil:function(t,e,n){return T(t,"nextSibling",n)},prevUntil:function(t,e,n){return T(t,"previousSibling",n)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(P(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},function(t,e){S.fn[t]=function(n,r){var i=S.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(N[t]||S.uniqueSort(i),j.test(t)&&i.reverse()),this.pushStack(i)}});var F=/[^\x20\t\r\n\f]+/g;function L(t){return t}function U(t){throw t}function H(t,e,n,r){var i;try{t&&v(i=t.promise)?i.call(t).done(e).fail(n):t&&v(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}S.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return S.each(t.match(F)||[],function(t,n){e[n]=!0}),e}(t):S.extend({},t);var e,n,r,i,o=[],s=[],a=-1,l=function(){for(i=i||t.once,r=e=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(a=o.length-1,s.push(n)),function e(n){S.each(n,function(n,r){v(r)?t.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==C(r)&&e(r)})}(arguments),n&&!e&&l()),this},remove:function(){return S.each(arguments,function(t,e){for(var n;(n=S.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--}),this},has:function(t){return t?S.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return S.Deferred(function(n){S.each(e,function(e,r){var i=v(t[r[4]])&&t[r[4]];o[r[1]](function(){var t=i&&i.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,n,i){var o=0;function s(t,e,n,i){return function(){var a=this,l=arguments,c=function(){var r,c;if(!(t<o)){if((r=n.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");v(c=r&&("object"==typeof r||"function"==typeof r)&&r.then)?i?c.call(r,s(o,e,L,i),s(o,e,U,i)):(o++,c.call(r,s(o,e,L,i),s(o,e,U,i),s(o,e,L,e.notifyWith))):(n!==L&&(a=void 0,l=[r]),(i||e.resolveWith)(a,l))}},u=i?c:function(){try{c()}catch(r){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(r,u.stackTrace),t+1>=o&&(n!==U&&(a=void 0,l=[r]),e.rejectWith(a,l))}};t?u():(S.Deferred.getStackHook&&(u.stackTrace=S.Deferred.getStackHook()),r.setTimeout(u))}}return S.Deferred(function(r){e[0][3].add(s(0,r,v(i)?i:L,r.notifyWith)),e[1][3].add(s(0,r,v(t)?t:L)),e[2][3].add(s(0,r,v(n)?n:U))}).promise()},promise:function(t){return null!=t?S.extend(t,i):i}},o={};return S.each(e,function(t,r){var s=r[2],a=r[5];i[r[1]]=s.add,a&&s.add(function(){n=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=a.call(arguments),o=S.Deferred(),s=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?a.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(H(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)H(i[n],s(n),o.reject);return o.promise()}});var $=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&$.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){r.setTimeout(function(){throw t})};var q=S.Deferred();function z(){b.removeEventListener("DOMContentLoaded",z),r.removeEventListener("load",z),S.ready()}S.fn.ready=function(t){return q.then(t).catch(function(t){S.readyException(t)}),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||q.resolveWith(b,[S]))}}),S.ready.then=q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(S.ready):(b.addEventListener("DOMContentLoaded",z),r.addEventListener("load",z));var B=function(t,e,n,r,i,o,s){var a=0,l=t.length,c=null==n;if("object"===C(n))for(a in i=!0,n)B(t,e,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,v(r)||(s=!0),c&&(s?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(S(t),n)})),e))for(;a<l;a++)e(t[a],n,s?r:r.call(t[a],a,e(t[a],n)));return i?t:c?e.call(t):l?e(t[0],n):o},W=/^-ms-/,G=/-([a-z])/g;function Z(t,e){return e.toUpperCase()}function Y(t){return t.replace(W,"ms-").replace(G,Z)}var Q=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function X(){this.expando=S.expando+X.uid++}X.uid=1,X.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Q(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[Y(e)]=n;else for(r in e)i[Y(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][Y(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(Y):(e=Y(e))in r?[e]:e.match(F)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||S.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var J=new X,K=new X,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function nt(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(n)}catch(i){}K.set(t,e,n)}else n=void 0;return n}S.extend({hasData:function(t){return K.hasData(t)||J.hasData(t)},data:function(t,e,n){return K.access(t,e,n)},removeData:function(t,e){K.remove(t,e)},_data:function(t,e,n){return J.access(t,e,n)},_removeData:function(t,e){J.remove(t,e)}}),S.fn.extend({data:function(t,e){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(i=K.get(o),1===o.nodeType&&!J.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=Y(r.slice(5)),nt(o,r,i[r]));J.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){K.set(this,t)}):B(this,function(e){var n;if(o&&void 0===e)return void 0!==(n=K.get(o,t))||void 0!==(n=nt(o,t))?n:void 0;this.each(function(){K.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){K.remove(this,t)})}}),S.extend({queue:function(t,e,n){var r;if(t)return r=J.get(t,e=(e||"fx")+"queue"),n&&(!r||Array.isArray(n)?r=J.access(t,e,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){var n=S.queue(t,e=e||"fx"),r=n.length,i=n.shift(),o=S._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,function(){S.dequeue(t,e)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return J.get(t,n)||J.access(t,n,{empty:S.Callbacks("once memory").add(function(){J.remove(t,[e+"queue",n])})})}}),S.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?S.queue(this[0],t):void 0===e?this:this.each(function(){var n=S.queue(this,t,e);S._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&S.dequeue(this,t)})},dequeue:function(t){return this.each(function(){S.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=S.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=J.get(o[s],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var rt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp("^(?:([+-])=|)("+rt+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],st=b.documentElement,at=function(t){return S.contains(t.ownerDocument,t)},lt={composed:!0};st.getRootNode&&(at=function(t){return S.contains(t.ownerDocument,t)||t.getRootNode(lt)===t.ownerDocument});var ct=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&at(t)&&"none"===S.css(t,"display")};function ut(t,e,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return S.css(t,e,"")},l=a(),c=n&&n[3]||(S.cssNumber[e]?"":"px"),u=t.nodeType&&(S.cssNumber[e]||"px"!==c&&+l)&&it.exec(S.css(t,e));if(u&&u[3]!==c){for(c=c||u[3],u=+(l/=2)||1;s--;)S.style(t,e,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;S.style(t,e,(u*=2)+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var ht={};function dt(t){var e,n=t.ownerDocument,r=t.nodeName,i=ht[r];return i||(e=n.body.appendChild(n.createElement(r)),i=S.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),ht[r]=i,i)}function pt(t,e){for(var n,r,i=[],o=0,s=t.length;o<s;o++)(r=t[o]).style&&(n=r.style.display,e?("none"===n&&(i[o]=J.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ct(r)&&(i[o]=dt(r))):"none"!==n&&(i[o]="none",J.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}S.fn.extend({show:function(){return pt(this,!0)},hide:function(){return pt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){ct(this)?S(this).show():S(this).hide()})}});var ft,gt,mt=/^(?:checkbox|radio)$/i,vt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,yt=/^$|^module$|\/(?:java|ecma)script/i;ft=b.createDocumentFragment().appendChild(b.createElement("div")),(gt=b.createElement("input")).setAttribute("type","radio"),gt.setAttribute("checked","checked"),gt.setAttribute("name","t"),ft.appendChild(gt),m.checkClone=ft.cloneNode(!0).cloneNode(!0).lastChild.checked,ft.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!ft.cloneNode(!0).lastChild.defaultValue,ft.innerHTML="<option></option>",m.option=!!ft.lastChild;var bt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function _t(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&P(t,e)?S.merge([t],n):n}function wt(t,e){for(var n=0,r=t.length;n<r;n++)J.set(t[n],"globalEval",!e||J.get(e[n],"globalEval"))}bt.tbody=bt.tfoot=bt.colgroup=bt.caption=bt.thead,bt.th=bt.td,m.option||(bt.optgroup=bt.option=[1,"<select multiple='multiple'>","</select>"]);var Ct=/<|&#?\w+;/;function xt(t,e,n,r,i){for(var o,s,a,l,c,u,h=e.createDocumentFragment(),d=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===C(o))S.merge(d,o.nodeType?[o]:o);else if(Ct.test(o)){for(s=s||h.appendChild(e.createElement("div")),a=(vt.exec(o)||["",""])[1].toLowerCase(),s.innerHTML=(l=bt[a]||bt._default)[1]+S.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;S.merge(d,s.childNodes),(s=h.firstChild).textContent=""}else d.push(e.createTextNode(o));for(h.textContent="",p=0;o=d[p++];)if(r&&S.inArray(o,r)>-1)i&&i.push(o);else if(c=at(o),s=_t(h.appendChild(o),"script"),c&&wt(s),n)for(u=0;o=s[u++];)yt.test(o.type||"")&&n.push(o);return h}var St=/^([^.]*)(?:\.(.+)|)/;function Et(){return!0}function Ot(){return!1}function Tt(t,e){return t===function(){try{return b.activeElement}catch(t){}}()==("focus"===e)}function kt(t,e,n,r,i,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)kt(t,a,n,r,e[a],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ot;else if(!i)return t;return 1===o&&(s=i,(i=function(t){return S().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=S.guid++)),t.each(function(){S.event.add(this,e,i,r,n)})}function At(t,e,n){n?(J.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var r,i,o=J.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=a.call(arguments),J.set(this,e,o),r=n(this,e),this[e](),o!==(i=J.get(this,e))||r?J.set(this,e,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i&&i.value}else o.length&&(J.set(this,e,{value:S.event.trigger(S.extend(o[0],S.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===J.get(t,e)&&S.event.add(t,e,Et)}S.event={global:{},add:function(t,e,n,r,i){var o,s,a,l,c,u,h,d,p,f,g,m=J.get(t);if(Q(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(st,i),n.guid||(n.guid=S.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(F)||[""]).length;c--;)p=g=(a=St.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(h=S.event.special[p]||{},h=S.event.special[p=(i?h.delegateType:h.bindType)||p]||{},u=S.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:f.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,r,f,s)||t.addEventListener&&t.addEventListener(p,s)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,u):d.push(u),S.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,s,a,l,c,u,h,d,p,f,g,m=J.hasData(t)&&J.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(F)||[""]).length;c--;)if(p=g=(a=St.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(h=S.event.special[p]||{},d=l[p=(r?h.delegateType:h.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)u=d[o],!i&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(t,u));s&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,f,m.handle)||S.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)S.event.remove(t,p+e[c],n,r,!0);S.isEmptyObject(l)&&J.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,s,a=new Array(arguments.length),l=S.event.fix(t),c=(J.get(this,"events")||Object.create(null))[l.type]||[],u=S.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=S.event.handlers.call(this,l,c),e=0;(i=s[e++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,r,i,o,s,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[i=(r=e[n]).selector+" "]&&(s[i]=r.needsContext?S(i,this).index(c)>-1:S.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return mt.test(e.type)&&e.click&&P(e,"input")&&At(e,"click",Et),!1},trigger:function(t){var e=this||t;return mt.test(e.type)&&e.click&&P(e,"input")&&At(e,"click"),!0},_default:function(t){var e=t.target;return mt.test(e.type)&&e.click&&P(e,"input")&&J.get(e,"click")||P(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Et:Ot,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Ot,isPropagationStopped:Ot,isImmediatePropagationStopped:Ot,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Et,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Et,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Et,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(t,e){S.event.special[t]={setup:function(){return At(this,t,Tt),!1},trigger:function(){return At(this,t),!0},_default:function(){return!0},delegateType:e}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){S.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||S.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),S.fn.extend({on:function(t,e,n,r){return kt(this,t,e,n,r)},one:function(t,e,n,r){return kt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,S(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Ot),this.each(function(){S.event.remove(this,t,n,e)})}});var Pt=/<script|<style|<link/i,Mt=/checked\s*(?:[^=]|=\s*.checked.)/i,It=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Rt(t,e){return P(t,"table")&&P(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function Dt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function jt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Nt(t,e){var n,r,i,o,s,a;if(1===e.nodeType){if(J.hasData(t)&&(a=J.get(t).events))for(i in J.remove(e,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)S.event.add(e,i,a[i][n]);K.hasData(t)&&(o=K.access(t),s=S.extend({},o),K.set(e,s))}}function Vt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&mt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ft(t,e,n,r){e=l(e);var i,o,s,a,c,u,h=0,d=t.length,p=d-1,f=e[0],g=v(f);if(g||d>1&&"string"==typeof f&&!m.checkClone&&Mt.test(f))return t.each(function(i){var o=t.eq(i);g&&(e[0]=f.call(this,i,o.html())),Ft(o,e,n,r)});if(d&&(o=(i=xt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=(s=S.map(_t(i,"script"),Dt)).length;h<d;h++)c=i,h!==p&&(c=S.clone(c,!0,!0),a&&S.merge(s,_t(c,"script"))),n.call(t[h],c,h);if(a)for(u=s[s.length-1].ownerDocument,S.map(s,jt),h=0;h<a;h++)yt.test((c=s[h]).type||"")&&!J.access(c,"globalEval")&&S.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?S._evalUrl&&!c.noModule&&S._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(It,""),c,u))}return t}function Lt(t,e,n){for(var r,i=e?S.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(_t(r)),r.parentNode&&(n&&at(r)&&wt(_t(r,"script")),r.parentNode.removeChild(r));return t}S.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,o,s,a=t.cloneNode(!0),l=at(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.isXMLDoc(t)))for(s=_t(a),r=0,i=(o=_t(t)).length;r<i;r++)Vt(o[r],s[r]);if(e)if(n)for(o=o||_t(t),s=s||_t(a),r=0,i=o.length;r<i;r++)Nt(o[r],s[r]);else Nt(t,a);return(s=_t(a,"script")).length>0&&wt(s,!l&&_t(t,"script")),a},cleanData:function(t){for(var e,n,r,i=S.event.special,o=0;void 0!==(n=t[o]);o++)if(Q(n)){if(e=n[J.expando]){if(e.events)for(r in e.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,e.handle);n[J.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Lt(this,t,!0)},remove:function(t){return Lt(this,t)},text:function(t){return B(this,function(t){return void 0===t?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Ft(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Rt(this,t).appendChild(t)})},prepend:function(){return Ft(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Rt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Ft(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Ft(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(S.cleanData(_t(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return S.clone(this,t,e)})},html:function(t){return B(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Pt.test(t)&&!bt[(vt.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(S.cleanData(_t(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Ft(this,arguments,function(e){var n=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(_t(this)),n&&n.replaceChild(e,this))},t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){S.fn[t]=function(t){for(var n,r=[],i=S(t),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),S(i[s])[e](n),c.apply(r,n.get());return this.pushStack(r)}});var Ut=new RegExp("^("+rt+")(?!px)[a-z%]+$","i"),Ht=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=r),e.getComputedStyle(t)},$t=function(t,e,n){var r,i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];for(i in r=n.call(t),e)t.style[i]=o[i];return r},qt=new RegExp(ot.join("|"),"i");function zt(t,e,n){var r,i,o,s,a=t.style;return(n=n||Ht(t))&&(""!==(s=n.getPropertyValue(e)||n[e])||at(t)||(s=S.style(t,e)),!m.pixelBoxStyles()&&Ut.test(s)&&qt.test(e)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function Bt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",st.appendChild(c).appendChild(u);var t=r.getComputedStyle(u);n="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",s=36===e(t.right),i=36===e(t.width),u.style.position="absolute",o=12===e(u.offsetWidth/3),st.removeChild(c),u=null}}function e(t){return Math.round(parseFloat(t))}var n,i,o,s,a,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,S.extend(m,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,i;return null==a&&(t=b.createElement("table"),e=b.createElement("tr"),n=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",st.appendChild(t).appendChild(e).appendChild(n),i=r.getComputedStyle(e),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,st.removeChild(t)),a}}))}();var Wt=["Webkit","Moz","ms"],Gt=b.createElement("div").style,Zt={};function Yt(t){return S.cssProps[t]||Zt[t]||(t in Gt?t:Zt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Wt.length;n--;)if((t=Wt[n]+e)in Gt)return t}(t)||t)}var Qt=/^(none|table(?!-c[ea]).+)/,Xt=/^--/,Jt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:"0",fontWeight:"400"};function te(t,e,n){var r=it.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function ee(t,e,n,r,i,o){var s="width"===e?1:0,a=0,l=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=S.css(t,n+ot[s],!0,i)),r?("content"===n&&(l-=S.css(t,"padding"+ot[s],!0,i)),"margin"!==n&&(l-=S.css(t,"border"+ot[s]+"Width",!0,i))):(l+=S.css(t,"padding"+ot[s],!0,i),"padding"!==n?l+=S.css(t,"border"+ot[s]+"Width",!0,i):a+=S.css(t,"border"+ot[s]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l}function ne(t,e,n){var r=Ht(t),i=(!m.boxSizingReliable()||n)&&"border-box"===S.css(t,"boxSizing",!1,r),o=i,s=zt(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if(Ut.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&P(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===S.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===S.css(t,"boxSizing",!1,r),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+ee(t,e,n||(i?"border":"content"),o,r,s)+"px"}function re(t,e,n,r,i){return new re.prototype.init(t,e,n,r,i)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=Y(e),l=Xt.test(e),c=t.style;if(l||(e=Yt(a)),s=S.cssHooks[e]||S.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(t,!1,r))?i:c[e];"string"==(o=typeof n)&&(i=it.exec(n))&&i[1]&&(n=ut(t,e,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(S.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,r))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var i,o,s,a=Y(e);return Xt.test(e)||(e=Yt(a)),(s=S.cssHooks[e]||S.cssHooks[a])&&"get"in s&&(i=s.get(t,!0,n)),void 0===i&&(i=zt(t,e,r)),"normal"===i&&e in Kt&&(i=Kt[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(t,e){S.cssHooks[e]={get:function(t,n,r){if(n)return!Qt.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ne(t,e,r):$t(t,Jt,function(){return ne(t,e,r)})},set:function(t,n,r){var i,o=Ht(t),s=!m.scrollboxSize()&&"absolute"===o.position,a=(s||r)&&"border-box"===S.css(t,"boxSizing",!1,o),l=r?ee(t,e,r,a,o):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ee(t,e,"border",!1,o)-.5)),l&&(i=it.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=S.css(t,e)),te(0,n,l)}}}),S.cssHooks.marginLeft=Bt(m.reliableMarginLeft,function(t,e){if(e)return(parseFloat(zt(t,"marginLeft"))||t.getBoundingClientRect().left-$t(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(t,e){S.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+ot[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(S.cssHooks[t+e].set=te)}),S.fn.extend({css:function(t,e){return B(this,function(t,e,n){var r,i,o={},s=0;if(Array.isArray(e)){for(r=Ht(t),i=e.length;s<i;s++)o[e[s]]=S.css(t,e[s],!1,r);return o}return void 0!==n?S.style(t,e,n):S.css(t,e)},t,e,arguments.length>1)}}),S.Tween=re,(re.prototype={constructor:re,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var t=re.propHooks[this.prop];return t&&t.get?t.get(this):re.propHooks._default.get(this)},run:function(t){var e,n=re.propHooks[this.prop];return this.pos=e=this.options.duration?S.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):re.propHooks._default.set(this),this}}).init.prototype=re.prototype,(re.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[Yt(t.prop)]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=re.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=re.prototype.init,S.fx.step={};var ie,oe,se=/^(?:toggle|show|hide)$/,ae=/queueHooks$/;function le(){oe&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(le):r.setTimeout(le,S.fx.interval),S.fx.tick())}function ce(){return r.setTimeout(function(){ie=void 0}),ie=Date.now()}function ue(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=ot[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function he(t,e,n){for(var r,i=(de.tweeners[e]||[]).concat(de.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,e,t))return r}function de(t,e,n){var r,i,o=0,s=de.prefilters.length,a=S.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var e=ie||ce(),n=Math.max(0,c.startTime+c.duration-e),r=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(r);return a.notifyWith(t,[c,r,n]),r<1&&s?n:(s||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:e,originalOptions:n,startTime:ie||ce(),duration:n.duration,tweens:[],createTween:function(e,n){var r=S.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var n=0,r=e?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(function(t,e){var n,r,i,o,s;for(n in t)if(i=e[r=Y(n)],o=t[n],Array.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(s=S.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(u,c.opts.specialEasing);o<s;o++)if(r=de.prefilters[o].call(c,t,u,c.opts))return v(r.stop)&&(S._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return S.map(u,he,c),v(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),S.fx.timer(S.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}S.Animation=S.extend(de,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ut(n.elem,t,it.exec(e),n),n}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(F);for(var n,r=0,i=t.length;r<i;r++)(de.tweeners[n=t[r]]=de.tweeners[n]||[]).unshift(e)},prefilters:[function(t,e,n){var r,i,o,s,a,l,c,u,h="width"in e||"height"in e,d=this,p={},f=t.style,g=t.nodeType&&ct(t),m=J.get(t,"fxshow");for(r in n.queue||(null==(s=S._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,S.queue(t,"fx").length||s.empty.fire()})})),e)if(se.test(i=e[r])){if(delete e[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}p[r]=m&&m[r]||S.style(t,r)}if((l=!S.isEmptyObject(e))||!S.isEmptyObject(p))for(r in h&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=J.get(t,"display")),"none"===(u=S.css(t,"display"))&&(c?u=c:(pt([t],!0),c=t.style.display||c,u=S.css(t,"display"),pt([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===S.css(t,"float")&&(l||(d.done(function(){f.display=c}),null==c&&(c="none"===(u=f.display)?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=J.access(t,"fxshow",{display:c}),o&&(m.hidden=!g),g&&pt([t],!0),d.done(function(){for(r in g||pt([t]),J.remove(t,"fxshow"),p)S.style(t,r,p[r])})),l=he(g?m[r]:0,r,d),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?de.prefilters.unshift(t):de.prefilters.push(t)}}),S.speed=function(t,e,n){var r=t&&"object"==typeof t?S.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration=r.duration in S.fx.speeds?S.fx.speeds[r.duration]:S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(t,e,n,r){return this.filter(ct).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),s=function(){var e=de(this,S.extend({},t),o);(i||J.get(this,"finish"))&&e.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=S.timers,s=J.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&ae.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||S.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=J.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=S.timers,s=r?r.length:0;for(n.finish=!0,S.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),S.each(["toggle","show","hide"],function(t,e){var n=S.fn[e];S.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ue(e,!0),t,r,i)}}),S.each({slideDown:ue("show"),slideUp:ue("hide"),slideToggle:ue("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){S.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),S.timers=[],S.fx.tick=function(){var t,e=0,n=S.timers;for(ie=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||S.fx.stop(),ie=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){oe||(oe=!0,le())},S.fx.stop=function(){oe=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,e){return t=S.fx&&S.fx.speeds[t]||t,this.queue(e=e||"fx",function(e,n){var i=r.setTimeout(e,t);n.stop=function(){r.clearTimeout(i)}})},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var pe,fe=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return B(this,S.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){S.removeAttr(this,t)})}}),S.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?S.prop(t,e,n):(1===o&&S.isXMLDoc(t)||(i=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?pe:void 0)),void 0!==n?null===n?void S.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=S.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&P(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(F);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),pe={set:function(t,e,n){return!1===e?S.removeAttr(t,n):t.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(t,e){var n=fe[e]||S.find.attr;fe[e]=function(t,e,r){var i,o,s=e.toLowerCase();return r||(o=fe[s],fe[s]=i,i=null!=n(t,e,r)?s:null,fe[s]=o),i}});var ge=/^(?:input|select|textarea|button)$/i,me=/^(?:a|area)$/i;function ve(t){return(t.match(F)||[]).join(" ")}function ye(t){return t.getAttribute&&t.getAttribute("class")||""}function be(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(F)||[]}S.fn.extend({prop:function(t,e){return B(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[S.propFix[t]||t]})}}),S.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(t)||(i=S.propHooks[e=S.propFix[e]||e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):ge.test(t.nodeName)||me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(S.propHooks.selected={get:function(t){return null},set:function(t){}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,s,a,l=0;if(v(t))return this.each(function(e){S(this).addClass(t.call(this,e,ye(this)))});if((e=be(t)).length)for(;n=this[l++];)if(i=ye(n),r=1===n.nodeType&&" "+ve(i)+" "){for(s=0;o=e[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(a=ve(r))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,r,i,o,s,a,l=0;if(v(t))return this.each(function(e){S(this).removeClass(t.call(this,e,ye(this)))});if(!arguments.length)return this.attr("class","");if((e=be(t)).length)for(;n=this[l++];)if(i=ye(n),r=1===n.nodeType&&" "+ve(i)+" "){for(s=0;o=e[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(a=ve(r))&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):v(t)?this.each(function(n){S(this).toggleClass(t.call(this,n,ye(this),e),e)}):this.each(function(){var e,i,o,s;if(r)for(i=0,o=S(this),s=be(t);e=s[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=ye(this))&&J.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":J.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+ve(ye(n))+" ").indexOf(e)>-1)return!0;return!1}});var _e=/\r/g;S.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=v(t),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,S(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,function(t){return null==t?"":t+""})),(e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(_e,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:ve(S.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?o+1:i.length;for(r=o<0?l:s?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!P(n.parentNode,"optgroup"))){if(e=S(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=S.makeArray(e),s=i.length;s--;)((r=i[s]).selected=S.inArray(S.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},m.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),m.focusin="onfocusin"in r;var we=/^(?:focusinfocus|focusoutblur)$/,Ce=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,n,i){var o,s,a,l,c,u,h,d,f=[n||b],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(s=d=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!we.test(g+S.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[S.expando]?t:new S.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:S.makeArray(e,[t]),h=S.event.special[g]||{},i||!h.trigger||!1!==h.trigger.apply(n,e))){if(!i&&!h.noBubble&&!y(n)){for(we.test((l=h.delegateType||g)+g)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(n.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||r)}for(o=0;(s=f[o++])&&!t.isPropagationStopped();)d=s,t.type=o>1?l:h.bindType||g,(u=(J.get(s,"events")||Object.create(null))[t.type]&&J.get(s,"handle"))&&u.apply(s,e),(u=c&&s[c])&&u.apply&&Q(s)&&(t.result=u.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),e)||!Q(n)||c&&v(n[g])&&!y(n)&&((a=n[c])&&(n[c]=null),S.event.triggered=g,t.isPropagationStopped()&&d.addEventListener(g,Ce),n[g](),t.isPropagationStopped()&&d.removeEventListener(g,Ce),S.event.triggered=void 0,a&&(n[c]=a)),t.result}},simulate:function(t,e,n){var r=S.extend(new S.Event,n,{type:t,isSimulated:!0});S.event.trigger(r,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each(function(){S.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return S.event.trigger(t,e,n,!0)}}),m.focusin||S.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){S.event.simulate(e,t.target,S.event.fix(t))};S.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,e);i||r.addEventListener(t,n,!0),J.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,e)-1;i?J.access(r,e,i):(r.removeEventListener(t,n,!0),J.remove(r,e))}}});var xe=r.location,Se={guid:Date.now()},Ee=/\?/;S.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(i){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Oe=/\[\]$/,Te=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;function Pe(t,e,n,r){var i;if(Array.isArray(e))S.each(e,function(e,i){n||Oe.test(t)?r(t,i):Pe(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==C(e))r(t,e);else for(i in e)Pe(t+"["+i+"]",e[i],n,r)}S.param=function(t,e){var n,r=[],i=function(t,e){var n=v(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,function(){i(this.name,this.value)});else for(n in t)Pe(n,t[n],e,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Ae.test(this.nodeName)&&!ke.test(t)&&(this.checked||!mt.test(t))}).map(function(t,e){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(t){return{name:e.name,value:t.replace(Te,"\r\n")}}):{name:e.name,value:n.replace(Te,"\r\n")}}).get()}});var Me=/%20/g,Ie=/#.*$/,Re=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)$/gm,je=/^(?:GET|HEAD)$/,Ne=/^\/\//,Ve={},Fe={},Le="*/".concat("*"),Ue=b.createElement("a");function He(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(F)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function $e(t,e,n,r){var i={},o=t===Fe;function s(a){var l;return i[a]=!0,S.each(t[a]||[],function(t,a){var c=a(e,n,r);return"string"!=typeof c||o||i[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)}),l}return s(e.dataTypes[0])||!i["*"]&&s("*")}function qe(t,e){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&S.extend(!0,t,r),t}Ue.href=xe.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Le,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?qe(qe(t,S.ajaxSettings),e):qe(S.ajaxSettings,t)},ajaxPrefilter:He(Ve),ajaxTransport:He(Fe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var n,i,o,s,a,l,c,u,h,d,p=S.ajaxSetup({},e=e||{}),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?S(f):S.event,m=S.Deferred(),v=S.Callbacks("once memory"),y=p.statusCode||{},_={},w={},C="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=De.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)x.always(t[x.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||C;return n&&n.abort(e),E(0,e),this}};if(m.promise(x),p.url=((t||p.url||xe.href)+"").replace(Ne,xe.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(F)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ue.protocol+"//"+Ue.host!=l.protocol+"//"+l.host}catch(O){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=S.param(p.data,p.traditional)),$e(Ve,p,e,x),c)return x;for(h in(u=S.event&&p.global)&&0==S.active++&&S.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!je.test(p.type),i=p.url.replace(Ie,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Me,"+")):(d=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Ee.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Re,"$1"),d=(Ee.test(i)?"&":"?")+"_="+Se.guid+++d),p.url=i+d),p.ifModified&&(S.lastModified[i]&&x.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&x.setRequestHeader("If-None-Match",S.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&x.setRequestHeader("Content-Type",p.contentType),x.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Le+"; q=0.01":""):p.accepts["*"]),p.headers)x.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(f,x,p)||c))return x.abort();if(C="abort",v.add(p.complete),x.done(p.success),x.fail(p.error),n=$e(Fe,p,e,x)){if(x.readyState=1,u&&g.trigger("ajaxSend",[x,p]),c)return x;p.async&&p.timeout>0&&(a=r.setTimeout(function(){x.abort("timeout")},p.timeout));try{c=!1,n.send(_,E)}catch(O){if(c)throw O;E(-1,O)}}else E(-1,"No Transport");function E(t,e,s,l){var h,d,b,_,w,C=e;c||(c=!0,a&&r.clearTimeout(a),n=void 0,o=l||"",x.readyState=t>0?4:0,h=t>=200&&t<300||304===t,s&&(_=function(t,e,n){for(var r,i,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||t.converters[i+" "+l[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,x,s)),!h&&S.inArray("script",p.dataTypes)>-1&&S.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=function(t,e,n,r){var i,o,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(i in c)if((a=i.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(O){return{state:"parsererror",error:s?O:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,_,x,h),h?(p.ifModified&&((w=x.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=w),(w=x.getResponseHeader("etag"))&&(S.etag[i]=w)),204===t||"HEAD"===p.type?C="nocontent":304===t?C="notmodified":(C=_.state,d=_.data,h=!(b=_.error))):(b=C,!t&&C||(C="error",t<0&&(t=0))),x.status=t,x.statusText=(e||C)+"",h?m.resolveWith(f,[d,C,x]):m.rejectWith(f,[x,C,b]),x.statusCode(y),y=void 0,u&&g.trigger(h?"ajaxSuccess":"ajaxError",[x,p,h?d:b]),v.fireWith(f,[x,C]),u&&(g.trigger("ajaxComplete",[x,p]),--S.active||S.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,n){return S.get(t,e,n,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],function(t,e){S[e]=function(t,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:t,type:e,dataType:i,data:n,success:r},S.isPlainObject(t)&&t))}}),S.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),S._evalUrl=function(t,e,n){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,n)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return v(t)?this.each(function(e){S(this).wrapInner(t.call(this,e))}):this.each(function(){var e=S(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=v(t);return this.each(function(n){S(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var ze={0:200,1223:204},Be=S.ajaxSettings.xhr();m.cors=!!Be&&"withCredentials"in Be,m.ajax=Be=!!Be,S.ajaxTransport(function(t){var e,n;if(m.cors||Be&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(ze[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&r.setTimeout(function(){e&&n()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(l){if(e)throw l}},abort:function(){e&&e()}}}),S.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return S.globalEval(t),t}}}),S.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),S.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=S("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){n&&n()}}});var We,Ge=[],Ze=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ge.pop()||S.expando+"_"+Se.guid++;return this[t]=!0,t}}),S.ajaxPrefilter("json jsonp",function(t,e,n){var i,o,s,a=!1!==t.jsonp&&(Ze.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ze.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ze,"$1"+i):!1!==t.jsonp&&(t.url+=(Ee.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||S.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=r[i],r[i]=function(){s=arguments},n.always(function(){void 0===o?S(r).removeProp(i):r[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ge.push(i)),s&&v(o)&&o(s[0]),s=o=void 0}),"script"}),m.createHTMLDocument=((We=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===We.childNodes.length),S.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((r=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(r)):e=b),o=!n&&[],(i=M.exec(t))?[e.createElement(i[1])]:(i=xt([t],e,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(t,e,n){var r,i,o,s=this,a=t.indexOf(" ");return a>-1&&(r=ve(t.slice(a)),t=t.slice(0,a)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),s.length>0&&S.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(r?S("<div>").append(S.parseHTML(t)).find(r):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(t,e,n){var r,i,o,s,a,l,c=S.css(t,"position"),u=S(t),h={};"static"===c&&(t.style.position="relative"),a=u.offset(),o=S.css(t,"top"),l=S.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(s=(r=u.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(l)||0),v(e)&&(e=e.call(t,n,S.extend({},a))),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+i),"using"in e?e.using.call(t,h):u.css(h)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?{top:(e=r.getBoundingClientRect()).top+(n=r.ownerDocument.defaultView).pageYOffset,left:e.left+n.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===S.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=S(t).offset()).top+=S.css(t,"borderTopWidth",!0),i.left+=S.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-S.css(r,"marginTop",!0),left:e.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===S.css(t,"position");)t=t.offsetParent;return t||st})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;S.fn[t]=function(r){return B(this,function(t,r,i){var o;if(y(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[e]:t[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i},t,r,arguments.length)}}),S.each(["top","left"],function(t,e){S.cssHooks[e]=Bt(m.pixelPosition,function(t,n){if(n)return n=zt(t,e),Ut.test(n)?S(t).position()[e]+"px":n})}),S.each({Height:"height",Width:"width"},function(t,e){S.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){S.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return B(this,function(e,n,i){var o;return y(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?S.css(e,n,a):S.style(e,n,i,a)},e,s?i:void 0,s)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){S.fn[e]=function(t){return this.on(e,t)}}),S.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){S.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var Ye=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),v(t))return r=a.call(arguments,2),(i=function(){return t.apply(e||this,r.concat(a.call(arguments)))}).guid=t.guid=t.guid||S.guid++,i},S.holdReady=function(t){t?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=P,S.isFunction=v,S.isWindow=y,S.camelCase=Y,S.type=C,S.now=Date.now,S.isNumeric=function(t){var e=S.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},S.trim=function(t){return null==t?"":(t+"").replace(Ye,"")},void 0===(n=(function(){return S}).apply(e,[]))||(t.exports=n);var Qe=r.jQuery,Xe=r.$;return S.noConflict=function(t){return r.$===S&&(r.$=Xe),t&&r.jQuery===S&&(r.jQuery=Qe),S},void 0===i&&(r.jQuery=r.$=S),S})},859:(t,e,n)=>{"use strict";function r(t){return"function"==typeof t}let i=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}};function s(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(o.useDeprecatedSynchronousErrorHandling)throw t;s(t)},complete(){}},l=Array.isArray||(t=>t&&"number"==typeof t.length);function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class h{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof h)e.remove(this);else if(null!==e)for(let r=0;r<e.length;++r)e[r].remove(this);if(r(i)){n&&(this._unsubscribe=void 0);try{i.call(this)}catch(s){t=s instanceof u?d(s.errors):[s]}}if(l(o)){let e=-1,n=o.length;for(;++e<n;){const n=o[e];if(c(n))try{n.unsubscribe()}catch(s){t=t||[],s instanceof u?t=t.concat(d(s.errors)):t.push(s)}}}if(t)throw new u(t)}add(t){let e=t;if(!t)return h.EMPTY;switch(typeof t){case"function":e=new h(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof h)){const t=e;e=new h,e._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else if(n instanceof h){if(n===this)return e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}function d(t){return t.reduce((t,e)=>t.concat(e instanceof u?e.errors:e),[])}h.EMPTY=function(t){return t.closed=!0,t}(new h);const p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class f extends h{constructor(t,e,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(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[p](){return this}static create(t,e,n){const r=new f(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends f{constructor(t,e,n,i){let o;super(),this._parentSubscriber=t;let s=this;r(e)?o=e:e&&(o=e.next,n=e.error,i=e.complete,e!==a&&(s=Object.create(e),r(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):s(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;s(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;s(n)}}__tryOrSetError(t,e,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(s(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m="function"==typeof Symbol&&Symbol.observable||"@@observable";function v(t){return t}let y=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,i=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(i.add(r?r.call(i,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),o.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){o.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(i){n(i),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?v:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=o.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const _=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends f{constructor(t){super(t),this.destination=t}}let x=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new S(this,this);return e.operator=t,e}next(t){if(this.closed)throw new _;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].next(t)}}error(t){if(this.closed)throw new _;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new _;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new _;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new _;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new w(this,t))}asObservable(){const t=new y;return t.source=this,t}}return t.create=(t,e)=>new S(t,e),t})();class S extends x{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function E(t){return t&&"function"==typeof t.schedule}function O(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new T(t,e))}}class T{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new k(t,this.project,this.thisArg))}}class k extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const A=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()},P="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",M=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function I(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const R=t=>{if(t&&"function"==typeof t[m])return n=t,t=>{const e=n[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(M(t))return A(t);if(I(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,s),e))(t);if(t&&"function"==typeof t[P])return e=t,t=>{const n=e[P]();for(;;){let e;try{e=n.next()}catch(r){return t.error(r),t}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};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n};function D(t,e){return new y(n=>{const r=new h;let i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function j(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new y(n=>{const r=new h;return r.add(e.schedule(()=>{const i=t[m]();r.add(i.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(I(t))return function(t,e){return new y(n=>{const r=new h;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(M(t))return D(t,e);if(function(t){return t&&"function"==typeof t[P]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(n=>{const r=new h;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[P](),r.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof y?t:new y(R(t))}class N extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class V extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function F(t,e){if(e.closed)return;if(t instanceof y)return t.subscribe(e);let n;try{n=R(t)(e)}catch(r){e.error(r)}return n}function L(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(L((n,r)=>j(t(n,r)).pipe(O((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new U(t,n)))}class U{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new H(t,this.project,this.concurrent))}}class H extends V{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new N(this),n=this.destination;n.add(e);const r=F(t,e);r!==e&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(t=Number.POSITIVE_INFINITY){return L(v,t)}function z(t,e){return e?D(t,e):new y(A(t))}function B(){return function(t){return t.lift(new W(t))}}class W{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new G(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class G extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class Z extends y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new Q(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return B()(this)}}const Y=(()=>{const t=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Q extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function X(){return new x}function J(t){for(let e in t)if(t[e]===J)return e;throw Error("Could not find renamed property on target object.")}function K(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function tt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(tt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function et(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const nt=J({__forward_ref__:J});function rt(t){return t.__forward_ref__=rt,t.toString=function(){return tt(this())},t}function it(t){return ot(t)?t():t}function ot(t){return"function"==typeof t&&t.hasOwnProperty(nt)&&t.__forward_ref__===rt}class st extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function at(t){return"string"==typeof t?t:null==t?"":String(t)}function lt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():at(t)}function ct(t,e){const n=e?` in ${e}`:"";throw new st("201",`No provider for ${lt(t)} found${n}`)}function ut(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ht(t){return{providers:t.providers||[],imports:t.imports||[]}}function dt(t){return pt(t,gt)||pt(t,vt)}function pt(t,e){return t.hasOwnProperty(e)?t[e]:null}function ft(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(yt))?t[mt]:null}const gt=J({"\u0275prov":J}),mt=J({"\u0275inj":J}),vt=J({ngInjectableDef:J}),yt=J({ngInjectorDef:J});var bt=(()=>((bt=bt||{})[bt.Default=0]="Default",bt[bt.Host=1]="Host",bt[bt.Self=2]="Self",bt[bt.SkipSelf=4]="SkipSelf",bt[bt.Optional=8]="Optional",bt))();let _t;function wt(t){const e=_t;return _t=t,e}function Ct(t,e,n){const r=dt(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&bt.Optional?null:void 0!==e?e:void ct(tt(t),"Injector")}function xt(t){return{toString:t}.toString()}var St=(()=>((St=St||{})[St.OnPush=0]="OnPush",St[St.Default=1]="Default",St))(),Et=(()=>((Et=Et||{})[Et.Emulated=0]="Emulated",Et[Et.None=2]="None",Et[Et.ShadowDom=3]="ShadowDom",Et))();const Ot="undefined"!=typeof globalThis&&globalThis,Tt="undefined"!=typeof window&&window,kt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,At="undefined"!=typeof global&&global,Pt=Ot||At||Tt||kt,Mt={},It=[],Rt=J({"\u0275cmp":J}),Dt=J({"\u0275dir":J}),jt=J({"\u0275pipe":J}),Nt=J({"\u0275mod":J}),Vt=J({"\u0275loc":J}),Ft=J({"\u0275fac":J}),Lt=J({__NG_ELEMENT_ID__:J});let Ut=0;function Ht(t){return xt(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===St.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||It,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Et.Emulated,id:"c",styles:t.styles||It,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,i=t.features,o=t.pipes;return n.id+=Ut++,n.inputs=Wt(t.inputs,e),n.outputs=Wt(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map($t):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(qt):null,n})}function $t(t){return Yt(t)||function(t){return t[Dt]||null}(t)}function qt(t){return function(t){return t[jt]||null}(t)}const zt={};function Bt(t){return xt(()=>{const e={type:t.type,bootstrap:t.bootstrap||It,declarations:t.declarations||It,imports:t.imports||It,exports:t.exports||It,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(zt[t.id]=t.type),e})}function Wt(t,e){if(null==t)return Mt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}const Gt=Ht;function Zt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Yt(t){return t[Rt]||null}function Qt(t,e){const n=t[Nt]||null;if(!n&&!0===e)throw new Error(`Type ${tt(t)} does not have '\u0275mod' property.`);return n}const Xt=20,Jt=10;function Kt(t){return Array.isArray(t)&&"object"==typeof t[1]}function te(t){return Array.isArray(t)&&!0===t[1]}function ee(t){return 0!=(8&t.flags)}function ne(t){return 2==(2&t.flags)}function re(t){return 1==(1&t.flags)}function ie(t){return null!==t.template}function oe(t,e){return t.hasOwnProperty(Ft)?t[Ft]:null}class se{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ae(){return le}function le(t){return t.type.prototype.ngOnChanges&&(t.setInput=ue),ce}function ce(){const t=he(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===Mt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function ue(t,e,n,r){const i=he(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Mt,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],l=s[a];o[a]=new se(l&&l.currentValue,e,s===Mt),t[r]=e}function he(t){return t.__ngSimpleChanges__||null}ae.ngInherit=!0;const de="http://www.w3.org/2000/svg";let pe;function fe(t){return!!t.listen}const ge={createRenderer:(t,e)=>void 0!==pe?pe:"undefined"!=typeof document?document:void 0};function me(t){for(;Array.isArray(t);)t=t[0];return t}function ve(t,e){return me(e[t])}function ye(t,e){return me(e[t.index])}function be(t,e){return t.data[e]}function _e(t,e){return t[e]}function we(t,e){const n=e[t];return Kt(n)?n:n[0]}function Ce(t){return 128==(128&t[2])}function xe(t,e){return null==e?null:t[e]}function Se(t){t[18]=0}function Ee(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Oe={lFrame:We(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Te(){return Oe.bindingsEnabled}function ke(){return Oe.lFrame.lView}function Ae(){return Oe.lFrame.tView}function Pe(t){return Oe.lFrame.contextLView=t,t[8]}function Me(){let t=Ie();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ie(){return Oe.lFrame.currentTNode}function Re(t,e){const n=Oe.lFrame;n.currentTNode=t,n.isParent=e}function De(){return Oe.lFrame.isParent}function je(){return Oe.isInCheckNoChangesMode}function Ne(t){Oe.isInCheckNoChangesMode=t}function Ve(){const t=Oe.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Fe(){return Oe.lFrame.bindingIndex++}function Le(t,e){const n=Oe.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ue(e)}function Ue(t){Oe.lFrame.currentDirectiveIndex=t}function He(t){Oe.lFrame.currentQueryIndex=t}function $e(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function qe(t,e,n){if(n&bt.SkipSelf){let r=e,i=t;for(;r=r.parent,!(null!==r||n&bt.Host||(r=$e(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;e=r,t=i}const r=Oe.lFrame=Be();return r.currentTNode=e,r.lView=t,!0}function ze(t){const e=Be(),n=t[1];Oe.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Be(){const t=Oe.lFrame,e=null===t?null:t.child;return null===e?We(t):e}function We(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Ge(){const t=Oe.lFrame;return Oe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ze=Ge;function Ye(){const t=Ge();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Qe(){return Oe.lFrame.selectedIndex}function Xe(t){Oe.lFrame.selectedIndex=t}function Je(){const t=Oe.lFrame;return be(t.tView,t.selectedIndex)}function Ke(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:r,ngAfterContentChecked:i,ngAfterViewInit:o,ngAfterViewChecked:s,ngOnDestroy:a}=e;r&&(t.contentHooks||(t.contentHooks=[])).push(-n,r),i&&((t.contentHooks||(t.contentHooks=[])).push(n,i),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,i)),o&&(t.viewHooks||(t.viewHooks=[])).push(-n,o),s&&((t.viewHooks||(t.viewHooks=[])).push(n,s),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,s)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function tn(t,e,n){rn(t,e,3,n)}function en(t,e,n,r){(3&t[2])===n&&rn(t,e,n,r)}function nn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function rn(t,e,n,r){const i=null!=r?r:-1,o=e.length-1;let s=0;for(let a=void 0!==r?65535&t[18]:0;a<o;a++)if("number"==typeof e[a+1]){if(s=e[a],null!=r&&s>=r)break}else e[a]<0&&(t[18]+=65536),(s<i||-1==i)&&(on(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function on(t,e,n,r){const i=n[r]<0,o=n[r+1],s=t[i?-n[r]:n[r]];if(i){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{o.call(s)}finally{}}}else try{o.call(s)}finally{}}const sn=-1;class an{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function ln(t,e,n){const r=fe(t);let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const s=n[i++],a=n[i++],l=n[i++];r?t.setAttribute(e,a,l,s):e.setAttributeNS(s,a,l)}else{const s=o,a=n[++i];un(s)?r&&t.setProperty(e,s,a):r?t.setAttribute(e,s,a):e.setAttribute(s,a),i++}}return i}function cn(t){return 3===t||4===t||6===t}function un(t){return 64===t.charCodeAt(0)}function hn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?n=i:0===n||dn(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function dn(t,e,n,r,i){let o=0,s=t.length;if(-1===e)s=-1;else for(;o<t.length;){const n=t[o++];if("number"==typeof n){if(n===e){s=-1;break}if(n>e){s=o-1;break}}}for(;o<t.length;){const e=t[o];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function pn(t){return t!==sn}function fn(t){return 32767&t}function gn(t,e){let n=t>>16,r=e;for(;n>0;)r=r[15],n--;return r}let mn=!0;function vn(t){const e=mn;return mn=t,e}let yn=0;function bn(t,e){const n=wn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,_n(r.data,t),_n(e,null),_n(r.blueprint,null));const i=Cn(t,e),o=t.injectorIndex;if(pn(i)){const t=fn(i),n=gn(i,e),r=n[1].data;for(let i=0;i<8;i++)e[o+i]=n[t+i]|r[t+i]}return e[o+8]=i,o}function _n(t,e){t.push(0,0,0,0,0,0,0,0,e)}function wn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Cn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;null!==i;){const t=i[1],e=t.type;if(r=2===e?t.declTNode:1===e?i[6]:null,null===r)return sn;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return sn}function xn(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Lt)&&(r=n[Lt]),null==r&&(r=n[Lt]=yn++);const i=255&r;e.data[t+(i>>5)]|=1<<i}(t,e,n)}function Sn(t,e,n){if(n&bt.Optional)return t;ct(e,"NodeInjector")}function En(t,e,n,r){if(n&bt.Optional&&void 0===r&&(r=null),0==(n&(bt.Self|bt.Host))){const i=t[9],o=wt(void 0);try{return i?i.get(e,r,n&bt.Optional):Ct(e,r,n&bt.Optional)}finally{wt(o)}}return Sn(r,e,n)}function On(t,e,n,r=bt.Default,i){if(null!==t){const o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Lt)?t[Lt]:void 0;return"number"==typeof e?e>=0?255&e:kn:e}(n);if("function"==typeof o){if(!qe(e,t,r))return r&bt.Host?Sn(i,n,r):En(e,n,r,i);try{const t=o(r);if(null!=t||r&bt.Optional)return t;ct(n)}finally{Ze()}}else if("number"==typeof o){let i=null,s=wn(t,e),a=sn,l=r&bt.Host?e[16][6]:null;for((-1===s||r&bt.SkipSelf)&&(a=-1===s?Cn(t,e):e[s+8],a!==sn&&In(r,!1)?(i=e[1],s=fn(a),e=gn(a,e)):s=-1);-1!==s;){const t=e[1];if(Mn(o,s,t.data)){const t=An(s,e,n,i,r,l);if(t!==Tn)return t}a=e[s+8],a!==sn&&In(r,e[1].data[s+8]===l)&&Mn(o,s,e)?(i=t,s=fn(a),e=gn(a,e)):s=-1}}}return En(e,n,r,i)}const Tn={};function kn(){return new Rn(Me(),ke())}function An(t,e,n,r,i,o){const s=e[1],a=s.data[t+8],l=function(t,e,n,r,i){const o=t.providerIndexes,s=e.data,a=1048575&o,l=t.directiveStart,c=o>>20,u=i?a+c:t.directiveEnd;for(let h=r?a:a+c;h<u;h++){const t=s[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(i){const t=s[l];if(t&&ie(t)&&t.type===n)return l}return null}(a,s,n,null==r?ne(a)&&mn:r!=s&&0!=(3&a.type),i&bt.Host&&o===a);return null!==l?Pn(e,s,l,a):Tn}function Pn(t,e,n,r){let i=t[n];const o=e.data;if(i instanceof an){const s=i;s.resolving&&function(t,e){throw new st("200",`Circular dependency in DI detected for ${t}`)}(lt(o[n]));const a=vn(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?wt(s.injectImpl):null;qe(t,r,bt.Default);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const r=le(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==l&&wt(l),vn(a),s.resolving=!1,Ze()}}return i}function Mn(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function In(t,e){return!(t&bt.Self||t&bt.Host&&e)}class Rn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return On(this._tNode,this._lView,t,void 0,e)}}function Dn(t){return xt(()=>{const e=t.prototype.constructor,n=e[Ft]||jn(e),r=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){const t=i[Ft]||jn(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function jn(t){return ot(t)?()=>{const e=jn(it(t));return e&&e()}:oe(t)}const Nn="__parameters__";function Vn(t,e,n){return xt(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function i(...t){if(this instanceof i)return r.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,r){const i=t.hasOwnProperty(Nn)?t[Nn]:Object.defineProperty(t,Nn,{value:[]})[Nn];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}class Fn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ut({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ln=new Fn("AnalyzeForEntryComponents"),Un=Function;function Hn(t,e){t.forEach(t=>Array.isArray(t)?Hn(t,e):e(t))}function $n(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function qn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function zn(t,e,n){let r=Wn(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function Bn(t,e){const n=Wn(t,e);if(n>=0)return t[1|n]}function Wn(t,e){return function(t,e,n){let r=0,i=t.length>>1;for(;i!==r;){const n=r+(i-r>>1),o=t[n<<1];if(e===o)return n<<1;o>e?i=n:r=n+1}return~(i<<1)}(t,e)}const Gn={},Zn=/\n/gm,Yn="__source",Qn=J({provide:String,useValue:J});let Xn;function Jn(t){const e=Xn;return Xn=t,e}function Kn(t,e=bt.Default){if(void 0===Xn)throw new Error("inject() must be called from an injection context");return null===Xn?Ct(t,void 0,e):Xn.get(t,e&bt.Optional?null:void 0,e)}function tr(t,e=bt.Default){return(_t||Kn)(it(t),e)}function er(t){const e=[];for(let n=0;n<t.length;n++){const r=it(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t,n=bt.Default;for(let e=0;e<r.length;e++){const i=r[e],o=i.__NG_DI_FLAG__;"number"==typeof o?-1===o?t=i.token:n|=o:t=i}e.push(tr(t,n))}else e.push(tr(r))}return e}function nr(t,e){return t.__NG_DI_FLAG__=e,t.prototype.__NG_DI_FLAG__=e,t}const rr=nr(Vn("Inject",t=>({token:t})),-1),ir=nr(Vn("Optional"),8),or=nr(Vn("SkipSelf"),4);class sr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function ar(t){return t instanceof sr?t.changingThisBreaksApplicationSecurity:t}const lr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,cr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var ur=(()=>((ur=ur||{})[ur.NONE=0]="NONE",ur[ur.HTML=1]="HTML",ur[ur.STYLE=2]="STYLE",ur[ur.SCRIPT=3]="SCRIPT",ur[ur.URL=4]="URL",ur[ur.RESOURCE_URL=5]="RESOURCE_URL",ur))();function hr(t){const e=function(){const t=ke();return t&&t[12]}();return e?e.sanitize(ur.URL,t)||"":function(t,e){const n=function(t){return t instanceof sr&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}(t,"URL")?ar(t):(n=at(t),(n=String(n)).match(lr)||n.match(cr)?n:"unsafe:"+n);var n}function dr(t,e){t.__ngContext__=e}function pr(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function fr(t){return t.ngOriginalError}function gr(t,...e){t.error(...e)}class mr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t&&t.ngErrorLogger||gr}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?function(t){return t.ngDebugContext}(t)||this._findContext(fr(t)):null}_findOriginalError(t){let e=t&&fr(t);for(;e&&fr(e);)e=fr(e);return e||null}}const vr=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function yr(t){return t instanceof Function?t():t}var br=(()=>((br=br||{})[br.Important=1]="Important",br[br.DashCase=2]="DashCase",br))();function _r(t,e){return(void 0)(t,e)}function wr(t){const e=t[3];return te(e)?e[3]:e}function Cr(t){return Sr(t[13])}function xr(t){return Sr(t[4])}function Sr(t){for(;null!==t&&!te(t);)t=t[4];return t}function Er(t,e,n,r,i){if(null!=r){let o,s=!1;te(r)?o=r:Kt(r)&&(s=!0,r=r[0]);const a=me(r);0===t&&null!==n?null==i?Ir(e,n,a):Mr(e,n,a,i||null,!0):1===t&&null!==n?Mr(e,n,a,i||null,!0):2===t?function(t,e,n){const r=Dr(t,e);r&&function(t,e,n,r){fe(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,r,i){const o=n[7];o!==me(n)&&Er(e,t,r,o,i);for(let s=Jt;s<n.length;s++){const i=n[s];Ur(i[1],i,t,e,r,o)}}(e,t,o,n,i)}}function Or(t,e,n){return fe(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Tr(t,e){const n=t[9],r=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,Ee(i,-1)),n.splice(r,1)}function kr(t,e){if(t.length<=Jt)return;const n=Jt+e,r=t[n];if(r){const o=r[17];null!==o&&o!==t&&Tr(o,r),e>0&&(t[n-1][4]=r[4]);const s=qn(t,Jt+e);Ur(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;const a=s[19];null!==a&&a.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}var i;return r}function Ar(t,e){if(!(256&e[2])){const n=e[11];fe(n)&&n.destroyNode&&Ur(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Pr(t[1],t);for(;e;){let n=null;if(Kt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Kt(e)&&Pr(e[1],e),e=e[3];null===e&&(e=t),Kt(e)&&Pr(e[1],e),n=e&&e[4]}e=n}}(e)}}function Pr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const t=e[n[r]];if(!(t instanceof an)){const e=n[r+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2){const r=t[e[n]],i=e[n+1];try{i.call(r)}finally{}}else try{e.call(t)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,r=e[7];let i=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const t=n[o+1],s="function"==typeof t?t(e):me(e[t]),a=r[i=n[o+2]],l=n[o+3];"boolean"==typeof l?s.removeEventListener(n[o],a,l):l>=0?r[i=l]():r[i=-l].unsubscribe(),o+=2}else{const t=r[i=n[o+1]];n[o].call(t)}if(null!==r){for(let t=i+1;t<r.length;t++)(0,r[t])();e[7]=null}}(t,e),1===e[1].type&&fe(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&te(e[3])){n!==e[3]&&Tr(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function Mr(t,e,n,r,i){fe(t)?t.insertBefore(e,n,r,i):e.insertBefore(n,r,i)}function Ir(t,e,n){fe(t)?t.appendChild(e,n):e.appendChild(n)}function Rr(t,e,n,r,i){null!==r?Mr(t,e,n,r,i):Ir(t,e,n)}function Dr(t,e){return fe(t)?t.parentNode(e):e.parentNode}function jr(t,e,n,r){const i=function(t,e,n){return function(t,e,n){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return n[0];if(2&r.flags){const e=t.data[r.directiveStart].encapsulation;if(e===Et.None||e===Et.Emulated)return null}return ye(r,n)}(t,e.parent,n)}(t,r,e),o=e[11],s=function(t,e,n){return function(t,e,n){return 40&t.type?ye(t,n):null}(t,0,n)}(r.parent||e[6],0,e);if(null!=i)if(Array.isArray(n))for(let a=0;a<n.length;a++)Rr(o,i,n[a],s,!1);else Rr(o,i,n,s,!1)}function Nr(t,e){if(null!==e){const n=e.type;if(3&n)return ye(e,t);if(4&n)return Fr(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return Nr(t,n);{const n=t[e.index];return te(n)?Fr(-1,n):me(n)}}if(32&n)return _r(e,t)()||me(t[e.index]);{const n=Vr(t,e);return null!==n?Array.isArray(n)?n[0]:Nr(wr(t[16]),n):Nr(t,e.next)}}return null}function Vr(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Fr(t,e){const n=Jt+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return Nr(t,r)}return e[7]}function Lr(t,e,n,r,i,o,s){for(;null!=n;){const a=r[n.index],l=n.type;if(s&&0===e&&(a&&dr(me(a),r),n.flags|=4),64!=(64&n.flags))if(8&l)Lr(t,e,n.child,r,i,o,!1),Er(e,t,i,a,o);else if(32&l){const s=_r(n,r);let l;for(;l=s();)Er(e,t,i,l,o);Er(e,t,i,a,o)}else 16&l?Hr(t,e,r,n,i,o):Er(e,t,i,a,o);n=s?n.projectionNext:n.next}}function Ur(t,e,n,r,i,o){Lr(n,r,t.firstChild,e,i,o,!1)}function Hr(t,e,n,r,i,o){const s=n[16],a=s[6].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Er(e,t,i,a[l],o);else Lr(t,e,a,s[3],i,o,!0)}function $r(t,e,n){fe(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function qr(t,e,n){fe(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function zr(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===r||t.charCodeAt(i+n)<=32)return i}n=i+1}}const Br="ng-template";function Wr(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];if(n&&"class"===i){if(i=t[r],-1!==zr(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function Gr(t){return 4===t.type&&t.value!==Br}function Zr(t,e,n){return e===(4!==t.type||n?t.value:Br)}function Yr(t,e,n){let r=4;const i=t.attrs||[],o=function(t){for(let e=0;e<t.length;e++)if(cn(t[e]))return e;return t.length}(i);let s=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!Zr(t,l,n)||""===l&&1===e.length){if(Qr(r))return!1;s=!0}}else{const c=8&r?l:e[++a];if(8&r&&null!==t.attrs){if(!Wr(t.attrs,c,n)){if(Qr(r))return!1;s=!0}continue}const u=Xr(8&r?"class":l,i,Gr(t),n);if(-1===u){if(Qr(r))return!1;s=!0;continue}if(""!==c){let t;t=u>o?"":i[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==zr(e,c,0)||2&r&&c!==t){if(Qr(r))return!1;s=!0}}}}else{if(!s&&!Qr(r)&&!Qr(l))return!1;if(s&&Qr(l))continue;s=!1,r=l|1&r}}return Qr(r)||s}function Qr(t){return 0==(1&t)}function Xr(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let n=!1;for(;i<e.length;){const r=e[i];if(r===t)return i;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===r)break;if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function Jr(t,e,n=!1){for(let r=0;r<e.length;r++)if(Yr(t,e[r],n))return!0;return!1}function Kr(t,e){return t?":not("+e.trim()+")":e}function ti(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&r){const e=t[++n];i+="["+s+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||Qr(s)||(e+=Kr(o,i),i=""),r=s,o=o||!Qr(r);n++}return""!==i&&(e+=Kr(o,i)),e}const ei={};function ni(t){ri(Ae(),ke(),Qe()+t,je())}function ri(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&tn(e,r,n)}else{const r=t.preOrderHooks;null!==r&&en(e,r,0,n)}Xe(n)}function ii(t,e){return t<<17|e<<2}function oi(t){return t>>17&32767}function si(t){return 2|t}function ai(t){return(131068&t)>>2}function li(t,e){return-131069&t|e<<2}function ci(t){return 1|t}function ui(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const n=t.data[o];He(i),n.contentQueries(2,e[o],o)}}}function hi(t,e,n,r,i,o,s,a,l,c){const u=e.blueprint.slice();return u[0]=i,u[2]=140|r,Se(u),u[3]=u[15]=t,u[8]=n,u[10]=s||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=o,u[16]=2==e.type?t[16]:u,u}function di(t,e,n,r,i){let o=t.data[e];if(null===o)o=function(t,e,n,r,i){const o=Ie(),s=De(),a=t.data[e]=function(t,e,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,n,e,r,i);return null===t.firstChild&&(t.firstChild=a),null!==o&&(s?null==o.child&&null!==a.parent&&(o.child=a):null===o.next&&(o.next=a)),a}(t,e,n,r,i),Oe.lFrame.inI18n&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const t=function(){const t=Oe.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();o.injectorIndex=null===t?-1:t.injectorIndex}return Re(o,!0),o}function pi(t,e,n,r){if(0===n)return-1;const i=e.length;for(let o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function fi(t,e,n){ze(e);try{const r=t.viewQuery;null!==r&&$i(1,r,n);const i=t.template;null!==i&&vi(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&ui(t,e),t.staticViewQueries&&$i(2,t.viewQuery,n);const o=t.components;null!==o&&function(t,e){for(let n=0;n<e.length;n++)Vi(t,e[n])}(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),r}finally{e[2]&=-5,Ye()}}function gi(t,e,n,r){const i=e[2];if(256==(256&i))return;ze(e);const o=je();try{Se(e),Oe.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&vi(t,e,n,2,r);const s=3==(3&i);if(!o)if(s){const n=t.preOrderCheckHooks;null!==n&&tn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&en(e,n,0,null),nn(e,0)}if(function(t){for(let e=Cr(t);null!==e;e=xr(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],r=n[3];0==(1024&n[2])&&Ee(r,1),n[2]|=1024}}}(e),function(t){for(let e=Cr(t);null!==e;e=xr(e))for(let t=Jt;t<e.length;t++){const n=e[t],r=n[1];Ce(n)&&gi(r,n,r.template,n[8])}}(e),null!==t.contentQueries&&ui(t,e),!o)if(s){const n=t.contentCheckHooks;null!==n&&tn(e,n)}else{const n=t.contentHooks;null!==n&&en(e,n,1),nn(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const r=n[t];if(r<0)Xe(~r);else{const i=r,o=n[++t],s=n[++t];Le(o,i),s(2,e[i])}}}finally{Xe(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)ji(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&$i(2,l,r),!o)if(s){const n=t.viewCheckHooks;null!==n&&tn(e,n)}else{const n=t.viewHooks;null!==n&&en(e,n,2),nn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Ee(e[3],-1))}finally{Ye()}}function mi(t,e,n,r){const i=e[10],o=!je(),s=4==(4&e[2]);try{o&&!s&&i.begin&&i.begin(),s&&fi(t,e,r),gi(t,e,n,r)}finally{o&&!s&&i.end&&i.end()}}function vi(t,e,n,r,i){const o=Qe(),s=2&r;try{Xe(-1),s&&e.length>Xt&&ri(t,e,Xt,je()),n(r,i)}finally{Xe(o)}}function yi(t,e,n){Te()&&(function(t,e,n,r){const i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||bn(n,e),dr(r,e);const s=n.initialInputs;for(let a=i;a<o;a++){const r=t.data[a],o=ie(r);o&&Mi(e,n,r);const l=Pn(e,t,a,n);dr(l,e),null!==s&&Ii(0,a-i,l,r,0,s),o&&(we(n.index,e)[8]=l)}}(t,e,n,ye(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,s=Oe.lFrame.currentDirectiveIndex;try{Xe(o);for(let n=r;n<i;n++){const r=t.data[n],i=e[n];Ue(n),null===r.hostBindings&&0===r.hostVars&&null===r.hostAttrs||Oi(r,i)}}finally{Xe(-1),Ue(s)}}(t,e,n))}function bi(t,e,n=ye){const r=e.localNames;if(null!==r){let i=e.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(e,t):t[s];t[i++]=a}}}function _i(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=wi(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function wi(t,e,n,r,i,o,s,a,l,c){const u=Xt+r,h=u+i,d=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:ei);return n}(u,h),p="function"==typeof c?c():c;return d[1]={type:t,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:e,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Ci(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function xi(t,e,n,r,i,o,s,a){const l=ye(e,n);let c,u=e.inputs;var h;!a&&null!=u&&(c=u[r])?(Gi(t,n,c,r,i),ne(e)&&function(t,e){const n=we(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,i=null!=s?s(i,e.value||"",r):i,fe(o)?o.setProperty(l,r,i):un(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function Si(t,e,n,r){let i=!1;if(Te()){const o=function(t,e,n){const r=t.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];Jr(n,s.selectors,!1)&&(i||(i=[]),xn(bn(n,e),t,s.type),ie(s)?(Ti(t,n),i.unshift(s)):i.push(s))}return i}(t,e,n),s=null===r?null:{"":-1};if(null!==o){i=!0,Ai(n,t.data.length,o.length);for(let t=0;t<o.length;t++){const e=o[t];e.providersResolver&&e.providersResolver(e)}let r=!1,a=!1,l=pi(t,e,o.length,null);for(let i=0;i<o.length;i++){const c=o[i];n.mergedAttrs=hn(n.mergedAttrs,c.hostAttrs),Pi(t,n,e,l,c),ki(l,c,s),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!r&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),r=!0),a||!u.ngOnChanges&&!u.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(t,e){const n=e.directiveEnd,r=t.data,i=e.attrs,o=[];let s=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=r[l],n=t.inputs,c=null===i||Gr(e)?null:Ri(n,i);o.push(c),s=Ci(n,l,s),a=Ci(t.outputs,l,a)}null!==s&&(s.hasOwnProperty("class")&&(e.flags|=16),s.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=s,e.outputs=a}(t,n)}s&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=n[e[t+1]];if(null==i)throw new st("301",`Export of name '${e[t+1]}' not found!`);r.push(e[t],i)}}}(n,r,s)}return n.mergedAttrs=hn(n.mergedAttrs,n.attrs),i}function Ei(t,e,n,r,i,o){const s=o.hostBindings;if(s){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const o=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=o&&n.push(o),n.push(r,i,s)}}function Oi(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ti(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function ki(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;ie(e)&&(n[""]=t)}}function Ai(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Pi(t,e,n,r,i){t.data[r]=i;const o=i.factory||(i.factory=oe(i.type)),s=new an(o,ie(i),null);t.blueprint[r]=s,n[r]=s,Ei(t,e,0,r,pi(t,n,i.hostVars,ei),i)}function Mi(t,e,n){const r=ye(e,t),i=_i(n),o=t[10],s=Fi(t,hi(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n),null,null));t[e.index]=s}function Ii(t,e,n,r,i,o){const s=o[e];if(null!==s){const t=r.setInput;for(let e=0;e<s.length;){const i=s[e++],o=s[e++],a=s[e++];null!==t?r.setInput(n,a,i,o):n[o]=a}}}function Ri(t,e){let n=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function Di(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function ji(t,e){const n=we(e,t);if(Ce(n)){const t=n[1];80&n[2]?gi(t,n,t.template,n[8]):n[5]>0&&Ni(n)}}function Ni(t){for(let n=Cr(t);null!==n;n=xr(n))for(let t=Jt;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];gi(t,e,t.template,e[8])}else e[5]>0&&Ni(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const r=we(e[n],t);Ce(r)&&r[5]>0&&Ni(r)}}function Vi(t,e){const n=we(e,t),r=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),fi(r,n,n[8])}function Fi(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Li(t){for(;t;){t[2]|=64;const e=wr(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function Ui(t,e,n){const r=e[10];r.begin&&r.begin();try{gi(t,e,t.template,n)}catch(i){throw Wi(e,i),i}finally{r.end&&r.end()}}function Hi(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=pr(n),i=r[1];mi(i,r,i.template,n)}}(t[8])}function $i(t,e,n){He(0),e(t,n)}const qi=(()=>Promise.resolve(null))();function zi(t){return t[7]||(t[7]=[])}function Bi(t){return t.cleanup||(t.cleanup=[])}function Wi(t,e){const n=t[9],r=n?n.get(mr,null):null;r&&r.handleError(e)}function Gi(t,e,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],l=e[s],c=t.data[s];null!==c.setInput?c.setInput(l,i,r,a):l[a]=i}}function Zi(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(let s=0;s<e.length;s++){const t=e[s];"number"==typeof t?o=t:1==o?i=et(i,t):2==o&&(r=et(r,t+": "+e[++s]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}const Yi=new Fn("INJECTOR",-1);class Qi{get(t,e=Gn){if(e===Gn){const e=new Error(`NullInjectorError: No provider for ${tt(t)}!`);throw e.name="NullInjectorError",e}return e}}const Xi=new Fn("Set Injector scope."),Ji={},Ki={};let to;function eo(){return void 0===to&&(to=new Qi),to}function no(t,e=null,n=null,r){return new ro(t,n,e||eo(),r)}class ro{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&Hn(e,n=>this.processProvider(n,t,e)),Hn([t],t=>this.processInjectorType(t,[],i)),this.records.set(Yi,so(void 0,this));const o=this.records.get(Xi);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:tt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Gn,n=bt.Default){this.assertNotDestroyed();const r=Jn(this),i=wt(void 0);try{if(!(n&bt.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(o=t)||"object"==typeof o&&o instanceof Fn)&&dt(t);e=n&&this.injectableDefInScope(n)?so(io(t),Ji):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&bt.Self?eo():this.parent).get(t,e=n&bt.Optional&&e===Gn?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(tt(t)),r)throw s;return function(t,e,n,r){const i=t.ngTempTokenPath;throw e[Yn]&&i.unshift(e[Yn]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=tt(e);if(Array.isArray(e))i=e.map(tt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):tt(r)))}i=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Zn,"\n  ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{wt(i),Jn(r)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(tt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=it(t)))return!1;let r=ft(t);const i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,s=-1!==n.indexOf(o);if(void 0!==i&&(r=ft(i)),null==r)return!1;if(null!=r.imports&&!s){let t;n.push(o);try{Hn(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:r}=t[e];Hn(r,t=>this.processProvider(t,n,r||It))}}this.injectorDefTypes.add(o);const a=oe(o)||(()=>new o);this.records.set(o,so(a,Ji));const l=r.providers;if(null!=l&&!s){const e=t;Hn(l,t=>this.processProvider(t,e,l))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let r=lo(t=it(t))?t:it(t&&t.provide);const i=function(t,e,n){return ao(t)?so(void 0,t.useValue):so(oo(t),Ji)}(t);if(lo(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=so(void 0,Ji,!0),e.factory=()=>er(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,i)}hydrate(t,e){var n;return e.value===Ji&&(e.value=Ki,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=it(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function io(t){const e=dt(t),n=null!==e?e.factory:oe(t);if(null!==n)return n;if(t instanceof Fn)throw new Error(`Token ${tt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=function(t,e){const n=[];for(let r=0;r<t;r++)n.push("?");return n}(e);throw new Error(`Can't resolve all parameters for ${tt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[gt]||t[vt]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function oo(t,e,n){let r;if(lo(t)){const e=it(t);return oe(e)||io(e)}if(ao(t))r=()=>it(t.useValue);else if((i=t)&&i.useFactory)r=()=>t.useFactory(...er(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>tr(it(t.useExisting));else{const e=it(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return oe(e)||io(e);r=()=>new e(...er(t.deps))}var i;return r}function so(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ao(t){return null!==t&&"object"==typeof t&&Qn in t}function lo(t){return"function"==typeof t}const co=function(t,e,n){return function(t,e=null,n=null,r){const i=no(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};class uo{static create(t,e){return Array.isArray(t)?co(t,e,""):co(t.providers,t.parent,t.name||"")}}function ho(t,e){Ke(pr(t)[1],Me())}function po(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let i;if(ie(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);const e=t;e.inputs=fo(t.inputs),e.declaredInputs=fo(t.declaredInputs),e.outputs=fo(t.outputs);const n=i.hostBindings;n&&vo(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&go(t,o),s&&mo(t,s),K(t.inputs,i.inputs),K(t.declaredInputs,i.declaredInputs),K(t.outputs,i.outputs),ie(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let r=0;r<e.length;r++){const i=e[r];i&&i.ngInherit&&i(t),i===po&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=hn(i.hostAttrs,n=hn(n,i.hostAttrs))}}(r)}function fo(t){return t===Mt?{}:t===It?[]:t}function go(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function mo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,i)=>{e(t,r,i),n(t,r,i)}:e}function vo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}uo.THROW_IF_NOT_FOUND=Gn,uo.NULL=new Qi,uo.\u0275prov=ut({token:uo,providedIn:"any",factory:()=>tr(Yi)}),uo.__NG_ELEMENT_ID__=-1;let yo=null;function bo(){if(!yo){const t=Pt.Symbol;if(t&&t.iterator)yo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(yo=n)}}}return yo}class _o{constructor(t){this.wrapped=t}static wrap(t){return new _o(t)}static unwrap(t){return _o.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof _o}}function wo(t){return!!Co(t)&&(Array.isArray(t)||!(t instanceof Map)&&bo()in t)}function Co(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function xo(t,e,n){return t[e]=n}function So(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Eo(t,e,n,r){const i=ke();return So(i,Fe(),e)&&(Ae(),function(t,e,n,r,i,o){const s=ye(t,e);!function(t,e,n,r,i,o,s){if(null==o)fe(t)?t.removeAttribute(e,i,n):e.removeAttribute(i);else{const a=null==s?at(o):s(o,r||"",i);fe(t)?t.setAttribute(e,i,a,n):n?e.setAttributeNS(n,i,a):e.setAttribute(i,a)}}(e[11],s,o,t.value,n,r,i)}(Je(),i,t,e,n,r)),Eo}function Oo(t,e,n,r){return So(t,Fe(),n)?e+at(n)+r:ei}function To(t,e,n,r,i,o,s,a){const l=ke(),c=Ae(),u=t+Xt,h=c.firstCreatePass?function(t,e,n,r,i,o,s,a,l){const c=e.consts,u=di(e,t,4,s||null,xe(c,a));Si(e,n,u,xe(c,l)),Ke(e,u);const h=u.tViews=wi(2,u,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,n,r,i,o,s):c.data[u];Re(h,!1);const d=l[11].createComment("");jr(c,l,d,h),dr(d,l),Fi(l,l[u]=Di(d,l,d,h)),re(h)&&yi(c,l,h),null!=s&&bi(l,h,a)}function ko(t){return _e(Oe.lFrame.contextLView,Xt+t)}function Ao(t,e=bt.Default){const n=ke();return null===n?tr(t,e):On(Me(),n,it(t),e)}function Po(t,e,n){const r=ke();return So(r,Fe(),e)&&xi(Ae(),Je(),r,t,e,r[11],n,!1),Po}function Mo(t,e,n,r,i){const o=i?"class":"style";Gi(t,n,e.inputs[o],o,r)}function Io(t,e,n,r){const i=ke(),o=Ae(),s=Xt+t,a=i[11],l=i[s]=Or(a,e,Oe.lFrame.currentNamespace),c=o.firstCreatePass?function(t,e,n,r,i,o,s){const a=e.consts,l=di(e,t,2,i,xe(a,o));return Si(e,n,l,xe(a,s)),null!==l.attrs&&Zi(l,l.attrs,!1),null!==l.mergedAttrs&&Zi(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(s,o,i,0,e,n,r):o.data[s];Re(c,!0);const u=c.mergedAttrs;null!==u&&ln(a,l,u);const h=c.classes;null!==h&&qr(a,l,h);const d=c.styles;null!==d&&$r(a,l,d),64!=(64&c.flags)&&jr(o,i,l,c),0===Oe.lFrame.elementDepthCount&&dr(l,i),Oe.lFrame.elementDepthCount++,re(c)&&(yi(o,i,c),function(t,e,n){if(ee(e)){const r=e.directiveEnd;for(let i=e.directiveStart;i<r;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,n[i],i)}}}(o,c,i)),null!==r&&bi(i,c)}function Ro(){let t=Me();De()?Oe.lFrame.isParent=!1:(t=t.parent,Re(t,!1));const e=t;Oe.lFrame.elementDepthCount--;const n=Ae();n.firstCreatePass&&(Ke(n,t),ee(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Mo(n,e,ke(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Mo(n,e,ke(),e.stylesWithoutHost,!1)}function Do(t,e,n,r){Io(t,e,n,r),Ro()}function jo(){return ke()}function No(t){return!!t&&"function"==typeof t.then}const Vo=function(t){return!!t&&"function"==typeof t.subscribe};function Fo(t,e,n,r){const i=ke(),o=Ae(),s=Me();return function(t,e,n,r,i,o,s,a){const l=re(r),c=t.firstCreatePass&&Bi(t),u=zi(e);let h=!0;if(3&r.type||a){const d=ye(r,e),p=a?a(d):d,f=u.length,g=a?t=>a(me(t[r.index])):r.index;if(fe(n)){let s=null;if(!a&&l&&(s=function(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const t=i[o];if(t===n&&i[o+1]===r){const t=e[7],n=i[o+2];return t.length>n?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,i,r.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,h=!1;else{o=Uo(r,e,0,o,!1);const t=n.listen(p,i,o);u.push(o,t),c&&c.push(i,g,f,f+1)}}else o=Uo(r,e,0,o,!0),p.addEventListener(i,o,s),u.push(o),c&&c.push(i,g,f,s)}else o=Uo(r,e,0,o,!1);const d=r.outputs;let p;if(h&&null!==d&&(p=d[i])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(o),s=u.length;u.push(o,t),c&&c.push(i,r.index,s,-(s+1))}}}(o,i,i[11],s,t,e,!!n,r),Fo}function Lo(t,e,n,r){try{return!1!==n(r)}catch(i){return Wi(t,i),!1}}function Uo(t,e,n,r,i){return function n(o){if(o===Function)return r;const s=2&t.flags?we(t.index,e):e;0==(32&e[2])&&Li(s);let a=Lo(e,0,r,o),l=n.__ngNextListenerFn__;for(;l;)a=Lo(e,0,l,o)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function Ho(t=1){return function(t){return(Oe.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Oe.lFrame.contextLView))[8]}(t)}function $o(t,e,n){return qo(t,"",e,"",n),$o}function qo(t,e,n,r,i){const o=ke(),s=Oo(o,e,n,r);return s!==ei&&xi(Ae(),Je(),o,t,s,o[11],i,!1),qo}function zo(t,e,n,r,i){const o=t[n+1],s=null===e;let a=r?oi(o):ai(o),l=!1;for(;0!==a&&(!1===l||s);){const n=t[a+1];Bo(t[a],e)&&(l=!0,t[a+1]=r?ci(n):si(n)),a=r?oi(n):ai(n)}l&&(t[n+1]=r?si(o):ci(o))}function Bo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Wn(t,e)>=0}function Wo(t,e){return function(t,e,n,r){const i=ke(),o=Ae(),s=function(t){const e=Oe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();o.firstUpdatePass&&function(t,e,n,r){const i=t.data;if(null===i[n+1]){const o=i[Qe()],s=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(16&t.flags)})(o)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const i=function(t){const e=Oe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=e.residualClasses;if(null===i)0===e.classBindings&&(n=Zo(n=Go(null,t,e,n,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==i)if(n=Go(i,t,e,n,r),null===o){let n=function(t,e,n){const r=e.classBindings;if(0!==ai(r))return t[oi(r)]}(t,e);void 0!==n&&Array.isArray(n)&&(n=Go(null,t,e,n[1],r),n=Zo(n,e.attrs,r),function(t,e,n,r){t[oi(e.classBindings)]=r}(t,e,0,n))}else o=function(t,e,n){let r;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++)r=Zo(r,t[o].hostAttrs,true);return Zo(r,e.attrs,true)}(t,e)}return void 0!==o&&(e.residualClasses=o),n}(i,o,e,r),function(t,e,n,r,i,o){let s=e.classBindings,a=oi(s),l=ai(s);t[r]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||Wn(t,c)>0)&&(u=!0)}else c=n;if(i)if(0!==l){const e=oi(t[a+1]);t[r+1]=ii(e,a),0!==e&&(t[e+1]=li(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=ii(a,0),0!==a&&(t[a+1]=li(t[a+1],r)),a=r;else t[r+1]=ii(l,0),0===a?a=r:t[l+1]=li(t[l+1],r),l=r;u&&(t[r+1]=si(t[r+1])),zo(t,c,r,!0),zo(t,c,r,!1),function(t,e,n,r,i){const o=t.residualClasses;null!=o&&"string"==typeof e&&Wn(o,e)>=0&&(n[r+1]=ci(n[r+1]))}(e,c,t,r),s=ii(a,l),e.classBindings=s}(i,o,e,n,s)}}(o,t,s,true),e!==ei&&So(i,s,e)&&function(t,e,n,r,i,o,s,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];Qo(1==(1&c)?Yo(l,e,n,i,ai(c),s):void 0)||(Qo(o)||function(t){return 2==(2&t)}(c)&&(o=Yo(l,null,n,i,a,s)),function(t,e,n,r,i){const o=fe(t);i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r)}(r,0,ve(Qe(),n),i,o))}(o,o.data[Qe()],i,i[11],t,i[s+1]=function(t,e){return null==t||"object"==typeof t&&(t=tt(ar(t))),t}(e),true,s)}(t,e),Wo}function Go(t,e,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(o=e[a],r=Zo(r,o.hostAttrs,i),o!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Zo(t,e,n){const r=n?1:2;let i=-1;if(null!==e)for(let o=0;o<e.length;o++){const s=e[o];"number"==typeof s?i=s:i===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),zn(t,s,!!n||e[++o]))}return void 0===t?null:t}function Yo(t,e,n,r,i,o){const s=null===e;let a;for(;i>0;){const e=t[i],o=Array.isArray(e),l=o?e[1]:e,c=null===l;let u=n[i+1];u===ei&&(u=c?It:void 0);let h=c?Bn(u,r):l===r?u:void 0;if(o&&!Qo(h)&&(h=Bn(e,r)),Qo(h)&&(a=h,s))return a;const d=t[i+1];i=s?oi(d):ai(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=Bn(t,r))}return a}function Qo(t){return void 0!==t}function Xo(t,e=""){const n=ke(),r=Ae(),i=t+Xt,o=r.firstCreatePass?di(r,i,1,e,null):r.data[i],s=n[i]=function(t,e){return fe(t)?t.createText(e):t.createTextNode(e)}(n[11],e);jr(r,n,s,o),Re(o,!1)}function Jo(t){return Ko("",t,""),Jo}function Ko(t,e,n){const r=ke(),i=Oo(r,t,e,n);return i!==ei&&function(t,e,n){const r=ve(e,t);!function(t,e,n){fe(t)?t.setValue(e,n):e.textContent=n}(t[11],r,n)}(r,Qe(),i),Ko}const ts=void 0;var es=["en",[["a","p"],["AM","PM"],ts],[["AM","PM"],ts,ts],[["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"]],ts,[["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"]],ts,[["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}",ts,"{1} 'at' {0}",ts],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ns={};function rs(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=is(e);if(n)return n;const r=e.split("-")[0];if(n=is(r),n)return n;if("en"===r)return es;throw new Error(`Missing locale data for the locale "${t}".`)}function is(t){return t in ns||(ns[t]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[t]),ns[t]}var os=(()=>((os=os||{})[os.LocaleId=0]="LocaleId",os[os.DayPeriodsFormat=1]="DayPeriodsFormat",os[os.DayPeriodsStandalone=2]="DayPeriodsStandalone",os[os.DaysFormat=3]="DaysFormat",os[os.DaysStandalone=4]="DaysStandalone",os[os.MonthsFormat=5]="MonthsFormat",os[os.MonthsStandalone=6]="MonthsStandalone",os[os.Eras=7]="Eras",os[os.FirstDayOfWeek=8]="FirstDayOfWeek",os[os.WeekendRange=9]="WeekendRange",os[os.DateFormat=10]="DateFormat",os[os.TimeFormat=11]="TimeFormat",os[os.DateTimeFormat=12]="DateTimeFormat",os[os.NumberSymbols=13]="NumberSymbols",os[os.NumberFormats=14]="NumberFormats",os[os.CurrencyCode=15]="CurrencyCode",os[os.CurrencySymbol=16]="CurrencySymbol",os[os.CurrencyName=17]="CurrencyName",os[os.Currencies=18]="Currencies",os[os.Directionality=19]="Directionality",os[os.PluralCase=20]="PluralCase",os[os.ExtraData=21]="ExtraData",os))();const ss="en-US";let as=ss;function ls(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(as=t.toLowerCase().replace(/_/g,"-"))}function cs(t,e,n,r,i){if(t=it(t),Array.isArray(t))for(let o=0;o<t.length;o++)cs(t[o],e,n,r,i);else{const o=Ae(),s=ke();let a=lo(t)?t:it(t.provide),l=oo(t);const c=Me(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if(lo(t)||!t.multi){const r=new an(l,i,Ao),p=ds(a,e,i?u:u+d,h);-1===p?(xn(bn(c,s),o,a),us(o,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(r),s.push(r)):(n[p]=r,s[p]=r)}else{const p=ds(a,e,u+d,h),f=ds(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(i&&!m||!i&&!g){xn(bn(c,s),o,a);const u=function(t,e,n,r,i){const o=new an(t,n,Ao);return o.multi=[],o.index=e,o.componentProviders=0,hs(o,i,r&&!n),o}(i?fs:ps,n.length,i,r,l);!i&&m&&(n[f].providerFactory=u),us(o,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(u),s.push(u)}else us(o,t,p>-1?p:f,hs(n[i?f:p],l,!i&&r));!i&&r&&m&&n[f].componentProviders++}}}function us(t,e,n,r){const i=lo(e);if(i||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const s=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const t=s.indexOf(n);-1===t?s.push(n,[r,o]):s[t+1].push(r,o)}else s.push(n,o)}}}function hs(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ds(t,e,n,r){for(let i=n;i<r;i++)if(e[i]===t)return i;return-1}function ps(t,e,n,r){return gs(this.multi,[])}function fs(t,e,n,r){const i=this.multi;let o;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Pn(n,n[1],this.providerFactory.index,r);o=e.slice(0,t),gs(i,o);for(let n=t;n<e.length;n++)o.push(e[n])}else o=[],gs(i,o);return o}function gs(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function ms(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=Ae();if(r.firstCreatePass){const i=ie(t);cs(n,r.data,r.blueprint,i,!0),cs(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}class vs{}class ys{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${tt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}class bs{}function _s(...t){}function ws(t,e){return new xs(ye(t,e))}bs.NULL=new ys;const Cs=function(){return ws(Me(),ke())};let xs=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Cs,t})();class Ss{}let Es=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Os(),t})();const Os=function(){const t=ke(),e=we(Me().index,t);return function(t){return t[11]}(Kt(e)?e:t)};let Ts=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>null}),t})();class ks{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const As=new ks("12.1.5");class Ps{constructor(){}supports(t){return wo(t)}create(t){return new Is(t)}}const Ms=(t,e)=>e;class Is{constructor(t){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=t||Ms}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,i=null;for(;e||n;){const o=!n||e&&e.currentIndex<Ns(n,r,i)?e:n,s=Ns(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);const t=s-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<i.length?i[n]:i[n]=0,o=r+n;e<=o&&o<t&&(i[n]=r+1)}i[o.previousIndex]=e-t}}s!==a&&t(o,s,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!wo(t))throw new Error(`Error trying to diff '${tt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,i=this._itHead,o=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,n,r,e)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,e),o=!0),i=i._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[bo()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,t,r,e)),Object.is(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,r,e),o=!0),i=i._next,e++}),this.length=e;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):t=this._addAfter(new Rs(e,n),i,r),t}_verifyReinsertion(t,e,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new js),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new js),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Rs{constructor(t,e){this.item=t,this.trackById=e,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 Ds{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class js{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ds,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ns(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+e+i}class Vs{constructor(){}supports(t){return t instanceof Map||Co(t)}create(){return new Fs}}class Fs{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(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Co(t)))throw new Error(`Error trying to diff '${tt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);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 Ls(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Ls{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Us(){return new Hs([new Ps])}let Hs=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Us()),deps:[[t,new or,new ir]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:Us}),t})();function $s(){return new qs([new Vs])}let qs=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||$s()),deps:[[t,new or,new ir]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ut({token:t,providedIn:"root",factory:$s}),t})();function zs(t,e,n,r,i=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&r.push(me(o)),te(o))for(let t=Jt;t<o.length;t++){const e=o[t],n=e[1].firstChild;null!==n&&zs(e[1],e,n,r)}const s=n.type;if(8&s)zs(t,e,n.child,r);else if(32&s){const t=_r(n,e);let i;for(;i=t();)r.push(i)}else if(16&s){const t=Vr(e,n);if(Array.isArray(t))r.push(...t);else{const n=wr(e[16]);zs(n[1],n,t,r,!0)}}n=i?n.projectionNext:n.next}return r}class Bs{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return zs(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(te(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(kr(t,n),qn(e,n))}this._attachedToViewContainer=!1}Ar(this._lView[1],this._lView)}onDestroy(t){!function(t,e,n,r){const i=zi(e);i.push(r)}(0,this._lView,0,t)}markForCheck(){Li(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ui(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Ne(!0);try{Ui(t,e,n)}finally{Ne(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Ur(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ws extends Bs{constructor(t){super(t),this._view=t}detectChanges(){Hi(this._view)}checkNoChanges(){!function(t){Ne(!0);try{Hi(t)}finally{Ne(!1)}}(this._view)}get context(){return null}}const Gs=function(t){return function(t,e,n){if(ne(t)&&!n){const n=we(t.index,e);return new Bs(n,n)}return 47&t.type?new Bs(e[16],e):null}(Me(),ke(),16==(16&t))};let Zs=(()=>{class t{}return t.__NG_ELEMENT_ID__=Gs,t})();const Ys=[new Vs],Qs=new Hs([new Ps]),Xs=new qs(Ys),Js=function(){return na(Me(),ke())};let Ks=(()=>{class t{}return t.__NG_ELEMENT_ID__=Js,t})();const ta=Ks,ea=class extends ta{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=hi(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),fi(e,n,t),new Bs(n)}};function na(t,e){return 4&t.type?new ea(e,t,ws(t,e)):null}class ra{}class ia{}const oa=function(){return function(t,e){let n;const r=e[t.index];if(te(r))n=r;else{let i;if(8&t.type)i=me(r);else{const n=e[11];i=n.createComment("");const r=ye(t,e);Mr(n,Dr(n,r),i,function(t,e){return fe(t)?t.nextSibling(e):e.nextSibling}(n,r),!1)}e[t.index]=n=Di(r,e,i,t),Fi(e,n)}return new la(n,t,e)}(Me(),ke())};let sa=(()=>{class t{}return t.__NG_ELEMENT_ID__=oa,t})();const aa=sa,la=class extends aa{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return ws(this._hostTNode,this._hostLView)}get injector(){return new Rn(this._hostTNode,this._hostLView)}get parentInjector(){const t=Cn(this._hostTNode,this._hostLView);if(pn(t)){const e=gn(t,this._hostLView),n=fn(t);return new Rn(e[1].data[n+8],e)}return new Rn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ca(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Jt}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,i){const o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){const t=o.get(ra,null);t&&(i=t)}const s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,r=n[1];if(te(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new la(e,e[6],e[3]);r.detach(r.indexOf(t))}}const i=this._adjustIndex(e),o=this._lContainer;!function(t,e,n,r){const i=Jt+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-Jt?(e[4]=n[i],$n(n,Jt+r,e)):(n.push(e),e[4]=null),e[3]=n;const s=e[17];null!==s&&n!==s&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(s,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(r,n,o,i);const s=Fr(i,o),a=n[11],l=Dr(a,o[7]);return null!==l&&function(t,e,n,r,i,o){r[0]=i,r[6]=e,Ur(t,r,n,1,i,o)}(r,o[6],a,n,l,s),t.attachToViewContainerRef(),$n(ua(o),i,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=ca(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=kr(this._lContainer,e);n&&(qn(ua(this._lContainer),e),Ar(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=kr(this._lContainer,e);return n&&null!=qn(ua(this._lContainer),e)?new Bs(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function ca(t){return t[8]}function ua(t){return t[8]||(t[8]=[])}const ha={};class da extends bs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Yt(t);return new ga(e,this.ngModule)}}function pa(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const fa=new Fn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>vr});class ga extends vs{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ti).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return pa(this.componentDef.inputs)}get outputs(){return pa(this.componentDef.outputs)}create(t,e,n,r){const i=(r=r||this.ngModule)?function(t,e){return{get:(n,r,i)=>{const o=t.get(n,ha,i);return o!==ha||r===ha?o:e.get(n,r,i)}}}(t,r.injector):t,o=i.get(Ss,ge),s=i.get(Ts,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(fe(t))return t.selectRootElement(e,n===Et.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Or(o.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?de:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:vr,clean:qi,playerHandler:null,flags:0},d=wi(0,null,null,1,0,null,null,null,null,null),p=hi(null,d,h,u,null,null,o,a,s,i);let f,g;ze(p);try{const t=function(t,e,n,r,i,o){const s=n[1];n[20]=t;const a=di(s,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Zi(a,l,!0),null!==t&&(ln(i,t,l),null!==a.classes&&qr(i,t,a.classes),null!==a.styles&&$r(i,t,a.styles)));const c=r.createRenderer(t,e),u=hi(n,_i(e),null,e.onPush?64:16,n[20],a,r,c,null,null);return s.firstCreatePass&&(xn(bn(a,n),s,e.type),Ti(s,a),Ai(a,n.length,1)),Fi(n,u),n[20]=u}(c,this.componentDef,p,o,a);if(c)if(n)ln(a,c,["ng-version",As.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!Qr(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&ln(a,c,t),e&&e.length>0&&qr(a,c,e.join(" "))}if(g=be(d,Xt),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=e[n];t.push(null!=r?Array.from(r):null)}}f=function(t,e,n,r,i){const o=n[1],s=function(t,e,n){const r=Me();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Pi(t,r,e,pi(t,e,1,null),n));const i=Pn(e,t,r.directiveStart,r);dr(i,e);const o=ye(r,e);return o&&dr(o,e),i}(o,n,e);if(r.components.push(s),t[8]=s,i&&i.forEach(t=>t(s,e)),e.contentQueries){const t=Me();e.contentQueries(1,s,t.directiveStart)}const a=Me();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Xe(a.index),Ei(n[1],a,0,a.directiveStart,a.directiveEnd,e),Oi(e,s)),s}(t,this.componentDef,p,h,[ho]),fi(d,p,null)}finally{Ye()}return new ma(this.componentType,f,ws(g,p),p,g)}}class ma extends class{}{constructor(t,e,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.instance=e,this.hostView=this.changeDetectorRef=new Ws(r),this.componentType=t}get injector(){return new Rn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const va=new Map;class ya extends ra{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new da(this);const n=Qt(t),r=t[Vt]||null;r&&ls(r),this._bootstrapComponents=yr(n.bootstrap),this._r3Injector=no(t,e,[{provide:ra,useValue:this},{provide:bs,useValue:this.componentFactoryResolver}],tt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=uo.THROW_IF_NOT_FOUND,n=bt.Default){return t===uo||t===ra||t===Yi?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ba extends ia{constructor(t){super(),this.moduleType=t,null!==Qt(t)&&function(t){const e=new Set;!function t(n){const r=Qt(n,!0),i=r.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${tt(e)} vs ${tt(e.name)}`)}(i,va.get(i),n),va.set(i,n));const o=yr(r.imports);for(const s of o)e.has(s)||(e.add(s),t(s))}(t)}(t)}create(t){return new ya(this.moduleType,t)}}function _a(t,e){const n=t[e];return n===ei?void 0:n}function wa(t,e){const n=Ae();let r;const i=t+Xt;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new st("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=oe(r.type)),s=wt(Ao);try{const t=vn(!1),e=o();return vn(t),function(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(n,ke(),i,e),e}finally{wt(s)}}function Ca(t,e,n){const r=t+Xt,i=ke(),o=_e(i,r);return Ea(i,Sa(i,r)?function(t,e,n,r,i,o){const s=e+n;return So(t,s,i)?xo(t,s+1,o?r.call(o,i):r(i)):_a(t,s+1)}(i,Ve(),e,o.transform,n,o):o.transform(n))}function xa(t,e,n,r){const i=t+Xt,o=ke(),s=_e(o,i);return Ea(o,Sa(o,i)?function(t,e,n,r,i,o,s){const a=e+n;return function(t,e,n,r){const i=So(t,e,n);return So(t,e+1,r)||i}(t,a,i,o)?xo(t,a+2,s?r.call(s,i,o):r(i,o)):_a(t,a+2)}(o,Ve(),e,s.transform,n,r,s):s.transform(n,r))}function Sa(t,e){return t[1].data[e].pure}function Ea(t,e){return _o.isWrapped(e)&&(e=_o.unwrap(e),t[Oe.lFrame.bindingIndex]=ei),e}function Oa(t){return e=>{setTimeout(t,void 0,e)}}const Ta=class extends x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var r,i,o;let s=t,a=e||(()=>null),l=n;if(t&&"object"==typeof t){const e=t;s=null===(r=e.next)||void 0===r?void 0:r.bind(e),a=null===(i=e.error)||void 0===i?void 0:i.bind(e),l=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(a=Oa(a),s&&(s=Oa(s)),l&&(l=Oa(l)));const c=super.subscribe({next:s,error:a,complete:l});return t instanceof h&&t.add(c),c}};function ka(t,e){return na(t,e)}Symbol;const Aa=new Fn("Application Initializer");let Pa=(()=>{class t{constructor(t){this.appInits=t,this.resolve=_s,this.reject=_s,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();if(No(e))t.push(e);else if(Vo(e)){const n=new Promise((t,n)=>{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(tr(Aa,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Ma=new Fn("AppId"),Ia={provide:Ma,useFactory:function(){return`${Ra()}${Ra()}${Ra()}`},deps:[]};function Ra(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Da=new Fn("Platform Initializer"),ja=new Fn("Platform ID"),Na=new Fn("appBootstrapListener");let Va=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Fa=new Fn("LocaleId"),La=new Fn("DefaultCurrencyCode");class Ua{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Ha=function(t){return new ba(t)},$a=Ha,qa=function(t){return Promise.resolve(Ha(t))},za=function(t){const e=Ha(t),n=yr(Qt(t).declarations).reduce((t,e)=>{const n=Yt(e);return n&&t.push(new ga(n)),t},[]);return new Ua(e,n)},Ba=za,Wa=function(t){return Promise.resolve(za(t))};let Ga=(()=>{class t{constructor(){this.compileModuleSync=$a,this.compileModuleAsync=qa,this.compileModuleAndAllComponentsSync=Ba,this.compileModuleAndAllComponentsAsync=Wa}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Za=(()=>Promise.resolve(0))();function Ya(t){"undefined"==typeof Zone?Za.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Qa{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ta(!1),this.onMicrotaskEmpty=new Ta(!1),this.onStable=new Ta(!1),this.onError=new Ta(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let t=Pt.requestAnimationFrame,e=Pt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Pt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ka(t),t.isCheckStableRunning=!0,Ja(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ka(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return tl(t),n.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),el(t)}},onInvoke:(n,r,i,o,s,a,l)=>{try{return tl(t),n.invoke(i,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),el(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Ka(t),Ja(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Qa.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Qa.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Xa,_s,_s);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Xa={};function Ja(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Ka(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function tl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function el(t){t._nesting--,Ja(t)}class nl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ta,this.onMicrotaskEmpty=new Ta,this.onStable=new Ta,this.onError=new Ta}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let rl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{Qa.assertNotInAngularZone(),Ya(()=>{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())Ya(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(tr(Qa))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),il=(()=>{class t{constructor(){this._applications=new Map,al.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return al.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class ol{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let sl,al=new ol,ll=!0,cl=!1;const ul=new Fn("AllowMultipleToken");class hl{constructor(t,e){this.name=t,this.token=e}}function dl(t,e,n=[]){const r=`Platform: ${e}`,i=new Fn(r);return(e=[])=>{let o=pl();if(!o||o.injector.get(ul,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:Xi,useValue:"platform"});!function(t){if(sl&&!sl.destroyed&&!sl.injector.get(ul,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");sl=t.get(fl);const e=t.get(Da,null);e&&e.forEach(t=>t())}(uo.create({providers:t,name:r}))}return function(t){const e=pl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function pl(){return sl&&!sl.destroyed?sl:null}let fl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new nl:("zone.js"===t?void 0:t)||new Qa({enableLongStackTrace:(cl=!0,ll),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),r=[{provide:Qa,useValue:n}];return n.run(()=>{const e=uo.create({providers:r,parent:this.injector,name:t.moduleType.name}),i=t.create(e),o=i.injector.get(mr,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{o.handleError(t)}});i.onDestroy(()=>{vl(this._modules,i),t.unsubscribe()})}),function(t,e,n){try{const r=n();return No(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(o,n,()=>{const t=i.injector.get(Pa);return t.runInitializers(),t.donePromise.then(()=>(ls(i.injector.get(Fa,ss)||ss),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=gl({},e);return function(t,e,n){const r=new ba(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(ml);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${tt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(tr(uo))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function gl(t,e){return Array.isArray(e)?e.reduce(gl,t):Object.assign(Object.assign({},t),e)}let ml=(()=>{class t{constructor(t,e,n,r,i){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=r,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),s=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Qa.assertNotInAngularZone(),Ya(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Qa.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=function(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return E(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof y?t[0]:q(e)(z(t,n))}(o,s.pipe(t=>{return B()((e=X,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,Y);return r.source=t,r.subjectFactory=n,r})(t));var e}))}bootstrap(t,e){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=t instanceof vs?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(ra),i=n.create(uo.NULL,[],e||n.selector,r),o=i.location.nativeElement,s=i.injector.get(rl,null),a=s&&i.injector.get(il);return s&&a&&a.registerApplication(o,s),i.onDestroy(()=>{this.detachView(i.hostView),vl(this.components,i),a&&a.unregisterApplication(o)}),this._loadComponent(i),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;vl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Na,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(tr(Qa),tr(uo),tr(mr),tr(bs),tr(Pa))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function vl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class yl{}class bl{}const _l={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let wl=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||_l}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n(255)(e).then(t=>t[r]).then(t=>Cl(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n(255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+i]).then(t=>Cl(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(tr(Ga),tr(bl,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Cl(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const xl=dl(null,"core",[{provide:ja,useValue:"unknown"},{provide:fl,deps:[uo]},{provide:il,deps:[]},{provide:Va,deps:[]}]),Sl=[{provide:ml,useClass:ml,deps:[Qa,uo,mr,bs,Pa]},{provide:fa,deps:[Qa],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Pa,useClass:Pa,deps:[[new ir,Aa]]},{provide:Ga,useClass:Ga,deps:[]},Ia,{provide:Hs,useFactory:function(){return Qs},deps:[]},{provide:qs,useFactory:function(){return Xs},deps:[]},{provide:Fa,useFactory:function(t){return ls(t=t||"undefined"!=typeof $localize&&$localize.locale||ss),t},deps:[[new rr(Fa),new ir,new or]]},{provide:La,useValue:"USD"}];let El=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(tr(ml))},t.\u0275mod=Bt({type:t}),t.\u0275inj=ht({providers:Sl}),t})(),Ol=null;function Tl(){return Ol}const kl=new Fn("DocumentToken");let Al=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:Pl,token:t,providedIn:"platform"}),t})();function Pl(){return tr(Il)}const Ml=new Fn("Location Initialized");let Il=(()=>{class t extends Al{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Tl().getBaseHref(this._doc)}onPopState(t){const e=Tl().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=Tl().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,n){Rl()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Rl()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(tr(kl))},t.\u0275prov=ut({factory:Dl,token:t,providedIn:"platform"}),t})();function Rl(){return!!window.history.pushState}function Dl(){return new Il(tr(kl))}function jl(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Nl(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Vl(t){return t&&"?"!==t[0]?"?"+t:t}let Fl=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:Ll,token:t,providedIn:"root"}),t})();function Ll(t){const e=tr(kl).location;return new Hl(tr(Al),e&&e.origin||"")}const Ul=new Fn("appBaseHref");let Hl=(()=>{class t extends Fl{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return jl(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Vl(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const i=this.prepareExternalUrl(n+Vl(r));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){const i=this.prepareExternalUrl(n+Vl(r));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(tr(Al),tr(Ul,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),$l=(()=>{class t extends Fl{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=jl(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let i=this.prepareExternalUrl(n+Vl(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){let i=this.prepareExternalUrl(n+Vl(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(tr(Al),tr(Ul,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),ql=(()=>{class t{constructor(t,e){this._subject=new Ta,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Nl(Bl(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Vl(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Bl(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Vl(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Vl(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(tr(Fl),tr(Al))},t.normalizeQueryParams=Vl,t.joinWithSlash=jl,t.stripTrailingSlash=Nl,t.\u0275prov=ut({factory:zl,token:t,providedIn:"root"}),t})();function zl(){return new ql(tr(Fl),tr(Al))}function Bl(t){return t.replace(/\/index.html$/,"")}var Wl=(()=>((Wl=Wl||{})[Wl.Zero=0]="Zero",Wl[Wl.One=1]="One",Wl[Wl.Two=2]="Two",Wl[Wl.Few=3]="Few",Wl[Wl.Many=4]="Many",Wl[Wl.Other=5]="Other",Wl))(),Gl=(()=>((Gl=Gl||{})[Gl.Format=0]="Format",Gl[Gl.Standalone=1]="Standalone",Gl))(),Zl=(()=>((Zl=Zl||{})[Zl.Narrow=0]="Narrow",Zl[Zl.Abbreviated=1]="Abbreviated",Zl[Zl.Wide=2]="Wide",Zl[Zl.Short=3]="Short",Zl))(),Yl=(()=>((Yl=Yl||{})[Yl.Short=0]="Short",Yl[Yl.Medium=1]="Medium",Yl[Yl.Long=2]="Long",Yl[Yl.Full=3]="Full",Yl))(),Ql=(()=>((Ql=Ql||{})[Ql.Decimal=0]="Decimal",Ql[Ql.Group=1]="Group",Ql[Ql.List=2]="List",Ql[Ql.PercentSign=3]="PercentSign",Ql[Ql.PlusSign=4]="PlusSign",Ql[Ql.MinusSign=5]="MinusSign",Ql[Ql.Exponential=6]="Exponential",Ql[Ql.SuperscriptingExponent=7]="SuperscriptingExponent",Ql[Ql.PerMille=8]="PerMille",Ql[Ql[1/0]=9]="Infinity",Ql[Ql.NaN=10]="NaN",Ql[Ql.TimeSeparator=11]="TimeSeparator",Ql[Ql.CurrencyDecimal=12]="CurrencyDecimal",Ql[Ql.CurrencyGroup=13]="CurrencyGroup",Ql))();function Xl(t,e){return nc(rs(t)[os.DateFormat],e)}function Jl(t,e){return nc(rs(t)[os.TimeFormat],e)}function Kl(t,e){return nc(rs(t)[os.DateTimeFormat],e)}function tc(t,e){const n=rs(t),r=n[os.NumberSymbols][e];if(void 0===r){if(e===Ql.CurrencyDecimal)return n[os.NumberSymbols][Ql.Decimal];if(e===Ql.CurrencyGroup)return n[os.NumberSymbols][Ql.Group]}return r}function ec(t){if(!t[os.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[os.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function nc(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function rc(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const ic=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,oc={},sc=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ac=(()=>((ac=ac||{})[ac.Short=0]="Short",ac[ac.ShortGMT=1]="ShortGMT",ac[ac.Long=2]="Long",ac[ac.Extended=3]="Extended",ac))(),lc=(()=>((lc=lc||{})[lc.FullYear=0]="FullYear",lc[lc.Month=1]="Month",lc[lc.Date=2]="Date",lc[lc.Hours=3]="Hours",lc[lc.Minutes=4]="Minutes",lc[lc.Seconds=5]="Seconds",lc[lc.FractionalSeconds=6]="FractionalSeconds",lc[lc.Day=7]="Day",lc))(),cc=(()=>((cc=cc||{})[cc.DayPeriods=0]="DayPeriods",cc[cc.Days=1]="Days",cc[cc.Months=2]="Months",cc[cc.Eras=3]="Eras",cc))();function uc(t,e,n,r){let i=function(t){if(xc(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[e,n=1,r=1]=t.split("-").map(t=>+t);return hc(e,n-1,r)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(ic))return function(t){const e=new Date(0);let n=0,r=0;const i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,l,c),e}(n)}const e=new Date(t);if(!xc(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=dc(n,e)||e;let o,s=[];for(;e;){if(o=sc.exec(e),!o){s.push(e);break}{s=s.concat(o.slice(1));const t=s.pop();if(!t)break;e=t}}let a=i.getTimezoneOffset();r&&(a=Cc(r,a),i=function(t,e,n){const r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Cc(e,r)-r))}(i,r));let l="";return s.forEach(t=>{const e=function(t){if(wc[t])return wc[t];let e;switch(t){case"G":case"GG":case"GGG":e=mc(cc.Eras,Zl.Abbreviated);break;case"GGGG":e=mc(cc.Eras,Zl.Wide);break;case"GGGGG":e=mc(cc.Eras,Zl.Narrow);break;case"y":e=gc(lc.FullYear,1,0,!1,!0);break;case"yy":e=gc(lc.FullYear,2,0,!0,!0);break;case"yyy":e=gc(lc.FullYear,3,0,!1,!0);break;case"yyyy":e=gc(lc.FullYear,4,0,!1,!0);break;case"Y":e=_c(1);break;case"YY":e=_c(2,!0);break;case"YYY":e=_c(3);break;case"YYYY":e=_c(4);break;case"M":case"L":e=gc(lc.Month,1,1);break;case"MM":case"LL":e=gc(lc.Month,2,1);break;case"MMM":e=mc(cc.Months,Zl.Abbreviated);break;case"MMMM":e=mc(cc.Months,Zl.Wide);break;case"MMMMM":e=mc(cc.Months,Zl.Narrow);break;case"LLL":e=mc(cc.Months,Zl.Abbreviated,Gl.Standalone);break;case"LLLL":e=mc(cc.Months,Zl.Wide,Gl.Standalone);break;case"LLLLL":e=mc(cc.Months,Zl.Narrow,Gl.Standalone);break;case"w":e=bc(1);break;case"ww":e=bc(2);break;case"W":e=bc(1,!0);break;case"d":e=gc(lc.Date,1);break;case"dd":e=gc(lc.Date,2);break;case"c":case"cc":e=gc(lc.Day,1);break;case"ccc":e=mc(cc.Days,Zl.Abbreviated,Gl.Standalone);break;case"cccc":e=mc(cc.Days,Zl.Wide,Gl.Standalone);break;case"ccccc":e=mc(cc.Days,Zl.Narrow,Gl.Standalone);break;case"cccccc":e=mc(cc.Days,Zl.Short,Gl.Standalone);break;case"E":case"EE":case"EEE":e=mc(cc.Days,Zl.Abbreviated);break;case"EEEE":e=mc(cc.Days,Zl.Wide);break;case"EEEEE":e=mc(cc.Days,Zl.Narrow);break;case"EEEEEE":e=mc(cc.Days,Zl.Short);break;case"a":case"aa":case"aaa":e=mc(cc.DayPeriods,Zl.Abbreviated);break;case"aaaa":e=mc(cc.DayPeriods,Zl.Wide);break;case"aaaaa":e=mc(cc.DayPeriods,Zl.Narrow);break;case"b":case"bb":case"bbb":e=mc(cc.DayPeriods,Zl.Abbreviated,Gl.Standalone,!0);break;case"bbbb":e=mc(cc.DayPeriods,Zl.Wide,Gl.Standalone,!0);break;case"bbbbb":e=mc(cc.DayPeriods,Zl.Narrow,Gl.Standalone,!0);break;case"B":case"BB":case"BBB":e=mc(cc.DayPeriods,Zl.Abbreviated,Gl.Format,!0);break;case"BBBB":e=mc(cc.DayPeriods,Zl.Wide,Gl.Format,!0);break;case"BBBBB":e=mc(cc.DayPeriods,Zl.Narrow,Gl.Format,!0);break;case"h":e=gc(lc.Hours,1,-12);break;case"hh":e=gc(lc.Hours,2,-12);break;case"H":e=gc(lc.Hours,1);break;case"HH":e=gc(lc.Hours,2);break;case"m":e=gc(lc.Minutes,1);break;case"mm":e=gc(lc.Minutes,2);break;case"s":e=gc(lc.Seconds,1);break;case"ss":e=gc(lc.Seconds,2);break;case"S":e=gc(lc.FractionalSeconds,1);break;case"SS":e=gc(lc.FractionalSeconds,2);break;case"SSS":e=gc(lc.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=vc(ac.Short);break;case"ZZZZZ":e=vc(ac.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=vc(ac.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=vc(ac.Long);break;default:return null}return wc[t]=e,e}(t);l+=e?e(i,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function hc(t,e,n){const r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function dc(t,e){const n=function(t){return rs(t)[os.LocaleId]}(t);if(oc[n]=oc[n]||{},oc[n][e])return oc[n][e];let r="";switch(e){case"shortDate":r=Xl(t,Yl.Short);break;case"mediumDate":r=Xl(t,Yl.Medium);break;case"longDate":r=Xl(t,Yl.Long);break;case"fullDate":r=Xl(t,Yl.Full);break;case"shortTime":r=Jl(t,Yl.Short);break;case"mediumTime":r=Jl(t,Yl.Medium);break;case"longTime":r=Jl(t,Yl.Long);break;case"fullTime":r=Jl(t,Yl.Full);break;case"short":const e=dc(t,"shortTime"),n=dc(t,"shortDate");r=pc(Kl(t,Yl.Short),[e,n]);break;case"medium":const i=dc(t,"mediumTime"),o=dc(t,"mediumDate");r=pc(Kl(t,Yl.Medium),[i,o]);break;case"long":const s=dc(t,"longTime"),a=dc(t,"longDate");r=pc(Kl(t,Yl.Long),[s,a]);break;case"full":const l=dc(t,"fullTime"),c=dc(t,"fullDate");r=pc(Kl(t,Yl.Full),[l,c])}return r&&(oc[n][e]=r),r}function pc(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function fc(t,e,n="-",r,i){let o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));let s=String(t);for(;s.length<e;)s="0"+s;return r&&(s=s.substr(s.length-e)),o+s}function gc(t,e,n=0,r=!1,i=!1){return function(o,s){let a=function(t,e){switch(t){case lc.FullYear:return e.getFullYear();case lc.Month:return e.getMonth();case lc.Date:return e.getDate();case lc.Hours:return e.getHours();case lc.Minutes:return e.getMinutes();case lc.Seconds:return e.getSeconds();case lc.FractionalSeconds:return e.getMilliseconds();case lc.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,o);if((n>0||a>-n)&&(a+=n),t===lc.Hours)0===a&&-12===n&&(a=12);else if(t===lc.FractionalSeconds)return l=e,fc(a,3).substr(0,l);var l;const c=tc(s,Ql.MinusSign);return fc(a,e,c,r,i)}}function mc(t,e,n=Gl.Format,r=!1){return function(i,o){return function(t,e,n,r,i,o){switch(n){case cc.Months:return function(t,e,n){const r=rs(t),i=nc([r[os.MonthsFormat],r[os.MonthsStandalone]],e);return nc(i,n)}(e,i,r)[t.getMonth()];case cc.Days:return function(t,e,n){const r=rs(t),i=nc([r[os.DaysFormat],r[os.DaysStandalone]],e);return nc(i,n)}(e,i,r)[t.getDay()];case cc.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const t=function(t){const e=rs(t);return ec(e),(e[os.ExtraData][2]||[]).map(t=>"string"==typeof t?rc(t):[rc(t[0]),rc(t[1])])}(e),n=function(t,e,n){const r=rs(t);ec(r);const i=nc([r[os.ExtraData][0],r[os.ExtraData][1]],e)||[];return nc(i,n)||[]}(e,i,r),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,r=s>=e.hours&&a>=e.minutes,i=s<n.hours||s===n.hours&&a<n.minutes;if(e.hours<n.hours){if(r&&i)return!0}else if(r||i)return!0}else if(t.hours===s&&t.minutes===a)return!0;return!1});if(-1!==o)return n[o]}return function(t,e,n){const r=rs(t),i=nc([r[os.DayPeriodsFormat],r[os.DayPeriodsStandalone]],e);return nc(i,n)}(e,i,r)[s<12?0:1];case cc.Eras:return function(t,e){return nc(rs(t)[os.Eras],e)}(e,r)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(i,o,t,e,n,r)}}function vc(t){return function(e,n,r){const i=-1*r,o=tc(n,Ql.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case ac.Short:return(i>=0?"+":"")+fc(s,2,o)+fc(Math.abs(i%60),2,o);case ac.ShortGMT:return"GMT"+(i>=0?"+":"")+fc(s,1,o);case ac.Long:return"GMT"+(i>=0?"+":"")+fc(s,2,o)+":"+fc(Math.abs(i%60),2,o);case ac.Extended:return 0===r?"Z":(i>=0?"+":"")+fc(s,2,o)+":"+fc(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function yc(t){return hc(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function bc(t,e=!1){return function(n,r){let i;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();i=1+Math.floor((e+t)/7)}else{const t=yc(n),e=function(t){const e=hc(t,0,1).getDay();return hc(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),r=t.getTime()-e.getTime();i=1+Math.round(r/6048e5)}return fc(i,t,tc(r,Ql.MinusSign))}}function _c(t,e=!1){return function(n,r){return fc(yc(n).getFullYear(),t,tc(r,Ql.MinusSign),e)}}const wc={};function Cc(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function xc(t){return t instanceof Date&&!isNaN(t.valueOf())}class Sc{}let Ec=(()=>{class t extends Sc{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return rs(t)[os.PluralCase]}(e||this.locale)(t)){case Wl.Zero:return"zero";case Wl.One:return"one";case Wl.Two:return"two";case Wl.Few:return"few";case Wl.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(tr(Fa))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Oc(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(i)}return null}class Tc{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,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}}let kc=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}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(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Tc(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new Ac(t,n);e.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 o=new Ac(t,i);e.push(o)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ao(sa),Ao(Ks),Ao(Hs))},t.\u0275dir=Gt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Ac{constructor(t,e){this.record=t,this.view=e}}let Pc=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Mc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Ic("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ic("ngIfElse",t),this._elseTemplateRef=t,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)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ao(sa),Ao(Ks))},t.\u0275dir=Gt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Mc{constructor(){this.$implicit=null,this.ngIf=null}}function Ic(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${tt(e)}'.`)}let Rc=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",r,i){if(null==e||""===e||e!=e)return null;try{return uc(e,n,i||this.locale,r)}catch(o){throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${tt(t)}'`)}(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(Ao(Fa,16))},t.\u0275pipe=Zt({name:"date",type:t,pure:!0}),t})(),Dc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Bt({type:t}),t.\u0275inj=ht({providers:[{provide:Sc,useClass:Ec}]}),t})(),jc=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new Nc(tr(kl),window)}),t})();class Nc{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const t=r.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}r=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Vc(this.window.history)||Vc(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Vc(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Fc{}class Lc extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new Lc,Ol||(Ol=t)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(Hc=Hc||document.querySelector("base"),Hc?Hc.getAttribute("href"):null);return null==e?null:function(t){Uc=Uc||document.createElement("a"),Uc.setAttribute("href",t);const e=Uc.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){Hc=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Oc(document.cookie,t)}}let Uc,Hc=null;const $c=new Fn("TRANSITION_ID"),qc=[{provide:Aa,useFactory:function(t,e,n){return()=>{n.get(Pa).donePromise.then(()=>{const n=Tl();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[$c,kl,uo],multi:!0}];class zc{static init(){var t;t=new zc,al=t}addToWindow(t){Pt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Pt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Pt.getAllAngularRootElements=()=>t.getAllRootElements(),Pt.frameworkStabilizers||(Pt.frameworkStabilizers=[]),Pt.frameworkStabilizers.push(t=>{const e=Pt.getAllAngularTestabilities();let n=e.length,r=!1;const i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(i)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Tl().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let Bc=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Wc=new Fn("EventManagerPlugins");let Gc=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r<n.length;r++){const e=n[r];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}return t.\u0275fac=function(e){return new(e||t)(tr(Wc),tr(Qa))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Zc{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=Tl().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let Yc=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Qc=(()=>{class t extends Yc{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const r=this._doc.createElement("style");r.textContent=t,n.push(e.appendChild(r))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(Xc),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Xc))}}return t.\u0275fac=function(e){return new(e||t)(tr(kl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function Xc(t){Tl().remove(t)}const Jc={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/"},Kc=/%COMP%/g;function tu(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?tu(t,i,n):(i=i.replace(Kc,t),n.push(i))}return n}function eu(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let nu=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new ru(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Et.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new iu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case Et.ShadowDom:return new ou(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=tu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(tr(Gc),tr(Qc),tr(Ma))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class ru{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Jc[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const i=Jc[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=Jc[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(br.DashCase|br.Important)?t.style.setProperty(e,n,r&br.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&br.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,eu(n)):this.eventManager.addEventListener(t,e,eu(n))}}class iu extends ru{constructor(t,e,n,r){super(t),this.component=n;const i=tu(r+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(Kc,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Kc,r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class ou extends ru{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=tu(r.id,r.styles,[]);for(let o=0;o<i.length;o++){const t=document.createElement("style");t.textContent=i[o],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let su=(()=>{class t extends Zc{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(tr(kl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const au=["alt","control","meta","shift"],lu={"\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"},cu={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"},uu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let hu=(()=>{class t extends Zc{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Tl().onAndCancel(e,i.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=t._normalizeKey(n.pop());let o="";if(au.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&cu.hasOwnProperty(e)&&(e=cu[e]))}return lu[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),au.forEach(r=>{r!=n&&(0,uu[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return i=>{t.getEventFullKey(i)===e&&r.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(tr(kl))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const du=dl(xl,"browser",[{provide:ja,useValue:"browser"},{provide:Da,useValue:function(){Lc.makeCurrent(),zc.init()},multi:!0},{provide:kl,useFactory:function(){return function(t){pe=t}(document),document},deps:[]}]),pu=[[],{provide:Xi,useValue:"root"},{provide:mr,useFactory:function(){return new mr},deps:[]},{provide:Wc,useClass:su,multi:!0,deps:[kl,Qa,ja]},{provide:Wc,useClass:hu,multi:!0,deps:[kl]},[],{provide:nu,useClass:nu,deps:[Gc,Qc,Ma]},{provide:Ss,useExisting:nu},{provide:Yc,useExisting:Qc},{provide:Qc,useClass:Qc,deps:[kl]},{provide:rl,useClass:rl,deps:[Qa]},{provide:Gc,useClass:Gc,deps:[Wc,Qa]},{provide:Fc,useClass:Bc,deps:[]},[]];let fu=(()=>{class t{constructor(t){if(t)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:t,providers:[{provide:Ma,useValue:e.appId},{provide:$c,useExisting:Ma},qc]}}}return t.\u0275fac=function(e){return new(e||t)(tr(t,12))},t.\u0275mod=Bt({type:t}),t.\u0275inj=ht({providers:pu,imports:[Dc,El]}),t})();function gu(...t){let e=t[t.length-1];return E(e)?(t.pop(),D(t,e)):z(t)}"undefined"!=typeof window&&window;class mu extends x{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _;return this._value}next(t){super.next(this._value=t)}}class vu extends f{notifyNext(t,e,n,r,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class yu extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function bu(t,e,n,r,i=new yu(t,n,r)){if(!i.closed)return e instanceof y?e.subscribe(i):R(e)(i)}const _u={};class wu{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Cu(t,this.resultSelector))}}class Cu extends vu{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(_u),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(bu(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const r=this.values,i=this.toRespond?r[n]===_u?--this.toRespond:this.toRespond:0;r[n]=e,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const xu=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Su(...t){return q(1)(gu(...t))}const Eu=new y(t=>t.complete());function Ou(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):Eu}function Tu(t){return new y(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?j(n):Ou()).subscribe(e)})}function ku(t,e){return"function"==typeof e?n=>n.pipe(ku((n,r)=>j(t(n,r)).pipe(O((t,i)=>e(n,t,r,i))))):e=>e.lift(new Au(t))}class Au{constructor(t){this.project=t}call(t,e){return e.subscribe(new Pu(t,this.project))}}class Pu extends V{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new N(this),r=this.destination;r.add(n),this.innerSubscription=F(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Mu=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Iu(t){return e=>0===t?Ou():e.lift(new Ru(t))}class Ru{constructor(t){if(this.total=t,this.total<0)throw new Mu}call(t,e){return e.subscribe(new Du(t,this.total))}}class Du extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function ju(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Nu(t,e,n))}}class Nu{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new Vu(t,this.accumulator,this.seed,this.hasSeed))}}class Vu extends f{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Fu(t,e){return function(n){return n.lift(new Lu(t,e))}}class Lu{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Uu(t,this.predicate,this.thisArg))}}class Uu extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}function Hu(t){return function(e){const n=new $u(t),r=e.lift(n);return n.caught=r}}class $u{constructor(t){this.selector=t}call(t,e){return e.subscribe(new qu(t,this.selector,this.caught))}}class qu extends V{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new N(this);this.add(r);const i=F(n,r);i!==r&&this.add(i)}}}function zu(t,e){return L(t,e,1)}function Bu(t){return function(e){return 0===t?Ou():e.lift(new Wu(t))}}class Wu{constructor(t){if(this.total=t,this.total<0)throw new Mu}call(t,e){return e.subscribe(new Gu(t,this.total))}}class Gu extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;i<n;i++){const i=e++%n;t.next(r[i])}}t.complete()}}function Zu(t=Xu){return e=>e.lift(new Yu(t))}class Yu{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Qu(t,this.errorFactory))}}class Qu extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Xu(){return new xu}function Ju(t=null){return e=>e.lift(new Ku(t))}class Ku{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new th(t,this.defaultValue))}}class th extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function eh(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Fu((e,n)=>t(e,n,r)):v,Iu(1),n?Ju(e):Zu(()=>new xu))}function nh(){}function rh(t,e,n){return function(r){return r.lift(new ih(t,e,n))}}class ih{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new oh(t,this.nextOrObserver,this.error,this.complete))}}class oh extends f{constructor(t,e,n,i){super(t),this._tapNext=nh,this._tapError=nh,this._tapComplete=nh,this._tapError=n||nh,this._tapComplete=i||nh,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||nh,this._tapError=e.error||nh,this._tapComplete=e.complete||nh)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class sh{constructor(t){this.callback=t}call(t,e){return e.subscribe(new ah(t,this.callback))}}class ah extends f{constructor(t,e){super(t),this.add(new h(e))}}class lh{constructor(t,e){this.id=t,this.url=e}}class ch extends lh{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class uh extends lh{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class hh extends lh{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class dh extends lh{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ph extends lh{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fh extends lh{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gh extends lh{constructor(t,e,n,r,i){super(t,e),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 mh extends lh{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vh extends lh{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yh{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class bh{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _h{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wh{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ch{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xh{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sh{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Eh="primary";class Oh{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Th(t){return new Oh(t)}function kh(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ah(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const i={};for(let o=0;o<r.length;o++){const e=r[o],n=t[o];if(e.startsWith(":"))i[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function Ph(t,e){const n=t?Object.keys(t):void 0,r=e?Object.keys(e):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!Mh(t[i],e[i]))return!1;return!0}function Mh(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),r=[...e].sort();return n.every((t,e)=>r[e]===t)}return t===e}function Ih(t){return Array.prototype.concat.apply([],t)}function Rh(t){return t.length>0?t[t.length-1]:null}function Dh(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function jh(t){return Vo(t)?t:No(t)?j(Promise.resolve(t)):gu(t)}const Nh={exact:function t(e,n,r){if(!Bh(e.segments,n.segments))return!1;if(!Hh(e.segments,n.segments,r))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i],r))return!1}return!0},subset:Lh},Vh={exact:function(t,e){return Ph(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Mh(t[n],e[n]))},ignored:()=>!0};function Fh(t,e,n){return Nh[n.paths](t.root,e.root,n.matrixParams)&&Vh[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Lh(t,e,n){return Uh(t,e,e.segments,n)}function Uh(t,e,n,r){if(t.segments.length>n.length){const i=t.segments.slice(0,n.length);return!!Bh(i,n)&&!e.hasChildren()&&!!Hh(i,n,r)}if(t.segments.length===n.length){if(!Bh(t.segments,n))return!1;if(!Hh(t.segments,n,r))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!Lh(t.children[n],e.children[n],r))return!1}return!0}{const i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!Bh(t.segments,i)&&!!Hh(t.segments,i,r)&&!!t.children.primary&&Uh(t.children.primary,e,o,r)}}function Hh(t,e,n){return e.every((e,r)=>Vh[n](t[r].parameters,e.parameters))}class $h{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Th(this.queryParams)),this._queryParamMap}toString(){return Zh.serialize(this)}}class qh{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Dh(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Yh(this)}}class zh{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Th(this.parameters)),this._parameterMap}toString(){return nd(this)}}function Bh(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Wh{}class Gh{parse(t){const e=new ad(t);return new $h(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Qh(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Jh(e)}=${Jh(t)}`).join("&"):`${Jh(e)}=${Jh(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Zh=new Gh;function Yh(t){return t.segments.map(t=>nd(t)).join("/")}function Qh(t,e){if(!t.hasChildren())return Yh(t);if(e){const e=t.children.primary?Qh(t.children.primary,!1):"",n=[];return Dh(t.children,(t,e)=>{e!==Eh&&n.push(`${e}:${Qh(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return Dh(t.children,(t,r)=>{r===Eh&&(n=n.concat(e(t,r)))}),Dh(t.children,(t,r)=>{r!==Eh&&(n=n.concat(e(t,r)))}),n}(t,(e,n)=>n===Eh?[Qh(t.children.primary,!1)]:[`${n}:${Qh(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Yh(t)}/${e[0]}`:`${Yh(t)}/(${e.join("//")})`}}function Xh(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jh(t){return Xh(t).replace(/%3B/gi,";")}function Kh(t){return Xh(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function td(t){return decodeURIComponent(t)}function ed(t){return td(t.replace(/\+/g,"%20"))}function nd(t){return`${Kh(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Kh(t)}=${Kh(e[t])}`).join("")}`;var e}const rd=/^[^\/()?;=#]+/;function id(t){const e=t.match(rd);return e?e[0]:""}const od=/^[^=?&#]+/,sd=/^[^?&#]+/;class ad{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qh([],{}):new qh([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new qh(t,e)),n}parseSegment(){const t=id(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new zh(td(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=id(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=id(this.remaining);t&&(n=t,this.capture(n))}t[td(e)]=td(n)}parseQueryParam(t){const e=function(t){const e=t.match(od);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(sd);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=ed(e),i=ed(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(i)}else t[r]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=id(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Eh);const o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new qh([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class ld{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=cd(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=cd(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=ud(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return ud(t,this._root).map(t=>t.value)}}function cd(t,e){if(t===e.value)return e;for(const n of e.children){const e=cd(t,n);if(e)return e}return null}function ud(t,e){if(t===e.value)return[e];for(const n of e.children){const r=ud(t,n);if(r.length)return r.unshift(e),r}return[]}class hd{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function dd(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class pd extends ld{constructor(t,e){super(t),this.snapshot=e,bd(this,t)}toString(){return this.snapshot.toString()}}function fd(t,e){const n=function(t,e){const n=new vd([],{},{},"",{},Eh,e,null,t.root,-1,{});return new yd("",new hd(n,[]))}(t,e),r=new mu([new zh("",{})]),i=new mu({}),o=new mu({}),s=new mu({}),a=new mu(""),l=new gd(r,i,s,a,o,Eh,e,n.root);return l.snapshot=n.root,new pd(new hd(l,[]),n)}class gd{constructor(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,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(O(t=>Th(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(O(t=>Th(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function md(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class vd{constructor(t,e,n,r,i,o,s,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=Th(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Th(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class yd extends ld{constructor(t,e){super(e),this.url=t,bd(this,e)}toString(){return _d(this._root)}}function bd(t,e){e.value._routerState=t,e.children.forEach(e=>bd(t,e))}function _d(t){const e=t.children.length>0?` { ${t.children.map(_d).join(", ")} } `:"";return`${t.value}${e}`}function wd(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Ph(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Ph(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!Ph(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Ph(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Cd(t,e){var n,r;return Ph(t.params,e.params)&&Bh(n=t.url,r=e.url)&&n.every((t,e)=>Ph(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Cd(t.parent,e.parent))}function xd(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const i=function(t,e,n){return e.children.map(e=>{for(const r of n.children)if(t.shouldReuseRoute(e.value,r.value.snapshot))return xd(t,e,r);return xd(t,e)})}(t,e,n);return new hd(r,i)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return Sd(e,t),t}}const n=new gd(new mu((r=e.value).url),new mu(r.params),new mu(r.queryParams),new mu(r.fragment),new mu(r.data),r.outlet,r.component,r),i=e.children.map(e=>xd(t,e));return new hd(n,i)}var r}function Sd(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)Sd(t.children[n],e.children[n])}function Ed(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Od(t){return"object"==typeof t&&null!=t&&t.outlets}function Td(t,e,n,r,i){let o={};return r&&Dh(r,(t,e)=>{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new $h(n.root===t?e:kd(n.root,t,e),o,i)}function kd(t,e,n){const r={};return Dh(t.children,(t,i)=>{r[i]=t===e?n:kd(t,e,n)}),new qh(t.segments,r)}class Ad{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Ed(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(Od);if(r&&r!==Rh(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Pd{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Md(t,e,n){if(t||(t=new qh([],{})),0===t.segments.length&&t.hasChildren())return Id(t,e,n);const r=function(t,e,n){let r=0,i=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return o;const e=t.segments[i],s=n[r];if(Od(s))break;const a=`${s}`,l=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Nd(a,l,e))return o;r+=2}else{if(!Nd(a,{},e))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const e=new qh(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new qh(t.segments.slice(r.pathIndex),t.children),Id(e,0,i)}return r.match&&0===i.length?new qh(t.segments,{}):r.match&&!t.hasChildren()?Rd(t,e,n):r.match?Id(t,0,i):Rd(t,e,n)}function Id(t,e,n){if(0===n.length)return new qh(t.segments,{});{const r=function(t){return Od(t[0])?t[0].outlets:{[Eh]:t}}(n),i={};return Dh(r,(n,r)=>{"string"==typeof n&&(n=[n]),null!==n&&(i[r]=Md(t.children[r],e,n))}),Dh(t.children,(t,e)=>{void 0===r[e]&&(i[e]=t)}),new qh(t.segments,i)}}function Rd(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i<n.length;){const o=n[i];if(Od(o)){const t=Dd(o.outlets);return new qh(r,t)}if(0===i&&Ed(n[0])){r.push(new zh(t.segments[e].path,jd(n[0]))),i++;continue}const s=Od(o)?o.outlets.primary:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&Ed(a)?(r.push(new zh(s,jd(a))),i+=2):(r.push(new zh(s,{})),i++)}return new qh(r,{})}function Dd(t){const e={};return Dh(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Rd(new qh([],{}),0,t))}),e}function jd(t){const e={};return Dh(t,(t,n)=>e[n]=`${t}`),e}function Nd(t,e,n){return t==n.path&&Ph(e,n.parameters)}class Vd{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),wd(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=dd(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),Dh(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,i=dd(t);for(const o of Object.keys(i))this.deactivateRouteAndItsChildren(i[o],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const r=dd(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new xh(t.value.snapshot))}),t.children.length&&this.forwardEvent(new wh(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(wd(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Fd(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),i=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=i,e.outlet&&e.outlet.activateWith(r,i),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Fd(t){wd(t.value),t.children.forEach(Fd)}class Ld{constructor(t,e){this.routes=t,this.module=e}}function Ud(t){return"function"==typeof t}function Hd(t){return t instanceof $h}const $d=Symbol("INITIAL_VALUE");function qd(){return ku(t=>function(...t){let e,n;return E(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),z(t,n).lift(new wu(e))}(t.map(t=>t.pipe(Iu(1),function(...t){const e=t[t.length-1];return E(e)?(t.pop(),n=>Su(t,n,e)):e=>Su(t,e)}($d)))).pipe(ju((t,e)=>{let n=!1;return e.reduce((t,r,i)=>{if(t!==$d)return t;if(r===$d&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||Hd(r))return r}return t},t)},$d),Fu(t=>t!==$d),O(t=>Hd(t)?t:!0===t),Iu(1)))}let zd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ht({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Do(0,"router-outlet")},directives:function(){return[Fp]},encapsulation:2}),t})();function Bd(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];Wd(r,Gd(e,r))}}function Wd(t,e){t.children&&Bd(t.children,e)}function Gd(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Zd(t){const e=t.children&&t.children.map(Zd),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==Eh&&(n.component=zd),n}function Yd(t){return t.outlet||Eh}function Qd(t,e){const n=t.filter(t=>Yd(t)===e);return n.push(...t.filter(t=>Yd(t)!==e)),n}const Xd={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Jd(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Xd):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||Ah)(n,t,e);if(!i)return Object.assign({},Xd);const o={};Dh(i.posParams,(t,e)=>{o[e]=t.path});const s=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function Kd(t,e,n,r,i="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>tp(t,e,n)&&Yd(n)!==Eh)}(t,n,r)){const i=new qh(e,function(t,e,n,r){const i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const o of n)if(""===o.path&&Yd(o)!==Eh){const n=new qh([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,i[Yd(o)]=n}return i}(t,e,r,new qh(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>tp(t,e,n))}(t,n,r)){const o=new qh(t.segments,function(t,e,n,r,i,o){const s={};for(const a of r)if(tp(t,n,a)&&!i[Yd(a)]){const n=new qh([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Yd(a)]=n}return Object.assign(Object.assign({},i),s)}(t,e,n,r,t.children,i));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new qh(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function tp(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function ep(t,e,n,r){return!!(Yd(t)===r||r!==Eh&&tp(e,n,t))&&("**"===t.path||Jd(e,t,n).matched)}function np(t,e,n){return 0===e.length&&!t.children[n]}class rp{constructor(t){this.segmentGroup=t||null}}class ip{constructor(t){this.urlTree=t}}function op(t){return new y(e=>e.error(new rp(t)))}function sp(t){return new y(e=>e.error(new ip(t)))}function ap(t){return new y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class lp{constructor(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(ra)}apply(){const t=Kd(this.urlTree.root,[],[],this.config).segmentGroup,e=new qh(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Eh).pipe(O(t=>this.createUrlTree(cp(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Hu(t=>{if(t instanceof ip)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof rp)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Eh).pipe(O(e=>this.createUrlTree(cp(e),t.queryParams,t.fragment))).pipe(Hu(t=>{if(t instanceof rp)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new qh([],{[Eh]:t}):t;return new $h(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(O(t=>new qh([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){const r=[];for(const i of Object.keys(n.children))"primary"===i?r.unshift(i):r.push(i);return j(r).pipe(zu(r=>{const i=n.children[r],o=Qd(e,r);return this.expandSegmentGroup(t,o,i,r).pipe(O(t=>({segment:t,outlet:r})))}),ju((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Fu((e,n)=>t(e,n,r)):v,Bu(1),n?Ju(e):Zu(()=>new xu))}())}expandSegment(t,e,n,r,i,o){return j(n).pipe(zu(s=>this.expandSegmentAgainstRoute(t,e,n,s,r,i,o).pipe(Hu(t=>{if(t instanceof rp)return gu(null);throw t}))),eh(t=>!!t),Hu((t,n)=>{if(t instanceof xu||"EmptyError"===t.name){if(np(e,r,i))return gu(new qh([],{}));throw new rp(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,r,i,o,s){return ep(r,e,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):op(e):op(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?sp(i):this.lineralizeSegments(n,i).pipe(L(n=>{const i=new qh(n,{});return this.expandSegment(t,i,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){const{matched:s,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Jd(e,r,i);if(!s)return op(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?sp(u):this.lineralizeSegments(r,u).pipe(L(r=>this.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)))}matchSegmentAgainstRoute(t,e,n,r,i){if("**"===n.path)return n.loadChildren?(n._loadedConfig?gu(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(O(t=>(n._loadedConfig=t,new qh(r,{})))):gu(new qh(r,{}));const{matched:o,consumedSegments:s,lastChild:a}=Jd(e,n,r);if(!o)return op(e);const l=r.slice(a);return this.getChildConfig(t,n,r).pipe(L(t=>{const r=t.module,o=t.routes,{segmentGroup:a,slicedSegments:c}=Kd(e,s,l,o),u=new qh(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(r,o,u).pipe(O(t=>new qh(s,t)));if(0===o.length&&0===c.length)return gu(new qh(s,{}));const h=Yd(n)===i;return this.expandSegment(r,u,o,c,h?Eh:i,!0).pipe(O(t=>new qh(s.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?gu(new Ld(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?gu(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(L(n=>n?this.configLoader.load(t.injector,e).pipe(O(t=>(e._loadedConfig=t,t))):function(t){return new y(e=>e.error(kh(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):gu(new Ld([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?gu(r.map(r=>{const i=t.get(r);let o;if(function(t){return t&&Ud(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!Ud(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return jh(o)})).pipe(qd(),rh(t=>{if(!Hd(t))return;const e=kh(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),O(t=>!0===t)):gu(!0)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return gu(n);if(r.numberOfChildren>1||!r.children.primary)return ap(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const i=this.createSegmentGroup(t,e.root,n,r);return new $h(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Dh(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const i=this.createSegments(t,e.segments,n,r);let o={};return Dh(e.children,(e,i)=>{o[i]=this.createSegmentGroup(t,e,n,r)}),new qh(i,o)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function cp(t){const e={};for(const n of Object.keys(t.children)){const r=cp(t.children[n]);(r.segments.length>0||r.hasChildren())&&(e[n]=r)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new qh(t.segments.concat(e.segments),e.children)}return t}(new qh(t.segments,e))}class up{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class hp{constructor(t,e){this.component=t,this.route=e}}function dp(t,e,n){const r=t._root;return fp(r,e?e._root:null,n,[r.value])}function pp(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function fp(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=dd(e);return t.children.forEach(t=>{!function(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Bh(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Bh(t.url,e.url)||!Ph(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cd(t,e)||!Ph(t.queryParams,e.queryParams);case"paramsChange":default:return!Cd(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new up(r)):(o.data=s.data,o._resolvedData=s._resolvedData),fp(t,e,o.component?a?a.children:null:n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new hp(a.outlet.component,s))}else s&&gp(e,a,i),i.canActivateChecks.push(new up(r)),fp(t,null,o.component?a?a.children:null:n,r,i)}(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),Dh(o,(t,e)=>gp(t,n.getContext(e),i)),i}function gp(t,e,n){const r=dd(t),i=t.value;Dh(r,(t,r)=>{gp(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new hp(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}class mp{}function vp(t){return new y(e=>e.error(t))}class yp{constructor(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}recognize(){const t=Kd(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Eh);if(null===e)return null;const n=new vd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Eh,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new hd(n,e),i=new yd(this.url,r);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(t){const e=t.value,n=md(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const i of Object.keys(e.children)){const r=e.children[i],o=Qd(t,i),s=this.processSegmentGroup(o,r,i);if(null===s)return null;n.push(...s)}const r=_p(n);return r.sort((t,e)=>t.value.outlet===Eh?-1:e.value.outlet===Eh?1:t.value.outlet.localeCompare(e.value.outlet)),r}processSegment(t,e,n,r){for(const i of t){const t=this.processSegmentAgainstRoute(i,e,n,r);if(null!==t)return t}return np(e,n,r)?[]:null}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo||!ep(t,e,n,r))return null;let i,o=[],s=[];if("**"===t.path){const r=n.length>0?Rh(n).parameters:{};i=new vd(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xp(t),Yd(t),t.component,t,wp(e),Cp(e)+n.length,Sp(t))}else{const r=Jd(e,t,n);if(!r.matched)return null;o=r.consumedSegments,s=n.slice(r.lastChild),i=new vd(o,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xp(t),Yd(t),t.component,t,wp(e),Cp(e)+o.length,Sp(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Kd(e,o,s,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new hd(i,t)]}if(0===a.length&&0===c.length)return[new hd(i,[])];const u=Yd(t)===r,h=this.processSegment(a,l,c,u?Eh:r);return null===h?null:[new hd(i,h)]}}function bp(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function _p(t){const e=[],n=new Set;for(const r of t){if(!bp(r)){e.push(r);continue}const t=e.find(t=>r.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...r.children),n.add(t)):e.push(r)}for(const r of n){const t=_p(r.children);e.push(new hd(r.value,t))}return e.filter(t=>!n.has(t))}function wp(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Cp(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function xp(t){return t.data||{}}function Sp(t){return t.resolve||{}}function Ep(t){return ku(e=>{const n=t(e);return n?j(n).pipe(O(()=>e)):gu(e)})}class Op extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Tp=new Fn("ROUTES");class kp{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(O(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new Ld(Ih(r.injector.get(Tp,void 0,bt.Self|bt.Optional)).map(Zd),r)}),Hu(t=>{throw e._loader$=void 0,t}));return e._loader$=new Z(n,()=>new x).pipe(B()),e._loader$}loadModuleFactory(t){return"string"==typeof t?j(this.loader.load(t)):jh(t()).pipe(L(t=>t instanceof ia?gu(t):j(this.compiler.compileModuleAsync(t))))}}class Ap{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Pp,this.attachRef=null}}class Pp{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Ap,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Mp{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Ip(t){throw t}function Rp(t,e,n){return e.parse("/")}function Dp(t,e){return gu(null)}const jp={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Np={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Vp=(()=>{class t{constructor(t,e,n,r,i,o,s,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new x,this.errorHandler=Ip,this.malformedUriErrorHandler=Rp,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Dp,afterPreactivation:Dp},this.urlHandlingStrategy=new Mp,this.routeReuseStrategy=new Op,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=i.get(ra),this.console=i.get(Va);const l=i.get(Qa);this.isNgZoneEnabled=l instanceof Qa&&Qa.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new $h(new qh([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new kp(o,s,t=>this.triggerEvent(new yh(t)),t=>this.triggerEvent(new bh(t))),this.routerState=fd(this.currentUrlTree,this.rootComponentType),this.transitions=new mu({id:0,targetPageId: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()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe(Fu(t=>0!==t.id),O(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),ku(t=>{let n=!1,r=!1;return gu(t).pipe(rh(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ku(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return gu(t).pipe(ku(t=>{const n=this.transitions.getValue();return e.next(new ch(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Eu:Promise.resolve(t)}),function(t,e,n,r){return ku(i=>function(t,e,n,r,i){return new lp(t,e,n,r,i).apply()}(t,e,n,i.extractedUrl,r).pipe(O(t=>Object.assign(Object.assign({},i),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),rh(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,i){return L(o=>function(t,e,n,r,i="emptyOnly",o="legacy"){try{const s=new yp(t,e,n,r,i,o).recognize();return null===s?vp(new mp):gu(s)}catch(s){return vp(s)}}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),r,i).pipe(O(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),rh(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new ph(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:o,extras:s}=t,a=new ch(n,this.serializeUrl(r),i,o);e.next(a);const l=fd(r,this.rootComponentType).snapshot;return gu(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Eu}),Ep(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),rh(t=>{const e=new fh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),O(t=>Object.assign(Object.assign({},t),{guards:dp(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return L(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?gu(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return j(t).pipe(L(t=>function(t,e,n,r,i){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?gu(o.map(o=>{const s=pp(o,e,i);let a;if(function(t){return t&&Ud(t.canDeactivate)}(s))a=jh(s.canDeactivate(t,e,n,r));else{if(!Ud(s))throw new Error("Invalid CanDeactivate guard");a=jh(s(t,e,n,r))}return a.pipe(eh())})).pipe(qd()):gu(!0)}(t.component,t.route,n,e,r)),eh(t=>!0!==t,!0))}(s,r,i,t).pipe(L(n=>n&&"boolean"==typeof n?function(t,e,n,r){return j(e).pipe(zu(e=>Su(function(t,e){return null!==t&&e&&e(new _h(t)),gu(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new Ch(t)),gu(!0)}(e.route,r),function(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Tu(()=>gu(e.guards.map(i=>{const o=pp(i,e.node,n);let s;if(function(t){return t&&Ud(t.canActivateChild)}(o))s=jh(o.canActivateChild(r,t));else{if(!Ud(o))throw new Error("Invalid CanActivateChild guard");s=jh(o(r,t))}return s.pipe(eh())})).pipe(qd())));return gu(i).pipe(qd())}(t,e.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?gu(r.map(r=>Tu(()=>{const i=pp(r,e,n);let o;if(function(t){return t&&Ud(t.canActivate)}(i))o=jh(i.canActivate(e,t));else{if(!Ud(i))throw new Error("Invalid CanActivate guard");o=jh(i(e,t))}return o.pipe(eh())}))).pipe(qd()):gu(!0)}(t,e.route,n))),eh(t=>!0!==t,!0))}(r,o,t,e):gu(n)),O(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),rh(t=>{if(Hd(t.guardsResult)){const e=kh(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new gh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Fu(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),Ep(t=>{if(t.guards.canActivateChecks.length)return gu(t).pipe(rh(t=>{const e=new mh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),ku(t=>{let e=!1;return gu(t).pipe((n=this.paramsInheritanceStrategy,r=this.ngModule.injector,L(t=>{const{targetSnapshot:e,guards:{canActivateChecks:i}}=t;if(!i.length)return gu(t);let o=0;return j(i).pipe(zu(t=>function(t,e,n,r){return function(t,e,n,r){const i=Object.keys(t);if(0===i.length)return gu({});const o={};return j(i).pipe(L(i=>function(t,e,n,r){const i=pp(t,e,r);return jh(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(rh(t=>{o[i]=t}))),Bu(1),L(()=>Object.keys(o).length===i.length?gu(o):Eu))}(t._resolve,t,e,r).pipe(O(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),md(t,n).resolve),null)))}(t.route,e,n,r)),rh(()=>o++),Bu(1),L(e=>o===i.length?gu(t):Eu))})),rh({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}));var n,r}),rh(t=>{const e=new vh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Ep(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),O(t=>{const e=function(t,e,n){const r=xd(t,e._root,n?n._root:void 0);return new pd(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),rh(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(o=this.rootContexts,s=this.routeReuseStrategy,a=t=>this.triggerEvent(t),O(t=>(new Vd(s,t.targetRouterState,t.currentRouterState,a).activate(o),t))),rh({next(){n=!0},complete(){n=!0}}),(i=()=>{if(!n&&!r){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}this.currentNavigation=null},t=>t.lift(new sh(i))),Hu(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=Hd(n.url);r||(this.navigated=!0,this.restoreHistory(t,!0));const i=new hh(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(i),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const r=new dh(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(o){t.reject(o)}}var i;return Eu}));var i,o,s,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:r}=e,i={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(i.state=t)}this.scheduleNavigation(r,t,n,i)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Bd(t),this.config=t.map(Zd),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:i,queryParamsHandling:o,preserveFragment:s}=e,a=n||this.routerState.root,l=s?this.currentUrlTree.fragment:i;let c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,r,i){if(0===n.length)return Td(e.root,e.root,e,r,i);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Ad(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return Dh(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new Ad(n,e,r)}(n);if(o.toRoot())return Td(e.root,new qh([],{}),e,r,i);const s=function(t,e,n){if(t.isAbsolute)return new Pd(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Pd(t,t===e.root,0)}const r=Ed(t.commands[0])?0:1;return function(t,e,n){let r=t,i=e,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new Pd(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?Id(s.segmentGroup,s.index,o.commands):Md(s.segmentGroup,s.index,o.commands);return Td(s.segmentGroup,a,e,r,i)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Hd(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){let n;if(n=!0===e?Object.assign({},jp):!1===e?Object.assign({},Np):e,Hd(t))return Fh(this.currentUrlTree,t,n);const r=this.parseUrl(t);return Fh(this.currentUrlTree,r,n)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new uh(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,i){var o,s;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l="imperative"!==e&&"imperative"===(null==a?void 0:a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;i?(u=i.resolve,h=i.reject,d=i.promise):d=new Promise((t,e)=>{u=t,h=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(s=this.browserPageId)&&void 0!==s?s:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),r=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",r):this.location.go(n,"",r)}restoreHistory(t,e=!1){var n,r;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new hh(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(tr(Un),tr(Wh),tr(Pp),tr(ql),tr(uo),tr(yl),tr(Ga),tr(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Fp=(()=>{class t{constructor(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ta,this.deactivateEvents=new Ta,this.name=r||Eh,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new Lp(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Ao(Pp),Ao(sa),Ao(bs),("name",function(t,e){const n=t.attrs;if(n){const t=n.length;let r=0;for(;r<t;){const i=n[r];if(cn(i))break;if(0===i)r+=2;else if("number"==typeof i)for(r++;r<t&&"string"==typeof n[r];)r++;else{if(i===e)return n[r+1];r+=2}}}return null}(Me(),"name")),Ao(Zs))},t.\u0275dir=Gt({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Lp{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===gd?this.route:t===Pp?this.childContexts:this.parent.get(t,e)}}class Up{}class Hp{preload(t,e){return gu(null)}}let $p=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new kp(e,n,e=>t.triggerEvent(new yh(e)),e=>t.triggerEvent(new bh(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Fu(t=>t instanceof uh),zu(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(ra);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return j(n).pipe(q(),O(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?gu(e._loadedConfig):this.loader.load(t.injector,e)).pipe(L(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(tr(Vp),tr(yl),tr(Ga),tr(uo),tr(Up))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),qp=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,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(t=>{t instanceof ch?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof uh&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Sh&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Sh(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(tr(Vp),tr(jc),tr(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const zp=new Fn("ROUTER_CONFIGURATION"),Bp=new Fn("ROUTER_FORROOT_GUARD"),Wp=[ql,{provide:Wh,useClass:Gh},{provide:Vp,useFactory:function(t,e,n,r,i,o,s,a={},l,c){const u=new Vp(null,t,e,n,r,i,o,Ih(s));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Wh,Pp,ql,uo,yl,Ga,Tp,zp,[class{},new ir],[class{},new ir]]},Pp,{provide:gd,useFactory:function(t){return t.routerState.root},deps:[Vp]},{provide:yl,useClass:wl},$p,Hp,class{preload(t,e){return e().pipe(Hu(()=>gu(null)))}},{provide:zp,useValue:{enableTracing:!1}}];function Gp(){return new hl("Router",Vp)}let Zp=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Wp,Jp(e),{provide:Bp,useFactory:Xp,deps:[[Vp,new ir,new or]]},{provide:zp,useValue:n||{}},{provide:Fl,useFactory:Qp,deps:[Al,[new rr(Ul),new ir],zp]},{provide:qp,useFactory:Yp,deps:[Vp,jc,zp]},{provide:Up,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Hp},{provide:hl,multi:!0,useFactory:Gp},[Kp,{provide:Aa,multi:!0,useFactory:tf,deps:[Kp]},{provide:nf,useFactory:ef,deps:[Kp]},{provide:Na,multi:!0,useExisting:nf}]]}}static forChild(e){return{ngModule:t,providers:[Jp(e)]}}}return t.\u0275fac=function(e){return new(e||t)(tr(Bp,8),tr(Vp,8))},t.\u0275mod=Bt({type:t}),t.\u0275inj=ht({}),t})();function Yp(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new qp(t,e,n)}function Qp(t,e,n={}){return n.useHash?new $l(t,e):new Hl(t,e)}function Xp(t){return"guarded"}function Jp(t){return[{provide:Ln,multi:!0,useValue:t},{provide:Tp,multi:!0,useValue:t}]}let Kp=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new x}appInitializer(){return this.injector.get(Ml,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Vp),r=this.injector.get(zp);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?gu(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(zp),n=this.injector.get($p),r=this.injector.get(qp),i=this.injector.get(Vp),o=this.injector.get(ml);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(tr(uo))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function tf(t){return t.appInitializer.bind(t)}function ef(t){return t.bootstrapListener.bind(t)}const nf=new Fn("Router Initializer");class rf{}class of{}class sf{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof sf?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new sf;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof sf?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class af{encodeKey(t){return lf(t)}encodeValue(t){return lf(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function lf(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function cf(t){return`${t}`}class uf{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new af,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const r=t.indexOf("="),[i,o]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],s=n.get(i)||[];s.push(o),n.set(i,s)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new uf({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(cf(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(cf(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class hf{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function df(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function pf(t){return"undefined"!=typeof Blob&&t instanceof Blob}function ff(t){return"undefined"!=typeof FormData&&t instanceof FormData}class gf{constructor(t,e,n,r){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new sf),this.context||(this.context=new hf),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new uf,this.urlWithParams=e}serializeBody(){return null===this.body?null:df(this.body)||pf(this.body)||ff(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof uf?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||ff(this.body)?null:pf(this.body)?this.body.type||null:df(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof uf?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let l=t.headers||this.headers,c=t.params||this.params;const u=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new gf(n,r,o,{params:c,headers:l,context:u,reportProgress:a,responseType:i,withCredentials:s})}}var mf=(()=>((mf=mf||{})[mf.Sent=0]="Sent",mf[mf.UploadProgress=1]="UploadProgress",mf[mf.ResponseHeader=2]="ResponseHeader",mf[mf.DownloadProgress=3]="DownloadProgress",mf[mf.Response=4]="Response",mf[mf.User=5]="User",mf))();class vf{constructor(t,e=200,n="OK"){this.headers=t.headers||new sf,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class yf extends vf{constructor(t={}){super(t),this.type=mf.ResponseHeader}clone(t={}){return new yf({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class bf extends vf{constructor(t={}){super(t),this.type=mf.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new bf({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class _f extends vf{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function wf(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Cf=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof gf)r=t;else{let i,o;i=n.headers instanceof sf?n.headers:new sf(n.headers),n.params&&(o=n.params instanceof uf?n.params:new uf({fromObject:n.params})),r=new gf(t,e,void 0!==n.body?n.body:null,{headers:i,context:n.context,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=gu(r).pipe(zu(t=>this.handler.handle(t)));if(t instanceof gf||"events"===n.observe)return i;const o=i.pipe(Fu(t=>t instanceof bf));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(O(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe(O(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe(O(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe(O(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new uf).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,wf(n,e))}post(t,e,n={}){return this.request("POST",t,wf(n,e))}put(t,e,n={}){return this.request("PUT",t,wf(n,e))}}return t.\u0275fac=function(e){return new(e||t)(tr(rf))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class xf{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Sf=new Fn("HTTP_INTERCEPTORS");let Ef=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Of=/^\)\]\}',?\n/;let Tf=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let i=null;const o=()=>{if(null!==i)return i;const e=1223===n.status?204:n.status,r=n.statusText||"OK",o=new sf(n.getAllResponseHeaders()),s=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return i=new yf({headers:o,status:e,statusText:r,url:s}),i},s=()=>{let{headers:r,status:i,statusText:s,url:a}=o(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Of,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new bf({body:l,headers:r,status:i,statusText:s,url:a||void 0})),e.complete()):e.error(new _f({error:l,headers:r,status:i,statusText:s,url:a||void 0}))},a=t=>{const{url:r}=o(),i=new _f({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(i)};let l=!1;const c=r=>{l||(e.next(o()),l=!0);let i={type:mf.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===t.responseType&&n.responseText&&(i.partialText=n.responseText),e.next(i)},u=t=>{let n={type:mf.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:mf.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",s),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(tr(Fc))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const kf=new Fn("XSRF_COOKIE_NAME"),Af=new Fn("XSRF_HEADER_NAME");class Pf{}let Mf=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Oc(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(tr(kl),tr(ja),tr(kf))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),If=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(tr(Pf),tr(Af))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Rf=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Sf,[]);this.chain=t.reduceRight((t,e)=>new xf(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(tr(of),tr(uo))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Df=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:If,useClass:Ef}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:kf,useValue:e.cookieName}:[],e.headerName?{provide:Af,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Bt({type:t}),t.\u0275inj=ht({providers:[If,{provide:Sf,useExisting:If,multi:!0},{provide:Pf,useClass:Mf},{provide:kf,useValue:"XSRF-TOKEN"},{provide:Af,useValue:"X-XSRF-TOKEN"}]}),t})(),jf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Bt({type:t}),t.\u0275inj=ht({providers:[Cf,{provide:rf,useClass:Rf},Tf,{provide:of,useExisting:Tf}],imports:[[Df.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();function Nf(t,e){return new y(e?n=>e.schedule(Vf,0,{error:t,subscriber:n}):e=>e.error(t))}function Vf({error:t,subscriber:e}){e.error(t)}const Ff="https://properke.herokuapp.com/api/";new sf({"Content-Type":"application/json"});let Lf=(()=>{class t{constructor(t,e){this.http=t,this.router=e,this.loggedIn=new mu(!1),this.authUrl=Ff,this.headers=(new sf).set("Content-Type","application/json"),this.currentUser={}}signUp(t){return this.http.post(this.authUrl+"register",t)}signIn(t){return this.http.post(this.authUrl+"token/obtain/",t).subscribe(t=>{console.log(t),console.log(t.access),localStorage.setItem("access",t.access),this.getUserProfile().subscribe(t=>{this.currentUser=t}),this.router.navigate(["home"])})}getToken(){return localStorage.getItem("access")}get isLoggedIn(){return null!=localStorage.getItem("access")}logout(){null==localStorage.removeItem("access")&&this.router.navigate(["login"])}getUserProfile(){return this.http.get(this.authUrl+"profile/",{headers:this.headers})}handleError(t){let e="";return e=t.error instanceof ErrorEvent?t.error.message:`Error code ${t.status} message: ${t.message}`,Nf(e)}loginUser(t){return this.http.post(this.authUrl+"login",t)}registerUser(t){return this.http.post(`${this.authUrl}register`,t)}}return t.\u0275fac=function(e){return new(e||t)(tr(Cf),tr(Vp))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Uf=(()=>{class t{constructor(t,e){this.http=t,this.router=e,this.authUrl=Ff,this.headers=(new sf).set("Content-Type","application/json"),this.currentUser={}}signUp(t){return this.http.post(`${this.authUrl}register`,t).pipe(Hu(this.handleError))}signIn(t){return this.http.post(`${this.authUrl}token/obtain/`,t).subscribe(t=>{localStorage.setItem("access",t.access),this.router.navigate(["home"])})}getToken(){return localStorage.getItem("access")}get isLoggedIn(){return null!==localStorage.getItem("access")}Logout(){null==localStorage.removeItem("access")&&this.router.navigate(["landing"])}getUserProfile(){return this.http.get(this.authUrl+"profile/",{headers:this.headers})}getCurrentUser(){return this.http.get(this.authUrl+"current_user",{headers:this.headers})}updateProfile(){return this.http.put(this.authUrl+"profile/",{headers:this.headers})}handleError(t){let e="";return e=t.error instanceof ErrorEvent?t.error.message:`Error Code: ${t.status}\nMessage: ${t.message}`,Nf(e)}}return t.\u0275fac=function(e){return new(e||t)(tr(Cf),tr(Vp))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Hf=(()=>{class t{constructor(t,e,n){this.authService=t,this.authBackup=e,this.router=n}canActivate(t,e){return!0!==this.authBackup.isLoggedIn&&(window.alert("Access not allowed!"),this.router.navigate(["login"])),!0}}return t.\u0275fac=function(e){return new(e||t)(tr(Lf),tr(Uf),tr(Vp))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var $f=n(704);class qf{constructor(t){this.category_name=t}}let zf=(()=>{class t{constructor(t){this.http=t,this.APIUrl=Ff}getAllMotivations(){return this.http.get(this.APIUrl+"motivation/")}getSingleMotivation(t){return this.http.get(this.APIUrl+`motivation/mot-id/${t}/`)}filterByCategory(t){return this.http.get(this.APIUrl+`mot?category=${t}`)}postMotivation(t,e){const n=new FormData;return n.append("id",t),n.append("files",e,e.name),this.http.post(this.APIUrl+"motivation/",t)}getAllCategories(){return this.http.get(this.APIUrl+"category/")}searchMotivation(t){return this.http.get(this.APIUrl+"api/search/?search="+t)}}return t.\u0275fac=function(e){return new(e||t)(tr(Cf))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Bf=(()=>{class t{constructor(t){this.http=t,this.url=Ff}getAllCategories(){return this.http.get(this.url+"category/")}addCategory(t){return this.http.post(this.url+"category/",t)}}return t.\u0275fac=function(e){return new(e||t)(tr(Cf))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Wf=(()=>{class t{constructor(t){this.http=t,this.usersUrl=Ff}getUsers(){return this.http.get(this.usersUrl+"users")}}return t.\u0275fac=function(e){return new(e||t)(tr(Cf))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Gf=(()=>{class t{constructor(t){this.http=t,this.APIUrl=Ff}getAllMotivationReviews(t){return this.http.get(this.APIUrl+`review/${t}`)}getSingleReview(t){return this.http.get(this.APIUrl+`review/${t}/`)}postReview(t,e){return this.http.post(this.APIUrl+`review/${e}`,t)}}return t.\u0275fac=function(e){return new(e||t)(tr(Cf))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Zf(t,e){return new y(n=>{const r=t.length;if(0===r)return void n.complete();const i=new Array(r);let o=0,s=0;for(let a=0;a<r;a++){const l=j(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,s++),i[a]=t},error:t=>n.error(t),complete:()=>{o++,o!==r&&c||(s===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}let Yf=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ao(Es),Ao(xs))},t.\u0275dir=Gt({type:t}),t})(),Qf=(()=>{class t extends Yf{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Dn(t)))(n||t)}}(),t.\u0275dir=Gt({type:t,features:[po]}),t})();const Xf=new Fn("NgValueAccessor"),Jf={provide:Xf,useExisting:rt(()=>tg),multi:!0},Kf=new Fn("CompositionEventMode");let tg=(()=>{class t extends Yf{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Tl()?Tl().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Ao(Es),Ao(xs),Ao(Kf,8))},t.\u0275dir=Gt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Fo("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[ms([Jf]),po]}),t})();const eg=new Fn("NgValidators"),ng=new Fn("NgAsyncValidators");function rg(t){return null!=t}function ig(t){const e=No(t)?j(t):t;return Vo(e),e}function og(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function sg(t,e){return e.map(e=>e(t))}function ag(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function lg(t){return null!=t?function(t){if(!t)return null;const e=t.filter(rg);return 0==e.length?null:function(t){return og(sg(t,e))}}(ag(t)):null}function cg(t){return null!=t?function(t){if(!t)return null;const e=t.filter(rg);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return Zf(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Zf(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Zf(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(O(t=>e(...t)))}return Zf(t,null)}(sg(t,e).map(ig)).pipe(O(og))}}(ag(t)):null}function ug(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function hg(t){return t._rawValidators}function dg(t){return t._rawAsyncValidators}let pg=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=lg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=cg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t}),t})(),fg=(()=>{class t extends pg{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Dn(t)))(n||t)}}(),t.\u0275dir=Gt({type:t,features:[po]}),t})();class gg extends pg{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class mg{constructor(t){this._cd=t}is(t){var e,n,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===r?void 0:r[t])}}let vg=(()=>{class t extends mg{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ao(gg,2))},t.\u0275dir=Gt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Wo("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[po]}),t})(),yg=(()=>{class t extends mg{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ao(fg,10))},t.\u0275dir=Gt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&Wo("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[po]}),t})();function bg(t,e){return[...e.path,t]}function _g(t,e){xg(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Eg(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Eg(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function wg(t,e,n=!0){const r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),Sg(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Cg(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function xg(t,e){const n=hg(t);null!==e.validator?t.setValidators(ug(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=dg(t);null!==e.asyncValidator?t.setAsyncValidators(ug(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const i=()=>t.updateValueAndValidity();Cg(e._rawValidators,i),Cg(e._rawAsyncValidators,i)}function Sg(t,e){let n=!1;if(null!==t){if(null!==e.validator){const r=hg(t);if(Array.isArray(r)&&r.length>0){const i=r.filter(t=>t!==e.validator);i.length!==r.length&&(n=!0,t.setValidators(i))}}if(null!==e.asyncValidator){const r=dg(t);if(Array.isArray(r)&&r.length>0){const i=r.filter(t=>t!==e.asyncValidator);i.length!==r.length&&(n=!0,t.setAsyncValidators(i))}}}const r=()=>{};return Cg(e._rawValidators,r),Cg(e._rawAsyncValidators,r),n}function Eg(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Og(t,e){xg(t,e)}function Tg(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function kg(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Ag(t,e){if(!e)return null;let n,r,i;return Array.isArray(e),e.forEach(t=>{t.constructor===tg?n=t:Object.getPrototypeOf(t.constructor)===Qf?r=t:i=t}),i||r||n||null}function Pg(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Mg="VALID",Ig="INVALID",Rg="PENDING",Dg="DISABLED";function jg(t){return(Lg(t)?t.validators:t)||null}function Ng(t){return Array.isArray(t)?lg(t):t||null}function Vg(t,e){return(Lg(e)?e.asyncValidators:t)||null}function Fg(t){return Array.isArray(t)?cg(t):t||null}function Lg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Ug{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Ng(this._rawValidators),this._composedAsyncValidatorFn=Fg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Mg}get invalid(){return this.status===Ig}get pending(){return this.status==Rg}get disabled(){return this.status===Dg}get enabled(){return this.status!==Dg}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Ng(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Fg(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Rg,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Dg,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Mg,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Mg&&this.status!==Rg||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Dg:Mg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Rg,this._hasOwnPendingAsyncValidator=!0;const e=ig(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof $g?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof qg&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ta,this.statusChanges=new Ta}_calculateStatus(){return this._allControlsDisabled()?Dg:this.errors?Ig:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Rg)?Rg:this._anyControlsHaveStatus(Ig)?Ig:Mg}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Lg(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Hg extends Ug{constructor(t=null,e,n){super(jg(e),Vg(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Pg(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Pg(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class $g extends Ug{constructor(t,e,n){super(jg(e),Vg(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Hg?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class qg extends Ug{constructor(t,e,n){super(jg(e),Vg(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Hg?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const zg={provide:fg,useExisting:rt(()=>Wg)},Bg=(()=>Promise.resolve(null))();let Wg=(()=>{class t extends fg{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Ta,this.form=new $g({},lg(t),cg(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Bg.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),_g(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Bg.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Pg(this._directives,t)})}addFormGroup(t){Bg.then(()=>{const e=this._findContainer(t.path),n=new $g({});Og(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Bg.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Bg.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,kg(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Ao(eg,10),Ao(ng,10))},t.\u0275dir=Gt({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Fo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ms([zg]),po]}),t})();const Gg={provide:gg,useExisting:rt(()=>Yg)},Zg=(()=>Promise.resolve(null))();let Yg=(()=>{class t extends gg{constructor(t,e,n,r){super(),this.control=new Hg,this._registered=!1,this.update=new Ta,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Ag(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Tg(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?bg(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){_g(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Zg.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Zg.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Ao(fg,9),Ao(eg,10),Ao(ng,10),Ao(Xf,10))},t.\u0275dir=Gt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ms([Gg]),po,ae]}),t})(),Qg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),Xg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Bt({type:t}),t.\u0275inj=ht({}),t})();const Jg=new Fn("NgModelWithFormControlWarning"),Kg={provide:fg,useExisting:rt(()=>tm)};let tm=(()=>{class t extends fg{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ta,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Sg(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return _g(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){wg(t.control||null,t,!1),Pg(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,kg(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(wg(e||null,t),n instanceof Hg&&(_g(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);Og(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return Sg(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){xg(this.form,this),this._oldForm&&Sg(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(Ao(eg,10),Ao(ng,10))},t.\u0275dir=Gt({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Fo("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ms([Kg]),po,ae]}),t})();const em={provide:gg,useExisting:rt(()=>nm)};let nm=(()=>{class t extends gg{constructor(t,e,n,r,i){super(),this._ngModelWarningConfig=i,this._added=!1,this.update=new Ta,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Ag(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),Tg(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return bg(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(Ao(fg,13),Ao(eg,10),Ao(ng,10),Ao(Xf,10),Ao(Jg,8))},t.\u0275dir=Gt({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[ms([em]),po,ae]}),t._ngModelWarningSentOnce=!1,t})();const rm={provide:Xf,useExisting:rt(()=>om),multi:!0};function im(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let om=(()=>{class t extends Qf{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);const n=im(e,t);this.setProperty("value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Dn(t)))(n||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Fo("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[ms([rm]),po]}),t})(),sm=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(im(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Ao(xs),Ao(Es),Ao(om,9))},t.\u0275dir=Gt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const am={provide:Xf,useExisting:rt(()=>cm),multi:!0};function lm(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let cm=(()=>{class t extends Qf{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const r=t.item(e),i=this._getOptionValue(r.value);n.push(i)}}else{const t=e.options;for(let e=0;e<t.length;e++){const r=t.item(e);if(r.selected){const t=this._getOptionValue(r.value);n.push(t)}}}this.value=n,t(n)}}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=Dn(t)))(n||t)}}(),t.\u0275dir=Gt({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&Fo("change",function(t){return e.onChange(t.target)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[ms([am]),po]}),t})(),um=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(lm(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(lm(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Ao(xs),Ao(Es),Ao(cm,9))},t.\u0275dir=Gt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const hm={provide:eg,useExisting:rt(()=>dm),multi:!0};let dm=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?function(t){return null==(e=t.value)||0===e.length?{required:!0}:null;var e}(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Gt({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&Eo("required",e.required?"":null)},inputs:{required:"required"},features:[ms([hm])]}),t})(),pm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Bt({type:t}),t.\u0275inj=ht({imports:[[Xg]]}),t})(),fm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Bt({type:t}),t.\u0275inj=ht({imports:[pm]}),t})(),gm=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Jg,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Bt({type:t}),t.\u0275inj=ht({imports:[pm]}),t})(),mm=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let r,i=null,o=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new $g(n,{asyncValidators:o,updateOn:r,validators:i})}control(t,e,n){return new Hg(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new qg(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof Hg||t instanceof $g||t instanceof qg?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:gm}),t})();function vm(t,e){if(1&t&&(Io(0,"div",68),Io(1,"div",69),Do(2,"img",70),Ro(),Do(3,"hr"),Io(4,"small"),Xo(5),Ro(),Do(6,"br"),Io(7,"small"),Xo(8),Ro(),Io(9,"div",71),Do(10,"i",72),Ro(),Ro()),2&t){const t=e.$implicit;ni(5),Jo(t.username),ni(3),Jo(t.email)}}function ym(t,e){if(1&t&&(Io(0,"div",73),Io(1,"div",74),Io(2,"h3"),Xo(3),Ro(),Ro(),Ro()),2&t){const t=e.$implicit;ni(3),Jo(t.category_name)}}function bm(t,e){if(1&t){const t=jo();Io(0,"div",80),Io(1,"p"),Xo(2),Ro(),Io(3,"div",87),Io(4,"i",88),Fo("click",function(){return Pe(t),Ho(3).flagReview()}),Ro(),Io(5,"p",89),Xo(6,"This comment has been flagged by the admin!!"),Ro(),Io(7,"div"),Io(8,"i",90),Fo("click",function(){const e=Pe(t).index;return Ho(3).deleteComment(e)}),Ro(),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit,n=Ho(3);ni(1),Wo("active",n.active),ni(1),Ko(" ",t.review,""),ni(3),Po("hidden",n.hidden)}}function _m(t,e){if(1&t&&(Io(0,"div",54),To(1,bm,9,4,"div",86),Ro()),2&t){const t=Ho(2);ni(1),Po("ngForOf",t.reviews)}}function wm(t,e){1&t&&(Io(0,"p"),Xo(1,"No comments at the moment"),Ro())}function Cm(t,e){if(1&t){const t=jo();Io(0,"div",75),Io(1,"div",76),Io(2,"div",77),Do(3,"img",78),Ro(),Io(4,"div",79),Io(5,"h6"),Xo(6),Ro(),Io(7,"small"),Xo(8),Ro(),Io(9,"div",80),Io(10,"a",81),Fo("click",function(){const e=Pe(t).$implicit;return Ho().getReview(e.id)}),Xo(11," View Comments "),Ro(),Io(12,"div",82),Io(13,"div",49),Io(14,"div",50),Io(15,"div",51),Io(16,"h5",52),Xo(17,"Comments"),Ro(),Do(18,"button",53),Ro(),To(19,_m,2,1,"div",83),To(20,wm,2,0,"ng-template",null,84,ka),Io(22,"div",62),Io(23,"button",63),Xo(24,"Close"),Ro(),Ro(),Ro(),Ro(),Ro(),Ro(),Io(25,"div",85),Fo("click",function(){const e=Pe(t).index;return Ho().deletePost(e)}),Do(26,"i",72),Ro(),Ro(),Do(27,"hr"),Ro(),Ro()}if(2&t){const t=e.$implicit,n=ko(21),r=Ho();ni(3),qo("src","https://res.cloudinary.com/kenya12254/",t.image,"",hr),ni(3),Jo(t.title),ni(2),Jo(t.description),ni(11),Po("ngIf",r.reviews)("ngIfElse",n)}}let xm=(()=>{class t{constructor(t,e,n,r,i){this.http=t,this.motivationService=e,this.categoryService=n,this.userService=r,this.review=i,this.categoryModel=new qf(""),this.hidden=!0,this.active=!0}ngOnInit(){return new Promise((t,e)=>{this.motivationService.getAllMotivations().toPromise().then(e=>{console.log(e),this.motivations=e,t()},t=>{})})}get_users(){$f("#dashbord-body").fadeOut(),$f("#dashbord-categories").fadeOut(),$f("#dashbord-posts").fadeOut(),$f("#dashbord-admins").fadeOut(),$f("#dashbord-student").show(),this.userService.getUsers().subscribe(t=>{this.users=t,console.log(t)})}get_posts(){$f("#dashbord-body").fadeOut(),$f("#dashbord-posts").fadeIn(),$f("#dashbord-categories").fadeOut(),$f("#dashbord-student").fadeOut(),$f("#dashbord-admins").fadeOut()}get_categories(){$f("#dashbord-body").fadeOut(),$f("#dashbord-student").fadeOut(),$f("#dashbord-posts").fadeOut(),$f("#dashbord-admins").fadeOut(),$f("#dashbord-categories").fadeIn(),this.categoryService.getAllCategories().subscribe(t=>{this.categories=t})}get_admin(){$f("#dashbord-body").fadeIn(),$f("#dashbord-student").fadeOut(),$f("#dashbord-posts").fadeOut(),$f("#dashbord-categories").fadeOut(),$f("#dashbord-admins").fadeOut()}get_adm(){$f("#dashbord-body").fadeOut(),$f("#dashbord-student").fadeOut(),$f("#dashbord-posts").fadeOut(),$f("#dashbord-categories").fadeOut(),$f("#dashbord-admins").show()}deletePost(t){this.motivations.splice(t,1)}deleteComment(t){this.reviews.splice(t,1)}getReview(t){this.review.getAllMotivationReviews(t).subscribe(t=>{this.reviews=t,console.log(t)})}flagReview(){this.hidden=!1,this.active=!1}onSubmit(){this.categoryService.addCategory(this.categoryModel).subscribe(t=>console.log("success",t),t=>console.log("error",t)),console.log(this.categoryModel),location.reload()}remove_User(){}}return t.\u0275fac=function(e){return new(e||t)(Ao(Cf),Ao(zf),Ao(Bf),Ao(Wf),Ao(Gf))},t.\u0275cmp=Ht({type:t,selectors:[["app-admin-dashboard"]],decls:103,vars:5,consts:[["id","admin"],["id","top-row"],[1,"navbar","navbar-light","fixed-top"],[1,"container-fluid"],[1,"navbar-brand"],[1,"fas","fa-graduation-cap"],[1,"d-flex"],["href",""],[1,"fas","fa-bell"],[1,"fas","custom","fa-comment-alt"],[1,"fas","fa-user-circle"],["id","bar"],[1,"row"],[1,"col-md-3"],[1,"side-bar"],[1,"dashbord"],[1,"students"],["pt","4",1,"text-center",3,"click"],[1,"fas","fa-home"],[1,"row-cats"],["id","students",3,"click"],[1,"fas","fa-user-friends"],[3,"click"],[1,"fas","fa-plus"],[1,"fas","fa-tag"],[1,"col-md-9"],["id","dashbord-body",1,"dash-body"],[1,"cats"],[1,"posts","text-center","pt-3",3,"click"],[1,"content"],[1,"fas","fa-images"],[1,"text-center"],[1,"users",3,"click"],[1,"content","text-center","pt-3"],[1,"fas","fa-users"],[1,"categories","text-center","pt-3",3,"click"],[1,"fas","fa-user-tag"],[1,"admins","text-center","pt-3"],[1,"fas","fa-user-shield"],[1,"chart"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 1440 320"],["fill","#074436","fill-opacity","1","d","M0,224L11.4,186.7C22.9,149,46,75,69,58.7C91.4,43,114,85,137,133.3C160,181,183,235,206,229.3C228.6,224,251,160,274,138.7C297.1,117,320,139,343,133.3C365.7,128,389,96,411,80C434.3,64,457,64,480,64C502.9,64,526,64,549,96C571.4,128,594,192,617,213.3C640,235,663,213,686,192C708.6,171,731,149,754,133.3C777.1,117,800,107,823,128C845.7,149,869,203,891,208C914.3,213,937,171,960,138.7C982.9,107,1006,85,1029,106.7C1051.4,128,1074,192,1097,202.7C1120,213,1143,171,1166,138.7C1188.6,107,1211,85,1234,74.7C1257.1,64,1280,64,1303,101.3C1325.7,139,1349,213,1371,229.3C1394.3,245,1417,203,1429,181.3L1440,160L1440,320L1428.6,320C1417.1,320,1394,320,1371,320C1348.6,320,1326,320,1303,320C1280,320,1257,320,1234,320C1211.4,320,1189,320,1166,320C1142.9,320,1120,320,1097,320C1074.3,320,1051,320,1029,320C1005.7,320,983,320,960,320C937.1,320,914,320,891,320C868.6,320,846,320,823,320C800,320,777,320,754,320C731.4,320,709,320,686,320C662.9,320,640,320,617,320C594.3,320,571,320,549,320C525.7,320,503,320,480,320C457.1,320,434,320,411,320C388.6,320,366,320,343,320C320,320,297,320,274,320C251.4,320,229,320,206,320C182.9,320,160,320,137,320C114.3,320,91,320,69,320C45.7,320,23,320,11,320L0,320Z"],["id","dashbord-student"],["class","user",4,"ngFor","ngForOf"],["id","dashbord-categories"],[1,"top"],[1,"cat-head"],["type","button","data-bs-toggle","modal","data-bs-target","#post",1,"btn","d-flex","btn-outline-success"],["id","post","tabindex","-1","aria-labelledby","postLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","exampleModalLabel",1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close"],[1,"modal-body"],[1,"post-form"],["novalidate","",3,"ngSubmit"],["postForm","ngForm"],[1,"form-group"],["for","title"],["type","text","id","title","name","title",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"custom","cat-button","btn","btn-lg","btn-outline-success"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-secondary"],["class","filtered-cats",4,"ngFor","ngForOf"],["id","dashbord-posts"],["class","motivations",4,"ngFor","ngForOf"],["id","dashbord-admins"],[1,"user"],[1,"avatar-image"],["src","assets/pp.png","alt","",1,"avatar"],[1,"delete-user"],[1,"fas","fa-trash"],[1,"filtered-cats"],[1,"title"],[1,"motivations"],[1,"motivation"],[1,"image-moti"],["alt","",1,"motimage",3,"src"],[1,"image-description"],[1,"comments"],["href","","data-bs-toggle","modal","data-bs-target","#viewComment",1,"view-comment",3,"click"],["id","viewComment","tabindex","-1","aria-labelledby","viewCommentLabel","aria-hidden","true",1,"modal","fade"],["class","modal-body",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"delete",3,"click"],["class","comments",4,"ngFor","ngForOf"],[1,"roles"],[1,"fas","fa-flag",3,"click"],[1,"flagged",3,"hidden"],[1,"fas","fa-trash",3,"click"]],template:function(t,e){1&t&&(Io(0,"main",0),Io(1,"section",1),Io(2,"nav",2),Io(3,"div",3),Io(4,"a",4),Do(5,"i",5),Xo(6," ProperLearn"),Ro(),Io(7,"div",6),Io(8,"a",7),Do(9,"i",8),Ro(),Io(10,"a",7),Do(11,"i",9),Ro(),Io(12,"a",7),Do(13,"i",10),Ro(),Xo(14,"John Doe "),Ro(),Ro(),Ro(),Ro(),Io(15,"section",11),Io(16,"div",12),Io(17,"div",13),Io(18,"div",14),Io(19,"div",15),Do(20,"div",16),Io(21,"h5",17),Fo("click",function(){return e.get_admin()}),Do(22,"i",18),Xo(23," Dashbord"),Ro(),Ro(),Io(24,"div",19),Io(25,"div",16),Io(26,"h6",20),Fo("click",function(){return e.get_users()}),Do(27,"i",21),Xo(28," Students"),Ro(),Ro(),Io(29,"div",16),Io(30,"h6",22),Fo("click",function(){return e.get_posts()}),Do(31,"i",23),Xo(32," Posts"),Ro(),Ro(),Io(33,"div",16),Io(34,"h6",22),Fo("click",function(){return e.get_categories()}),Do(35,"i",24),Xo(36," Categories"),Ro(),Ro(),Ro(),Ro(),Ro(),Io(37,"div",25),Io(38,"div",26),Io(39,"div",27),Io(40,"div",28),Fo("click",function(){return e.get_posts()}),Io(41,"div",29),Io(42,"h3"),Do(43,"i",30),Xo(44," Posts"),Ro(),Io(45,"h3",31),Xo(46),Ro(),Ro(),Ro(),Io(47,"div",32),Fo("click",function(){return e.get_users()}),Io(48,"div",33),Io(49,"h3"),Do(50,"i",34),Xo(51,"Users"),Ro(),Io(52,"h3",31),Xo(53,"0"),Ro(),Ro(),Ro(),Io(54,"div",35),Fo("click",function(){return e.get_categories()}),Io(55,"div",29),Io(56,"h3"),Do(57,"i",36),Xo(58,"Categories"),Ro(),Do(59,"h3",31),Ro(),Ro(),Io(60,"div",37),Io(61,"div",29),Io(62,"h3",22),Fo("click",function(){return e.get_adm()}),Do(63,"i",38),Xo(64," Admins"),Ro(),Io(65,"h3",31),Xo(66,"0"),Ro(),Ro(),Ro(),Ro(),Io(67,"div",39),Oe.lFrame.currentNamespace=de,Io(68,"svg",40),Do(69,"path",41),Ro(),Ro(),Ro(),Oe.lFrame.currentNamespace=null,Io(70,"div",42),To(71,vm,11,2,"div",43),Ro(),Io(72,"div",44),Io(73,"div",45),Io(74,"div",46),Io(75,"h4"),Xo(76,"Categories"),Ro(),Io(77,"button",47),Xo(78," Add "),Ro(),Ro(),Io(79,"div",48),Io(80,"div",49),Io(81,"div",50),Io(82,"div",51),Io(83,"h5",52),Xo(84,"Post"),Ro(),Do(85,"button",53),Ro(),Io(86,"div",54),Io(87,"div",55),Io(88,"form",56,57),Fo("ngSubmit",function(){return e.onSubmit()}),Io(90,"div",58),Io(91,"label",59),Xo(92,"Name"),Ro(),Io(93,"input",60),Fo("ngModelChange",function(t){return e.categoryModel.category_name=t}),Ro(),Ro(),Io(94,"button",61),Xo(95,"Save"),Ro(),Ro(),Ro(),Ro(),Io(96,"div",62),Io(97,"button",63),Xo(98,"Close"),Ro(),Ro(),Ro(),Ro(),Ro(),Ro(),To(99,ym,4,1,"div",64),Ro(),Io(100,"div",65),To(101,Cm,28,5,"div",66),Ro(),Do(102,"div",67),Ro(),Ro(),Ro(),Ro()),2&t&&(ni(46),Jo(e.motivations.length),ni(25),Po("ngForOf",e.users),ni(22),Po("ngModel",e.categoryModel.category_name),ni(6),Po("ngForOf",e.categories),ni(2),Po("ngForOf",e.motivations))},directives:[kc,Qg,yg,Wg,tg,vg,Yg,Pc],styles:["#admin[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box}.dash-body[_ngcontent-%COMP%]{background-color:#ebe9e9;margin-top:3rem;padding-top:2rem}.cats[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;flex-wrap:wrap}.admins[_ngcontent-%COMP%], .categories[_ngcontent-%COMP%], .posts[_ngcontent-%COMP%], .users[_ngcontent-%COMP%]{height:100px;width:350px;background:#fff;margin:2rem 0;border-radius:20px;cursor:pointer}.content[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#074436!important}.content[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:.5rem;color:#91beb4}a[_ngcontent-%COMP%]{text-decoration:none}.first-row[_ngcontent-%COMP%]{color:#074436;font-weight:900;font-size:1.5rem}span[_ngcontent-%COMP%]{margin:0 .5rem}.students[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#074436;cursor:pointer}.students[_ngcontent-%COMP%]{margin:2.5rem 0;color:#074436}.icons[_ngcontent-%COMP%]{margin:1rem 2rem}.custom[_ngcontent-%COMP%]{margin:0 1.5rem}.icons[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#000;font-weight:900;font-size:1.5rem}h6[_ngcontent-%COMP%]{cursor:pointer}#dashbord-admins[_ngcontent-%COMP%], #dashbord-categories[_ngcontent-%COMP%], #dashbord-posts[_ngcontent-%COMP%], #dashbord-student[_ngcontent-%COMP%]{display:none;margin-top:3rem}.motivation[_ngcontent-%COMP%]{margin-left:2.5rem}#bar[_ngcontent-%COMP%]{margin-top:2rem!important}.navbar[_ngcontent-%COMP%]{background-color:#fff!important}.delete[_ngcontent-%COMP%]{color:red;cursor:pointer}#dashbord-student[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.roles[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{padding:.5rem;cursor:pointer}.fa-trash[_ngcontent-%COMP%], .role[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:red}.cat-head[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.cat-button[_ngcontent-%COMP%]{margin:2rem 0 0}.user[_ngcontent-%COMP%]{margin:1rem;border:1px solid #074436;height:auto;width:200px;padding:1rem;border-radius:20px}.delete-user[_ngcontent-%COMP%]{margin-top:2rem}.avatar[_ngcontent-%COMP%]{width:50px;height:50px}.avatar-image[_ngcontent-%COMP%]{display:flex;justify-content:center}.row-cats[_ngcontent-%COMP%]{margin-left:1rem}.motimage[_ngcontent-%COMP%]{width:400px;height:auto}.filtered-cats[_ngcontent-%COMP%]{background-color:#074436;height:auto;width:auto;margin:2rem;padding:.7rem;border-radius:10px;cursor:pointer;transition:all .5s}.title[_ngcontent-%COMP%]{color:#fff}.filtered-cats[_ngcontent-%COMP%]:hover{background-color:#fff;border:1px solid #074436}.title[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]:hover{color:#074436}.flagged[_ngcontent-%COMP%]{color:red}"]}),t})(),Sm=(()=>{class t{constructor(t){this.http=t,this.headers={},this.profUrl=Ff}getHeaders(){let t=JSON.parse(localStorage.getItem("authToken")||"{}");if(t)return new sf(t.access&&t.refresh?{"Content-Type":"application/json",Authorization:`JWT ${t.access}`}:{"Content-Type":"application/json",Authorization:`token ${t.token}`})}getCurrentUser(){return this.currentUser=JSON.parse(localStorage.getItem("currentUser")||"{}")}getUser(){var t=new sf({"Content-Type":"application/json"});return this.http.get(this.profUrl+"profile",{headers:t})}updateUser(t){return this.http.put(this.profUrl+"user",t,{headers:this.getHeaders()})}updateProfile(t){return this.http.put(`${this.profUrl}/profile/`,t,{headers:this.getHeaders()})}removeUserProfile(){return this.http.delete(`${this.profUrl}/profile/`,{headers:this.getHeaders()})}passwordReset(t){return this.http.post(`${this.profUrl}/password-reset/`,t)}passwordConfirm(t){return this.http.post(`${this.profUrl}/password-reset/confirm/`,t)}getAllUsers(){return this.http.get(this.profUrl+"users",{headers:this.getHeaders()})}}return t.\u0275fac=function(e){return new(e||t)(tr(Cf))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Em(t,e){1&t&&(Io(0,"li",8),Io(1,"a",43),Xo(2,"Admin"),Ro(),Ro())}function Om(t,e){if(1&t&&(Io(0,"option",44),Xo(1),Ro()),2&t){const t=e.$implicit;Po("ngValue",t.id),ni(1),Jo(t.category_name)}}let Tm=(()=>{class t{constructor(t,e,n,r,i){this.authService=t,this.authBackup=e,this.profService=n,this.motivationService=r,this.router=i,this.loading=!1}ngOnInit(){this.user={username:"",password:""},this.motivationPost={},new Promise((t,e)=>{this.motivationService.getAllCategories().toPromise().then(e=>{this.categories=e,t()},t=>{})}),this.authBackup.getCurrentUser().pipe(eh()).subscribe(t=>{this.currentUser=t})}onFileSelected(t){this.file=t.target.files[0]}publishMotivation(){console.log(this.motivationPost),this.loading=!0,this.motivationService.postMotivation(this.motivationPost,this.file).subscribe(t=>{console.log(t),alert("Motivation "+this.motivationPost.username+" has been created"),this.router.navigate(["home"])},t=>{this.error=t,this.loading=!0,console.log("error",t)})}isLogout(){this.authBackup.Logout()}refresh(){window.location.reload()}}return t.\u0275fac=function(e){return new(e||t)(Ao(Lf),Ao(Uf),Ao(Sm),Ao(zf),Ao(Vp))},t.\u0275cmp=Ht({type:t,selectors:[["app-navbar"]],decls:68,vars:9,consts:[[1,"navbar","navbar-expand-lg","navbar-light","bg-transparent"],[1,"container-fluid"],["src","assets/education.png","alt","",1,"logo"],["href","/home",1,"navbar-brand"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbarSupportedContent",1,"collapse","navbar-collapse"],[1,"navbar-nav","ms-auto","mb-2","mb-lg-0"],[1,"nav-item"],["aria-current","page","href","/home",1,"nav-link","active"],["class","nav-item",4,"ngIf"],[1,"nav-item","dropdown"],["href","#","id","navbarDropdown","role","button","data-bs-toggle","dropdown","aria-expanded","false",1,"nav-link","dropdown-toggle"],[1,"far","fa-user"],["aria-labelledby","navbarDropdown",1,"dropdown-menu"],["href","/profile",1,"dropdown-item"],["href","#",1,"dropdown-item"],[1,"dropdown-divider"],[1,"dropdown-item",3,"click"],["type","button","data-bs-toggle","modal","data-bs-target","#post",1,"add-post-btn","btn","d-flex","btn-outline-success"],["id","post","tabindex","-1","aria-labelledby","postLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","exampleModalLabel",1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close"],[1,"modal-body"],[1,"post-form"],["action","","enctype","multipart/form-data",1,"form"],[1,"form-group"],["for","title"],["type","text","id","title","name","title",1,"form-control",3,"ngModel","ngModelChange"],["for","des"],["name","description","id","des","rows","3",1,"form-control",3,"ngModel","ngModelChange"],[1,"mb-3"],["for","formFile",1,"form-label"],["name","image","type","file","id","formFile",1,"form-control",3,"ngModel","ngModelChange","change"],["name","video","type","file","id","formFile",1,"form-control",3,"ngModel","ngModelChange"],["name","category","required","",1,"form-control",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],["type","submit",1,"custom","btn","btn-lg","btn-outline-info",3,"click"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-secondary"],["aria-current","page","href","/admin",1,"nav-link","active"],[3,"ngValue"]],template:function(t,e){1&t&&(Io(0,"nav",0),Io(1,"div",1),Do(2,"img",2),Io(3,"a",3),Xo(4,"Properlearn"),Ro(),Io(5,"button",4),Do(6,"span",5),Ro(),Io(7,"div",6),Io(8,"ul",7),Io(9,"li",8),Io(10,"a",9),Xo(11,"Home"),Ro(),Ro(),To(12,Em,3,0,"li",10),Io(13,"li",11),Io(14,"a",12),Do(15,"i",13),Xo(16),Ro(),Io(17,"ul",14),Io(18,"li"),Io(19,"a",15),Xo(20,"Profile"),Ro(),Ro(),Io(21,"li"),Io(22,"a",16),Xo(23,"WishList"),Ro(),Ro(),Io(24,"li"),Do(25,"hr",17),Ro(),Io(26,"li"),Io(27,"a",18),Fo("click",function(){return e.isLogout()}),Xo(28,"Logout"),Ro(),Ro(),Ro(),Ro(),Ro(),Io(29,"button",19),Xo(30," Add Post "),Ro(),Io(31,"div",20),Io(32,"div",21),Io(33,"div",22),Io(34,"div",23),Io(35,"h5",24),Xo(36,"Post"),Ro(),Do(37,"button",25),Ro(),Io(38,"div",26),Io(39,"div",27),Io(40,"form",28),Io(41,"div",29),Io(42,"label",30),Xo(43,"Title"),Ro(),Io(44,"input",31),Fo("ngModelChange",function(t){return e.motivationPost.title=t}),Ro(),Ro(),Io(45,"div",29),Io(46,"label",32),Xo(47,"Description"),Ro(),Io(48,"textarea",33),Fo("ngModelChange",function(t){return e.motivationPost.description=t}),Ro(),Ro(),Io(49,"div",34),Io(50,"label",35),Xo(51,"Image"),Ro(),Io(52,"input",36),Fo("ngModelChange",function(t){return e.motivationPost.image=t})("change",function(t){return e.onFileSelected(t)}),Ro(),Ro(),Io(53,"div",34),Io(54,"label",35),Xo(55,"Video"),Ro(),Io(56,"input",37),Fo("ngModelChange",function(t){return e.motivationPost.video=t}),Ro(),Ro(),Io(57,"div",34),Io(58,"label",35),Xo(59,"Category"),Ro(),Xo(60),Io(61,"select",38),Fo("ngModelChange",function(t){return e.motivationPost.category=t}),To(62,Om,2,2,"option",39),Ro(),Ro(),Io(63,"button",40),Fo("click",function(){return e.publishMotivation()})("click",function(){return e.refresh()}),Xo(64,"Publish"),Ro(),Ro(),Ro(),Ro(),Io(65,"div",41),Io(66,"button",42),Xo(67,"Close"),Ro(),Ro(),Ro(),Ro(),Ro(),Ro(),Ro(),Ro()),2&t&&(ni(12),Po("ngIf",e.currentUser.is_superuser),ni(4),Ko(" ",e.currentUser.username," "),ni(28),Po("ngModel",e.motivationPost.title),ni(4),Po("ngModel",e.motivationPost.description),ni(4),Po("ngModel",e.motivationPost.image),ni(4),Po("ngModel",e.motivationPost.video),ni(4),Ko(" ",e.motivationPost.category," "),ni(1),Po("ngModel",e.motivationPost.category),ni(1),Po("ngForOf",e.categories))},directives:[Pc,Qg,yg,Wg,tg,vg,Yg,om,dm,kc,sm,um],styles:[".navbar[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff!important;font-size:16px;font-weight:500;margin-right:50px}.navbar[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#127e68!important}.dropdown-menu[_ngcontent-%COMP%]{background-color:#127e68!important}.dropdown-menu[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:15px!important}.navbar-brand[_ngcontent-%COMP%]{margin-top:2%;font-family:Poppins;font-style:normal;font-weight:500;font-size:28px;line-height:54px;color:#fff}.navbar-brand[_ngcontent-%COMP%]:hover{color:#127e68}.logo[_ngcontent-%COMP%]{height:5rem}.btn[_ngcontent-%COMP%]{background:#fff!important;color:#074436!important;font-size:17px;font-weight:500}.btn[_ngcontent-%COMP%]:hover{background-color:#074436!important;color:#fff!important;border:1px solid #fff!important}.far[_ngcontent-%COMP%]{font-size:18px}"]}),t})();!function(){function t(){}t.prototype.transform=function(t,e,n){return void 0===e&&(e=40),void 0===n&&(n="\u2026"),t||(t=""),e<0?t.length>(e*=-1)?n+t.substring(t.length-e,t.length):t:t.length>e?t.substring(0,e)+n:t},t.ctorParameters=function(){return[]},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Zt({name:"truncate",type:t,pure:!0})}();var km=function(){function t(){}return t.prototype.transform=function(t,e,n){void 0===e&&(e=40),void 0===n&&(n="\u2026");var r=t||"";if(t){var i=t.split(/\s+/);i.length>Math.abs(e)&&(r=e<0?n+i.slice(i.length-(e*=-1),i.length).join(" "):i.slice(0,e).join(" ")+n)}return r},t.ctorParameters=function(){return[]},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Zt({name:"words",type:t,pure:!0}),t}(),Am=function(){function t(){}return t.ctorParameters=function(){return[]},t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Bt({type:t}),t.\u0275inj=ht({}),t}();function Pm(t,e){if(1&t){const t=jo();Io(0,"div",13),Io(1,"div"),Io(2,"button",14),Fo("click",function(){const e=Pe(t).$implicit;return Ho().goToCategory(e.id)})("click",function(){return Pe(t),Ho().refresh()}),Xo(3),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;ni(3),Jo(t.category_name)}}function Mm(t,e){1&t&&(Io(0,"div"),Do(1,"img",30),Ro())}function Im(t,e){if(1&t&&(Io(0,"div"),Do(1,"img",31),Ro()),2&t){const t=Ho().$implicit;ni(1),qo("src","https://res.cloudinary.com/kenya12254/",t.image,"",hr)}}function Rm(t,e){if(1&t){const t=jo();Io(0,"div",32),Io(1,"div",33),Io(2,"img",34),Fo("click",function(){Pe(t);const e=Ho().$implicit;return Ho().goToUrl(e.id)}),Ro(),Ro(),Ro()}}function Dm(t,e){if(1&t){const t=jo();Io(0,"div",15),Io(1,"div",16),To(2,Mm,2,0,"div",17),To(3,Im,2,1,"div",17),To(4,Rm,3,0,"div",18),Io(5,"div",19),Io(6,"h5",20),Xo(7),Ro(),Io(8,"p",21),Xo(9),Ro(),Io(10,"p",22),Xo(11),wa(12,"words"),Ro(),Io(13,"p",21),Io(14,"small",13),Xo(15),Ro(),Ro(),Io(16,"p",21),Io(17,"small",13),Xo(18),wa(19,"date"),Ro(),Ro(),Ro(),Io(20,"div",23),Io(21,"div",24),Io(22,"a",25),Do(23,"i",26),Ro(),Io(24,"a",25),Do(25,"i",27),Ro(),Ro(),Io(26,"div",28),Io(27,"button",29),Fo("click",function(){const e=Pe(t).$implicit;return Ho().goToUrl(e.id)}),Xo(28,"View Details"),Ro(),Ro(),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;ni(2),Po("ngIf",null==t.image&&null==t.video),ni(1),Po("ngIf",t.image),ni(1),Po("ngIf",null==t?null:t.video),ni(3),Jo(t.title),ni(2),Ko("Category:",t.category,""),ni(2),Jo(xa(12,8,t.description,6)),ni(4),Ko("published by ",t.profile.user,""),ni(3),Jo(Ca(19,11,t.created_at))}}let jm=(()=>{class t{constructor(t,e,n,r){this.http=t,this.motivationService=e,this.route=n,this.router=r}ngOnInit(){let t=this.route.snapshot.paramMap.get("id");new Promise((e,n)=>{this.motivationService.filterByCategory(t).toPromise().then(t=>{this.motivations=t,e()},t=>{}),this.motivationService.getAllCategories().toPromise().then(t=>{this.categories=t,e()},t=>{})})}goToCategory(t){this.router.navigate(["/category",t])}refresh(){window.location.reload()}goToUrl(t){this.router.navigate(["/motivation",t])}}return t.\u0275fac=function(e){return new(e||t)(Ao(Cf),Ao(zf),Ao(gd),Ao(Vp))},t.\u0275cmp=Ht({type:t,selectors:[["app-filter-category"]],decls:18,vars:2,consts:[["id","main",1,"container-fluid"],["id","nav"],[1,"container"],[1,"text-center","text-white"],[1,"buttons"],["href","/home"],["id","all",1,"all-btn","btn","btn-lg"],["class","",4,"ngFor","ngForOf"],[1,"subscribe"],[1,"btn-danger","btn-sm",3,"click"],["id","motivation",1,"container-fluid","motivations"],[1,"row"],["class","col-md-3 m-2",4,"ngFor","ngForOf"],[1,""],[1,"custom","btn","btn-lg",3,"click"],[1,"col-md-3","m-2"],[1,"card","mb-3"],[4,"ngIf"],["class","video-icon",4,"ngIf"],[1,"card-body"],[1,"card-title"],[1,"card-text"],[1,"card-text","small"],[1,"card-footer"],[1,"icons"],["href",""],[1,"fas","fa-save"],[1,"fas","fa-share-alt"],[1,"details"],[1,"view-details","btn","btn-secondary",3,"click"],["src","assets/Motivation.jpg","alt","","height","300",1,"card-img-top"],["alt","...","height","300",1,"card-img-top","vid-link",3,"src"],[1,"video-icon"],[1,"col-md-8"],["src","assets/vid-icon.png","alt","Video","height","300",1,"card-img-top",3,"click"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"section",1),Do(2,"app-navbar"),Ro(),Io(3,"div",2),Io(4,"h5",3),Xo(5,"Choose category"),Ro(),Io(6,"div",4),Io(7,"div"),Io(8,"a",5),Io(9,"button",6),Xo(10,"All"),Ro(),Ro(),Ro(),To(11,Pm,4,1,"div",7),Ro(),Io(12,"div",8),Io(13,"button",9),Fo("click",function(){return e.refresh()}),Xo(14,"Subscribe"),Ro(),Ro(),Ro(),Io(15,"div",10),Io(16,"div",11),To(17,Dm,29,13,"div",12),Ro(),Ro(),Ro()),2&t&&(ni(11),Po("ngForOf",e.categories),ni(6),Po("ngForOf",e.motivations))},directives:[Tm,kc,Pc],pipes:[km,Rc],styles:["#main[_ngcontent-%COMP%]{background-color:#074436!important;height:100vh;padding-left:3%}.motivations[_ngcontent-%COMP%]{margin-top:5px;background-color:#d3cab980!important}.categories[_ngcontent-%COMP%]{margin:0 auto}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-wrap:wrap}.btn[_ngcontent-%COMP%]{background:#fff!important;color:#074436!important;margin:5px;height:40px;font-size:17px}.btn[_ngcontent-%COMP%]:hover{background-color:#074436!important;color:#fff!important;border:1px solid #fff!important}.view-comment[_ngcontent-%COMP%]{text-decoration:none;font-weight:800;color:#fff}.card[_ngcontent-%COMP%]{margin-top:5%;background-color:#16365080!important;color:#f0f8ff}.card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center}.card-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.vid-link[_ngcontent-%COMP%]:hover{cursor:pointer}i[_ngcontent-%COMP%]{padding:.5rem;color:#0fdd19}.motivation-loop[_ngcontent-%COMP%], .video-icon[_ngcontent-%COMP%]{display:flex}.video-icon[_ngcontent-%COMP%]{justify-content:center}.custom[_ngcontent-%COMP%]{background-color:#95b4c0!important;color:#101409!important}.custom[_ngcontent-%COMP%]:hover{background-color:#1a4205!important;color:#f0f8ff!important;border:1px solid green}.view-details[_ngcontent-%COMP%]{background-color:#a4b4b9!important;color:#101409!important;border-radius:25px;border:1px solid #0b241c}.all-btn[_ngcontent-%COMP%]{background-color:#bdd6c0e6!important;color:#150838!important}.subscribe[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:5px}"]}),t})();const Nm=new Fn("WindowToken","undefined"!=typeof window&&window.document?{providedIn:"root",factory:()=>window}:{providedIn:"root",factory:()=>{}});let Vm=(()=>{class t{constructor(t,e){this.document=t,this.window=e,this.copySubject=new x,this.copyResponse$=this.copySubject.asObservable(),this.config={}}configure(t){this.config=t}copy(t){if(!this.isSupported||!t)return this.pushCopyResponse({isSuccess:!1,content:t});const e=this.copyFromContent(t);return this.pushCopyResponse(e?{content:t,isSuccess:e}:{isSuccess:!1,content:t})}get isSupported(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window}isTargetValid(t){if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){if(t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")}copyFromInputElement(t,e=!0){try{this.selectTarget(t);const n=this.copyText();return this.clearSelection(e?t:void 0,this.window),n&&this.isCopySuccessInIE11()}catch(n){return!1}}isCopySuccessInIE11(){const t=this.window.clipboardData;return!(t&&t.getData&&!t.getData("Text"))}copyFromContent(t,e=this.document.body){if(this.tempTextArea&&!e.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement||void 0),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{e.appendChild(this.tempTextArea)}catch(r){throw new Error("Container should be a Dom element")}}this.tempTextArea.value=t;const n=this.copyFromInputElement(this.tempTextArea,!1);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement||void 0),n}destroy(t=this.document.body){this.tempTextArea&&(t.removeChild(this.tempTextArea),this.tempTextArea=void 0)}selectTarget(t){return t.select(),t.setSelectionRange(0,t.value.length),t.value.length}copyText(){return this.document.execCommand("copy")}clearSelection(t,e){var n;t&&t.focus(),null===(n=e.getSelection())||void 0===n||n.removeAllRanges()}createTempTextArea(t,e){const n="rtl"===t.documentElement.getAttribute("dir");let r;return r=t.createElement("textarea"),r.style.fontSize="12pt",r.style.border="0",r.style.padding="0",r.style.margin="0",r.style.position="absolute",r.style[n?"right":"left"]="-9999px",r.style.top=(e.pageYOffset||t.documentElement.scrollTop)+"px",r.setAttribute("readonly",""),r}pushCopyResponse(t){this.copySubject.next(t)}pushCopyReponse(t){this.pushCopyResponse(t)}}return t.\u0275fac=function(e){return new(e||t)(tr(kl),tr(Nm,8))},t.\u0275prov=ut({factory:function(){return new t(tr(kl),tr(Nm,8))},token:t,providedIn:"root"}),t})(),Fm=(()=>{class t{constructor(t){this.clipboardSrv=t,this.cbOnSuccess=new Ta,this.cbOnError=new Ta}ngOnInit(){}ngOnDestroy(){this.clipboardSrv.destroy(this.container)}onClick(t){this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value,t):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent,this.container),this.cbContent,t):this.handleResult(!1,void 0,t)}handleResult(t,e,n){let r={isSuccess:t,event:n};t?(r=Object.assign(r,{content:e,successMessage:this.cbSuccessMsg}),this.cbOnSuccess.emit(r)):this.cbOnError.emit(r),this.clipboardSrv.pushCopyResponse(r)}}return t.\u0275fac=function(e){return new(e||t)(Ao(Vm))},t.\u0275dir=Gt({type:t,selectors:[["","ngxClipboard",""]],hostBindings:function(t,e){1&t&&Fo("click",function(t){return e.onClick(t.target)})},inputs:{targetElm:["ngxClipboard","targetElm"],container:"container",cbContent:"cbContent",cbSuccessMsg:"cbSuccessMsg"},outputs:{cbOnSuccess:"cbOnSuccess",cbOnError:"cbOnError"}}),t})(),Lm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Bt({type:t}),t.\u0275inj=ht({imports:[[Dc]]}),t})();function Um(t,e){1&t&&(Io(0,"div"),Do(1,"img",19),Ro())}function Hm(t,e){if(1&t&&(Io(0,"div"),Do(1,"img",20),Ro()),2&t){const t=Ho().$implicit;ni(1),qo("src","https://res.cloudinary.com/kenya12254/",t.image,"",hr)}}function $m(t,e){if(1&t){const t=jo();Io(0,"div",21),Io(1,"div",22),Io(2,"img",23),Fo("click",function(){Pe(t);const e=Ho().$implicit;return Ho().goToUrl(e.id)}),Ro(),Ro(),Ro()}}function qm(t,e){if(1&t){const t=jo();Io(0,"div",2),Io(1,"div",3),To(2,Um,2,0,"div",4),To(3,Hm,2,1,"div",4),To(4,$m,3,0,"div",5),Io(5,"div",6),Io(6,"h5",7),Xo(7),Ro(),Io(8,"p",8),Xo(9),Ro(),Io(10,"p",9),Xo(11),wa(12,"words"),Ro(),Io(13,"p",8),Io(14,"small",10),Xo(15),Ro(),Ro(),Io(16,"p",8),Io(17,"small",10),Xo(18),wa(19,"date"),Ro(),Ro(),Ro(),Io(20,"div",11),Io(21,"div",12),Do(22,"i",13),Do(23,"input",14,15),Io(25,"i",16),Fo("click",function(){return Pe(t),Ho().copyUrl()}),Ro(),Ro(),Io(26,"div",17),Io(27,"button",18),Fo("click",function(){const e=Pe(t).$implicit;return Ho().goToUrl(e.id)}),Xo(28,"View Details"),Ro(),Ro(),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit,n=ko(24);ni(2),Po("ngIf",null==t.image&&null==t.video),ni(1),Po("ngIf",t.image),ni(1),Po("ngIf",null==t?null:t.video),ni(3),Jo(t.title),ni(2),Ko("Category: ",t.category.category_name,""),ni(2),Jo(xa(12,10,t.description,6)),ni(4),Ko("published by ",t.profile.user,""),ni(3),Jo(Ca(19,13,t.created_at)),ni(5),qo("value","http://localhost:4200/motivation/",t.id,""),ni(2),Po("ngxClipboard",n)}}let zm=(()=>{class t{constructor(t,e,n,r){this.http=t,this.motivationService=e,this.authService=n,this.router=r}ngOnInit(){new Promise((t,e)=>{this.motivationService.getAllMotivations().toPromise().then(e=>{console.log(e),this.motivations=e,console.log(e),t()},t=>{})})}goToUrl(t){this.router.navigate(["/motivation",t])}copyUrl(){alert("Motivation link has been copied. Share with your friends!")}}return t.\u0275fac=function(e){return new(e||t)(Ao(Cf),Ao(zf),Ao(Lf),Ao(Vp))},t.\u0275cmp=Ht({type:t,selectors:[["app-motivation"]],decls:2,vars:1,consts:[[1,"row"],["class","col-md-3",4,"ngFor","ngForOf"],[1,"col-md-3"],[1,"card","mb-3"],[4,"ngIf"],["class","video-icon",4,"ngIf"],[1,"card-body"],[1,"card-title"],[1,"card-text"],[1,"card-text","small"],[1,""],[1,"card-footer"],[1,"icons"],[1,"fas","fa-save"],["hidden","",1,"share-url",3,"value"],["formInputText",""],[1,"fas","fa-share-alt",3,"ngxClipboard","click"],[1,"details"],[1,"custom","btn","btn-info",3,"click"],["src","assets/Motivation.jpg","alt","","height","300",1,"card-img-top"],["alt","...","height","300",1,"card-img-top","vid-link",3,"src"],[1,"video-icon"],[1,"col-md-8"],["src","assets/vid-icon.png","alt","Video","height","300",1,"card-img-top",3,"click"]],template:function(t,e){1&t&&(Io(0,"div",0),To(1,qm,29,15,"div",1),Ro()),2&t&&(ni(1),Po("ngForOf",e.motivations))},directives:[kc,Pc,Fm],pipes:[km,Rc],styles:[".card[_ngcontent-%COMP%]{margin-top:5%;border-radius:5px;background-color:#16365080!important;color:#f0f8ff}.card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center}.card-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.vid-link[_ngcontent-%COMP%]:hover{cursor:pointer}i[_ngcontent-%COMP%]{padding:.5rem;color:#0fdd19}.motivation-loop[_ngcontent-%COMP%], .video-icon[_ngcontent-%COMP%]{display:flex}.video-icon[_ngcontent-%COMP%]{justify-content:center}.custom[_ngcontent-%COMP%]{background-color:#a4b4b9!important;color:#101409!important;border-radius:25px;border:1px solid #0b241c}.custom[_ngcontent-%COMP%]:hover{background-color:#1a4205!important;color:#f0f8ff!important;border:1px solid green}.fas[_ngcontent-%COMP%]{font-size:20px}.fas[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),t})();function Bm(t,e){if(1&t){const t=jo();Io(0,"div",9),Io(1,"div"),Io(2,"button",10),Fo("click",function(){const e=Pe(t).$implicit;return Ho().goToCategory(e.id)}),Xo(3),Ro(),Ro(),Ro()}if(2&t){const t=e.$implicit;ni(3),Jo(t.category_name)}}let Wm=(()=>{class t{constructor(t,e,n,r){this.http=t,this.motivationService=e,this.authService=n,this.router=r}ngOnInit(){new Promise((t,e)=>{this.motivationService.getAllMotivations().toPromise().then(e=>{this.motivations=e,t()},t=>{}),this.motivationService.getAllCategories().toPromise().then(e=>{this.categories=e,t()},t=>{})})}goToCategory(t){this.router.navigate(["/category",t])}}return t.\u0275fac=function(e){return new(e||t)(Ao(Cf),Ao(zf),Ao(Lf),Ao(Vp))},t.\u0275cmp=Ht({type:t,selectors:[["app-home"]],decls:14,vars:1,consts:[["id","main",1,"container-fluid"],["id","nav"],[1,"container"],[1,"text-center","text-white"],[1,"buttons"],["href","/home"],["id","all",1,"all-btn","btn","btn-lg"],["class","",4,"ngFor","ngForOf"],["id","motivation",1,"container-fluid","motivations"],[1,""],[1,"custom","btn","btn-lg",3,"click"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"section",1),Do(2,"app-navbar"),Ro(),Io(3,"div",2),Io(4,"h5",3),Xo(5,"Choose category"),Ro(),Io(6,"div",4),Io(7,"div"),Io(8,"a",5),Io(9,"button",6),Xo(10,"All"),Ro(),Ro(),Ro(),To(11,Bm,4,1,"div",7),Ro(),Ro(),Io(12,"div",8),Do(13,"app-motivation"),Ro(),Ro()),2&t&&(ni(11),Po("ngForOf",e.categories))},directives:[Tm,kc,zm],styles:["#main[_ngcontent-%COMP%]{background-color:#074436!important;padding-left:3%}.motivations[_ngcontent-%COMP%]{margin-top:5px;border-radius:5px;background-color:#979c9999!important}i[_ngcontent-%COMP%]{padding:.5rem;color:#fff}.categories[_ngcontent-%COMP%]{margin:0 auto}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-wrap:wrap}.btn[_ngcontent-%COMP%]{background:#fff!important;color:#074436!important;margin:5px;height:40px;font-size:17px}.btn[_ngcontent-%COMP%]:hover{background-color:#074436!important;color:#fff!important;border:1px solid #fff!important}.view-comment[_ngcontent-%COMP%]{text-decoration:none;font-weight:800;color:#fff}#devops[_ngcontent-%COMP%]{display:none}.custom[_ngcontent-%COMP%]{background-color:#95b4c0!important;color:#101409!important}.all-btn[_ngcontent-%COMP%]{background-color:#bdd6c0e6!important;color:#150838!important}"]}),t})(),Gm=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ht({type:t,selectors:[["app-landing"]],decls:29,vars:0,consts:[[1,"container-fluid","landing"],[1,"navbar","navbar-expand-lg","navbar-light","bg-transparent"],[1,"container-fluid"],["src","assets/education.png","alt","",1,"logo"],["href","#",1,"navbar-brand"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbarSupportedContent",1,"collapse","navbar-collapse"],[1,"navbar-nav","me-auto","mb-2","mb-lg-0"],["href","/login"],["type","submit",1,"btn","btn-success","login-register-btn"],[1,"row","landing-container"],[1,"col-md-6","content"],[1,"button"],["type","submit",1,"btn","btn-success","get-started-btn"],[1,"col-md-6","image"],["src","assets/landing.png","alt",""]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"nav",1),Io(2,"div",2),Do(3,"img",3),Io(4,"a",4),Xo(5,"Properlearn"),Ro(),Io(6,"button",5),Do(7,"span",6),Ro(),Io(8,"div",7),Do(9,"ul",8),Io(10,"a",9),Io(11,"button",10),Xo(12," Login/Register "),Ro(),Ro(),Ro(),Ro(),Ro(),Io(13,"div",11),Io(14,"div",12),Io(15,"h1"),Xo(16,"WE ENVISION WORLD"),Ro(),Io(17,"h1"),Xo(18,"BEST LEARNING "),Ro(),Io(19,"h1"),Xo(20,"EXPERIENCE"),Ro(),Io(21,"p"),Xo(22,"GET GOING BY STAYING MOTIVATED"),Ro(),Io(23,"div",13),Io(24,"a",9),Io(25,"button",14),Xo(26," GET STARTED "),Ro(),Ro(),Ro(),Ro(),Io(27,"div",15),Do(28,"img",16),Ro(),Ro(),Ro())},styles:[".landing[_ngcontent-%COMP%]{height:100vh;background-image:url(https://wallpaperaccess.com/full/6563775.jpg);background-size:cover;background-color:#074436}.navbar[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff!important}.navbar-brand[_ngcontent-%COMP%]{margin-top:2%;font-family:Poppins;font-style:normal;font-weight:500;font-size:30px;line-height:54px;color:#fff}.logo[_ngcontent-%COMP%]{height:5rem}.navbar-brand[_ngcontent-%COMP%]:hover{color:#127e68}.login-register-btn[_ngcontent-%COMP%]{margin-top:3%;width:302px;height:68px;background:#fff;border:2px solid #074436;border-radius:10px;font-family:Poppins;font-style:normal;font-weight:500;font-size:18px;line-height:27px;color:#134b11}.btn[_ngcontent-%COMP%]:hover{background-color:#127e68;color:#fff}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.content[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-weight:700;font-size:50px;line-height:96px}.content[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Poppins;font-style:normal;text-align:center;color:#fff}.content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-weight:500;font-size:20px;line-height:36px}.get-started-btn[_ngcontent-%COMP%]{margin-top:10%;width:235px;height:80px;left:267px;top:750px;background:#fff;border-radius:50px;font-family:Poppins;font-style:normal;font-weight:500;font-size:18px;line-height:27px;color:#074436}.image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.landing-container[_ngcontent-%COMP%]{margin-top:3%;display:flex;justify-content:center;border-radius:25px}"]}),t})(),Zm=(()=>{class t{constructor(t,e,n,r,i){this.LoginService=t,this.profile=e,this.auth=n,this.router=r,this.fb=i,this.error="",this.loading=!1,this.submitted=!1,this.loggedIn=new mu(!1),this.currentUserSubject=new mu(JSON.parse(localStorage.getItem("currentUser")||"{}")),this.currentUser=this.currentUserSubject.asObservable(),this.signinForm=this.fb.group({username:[""],password:[""]})}get isLoggedIn(){return this.loggedIn.asObservable()}ngOnInit(){this.login={username:"",password:"",email:"",role:""}}loginUser(){this.auth.signIn(this.signinForm.value),this.loading=!0}}return t.\u0275fac=function(e){return new(e||t)(Ao(Lf),Ao(Sm),Ao(Uf),Ao(Vp),Ao(mm))},t.\u0275cmp=Ht({type:t,selectors:[["app-login"]],decls:25,vars:1,consts:[[1,"container-fluid","login"],[1,"row"],[1,"col-md-5","login-form"],["action","",1,"form",3,"formGroup","ngSubmit"],[1,"form-item"],["for","username"],["formControlName","username","type","text","placeholder","Username","required","required",1,"input"],["for","password"],["formControlName","password","type","password","placeholder","Password","required","required",1,"input"],[1,"button"],["type","submit",1,"btn","btn-success","signin-btn"],[1,"col-md-7","login-image"],["src","assets/signin.png","alt",""],["href","/signup"],["type","submit",1,"btn","btn-success","signup-btn"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"h1"),Xo(2,"Login"),Ro(),Io(3,"div",1),Io(4,"div",2),Io(5,"form",3),Fo("ngSubmit",function(){return e.loginUser()}),Io(6,"div",4),Io(7,"label",5),Xo(8,"username"),Ro(),Do(9,"input",6),Ro(),Io(10,"div",4),Io(11,"label",7),Xo(12,"password"),Ro(),Do(13,"input",8),Ro(),Io(14,"div",9),Io(15,"button",10),Xo(16," Sign in "),Ro(),Ro(),Ro(),Ro(),Io(17,"div",11),Do(18,"img",12),Io(19,"p"),Xo(20,"Dont have an account?"),Ro(),Io(21,"div",9),Io(22,"a",13),Io(23,"button",14),Xo(24," Sign up "),Ro(),Ro(),Ro(),Ro(),Ro(),Ro()),2&t&&(ni(5),Po("formGroup",e.signinForm))},directives:[Qg,yg,tm,tg,vg,nm,dm],styles:[".login[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-family:Poppins;font-style:normal;font-weight:700;font-size:40px;line-height:100px;text-align:center;color:#074436}.login-form[_ngcontent-%COMP%]{display:flex;justify-content:center}.form[_ngcontent-%COMP%]{margin-top:5%!important;margin:5px;width:100%}.form[_ngcontent-%COMP%], .form-item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input[_ngcontent-%COMP%]{width:100%;height:80px;background:#fff;border:2px solid #074436;box-sizing:border-box;border-radius:10px}form[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{display:flex;justify-content:center}form[_ngcontent-%COMP%]   .signin-btn[_ngcontent-%COMP%]{margin-top:10%;width:200px;height:70px;background:#074436;border-radius:50px;font-family:Poppins;font-style:normal;font-weight:700;font-size:29px;line-height:54px;color:#fff}form[_ngcontent-%COMP%]   .signin-btn[_ngcontent-%COMP%]:hover{background-color:#fff;color:#074436;border:4px solid #074436}label[_ngcontent-%COMP%]{margin-top:7%;margin-bottom:5px;width:71px;height:36px;font-family:Poppins;font-style:normal;font-weight:700;font-size:20px;line-height:36px;color:#074436}.login-image[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.login-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:70%;height:601px}.login-image[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:25px;line-height:72px;text-align:center}.login-image[_ngcontent-%COMP%]   .signup-btn[_ngcontent-%COMP%], .login-image[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Poppins;font-style:normal;font-weight:700;color:#074436}.login-image[_ngcontent-%COMP%]   .signup-btn[_ngcontent-%COMP%]{width:180px;height:65px;background:#fff;border:4px solid #074436;box-sizing:border-box;border-radius:50px;font-size:24px;line-height:36px}.login-image[_ngcontent-%COMP%]   .signup-btn[_ngcontent-%COMP%]:hover{background-color:#074436;color:#fff}"]}),t})();function Ym(t,e){1&t&&(Io(0,"div"),Xo(1," Admin "),Ro())}function Qm(t,e){1&t&&(Io(0,"div"),Xo(1," Student "),Ro())}let Xm=(()=>{class t{constructor(t,e,n,r,i){this.http=t,this.profileService=e,this.authBackup=n,this.router=r,this.authService=i,this.loading=!1}ngOnInit(){this.loading=!0,this.authBackup.getUserProfile().pipe(eh()).subscribe(t=>{this.loading=!1,this.profile=t,console.log(t)}),this.authBackup.getCurrentUser().pipe(eh()).subscribe(t=>{this.currentUser=t,console.log(t)}),this.authBackup.updateProfile().subscribe(t=>{this.loading=!0},t=>{this.loading=!1,console.log(t)})}}return t.\u0275fac=function(e){return new(e||t)(Ao(Cf),Ao(Sm),Ao(Uf),Ao(Vp),Ao(Lf))},t.\u0275cmp=Ht({type:t,selectors:[["app-profile"]],decls:62,vars:10,consts:[["id","profile"],[1,"container"],[1,"main-body"],[1,"row"],[1,"col-lg-4"],[1,"card"],[1,"card-body"],[1,"d-flex","flex-column","align-items-center","text-center"],["src","https://bootdey.com/img/Content/avatar/avatar6.png","alt","Admin","width","110",1,"rounded-circle","p-1","bg-primary"],[1,"mt-3"],[4,"ngIf"],[1,"text-muted","font-size-sm","mt-2"],[1,"my-4"],[1,"col-lg-8"],[1,"row","mb-3"],[1,"col-sm-3"],[1,"mb-0"],[1,"col-sm-9","text-secondary"],["type","text","value","",1,"form-control"],["type","text",1,"form-control",3,"value"],["type","text","value","Bay Area, San Francisco, CA",1,"form-control"],["type","button","value","Save Changes",1,"btn","btn-primary","px-4"],[1,"col-sm-12"],[1,"d-flex","align-items-center","mb-3"]],template:function(t,e){1&t&&(Io(0,"section",0),Do(1,"app-navbar"),Io(2,"div",1),Io(3,"div",2),Io(4,"div",3),Io(5,"div",4),Io(6,"div",5),Io(7,"div",6),Io(8,"div",7),Do(9,"img",8),Io(10,"div",9),Io(11,"h4"),Xo(12),Ro(),To(13,Ym,2,0,"div",10),To(14,Qm,2,0,"div",10),Io(15,"p",11),Xo(16),wa(17,"date"),Ro(),Ro(),Ro(),Do(18,"hr",12),Ro(),Ro(),Ro(),Io(19,"div",13),Io(20,"div",5),Io(21,"div",6),Io(22,"div",14),Io(23,"div",15),Io(24,"h6",16),Xo(25),Ro(),Ro(),Io(26,"div",17),Do(27,"input",18),Ro(),Ro(),Io(28,"div",14),Io(29,"div",15),Io(30,"h6",16),Xo(31,"Email"),Ro(),Ro(),Io(32,"div",17),Do(33,"input",19),Ro(),Ro(),Io(34,"div",14),Io(35,"div",15),Io(36,"h6",16),Xo(37,"Phone"),Ro(),Ro(),Io(38,"div",17),Do(39,"input",19),Ro(),Ro(),Io(40,"div",14),Io(41,"div",15),Io(42,"h6",16),Xo(43,"Category preference"),Ro(),Ro(),Io(44,"div",17),Do(45,"input",19),Ro(),Ro(),Io(46,"div",14),Io(47,"div",15),Io(48,"h6",16),Xo(49,"Address"),Ro(),Ro(),Io(50,"div",17),Do(51,"input",20),Ro(),Ro(),Io(52,"div",3),Do(53,"div",15),Io(54,"div",17),Do(55,"input",21),Ro(),Ro(),Ro(),Ro(),Io(56,"div",3),Io(57,"div",22),Io(58,"div",5),Io(59,"div",6),Io(60,"h5",23),Xo(61,"My Preferences"),Ro(),Ro(),Ro(),Ro(),Ro(),Ro(),Ro(),Ro(),Ro(),Ro()),2&t&&(ni(12),Jo(e.profile.user),ni(1),Po("ngIf",e.currentUser.is_superuser),ni(1),Po("ngIf",!e.currentUser.is_superuser),ni(2),Ko("Joined on ",Ca(17,8,e.profile.created_at),""),ni(9),Jo(e.profile.user),ni(8),$o("value",e.currentUser.email),ni(6),$o("value",e.profile.phone_number),ni(6),$o("value",e.profile.category.category_name))},directives:[Tm,Pc],pipes:[Rc],styles:[".card[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:initial;border:0 solid #0000;border-radius:.25rem;margin-bottom:1.5rem;box-shadow:0 2px 6px 0 #dadafda6,0 2px 6px 0 #ceceee8a}.me-2[_ngcontent-%COMP%]{margin-right:.5rem!important}#profile[_ngcontent-%COMP%]{background-color:#074436!important;height:100vh}"]}),t})();function Jm(t,e){1&t&&(Io(0,"div"),Do(1,"img",21),Ro())}function Km(t,e){if(1&t&&(Io(0,"div"),Do(1,"img",22),Ro()),2&t){const t=Ho();ni(1),qo("src","https://res.cloudinary.com/kenya12254/",t.motivation.image,"",hr)}}function tv(t,e){if(1&t&&(Io(0,"div"),Io(1,"div",23),Io(2,"video",24,25),Do(4,"source",26),Xo(5," Browser not supported "),Ro(),Ro(),Ro()),2&t){const t=Ho();ni(4),qo("src","http://127.0.0.1:8000/api",t.motivation.video,"",hr)}}function ev(t,e){if(1&t&&(Io(0,"div",27),Io(1,"div",28),Io(2,"div",29),Do(3,"img",30),Io(4,"h5",31),Xo(5),Ro(),Io(6,"span",31),Xo(7),wa(8,"date"),Ro(),Do(9,"br"),Ro(),Io(10,"p",32),Xo(11),Ro(),Ro(),Ro()),2&t){const t=e.$implicit;ni(5),Jo(t.profile.user),ni(2),Ko("- ",Ca(8,3,t.created_at),""),ni(4),Jo(t.review)}}const nv=[{path:"",redirectTo:"landing",pathMatch:"full"},{path:"landing",component:Gm},{path:"login",component:Zm},{path:"signup",component:(()=>{class t{constructor(t,e,n){this.RegisterService=t,this.authBackup=e,this.router=n,this.loggedIn=new mu(!1)}get isLoggedIn(){return this.loggedIn.asObservable()}ngOnInit(){this.register={username:"",email:"",password:""}}registerUser(){this.RegisterService.signUp(this.register).subscribe(t=>{alert("User "+this.register.username+" has been created"),this.loggedIn.next(!0),this.router.navigate(["login"])},t=>{this.error=t,console.log("error",t)})}}return t.\u0275fac=function(e){return new(e||t)(Ao(Lf),Ao(Uf),Ao(Vp))},t.\u0275cmp=Ht({type:t,selectors:[["app-signup"]],decls:29,vars:3,consts:[[1,"container-fluid","signup"],[1,"row"],[1,"col-md-5","signup-form"],["action","",1,"form"],[1,"form-item"],["for","username",1,"mb-2"],["name","username","type","text","placeholder","Username","required","required",1,"input","mb-3",3,"ngModel","ngModelChange"],["for","email",1,"mb-2"],["name","email","type","text","placeholder","Username","required","required",1,"input","mb-3",3,"ngModel","ngModelChange"],["for","password",1,"mb-2"],["name","password","type","password","placeholder","Password","required","required",1,"input","mb-3",3,"ngModel","ngModelChange"],[1,"button"],["type","submit",1,"btn","btn-success","signup-btn",3,"click"],[1,"col-md-7","signup-image"],["src","assets/signin.png","alt",""],["href","/login"],["type","submit",1,"btn","btn-success","signup-btn"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"h1"),Xo(2,"Register"),Ro(),Io(3,"div",1),Io(4,"div",2),Io(5,"form",3),Io(6,"div",4),Io(7,"label",5),Xo(8,"username"),Ro(),Io(9,"input",6),Fo("ngModelChange",function(t){return e.register.username=t}),Ro(),Ro(),Io(10,"div",4),Io(11,"label",7),Xo(12,"email"),Ro(),Io(13,"input",8),Fo("ngModelChange",function(t){return e.register.email=t}),Ro(),Ro(),Io(14,"div",4),Io(15,"label",9),Xo(16,"password"),Ro(),Io(17,"input",10),Fo("ngModelChange",function(t){return e.register.password=t}),Ro(),Ro(),Io(18,"div",11),Io(19,"button",12),Fo("click",function(){return e.registerUser()}),Xo(20," sign up "),Ro(),Ro(),Ro(),Ro(),Io(21,"div",13),Do(22,"img",14),Io(23,"p"),Xo(24,"Already have an account?"),Ro(),Io(25,"div",11),Io(26,"a",15),Io(27,"button",16),Xo(28," Sign in "),Ro(),Ro(),Ro(),Ro(),Ro(),Ro()),2&t&&(ni(9),Po("ngModel",e.register.username),ni(4),Po("ngModel",e.register.email),ni(4),Po("ngModel",e.register.password))},directives:[Qg,yg,Wg,tg,dm,vg,Yg],styles:[".signup[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-family:Poppins;font-style:normal;font-weight:700;font-size:40px;line-height:100px;text-align:center;color:#074436}.signup-form[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.form[_ngcontent-%COMP%]{margin:5px;width:100%}.form[_ngcontent-%COMP%], .form-item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input[_ngcontent-%COMP%]{width:100%;height:80px;background:#fff;border:2px solid #074436;box-sizing:border-box;border-radius:10px}label[_ngcontent-%COMP%]{font-family:Poppins;font-style:normal;font-weight:700;font-size:20px;line-height:36px;color:#074436;display:flex;float:left}form[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{display:flex;justify-content:center}form[_ngcontent-%COMP%]   .signup-btn[_ngcontent-%COMP%]{margin-top:40px;width:180px;height:70px;background:#074436;border-radius:50px;font-family:Poppins;font-style:normal;font-weight:700;font-size:25px;line-height:54px;color:#fff}form[_ngcontent-%COMP%]   .signup-btn[_ngcontent-%COMP%]:hover{background-color:#fff;color:#074436;border:4px solid #074436}.signup-image[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.signup-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:70%;height:601px}.signup-image[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:25px;line-height:72px;text-align:center}.signup-image[_ngcontent-%COMP%]   .signup-btn[_ngcontent-%COMP%], .signup-image[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-family:Poppins;font-style:normal;font-weight:700;color:#074436}.signup-image[_ngcontent-%COMP%]   .signup-btn[_ngcontent-%COMP%]{width:160px;height:60px;background:#fff;border:4px solid #074436;box-sizing:border-box;border-radius:50px;font-size:22px;line-height:36px}.signup-image[_ngcontent-%COMP%]   .signup-btn[_ngcontent-%COMP%]:hover{background-color:#074436;color:#fff}"]}),t})()},{path:"home",component:Wm,canActivate:[Hf]},{path:"motivation/:id",component:(()=>{class t{constructor(t,e,n,r,i){this.http=t,this.motivationService=e,this.reviewService=n,this.route=r,this.router=i}ngOnInit(){this.reviewPost={};let t=this.route.snapshot.paramMap.get("id");new Promise((e,n)=>{this.motivationService.getSingleMotivation(t).toPromise().then(t=>{this.motivation=t,e()},t=>{}),this.reviewService.getAllMotivationReviews(t).toPromise().then(t=>{this.reviews=t,e()},t=>{})}),$("#add-review").on("click",function(){$("#review-form").fadeIn(1e3),$("#add-review").hide(),$("#hide-form").fadeIn(1e3)}),$("#hide-form").on("click",function(){$("#review-form").hide(),$("#add-review").fadeIn(1e3),$("#hide-form").hide()}),$("add-review").on("click",function(){window.location.hash="review-list"+$(this).attr("id")})}toForm(){var t;null===(t=document.getElementById("review-list"))||void 0===t||t.scrollIntoView({behavior:"smooth",block:"start"})}postReview(t){console.log(this.reviewPost),this.reviewService.postReview(this.reviewPost,t).subscribe(e=>{this.router.navigate([`motivation/${t}`])},t=>{this.error=t,console.log("error",t)})}refresh(){window.location.reload()}}return t.\u0275fac=function(e){return new(e||t)(Ao(Cf),Ao(zf),Ao(Gf),Ao(gd),Ao(Vp))},t.\u0275cmp=Ht({type:t,selectors:[["app-single-motivation"]],decls:40,vars:11,consts:[["id","main",1,"container-fluid"],["id","nav"],[1,"container-fluid","motivation"],[1,"col-md-9"],[1,"card","mb-3"],[4,"ngIf"],[1,"card-body"],[1,"card-title"],[1,"card-text"],[1,""],["type","button","id","add-review",1,"btn","btn-warning",3,"click"],["type","button","id","hide-form",1,"btn","btn-danger"],[1,"col-md-10","form"],["action","","id","review-form"],[1,"mb-3"],["for","exampleFormControlTextarea1",1,"form-label"],["name","review","id","exampleFormControlTextarea1","rows","3",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-secondary",3,"click"],["id","review-list",1,"reviews","mt-5"],[1,"col-sm-5","col-md-12","col-12","pb-4"],["class","review-loop",4,"ngFor","ngForOf"],["src","assets/Motivation.jpg","alt","","height","550",1,"card-img-top"],["alt","...","height","550",1,"card-img-top",3,"src"],[1,"video"],["controls","","width","auto","height","auto"],["videoPlayer",""],["type","video/mp4",3,"src"],[1,"review-loop"],[1,"comment","mt-4","text-justify","float-left"],[1,"d-flex","reviewed-by"],["src","https://i.imgur.com/yTFUilP.jpg","alt","","width","40","height","40",1,"rounded-circle"],[1,"m-2"],[1,"mt-4"]],template:function(t,e){1&t&&(Io(0,"div",0),Io(1,"section",1),Do(2,"app-navbar"),Ro(),Io(3,"div",2),Io(4,"div",3),Io(5,"div",4),To(6,Jm,2,0,"div",5),To(7,Km,2,1,"div",5),To(8,tv,6,1,"div",5),Io(9,"div",6),Io(10,"h4",7),Xo(11),Ro(),Io(12,"p",8),Xo(13),Ro(),Io(14,"p",8),Io(15,"small",9),Xo(16),Ro(),Ro(),Io(17,"p",8),Io(18,"small",9),Xo(19),wa(20,"date"),Ro(),Ro(),Io(21,"a"),Io(22,"button",10),Fo("click",function(){return e.toForm()}),Xo(23,"Add a Review"),Ro(),Ro(),Io(24,"a"),Io(25,"button",11),Xo(26,"Hide form"),Ro(),Ro(),Io(27,"div",12),Io(28,"form",13),Io(29,"div",14),Io(30,"label",15),Xo(31,"Review"),Ro(),Io(32,"textarea",16),Fo("ngModelChange",function(t){return e.reviewPost.review=t}),Ro(),Ro(),Io(33,"button",17),Fo("click",function(){return e.postReview(e.motivation.id)})("click",function(){return e.refresh()}),Xo(34,"Post"),Ro(),Ro(),Io(35,"div",18),Io(36,"h4"),Xo(37,"Reviews"),Ro(),Io(38,"div",19),To(39,ev,12,5,"div",20),Ro(),Ro(),Ro(),Ro(),Ro(),Ro(),Ro(),Ro()),2&t&&(ni(6),Po("ngIf",null==e.motivation.image&&null==e.motivation.video),ni(1),Po("ngIf",null==e.motivation?null:e.motivation.image),ni(1),Po("ngIf",null==e.motivation?null:e.motivation.video),ni(3),Jo(null==e.motivation?null:e.motivation.title),ni(2),Ko(" ",null==e.motivation?null:e.motivation.description,""),ni(3),Ko("published by ",e.motivation.profile.user,""),ni(3),Jo(Ca(20,9,e.motivation.created_at)),ni(13),Po("ngModel",e.reviewPost.review),ni(7),Po("ngForOf",e.reviews))},directives:[Tm,Pc,Qg,yg,Wg,tg,vg,Yg,kc],pipes:[Rc],styles:["#main[_ngcontent-%COMP%]{background-color:#074436!important}.motivation[_ngcontent-%COMP%], .video[_ngcontent-%COMP%]{display:flex;justify-content:center}video[_ngcontent-%COMP%]{height:100%!important}.card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#c0e0a680!important}.card-body[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{line-height:2}#hide-form[_ngcontent-%COMP%], #review-form[_ngcontent-%COMP%]{display:none}.comment[_ngcontent-%COMP%]{border:1px solid #102e2e;background-color:rgba(16,46,46,.973);float:left;border-radius:5px;padding-left:40px;padding-right:30px;padding-top:10px}.comment[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], .comment[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .darker[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], .darker[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:inline}.comment[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .comment[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .darker[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .darker[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#f0f8ff}h1[_ngcontent-%COMP%], h5[_ngcontent-%COMP%]{color:#fff;font-weight:700}.review-loop[_ngcontent-%COMP%]{display:flex;flex-direction:column}.reviewed-by[_ngcontent-%COMP%]{display:flex}.review-by[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{float:right}"]}),t})(),canActivate:[Hf]},{path:"category/:id",component:jm,canActivate:[Hf]},{path:"profile",component:Xm,canActivate:[Hf]},{path:"admin",component:xm,canActivate:[Hf]}];let rv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Bt({type:t}),t.\u0275inj=ht({imports:[[Zp.forRoot(nv)],Zp]}),t})(),iv=(()=>{class t{constructor(){this.title="motivation"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ht({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(t,e){1&t&&Do(0,"router-outlet")},directives:[Fp],styles:[""]}),t})(),ov=(()=>{class t{constructor(t){this.authService=t}intercept(t,e){const n=this.authService.getToken();return t=t.clone({setHeaders:{Authorization:"Bearer "+n}}),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(tr(Lf))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),sv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Bt({type:t,bootstrap:[iv]}),t.\u0275inj=ht({providers:[{provide:Sf,useClass:ov,multi:!0}],imports:[[fu,rv,jf,fm,Am,Lm,gm]]}),t})();(function(){if(cl)throw new Error("Cannot enable prod mode after platform setup.");ll=!1})(),du().bootstrapModule(sv).catch(t=>console.error(t))}},t=>{"use strict";t(t.s=859)}]);