-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.e73990947637dfc779ce.js
1 lines (1 loc) · 696 KB
/
main.e73990947637dfc779ce.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},DlQD:function(t,e,n){t.exports=function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,n){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=t[Symbol.iterator]()).next.bind(r)}var r=function(t,e){return function(t){function e(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}t.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:e,changeDefaults:function(e){t.exports.defaults=e}}}(e={exports:{}}),e.exports}(),i=/[&<>"']/,s=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(t){return l[t]},u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(t){return t.replace(u,function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""})}var d=/(^|[^\[])\^/g,p=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,g={},m=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(t,e,n){var r=t.length;if(0===r)return"";for(var i=0;i<r;){var s=t.charAt(r-i-1);if(s!==e||n){if(s===e||!n)break;i++}else i++}return t.substr(0,r-i)}var v=function(t,e){if(e){if(i.test(t))return t.replace(s,c)}else if(o.test(t))return t.replace(a,c);return t},w=h,S=function(t){for(var e,n,r=1;r<arguments.length;r++)for(n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},T=r.defaults,C=_,x=function(t,e){var n=t.replace(/\|/g,function(t,e,n){for(var r=!1,i=e;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},E=v;function k(t,e,n){var r=e.href,i=e.title?E(e.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");return"!"!==t[0].charAt(0)?{type:"link",raw:n,href:r,title:i,text:s}:{type:"image",raw:n,href:r,title:i,text:E(s)}}var A=function(){function t(t){this.options=t||T}var e=t.prototype;return e.space=function(t){var e=this.rules.block.newline.exec(t);if(e)return e[0].length>1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t,e){var n=this.rules.block.code.exec(t);if(n){var r=e[e.length-1];if(r&&"paragraph"===r.type)return{raw:n[0],text:n[0].trimRight()};var i=n[0].replace(/^ {4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:C(i,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],r=function(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var r=n[1];return e.split("\n").map(function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=r.length?t.slice(r.length):t}).join("\n")}(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:r}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[1].length,text:e[2]}},e.nptable=function(t){var e=this.rules.block.nptable.exec(t);if(e){var n={type:"table",header:x(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(n.header.length===n.align.length){var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=x(n.cells[r],n.header.length);return n}}},e.hr=function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}},e.blockquote=function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:e[0],text:n}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){var n,r,i,s,o,a,l,c,u=e[0],h=e[2],d=h.length>1,p={type:"list",raw:u,ordered:d,start:d?+h.slice(0,-1):"",loose:!1,items:[]},f=e[0].match(this.rules.block.item),g=!1,m=f.length;i=this.rules.block.listItemStart.exec(f[0]);for(var y=0;y<m;y++){if(u=n=f[y],y!==m-1){if((s=this.rules.block.listItemStart.exec(f[y+1]))[1].length>i[0].length||s[1].length>3){f.splice(y,2,f[y]+"\n"+f[y+1]),y--,m--;continue}(!this.options.pedantic||this.options.smartLists?s[2][s[2].length-1]!==h[h.length-1]:d===(1===s[2].length))&&(o=f.slice(y+1).join("\n"),p.raw=p.raw.substring(0,p.raw.length-o.length),y=m-1),i=s}r=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(r-=n.length,n=n.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+r+"}","gm"),"")),a=g||/\n\n(?!\s*$)/.test(n),y!==m-1&&(g="\n"===n.charAt(n.length-1),a||(a=g)),a&&(p.loose=!0),this.options.gfm&&(c=void 0,(l=/^\[[ xX]\] /.test(n))&&(c=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),p.items.push({type:"list_item",raw:u,task:l,checked:c,loose:a,text:n})}return p}},e.html=function(t){var e=this.rules.block.html.exec(t);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):E(e[0]):e[0]}},e.def=function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:x(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var r,i=n.align.length;for(r=0;r<i;r++)n.align[r]=/^ *-+: *$/.test(n.align[r])?"right":/^ *:-+: *$/.test(n.align[r])?"center":/^ *:-+ *$/.test(n.align[r])?"left":null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=x(n.cells[r].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},e.lheading=function(t){var e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1]}},e.paragraph=function(t){var e=this.rules.block.paragraph.exec(t);if(e)return{type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1]}},e.text=function(t,e){var n=this.rules.block.text.exec(t);if(n){var r=e[e.length-1];return r&&"text"===r.type?{raw:n[0],text:n[0]}:{type:"text",raw:n[0],text:n[0]}}},e.escape=function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:E(e[1])}},e.tag=function(t,e,n){var r=this.rules.inline.tag.exec(t);if(r)return!e&&/^<a /i.test(r[0])?e=!0:e&&/^<\/a>/i.test(r[0])&&(e=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:e,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):E(r[0]):r[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var n=t.length,r=0,i=0;i<n;i++)if("\\"===t[i])i++;else if(t[i]===e[0])r++;else if(t[i]===e[1]&&--r<0)return i;return-1}(e[2],"()");if(n>-1){var r=(0===e[0].indexOf("!")?5:4)+e[1].length+n;e[2]=e[2].substring(0,n),e[0]=e[0].substring(0,r).trim(),e[3]=""}var i=e[2],s="";if(this.options.pedantic){var o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o?(i=o[1],s=o[3]):s=""}else s=e[3]?e[3].slice(1,-1):"";return k(e,{href:(i=i.trim().replace(/^<([\s\S]*)>$/,"$1"))?i.replace(this.rules.inline._escapes,"$1"):i,title:s?s.replace(this.rules.inline._escapes,"$1"):s},e[0])}},e.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=e[r.toLowerCase()])||!r.href){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return k(n,r,n[0])}},e.strong=function(t,e,n){void 0===n&&(n="");var r=this.rules.inline.strong.start.exec(t);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){e=e.slice(-1*t.length);var i,s="**"===r[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(s.lastIndex=0;null!=(r=s.exec(e));)if(i=this.rules.inline.strong.middle.exec(e.slice(0,r.index+3)))return{type:"strong",raw:t.slice(0,i[0].length),text:t.slice(2,i[0].length-2)}}},e.em=function(t,e,n){void 0===n&&(n="");var r=this.rules.inline.em.start.exec(t);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){e=e.slice(-1*t.length);var i,s="*"===r[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(s.lastIndex=0;null!=(r=s.exec(e));)if(i=this.rules.inline.em.middle.exec(e.slice(0,r.index+2)))return{type:"em",raw:t.slice(0,i[0].length),text:t.slice(1,i[0].length-1)}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=n.startsWith(" ")&&n.endsWith(" ");return r&&i&&(n=n.substring(1,n.length-1)),n=E(n,!0),{type:"codespan",raw:e[0],text:n}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2]}},e.autolink=function(t,e){var n,r,i=this.rules.inline.autolink.exec(t);if(i)return r="@"===i[2]?"mailto:"+(n=E(this.options.mangle?e(i[1]):i[1])):n=E(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},e.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var r,i;if("@"===n[2])i="mailto:"+(r=E(this.options.mangle?e(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);r=E(n[0]),i="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},e.inlineText=function(t,e,n){var r,i=this.rules.inline.text.exec(t);if(i)return r=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):E(i[0]):i[0]:E(this.options.smartypants?n(i[0]):i[0]),{type:"text",raw:i[0],text:r}},t}(),P={exec:function(){}},M=function(t,e){t=t.source||t,e=e||"";var n={replace:function(e,r){return r=(r=r.source||r).replace(d,"$1"),t=t.replace(e,r),n},getRegex:function(){return new RegExp(t,e)}};return n},O=S,I={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:P,table:P,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};I.def=M(I.def).replace("label",I._label).replace("title",I._title).getRegex(),I.bullet=/(?:[*+-]|\d{1,9}[.)])/,I.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,I.item=M(I.item,"gm").replace(/bull/g,I.bullet).getRegex(),I.listItemStart=M(/^( *)(bull)/).replace("bull",I.bullet).getRegex(),I.list=M(I.list).replace(/bull/g,I.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+I.def.source+")").getRegex(),I._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",I._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,I.html=M(I.html,"i").replace("comment",I._comment).replace("tag",I._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),I.paragraph=M(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",I._tag).getRegex(),I.blockquote=M(I.blockquote).replace("paragraph",I.paragraph).getRegex(),I.normal=O({},I),I.gfm=O({},I.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),I.gfm.nptable=M(I.gfm.nptable).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",I._tag).getRegex(),I.gfm.table=M(I.gfm.table).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",I._tag).getRegex(),I.pedantic=O({},I.normal,{html:M("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",I._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:P,paragraph:M(I.normal._paragraph).replace("hr",I.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",I.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var D={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:P,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:P,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\s*punctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};D.punctuation=M(D.punctuation).replace(/punctuation/g,D._punctuation).getRegex(),D._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",D._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",D._comment=M(I._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),D.em.start=M(D.em.start).replace(/punctuation/g,D._punctuation).getRegex(),D.em.middle=M(D.em.middle).replace(/punctuation/g,D._punctuation).replace(/overlapSkip/g,D._overlapSkip).getRegex(),D.em.endAst=M(D.em.endAst,"g").replace(/punctuation/g,D._punctuation).getRegex(),D.em.endUnd=M(D.em.endUnd,"g").replace(/punctuation/g,D._punctuation).getRegex(),D.strong.start=M(D.strong.start).replace(/punctuation/g,D._punctuation).getRegex(),D.strong.middle=M(D.strong.middle).replace(/punctuation/g,D._punctuation).replace(/overlapSkip/g,D._overlapSkip).getRegex(),D.strong.endAst=M(D.strong.endAst,"g").replace(/punctuation/g,D._punctuation).getRegex(),D.strong.endUnd=M(D.strong.endUnd,"g").replace(/punctuation/g,D._punctuation).getRegex(),D.blockSkip=M(D._blockSkip,"g").getRegex(),D.overlapSkip=M(D._overlapSkip,"g").getRegex(),D._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,D._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,D._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,D.autolink=M(D.autolink).replace("scheme",D._scheme).replace("email",D._email).getRegex(),D._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,D.tag=M(D.tag).replace("comment",D._comment).replace("attribute",D._attribute).getRegex(),D._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,D._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,D._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,D.link=M(D.link).replace("label",D._label).replace("href",D._href).replace("title",D._title).getRegex(),D.reflink=M(D.reflink).replace("label",D._label).getRegex(),D.reflinkSearch=M(D.reflinkSearch,"g").replace("reflink",D.reflink).replace("nolink",D.nolink).getRegex(),D.normal=O({},D),D.pedantic=O({},D.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:M(/^!?\[(label)\]\((.*?)\)/).replace("label",D._label).getRegex(),reflink:M(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",D._label).getRegex()}),D.gfm=O({},D.normal,{escape:M(D.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),D.gfm.url=M(D.gfm.url,"i").replace("email",D.gfm._extended_email).getRegex(),D.breaks=O({},D.gfm,{br:M(D.br).replace("{2,}","*").getRegex(),text:M(D.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var R={block:I,inline:D},N=r.defaults,H=R.block,F=R.inline,V=function(t,e){if(e<1)return"";for(var n="";e>1;)1&e&&(n+=t),e>>=1,t+=t;return n+t};function G(t){return t.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function L(t){var e,n,r="",i=t.length;for(e=0;e<i;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var B=function(){function e(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||N,this.options.tokenizer=this.options.tokenizer||new A,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:H.normal,inline:F.normal};this.options.pedantic?(e.block=H.pedantic,e.inline=F.pedantic):this.options.gfm&&(e.block=H.gfm,e.inline=this.options.breaks?F.breaks:F.gfm),this.tokenizer.rules=e}e.lex=function(t,n){return new e(n).lex(t)},e.lexInline=function(t,n){return new e(n).inlineTokens(t)};var n,r,i=e.prototype;return i.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens},i.blockTokens=function(t,e,n){var r,i,s,o;for(void 0===e&&(e=[]),void 0===n&&(n=!0),t=t.replace(/^ +$/gm,"");t;)if(r=this.tokenizer.space(t))t=t.substring(r.raw.length),r.type&&e.push(r);else if(r=this.tokenizer.code(t,e))t=t.substring(r.raw.length),r.type?e.push(r):((o=e[e.length-1]).raw+="\n"+r.raw,o.text+="\n"+r.text);else if(r=this.tokenizer.fences(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.heading(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.nptable(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.hr(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.blockquote(t))t=t.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),e.push(r);else if(r=this.tokenizer.list(t)){for(t=t.substring(r.raw.length),s=r.items.length,i=0;i<s;i++)r.items[i].tokens=this.blockTokens(r.items[i].text,[],!1);e.push(r)}else if(r=this.tokenizer.html(t))t=t.substring(r.raw.length),e.push(r);else if(n&&(r=this.tokenizer.def(t)))t=t.substring(r.raw.length),this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});else if(r=this.tokenizer.table(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.lheading(t))t=t.substring(r.raw.length),e.push(r);else if(n&&(r=this.tokenizer.paragraph(t)))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.text(t,e))t=t.substring(r.raw.length),r.type?e.push(r):((o=e[e.length-1]).raw+="\n"+r.raw,o.text+="\n"+r.text);else if(t){var a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return e},i.inline=function(t){var e,n,r,i,s,o,a=t.length;for(e=0;e<a;e++)switch((o=t[e]).type){case"paragraph":case"text":case"heading":o.tokens=[],this.inlineTokens(o.text,o.tokens);break;case"table":for(o.tokens={header:[],cells:[]},i=o.header.length,n=0;n<i;n++)o.tokens.header[n]=[],this.inlineTokens(o.header[n],o.tokens.header[n]);for(i=o.cells.length,n=0;n<i;n++)for(s=o.cells[n],o.tokens.cells[n]=[],r=0;r<s.length;r++)o.tokens.cells[n][r]=[],this.inlineTokens(s[r],o.tokens.cells[n][r]);break;case"blockquote":this.inline(o.tokens);break;case"list":for(i=o.items.length,n=0;n<i;n++)this.inline(o.items[n].tokens)}return t},i.inlineTokens=function(t,e,n,r){var i;void 0===e&&(e=[]),void 0===n&&(n=!1),void 0===r&&(r=!1);var s,o,a,l=t;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,s.index)+"["+V("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,s.index)+"["+V("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;t;)if(o||(a=""),o=!1,i=this.tokenizer.escape(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.tag(t,n,r))t=t.substring(i.raw.length),n=i.inLink,r=i.inRawBlock,e.push(i);else if(i=this.tokenizer.link(t))t=t.substring(i.raw.length),"link"===i.type&&(i.tokens=this.inlineTokens(i.text,[],!0,r)),e.push(i);else if(i=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(i.raw.length),"link"===i.type&&(i.tokens=this.inlineTokens(i.text,[],!0,r)),e.push(i);else if(i=this.tokenizer.strong(t,l,a))t=t.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),e.push(i);else if(i=this.tokenizer.em(t,l,a))t=t.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),e.push(i);else if(i=this.tokenizer.codespan(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.br(t))t=t.substring(i.raw.length),e.push(i);else if(i=this.tokenizer.del(t))t=t.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),e.push(i);else if(i=this.tokenizer.autolink(t,L))t=t.substring(i.raw.length),e.push(i);else if(n||!(i=this.tokenizer.url(t,L))){if(i=this.tokenizer.inlineText(t,r,G))t=t.substring(i.raw.length),a=i.raw.slice(-1),o=!0,e.push(i);else if(t){var u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}else t=t.substring(i.raw.length),e.push(i);return e},n=e,r=[{key:"rules",get:function(){return{block:H,inline:F}}}],null&&t(n.prototype,null),r&&t(n,r),e}(),j=r.defaults,U=function(t,e,n){if(t){var r;try{r=decodeURIComponent(h(n)).replace(p,"").toLowerCase()}catch(i){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}e&&!f.test(n)&&(n=function(t,e){g[" "+t]||(g[" "+t]=m.test(t)?t+"/":_(t,"/",!0));var n=-1===(t=g[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(y,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(b,"$1")+e:t+e}(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n},$=v,W=function(){function t(t){this.options=t||j}var e=t.prototype;return e.code=function(t,e,n){var r=(e||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(t,r);null!=i&&i!==t&&(n=!0,t=i)}return r?'<pre><code class="'+this.options.langPrefix+$(r,!0)+'">'+(n?t:$(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:$(t,!0))+"</code></pre>\n"},e.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},e.html=function(t){return t},e.heading=function(t,e,n,r){return this.options.headerIds?"<h"+e+' id="'+this.options.headerPrefix+r.slug(n)+'">'+t+"</h"+e+">\n":"<h"+e+">"+t+"</h"+e+">\n"},e.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},e.list=function(t,e,n){var r=e?"ol":"ul";return"<"+r+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"</"+r+">\n"},e.listitem=function(t){return"<li>"+t+"</li>\n"},e.checkbox=function(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},e.paragraph=function(t){return"<p>"+t+"</p>\n"},e.table=function(t,e){return e&&(e="<tbody>"+e+"</tbody>"),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"},e.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},e.tablecell=function(t,e){var n=e.header?"th":"td";return(e.align?"<"+n+' align="'+e.align+'">':"<"+n+">")+t+"</"+n+">\n"},e.strong=function(t){return"<strong>"+t+"</strong>"},e.em=function(t){return"<em>"+t+"</em>"},e.codespan=function(t){return"<code>"+t+"</code>"},e.br=function(){return this.options.xhtml?"<br/>":"<br>"},e.del=function(t){return"<del>"+t+"</del>"},e.link=function(t,e,n){if(null===(t=U(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<a href="'+$(t)+'"';return e&&(r+=' title="'+e+'"'),r+">"+n+"</a>"},e.image=function(t,e,n){if(null===(t=U(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<img src="'+t+'" alt="'+n+'"';return e&&(r+=' title="'+e+'"'),r+(this.options.xhtml?"/>":">")},e.text=function(t){return t},t}(),z=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),q=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var n=t,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[t];do{n=t+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=r,this.seen[n]=0),n},e.slug=function(t,e){void 0===e&&(e={});var n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)},t}(),X=r.defaults,K=w,Q=function(){function t(t){this.options=t||X,this.options.renderer=this.options.renderer||new W,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new z,this.slugger=new q}t.parse=function(e,n){return new t(n).parse(e)},t.parseInline=function(e,n){return new t(n).parseInline(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var n,r,i,s,o,a,l,c,u,h,d,p,f,g,m,y,b,_,v="",w=t.length;for(n=0;n<w;n++)switch((h=t[n]).type){case"space":continue;case"hr":v+=this.renderer.hr();continue;case"heading":v+=this.renderer.heading(this.parseInline(h.tokens),h.depth,K(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":v+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(c="",l="",s=h.header.length,r=0;r<s;r++)l+=this.renderer.tablecell(this.parseInline(h.tokens.header[r]),{header:!0,align:h.align[r]});for(c+=this.renderer.tablerow(l),u="",s=h.cells.length,r=0;r<s;r++){for(l="",o=(a=h.tokens.cells[r]).length,i=0;i<o;i++)l+=this.renderer.tablecell(this.parseInline(a[i]),{header:!1,align:h.align[i]});u+=this.renderer.tablerow(l)}v+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(h.tokens),v+=this.renderer.blockquote(u);continue;case"list":for(d=h.ordered,p=h.start,f=h.loose,s=h.items.length,u="",r=0;r<s;r++)y=(m=h.items[r]).checked,b=m.task,g="",m.task&&(_=this.renderer.checkbox(y),f?m.tokens.length>0&&"text"===m.tokens[0].type?(m.tokens[0].text=_+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=_+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:_}):g+=_),g+=this.parse(m.tokens,f),u+=this.renderer.listitem(g,b,y);v+=this.renderer.list(u,d,p);continue;case"html":v+=this.renderer.html(h.text);continue;case"paragraph":v+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(u=h.tokens?this.parseInline(h.tokens):h.text;n+1<w&&"text"===t[n+1].type;)u+="\n"+((h=t[++n]).tokens?this.parseInline(h.tokens):h.text);v+=e?this.renderer.paragraph(u):u;continue;default:var S='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(S);throw new Error(S)}return v},e.parseInline=function(t,e){e=e||this.renderer;var n,r,i="",s=t.length;for(n=0;n<s;n++)switch((r=t[n]).type){case"escape":i+=e.text(r.text);break;case"html":i+=e.html(r.text);break;case"link":i+=e.link(r.href,r.title,this.parseInline(r.tokens,e));break;case"image":i+=e.image(r.href,r.title,r.text);break;case"strong":i+=e.strong(this.parseInline(r.tokens,e));break;case"em":i+=e.em(this.parseInline(r.tokens,e));break;case"codespan":i+=e.codespan(r.text);break;case"br":i+=e.br();break;case"del":i+=e.del(this.parseInline(r.tokens,e));break;case"text":i+=e.text(r.text);break;default:var o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(o);throw new Error(o)}return i},t}(),Y=S,Z=function(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},J=v,tt=r.getDefaults,et=r.changeDefaults,nt=r.defaults;function rt(t,e,n){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if("function"==typeof e&&(n=e,e=null),e=Y({},rt.defaults,e||{}),Z(e),n){var r,i=e.highlight;try{r=B.lex(t,e)}catch(l){return n(l)}var s=function(t){var s;if(!t)try{s=Q.parse(r,e)}catch(l){t=l}return e.highlight=i,t?n(t):n(null,s)};if(!i||i.length<3)return s();if(delete e.highlight,!r.length)return s();var o=0;return rt.walkTokens(r,function(t){"code"===t.type&&(o++,setTimeout(function(){i(t.text,t.lang,function(e,n){if(e)return s(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),0==--o&&s()})},0))}),void(0===o&&s())}try{var a=B.lex(t,e);return e.walkTokens&&rt.walkTokens(a,e.walkTokens),Q.parse(a,e)}catch(l){if(l.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+J(l.message+"",!0)+"</pre>";throw l}}return rt.options=rt.setOptions=function(t){return Y(rt.defaults,t),et(rt.defaults),rt},rt.getDefaults=tt,rt.defaults=nt,rt.use=function(t){var e=Y({},t);if(t.renderer&&function(){var n=rt.defaults.renderer||new W,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a=t.renderer[e].apply(n,s);return!1===a&&(a=r.apply(n,s)),a}};for(var i in t.renderer)r(i);e.renderer=n}(),t.tokenizer&&function(){var n=rt.defaults.tokenizer||new A,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a=t.tokenizer[e].apply(n,s);return!1===a&&(a=r.apply(n,s)),a}};for(var i in t.tokenizer)r(i);e.tokenizer=n}(),t.walkTokens){var n=rt.defaults.walkTokens;e.walkTokens=function(e){t.walkTokens(e),n&&n(e)}}rt.setOptions(e)},rt.walkTokens=function(t,e){for(var r,i=n(t);!(r=i()).done;){var s=r.value;switch(e(s),s.type){case"table":for(var o,a=n(s.tokens.header);!(o=a()).done;)rt.walkTokens(o.value,e);for(var l,c=n(s.tokens.cells);!(l=c()).done;)for(var u,h=n(l.value);!(u=h()).done;)rt.walkTokens(u.value,e);break;case"list":rt.walkTokens(s.items,e);break;default:s.tokens&&rt.walkTokens(s.tokens,e)}}},rt.parseInline=function(t,e){if(null==t)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");e=Y({},rt.defaults,e||{}),Z(e);try{var n=B.lexInline(t,e);return e.walkTokens&&rt.walkTokens(n,e.walkTokens),Q.parseInline(n,e)}catch(r){if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+J(r.message+"",!0)+"</pre>";throw r}},rt.Parser=Q,rt.parser=Q.parse,rt.Renderer=W,rt.TextRenderer=z,rt.Lexer=B,rt.lexer=B.lex,rt.Tokenizer=A,rt.Slugger=q,rt.parse=rt,rt}()},zUnb:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.r(e);let i=!1;const s={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 o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;o(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})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:s,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(r(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(a){e=a instanceof u?d(a.errors):[a]}}if(l(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(c(n))try{n.unsubscribe()}catch(a){e=e||[],a instanceof u?e=e.concat(d(a.errors)):e.push(a)}}}if(e)throw new u(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof u?e.errors:e),[])}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 s;super(),this._parentSubscriber=t;let o=this;r(e)?s=e:e&&(s=e.next,n=e.error,i=e.complete,e!==a&&(o=Object.create(e),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;s.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}=s;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):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);s.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(),s.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return s.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(o(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 y(t){return t}let b=(()=>{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||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){s.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=_(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?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=_(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function _(t){if(t||(t=s.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{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 S extends f{constructor(t){super(t),this.destination=t}}let T=(()=>{class t extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new S(this)}lift(t){const e=new C(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;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 v;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 v;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 v;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new v;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 b;return t.source=this,t}}return t.create=(t,e)=>new C(t,e),t})();class C extends T{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 x(t){return t&&"function"==typeof t.schedule}function E(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 k(t,e))}}class k{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new A(t,this.project,this.thisArg))}}class A 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 P=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()};function M(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const O=M(),I=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function D(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const R=t=>{if(t&&"function"==typeof t[m])return r=t,t=>{const e=r[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(I(t))return P(t);if(D(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[O])return e=t,t=>{const n=e[O]();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,r};function N(t,e){return new b(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 H(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 b(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(D(t))return function(t,e){return new b(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(I(t))return N(t,e);if(function(t){return t&&"function"==typeof t[O]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b(n=>{const r=new h;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[O](),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 b?t:new b(R(t))}class F 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 G(t,e){if(!e.closed)return t instanceof b?t.subscribe(e):R(t)(e)}function L(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(L((n,r)=>H(t(n,r)).pipe(E((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new B(t,n)))}class B{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new j(t,this.project,this.concurrent))}}class j 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 F(this),n=this.destination;n.add(e);const r=G(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 U(t=Number.POSITIVE_INFINITY){return L(y,t)}function $(t,e){return e?N(t,e):new b(P(t))}function W(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return x(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 b?t[0]:U(e)($(t,n))}function z(){return function(t){return t.lift(new q(t))}}class q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new X(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class X 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 K extends b{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 Y(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return z()(this)}}const Q=(()=>{const t=K.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 Y extends S{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 Z(){return new T}function J(){return t=>{return z()((e=Z,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,Q);return r.source=t,r.subjectFactory=n,r})(t));var e}}function tt(t){return{toString:t}.toString()}const et="__parameters__";function nt(t,e,n){return tt(()=>{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(et)?t[et]:Object.defineProperty(t,et,{value:[]})[et];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})}const rt=nt("Inject",t=>({token:t})),it=nt("Optional"),st=nt("Self"),ot=nt("SkipSelf");var at=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function lt(t){for(let e in t)if(t[e]===lt)return e;throw Error("Could not find renamed property on target object.")}function ct(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ut(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ht(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function dt(t){return pt(t,gt)||pt(t,yt)}function pt(t,e){return t.hasOwnProperty(e)?t[e]:null}function ft(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(bt))?t[mt]:null}const gt=lt({"\u0275prov":lt}),mt=lt({"\u0275inj":lt}),yt=lt({ngInjectableDef:lt}),bt=lt({ngInjectorDef:lt});function _t(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(_t).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 vt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const wt=lt({__forward_ref__:lt});function St(t){return t.__forward_ref__=St,t.toString=function(){return _t(this())},t}function Tt(t){return Ct(t)?t():t}function Ct(t){return"function"==typeof t&&t.hasOwnProperty(wt)&&t.__forward_ref__===St}const xt="undefined"!=typeof globalThis&&globalThis,Et="undefined"!=typeof window&&window,kt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,At="undefined"!=typeof global&&global,Pt=xt||At||Et||kt,Mt=lt({"\u0275cmp":lt}),Ot=lt({"\u0275dir":lt}),It=lt({"\u0275pipe":lt}),Dt=lt({"\u0275mod":lt}),Rt=lt({"\u0275loc":lt}),Nt=lt({"\u0275fac":lt}),Ht=lt({__NG_ELEMENT_ID__:lt});function Ft(t,e,n,r){throw new Error("ASSERTION ERROR: "+t+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}class Vt{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 Gt=new Vt("INJECTOR",-1),Lt={},Bt=/\n/gm,jt="__source",Ut=lt({provide:String,useValue:lt});let $t,Wt=void 0;function zt(t){const e=Wt;return Wt=t,e}function qt(t){const e=$t;return $t=t,e}function Xt(t,e=at.Default){if(void 0===Wt)throw new Error("inject() must be called from an injection context");return null===Wt?Qt(t,void 0,e):Wt.get(t,e&at.Optional?null:void 0,e)}function Kt(t,e=at.Default){return($t||Xt)(Tt(t),e)}function Qt(t,e,n){const r=dt(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&at.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${_t(t)}]`)}function Yt(t){const e=[];for(let n=0;n<t.length;n++){const r=Tt(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=at.Default;for(let e=0;e<r.length;e++){const i=r[e];i instanceof it||"Optional"===i.ngMetadataName||i===it?n|=at.Optional:i instanceof ot||"SkipSelf"===i.ngMetadataName||i===ot?n|=at.SkipSelf:i instanceof st||"Self"===i.ngMetadataName||i===st?n|=at.Self:t=i instanceof rt||i===rt?i.token:i}e.push(Kt(t,n))}else e.push(Kt(r))}return e}class Zt{get(t,e=Lt){if(e===Lt){const e=new Error(`NullInjectorError: No provider for ${_t(t)}!`);throw e.name="NullInjectorError",e}return e}}class Jt{}class te{}function ee(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let r=t[n];Array.isArray(r)?(e===t&&(e=t.slice(0,n)),ee(r,e)):e!==t&&e.push(r)}return e}function ne(t,e){t.forEach(t=>Array.isArray(t)?ne(t,e):e(t))}function re(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ie(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function se(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}function oe(t,e,n){let r=le(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 ae(t,e){const n=le(t,e);if(n>=0)return t[1|n]}function le(t,e){return function(t,e,n){let r=0,i=t.length>>1;for(;i!==r;){const n=r+(i-r>>1),s=t[n<<1];if(e===s)return n<<1;s>e?i=n:r=n+1}return~(i<<1)}(t,e)}var ce=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ue=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const he={},de=[];let pe=0;function fe(t){return tt(()=>{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===ce.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||de,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ue.Emulated,id:"c",styles:t.styles||de,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,i=t.features,s=t.pipes;return n.id+=pe++,n.inputs=_e(t.inputs,e),n.outputs=_e(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(ge):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(me):null,n})}function ge(t){return Se(t)||function(t){return t[Ot]||null}(t)}function me(t){return function(t){return t[It]||null}(t)}const ye={};function be(t){const e={type:t.type,bootstrap:t.bootstrap||de,declarations:t.declarations||de,imports:t.imports||de,exports:t.exports||de,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&tt(()=>{ye[t.id]=t.type}),e}function _e(t,e){if(null==t)return he;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,e&&(e[i]=s)}return n}const ve=fe;function we(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Se(t){return t[Mt]||null}function Te(t,e){return t.hasOwnProperty(Nt)?t[Nt]:null}function Ce(t,e){const n=t[Dt]||null;if(!n&&!0===e)throw new Error(`Type ${_t(t)} does not have '\u0275mod' property.`);return n}const xe=20,Ee=10;function ke(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ae(t){return Array.isArray(t)&&!0===t[1]}function Pe(t){return 0!=(8&t.flags)}function Me(t){return 2==(2&t.flags)}function Oe(t){return 1==(1&t.flags)}function Ie(t){return null!==t.template}function De(t){return 0!=(512&t[2])}class Re extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function Ne(t){return"string"==typeof t?t:null==t?"":""+t}function He(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ne(t)}const Fe=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function Ve(t){return{name:"window",target:t.ownerDocument.defaultView}}function Ge(t){return t instanceof Function?t():t}function Le(t,e){const n=e?" in "+e:"";throw new Re("201",`No provider for ${He(t)} found${n}`)}class Be{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function je(){return Ue}function Ue(t){return t.type.prototype.ngOnChanges&&(t.setInput=We),$e}function $e(){const t=ze(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===he)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function We(t,e,n,r){const i=ze(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:he,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];s[a]=new Be(l&&l.currentValue,e,o===he),t[r]=e}function ze(t){return t.__ngSimpleChanges__||null}je.ngInherit=!0;let qe=void 0;function Xe(){return void 0!==qe?qe:"undefined"!=typeof document?document:void 0}function Ke(t){return!!t.listen}const Qe={createRenderer:(t,e)=>Xe()};function Ye(t){for(;Array.isArray(t);)t=t[0];return t}function Ze(t,e){return Ye(e[t])}function Je(t,e){return Ye(e[t.index])}function tn(t,e){return t.data[e]}function en(t,e){return t[e]}function nn(t,e){const n=e[t];return ke(n)?n:n[0]}function rn(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function sn(t){return 4==(4&t[2])}function on(t){return 128==(128&t[2])}function an(t,e){return null==e?null:t[e]}function ln(t){t[18]=0}function cn(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 un={lFrame:Hn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function hn(){return un.bindingsEnabled}function dn(){return un.lFrame.lView}function pn(){return un.lFrame.tView}function fn(t){un.lFrame.contextLView=t}function gn(){let t=mn();for(;null!==t&&64===t.type;)t=t.parent;return t}function mn(){return un.lFrame.currentTNode}function yn(){const t=un.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function bn(t,e){const n=un.lFrame;n.currentTNode=t,n.isParent=e}function _n(){return un.lFrame.isParent}function vn(){un.lFrame.isParent=!1}function wn(){return un.isInCheckNoChangesMode}function Sn(t){un.isInCheckNoChangesMode=t}function Tn(){const t=un.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Cn(){return un.lFrame.bindingIndex}function xn(){return un.lFrame.bindingIndex++}function En(t){const e=un.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function kn(t){un.lFrame.inI18n=t}function An(t,e){const n=un.lFrame;n.bindingIndex=n.bindingRootIndex=t,Pn(e)}function Pn(t){un.lFrame.currentDirectiveIndex=t}function Mn(){return un.lFrame.currentQueryIndex}function On(t){un.lFrame.currentQueryIndex=t}function In(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Dn(t,e,n){if(n&at.SkipSelf){let r=e,i=t;for(;r=r.parent,!(null!==r||n&at.Host||(r=In(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;e=r,t=i}const r=un.lFrame=Nn();return r.currentTNode=e,r.lView=t,!0}function Rn(t){const e=Nn(),n=t[1];un.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Nn(){const t=un.lFrame,e=null===t?null:t.child;return null===e?Hn(t):e}function Hn(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 Fn(){const t=un.lFrame;return un.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Vn=Fn;function Gn(){const t=Fn();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 Ln(){return un.lFrame.selectedIndex}function Bn(t){un.lFrame.selectedIndex=t}function jn(){const t=un.lFrame;return tn(t.tView,t.selectedIndex)}function Un(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:s,ngAfterViewChecked:o,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)),s&&(t.viewHooks||(t.viewHooks=[])).push(-n,s),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function $n(t,e,n){qn(t,e,3,n)}function Wn(t,e,n,r){(3&t[2])===n&&qn(t,e,n,r)}function zn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function qn(t,e,n,r){const i=null!=r?r:-1;let s=0;for(let o=void 0!==r?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(s=e[o],null!=r&&s>=r)break}else e[o]<0&&(t[18]+=65536),(s<i||-1==i)&&(Xn(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Xn(t,e,n,r){const i=n[r]<0,s=n[r+1],o=t[i?-n[r]:n[r]];i?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,s.call(o)):s.call(o)}const Kn=-1;class Qn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Yn(t,e,n){const r=Ke(t);let i=0;for(;i<n.length;){const s=n[i];if("number"==typeof s){if(0!==s)break;i++;const o=n[i++],a=n[i++],l=n[i++];r?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=n[++i];Jn(o)?r&&t.setProperty(e,o,a):r?t.setAttribute(e,o,a):e.setAttribute(o,a),i++}}return i}function Zn(t){return 3===t||4===t||6===t}function Jn(t){return 64===t.charCodeAt(0)}function tr(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||er(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function er(t,e,n,r,i){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const n=t[s++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=s-1;break}}}for(;s<t.length;){const e=t[s];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==i&&(t[s+1]=i));if(r===t[s+1])return void(t[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,n),null!==r&&t.splice(s++,0,r),null!==i&&t.splice(s++,0,i)}function nr(t){return t!==Kn}function rr(t){return 32767&t}function ir(t,e){let n=t>>16,r=e;for(;n>0;)r=r[15],n--;return r}let sr=!0;function or(t){const e=sr;return sr=t,e}let ar=0;function lr(t,e){const n=ur(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,cr(r.data,t),cr(e,null),cr(r.blueprint,null));const i=hr(t,e),s=t.injectorIndex;if(nr(i)){const t=rr(i),n=ir(i,e),r=n[1].data;for(let i=0;i<8;i++)e[s+i]=n[t+i]|r[t+i]}return e[s+8]=i,s}function cr(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ur(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function hr(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 Kn;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Kn}function dr(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ht)&&(r=n[Ht]),null==r&&(r=n[Ht]=ar++);const i=255&r,s=1<<i,o=64&i,a=32&i,l=e.data;128&i?o?a?l[t+7]|=s:l[t+6]|=s:a?l[t+5]|=s:l[t+4]|=s:o?a?l[t+3]|=s:l[t+2]|=s:a?l[t+1]|=s:l[t]|=s}(t,e,n)}function pr(t,e,n){if(n&at.Optional)return t;Le(e,"NodeInjector")}function fr(t,e,n,r){if(n&at.Optional&&void 0===r&&(r=null),0==(n&(at.Self|at.Host))){const i=t[9],s=qt(void 0);try{return i?i.get(e,r,n&at.Optional):Qt(e,r,n&at.Optional)}finally{qt(s)}}return pr(r,e,n)}function gr(t,e,n,r=at.Default,i){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Ht)?t[Ht]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof s){if(!Dn(e,t,r))return fr(e,n,r,i);try{const t=s();if(null!=t||r&at.Optional)return t;Le(n)}finally{Vn()}}else if("number"==typeof s){if(-1===s){if(!Dn(e,t,r))return r&at.Host?pr(i,n,r):fr(e,n,r,i);try{return new Sr(gn(),dn())}finally{Vn()}}let o=null,a=ur(t,e),l=Kn,c=r&at.Host?e[16][6]:null;for((-1===a||r&at.SkipSelf)&&(l=-1===a?hr(t,e):e[a+8],l!==Kn&&wr(r,!1)?(o=e[1],a=rr(l),e=ir(l,e)):a=-1);-1!==a;){const t=e[1];if(vr(s,a,t.data)){const t=yr(a,e,n,o,r,c);if(t!==mr)return t}l=e[a+8],l!==Kn&&wr(r,e[1].data[a+8]===c)&&vr(s,a,e)?(o=t,a=rr(l),e=ir(l,e)):a=-1}}}return fr(e,n,r,i)}const mr={};function yr(t,e,n,r,i,s){const o=e[1],a=o.data[t+8],l=br(a,o,n,null==r?Me(a)&&sr:r!=o&&0!=(3&a.type),i&at.Host&&s===a);return null!==l?_r(e,o,l,a):mr}function br(t,e,n,r,i){const s=t.providerIndexes,o=e.data,a=1048575&s,l=t.directiveStart,c=s>>20,u=i?a+c:t.directiveEnd;for(let h=r?a:a+c;h<u;h++){const t=o[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(i){const t=o[l];if(t&&Ie(t)&&t.type===n)return l}return null}function _r(t,e,n,r){let i=t[n];const s=e.data;if(i instanceof Qn){const o=i;o.resolving&&function(t,e){throw new Re("200","Circular dependency in DI detected for "+t)}(He(s[n]));const a=or(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?qt(o.injectImpl):null;Dn(t,r,at.Default);try{i=t[n]=o.factory(void 0,s,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=e.type.prototype;if(r){const r=Ue(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==l&&qt(l),or(a),o.resolving=!1,Vn()}}return i}function vr(t,e,n){const r=64&t,i=32&t;let s;return s=128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e],!!(s&1<<t)}function wr(t,e){return!(t&at.Self||t&at.Host&&e)}class Sr{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return gr(this._tNode,this._lView,t,void 0,e)}}function Tr(t){const e=t;if(Ct(t))return()=>{const t=Tr(Tt(e));return t?t():null};let n=Te(e);if(null===n){const t=ft(e);n=t&&t.factory}return n||null}function Cr(t){return tt(()=>{const e=t.prototype.constructor,n=e[Nt]||Tr(e),r=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){const t=i[Nt]||Tr(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function xr(t){return t.ngDebugContext}function Er(t){return t.ngOriginalError}function kr(t,...e){t.error(...e)}class Ar{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||kr}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?xr(t)?xr(t):this._findContext(Er(t)):null}_findOriginalError(t){let e=Er(t);for(;e&&Er(e);)e=Er(e);return e}}let Pr;function Mr(t){var e;return(null===(e=function(){if(void 0===Pr&&(Pr=null,Pt.trustedTypes))try{Pr=Pt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Pr}())||void 0===e?void 0:e.createHTML(t))||t}class Or{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class Ir extends Or{getTypeName(){return"HTML"}}class Dr extends Or{getTypeName(){return"Style"}}class Rr extends Or{getTypeName(){return"Script"}}class Nr extends Or{getTypeName(){return"URL"}}class Hr extends Or{getTypeName(){return"ResourceURL"}}function Fr(t){return t instanceof Or?t.changingThisBreaksApplicationSecurity:t}function Vr(t,e){const n=Gr(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Gr(t){return t instanceof Or&&t.getTypeName()||null}let Lr=!0,Br=!1;function jr(){return Br=!0,Lr}function Ur(t){return function(){try{return!!(new window.DOMParser).parseFromString(Mr(""),"text/html")}catch(t){return!1}}()?new $r:new Wr(t)}class $r{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Mr(t),"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Wr{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Mr(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Mr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const n=e.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const zr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,qr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Xr(t){return(t=String(t)).match(zr)||t.match(qr)?t:(jr()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Kr(t){return(t=String(t)).split(",").map(t=>Xr(t.trim())).join(", ")}function Qr(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Yr(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Zr=Qr("area,br,col,hr,img,wbr"),Jr=Qr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ti=Qr("rp,rt"),ei=Yr(ti,Jr),ni=Yr(Zr,Yr(Jr,Qr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Yr(ti,Qr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ei),ri=Qr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ii=Qr("srcset"),si=Yr(ri,ii,Qr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Qr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),oi=Qr("script,style,template");class ai{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!ni.hasOwnProperty(e))return this.sanitizedSomething=!0,!oi.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,i=e.toLowerCase();if(!si.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let s=t.value;ri[i]&&(s=Xr(s)),ii[i]&&(s=Kr(s)),this.buf.push(" ",e,'="',ui(s),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ni.hasOwnProperty(e)&&!Zr.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(ui(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const li=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ci=/([^\#-~ |!])/g;function ui(t){return t.replace(/&/g,"&").replace(li,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ci,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let hi;function di(t,e){let n=null;try{hi=hi||Ur(t);let r=e?String(e):"";n=hi.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=hi.getInertBodyElement(r)}while(r!==s);const o=new ai,a=o.sanitizeChildren(pi(n)||n);return jr()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=pi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function pi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var fi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function gi(t){const e=yi();return e?e.sanitize(fi.HTML,t)||"":Vr(t,"HTML")?Fr(t):di(Xe(),Ne(t))}function mi(t){const e=yi();return e?e.sanitize(fi.URL,t)||"":Vr(t,"URL")?Fr(t):Xr(Ne(t))}function yi(){const t=dn();return t&&t[12]}function bi(t,e){t.__ngContext__=e}let _i;function vi(t,e){return _i(t,e)}function wi(t){const e=t[3];return Ae(e)?e[3]:e}function Si(t){return Ci(t[13])}function Ti(t){return Ci(t[4])}function Ci(t){for(;null!==t&&!Ae(t);)t=t[4];return t}function xi(t,e,n,r,i){if(null!=r){let s,o=!1;Ae(r)?s=r:ke(r)&&(o=!0,r=r[0]);const a=Ye(r);0===t&&null!==n?null==i?Fi(e,n,a):Hi(e,n,a,i||null,!0):1===t&&null!==n?Hi(e,n,a,i||null,!0):2===t?Xi(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,r,i){const s=n[7];s!==Ye(n)&&xi(e,t,r,s,i);for(let o=Ee;o<n.length;o++){const i=n[o];Qi(i[1],i,t,e,r,s)}}(e,t,s,n,i)}}function Ei(t,e){return Ke(t)?t.createText(e):t.createTextNode(e)}function ki(t,e,n){Ke(t)?t.setValue(e,n):e.textContent=n}function Ai(t,e){return t.createComment(e)}function Pi(t,e,n){return Ke(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Mi(t,e){const n=t[9],r=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,cn(i,-1)),n.splice(r,1)}function Oi(t,e){if(t.length<=Ee)return;const n=Ee+e,r=t[n];if(r){const s=r[17];null!==s&&s!==t&&Mi(s,r),e>0&&(t[n-1][4]=r[4]);const o=ie(t,Ee+e);Qi(r[1],i=r,i[11],2,null,null),i[0]=null,i[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}var i;return r}function Ii(t,e){if(!(256&e[2])){const n=e[11];Ke(n)&&n.destroyNode&&Qi(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Di(t[1],t);for(;e;){let n=null;if(ke(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ke(e)&&Di(e[1],e),e=e[3];null===e&&(e=t),ke(e)&&Di(e[1],e),n=e&&e[4]}e=n}}(e)}}function Di(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 Qn)){const e=n[r+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const i=n[r+1],s="function"==typeof i?i(e):Ye(e[i]),o=t[n[r+2]],a=n[r+3];"boolean"==typeof a?s.removeEventListener(n[r],o,a):a>=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e),1===e[1].type&&Ke(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Ae(e[3])){n!==e[3]&&Mi(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function Ri(t,e,n){return Ni(t,e.parent,n)}function Ni(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,n=e[e[r.index].directiveStart].encapsulation;if(n===ue.None||n===ue.Emulated)return null}return Je(r,n)}function Hi(t,e,n,r,i){Ke(t)?t.insertBefore(e,n,r,i):e.insertBefore(n,r,i)}function Fi(t,e,n){Ke(t)?t.appendChild(e,n):e.appendChild(n)}function Vi(t,e,n,r,i){null!==r?Hi(t,e,n,r,i):Fi(t,e,n)}function Gi(t,e){return Ke(t)?t.parentNode(e):e.parentNode}function Li(t,e,n){return Ui(t,e,n)}function Bi(t,e,n){return 40&t.type?Je(t,n):null}let ji,Ui=Bi;function $i(t,e){Ui=t,ji=e}function Wi(t,e,n,r){const i=Ri(t,r,e),s=e[11],o=Li(r.parent||e[6],r,e);if(null!=i)if(Array.isArray(n))for(let a=0;a<n.length;a++)Vi(s,i,n[a],o,!1);else Vi(s,i,n,o,!1);void 0!==ji&&ji(s,r,e,n,i)}function zi(t,e){if(null!==e){const n=e.type;if(3&n)return Je(e,t);if(4&n)return qi(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return zi(t,n);{const n=t[e.index];return Ae(n)?qi(-1,n):Ye(n)}}if(32&n)return vi(e,t)()||Ye(t[e.index]);{const n=t[16],r=n[6],i=wi(n),s=r.projection[e.projection];return null!=s?zi(i,s):zi(t,e.next)}}return null}function qi(t,e){const n=Ee+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return zi(t,r)}return e[7]}function Xi(t,e,n){const r=Gi(t,e);r&&function(t,e,n,r){Ke(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}function Ki(t,e,n,r,i,s,o){for(;null!=n;){const a=r[n.index],l=n.type;if(o&&0===e&&(a&&bi(Ye(a),r),n.flags|=4),64!=(64&n.flags))if(8&l)Ki(t,e,n.child,r,i,s,!1),xi(e,t,i,a,s);else if(32&l){const o=vi(n,r);let l;for(;l=o();)xi(e,t,i,l,s);xi(e,t,i,a,s)}else 16&l?Yi(t,e,r,n,i,s):xi(e,t,i,a,s);n=o?n.projectionNext:n.next}}function Qi(t,e,n,r,i,s){Ki(n,r,t.firstChild,e,i,s,!1)}function Yi(t,e,n,r,i,s){const o=n[16],a=o[6].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)xi(e,t,i,a[l],s);else Ki(t,e,a,o[3],i,s,!0)}function Zi(t,e,n){Ke(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Ji(t,e,n){Ke(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function ts(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 es="ng-template";function ns(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];if(n&&"class"===i){if(i=t[r],-1!==ts(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 rs(t){return 4===t.type&&t.value!==es}function is(t,e,n){return e===(4!==t.type||n?t.value:es)}function ss(t,e,n){let r=4;const i=t.attrs||[],s=function(t){for(let e=0;e<t.length;e++)if(Zn(t[e]))return e;return t.length}(i);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!is(t,l,n)||""===l&&1===e.length){if(os(r))return!1;o=!0}}else{const c=8&r?l:e[++a];if(8&r&&null!==t.attrs){if(!ns(t.attrs,c,n)){if(os(r))return!1;o=!0}continue}const u=as(8&r?"class":l,i,rs(t),n);if(-1===u){if(os(r))return!1;o=!0;continue}if(""!==c){let t;t=u>s?"":i[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==ts(e,c,0)||2&r&&c!==t){if(os(r))return!1;o=!0}}}}else{if(!o&&!os(r)&&!os(l))return!1;if(o&&os(l))continue;o=!1,r=l|1&r}}return os(r)||o}function os(t){return 0==(1&t)}function as(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 ls(t,e,n=!1){for(let r=0;r<e.length;r++)if(ss(t,e[r],n))return!0;return!1}function cs(t,e){t:for(let n=0;n<e.length;n++){const r=e[n];if(t.length===r.length){for(let e=0;e<t.length;e++)if(t[e]!==r[e])continue t;return!0}}return!1}function us(t,e){return t?":not("+e.trim()+")":e}function hs(t){let e=t[0],n=1,r=2,i="",s=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&r){const e=t[++n];i+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""===i||os(o)||(e+=us(s,i),i=""),r=o,s=s||!os(r);n++}return""!==i&&(e+=us(s,i)),e}const ds={};function ps(t){fs(pn(),dn(),Ln()+t,wn())}function fs(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&$n(e,r,n)}else{const r=t.preOrderHooks;null!==r&&Wn(e,r,0,n)}Bn(n)}function gs(t,e){return t<<17|e<<2}function ms(t){return t>>17&32767}function ys(t){return 2|t}function bs(t){return(131068&t)>>2}function _s(t,e){return-131069&t|e<<2}function vs(t){return 1|t}function ws(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],s=n[r+1];if(-1!==s){const n=t.data[s];On(i),n.contentQueries(2,e[s],s)}}}function Ss(t,e,n,r,i,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=i,u[2]=140|r,ln(u),u[3]=u[15]=t,u[8]=n,u[10]=o||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]=s,u[16]=2==e.type?t[16]:u,u}function Ts(t,e,n,r,i){let s=t.data[e];if(null===s)s=Cs(t,e,n,r,i),un.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=r,s.attrs=i;const t=yn();s.injectorIndex=null===t?-1:t.injectorIndex}return bn(s,!0),s}function Cs(t,e,n,r,i){const s=mn(),o=_n(),a=t.data[e]=Hs(0,o?s:s&&s.parent,n,e,r,i);return null===t.firstChild&&(t.firstChild=a),null!==s&&(o?null==s.child&&null!==a.parent&&(s.child=a):null===s.next&&(s.next=a)),a}function xs(t,e,n,r){if(0===n)return-1;const i=e.length;for(let s=0;s<n;s++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function Es(t,e,n){Rn(e);try{const r=t.viewQuery;null!==r&&io(1,r,n);const i=t.template;null!==i&&Ps(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&ws(t,e),t.staticViewQueries&&io(2,t.viewQuery,n);const s=t.components;null!==s&&function(t,e){for(let n=0;n<e.length;n++)Js(t,e[n])}(e,s)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),r}finally{e[2]&=-5,Gn()}}function ks(t,e,n,r){const i=e[2];if(256==(256&i))return;Rn(e);const s=wn();try{ln(e),un.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Ps(t,e,n,2,r);const o=3==(3&i);if(!s)if(o){const n=t.preOrderCheckHooks;null!==n&&$n(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Wn(e,n,0,null),zn(e,0)}if(function(t){for(let e=Si(t);null!==e;e=Ti(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])&&cn(r,1),n[2]|=1024}}}(e),function(t){for(let e=Si(t);null!==e;e=Ti(e))for(let t=Ee;t<e.length;t++){const n=e[t],r=n[1];on(n)&&ks(r,n,r.template,n[8])}}(e),null!==t.contentQueries&&ws(t,e),!s)if(o){const n=t.contentCheckHooks;null!==n&&$n(e,n)}else{const n=t.contentHooks;null!==n&&Wn(e,n,1),zn(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)Bn(~r);else{const i=r,s=n[++t],o=n[++t];An(s,i),o(2,e[i])}}}finally{Bn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Ys(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&io(2,l,r),!s)if(o){const n=t.viewCheckHooks;null!==n&&$n(e,n)}else{const n=t.viewHooks;null!==n&&Wn(e,n,2),zn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,cn(e[3],-1))}finally{Gn()}}function As(t,e,n,r){const i=e[10],s=!wn(),o=sn(e);try{s&&!o&&i.begin&&i.begin(),o&&Es(t,e,r),ks(t,e,n,r)}finally{s&&!o&&i.end&&i.end()}}function Ps(t,e,n,r,i){const s=Ln();try{Bn(-1),2&r&&e.length>xe&&fs(t,e,xe,wn()),n(r,i)}finally{Bn(s)}}function Ms(t,e,n){if(Pe(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)}}}function Os(t,e,n){hn()&&(function(t,e,n,r){const i=n.directiveStart,s=n.directiveEnd;t.firstCreatePass||lr(n,e),bi(r,e);const o=n.initialInputs;for(let a=i;a<s;a++){const r=t.data[a],s=Ie(r);s&&zs(e,n,r);const l=_r(e,t,a,n);bi(l,e),null!==o&&Xs(0,a-i,l,r,0,o),s&&(nn(n.index,e)[8]=l)}}(t,e,n,Je(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,i=n.directiveEnd,s=n.index,o=un.lFrame.currentDirectiveIndex;try{Bn(s);for(let n=r;n<i;n++){const r=t.data[n],i=e[n];Pn(n),null===r.hostBindings&&0===r.hostVars&&null===r.hostAttrs||Bs(r,i)}}finally{Bn(-1),Pn(o)}}(t,e,n))}function Is(t,e,n=Je){const r=e.localNames;if(null!==r){let i=e.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?n(e,t):t[o];t[i++]=a}}}function Ds(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Rs(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Rs(t,e,n,r,i,s,o,a,l,c){const u=xe+r,h=u+i,d=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:ds);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 s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Ns(t,e,n,r){const i=oo(e);i.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(r,i.length-1)}function Hs(t,e,n,r,i,s){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:s,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}}function Fs(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 Vs(t,e,n,r,i,s,o,a){const l=Je(e,n);let c,u=e.inputs;var h;!a&&null!=u&&(c=u[r])?(lo(t,n,c,r,i),Me(e)&&function(t,e){const n=nn(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!=o?o(i,e.value||"",r):i,Ke(s)?s.setProperty(l,r,i):Jn(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function Gs(t,e,n,r){let i=!1;if(hn()){const s=function(t,e,n){const r=t.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const o=r[s];ls(n,o.selectors,!1)&&(i||(i=[]),dr(lr(n,e),t,o.type),Ie(o)?(js(t,n),i.unshift(o)):i.push(o))}return i}(t,e,n),o=null===r?null:{"":-1};if(null!==s){i=!0,$s(n,t.data.length,s.length);for(let t=0;t<s.length;t++){const e=s[t];e.providersResolver&&e.providersResolver(e)}let r=!1,a=!1,l=xs(t,e,s.length,null);for(let i=0;i<s.length;i++){const c=s[i];n.mergedAttrs=tr(n.mergedAttrs,c.hostAttrs),Ws(t,n,e,l,c),Us(l,c,o),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,s=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=r[l],n=t.inputs,c=null===i||rs(e)?null:Ks(n,i);s.push(c),o=Fs(n,l,o),a=Fs(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,e.inputs=o,e.outputs=a}(t,n)}o&&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 Re("301",`Export of name '${e[t+1]}' not found!`);r.push(e[t],i)}}}(n,r,o)}return n.mergedAttrs=tr(n.mergedAttrs,n.attrs),i}function Ls(t,e,n,r,i,s){const o=s.hostBindings;if(o){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const s=~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)!=s&&n.push(s),n.push(r,i,o)}}function Bs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function js(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Us(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 $s(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Ws(t,e,n,r,i){t.data[r]=i;const s=i.factory||(i.factory=Te(i.type)),o=new Qn(s,Ie(i),null);t.blueprint[r]=o,n[r]=o,Ls(t,e,0,r,xs(t,n,i.hostVars,ds),i)}function zs(t,e,n){const r=Je(e,t),i=Ds(n),s=t[10],o=to(t,Ss(t,i,null,n.onPush?64:16,r,e,s,s.createRenderer(r,n),null,null));t[e.index]=o}function qs(t,e,n,r,i,s,o){if(null==s)Ke(t)?t.removeAttribute(e,i,n):e.removeAttribute(i);else{const a=null==o?Ne(s):o(s,r||"",i);Ke(t)?t.setAttribute(e,i,a,n):n?e.setAttributeNS(n,i,a):e.setAttribute(i,a)}}function Xs(t,e,n,r,i,s){const o=s[e];if(null!==o){const t=r.setInput;for(let e=0;e<o.length;){const i=o[e++],s=o[e++],a=o[e++];null!==t?r.setInput(n,a,i,s):n[s]=a}}}function Ks(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 Qs(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function Ys(t,e){const n=nn(e,t);if(on(n)){const t=n[1];80&n[2]?ks(t,n,t.template,n[8]):n[5]>0&&Zs(n)}}function Zs(t){for(let n=Si(t);null!==n;n=Ti(n))for(let t=Ee;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];ks(t,e,t.template,e[8])}else e[5]>0&&Zs(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const r=nn(e[n],t);on(r)&&r[5]>0&&Zs(r)}}function Js(t,e){const n=nn(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),Es(r,n,n[8])}function to(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function eo(t){for(;t;){t[2]|=64;const e=wi(t);if(De(t)&&!e)return t;t=e}return null}function no(t,e,n){const r=e[10];r.begin&&r.begin();try{ks(t,e,t.template,n)}catch(i){throw ao(e,i),i}finally{r.end&&r.end()}}function ro(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=rn(n),i=r[1];As(i,r,i.template,n)}}(t[8])}function io(t,e,n){On(0),e(t,n)}const so=(()=>Promise.resolve(null))();function oo(t){return t[7]||(t[7]=[])}function ao(t,e){const n=t[9],r=n?n.get(Ar,null):null;r&&r.handleError(e)}function lo(t,e,n,r,i){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,i,r,a):l[a]=i}}function co(t,e,n){const r=Ze(e,t);ki(t[11],r,n)}class uo{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView,e=t[1];return po(e,t,e.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Ii(this._lView[1],this._lView)}onDestroy(t){Ns(this._lView[1],this._lView,null,t)}markForCheck(){eo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){no(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Sn(!0);try{no(t,e,n)}finally{Sn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Qi(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class ho extends uo{constructor(t){super(t),this._view=t}detectChanges(){ro(this._view)}checkNoChanges(){!function(t){Sn(!0);try{ro(t)}finally{Sn(!1)}}(this._view)}get context(){return null}}function po(t,e,n,r,i=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&r.push(Ye(s)),Ae(s))for(let t=Ee;t<s.length;t++){const e=s[t],n=e[1].firstChild;null!==n&&po(e[1],e,n,r)}const o=n.type;if(8&o)po(t,e,n.child,r);else if(32&o){const t=vi(n,e);let i;for(;i=t();)r.push(i)}else if(16&o){const t=e[16],i=t[6].projection[n.projection];if(Array.isArray(i))r.push(...i);else{const e=wi(t);po(e[1],e,i,r,!0)}}n=i?n.projectionNext:n.next}return r}let fo,go,mo;function yo(t,e,n){return fo||(fo=class extends t{}),new fo(Je(e,n))}function bo(t,e,n,r){return go||(go=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ss(this._declarationView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Es(e,n,t),new uo(n)}}),4&n.type?new go(r,n,yo(e,n,r)):null}function _o(t,e,n,r){let i;mo||(mo=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return yo(e,this._hostTNode,this._hostView)}get injector(){return new Sr(this._hostTNode,this._hostView)}get parentInjector(){const t=hr(this._hostTNode,this._hostView);if(nr(t)){const e=ir(t,this._hostView),n=rr(t);return new Sr(e[1].data[n+8],e)}return new Sr(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-Ee}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,i){const s=n||this.parentInjector;if(!i&&null==t.ngModule&&s){const t=s.get(Jt,null);t&&(i=t)}const o=t.create(s,r,void 0,i);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ae(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new mo(e,e[6],e[3]);r.detach(r.indexOf(t))}}const i=this._adjustIndex(e),s=this._lContainer;!function(t,e,n,r){const i=Ee+r,s=n.length;r>0&&(n[i-1][4]=e),r<s-Ee?(e[4]=n[i],re(n,Ee+r,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(r,n,s,i);const o=qi(i,s),a=n[11],l=Gi(a,s[7]);return null!==l&&function(t,e,n,r,i,s){r[0]=i,r[6]=e,Qi(t,r,n,1,i,s)}(r,s[6],a,n,l,o),t.attachToViewContainerRef(this),re(s[8],i,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Oi(this._lContainer,e);n&&(ie(this._lContainer[8],e),Ii(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Oi(this._lContainer,e);return n&&null!=ie(this._lContainer[8],e)?new uo(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const s=r[n.index];if(Ae(s))i=s;else{let t;if(8&n.type)t=Ye(s);else if(t=r[11].createComment(""),De(r)){const e=r[11],i=Je(n,r);Hi(e,Gi(e,i),t,function(t,e){return Ke(t)?t.nextSibling(e):e.nextSibling}(e,i),!1)}else{const e=Hs(0,n.parent,4,0,null,null);Wi(r[1],r,t,e)}r[n.index]=i=Qs(s,r,t,n),to(r,i)}return new mo(i,n,r)}function vo(t=!1){return function(t,e,n){if(!n&&Me(t)){const n=nn(t.index,e);return new uo(n,n)}return 47&t.type?new uo(e[16],e):null}(gn(),dn(),t)}let wo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>So(),t})();const So=vo,To=Function,Co=new Vt("Set Injector scope."),xo={},Eo={},ko=[];let Ao=void 0;function Po(){return void 0===Ao&&(Ao=new Zt),Ao}function Mo(t,e=null,n=null,r){return new Oo(t,n,e||Po(),r)}class Oo{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&&ne(e,n=>this.processProvider(n,t,e)),ne([t],t=>this.processInjectorType(t,[],i)),this.records.set(Gt,Ro(void 0,this));const s=this.records.get(Co);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof t?null:_t(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=Lt,n=at.Default){this.assertNotDestroyed();const r=zt(this);try{if(!(n&at.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof Vt)&&dt(t);e=n&&this.injectableDefInScope(n)?Ro(Io(t),xo):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&at.Self?Po():this.parent).get(t,e=n&at.Optional&&e===Lt?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(_t(t)),r)throw s;return function(t,e,n,r){const i=t.ngTempTokenPath;throw e[jt]&&i.unshift(e[jt]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=_t(e);if(Array.isArray(e))i=e.map(_t).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):_t(r)))}i=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Bt,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{zt(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(_t(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=Tt(t)))return!1;let r=ft(t);const i=null==r&&t.ngModule||void 0,s=void 0===i?t:i,o=-1!==n.indexOf(s);if(void 0!==i&&(r=ft(i)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(s);try{ne(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];ne(r,t=>this.processProvider(t,n,r||ko))}}this.injectorDefTypes.add(s),this.records.set(s,Ro(r.factory,xo));const a=r.providers;if(null!=a&&!o){const e=t;ne(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let r=Ho(t=Tt(t))?t:Tt(t&&t.provide);const i=function(t,e,n){return No(t)?Ro(void 0,t.useValue):Ro(Do(t),xo)}(t);if(Ho(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=Ro(void 0,xo,!0),e.factory=()=>Yt(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===xo&&(e.value=Eo,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){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Io(t){const e=dt(t),n=null!==e?e.factory:Te(t);if(null!==n)return n;const r=ft(t);if(null!==r)return r.factory;if(t instanceof Vt)throw new Error(`Token ${_t(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=se(e,"?");throw new Error(`Can't resolve all parameters for ${_t(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[gt]||t[yt]);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 Do(t,e,n){let r=void 0;if(Ho(t)){const e=Tt(t);return Te(e)||Io(e)}if(No(t))r=()=>Tt(t.useValue);else if((i=t)&&i.useFactory)r=()=>t.useFactory(...Yt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>Kt(Tt(t.useExisting));else{const e=Tt(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Te(e)||Io(e);r=()=>new e(...Yt(t.deps))}var i;return r}function Ro(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function No(t){return null!==t&&"object"==typeof t&&Ut in t}function Ho(t){return"function"==typeof t}const Fo=function(t,e,n){return function(t,e=null,n=null,r){const i=Mo(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let Vo=(()=>{class t{static create(t,e){return Array.isArray(t)?Fo(t,e,""):Fo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Lt,t.NULL=new Zt,t.\u0275prov=ut({token:t,providedIn:"any",factory:()=>Kt(Gt)}),t.__NG_ELEMENT_ID__=-1,t})();const Go=new Vt("AnalyzeForEntryComponents");function Lo(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?s=t:1==s?i=vt(i,t):2==s&&(r=vt(r,t+": "+e[++o]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}function Bo(t,e){Un(rn(t)[1],gn())}function jo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let i=void 0;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=Uo(t.inputs),e.declaredInputs=Uo(t.declaredInputs),e.outputs=Uo(t.outputs);const n=i.hostBindings;n&&zo(t,n);const s=i.viewQuery,o=i.contentQueries;if(s&&$o(t,s),o&&Wo(t,o),ct(t.inputs,i.inputs),ct(t.declaredInputs,i.declaredInputs),ct(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===jo&&(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=tr(i.hostAttrs,n=tr(n,i.hostAttrs))}}(r)}function Uo(t){return t===he?{}:t===de?[]:t}function $o(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function Wo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,i)=>{e(t,r,i),n(t,r,i)}:e}function zo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}let qo=null;function Xo(){if(!qo){const t=Pt.Symbol;if(t&&t.iterator)qo=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&&(qo=n)}}}return qo}class Ko{constructor(t){this.wrapped=t}static wrap(t){return new Ko(t)}static unwrap(t){return Ko.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Ko}}function Qo(t){return!!Yo(t)&&(Array.isArray(t)||!(t instanceof Map)&&Xo()in t)}function Yo(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Zo(t,e,n){return t[e]=n}function Jo(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function ta(t,e,n,r){const i=Jo(t,e,n);return Jo(t,e+1,r)||i}function ea(t,e,n,r){const i=dn();return Jo(i,xn(),e)&&(pn(),function(t,e,n,r,i,s){const o=Je(t,e);qs(e[11],o,s,t.value,n,r,i)}(jn(),i,t,e,n,r)),ea}function na(t,e,n,r){return Jo(t,xn(),n)?e+Ne(n)+r:ds}function ra(t,e,n,r,i,s,o,a){const l=dn(),c=pn(),u=t+xe,h=c.firstCreatePass?function(t,e,n,r,i,s,o,a,l){const c=e.consts,u=Ts(e,t,4,o||null,an(c,a));Gs(e,n,u,an(c,l)),Un(e,u);const h=u.tViews=Rs(2,u,r,i,s,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,s,o):c.data[u];bn(h,!1);const d=l[11].createComment("");Wi(c,l,d,h),bi(d,l),to(l,l[u]=Qs(d,l,d,h)),Oe(h)&&Os(c,l,h),null!=o&&Is(l,h,a)}function ia(t){return en(un.lFrame.contextLView,xe+t)}function sa(t,e=at.Default){const n=dn();return null===n?Kt(t,e):gr(gn(),n,Tt(t),e)}function oa(t,e,n){const r=dn();return Jo(r,xn(),e)&&Vs(pn(),jn(),r,t,e,r[11],n,!1),oa}function aa(t,e,n,r,i){const s=i?"class":"style";lo(t,n,e.inputs[s],s,r)}function la(t,e,n,r){const i=dn(),s=pn(),o=xe+t,a=i[11],l=i[o]=Pi(a,e,un.lFrame.currentNamespace),c=s.firstCreatePass?function(t,e,n,r,i,s,o){const a=e.consts,l=Ts(e,t,2,i,an(a,s));return Gs(e,n,l,an(a,o)),null!==l.attrs&&Lo(l,l.attrs,!1),null!==l.mergedAttrs&&Lo(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,s,i,0,e,n,r):s.data[o];bn(c,!0);const u=c.mergedAttrs;null!==u&&Yn(a,l,u);const h=c.classes;null!==h&&Ji(a,l,h);const d=c.styles;null!==d&&Zi(a,l,d),64!=(64&c.flags)&&Wi(s,i,l,c),0===un.lFrame.elementDepthCount&&bi(l,i),un.lFrame.elementDepthCount++,Oe(c)&&(Os(s,i,c),Ms(s,c,i)),null!==r&&Is(i,c)}function ca(){let t=gn();_n()?vn():(t=t.parent,bn(t,!1));const e=t;un.lFrame.elementDepthCount--;const n=pn();n.firstCreatePass&&(Un(n,t),Pe(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&aa(n,e,dn(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&aa(n,e,dn(),e.stylesWithoutHost,!1)}function ua(t,e,n,r){la(t,e,n,r),ca()}function ha(t,e,n){const r=dn(),i=pn(),s=t+xe,o=i.firstCreatePass?function(t,e,n,r,i){const s=e.consts,o=an(s,r),a=Ts(e,t,8,"ng-container",o);return null!==o&&Lo(a,o,!0),Gs(e,n,a,an(s,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,i,r,e,n):i.data[s];bn(o,!0);const a=r[s]=r[11].createComment("");Wi(i,r,a,o),bi(a,r),Oe(o)&&(Os(i,r,o),Ms(i,o,r)),null!=n&&Is(r,o)}function da(){let t=gn();const e=pn();_n()?vn():(t=t.parent,bn(t,!1)),e.firstCreatePass&&(Un(e,t),Pe(t)&&e.queries.elementEnd(t))}function pa(){return dn()}function fa(t){return!!t&&"function"==typeof t.then}function ga(t){return!!t&&"function"==typeof t.subscribe}function ma(t,e,n=!1,r){const i=dn(),s=pn(),o=gn();return function(t,e,n,r,i,s,o=!1,a){const l=Oe(r),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=oo(e);let h=!0;if(3&r.type){const d=Je(r,e),p=a?a(d):he,f=p.target||d,g=u.length,m=a?t=>a(Ye(t[r.index])).target:r.index;if(Ke(n)){let o=null;if(!a&&l&&(o=function(t,e,n,r){const i=t.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const t=i[s];if(t===n&&i[s+1]===r){const t=e[7],n=i[s+2];return t.length>n?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,i,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,h=!1;else{s=ba(r,e,s,!1);const t=n.listen(p.name||f,i,s);u.push(s,t),c&&c.push(i,m,g,g+1)}}else s=ba(r,e,s,!0),f.addEventListener(i,s,o),u.push(s),c&&c.push(i,m,g,o)}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(s),o=u.length;u.push(s,t),c&&c.push(i,r.index,o,-(o+1))}}}(s,i,i[11],o,t,e,n,r),ma}function ya(t,e,n){try{return!1!==e(n)}catch(r){return ao(t,r),!1}}function ba(t,e,n,r){return function i(s){if(s===Function)return n;const o=2&t.flags?nn(t.index,e):e;0==(32&e[2])&&eo(o);let a=ya(e,n,s),l=i.__ngNextListenerFn__;for(;l;)a=ya(e,l,s)&&a,l=l.__ngNextListenerFn__;return r&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function _a(t=1){return function(t){return(un.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,un.lFrame.contextLView))[8]}(t)}function va(t,e){let n=null;const r=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let i=0;i<e.length;i++){const s=e[i];if("*"!==s){if(null===r?ls(t,s,!0):cs(r,s))return i}else n=i}return n}function wa(t){const e=dn()[16][6];if(!e.projection){const n=e.projection=se(t?t.length:1,null),r=n.slice();let i=e.child;for(;null!==i;){const e=t?va(i,t):0;null!==e&&(r[e]?r[e].projectionNext=i:n[e]=i,r[e]=i),i=i.next}}}function Sa(t,e=0,n){const r=dn(),i=pn(),s=Ts(i,xe+t,16,null,n||null);null===s.projection&&(s.projection=e),vn(),64!=(64&s.flags)&&function(t,e,n){Yi(e[11],0,e,n,Ri(t,n,e),Li(n.parent||e[6],n,e))}(i,r,s)}const Ta=[];function Ca(t,e,n,r,i){const s=t[n+1],o=null===e;let a=r?ms(s):bs(s),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];xa(t[a],e)&&(l=!0,t[a+1]=r?vs(n):ys(n)),a=r?ms(n):bs(n)}l&&(t[n+1]=r?ys(s):vs(s))}function xa(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&le(t,e)>=0}const Ea={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ka(t){return t.substring(Ea.key,Ea.keyEnd)}function Aa(t,e){const n=Ea.textEnd;return n===e?-1:(e=Ea.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,Ea.key=e,n),Pa(t,e,n))}function Pa(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Ma(t,e,n){return Ra(t,e,n,!1),Ma}function Oa(t,e){return Ra(t,e,null,!0),Oa}function Ia(t){Na(oe,Da,t,!0)}function Da(t,e){for(let n=function(t){return function(t){Ea.key=0,Ea.keyEnd=0,Ea.value=0,Ea.valueEnd=0,Ea.textEnd=t.length}(t),Aa(t,Pa(t,0,Ea.textEnd))}(e);n>=0;n=Aa(e,n))oe(t,ka(e),!0)}function Ra(t,e,n,r){const i=dn(),s=pn(),o=En(2);s.firstUpdatePass&&Fa(s,t,o,r),e!==ds&&Jo(i,o,e)&&La(s,s.data[Ln()],i,i[11],t,i[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=_t(Fr(t)))),t}(e,n),r,o)}function Na(t,e,n,r){const i=pn(),s=En(2);i.firstUpdatePass&&Fa(i,null,s,r);const o=dn();if(n!==ds&&Jo(o,s,n)){const a=i.data[Ln()];if(Ua(a,r)&&!Ha(i,s)){let t=r?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=vt(t,n||"")),aa(i,a,o,n,r)}else!function(t,e,n,r,i,s,o,a){i===ds&&(i=Ta);let l=0,c=0,u=0<i.length?i[0]:null,h=0<s.length?s[0]:null;for(;null!==u||null!==h;){const d=l<i.length?i[l+1]:void 0,p=c<s.length?s[c+1]:void 0;let f=null,g=void 0;u===h?(l+=2,c+=2,d!==p&&(f=h,g=p)):null===h||null!==u&&u<h?(l+=2,f=u):(c+=2,f=h,g=p),null!==f&&La(t,e,n,r,f,g,o,a),u=l<i.length?i[l]:null,h=c<s.length?s[c]:null}}(i,a,o,o[11],o[s+1],o[s+1]=function(t,e,n){if(null==n||""===n)return Ta;const r=[],i=Fr(n);if(Array.isArray(i))for(let s=0;s<i.length;s++)t(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&t(r,s,i[s]);else"string"==typeof i&&e(r,i);return r}(t,e,n),r,s)}}function Ha(t,e){return e>=t.expandoStartIndex}function Fa(t,e,n,r){const i=t.data;if(null===i[n+1]){const s=i[Ln()],o=Ha(t,n);Ua(s,r)&&null===e&&!o&&(e=!1),e=function(t,e,n,r){const i=function(t){const e=un.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let s=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=Ga(n=Va(null,t,e,n,r),e.attrs,r),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==i)if(n=Va(i,t,e,n,r),null===s){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==bs(r))return t[ms(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=Va(null,t,e,n[1],r),n=Ga(n,e.attrs,r),function(t,e,n,r){t[ms(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else s=function(t,e,n){let r=void 0;const i=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<i;s++)r=Ga(r,t[s].hostAttrs,n);return Ga(r,e.attrs,n)}(t,e,r)}return void 0!==s&&(r?e.residualClasses=s:e.residualStyles=s),n}(i,s,e,r),function(t,e,n,r,i,s){let o=s?e.classBindings:e.styleBindings,a=ms(o),l=bs(o);t[r]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||le(t,c)>0)&&(u=!0)}else c=n;if(i)if(0!==l){const e=ms(t[a+1]);t[r+1]=gs(e,a),0!==e&&(t[e+1]=_s(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=gs(a,0),0!==a&&(t[a+1]=_s(t[a+1],r)),a=r;else t[r+1]=gs(l,0),0===a?a=r:t[l+1]=_s(t[l+1],r),l=r;u&&(t[r+1]=ys(t[r+1])),Ca(t,c,r,!0),Ca(t,c,r,!1),function(t,e,n,r,i){const s=i?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&le(s,e)>=0&&(n[r+1]=vs(n[r+1]))}(e,c,t,r,s),o=gs(a,l),s?e.classBindings=o:e.styleBindings=o}(i,s,e,n,o,r)}}function Va(t,e,n,r,i){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=e[a],r=Ga(r,s.hostAttrs,i),s!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Ga(t,e,n){const r=n?1:2;let i=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?i=o:i===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),oe(t,o,!!n||e[++s]))}return void 0===t?null:t}function La(t,e,n,r,i,s,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];ja(1==(1&c)?Ba(l,e,n,i,bs(c),o):void 0)||(ja(s)||2==(2&c)&&(s=Ba(l,null,n,i,a,o)),function(t,e,n,r,i){const s=Ke(t);if(e)i?s?t.addClass(n,r):n.classList.add(r):s?t.removeClass(n,r):n.classList.remove(r);else{const e=-1==r.indexOf("-")?void 0:2;null==i?s?t.removeStyle(n,r,e):n.style.removeProperty(r):s?t.setStyle(n,r,i,e):n.style.setProperty(r,i)}}(r,o,Ze(Ln(),n),i,s))}function Ba(t,e,n,r,i,s){const o=null===e;let a=void 0;for(;i>0;){const e=t[i],s=Array.isArray(e),l=s?e[1]:e,c=null===l;let u=n[i+1];u===ds&&(u=c?Ta:void 0);let h=c?ae(u,r):l===r?u:void 0;if(s&&!ja(h)&&(h=ae(e,r)),ja(h)&&(a=h,o))return a;const d=t[i+1];i=o?ms(d):bs(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=ae(t,r))}return a}function ja(t){return void 0!==t}function Ua(t,e){return 0!=(t.flags&(e?16:32))}function $a(t,e=""){const n=dn(),r=pn(),i=t+xe,s=r.firstCreatePass?Ts(r,i,1,e,null):r.data[i],o=n[i]=Ei(n[11],e);Wi(r,n,o,s),bn(s,!1)}function Wa(t){return za("",t,""),Wa}function za(t,e,n){const r=dn(),i=na(r,t,e,n);return i!==ds&&co(r,Ln(),i),za}function qa(t,e,n,r,i){const s=dn(),o=function(t,e,n,r,i,s){const o=ta(t,Cn(),n,i);return En(2),o?e+Ne(n)+r+Ne(i)+s:ds}(s,t,e,n,r,i);return o!==ds&&co(s,Ln(),o),qa}function Xa(t,e,n,r,i,s,o,a,l,c,u,h,d){const p=dn(),f=function(t,e,n,r,i,s,o,a,l,c,u,h,d,p){const f=Cn();let g=function(t,e,n,r,i,s){const o=ta(t,e,n,r);return ta(t,e+2,i,s)||o}(t,f,n,i,o,l);return g=ta(t,f+4,u,d)||g,En(6),g?e+Ne(n)+r+Ne(i)+s+Ne(o)+a+Ne(l)+c+Ne(u)+h+Ne(d)+p:ds}(p,t,e,n,r,i,s,o,a,l,c,u,h,d);return f!==ds&&co(p,Ln(),f),Xa}function Ka(t,e,n){Na(oe,Da,na(dn(),t,e,n),!0)}function Qa(t,e,n){const r=dn();return Jo(r,xn(),e)&&Vs(pn(),jn(),r,t,e,r[11],n,!0),Qa}const Ya=void 0;var Za=["en",[["a","p"],["AM","PM"],Ya],[["AM","PM"],Ya,Ya],[["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"]],Ya,[["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"]],Ya,[["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}",Ya,"{1} 'at' {0}",Ya],[".",",",";","%","+","-","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 Ja={};function tl(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=nl(e);if(n)return n;const r=e.split("-")[0];if(n=nl(r),n)return n;if("en"===r)return Za;throw new Error(`Missing locale data for the locale "${t}".`)}function el(t){return tl(t)[rl.PluralCase]}function nl(t){return t in Ja||(Ja[t]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[t]),Ja[t]}var rl=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const il=["zero","one","two","few","many"],sl="en-US",ol={marker:"element"},al={marker:"ICU"};var ll=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}({});let cl=sl;function ul(t){var e;null==(e=t)&&Ft("Expected localeId to be defined",e,null,"!="),"string"==typeof t&&(cl=t.toLowerCase().replace(/_/g,"-"))}function hl(t,e,n){const r=e.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?Bi(t,0,n):Ye(n[i])}function dl(t,e,n,r,i){const s=e.insertBeforeIndex;if(Array.isArray(s)){let o=r,a=null;if(3&e.type||(a=o,o=i),null!==o&&0==(2&e.flags))for(let e=1;e<s.length;e++)Hi(t,o,n[s[e]],a,!1)}}function pl(t,e){if(t.push(e),t.length>1)for(let n=t.length-2;n>=0;n--){const r=t[n];fl(r)||gl(r,e)&&null===ml(r)&&yl(r,e.index)}}function fl(t){return!(64&t.type)}function gl(t,e){return fl(e)||t.index>e.index}function ml(t){const e=t.insertBeforeIndex;return Array.isArray(e)?e[0]:e}function yl(t,e){const n=t.insertBeforeIndex;Array.isArray(n)?n[0]=e:($i(hl,dl),t.insertBeforeIndex=e)}function bl(t,e){const n=t.data[e];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function _l(t,e,n){const r=Cs(t,n,64,null,null);return pl(e,r),r}function vl(t,e){const n=e[t.currentCaseLViewIndex];return null===n?n:n<0?~n:n}let wl=0,Sl=0;function Tl(t,e,n,r){const i=n[11];let s,o=null;for(let a=0;a<e.length;a++){const l=e[a];if("string"==typeof l){const t=e[++a];null===n[t]&&(n[t]=Ei(i,l))}else if("number"==typeof l)switch(1&l){case 0:const c=l>>>17;let u,h;if(null===o&&(o=c,s=Gi(i,r)),c===o?(u=r,h=s):(u=null,h=Ye(n[c])),null!==h){const e=(131070&l)>>>1;Hi(i,h,n[e],u,!1);const r=bl(t,e);if(null!==r&&"object"==typeof r){const e=vl(r,n);null!==e&&Tl(t,r.create[e],n,n[r.anchorIdx])}}break;case 1:const d=e[++a],p=e[++a];qs(i,Ze(l>>>1,n),null,null,d,p,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case al:const t=e[++a],r=e[++a];null===n[r]&&bi(n[r]=Ai(i,t),n);break;case ol:const s=e[++a],o=e[++a];null===n[o]&&bi(n[o]=Pi(i,s,null),n)}}}function Cl(t,e,n,r,i){for(let s=0;s<n.length;s++){const o=n[s],a=n[++s];if(o&i){let i="";for(let o=s+1;o<=s+a;o++){const s=n[o];if("string"==typeof s)i+=s;else if("number"==typeof s)if(s<0)i+=Ne(e[r-s]);else{const a=s>>>2;switch(3&s){case 1:const s=n[++o],l=n[++o],c=t.data[a];"string"==typeof c?qs(e[11],e[a],null,c,s,i,l):Vs(t,c,e,s,i,e[11],l,!1);break;case 0:const u=e[a];null!==u&&ki(e[11],u,i);break;case 2:El(t,bl(t,a),e,i);break;case 3:xl(t,bl(t,a),r,e)}}}}else{const i=n[s+1];if(i>0&&3==(3&i)){const n=bl(t,i>>>2);e[n.currentCaseLViewIndex]<0&&xl(t,n,r,e)}}s+=a}}function xl(t,e,n,r){let i=r[e.currentCaseLViewIndex];if(null!==i){let s=wl;i<0&&(i=r[e.currentCaseLViewIndex]=~i,s=-1),Cl(t,r,e.update[i],n,s)}}function El(t,e,n,r){const i=function(t,e){let n=t.cases.indexOf(e);if(-1===n)switch(t.type){case 1:{const r=function(t,e){const n=el(e)(parseInt(t,10)),r=il[n];return void 0!==r?r:"other"}(e,cl);n=t.cases.indexOf(r),-1===n&&"other"!==r&&(n=t.cases.indexOf("other"));break}case 0:n=t.cases.indexOf("other")}return-1===n?null:n}(e,r);if(vl(e,n)!==i&&(kl(t,e,n),n[e.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const r=n[e.anchorIdx];r&&Tl(t,e.create[i],n,r)}}function kl(t,e,n){let r=vl(e,n);if(null!==r){const i=e.remove[r];for(let e=0;e<i.length;e++){const r=i[e];if(r>0){const t=Ze(r,n);null!==t&&Xi(n[11],t)}else kl(t,bl(t,~r),n)}}}const Al=/\ufffd(\d+):?\d*\ufffd/gi,Pl=/\ufffd(\d+)\ufffd/,Ml=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Ol=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Il=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Dl=/\uE500/g;function Rl(t,e,n,r,i,s,o){const a=xs(t,r,1,null);let l=a<<ll.SHIFT,c=yn();e===c&&(c=null),null===c&&(l|=ll.APPEND_EAGERLY),o&&(l|=ll.COMMENT,void 0===_i&&(_i=function(){const t=[];let e,n,r=-1;function i(t,e){r=0;const i=vl(t,e);n=null!==i?t.remove[i]:de}function s(){if(r<n.length){const o=n[r++];return o>0?e[o]:(t.push(r,n),i(e[1].data[~o],e),s())}return 0===t.length?null:(n=t.pop(),r=t.pop(),s())}return function(n,r){for(e=r;t.length;)t.pop();return i(n.value,r),s}}())),i.push(l,null===s?"":s);const u=Cs(t,a,o?32:1,null===s?"":s,null);pl(n,u);const h=u.index;return bn(u,!1),null!==c&&e!==c&&function(t,e){let n=t.insertBeforeIndex;var r;null===n?($i(hl,dl),n=t.insertBeforeIndex=[null,e]):("Expecting array here",(r=Array.isArray(n))!=!0&&Ft("Expecting array here",r,true,"=="),n.push(e))}(c,h),u}function Nl(t,e,n,r,i,s,o){const a=o.match(Al),l=Rl(t,e,n,s,r,a?null:o,!1);a&&Hl(i,o,l.index)}function Hl(t,e,n,r,i=null){const s=t.length,o=s+1;t.push(null,null);const a=s+2,l=e.split(Al);let c=0;for(let u=0;u<l.length;u++){const e=l[u];if(1&u){const n=parseInt(e,10);t.push(-1-n),c|=Fl(n)}else""!==e&&t.push(e)}return t.push(n<<2|(r?1:0)),r&&t.push(r,i),t[s]=c,t[o]=t.length-a,c}function Fl(t){return 1<<Math.min(t,31)}function Vl(t){let e,n,r="",i=0,s=!1;for(;null!==(e=Ol.exec(t));)s?e[0]===`\ufffd/*${n}\ufffd`&&(i=e.index,s=!1):(r+=t.substring(i,e.index+e[0].length),n=e[1],s=!0);return r+=t.substr(i),r}function Gl(t,e,n,r,i,s){let o=0;const a={type:i.type,currentCaseLViewIndex:xs(t,e,1,null),anchorIdx:s,cases:[],create:[],remove:[],update:[]};!function(t,e,n){t.push(Fl(e.mainBinding),2,-1-e.mainBinding,n<<2|2)}(n,i,s),function(t,e,n){const r=t.data[e];null===r?t.data[e]=n:r.value=n}(t,s,a);const l=i.values;for(let c=0;c<l.length;c++){const s=l[c],u=[];for(let t=0;t<s.length;t++){const e=s[t];if("string"!=typeof e){const n=u.push(e)-1;s[t]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}o=jl(t,a,e,n,r,i.cases[c],s.join(""),u)|o}o&&function(t,e,n){t.push(e,1,n<<2|3)}(n,o,s)}function Ll(t){const e=[],n=[];let r=1,i=0;const s=Bl(t=t.replace(Ml,function(t,e,n){return r="select"===n?0:1,i=parseInt(e.substr(1),10),""}));for(let o=0;o<s.length;){let t=s[o++].trim();1===r&&(t=t.replace(/\s*(?:=)?(\w+)\s*/,"$1")),t.length&&e.push(t);const i=Bl(s[o++]);e.length>n.length&&n.push(i)}return{type:r,mainBinding:i,cases:e,values:n}}function Bl(t){if(!t)return[];let e=0;const n=[],r=[],i=/[{}]/g;let s;for(i.lastIndex=0;s=i.exec(t);){const i=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const n=t.substring(e,i);Ml.test(n)?r.push(Ll(n)):r.push(n),e=i+1}}else{if(0==n.length){const n=t.substring(e,i);r.push(n),e=i+1}n.push("{")}}const o=t.substring(e);return r.push(o),r}function jl(t,e,n,r,i,s,o,a){const l=[],c=[],u=[];e.cases.push(s),e.create.push(l),e.remove.push(c),e.update.push(u);const h=Ur(Xe()).getInertBodyElement(o),d=pi(h)||h;return d?Ul(t,e,n,r,l,c,u,d,i,a,0):0}function Ul(t,e,n,r,i,s,o,a,l,c,u){let h=0,d=a.firstChild;for(;d;){const a=xs(t,n,1,null);switch(d.nodeType){case Node.ELEMENT_NODE:const p=d,f=p.tagName.toLowerCase();if(ni.hasOwnProperty(f)){zl(i,ol,f,l,a),t.data[a]=f;const g=p.attributes;for(let t=0;t<g.length;t++){const e=g.item(t),n=e.name.toLowerCase();e.value.match(Al)?si.hasOwnProperty(n)&&(ri[n]?Hl(o,e.value,a,e.name,Xr):ii[n]?Hl(o,e.value,a,e.name,Kr):Hl(o,e.value,a,e.name)):ql(i,a,e)}h=Ul(t,e,n,r,i,s,o,d,a,c,u+1)|h,$l(s,a,u)}break;case Node.TEXT_NODE:const g=d.textContent||"",m=g.match(Al);zl(i,null,m?"":g,l,a),$l(s,a,u),m&&(h=Hl(o,g,a)|h);break;case Node.COMMENT_NODE:const y=Pl.exec(d.textContent||"");if(y){const e=c[parseInt(y[1],10)];zl(i,al,"",l,a),Gl(t,n,r,l,e,a),Wl(s,a,u)}}d=d.nextSibling}return h}function $l(t,e,n){0===n&&t.push(e)}function Wl(t,e,n){0===n&&(t.push(~e),t.push(e))}function zl(t,e,n,r,i){null!==e&&t.push(e),t.push(n,i,0|r<<17|i<<1)}function ql(t,e,n){t.push(e<<1|1,n.name,n.value)}function Xl(t,e,n){(function(t,e,n=-1){const r=pn(),i=dn(),s=xe+t,o=an(r.consts,e),a=yn();r.firstCreatePass&&function(t,e,n,r,i,s){const o=yn(),a=[],l=[],c=[[]],u=(h=i=function(t,e){if(function(t){return-1===t}(e))return Vl(t);{const n=t.indexOf(`:${e}\ufffd`)+2+e.toString().length,r=t.search(new RegExp(`\ufffd\\/\\*\\d+:${e}\ufffd`));return Vl(t.substring(n,r))}}(i,s),h.replace(Dl," ")).split(Il);var h;for(let d=0;d<u.length;d++){let r=u[d];if(0==(1&d)){const s=Bl(r);for(let r=0;r<s.length;r++){let u=s[r];if(0==(1&r)){const e=u;""!==e&&Nl(t,o,c[0],a,l,n,e)}else{const r=u;if("object"!=typeof r)throw new Error(`Unable to parse ICU expression in "${i}" message.`);Gl(t,n,l,e,r,Rl(t,o,c[0],n,a,"",!0).index)}}}else{const e=47===r.charCodeAt(0),n=(r.charCodeAt(e?1:0),xe+Number.parseInt(r.substring(e?2:1)));if(e)c.shift(),bn(yn(),!1);else{const e=_l(t,c[0],n);c.unshift([]),bn(e,!0)}}}t.data[r]={create:a,update:l}}(r,null===a?0:a.index,i,s,o,n);const l=r.data[s],c=Ni(r,a===i[6]?null:a,i);!function(t,e,n,r){const i=t[11];for(let s=0;s<e.length;s++){const o=e[s++],a=e[s],l=(o&ll.COMMENT)===ll.COMMENT,c=(o&ll.APPEND_EAGERLY)===ll.APPEND_EAGERLY,u=o>>>ll.SHIFT;let h=t[u];null===h&&(h=t[u]=l?i.createComment(a):Ei(i,a)),c&&null!==n&&Hi(i,n,h,r,!1)}}(i,l.create,c,a&&8&a.type?i[a.index]:null),kn(!0)})(t,e,n),kn(!1)}function Kl(t){return Jo(dn(),xn(),t)&&(wl|=1<<Math.min(Sl,31)),Sl++,Kl}function Ql(t){!function(t,e,n){if(Sl>0){const r=t.data[n];Cl(t,e,Array.isArray(r)?r:r.update,Cn()-Sl-1,wl)}wl=0,Sl=0}(pn(),dn(),t+xe)}function Yl(t,e,n,r,i){if(t=Tt(t),Array.isArray(t))for(let s=0;s<t.length;s++)Yl(t[s],e,n,r,i);else{const s=pn(),o=dn();let a=Ho(t)?t:Tt(t.provide),l=Do(t);const c=gn(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if(Ho(t)||!t.multi){const r=new Qn(l,i,sa),p=tc(a,e,i?u:u+d,h);-1===p?(dr(lr(c,o),s,a),Zl(s,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=tc(a,e,u+d,h),f=tc(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(i&&!m||!i&&!g){dr(lr(c,o),s,a);const u=function(t,e,n,r,i){const s=new Qn(t,n,sa);return s.multi=[],s.index=e,s.componentProviders=0,Jl(s,i,r&&!n),s}(i?nc:ec,n.length,i,r,l);!i&&m&&(n[f].providerFactory=u),Zl(s,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else Zl(s,t,p>-1?p:f,Jl(n[i?f:p],l,!i&&r));!i&&r&&m&&n[f].componentProviders++}}}function Zl(t,e,n,r){const i=Ho(e);if(i||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[r,s]):o[t+1].push(r,s)}else o.push(n,s)}}}function Jl(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function tc(t,e,n,r){for(let i=n;i<r;i++)if(e[i]===t)return i;return-1}function ec(t,e,n,r){return rc(this.multi,[])}function nc(t,e,n,r){const i=this.multi;let s;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=_r(n,n[1],this.providerFactory.index,r);s=e.slice(0,t),rc(i,s);for(let n=t;n<e.length;n++)s.push(e[n])}else s=[],rc(i,s);return s}function rc(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function ic(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=pn();if(r.firstCreatePass){const i=Ie(t);Yl(n,r.data,r.blueprint,i,!0),Yl(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}class sc{}class oc{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${_t(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ac=(()=>{class t{}return t.NULL=new oc,t})(),lc=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>cc(t),t})();const cc=function(t){return yo(t,gn(),dn())};class uc{}var hc=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let dc=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>pc(),t})();const pc=function(){const t=dn(),e=nn(gn().index,t);return function(t){const e=t[11];if(Ke(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(ke(e)?e:t)};let fc=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>null}),t})();class gc{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const mc=new gc("11.0.0");class yc{constructor(){}supports(t){return Qo(t)}create(t){return new _c(t)}}const bc=(t,e)=>e;class _c{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||bc}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 s=!n||e&&e.currentIndex<Tc(n,r,i)?e:n,o=Tc(s,r,i),a=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(e=e._next,null==s.previousIndex)r++;else{i||(i=[]);const t=o-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<i.length?i[n]:i[n]=0,s=r+n;e<=s&&s<t&&(i[n]=r+1)}i[s.previousIndex]=e-t}}o!==a&&t(s,o,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=[]),!Qo(t))throw new Error(`Error trying to diff '${_t(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,s=!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)?(s&&(i=this._verifyReinsertion(i,n,r,e)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,e),s=!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[Xo()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,t,r,e)),Object.is(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,r,e),s=!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._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):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)):t=this._addAfter(new vc(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 Sc),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 Sc),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 vc{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 wc{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 Sc{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new wc,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 Tc(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 Cc{constructor(){}supports(t){return t instanceof Map||Yo(t)}create(){return new xc}}class xc{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||Yo(t)))throw new Error(`Error trying to diff '${_t(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 Ec(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 Ec{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}}let kc=(()=>{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=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new it]]}}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:()=>new t([new yc])}),t})(),Ac=(()=>{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=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new it]]}}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:()=>new t([new Cc])}),t})();const Pc=[new Cc],Mc=new kc([new yc]),Oc=new Ac(Pc);let Ic=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Dc(t,lc),t})();const Dc=function(t,e){return bo(t,e,gn(),dn())};let Rc=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Nc(t,lc),t})();const Nc=function(t,e){return _o(t,e,gn(),dn())},Hc={};class Fc extends ac{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Se(t);return new Lc(e,this.ngModule)}}function Vc(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Gc=new Vt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Fe});class Lc extends sc{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(hs).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Vc(this.componentDef.inputs)}get outputs(){return Vc(this.componentDef.outputs)}create(t,e,n,r){const i=(r=r||this.ngModule)?function(t,e){return{get:(n,r,i)=>{const s=t.get(n,Hc,i);return s!==Hc||r===Hc?s:e.get(n,r,i)}}}(t,r.injector):t,s=i.get(uc,Qe),o=i.get(fc,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ke(t))return t.selectRootElement(e,n===ue.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Pi(s.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Fe,clean:so,playerHandler:null,flags:0},d=Rs(0,null,null,1,0,null,null,null,null,null),p=Ss(null,d,h,u,null,null,s,a,o,i);let f,g;Rn(p);try{const t=function(t,e,n,r,i,s){const o=n[1];n[20]=t;const a=Ts(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Lo(a,l,!0),null!==t&&(Yn(i,t,l),null!==a.classes&&Ji(i,t,a.classes),null!==a.styles&&Zi(i,t,a.styles)));const c=r.createRenderer(t,e),u=Ss(n,Ds(e),null,e.onPush?64:16,n[20],a,r,c,null,null);return o.firstCreatePass&&(dr(lr(a,n),o,e.type),js(o,a),$s(a,n.length,1)),to(n,u),n[20]=u}(c,this.componentDef,p,s,a);if(c)if(n)Yn(a,c,["ng-version",mc.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let s=t[r];if("string"==typeof s)2===i?""!==s&&e.push(s,t[++r]):8===i&&n.push(s);else{if(!os(i))break;i=s}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Yn(a,c,t),e&&e.length>0&&Ji(a,c,e.join(" "))}if(g=tn(d,xe),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 s=n[1],o=function(t,e,n){const r=gn();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Ws(t,r,e,xs(t,e,1,null),n));const i=_r(e,t,r.directiveStart,r);bi(i,e);const s=Je(r,e);return s&&bi(s,e),i}(s,n,e);if(r.components.push(o),t[8]=o,i&&i.forEach(t=>t(o,e)),e.contentQueries){const t=gn();e.contentQueries(1,o,t.directiveStart)}const a=gn();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Bn(a.index),Ls(n[1],a,0,a.directiveStart,a.directiveEnd,e),Bs(e,o)),o}(t,this.componentDef,p,h,[Bo]),Es(d,p,null)}finally{Gn()}return new Bc(this.componentType,f,yo(lc,g,p),p,g)}}class Bc extends class{}{constructor(t,e,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new ho(r),this.componentType=t}get injector(){return new Sr(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const jc=new Map;class Uc extends Jt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Fc(this);const n=Ce(t),r=t[Rt]||null;r&&ul(r),this._bootstrapComponents=Ge(n.bootstrap),this._r3Injector=Mo(t,e,[{provide:Jt,useValue:this},{provide:ac,useValue:this.componentFactoryResolver}],_t(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Vo.THROW_IF_NOT_FOUND,n=at.Default){return t===Vo||t===Jt||t===Gt?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 $c extends te{constructor(t){super(),this.moduleType=t,null!==Ce(t)&&function(t){const e=new Set;!function t(n){const r=Ce(n,!0),i=r.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${_t(e)} vs ${_t(e.name)}`)}(i,jc.get(i),n),jc.set(i,n));const s=Ge(r.imports);for(const o of s)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Uc(this.moduleType,t)}}function Wc(t,e,n,r){return qc(dn(),Tn(),t,e,n,r)}function zc(t,e){const n=t[e];return n===ds?void 0:n}function qc(t,e,n,r,i,s){const o=e+n;return Jo(t,o,i)?Zo(t,o+1,s?r.call(s,i):r(i)):zc(t,o+1)}function Xc(t,e){const n=pn();let r;const i=t+xe;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 Re("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 s=r.factory||(r.factory=Te(r.type)),o=qt(sa);try{const t=or(!1),e=s();return or(t),function(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(n,dn(),i,e),e}finally{qt(o)}}function Kc(t,e,n){const r=t+xe,i=dn(),s=en(i,r);return function(t,e){return Ko.isWrapped(e)&&(e=Ko.unwrap(e),t[Cn()]=ds),e}(i,function(t,e){return t[1].data[e].pure}(i,r)?qc(i,Tn(),e,s.transform,n,s):s.transform(n))}const Qc=class extends T{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,i=t=>null,s=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(s=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,i,s);return t instanceof h&&t.add(o),o}};function Yc(){return this._results[Xo()]()}class Zc{constructor(){this.dirty=!0,this._results=[],this.changes=new Qc,this.length=0;const t=Xo(),e=Zc.prototype;e[t]||(e[t]=Yc)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=ee(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Jc{constructor(t){this.queryList=t,this.matches=null}clone(){return new Jc(this.queryList)}setDirty(){this.queryList.setDirty()}}class tu{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);r.push(this.queries[n.indexInDeclarationView].clone())}return new tu(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==yu(t,e).matches&&this.queries[e].setDirty()}}class eu{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class nu{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const r=null!==e?e.length:0,i=this.getByIndex(n).embeddedTView(t,r);i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new nu(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class ru{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new ru(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const i=n[r];this.matchTNodeWithReadOption(t,e,iu(e,i)),this.matchTNodeWithReadOption(t,e,br(e,t,i,!1,!1))}else n===Ic?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,br(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===lc||r===Rc||r===Ic&&4&e.type)this.addMatch(e.index,-2);else{const n=br(e,t,r,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function iu(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function su(t,e,n,r){return-1===n?function(t,e){return 11&t.type?yo(lc,t,e):4&t.type?bo(Ic,lc,t,e):null}(e,t):-2===n?function(t,e,n){return n===lc?yo(lc,e,t):n===Ic?bo(Ic,lc,e,t):n===Rc?_o(Rc,lc,e,t):void 0}(t,e,r):_r(t,t[1],n,e)}function ou(t,e,n,r){const i=e[19].queries[r];if(null===i.matches){const r=t.data,s=n.matches,o=[];for(let t=0;t<s.length;t+=2){const i=s[t];o.push(i<0?null:su(e,r[i],s[t+1],n.metadata.read))}i.matches=o}return i.matches}function au(t,e,n,r){const i=t.queries.getByIndex(n),s=i.matches;if(null!==s){const o=ou(t,e,i,n);for(let t=0;t<s.length;t+=2){const n=s[t];if(n>0)r.push(o[t/2]);else{const i=s[t+1],o=e[-n];for(let t=Ee;t<o.length;t++){const e=o[t];e[17]===e[3]&&au(e[1],e,i,r)}if(null!==o[9]){const t=o[9];for(let e=0;e<t.length;e++){const n=t[e];au(n[1],n,i,r)}}}}}return r}function lu(t){const e=dn(),n=pn(),r=Mn();On(r+1);const i=yu(n,r);if(t.dirty&&sn(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{const s=i.crossesNgTemplate?au(n,e,r,[]):ou(n,e,i,r);t.reset(s),t.notifyOnChanges()}return!0}return!1}function cu(t,e,n){hu(pn(),dn(),t,e,n,!0)}function uu(t,e,n){hu(pn(),dn(),t,e,n,!1)}function hu(t,e,n,r,i,s){t.firstCreatePass&&(mu(t,new eu(n,r,s,i),-1),s&&(t.staticViewQueries=!0)),gu(t,e)}function du(t,e,n,r){pu(pn(),dn(),e,n,r,!1,gn(),t)}function pu(t,e,n,r,i,s,o,a){t.firstCreatePass&&(mu(t,new eu(n,r,s,i),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a),s&&(t.staticContentQueries=!0)),gu(t,e)}function fu(){return t=dn(),e=Mn(),t[19].queries[e].queryList;var t,e}function gu(t,e){const n=new Zc;Ns(t,e,n,n.destroy),null===e[19]&&(e[19]=new tu),e[19].queries.push(new Jc(n))}function mu(t,e,n){null===t.queries&&(t.queries=new nu),t.queries.track(new ru(e,n))}function yu(t,e){return t.queries.getByIndex(e)}function bu(t,e){return bo(Ic,lc,t,e)}const _u=new Vt("Application Initializer");let vu=(()=>{class t{constructor(t){this.appInits=t,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]();fa(e)&&t.push(e)}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)(Kt(_u,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const wu=new Vt("AppId"),Su={provide:wu,useFactory:function(){return`${Tu()}${Tu()}${Tu()}`},deps:[]};function Tu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Cu=new Vt("Platform Initializer"),xu=new Vt("Platform ID"),Eu=new Vt("appBootstrapListener");let ku=(()=>{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 Au=new Vt("LocaleId"),Pu=new Vt("DefaultCurrencyCode");class Mu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Ou=function(t){return new $c(t)},Iu=Ou,Du=function(t){return Promise.resolve(Ou(t))},Ru=function(t){const e=Ou(t),n=Ge(Ce(t).declarations).reduce((t,e)=>{const n=Se(e);return n&&t.push(new Lc(n)),t},[]);return new Mu(e,n)},Nu=Ru,Hu=function(t){return Promise.resolve(Ru(t))};let Fu=(()=>{class t{constructor(){this.compileModuleSync=Iu,this.compileModuleAsync=Du,this.compileModuleAndAllComponentsSync=Nu,this.compileModuleAndAllComponentsAsync=Hu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Vu=(()=>Promise.resolve(0))();function Gu(t){"undefined"==typeof Zone?Vu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Lu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Qc(!1),this.onMicrotaskEmpty=new Qc(!1),this.onStable=new Qc(!1),this.onError=new Qc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.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=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Pt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,$u(t),Uu(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),$u(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,i,s,o,a)=>{try{return Wu(t),n.invokeTask(i,s,o,a)}finally{e&&"eventTask"===s.type&&e(),zu(t)}},onInvoke:(e,n,r,i,s,o,a)=>{try{return Wu(t),e.invoke(r,i,s,o,a)}finally{zu(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,$u(t),Uu(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Lu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Lu.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,s=i.scheduleEventTask("NgZoneEvent: "+r,t,ju,Bu,Bu);try{return i.runTask(s,e,n)}finally{i.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Bu(){}const ju={};function Uu(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 $u(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Wu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function zu(t){t._nesting--,Uu(t)}class qu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Qc,this.onMicrotaskEmpty=new Qc,this.onStable=new Qc,this.onError=new Qc}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 Xu=(()=>{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:()=>{Lu.assertNotInAngularZone(),Gu(()=>{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())Gu(()=>{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/dist/task-tracking.js" 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)(Kt(Lu))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Ku=(()=>{class t{constructor(){this._applications=new Map,Zu.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 Zu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class Qu{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Yu,Zu=new Qu;const Ju=new Vt("AllowMultipleToken");class th{constructor(t,e){this.name=t,this.token=e}}function eh(t,e,n=[]){const r="Platform: "+e,i=new Vt(r);return(e=[])=>{let s=nh();if(!s||s.injector.get(Ju,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:Co,useValue:"platform"});!function(t){if(Yu&&!Yu.destroyed&&!Yu.injector.get(Ju,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Yu=t.get(rh);const e=t.get(Cu,null);e&&e.forEach(t=>t())}(Vo.create({providers:t,name:r}))}return function(t){const e=nh();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 nh(){return Yu&&!Yu.destroyed?Yu:null}let rh=(()=>{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 qu:("zone.js"===t?void 0:t)||new Lu({enableLongStackTrace:jr(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:Lu,useValue:n}];return n.run(()=>{const e=Vo.create({providers:r,parent:this.injector,name:t.moduleType.name}),i=t.create(e),s=i.injector.get(Ar,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>oh(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{s.handleError(t)}})),function(t,e,n){try{const r=n();return fa(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(s,n,()=>{const t=i.injector.get(vu);return t.runInitializers(),t.donePromise.then(()=>(ul(i.injector.get(Au,sl)||sl),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=ih({},e);return function(t,e,n){const r=new $c(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(sh);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${_t(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)(Kt(Vo))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function ih(t,e){return Array.isArray(e)?e.reduce(ih,t):Object.assign(Object.assign({},t),e)}let sh=(()=>{class t{constructor(t,e,n,r,i,s){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=jr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new b(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new b(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Lu.assertNotInAngularZone(),Gu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Lu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=W(o,a.pipe(J()))}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 sc?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Jt),i=n.create(Vo.NULL,[],e||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const s=i.injector.get(Xu,null);return s&&i.injector.get(Ku).registerApplication(i.location.nativeElement,s),this._loadComponent(i),jr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),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();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}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;oh(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Eu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),oh(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Kt(Lu),Kt(ku),Kt(Vo),Kt(Ar),Kt(ac),Kt(vu))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function oh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ah{}class lh{}const ch={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let uh=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||ch}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>hh(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("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+i]).then(t=>hh(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Fu),Kt(lh,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function hh(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const dh=eh(null,"core",[{provide:xu,useValue:"unknown"},{provide:rh,deps:[Vo]},{provide:Ku,deps:[]},{provide:ku,deps:[]}]),ph=[{provide:sh,useClass:sh,deps:[Lu,ku,Vo,Ar,ac,vu]},{provide:Gc,deps:[Lu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:vu,useClass:vu,deps:[[new it,_u]]},{provide:Fu,useClass:Fu,deps:[]},Su,{provide:kc,useFactory:function(){return Mc},deps:[]},{provide:Ac,useFactory:function(){return Oc},deps:[]},{provide:Au,useFactory:function(t){return ul(t=t||"undefined"!=typeof $localize&&$localize.locale||sl),t},deps:[[new rt(Au),new it,new ot]]},{provide:Pu,useValue:"USD"}];let fh=(()=>{class t{constructor(t){}}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)(Kt(sh))},providers:ph}),t})(),gh=null;function mh(){return gh}const yh=new Vt("DocumentToken");let bh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:_h,token:t,providedIn:"platform"}),t})();function _h(){return Kt(wh)}const vh=new Vt("Location Initialized");let wh=(()=>{class t extends bh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=mh().getLocation(),this._history=mh().getHistory()}getBaseHrefFromDOM(){return mh().getBaseHref(this._doc)}onPopState(t){mh().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){mh().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){Sh()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){Sh()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Kt(yh))},t.\u0275prov=ut({factory:Th,token:t,providedIn:"platform"}),t})();function Sh(){return!!window.history.pushState}function Th(){return new wh(Kt(yh))}function Ch(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 xh(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 Eh(t){return t&&"?"!==t[0]?"?"+t:t}let kh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:Ah,token:t,providedIn:"root"}),t})();function Ah(t){const e=Kt(yh).location;return new Mh(Kt(bh),e&&e.origin||"")}const Ph=new Vt("appBaseHref");let Mh=(()=>{class t extends kh{constructor(t,e){if(super(),this._platformLocation=t,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}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ch(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Eh(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const i=this.prepareExternalUrl(n+Eh(r));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){const i=this.prepareExternalUrl(n+Eh(r));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Kt(bh),Kt(Ph,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Oh=(()=>{class t extends kh{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){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=Ch(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let i=this.prepareExternalUrl(n+Eh(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){let i=this.prepareExternalUrl(n+Eh(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Kt(bh),Kt(Ph,8))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Ih=(()=>{class t{constructor(t,e){this._subject=new Qc,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=xh(Rh(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+Eh(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Rh(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+Eh(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Eh(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}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)(Kt(kh),Kt(bh))},t.normalizeQueryParams=Eh,t.joinWithSlash=Ch,t.stripTrailingSlash=xh,t.\u0275prov=ut({factory:Dh,token:t,providedIn:"root"}),t})();function Dh(){return new Ih(Kt(kh),Kt(bh))}function Rh(t){return t.replace(/\/index.html$/,"")}var Nh=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Hh=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),Fh=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),Vh=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),Gh=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function Lh(t,e,n){const r=tl(t),i=Kh([r[rl.DayPeriodsFormat],r[rl.DayPeriodsStandalone]],e);return Kh(i,n)}function Bh(t,e,n){const r=tl(t),i=Kh([r[rl.DaysFormat],r[rl.DaysStandalone]],e);return Kh(i,n)}function jh(t,e,n){const r=tl(t),i=Kh([r[rl.MonthsFormat],r[rl.MonthsStandalone]],e);return Kh(i,n)}function Uh(t,e){return Kh(tl(t)[rl.DateFormat],e)}function $h(t,e){return Kh(tl(t)[rl.TimeFormat],e)}function Wh(t,e){return Kh(tl(t)[rl.DateTimeFormat],e)}function zh(t,e){const n=tl(t),r=n[rl.NumberSymbols][e];if(void 0===r){if(e===Gh.CurrencyDecimal)return n[rl.NumberSymbols][Gh.Decimal];if(e===Gh.CurrencyGroup)return n[rl.NumberSymbols][Gh.Group]}return r}const qh=el;function Xh(t){if(!t[rl.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[rl.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Kh(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 Qh(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const Yh=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Zh={},Jh=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?: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}|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 td=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),ed=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),nd=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function rd(t,e,n,r){let i=function(t){if(gd(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,r]=t.split("-").map(t=>+t);return new Date(e,n-1,r)}let n;if(n=t.match(Yh))return function(t){const e=new Date(0);let n=0,r=0;const i=t[8]?e.setUTCFullYear:e.setFullYear,s=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 o=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 s.call(e,o,a,l,c),e}(n)}const e=new Date(t);if(!gd(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=id(n,e)||e;let s,o=[];for(;e;){if(s=Jh.exec(e),!s){o.push(e);break}{o=o.concat(s.slice(1));const t=o.pop();if(!t)break;e=t}}let a=i.getTimezoneOffset();r&&(a=fd(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*(fd(e,r)-r))}(i,r));let l="";return o.forEach(t=>{const e=function(t){if(pd[t])return pd[t];let e;switch(t){case"G":case"GG":case"GGG":e=ld(nd.Eras,Fh.Abbreviated);break;case"GGGG":e=ld(nd.Eras,Fh.Wide);break;case"GGGGG":e=ld(nd.Eras,Fh.Narrow);break;case"y":e=ad(ed.FullYear,1,0,!1,!0);break;case"yy":e=ad(ed.FullYear,2,0,!0,!0);break;case"yyy":e=ad(ed.FullYear,3,0,!1,!0);break;case"yyyy":e=ad(ed.FullYear,4,0,!1,!0);break;case"Y":e=dd(1);break;case"YY":e=dd(2,!0);break;case"YYY":e=dd(3);break;case"YYYY":e=dd(4);break;case"M":case"L":e=ad(ed.Month,1,1);break;case"MM":case"LL":e=ad(ed.Month,2,1);break;case"MMM":e=ld(nd.Months,Fh.Abbreviated);break;case"MMMM":e=ld(nd.Months,Fh.Wide);break;case"MMMMM":e=ld(nd.Months,Fh.Narrow);break;case"LLL":e=ld(nd.Months,Fh.Abbreviated,Hh.Standalone);break;case"LLLL":e=ld(nd.Months,Fh.Wide,Hh.Standalone);break;case"LLLLL":e=ld(nd.Months,Fh.Narrow,Hh.Standalone);break;case"w":e=hd(1);break;case"ww":e=hd(2);break;case"W":e=hd(1,!0);break;case"d":e=ad(ed.Date,1);break;case"dd":e=ad(ed.Date,2);break;case"E":case"EE":case"EEE":e=ld(nd.Days,Fh.Abbreviated);break;case"EEEE":e=ld(nd.Days,Fh.Wide);break;case"EEEEE":e=ld(nd.Days,Fh.Narrow);break;case"EEEEEE":e=ld(nd.Days,Fh.Short);break;case"a":case"aa":case"aaa":e=ld(nd.DayPeriods,Fh.Abbreviated);break;case"aaaa":e=ld(nd.DayPeriods,Fh.Wide);break;case"aaaaa":e=ld(nd.DayPeriods,Fh.Narrow);break;case"b":case"bb":case"bbb":e=ld(nd.DayPeriods,Fh.Abbreviated,Hh.Standalone,!0);break;case"bbbb":e=ld(nd.DayPeriods,Fh.Wide,Hh.Standalone,!0);break;case"bbbbb":e=ld(nd.DayPeriods,Fh.Narrow,Hh.Standalone,!0);break;case"B":case"BB":case"BBB":e=ld(nd.DayPeriods,Fh.Abbreviated,Hh.Format,!0);break;case"BBBB":e=ld(nd.DayPeriods,Fh.Wide,Hh.Format,!0);break;case"BBBBB":e=ld(nd.DayPeriods,Fh.Narrow,Hh.Format,!0);break;case"h":e=ad(ed.Hours,1,-12);break;case"hh":e=ad(ed.Hours,2,-12);break;case"H":e=ad(ed.Hours,1);break;case"HH":e=ad(ed.Hours,2);break;case"m":e=ad(ed.Minutes,1);break;case"mm":e=ad(ed.Minutes,2);break;case"s":e=ad(ed.Seconds,1);break;case"ss":e=ad(ed.Seconds,2);break;case"S":e=ad(ed.FractionalSeconds,1);break;case"SS":e=ad(ed.FractionalSeconds,2);break;case"SSS":e=ad(ed.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=cd(td.Short);break;case"ZZZZZ":e=cd(td.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=cd(td.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=cd(td.Long);break;default:return null}return pd[t]=e,e}(t);l+=e?e(i,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function id(t,e){const n=function(t){return tl(t)[rl.LocaleId]}(t);if(Zh[n]=Zh[n]||{},Zh[n][e])return Zh[n][e];let r="";switch(e){case"shortDate":r=Uh(t,Vh.Short);break;case"mediumDate":r=Uh(t,Vh.Medium);break;case"longDate":r=Uh(t,Vh.Long);break;case"fullDate":r=Uh(t,Vh.Full);break;case"shortTime":r=$h(t,Vh.Short);break;case"mediumTime":r=$h(t,Vh.Medium);break;case"longTime":r=$h(t,Vh.Long);break;case"fullTime":r=$h(t,Vh.Full);break;case"short":const e=id(t,"shortTime"),n=id(t,"shortDate");r=sd(Wh(t,Vh.Short),[e,n]);break;case"medium":const i=id(t,"mediumTime"),s=id(t,"mediumDate");r=sd(Wh(t,Vh.Medium),[i,s]);break;case"long":const o=id(t,"longTime"),a=id(t,"longDate");r=sd(Wh(t,Vh.Long),[o,a]);break;case"full":const l=id(t,"fullTime"),c=id(t,"fullDate");r=sd(Wh(t,Vh.Full),[l,c])}return r&&(Zh[n][e]=r),r}function sd(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function od(t,e,n="-",r,i){let s="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,s=n));let o=String(t);for(;o.length<e;)o="0"+o;return r&&(o=o.substr(o.length-e)),s+o}function ad(t,e,n=0,r=!1,i=!1){return function(s,o){let a=function(t,e){switch(t){case ed.FullYear:return e.getFullYear();case ed.Month:return e.getMonth();case ed.Date:return e.getDate();case ed.Hours:return e.getHours();case ed.Minutes:return e.getMinutes();case ed.Seconds:return e.getSeconds();case ed.FractionalSeconds:return e.getMilliseconds();case ed.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,s);if((n>0||a>-n)&&(a+=n),t===ed.Hours)0===a&&-12===n&&(a=12);else if(t===ed.FractionalSeconds)return l=e,od(a,3).substr(0,l);var l;const c=zh(o,Gh.MinusSign);return od(a,e,c,r,i)}}function ld(t,e,n=Hh.Format,r=!1){return function(i,s){return function(t,e,n,r,i,s){switch(n){case nd.Months:return jh(e,i,r)[t.getMonth()];case nd.Days:return Bh(e,i,r)[t.getDay()];case nd.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(s){const t=function(t){const e=tl(t);return Xh(e),(e[rl.ExtraData][2]||[]).map(t=>"string"==typeof t?Qh(t):[Qh(t[0]),Qh(t[1])])}(e),n=function(t,e,n){const r=tl(t);Xh(r);const i=Kh([r[rl.ExtraData][0],r[rl.ExtraData][1]],e)||[];return Kh(i,n)||[]}(e,i,r),s=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,r=o>=e.hours&&a>=e.minutes,i=o<n.hours||o===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===o&&t.minutes===a)return!0;return!1});if(-1!==s)return n[s]}return Lh(e,i,r)[o<12?0:1];case nd.Eras:return function(t,e){return Kh(tl(t)[rl.Eras],e)}(e,r)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(i,s,t,e,n,r)}}function cd(t){return function(e,n,r){const i=-1*r,s=zh(n,Gh.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case td.Short:return(i>=0?"+":"")+od(o,2,s)+od(Math.abs(i%60),2,s);case td.ShortGMT:return"GMT"+(i>=0?"+":"")+od(o,1,s);case td.Long:return"GMT"+(i>=0?"+":"")+od(o,2,s)+":"+od(Math.abs(i%60),2,s);case td.Extended:return 0===r?"Z":(i>=0?"+":"")+od(o,2,s)+":"+od(Math.abs(i%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}function ud(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function hd(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=ud(n),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),r=t.getTime()-e.getTime();i=1+Math.round(r/6048e5)}return od(i,t,zh(r,Gh.MinusSign))}}function dd(t,e=!1){return function(n,r){return od(ud(n).getFullYear(),t,zh(r,Gh.MinusSign),e)}}const pd={};function fd(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function gd(t){return t instanceof Date&&!isNaN(t.valueOf())}class md{}let yd=(()=>{class t extends md{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(qh(e||this.locale)(t)){case Nh.Zero:return"zero";case Nh.One:return"one";case Nh.Two:return"two";case Nh.Few:return"few";case Nh.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Au))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function bd(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}let _d=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Qo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+_t(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(sa(kc),sa(Ac),sa(lc),sa(dc))},t.\u0275dir=ve({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class vd{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 wd=(()=>{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){jr()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),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 vd(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new Sd(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 s=new Sd(t,i);e.push(s)}});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)(sa(Rc),sa(Ic),sa(kc))},t.\u0275dir=ve({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Sd{constructor(t,e){this.record=t,this.view=e}}let Td=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Cd,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){xd("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){xd("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)(sa(Rc),sa(Ic))},t.\u0275dir=ve({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Cd{constructor(){this.$implicit=null,this.ngIf=null}}function xd(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${_t(e)}'.`)}let Ed=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,r]=t.split(".");null!=(e=null!=e&&r?`${e}${r}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(sa(lc),sa(Ac),sa(dc))},t.\u0275dir=ve({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),kd=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(sa(Rc))},t.\u0275dir=ve({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[je]}),t})();class Ad{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Pd{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Md=new Pd,Od=new Ad;let Id=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(fa(e))return Md;if(ga(e))return Od;throw Error(`InvalidPipeArgument: '${e}' for pipe '${_t(t)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=at.Default){const e=vo(!0);if(null!=e||t&at.Optional)return e;Le("ChangeDetectorRef")}())},t.\u0275pipe=we({name:"async",type:t,pure:!1}),t})(),Dd=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},providers:[{provide:md,useClass:yd}]}),t})();function Rd(t){return"browser"===t}let Nd=(()=>{class t{}return t.\u0275prov=ut({token:t,providedIn:"root",factory:()=>new Hd(Kt(yh),window,Kt(Ar))}),t})();class Hd{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(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])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=Fd(this.window.history)||Fd(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function Fd(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Vd extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Vd,gh||(gh=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}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}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Ld||(Ld=document.querySelector("base"),Ld)?Ld.getAttribute("href"):null;return null==e?null:(n=e,Gd||(Gd=document.createElement("a")),Gd.setAttribute("href",n),"/"===Gd.pathname.charAt(0)?Gd.pathname:"/"+Gd.pathname);var n}resetBaseElement(){Ld=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return bd(document.cookie,t)}}let Gd,Ld=null;const Bd=new Vt("TRANSITION_ID"),jd=[{provide:_u,useFactory:function(t,e,n){return()=>{n.get(vu).donePromise.then(()=>{const n=mh();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Bd,yh,Vo],multi:!0}];class Ud{static init(){var t;t=new Ud,Zu=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?mh().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const $d=new Vt("EventManagerPlugins");let Wd=(()=>{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)(Kt($d),Kt(Lu))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class zd{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=mh().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let qd=(()=>{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})(),Xd=(()=>{class t extends qd{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>mh().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Kt(yh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Kd={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/"},Qd=/%COMP%/g;function Yd(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?Yd(t,i,n):(i=i.replace(Qd,t),n.push(i))}return n}function Zd(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Jd=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new tp(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ue.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new ep(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case ue.ShadowDom:return new np(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Yd(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)(Kt(Wd),Kt(Xd),Kt(wu))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class tp{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Kd[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=Kd[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=Kd[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&hc.DashCase?t.style.setProperty(e,n,r&hc.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&hc.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,Zd(n)):this.eventManager.addEventListener(t,e,Zd(n))}}class ep extends tp{constructor(t,e,n,r){super(t),this.component=n;const i=Yd(r+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(Qd,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Qd,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 np extends tp{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=Yd(r.id,r.styles,[]);for(let s=0;s<i.length;s++){const t=document.createElement("style");t.textContent=i[s],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 rp=(()=>{class t extends zd{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)(Kt(yh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const ip=["alt","control","meta","shift"],sp={"\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"},op={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"},ap={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let lp=(()=>{class t extends zd{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const i=t.parseEventName(n),s=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>mh().onAndCancel(e,i.domEventName,s))}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 s="";if(ip.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=i,0!=n.length||0===i.length)return null;const o={};return o.domEventName=r,o.fullKey=s,o}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&&op.hasOwnProperty(e)&&(e=op[e]))}return sp[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),ip.forEach(r=>{r!=n&&(0,ap[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)(Kt(yh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),cp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return Kt(up)},token:t,providedIn:"root"}),t})(),up=(()=>{class t extends cp{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case fi.NONE:return e;case fi.HTML:return Vr(e,"HTML")?Fr(e):di(this._doc,String(e));case fi.STYLE:return Vr(e,"Style")?Fr(e):e;case fi.SCRIPT:if(Vr(e,"Script"))return Fr(e);throw new Error("unsafe value used in a script context");case fi.URL:return Gr(e),Vr(e,"URL")?Fr(e):Xr(String(e));case fi.RESOURCE_URL:if(Vr(e,"ResourceURL"))return Fr(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new Ir(t)}bypassSecurityTrustStyle(t){return new Dr(t)}bypassSecurityTrustScript(t){return new Rr(t)}bypassSecurityTrustUrl(t){return new Nr(t)}bypassSecurityTrustResourceUrl(t){return new Hr(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(yh))},t.\u0275prov=ut({factory:function(){return t=Kt(Gt),new up(t.get(yh));var t},token:t,providedIn:"root"}),t})();const hp=eh(dh,"browser",[{provide:xu,useValue:"browser"},{provide:Cu,useValue:function(){Vd.makeCurrent(),Ud.init()},multi:!0},{provide:yh,useFactory:function(){return function(t){qe=t}(document),document},deps:[]}]),dp=[[],{provide:Co,useValue:"root"},{provide:Ar,useFactory:function(){return new Ar},deps:[]},{provide:$d,useClass:rp,multi:!0,deps:[yh,Lu,xu]},{provide:$d,useClass:lp,multi:!0,deps:[yh]},[],{provide:Jd,useClass:Jd,deps:[Wd,Xd,wu]},{provide:uc,useExisting:Jd},{provide:qd,useExisting:Xd},{provide:Xd,useClass:Xd,deps:[yh]},{provide:Xu,useClass:Xu,deps:[Lu]},{provide:Wd,useClass:Wd,deps:[$d,Lu]},[]];let pp=(()=>{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:wu,useValue:e.appId},{provide:Bd,useExisting:wu},jd]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)(Kt(t,12))},providers:dp,imports:[Dd,fh]}),t})();function fp(){return new gp(Kt(yh))}let gp=(()=>{class t{constructor(t){this._doc=t,this._dom=mh()}addTag(t,e=!1){return t?this._getOrCreateElement(t,e):null}addTags(t,e=!1){return t?t.reduce((t,n)=>(n&&t.push(this._getOrCreateElement(n,e)),t),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const e=this._doc.querySelectorAll(`meta[${t}]`);return e?[].slice.call(e):[]}updateTag(t,e){if(!t)return null;e=e||this._parseSelector(t);const n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,e=!1){if(!e){const e=this._parseSelector(t),n=this.getTag(e);if(n&&this._containsAttributes(t,n))return n}const n=this._dom.createElement("meta");return this._setMetaElementAttributes(t,n),this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(t,e){return Object.keys(t).forEach(n=>e.setAttribute(n,t[n])),e}_parseSelector(t){const e=t.name?"name":"property";return`${e}="${t[e]}"`}_containsAttributes(t,e){return Object.keys(t).every(n=>e.getAttribute(n)===t[n])}}return t.\u0275fac=function(e){return new(e||t)(Kt(yh))},t.\u0275prov=ut({factory:fp,token:t,providedIn:"root"}),t})();function mp(){return new yp(Kt(yh))}let yp=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(Kt(yh))},t.\u0275prov=ut({factory:mp,token:t,providedIn:"root"}),t})();function bp(...t){let e=t[t.length-1];return x(e)?(t.pop(),N(t,e)):$(t)}"undefined"!=typeof window&&window;class _p extends T{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 v;return this._value}next(t){super.next(this._value=t)}}class vp 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 wp 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 Sp(t,e,n,r,i=new wp(t,n,r)){if(!i.closed)return e instanceof b?e.subscribe(i):R(e)(i)}const Tp={};function Cp(...t){let e=void 0,n=void 0;return x(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]),$(t,n).lift(new xp(e))}class xp{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Ep(t,this.resultSelector))}}class Ep extends vp{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Tp),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(Sp(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]===Tp?--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 kp=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Ap=new b(t=>t.complete());function Pp(t){return t?function(t){return new b(e=>t.schedule(()=>e.complete()))}(t):Ap}function Mp(t){return new b(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?H(n):Pp()).subscribe(e)})}function Op(){return U(1)}function Ip(t,e){return function(n){return n.lift(new Dp(t,e))}}class Dp{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Rp(t,this.predicate,this.thisArg))}}class Rp 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)}}const Np=(()=>{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 Hp(t){return function(e){return 0===t?Pp():e.lift(new Fp(t))}}class Fp{constructor(t){if(this.total=t,this.total<0)throw new Np}call(t,e){return e.subscribe(new Vp(t,this.total))}}class Vp 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 Gp(t=jp){return e=>e.lift(new Lp(t))}class Lp{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Bp(t,this.errorFactory))}}class Bp 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 jp(){return new kp}function Up(t=null){return e=>e.lift(new $p(t))}class $p{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Wp(t,this.defaultValue))}}class Wp 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 zp(t,e){return"function"==typeof e?n=>n.pipe(zp((n,r)=>H(t(n,r)).pipe(E((t,i)=>e(n,t,r,i))))):e=>e.lift(new qp(t))}class qp{constructor(t){this.project=t}call(t,e){return e.subscribe(new Xp(t,this.project))}}class Xp 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 F(this),r=this.destination;r.add(n),this.innerSubscription=G(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)}}function Kp(t){return e=>0===t?Pp():e.lift(new Qp(t))}class Qp{constructor(t){if(this.total=t,this.total<0)throw new Np}call(t,e){return e.subscribe(new Yp(t,this.total))}}class Yp 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 Zp(...t){return Op()(bp(...t))}function Jp(...t){const e=t[t.length-1];return x(e)?(t.pop(),n=>Zp(t,n,e)):e=>Zp(t,e)}class tf{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new ef(t,this.accumulator,this.seed,this.hasSeed))}}class ef 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 nf(t){return function(e){const n=new rf(t),r=e.lift(n);return n.caught=r}}class rf{constructor(t){this.selector=t}call(t,e){return e.subscribe(new sf(t,this.selector,this.caught))}}class sf 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 F(this);this.add(r);const i=G(n,r);i!==r&&this.add(i)}}}function of(t,e){return L(t,e,1)}function af(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Ip((e,n)=>t(e,n,r)):y,Kp(1),n?Up(e):Gp(()=>new kp))}function lf(){}function cf(t,e,n){return function(r){return r.lift(new uf(t,e,n))}}class uf{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new hf(t,this.nextOrObserver,this.error,this.complete))}}class hf extends f{constructor(t,e,n,i){super(t),this._tapNext=lf,this._tapError=lf,this._tapComplete=lf,this._tapError=n||lf,this._tapComplete=i||lf,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||lf,this._tapError=e.error||lf,this._tapComplete=e.complete||lf)}_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 df{constructor(t){this.callback=t}call(t,e){return e.subscribe(new pf(t,this.callback))}}class pf extends f{constructor(t,e){super(t),this.add(new h(e))}}class ff{constructor(t,e){this.id=t,this.url=e}}class gf extends ff{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 mf extends ff{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class yf extends ff{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bf extends ff{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _f extends ff{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 vf extends ff{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 wf extends ff{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 Sf extends ff{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 Tf extends ff{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 Cf{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class xf{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ef{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kf{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Af{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pf{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mf{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 Of="primary";class If{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 Df(t){return new If(t)}function Rf(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Nf(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 s=0;s<r.length;s++){const e=r[s],n=t[s];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 Hf(t,e){const n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;let i;for(let s=0;s<n.length;s++)if(i=n[s],!Ff(t[i],e[i]))return!1;return!0}function Ff(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 Vf(t){return Array.prototype.concat.apply([],t)}function Gf(t){return t.length>0?t[t.length-1]:null}function Lf(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Bf(t){return ga(t)?t:fa(t)?H(Promise.resolve(t)):bp(t)}function jf(t,e,n){return n?function(t,e){return Hf(t,e)}(t.queryParams,e.queryParams)&&Uf(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Ff(t[n],e[n]))}(t.queryParams,e.queryParams)&&$f(t.root,e.root)}function Uf(t,e){if(!Kf(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!Uf(t.children[n],e.children[n]))return!1}return!0}function $f(t,e){return Wf(t,e,e.segments)}function Wf(t,e,n){if(t.segments.length>n.length)return!!Kf(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!Kf(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!$f(t.children[n],e.children[n]))return!1}return!0}{const r=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!Kf(t.segments,r)&&!!t.children.primary&&Wf(t.children.primary,e,i)}}class zf{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Df(this.queryParams)),this._queryParamMap}toString(){return Jf.serialize(this)}}class qf{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Lf(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tg(this)}}class Xf{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Df(this.parameters)),this._parameterMap}toString(){return ag(this)}}function Kf(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Qf(t,e){let n=[];return Lf(t.children,(t,r)=>{r===Of&&(n=n.concat(e(t,r)))}),Lf(t.children,(t,r)=>{r!==Of&&(n=n.concat(e(t,r)))}),n}class Yf{}class Zf{parse(t){const e=new dg(t);return new zf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+eg(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${rg(e)}=${rg(t)}`).join("&"):`${rg(e)}=${rg(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Jf=new Zf;function tg(t){return t.segments.map(t=>ag(t)).join("/")}function eg(t,e){if(!t.hasChildren())return tg(t);if(e){const e=t.children.primary?eg(t.children.primary,!1):"",n=[];return Lf(t.children,(t,e)=>{e!==Of&&n.push(`${e}:${eg(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=Qf(t,(e,n)=>n===Of?[eg(t.children.primary,!1)]:[`${n}:${eg(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${tg(t)}/${e[0]}`:`${tg(t)}/(${e.join("//")})`}}function ng(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rg(t){return ng(t).replace(/%3B/gi,";")}function ig(t){return ng(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function sg(t){return decodeURIComponent(t)}function og(t){return sg(t.replace(/\+/g,"%20"))}function ag(t){return`${ig(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${ig(t)}=${ig(e[t])}`).join("")}`;var e}const lg=/^[^\/()?;=#]+/;function cg(t){const e=t.match(lg);return e?e[0]:""}const ug=/^[^=?&#]+/,hg=/^[^?&#]+/;class dg{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qf([],{}):new qf([],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 qf(t,e)),n}parseSegment(){const t=cg(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Xf(sg(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=cg(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=cg(this.remaining);t&&(n=t,this.capture(n))}t[sg(e)]=sg(n)}parseQueryParam(t){const e=function(t){const e=t.match(ug);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(hg);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=og(e),i=og(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=cg(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Of);const s=this.parseChildren();e[i]=1===Object.keys(s).length?s.primary:new qf([],s),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 pg{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=fg(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=fg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=gg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return gg(t,this._root).map(t=>t.value)}}function fg(t,e){if(t===e.value)return e;for(const n of e.children){const e=fg(t,n);if(e)return e}return null}function gg(t,e){if(t===e.value)return[e];for(const n of e.children){const r=gg(t,n);if(r.length)return r.unshift(e),r}return[]}class mg{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function yg(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class bg extends pg{constructor(t,e){super(t),this.snapshot=e,Cg(this,t)}toString(){return this.snapshot.toString()}}function _g(t,e){const n=function(t,e){const n=new Sg([],{},{},"",{},Of,e,null,t.root,-1,{});return new Tg("",new mg(n,[]))}(t,e),r=new _p([new Xf("",{})]),i=new _p({}),s=new _p({}),o=new _p({}),a=new _p(""),l=new vg(r,i,o,a,s,Of,e,n.root);return l.snapshot=n.root,new bg(new mg(l,[]),n)}class vg{constructor(t,e,n,r,i,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(E(t=>Df(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(E(t=>Df(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function wg(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 Sg{constructor(t,e,n,r,i,s,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,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=Df(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Df(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Tg extends pg{constructor(t,e){super(e),this.url=t,Cg(this,e)}toString(){return xg(this._root)}}function Cg(t,e){e.value._routerState=t,e.children.forEach(e=>Cg(t,e))}function xg(t){const e=t.children.length>0?` { ${t.children.map(xg).join(", ")} } `:"";return`${t.value}${e}`}function Eg(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Hf(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Hf(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(!Hf(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Hf(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function kg(t,e){var n,r;return Hf(t.params,e.params)&&Kf(n=t.url,r=e.url)&&n.every((t,e)=>Hf(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||kg(t.parent,e.parent))}function Ag(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 Ag(t,e,r);return Ag(t,e)})}(t,e,n);return new mg(r,i)}{const n=t.retrieve(e.value);if(n){const t=n.route;return Pg(e,t),t}{const n=new vg(new _p((r=e.value).url),new _p(r.params),new _p(r.queryParams),new _p(r.fragment),new _p(r.data),r.outlet,r.component,r),i=e.children.map(e=>Ag(t,e));return new mg(n,i)}}var r}function Pg(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)Pg(t.children[n],e.children[n])}function Mg(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Og(t){return"object"==typeof t&&null!=t&&t.outlets}function Ig(t,e,n,r,i){let s={};return r&&Lf(r,(t,e)=>{s[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new zf(n.root===t?e:Dg(n.root,t,e),s,i)}function Dg(t,e,n){const r={};return Lf(t.children,(t,i)=>{r[i]=t===e?n:Dg(t,e,n)}),new qf(t.segments,r)}class Rg{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Mg(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(Og);if(r&&r!==Gf(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ng{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Hg(t,e,n){if(t||(t=new qf([],{})),0===t.segments.length&&t.hasChildren())return Fg(t,e,n);const r=function(t,e,n){let r=0,i=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return s;const e=t.segments[i],o=n[r];if(Og(o))break;const a=""+o,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(!Bg(a,l,e))return s;r+=2}else{if(!Bg(a,{},e))return s;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 qf(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new qf(t.segments.slice(r.pathIndex),t.children),Fg(e,0,i)}return r.match&&0===i.length?new qf(t.segments,{}):r.match&&!t.hasChildren()?Vg(t,e,n):r.match?Fg(t,0,i):Vg(t,e,n)}function Fg(t,e,n){if(0===n.length)return new qf(t.segments,{});{const r=function(t){return Og(t[0])?t[0].outlets:{[Of]:t}}(n),i={};return Lf(r,(n,r)=>{null!==n&&(i[r]=Hg(t.children[r],e,n))}),Lf(t.children,(t,e)=>{void 0===r[e]&&(i[e]=t)}),new qf(t.segments,i)}}function Vg(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i<n.length;){const s=n[i];if(Og(s)){const t=Gg(s.outlets);return new qf(r,t)}if(0===i&&Mg(n[0])){r.push(new Xf(t.segments[e].path,n[0])),i++;continue}const o=Og(s)?s.outlets.primary:""+s,a=i<n.length-1?n[i+1]:null;o&&a&&Mg(a)?(r.push(new Xf(o,Lg(a))),i+=2):(r.push(new Xf(o,{})),i++)}return new qf(r,{})}function Gg(t){const e={};return Lf(t,(t,n)=>{null!==t&&(e[n]=Vg(new qf([],{}),0,t))}),e}function Lg(t){const e={};return Lf(t,(t,n)=>e[n]=""+t),e}function Bg(t,e,n){return t==n.path&&Hf(e,n.parameters)}class jg{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),Eg(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=yg(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),Lf(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);if(n){const r=yg(t),i=t.value.component?n.children:e;Lf(r,(t,e)=>this.deactivateRouteAndItsChildren(t,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=yg(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new Pf(t.value.snapshot))}),t.children.length&&this.forwardEvent(new kf(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(Eg(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),Ug(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 Ug(t){Eg(t.value),t.children.forEach(Ug)}class $g{constructor(t,e){this.routes=t,this.module=e}}function Wg(t){return"function"==typeof t}function zg(t){return t instanceof zf}const qg=Symbol("INITIAL_VALUE");function Xg(){return zp(t=>Cp(...t.map(t=>t.pipe(Kp(1),Jp(qg)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new tf(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,r,i)=>{if(t!==qg)return t;if(r===qg&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||zg(r))return r}return t},t)},qg),Ip(t=>t!==qg),E(t=>zg(t)?t:!0===t),Kp(1)))}let Kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&ua(0,"router-outlet")},directives:function(){return[jm]},encapsulation:2}),t})();function Qg(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];Yg(r,Zg(e,r))}}function Yg(t,e){t.children&&Qg(t.children,e)}function Zg(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Jg(t){const e=t.children&&t.children.map(Jg),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==Of&&(n.component=Kg),n}function tm(t){return t.outlet||Of}class em{constructor(t){this.segmentGroup=t||null}}class nm{constructor(t){this.urlTree=t}}function rm(t){return new b(e=>e.error(new em(t)))}function im(t){return new b(e=>e.error(new nm(t)))}function sm(t){return new b(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class om{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(Jt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Of).pipe(E(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(nf(t=>{if(t instanceof nm)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof em)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Of).pipe(E(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(nf(t=>{if(t instanceof em)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 qf([],{[Of]:t}):t;return new zf(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(E(t=>new qf([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return bp({});const n=[],r=[],i={};return Lf(t,(t,s)=>{const o=e(s,t).pipe(E(t=>i[s]=t));s===Of?n.push(o):r.push(o)}),bp.apply(null,n.concat(r)).pipe(Op(),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Ip((e,n)=>t(e,n,r)):y,Hp(1),n?Up(e):Gp(()=>new kp))}(),E(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,i,s){const o=function(t){return t.reduce((t,e)=>{const n=tm(e);return t.has(n)?t.get(n).push(e):t.set(n,[e]),t},new Map)}(n);o.has(i)||o.set(i,[]);const a=n=>H(n).pipe(of(o=>this.expandSegmentAgainstRoute(t,e,n,o,r,i,s).pipe(nf(t=>{if(t instanceof em)return bp(null);throw t}))),af(t=>null!==t),nf(t=>{if(t instanceof kp||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,i))return bp(new qf([],{}));throw new em(e)}throw t}));return H(Array.from(o.entries()).map(([t,e])=>{const n=a(e);return t===i?n:n.pipe(E(()=>null),nf(()=>bp(null)))})).pipe(t=>t.lift(new xp(void 0)),af(),E(t=>t.find(t=>null!==t)))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,i,s,o){return tm(r)!==s&&""!==r.path?rm(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,s):rm(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?im(i):this.lineralizeSegments(n,i).pipe(L(n=>{const i=new qf(n,{});return this.expandSegment(t,i,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=am(e,r,i);if(!o)return rm(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?im(u):this.lineralizeSegments(r,u).pipe(L(r=>this.expandSegment(t,e,n,r.concat(i.slice(l)),s,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(E(t=>(n._loadedConfig=t,new qf(r,{})))):bp(new qf(r,{}));const{matched:i,consumedSegments:s,lastChild:o}=am(e,n,r);if(!i)return rm(e);const a=r.slice(o);return this.getChildConfig(t,n,r).pipe(L(t=>{const n=t.module,r=t.routes,{segmentGroup:i,slicedSegments:o}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>cm(t,e,n)&&tm(n)!==Of)}(t,n,r)?{segmentGroup:lm(new qf(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&tm(r)!==Of&&(n[tm(r)]=new qf([],{}));return n}(r,new qf(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>cm(t,e,n))}(t,n,r)?{segmentGroup:lm(new qf(t.segments,function(t,e,n,r){const i={};for(const s of n)cm(t,e,s)&&!r[tm(s)]&&(i[tm(s)]=new qf([],{}));return Object.assign(Object.assign({},r),i)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,a,r);return 0===o.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(E(t=>new qf(s,t))):0===r.length&&0===o.length?bp(new qf(s,{})):this.expandSegment(n,i,r,o,Of,!0).pipe(E(t=>new qf(s.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?bp(new $g(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?bp(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(L(n=>n?this.configLoader.load(t.injector,e).pipe(E(t=>(e._loadedConfig=t,t))):function(t){return new b(e=>e.error(Rf(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):bp(new $g([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?bp(r.map(r=>{const i=t.get(r);let s;if(function(t){return t&&Wg(t.canLoad)}(i))s=i.canLoad(e,n);else{if(!Wg(i))throw new Error("Invalid CanLoad guard");s=i(e,n)}return Bf(s)})).pipe(Xg(),cf(t=>{if(!zg(t))return;const e=Rf(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),E(t=>!0===t)):bp(!0)}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return bp(n);if(r.numberOfChildren>1||!r.children.primary)return sm(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 zf(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Lf(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 s={};return Lf(e.children,(e,i)=>{s[i]=this.createSegmentGroup(t,e,n,r)}),new qf(i,s)}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 am(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(e.matcher||Nf)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function lm(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new qf(t.segments.concat(e.segments),e.children)}return t}function cm(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}class um{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class hm{constructor(t,e){this.component=t,this.route=e}}function dm(t,e,n){const r=t._root;return fm(r,e?e._root:null,n,[r.value])}function pm(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 fm(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=yg(e);return t.children.forEach(t=>{!function(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Kf(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Kf(t.url,e.url)||!Hf(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!kg(t,e)||!Hf(t.queryParams,e.queryParams);case"paramsChange":default:return!kg(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new um(r)):(s.data=o.data,s._resolvedData=o._resolvedData),fm(t,e,s.component?a?a.children:null:n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new hm(a.outlet.component,o))}else o&&gm(e,a,i),i.canActivateChecks.push(new um(r)),fm(t,null,s.component?a?a.children:null:n,r,i)}(t,s[t.value.outlet],n,r.concat([t.value]),i),delete s[t.value.outlet]}),Lf(s,(t,e)=>gm(t,n.getContext(e),i)),i}function gm(t,e,n){const r=yg(t),i=t.value;Lf(r,(t,r)=>{gm(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new hm(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}function mm(t,e){return null!==t&&e&&e(new Af(t)),bp(!0)}function ym(t,e){return null!==t&&e&&e(new Ef(t)),bp(!0)}function bm(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?bp(r.map(r=>Mp(()=>{const i=pm(r,e,n);let s;if(function(t){return t&&Wg(t.canActivate)}(i))s=Bf(i.canActivate(e,t));else{if(!Wg(i))throw new Error("Invalid CanActivate guard");s=Bf(i(e,t))}return s.pipe(af())}))).pipe(Xg()):bp(!0)}function _m(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=>Mp(()=>bp(e.guards.map(i=>{const s=pm(i,e.node,n);let o;if(function(t){return t&&Wg(t.canActivateChild)}(s))o=Bf(s.canActivateChild(r,t));else{if(!Wg(s))throw new Error("Invalid CanActivateChild guard");o=Bf(s(r,t))}return o.pipe(af())})).pipe(Xg())));return bp(i).pipe(Xg())}class vm{}class wm{constructor(t,e,n,r,i,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){try{const t=Cm(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Of),n=new Sg([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Of,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new mg(n,e),i=new Tg(this.url,r);return this.inheritParamsAndData(i._root),bp(i)}catch(t){return new b(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=wg(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=Qf(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>t.value.outlet===Of?-1:e.value.outlet===Of?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const s of t)try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(i){if(!(i instanceof vm))throw i}if(this.noLeftoversInUrl(e,n,r))return[];throw new vm}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new vm;if((t.outlet||Of)!==r)throw new vm;let i,s=[],o=[];if("**"===t.path){const s=n.length>0?Gf(n).parameters:{};i=new Sg(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,km(t),r,t.component,t,Sm(e),Tm(e)+n.length,Am(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new vm;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||Nf)(n,t,e);if(!r)throw new vm;const i={};Lf(r.posParams,(t,e)=>{i[e]=t.path});const s=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(e,t,n);s=a.consumedSegments,o=n.slice(a.lastChild),i=new Sg(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,km(t),r,t.component,t,Sm(e),Tm(e)+s.length,Am(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Cm(e,s,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new mg(i,t)]}if(0===a.length&&0===c.length)return[new mg(i,[])];const u=this.processSegment(a,l,c,Of);return[new mg(i,u)]}}function Sm(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Tm(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 Cm(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some(n=>xm(t,e,n)&&Em(n)!==Of)}(t,n,r)){const i=new qf(e,function(t,e,n,r){const i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&Em(s)!==Of){const n=new qf([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,i[Em(s)]=n}return i}(t,e,r,new qf(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=>xm(t,e,n))}(t,n,r)){const s=new qf(t.segments,function(t,e,n,r,i,s){const o={};for(const a of r)if(xm(t,n,a)&&!i[Em(a)]){const n=new qf([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[Em(a)]=n}return Object.assign(Object.assign({},i),o)}(t,e,n,r,t.children,i));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new qf(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function xm(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Em(t){return t.outlet||Of}function km(t){return t.data||{}}function Am(t){return t.resolve||{}}function Pm(t){return function(e){return e.pipe(zp(e=>{const n=t(e);return n?H(n).pipe(E(()=>e)):H([e])}))}}class Mm 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 Om=new Vt("ROUTES");class Im{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(E(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new $g(Vf(r.injector.get(Om)).map(Jg),r)}))}loadModuleFactory(t){return"string"==typeof t?H(this.loader.load(t)):Bf(t()).pipe(L(t=>t instanceof te?bp(t):H(this.compiler.compileModuleAsync(t))))}}class Dm{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Rm,this.attachRef=null}}class Rm{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 Dm,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Nm{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Hm(t){throw t}function Fm(t,e,n){return e.parse("/")}function Vm(t,e){return bp(null)}let Gm=(()=>{class t{constructor(t,e,n,r,i,s,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new T,this.errorHandler=Hm,this.malformedUriErrorHandler=Fm,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Vm,afterPreactivation:Vm},this.urlHandlingStrategy=new Nm,this.routeReuseStrategy=new Mm,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=i.get(Jt),this.console=i.get(ku);const l=i.get(Lu);this.isNgZoneEnabled=l instanceof Lu,this.resetConfig(a),this.currentUrlTree=new zf(new qf([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Im(s,o,t=>this.triggerEvent(new Cf(t)),t=>this.triggerEvent(new xf(t))),this.routerState=_g(this.currentUrlTree,this.rootComponentType),this.transitions=new _p({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Ip(t=>0!==t.id),E(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),zp(t=>{let n=!1,r=!1;return bp(t).pipe(cf(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}}),zp(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return bp(t).pipe(zp(t=>{const n=this.transitions.getValue();return e.next(new gf(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Ap:[t]}),zp(t=>Promise.resolve(t)),(r=this.ngModule.injector,i=this.configLoader,s=this.urlSerializer,o=this.config,function(t){return t.pipe(zp(t=>function(t,e,n,r,i){return new om(t,e,n,r,i).apply()}(r,i,s,t.extractedUrl,o).pipe(E(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),cf(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,i){return function(s){return s.pipe(L(s=>function(t,e,n,r,i="emptyOnly",s="legacy"){return new wm(t,e,n,r,i,s).recognize()}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),r,i).pipe(E(t=>Object.assign(Object.assign({},s),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),cf(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),cf(t=>{const n=new _f(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,i,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:s,extras:o}=t,a=new gf(n,this.serializeUrl(r),i,s);e.next(a);const l=_g(r,this.rootComponentType).snapshot;return bp(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Ap}),Pm(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),cf(t=>{const e=new vf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),E(t=>Object.assign(Object.assign({},t),{guards:dm(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(L(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?bp(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return H(t).pipe(L(t=>function(t,e,n,r,i){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?bp(s.map(s=>{const o=pm(s,e,i);let a;if(function(t){return t&&Wg(t.canDeactivate)}(o))a=Bf(o.canDeactivate(t,e,n,r));else{if(!Wg(o))throw new Error("Invalid CanDeactivate guard");a=Bf(o(t,e,n,r))}return a.pipe(af())})).pipe(Xg()):bp(!0)}(t.component,t.route,n,e,r)),af(t=>!0!==t,!0))}(o,r,i,t).pipe(L(n=>n&&"boolean"==typeof n?function(t,e,n,r){return H(e).pipe(of(e=>H([ym(e.route.parent,r),mm(e.route,r),_m(t,e.path,n),bm(t,e.route,n)]).pipe(Op(),af(t=>!0!==t,!0))),af(t=>!0!==t,!0))}(r,s,t,e):bp(n)),E(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),cf(t=>{if(zg(t.guardsResult)){const e=Rf(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),cf(t=>{const e=new wf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Ip(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new yf(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Pm(t=>{if(t.guards.canActivateChecks.length)return bp(t).pipe(cf(t=>{const e=new Sf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),zp(t=>{let n=!1;return bp(t).pipe((r=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(t){return t.pipe(L(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return bp(t);let s=0;return H(n).pipe(of(t=>function(t,e,n,r){return function(t,e,n,r){const i=Object.keys(t);if(0===i.length)return bp({});const s={};return H(i).pipe(L(i=>function(t,e,n,r){const i=pm(t,e,r);return Bf(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(cf(t=>{s[i]=t}))),Hp(1),L(()=>Object.keys(s).length===i.length?bp(s):Ap))}(t._resolve,t,e,r).pipe(E(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),wg(t,n).resolve),null)))}(t.route,e,r,i)),cf(()=>s++),Hp(1),L(e=>s===n.length?bp(t):Ap))}))}),cf({next:()=>n=!0,complete:()=>{if(!n){const n=new yf(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var r,i}),cf(t=>{const e=new Tf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Pm(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),E(t=>{const e=function(t,e,n){const r=Ag(t,e._root,n?n._root:void 0);return new bg(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),cf(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),E(t=>(new jg(o,t.targetRouterState,t.currentRouterState,a).activate(s),t))),cf({next(){n=!0},complete(){n=!0}}),(i=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new yf(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new df(i))),nf(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=zg(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const i=new yf(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(i),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new bf(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}var i;return Ap}));var i,s,o,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,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){Qg(t),this.config=t.map(Jg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:i,queryParamsHandling:s,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:i;let c=null;switch(s){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 Ig(e.root,e.root,e,r,i);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Rg(!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 Lf(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 Rg(n,e,r)}(n);if(s.toRoot())return Ig(e.root,new qf([],{}),e,r,i);const o=function(t,e,n){if(t.isAbsolute)return new Ng(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Ng(t,t===e.root,0)}const r=Mg(t.commands[0])?0:1;return function(t,e,n){let r=t,i=e,s=n;for(;s>i;){if(s-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new Ng(r,!1,i-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?Fg(o.segmentGroup,o.index,s.commands):Hg(o.segmentGroup,o.index,s.commands);return Ig(o.segmentGroup,a,e,r,i)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=zg(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){if(zg(t))return jf(this.currentUrlTree,t,e);const n=this.parseUrl(t);return jf(this.currentUrlTree,n,e)}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.events.next(new mf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,i){const s=this.getTransition(),o="imperative"!==e&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;i?(l=i.resolve,c=i.reject,u=i.promise):u=new Promise((t,e)=>{l=t,c=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const i=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(Kt(To),Kt(Yf),Kt(Rm),Kt(Ih),Kt(Vo),Kt(ah),Kt(Fu),Kt(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Lm=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new T,this.subscription=t.events.subscribe(t=>{t instanceof mf&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r,i){if(0!==t||e||n||r||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:Bm(this.skipLocationChange),replaceUrl:Bm(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Bm(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(sa(Gm),sa(vg),sa(kh))},t.\u0275dir=ve({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&ma("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(Qa("href",e.href,mi),ea("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[je]}),t})();function Bm(t){return""===t||!!t}let jm=(()=>{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 Qc,this.deactivateEvents=new Qc,this.name=r||Of,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 Um(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)(sa(Rm),sa(Rc),sa(ac),("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(Zn(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}(gn(),"name")),sa(wo))},t.\u0275dir=ve({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Um{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===vg?this.route:t===Rm?this.childContexts:this.parent.get(t,e)}}class $m{}class Wm{preload(t,e){return bp(null)}}let zm=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new Im(e,n,e=>t.triggerEvent(new Cf(e)),e=>t.triggerEvent(new xf(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Ip(t=>t instanceof mf),of(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Jt);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 H(n).pipe(U(),E(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>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)(Kt(Gm),Kt(ah),Kt(Fu),Kt(Vo),Kt($m))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),qm=(()=>{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 gf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof mf&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Mf&&(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 Mf(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)(Kt(Gm),Kt(Nd),Kt(void 0))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Xm=new Vt("ROUTER_CONFIGURATION"),Km=new Vt("ROUTER_FORROOT_GUARD"),Qm=[Ih,{provide:Yf,useClass:Zf},{provide:Gm,useFactory:function(t,e,n,r,i,s,o,a={},l,c){const u=new Gm(null,t,e,n,r,i,s,Vf(o));if(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){const t=mh();u.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return u},deps:[Yf,Rm,Ih,Vo,ah,Fu,Om,Xm,[class{},new it],[class{},new it]]},Rm,{provide:vg,useFactory:function(t){return t.routerState.root},deps:[Gm]},{provide:ah,useClass:uh},zm,Wm,class{preload(t,e){return e().pipe(nf(()=>bp(null)))}},{provide:Xm,useValue:{enableTracing:!1}}];function Ym(){return new th("Router",Gm)}let Zm=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Qm,ny(e),{provide:Km,useFactory:ey,deps:[[Gm,new it,new ot]]},{provide:Xm,useValue:n||{}},{provide:kh,useFactory:ty,deps:[bh,[new rt(Ph),new it],Xm]},{provide:qm,useFactory:Jm,deps:[Gm,Nd,Xm]},{provide:$m,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Wm},{provide:th,multi:!0,useFactory:Ym},[ry,{provide:_u,multi:!0,useFactory:iy,deps:[ry]},{provide:oy,useFactory:sy,deps:[ry]},{provide:Eu,multi:!0,useExisting:oy}]]}}static forChild(e){return{ngModule:t,providers:[ny(e)]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)(Kt(Km,8),Kt(Gm,8))}}),t})();function Jm(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new qm(t,e,n)}function ty(t,e,n={}){return n.useHash?new Oh(t,e):new Mh(t,e)}function ey(t){return"guarded"}function ny(t){return[{provide:Go,multi:!0,useValue:t},{provide:Om,multi:!0,useValue:t}]}let ry=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new T}appInitializer(){return this.injector.get(vh,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Gm),r=this.injector.get(Xm);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?bp(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Xm),n=this.injector.get(zm),r=this.injector.get(qm),i=this.injector.get(Gm),s=this.injector.get(sh);t===s.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vo))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();function iy(t){return t.appInitializer.bind(t)}function sy(t){return t.bootstrapListener.bind(t)}const oy=new Vt("Router Initializer");function ay(t,e,n,r){return new(n||(n=Promise))(function(i,s){function o(t){try{l(r.next(t))}catch(e){s(e)}}function a(t){try{l(r.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}l((r=r.apply(t,e||[])).next())})}function ly(t,e,n,i){return r(n)&&(i=n,n=void 0),i?ly(t,e,n).pipe(E(t=>l(t)?i(...t):i(t))):new b(r=>{cy(t,e,function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},r,n)})}function cy(t,e,n,r,i){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const r=t;t.addEventListener(e,n,i),s=()=>r.removeEventListener(e,n,i)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const r=t;t.on(e,n),s=()=>r.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const r=t;t.addListener(e,n),s=()=>r.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,o=t.length;s<o;s++)cy(t[s],e,n,r,i)}r.add(s)}class uy extends h{constructor(t,e){super()}schedule(t,e=0){return this}}class hy extends uy{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let dy=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class py extends dy{constructor(t,e=dy.now){super(t,()=>py.delegate&&py.delegate!==this?py.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return py.delegate&&py.delegate!==this?py.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const fy=new py(hy);function gy(t){return!l(t)&&t-parseFloat(t)+1>=0}function my(t=0,e,n){let r=-1;return gy(e)?r=Number(e)<1?1:Number(e):x(e)&&(n=e),x(n)||(n=fy),new b(e=>{const i=gy(t)?t:+t-n.now();return n.schedule(yy,i,{index:0,period:r,subscriber:e})})}function yy(t){const{index:e,period:n,subscriber:r}=t;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function by(...t){if(1===t.length){if(!l(t[0]))return t[0];t=t[0]}return $(t,void 0).lift(new _y)}class _y{call(t,e){return e.subscribe(new vy(t))}}class vy extends vp{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;n<e&&!this.hasFirst;n++){const e=Sp(this,t[n],void 0,n);this.subscriptions&&this.subscriptions.push(e),this.add(e)}this.observables=null}}notifyNext(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(let t=0;t<this.subscriptions.length;t++)if(t!==n){let e=this.subscriptions[t];e.unsubscribe(),this.remove(e)}this.subscriptions=null}this.destination.next(e)}}const wy=new b(lf);function Sy(...t){const e=t[t.length-1];return"function"==typeof e&&t.pop(),$(t,void 0).lift(new Ty(e))}class Ty{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Cy(t,this.resultSelector))}}class Cy extends f{constructor(t,e,n=Object.create(null)){super(t),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(t){const e=this.iterators;l(t)?e.push(new Ey(t)):e.push("function"==typeof t[O]?new xy(t[O]()):new ky(this.destination,this,t))}_complete(){const t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(let n=0;n<e;n++){let e=t[n];e.stillUnsubscribed?this.destination.add(e.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const t=this.iterators,e=t.length,n=this.destination;for(let s=0;s<e;s++){let e=t[s];if("function"==typeof e.hasValue&&!e.hasValue())return}let r=!1;const i=[];for(let s=0;s<e;s++){let e=t[s],o=e.next();if(e.hasCompleted()&&(r=!0),o.done)return void n.complete();i.push(o.value)}this.resultSelector?this._tryresultSelector(i):n.next(i),r&&n.complete()}_tryresultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class xy{constructor(t){this.iterator=t,this.nextResult=t.next()}hasValue(){return!0}next(){const t=this.nextResult;return this.nextResult=this.iterator.next(),t}hasCompleted(){const t=this.nextResult;return Boolean(t&&t.done)}}class Ey{constructor(t){this.array=t,this.index=0,this.length=0,this.length=t.length}[O](){return this}next(t){const e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class ky extends V{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[O](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return G(this.observable,new F(this))}}function Ay(t){return e=>e.lift(new Py(t))}class Py{constructor(t){this.notifier=t}call(t,e){const n=new My(t),r=G(this.notifier,new F(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class My extends V{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Oy(t,e){return n=>n.lift(new Iy(t,e))}class Iy{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Dy(t,this.compare,this.keySelector))}}class Dy extends f{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}function Ry(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new Ny(t,n))}}class Ny{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new Hy(t,this.observables,this.project))}}class Hy extends vp{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let i=0;i<r;i++)this.toRespond.push(i);for(let i=0;i<r;i++)this.add(Sp(this,e[i],void 0,i))}notifyNext(t,e,n){this.values[n]=e;const r=this.toRespond;if(r.length>0){const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}let Fy=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return bp(this.value);case"E":return t=this.error,new b(e=>e.error(t));case"C":return Pp()}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();function Vy(t,e=fy){var n;const r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new Gy(r,e))}class Gy{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Ly(t,this.delay,this.scheduler))}}class Ly extends f{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,r=t.scheduler,i=t.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const e=Math.max(0,n[0].time-r.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Ly.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new By(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Fy.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Fy.createComplete()),this.unsubscribe()}}class By{constructor(t,e){this.time=t,this.notification=e}}function jy(t,e){return new b(n=>{const r=t.length;if(0===r)return void n.complete();const i=new Array(r);let s=0,o=0;for(let a=0;a<r;a++){const l=H(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),i[a]=t},error:t=>n.error(t),complete:()=>{s++,s!==r&&c||(o===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}const Uy=new Vt("NgValueAccessor"),$y={provide:Uy,useExisting:St(()=>Wy),multi:!0};let Wy=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(sa(dc),sa(lc))},t.\u0275dir=ve({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&ma("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[ic([$y])]}),t})();const zy={provide:Uy,useExisting:St(()=>Xy),multi:!0},qy=new Vt("CompositionEventMode");let Xy=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=mh()?mh().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(sa(dc),sa(lc),sa(qy,8))},t.\u0275dir=ve({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&&ma("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:[ic([zy])]}),t})();function Ky(t){return null==t||0===t.length}function Qy(t){return null!=t&&"number"==typeof t.length}const Yy=new Vt("NgValidators"),Zy=new Vt("NgAsyncValidators"),Jy=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class tb{static min(t){return e=>{if(Ky(e.value)||Ky(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(Ky(e.value)||Ky(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Ky(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Ky(t.value)||Jy.test(t.value)?null:{email:!0}}static minLength(t){return e=>Ky(e.value)||!Qy(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>Qy(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return tb.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(Ky(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(eb);return 0==e.length?null:function(t){return rb(ib(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(eb);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return jy(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return jy(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return jy(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(E(t=>e(...t)))}return jy(t,null)}(ib(t,e).map(nb)).pipe(E(rb))}}}function eb(t){return null!=t}function nb(t){const e=fa(t)?H(t):t;return ga(e),e}function rb(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 ib(t,e){return e.map(e=>e(t))}function sb(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function ob(t){return null!=t?tb.compose(sb(t)):null}function ab(t){return null!=t?tb.composeAsync(sb(t)):null}function lb(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}let cb=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[]}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=ob(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=ab(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t}),t})(),ub=(()=>{class t extends cb{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return hb(e||t)},t.\u0275dir=ve({type:t,features:[jo]}),t})();const hb=Cr(ub);class db extends cb{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let pb=(()=>{class t extends class{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(sa(db,2))},t.\u0275dir=ve({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Oa("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[jo]}),t})();const fb="VALID",gb="INVALID",mb="PENDING",yb="DISABLED";function bb(t){return(Sb(t)?t.validators:t)||null}function _b(t){return Array.isArray(t)?ob(t):t||null}function vb(t,e){return(Sb(e)?e.asyncValidators:t)||null}function wb(t){return Array.isArray(t)?ab(t):t||null}function Sb(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Tb{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=_b(this._rawValidators),this._composedAsyncValidatorFn=wb(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===fb}get invalid(){return this.status===gb}get pending(){return this.status==mb}get disabled(){return this.status===yb}get enabled(){return this.status!==yb}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=_b(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=wb(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=mb,!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=yb,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=fb,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!==fb&&this.status!==mb||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()?yb:fb}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=mb,this._hasOwnPendingAsyncValidator=!0;const e=nb(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 xb?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof Eb&&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 Qc,this.statusChanges=new Qc}_calculateStatus(){return this._allControlsDisabled()?yb:this.errors?gb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mb)?mb:this._anyControlsHaveStatus(gb)?gb:fb}_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){Sb(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Cb extends Tb{constructor(t=null,e,n){super(bb(e),vb(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class xb extends Tb{constructor(t,e,n){super(bb(e),vb(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){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 Cb?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){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 Eb extends Tb{constructor(t,e,n){super(bb(e),vb(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){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 Cb?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,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 kb={provide:Uy,useExisting:St(()=>Ab),multi:!0};let Ab=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(sa(dc),sa(lc))},t.\u0275dir=ve({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&ma("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[ic([kb])]}),t})();const Pb={provide:Uy,useExisting:St(()=>Ob),multi:!0};let Mb=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Ob=(()=>{class t{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(db),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(sa(dc),sa(lc),sa(Mb),sa(Vo))},t.\u0275dir=ve({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&ma("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[ic([Pb])]}),t})();const Ib={provide:Uy,useExisting:St(()=>Db),multi:!0};let Db=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(sa(dc),sa(lc))},t.\u0275dir=ve({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&ma("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[ic([Ib])]}),t})();const Rb={provide:Uy,useExisting:St(()=>Hb),multi:!0};function Nb(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Hb=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=Nb(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(sa(dc),sa(lc))},t.\u0275dir=ve({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&ma("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[ic([Rb])]}),t})(),Fb=(()=>{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(Nb(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)(sa(lc),sa(dc),sa(Hb,9))},t.\u0275dir=ve({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Vb={provide:Uy,useExisting:St(()=>Lb),multi:!0};function Gb(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Lb=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=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)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_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(e){return new(e||t)(sa(dc),sa(lc))},t.\u0275dir=ve({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&ma("change",function(t){return e.onChange(t.target)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[ic([Vb])]}),t})(),Bb=(()=>{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(Gb(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Gb(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)(sa(lc),sa(dc),sa(Lb,9))},t.\u0275dir=ve({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function jb(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Ub(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}const $b=[Wy,Db,Ab,Hb,Lb,Ob],Wb={provide:db,useExisting:St(()=>qb)},zb=(()=>Promise.resolve(null))();let qb=(()=>{class t extends db{constructor(t,e,n,r){super(),this.control=new Cb,this._registered=!1,this.update=new Qc,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);let n=void 0,r=void 0,i=void 0;return e.forEach(t=>{var e;t.constructor===Xy?n=t:(e=t,$b.some(t=>e.constructor===t)?r=t:i=t)}),i||r||n||null}(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[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(){var t,e;(function(t,e,n){const r=function(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(lb(r,e.validator)):"function"==typeof r&&t.setValidators([r]);const i=function(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(lb(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);{const n=()=>t.updateValueAndValidity();jb(e._rawValidators,n),jb(e._rawAsyncValidators,n)}})(t=this.control,e=this),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Ub(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Ub(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),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){zb.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;zb.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(sa(ub,9),sa(Yy,10),sa(Zy,10),sa(Uy,10))},t.\u0275dir=ve({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:[ic([Wb]),jo,je]}),t})(),Xb=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)}}),t})(),Kb=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},providers:[Mb],imports:[Xb]}),t})();const Qb=["*"];function Yb(t,e){if(1&t){const t=pa();la(0,"li",6),ma("click",function(){fn(t);const n=e.$implicit,r=_a();return r.focus(),r.select(n.id,r.NgbSlideEventSource.INDICATOR)}),ca()}if(2&t){const t=e.$implicit,n=_a();Oa("active",t.id===n.activeId),ea("aria-labelledby","slide-"+t.id)("aria-controls","slide-"+t.id)("aria-selected",t.id===n.activeId)}}function Zb(t,e){}function Jb(t,e){if(1&t&&(la(0,"div",7),la(1,"span",8),Xl(2,9),ca(),ra(3,Zb,0,0,"ng-template",10),ca()),2&t){const t=e.$implicit,n=e.index,r=e.count;oa("id","slide-"+t.id),ps(2),Kl(n+1)(r),Ql(2),ps(1),oa("ngTemplateOutlet",t.tplRef)}}function t_(t,e){if(1&t){const t=pa();la(0,"a",11),ma("click",function(){return fn(t),_a().arrowLeft()}),ua(1,"span",12),la(2,"span",8),Xl(3,13),ca(),ca()}}function e_(t,e){if(1&t){const t=pa();la(0,"a",14),ma("click",function(){return fn(t),_a().arrowRight()}),ua(1,"span",15),la(2,"span",8),Xl(3,16),ca(),ca()}}const n_=["defaultDayTemplate"],r_=["content"];function i_(t,e){if(1&t&&ua(0,"div",7),2&t){const t=e.currentMonth,n=e.selected,r=e.disabled,i=e.focused;oa("date",e.date)("currentMonth",t)("selected",n)("disabled",r)("focused",i)}}function s_(t,e){if(1&t&&(la(0,"div",12),$a(1),ca()),2&t){const t=_a().$implicit,e=_a(2);ps(1),qa(" ",e.i18n.getMonthFullName(t.number,t.year)," ",e.i18n.getYearNumerals(t.year)," ")}}function o_(t,e){if(1&t&&(la(0,"div",9),ra(1,s_,2,2,"div",10),ua(2,"ngb-datepicker-month",11),ca()),2&t){const t=e.$implicit,n=_a(2);ps(1),oa("ngIf","none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),ps(1),oa("month",t.firstDate)}}function a_(t,e){1&t&&ra(0,o_,3,2,"div",8),2&t&&oa("ngForOf",_a().model.months)}function l_(t,e){if(1&t){const t=pa();la(0,"ngb-datepicker-navigation",13),ma("navigate",function(e){return fn(t),_a().onNavigateEvent(e)})("select",function(e){return fn(t),_a().onNavigateDateSelect(e)}),ca()}if(2&t){const t=_a();oa("date",t.model.firstDate)("months",t.model.months)("disabled",t.model.disabled)("showSelect","select"===t.model.navigation)("prevDisabled",t.model.prevDisabled)("nextDisabled",t.model.nextDisabled)("selectBoxes",t.model.selectBoxes)}}function c_(t,e){}function u_(t,e){}function h_(t,e){1&t&&ua(0,"div",5)}function d_(t,e){if(1&t&&(la(0,"div",6),$a(1),ca()),2&t){const t=e.$implicit,n=_a(2);ps(1),za(" ",n.i18n.getWeekdayShortName(t)," ")}}function p_(t,e){if(1&t&&(la(0,"div",2),ra(1,h_,1,0,"div",3),ra(2,d_,2,1,"div",4),ca()),2&t){const t=_a();ps(1),oa("ngIf",t.datepicker.showWeekNumbers),ps(1),oa("ngForOf",t.viewModel.weekdays)}}function f_(t,e){if(1&t&&(la(0,"div",11),$a(1),ca()),2&t){const t=_a(2).$implicit,e=_a();ps(1),Wa(e.i18n.getWeekNumerals(t.number))}}function g_(t,e){}function m_(t,e){if(1&t&&ra(0,g_,0,0,"ng-template",14),2&t){const t=_a().$implicit;oa("ngTemplateOutlet",_a(3).datepicker.dayTemplate)("ngTemplateOutletContext",t.context)}}function y_(t,e){if(1&t){const t=pa();la(0,"div",12),ma("click",function(n){fn(t);const r=e.$implicit;return _a(3).doSelect(r),n.preventDefault()}),ra(1,m_,1,2,"ng-template",13),ca()}if(2&t){const t=e.$implicit;Oa("disabled",t.context.disabled)("hidden",t.hidden)("ngb-dp-today",t.context.today),oa("tabindex",t.tabindex),ea("aria-label",t.ariaLabel),ps(1),oa("ngIf",!t.hidden)}}function b_(t,e){if(1&t&&(la(0,"div",8),ra(1,f_,2,1,"div",9),ra(2,y_,2,9,"div",10),ca()),2&t){const t=_a().$implicit,e=_a();ps(1),oa("ngIf",e.datepicker.showWeekNumbers),ps(1),oa("ngForOf",t.days)}}function __(t,e){1&t&&ra(0,b_,3,2,"div",7),2&t&&oa("ngIf",!e.$implicit.collapsed)}function v_(t,e){if(1&t){const t=pa();la(0,"ngb-datepicker-navigation-select",7),ma("select",function(e){return fn(t),_a().select.emit(e)}),ca()}if(2&t){const t=_a();oa("date",t.date)("disabled",t.disabled)("months",t.selectBoxes.months)("years",t.selectBoxes.years)}}function w_(t,e){1&t&&ua(0,"div",0)}function S_(t,e){1&t&&ua(0,"div",0)}function T_(t,e){if(1&t&&(ra(0,w_,1,0,"div",9),la(1,"div",10),$a(2),ca(),ra(3,S_,1,0,"div",9)),2&t){const t=e.$implicit,n=e.index,r=_a(2);oa("ngIf",n>0),ps(2),qa(" ",r.i18n.getMonthFullName(t.number,t.year)," ",r.i18n.getYearNumerals(t.year)," "),ps(1),oa("ngIf",n!==r.months.length-1)}}function C_(t,e){1&t&&ra(0,T_,4,4,"ng-template",8),2&t&&oa("ngForOf",_a().months)}const x_=["ngbDatepickerDayView",""],E_=["month"],k_=["year"];function A_(t,e){if(1&t&&(la(0,"option",5),$a(1),ca()),2&t){const t=e.$implicit,n=_a();oa("value",t),ea("aria-label",n.i18n.getMonthFullName(t,null==n.date?null:n.date.year)),ps(1),Wa(n.i18n.getMonthShortName(t,null==n.date?null:n.date.year))}}function P_(t,e){if(1&t&&(la(0,"option",5),$a(1),ca()),2&t){const t=e.$implicit,n=_a();oa("value",t),ps(1),Wa(n.i18n.getYearNumerals(t))}}const M_=["dialog"];function O_(t,e){1&t&&$a(0),2&t&&Wa(100===e.fill?"\u2605":"\u2606")}function I_(t,e){}function D_(t,e){if(1&t){const t=pa();la(0,"span",2),$a(1),ca(),la(2,"span",3),ma("mouseenter",function(){fn(t);const n=e.index;return _a().enter(n+1)})("click",function(){fn(t);const n=e.index;return _a().handleClick(n+1)}),ra(3,I_,0,0,"ng-template",4),ca()}if(2&t){const t=e.index,n=_a(),r=ia(1);ps(1),za("(",t<n.nextRate?"*":" ",")"),ps(1),Ma("cursor",n.isInteractive()?"pointer":"default"),ps(1),oa("ngTemplateOutlet",n.starTemplate||n.starTemplateFromContent||r)("ngTemplateOutletContext",n.contexts[t])}}function R_(t,e){if(1&t){const t=pa();la(0,"button",11),ma("click",function(){fn(t);const e=_a();return e.changeHour(e.hourStep)}),ua(1,"span",12),la(2,"span",13),Xl(3,14),ca(),ca()}if(2&t){const t=_a();Oa("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),oa("disabled",t.disabled)}}function N_(t,e){if(1&t){const t=pa();la(0,"button",11),ma("click",function(){fn(t);const e=_a();return e.changeHour(-e.hourStep)}),ua(1,"span",15),la(2,"span",13),Xl(3,16),ca(),ca()}if(2&t){const t=_a();Oa("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),oa("disabled",t.disabled)}}function H_(t,e){if(1&t){const t=pa();la(0,"button",11),ma("click",function(){fn(t);const e=_a();return e.changeMinute(e.minuteStep)}),ua(1,"span",12),la(2,"span",13),Xl(3,17),ca(),ca()}if(2&t){const t=_a();Oa("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),oa("disabled",t.disabled)}}function F_(t,e){if(1&t){const t=pa();la(0,"button",11),ma("click",function(){fn(t);const e=_a();return e.changeMinute(-e.minuteStep)}),ua(1,"span",15),la(2,"span",13),Xl(3,18),ca(),ca()}if(2&t){const t=_a();Oa("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),oa("disabled",t.disabled)}}function V_(t,e){1&t&&(la(0,"div",5),$a(1,":"),ca())}function G_(t,e){if(1&t){const t=pa();la(0,"button",11),ma("click",function(){fn(t);const e=_a(2);return e.changeSecond(e.secondStep)}),ua(1,"span",12),la(2,"span",13),Xl(3,21),ca(),ca()}if(2&t){const t=_a(2);Oa("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),oa("disabled",t.disabled)}}function L_(t,e){if(1&t){const t=pa();la(0,"button",11),ma("click",function(){fn(t);const e=_a(2);return e.changeSecond(-e.secondStep)}),ua(1,"span",15),la(2,"span",13),Xl(3,22),ca(),ca()}if(2&t){const t=_a(2);Oa("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),oa("disabled",t.disabled)}}function B_(t,e){if(1&t){const t=pa();la(0,"div",19),ra(1,G_,4,7,"button",3),la(2,"input",20),ma("change",function(e){return fn(t),_a().updateSecond(e.target.value)})("input",function(e){return fn(t),_a().formatInput(e.target)})("keydown.ArrowUp",function(e){fn(t);const n=_a();return n.changeSecond(n.secondStep),e.preventDefault()})("keydown.ArrowDown",function(e){fn(t);const n=_a();return n.changeSecond(-n.secondStep),e.preventDefault()}),ca(),ra(3,L_,4,7,"button",3),ca()}if(2&t){const t=_a();ps(1),oa("ngIf",t.spinners),ps(1),Oa("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),oa("value",t.formatMinSec(null==t.model?null:t.model.second))("readOnly",t.readonlyInputs)("disabled",t.disabled),ps(1),oa("ngIf",t.spinners)}}function j_(t,e){1&t&&ua(0,"div",5)}function U_(t,e){if(1&t&&(ha(0),Xl(1,27),da()),2&t){const t=_a(2);ps(1),Kl(t.i18n.getAfternoonPeriod()),Ql(1)}}function $_(t,e){1&t&&Xl(0,28),2&t&&(Kl(_a(2).i18n.getMorningPeriod()),Ql(0))}function W_(t,e){if(1&t){const t=pa();la(0,"div",23),la(1,"button",24),ma("click",function(){return fn(t),_a().toggleMeridian()}),ra(2,U_,2,1,"ng-container",25),ra(3,$_,1,1,"ng-template",null,26,bu),ca(),ca()}if(2&t){const t=ia(4),e=_a();ps(1),Oa("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),oa("disabled",e.disabled),ps(1),oa("ngIf",e.model&&e.model.hour>=12)("ngIfElse",t)}}function z_(t,e){if(1&t&&(la(0,"span"),$a(1),ca()),2&t){const t=_a().$implicit;Ia(_a().highlightClass),ps(1),Wa(t)}}function q_(t,e){1&t&&$a(0),2&t&&Wa(_a().$implicit)}function X_(t,e){if(1&t&&(ra(0,z_,2,3,"span",1),ra(1,q_,1,1,"ng-template",null,2,bu)),2&t){const t=e.odd,n=ia(2);oa("ngIf",t)("ngIfElse",n)}}function K_(t,e){if(1&t&&ua(0,"ngb-highlight",2),2&t){const t=e.term;oa("result",(0,e.formatter)(e.result))("term",t)}}function Q_(t,e){}const Y_=function(t,e,n){return{result:t,term:e,formatter:n}};function Z_(t,e){if(1&t){const t=pa();la(0,"button",3),ma("mouseenter",function(){fn(t);const n=e.index;return _a().markActive(n)})("click",function(){fn(t);const n=e.$implicit;return _a().select(n)}),ra(1,Q_,0,0,"ng-template",4),ca()}if(2&t){const t=e.$implicit,l=e.index,c=_a(),u=ia(1);Oa("active",l===c.activeIdx),oa("id",c.id+"-"+l),ps(1),oa("ngTemplateOutlet",c.resultTemplate||u)("ngTemplateOutletContext",(n=5,r=Y_,i=t,s=c.term,o=c.formatter,function(t,e,n,r,i,s,o,a){const l=e+n;return function(t,e,n,r,i){const s=ta(t,e,n,r);return Jo(t,e+2,i)||s}(t,l,i,s,o)?Zo(t,l+3,a?r.call(a,i,s,o):r(i,s,o)):zc(t,l+3)}(dn(),Tn(),n,r,i,s,o,a)))}var n,r,i,s,o,a}function J_(t){return parseInt(""+t,10)}function tv(t){return null!=t?""+t:""}function ev(t,e,n=0){return Math.max(Math.min(t,e),n)}function nv(t){return"string"==typeof t}function rv(t){return!isNaN(J_(t))}function iv(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function sv(t){return null!=t}function ov(t){return rv(t)?("0"+t).slice(-2):""}function av(t,e){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(e)>=0}function lv(t){return(t||document.body).offsetHeight}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});const cv={animation:!0,transitionTimerDelayMs:5};let uv=(()=>{class t{constructor(){this.animation=cv.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const hv=()=>{},{transitionTimerDelayMs:dv}=cv,pv=new Map,fv=(t,e,n)=>{let r=n.context||{};const i=pv.get(t);if(i)switch(n.runningTransition){case"continue":return Ap;case"stop":i.transition$.complete(),r=Object.assign(i.context,r),pv.delete(t)}lv(t);const s=e(t,r)||hv;if(!n.animation||"none"===window.getComputedStyle(t).transitionProperty)return s(),bp(void 0);const o=new T,a=o.pipe(function(...t){return e=>Zp(e,bp(...t))}(!0));pv.set(t,{transition$:o,context:r});const l=function(t){const{transitionDelay:e,transitionDuration:n}=window.getComputedStyle(t);return 1e3*(parseFloat(e)+parseFloat(n))}(t),c=ly(t,"transitionend").pipe(Ay(a),Ip(({target:e})=>e===t));return by(my(l+dv).pipe(Ay(a)),c).pipe(Ay(a)).subscribe(()=>{pv.delete(t),s(),o.next(),o.complete()}),o.asObservable()};let gv=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd]]}),t})(),mv=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd]]}),t})(),yv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(t,e){2&t&&Oa("btn",!0)("active",e.active)("disabled",e.disabled)("focus",e.focused)}}),t})();const bv={provide:Uy,useExisting:St(()=>_v),multi:!0};let _v=(()=>{class t{constructor(t,e){this._label=t,this._cd=e,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=t=>{},this.onTouched=()=>{}}set focused(t){this._label.focused=t,t||this.onTouched()}onInputChange(t){const e=t.target.checked?this.valueChecked:this.valueUnChecked;this.onChange(e),this.onTouched(),this.writeValue(e)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._label.disabled=t}writeValue(t){this.checked=t===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(sa(yv),sa(wo))},t.\u0275dir=ve({type:t,selectors:[["","ngbButton","","type","checkbox"]],hostVars:2,hostBindings:function(t,e){1&t&&ma("change",function(t){return e.onInputChange(t)})("focus",function(){return e.focused=!0})("blur",function(){return e.focused=!1}),2&t&&Qa("checked",e.checked)("disabled",e.disabled)},inputs:{disabled:"disabled",valueChecked:"valueChecked",valueUnChecked:"valueUnChecked"},features:[ic([bv])]}),t})();const vv={provide:Uy,useExisting:St(()=>Sv),multi:!0};let wv=0,Sv=(()=>{class t{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+wv++,this.onChange=t=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this.setDisabledState(t)}onRadioChange(t){this.writeValue(t.value),this.onChange(t.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(t){this._radios.add(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._disabled=t,this._updateRadiosDisabled()}unregister(t){this._radios.delete(t)}writeValue(t){this._value=t,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(t=>t.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(t=>t.updateDisabled())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ve({type:t,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[ic([vv])]}),t})(),Tv=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)}}),t})(),Cv=(()=>{class t{constructor(t){this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0,this.animation=t.animation}}return t.\u0275fac=function(e){return new(e||t)(Kt(uv))},t.\u0275prov=ut({factory:function(){return new t(Kt(uv))},token:t,providedIn:"root"}),t})();var xv=function(t){return t.LEFT="left",t.RIGHT="right",t}({});const Ev=({classList:t})=>t.contains("carousel-item-left")||t.contains("carousel-item-right"),kv=({classList:t})=>{t.remove("carousel-item-left"),t.remove("carousel-item-right")},Av=({classList:t})=>{kv({classList:t}),t.remove("carousel-item-prev"),t.remove("carousel-item-next")},Pv=(t,{direction:e})=>{const{classList:n}=t;return Ev(t)?kv(t):(n.add("carousel-item-"+(e===xv.LEFT?"next":"prev")),lv(t),n.add("carousel-item-"+e)),()=>{Av(t),n.add("active")}},Mv=(t,{direction:e})=>{const{classList:n}=t;return Ev(t)?kv(t):n.add("carousel-item-"+e),()=>{Av(t),n.remove("active")}};let Ov=0,Iv=(()=>{class t{constructor(t){this.tplRef=t,this.id="ngb-slide-"+Ov++,this.slid=new Qc}}return t.\u0275fac=function(e){return new(e||t)(sa(Ic))},t.\u0275dir=ve({type:t,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"},outputs:{slid:"slid"}}),t})(),Dv=(()=>{class t{constructor(t,e,n,r,i){this._platformId=e,this._ngZone=n,this._cd=r,this._container=i,this.NgbSlideEventSource=Rv,this._destroy$=new T,this._interval$=new _p(0),this._mouseHover$=new _p(!1),this._focused$=new _p(!1),this._pauseOnHover$=new _p(!1),this._pauseOnFocus$=new _p(!1),this._pause$=new _p(!1),this._wrap$=new _p(!1),this.slide=new Qc,this.slid=new Qc,this._transitionIds=null,this.animation=t.animation,this.interval=t.interval,this.wrap=t.wrap,this.keyboard=t.keyboard,this.pauseOnHover=t.pauseOnHover,this.pauseOnFocus=t.pauseOnFocus,this.showNavigationArrows=t.showNavigationArrows,this.showNavigationIndicators=t.showNavigationIndicators}set interval(t){this._interval$.next(t)}get interval(){return this._interval$.value}set wrap(t){this._wrap$.next(t)}get wrap(){return this._wrap$.value}set pauseOnHover(t){this._pauseOnHover$.next(t)}get pauseOnHover(){return this._pauseOnHover$.value}set pauseOnFocus(t){this._pauseOnFocus$.next(t)}get pauseOnFocus(){return this._pauseOnFocus$.value}set mouseHover(t){this._mouseHover$.next(t)}get mouseHover(){return this._mouseHover$.value}set focused(t){this._focused$.next(t)}get focused(){return this._focused$.value}arrowLeft(){this.focus(),this.prev(Rv.ARROW_LEFT)}arrowRight(){this.focus(),this.next(Rv.ARROW_RIGHT)}ngAfterContentInit(){Rd(this._platformId)&&this._ngZone.runOutsideAngular(()=>{const t=Cp([this.slide.pipe(E(t=>t.current),Jp(this.activeId)),this._wrap$,this.slides.changes.pipe(Jp(null))]).pipe(E(([t,e])=>{const n=this.slides.toArray(),r=this._getSlideIdxById(t);return e?n.length>1:r<n.length-1}),Oy());Cp([this._pause$,this._pauseOnHover$,this._mouseHover$,this._pauseOnFocus$,this._focused$,this._interval$,t]).pipe(E(([t,e,n,r,i,s,o])=>t||e&&n||r&&i||!o?0:s),Oy(),zp(t=>t>0?my(t,t):wy),Ay(this._destroy$)).subscribe(()=>this._ngZone.run(()=>this.next(Rv.TIMER)))}),this.slides.changes.pipe(Ay(this._destroy$)).subscribe(()=>this._cd.markForCheck())}ngAfterContentChecked(){let t=this._getSlideById(this.activeId);this.activeId=t?t.id:this.slides.length?this.slides.first.id:""}ngAfterViewInit(){if(this.activeId){const t=this._getSlideElement(this.activeId);t&&t.classList.add("active")}}ngOnDestroy(){this._destroy$.next()}select(t,e){this._cycleToSelected(t,this._getSlideEventDirection(this.activeId,t),e)}prev(t){this._cycleToSelected(this._getPrevSlide(this.activeId),xv.RIGHT,t)}next(t){this._cycleToSelected(this._getNextSlide(this.activeId),xv.LEFT,t)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}focus(){this._container.nativeElement.focus()}_cycleToSelected(t,e,n){const r=this._transitionIds;if(r&&(r[0]!==t||r[1]!==this.activeId))return;let i=this._getSlideById(t);if(i&&i.id!==this.activeId){this._transitionIds=[this.activeId,t],this.slide.emit({prev:this.activeId,current:i.id,direction:e,paused:this._pause$.value,source:n});const r={animation:this.animation,runningTransition:"stop",context:{direction:e}},s=[],o=this._getSlideById(this.activeId);if(o){const t=fv(this._getSlideElement(o.id),Mv,r);t.subscribe(()=>{o.slid.emit({isShown:!1,direction:e,source:n})}),s.push(t)}const a=this.activeId;this.activeId=i.id;const l=this._getSlideById(this.activeId),c=fv(this._getSlideElement(i.id),Pv,r);c.subscribe(()=>{null==l||l.slid.emit({isShown:!0,direction:e,source:n})}),s.push(c),Sy(...s).pipe(Kp(1)).subscribe(()=>{this._transitionIds=null,this.slid.emit({prev:a,current:i.id,direction:e,paused:this._pause$.value,source:n})})}this._cd.markForCheck()}_getSlideEventDirection(t,e){return this._getSlideIdxById(t)>this._getSlideIdxById(e)?xv.RIGHT:xv.LEFT}_getSlideById(t){return this.slides.find(e=>e.id===t)||null}_getSlideIdxById(t){const e=this._getSlideById(t);return null!=e?this.slides.toArray().indexOf(e):-1}_getNextSlide(t){const e=this.slides.toArray(),n=this._getSlideIdxById(t);return n===e.length-1?this.wrap?e[0].id:e[e.length-1].id:e[n+1].id}_getPrevSlide(t){const e=this.slides.toArray(),n=this._getSlideIdxById(t);return 0===n?this.wrap?e[e.length-1].id:e[0].id:e[n-1].id}_getSlideElement(t){return this._container.nativeElement.querySelector("#slide-"+t)}}return t.\u0275fac=function(e){return new(e||t)(sa(Cv),sa(xu),sa(Lu),sa(wo),sa(lc))},t.\u0275cmp=fe({type:t,selectors:[["ngb-carousel"]],contentQueries:function(t,e,n){if(1&t&&du(n,Iv,!1),2&t){let t;lu(t=fu())&&(e.slides=t)}},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:3,hostBindings:function(t,e){1&t&&ma("keydown.arrowLeft",function(){return e.keyboard&&e.arrowLeft()})("keydown.arrowRight",function(){return e.keyboard&&e.arrowRight()})("mouseenter",function(){return e.mouseHover=!0})("mouseleave",function(){return e.mouseHover=!1})("focusin",function(){return e.focused=!0})("focusout",function(){return e.focused=!1}),2&t&&(ea("aria-activedescendant",e.activeId),Ma("display","block"))},inputs:{animation:"animation",interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",pauseOnFocus:"pauseOnFocus",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators",activeId:"activeId"},outputs:{slide:"slide",slid:"slid"},exportAs:["ngbCarousel"],decls:6,vars:6,consts:function(){let t,e,n;return t=$localize`:Currently selected slide number read by screen reader@@ngb.carousel.slide-number␟a65b1b49aa7dd8c4f3004da6a8c2241814dae621␟783273603869937627: Slide ${"\ufffd0\ufffd"}:INTERPOLATION: of ${"\ufffd1\ufffd"}:INTERPOLATION_1: `,e=$localize`:@@ngb.carousel.previous␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,n=$localize`:@@ngb.carousel.next␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,[["role","tablist",1,"carousel-indicators"],["role","tab",3,"active","click",4,"ngFor","ngForOf"],[1,"carousel-inner"],["class","carousel-item","role","tabpanel",3,"id",4,"ngFor","ngForOf"],["class","carousel-control-prev","role","button",3,"click",4,"ngIf"],["class","carousel-control-next","role","button",3,"click",4,"ngIf"],["role","tab",3,"click"],["role","tabpanel",1,"carousel-item",3,"id"],[1,"sr-only"],t,[3,"ngTemplateOutlet"],["role","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],e,["role","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"],n]},template:function(t,e){1&t&&(la(0,"ol",0),ra(1,Yb,1,5,"li",1),ca(),la(2,"div",2),ra(3,Jb,4,4,"div",3),ca(),ra(4,t_,4,0,"a",4),ra(5,e_,4,0,"a",5)),2&t&&(Oa("sr-only",!e.showNavigationIndicators),ps(1),oa("ngForOf",e.slides),ps(2),oa("ngForOf",e.slides),ps(1),oa("ngIf",e.showNavigationArrows),ps(1),oa("ngIf",e.showNavigationArrows))},directives:[wd,Td,kd],encapsulation:2,changeDetection:0}),t})();var Rv=function(t){return t.TIMER="timer",t.ARROW_LEFT="arrowLeft",t.ARROW_RIGHT="arrowRight",t.INDICATOR="indicator",t}({});let Nv=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd]]}),t})(),Hv=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)}}),t})();class Fv{constructor(t,e,n){this.year=iv(t)?t:null,this.month=iv(e)?e:null,this.day=iv(n)?n:null}static from(t){return t instanceof Fv?t:t?new Fv(t.year,t.month,t.day):null}equals(t){return null!=t&&this.year===t.year&&this.month===t.month&&this.day===t.day}before(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day<t.day:this.month<t.month:this.year<t.year)}after(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day>t.day:this.month>t.month:this.year>t.year)}}function Vv(t){return new Fv(t.getFullYear(),t.getMonth()+1,t.getDate())}function Gv(t){const e=new Date(t.year,t.month-1,t.day,12);return isNaN(e.getTime())||e.setFullYear(t.year),e}function Lv(){return new jv}let Bv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:Lv,token:t,providedIn:"root"}),t})(),jv=(()=>{class t extends Bv{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(t,e="d",n=1){let r=Gv(t),i=!0,s=r.getMonth();switch(e){case"y":r.setFullYear(r.getFullYear()+n);break;case"m":s+=n,r.setMonth(s),s%=12,s<0&&(s+=12);break;case"d":r.setDate(r.getDate()+n),i=!1;break;default:return t}return i&&r.getMonth()!==s&&r.setDate(0),Vv(r)}getPrev(t,e="d",n=1){return this.getNext(t,e,-n)}getWeekday(t){let e=Gv(t).getDay();return 0===e?7:e}getWeekNumber(t,e){7===e&&(e=0);const n=Gv(t[(11-e)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));const r=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((r-n.getTime())/864e5)/7)+1}getToday(){return Vv(new Date)}isValid(t){if(!(t&&iv(t.year)&&iv(t.month)&&iv(t.day)))return!1;if(0===t.year)return!1;const e=Gv(t);return!isNaN(e.getTime())&&e.getFullYear()===t.year&&e.getMonth()+1===t.month&&e.getDate()===t.day}}return t.\u0275fac=function(e){return Uv(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Uv=Cr(jv);function $v(t,e){return!function(t,e){return!t&&!e||!!t&&!!e&&t.equals(e)}(t,e)}function Wv(t,e){return!(!t&&!e||t&&e&&t.year===e.year&&t.month===e.month)}function zv(t,e,n){return t&&e&&t.before(e)?e:t&&n&&t.after(n)?n:t||null}function qv(t,e){const{minDate:n,maxDate:r,disabled:i,markDisabled:s}=e;return!(null==t||i||s&&s(t,{year:t.year,month:t.month})||n&&t.before(n)||r&&t.after(r))}let Xv=(()=>{class t{getDayNumerals(t){return""+t.day}getWeekNumerals(t){return""+t}getYearNumerals(t){return""+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return t=Kt(Au),new Kv(t);var t},token:t,providedIn:"root"}),t})(),Kv=(()=>{class t extends Xv{constructor(t){super(),this._locale=t;const e=Bh(t,Hh.Standalone,Fh.Short);this._weekdaysShort=e.map((t,n)=>e[(n+1)%7]),this._monthsShort=jh(t,Hh.Standalone,Fh.Abbreviated),this._monthsFull=jh(t,Hh.Standalone,Fh.Wide)}getWeekdayShortName(t){return this._weekdaysShort[t-1]||""}getMonthShortName(t){return this._monthsShort[t-1]||""}getMonthFullName(t){return this._monthsFull[t-1]||""}getDayAriaLabel(t){return rd(new Date(t.year,t.month-1,t.day),"fullDate",this._locale)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Au))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),Qv=(()=>{class t{constructor(t,e){this._calendar=t,this._i18n=e,this._VALIDATORS={dayTemplateData:t=>{if(this._state.dayTemplateData!==t)return{dayTemplateData:t}},displayMonths:t=>{if(iv(t=J_(t))&&t>0&&this._state.displayMonths!==t)return{displayMonths:t}},disabled:t=>{if(this._state.disabled!==t)return{disabled:t}},firstDayOfWeek:t=>{if(iv(t=J_(t))&&t>=0&&this._state.firstDayOfWeek!==t)return{firstDayOfWeek:t}},focusVisible:t=>{if(this._state.focusVisible!==t&&!this._state.disabled)return{focusVisible:t}},markDisabled:t=>{if(this._state.markDisabled!==t)return{markDisabled:t}},maxDate:t=>{const e=this.toValidDate(t,null);if($v(this._state.maxDate,e))return{maxDate:e}},minDate:t=>{const e=this.toValidDate(t,null);if($v(this._state.minDate,e))return{minDate:e}},navigation:t=>{if(this._state.navigation!==t)return{navigation:t}},outsideDays:t=>{if(this._state.outsideDays!==t)return{outsideDays:t}}},this._model$=new T,this._dateSelect$=new T,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]}}}get model$(){return this._model$.pipe(Ip(t=>t.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(Ip(t=>null!==t))}set(t){let e=Object.keys(t).map(e=>this._VALIDATORS[e](t[e])).reduce((t,e)=>Object.assign(Object.assign({},t),e),{});Object.keys(e).length>0&&this._nextState(e)}focus(t){const e=this.toValidDate(t,null);null!=e&&!this._state.disabled&&$v(this._state.focusDate,e)&&this._nextState({focusDate:t})}focusSelect(){qv(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(t){const e=this.toValidDate(t,this._calendar.getToday());null==e||this._state.disabled||this._state.firstDate&&!Wv(this._state.firstDate,e)||this._nextState({firstDate:e})}select(t,e={}){const n=this.toValidDate(t,null);null==n||this._state.disabled||($v(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),e.emitEvent&&qv(n,this._state)&&this._dateSelect$.next(n))}toValidDate(t,e){const n=Fv.from(t);return void 0===e&&(e=this._calendar.getToday()),this._calendar.isValid(n)?n:e}getMonth(t){for(let e of this._state.months)if(t.month===e.number&&t.year===e.year)return e;throw new Error(`month ${t.month} of year ${t.year} not found`)}_nextState(t){const e=this._updateState(t);this._patchContexts(e),this._state=e,this._model$.next(this._state)}_patchContexts(t){const{months:e,displayMonths:n,selectedDate:r,focusDate:i,focusVisible:s,disabled:o,outsideDays:a}=t;t.months.forEach(t=>{t.weeks.forEach(l=>{l.days.forEach(l=>{i&&(l.context.focused=i.equals(l.date)&&s),l.tabindex=!o&&i&&l.date.equals(i)&&i.month===t.number?0:-1,!0===o&&(l.context.disabled=!0),void 0!==r&&(l.context.selected=null!==r&&r.equals(l.date)),t.number!==l.date.month&&(l.hidden="hidden"===a||"collapsed"===a||n>1&&l.date.after(e[0].firstDate)&&l.date.before(e[n-1].lastDate))})})})}_updateState(t){const e=Object.assign({},this._state,t);let n=e.firstDate;if(("minDate"in t||"maxDate"in t)&&(function(t,e){if(e&&t&&e.before(t))throw new Error(`'maxDate' ${e} should be greater than 'minDate' ${t}`)}(e.minDate,e.maxDate),e.focusDate=zv(e.focusDate,e.minDate,e.maxDate),e.firstDate=zv(e.firstDate,e.minDate,e.maxDate),n=e.focusDate),"disabled"in t&&(e.focusVisible=!1),"selectedDate"in t&&0===this._state.months.length&&(n=e.selectedDate),"focusVisible"in t)return e;if("focusDate"in t&&(e.focusDate=zv(e.focusDate,e.minDate,e.maxDate),n=e.focusDate,0!==e.months.length&&e.focusDate&&!e.focusDate.before(e.firstDate)&&!e.focusDate.after(e.lastDate)))return e;if("firstDate"in t&&(e.firstDate=zv(e.firstDate,e.minDate,e.maxDate),n=e.firstDate),n){const r=function(t,e,n,r,i){const{displayMonths:s,months:o}=n,a=o.splice(0,o.length);return Array.from({length:s},(n,r)=>{const s=Object.assign(t.getNext(e,"m",r),{day:1});if(o[r]=null,!i){const t=a.findIndex(t=>t.firstDate.equals(s));-1!==t&&(o[r]=a.splice(t,1)[0])}return s}).forEach((e,i)=>{null===o[i]&&(o[i]=function(t,e,n,r,i={}){const{dayTemplateData:s,minDate:o,maxDate:a,firstDayOfWeek:l,markDisabled:c,outsideDays:u}=n,h=t.getToday();i.firstDate=null,i.lastDate=null,i.number=e.month,i.year=e.year,i.weeks=i.weeks||[],i.weekdays=i.weekdays||[],e=function(t,e,n){const r=t.getDaysPerWeek(),i=new Fv(e.year,e.month,1),s=t.getWeekday(i)%r;return t.getPrev(i,"d",(r+s-n)%r)}(t,e,l);for(let d=0;d<t.getWeeksPerMonth();d++){let n=i.weeks[d];n||(n=i.weeks[d]={number:0,days:[],collapsed:!0});const p=n.days;for(let l=0;l<t.getDaysPerWeek();l++){0===d&&(i.weekdays[l]=t.getWeekday(e));const n=new Fv(e.year,e.month,e.day),u=t.getNext(n),f=r.getDayAriaLabel(n);let g=!!(o&&n.before(o)||a&&n.after(a));!g&&c&&(g=c(n,{month:i.number,year:i.year}));let m=n.equals(h),y=s?s(n,{month:i.number,year:i.year}):void 0;null===i.firstDate&&n.month===i.number&&(i.firstDate=n),n.month===i.number&&u.month!==i.number&&(i.lastDate=n);let b=p[l];b||(b=p[l]={}),b.date=n,b.context=Object.assign(b.context||{},{$implicit:n,date:n,data:y,currentMonth:i.number,currentYear:i.year,disabled:g,focused:!1,selected:!1,today:m}),b.tabindex=-1,b.ariaLabel=f,b.hidden=!1,e=u}n.number=t.getWeekNumber(p.map(t=>t.date),l),n.collapsed="collapsed"===u&&p[0].date.month!==i.number&&p[p.length-1].date.month!==i.number}return i}(t,e,n,r,a.shift()||{}))}),o}(this._calendar,n,e,this._i18n,"dayTemplateData"in t||"firstDayOfWeek"in t||"markDisabled"in t||"minDate"in t||"maxDate"in t||"disabled"in t||"outsideDays"in t);e.months=r,e.firstDate=r[0].firstDate,e.lastDate=r[r.length-1].lastDate,"selectedDate"in t&&!qv(e.selectedDate,e)&&(e.selectedDate=null),"firstDate"in t&&(!e.focusDate||e.focusDate.before(e.firstDate)||e.focusDate.after(e.lastDate))&&(e.focusDate=n);const i=!this._state.firstDate||this._state.firstDate.year!==e.firstDate.year,s=!this._state.firstDate||this._state.firstDate.month!==e.firstDate.month;"select"===e.navigation?(("minDate"in t||"maxDate"in t||0===e.selectBoxes.years.length||i)&&(e.selectBoxes.years=function(t,e,n){if(!t)return[];const r=e?Math.max(e.year,t.year-500):t.year-10,i=(n?Math.min(n.year,t.year+500):t.year+10)-r+1,s=Array(i);for(let o=0;o<i;o++)s[o]=r+o;return s}(e.firstDate,e.minDate,e.maxDate)),("minDate"in t||"maxDate"in t||0===e.selectBoxes.months.length||i)&&(e.selectBoxes.months=function(t,e,n,r){if(!e)return[];let i=t.getMonths(e.year);if(n&&e.year===n.year){const t=i.findIndex(t=>t===n.month);i=i.slice(t)}if(r&&e.year===r.year){const t=i.findIndex(t=>t===r.month);i=i.slice(0,t+1)}return i}(this._calendar,e.firstDate,e.minDate,e.maxDate))):e.selectBoxes={years:[],months:[]},"arrows"!==e.navigation&&"select"!==e.navigation||!(s||i||"minDate"in t||"maxDate"in t||"disabled"in t)||(e.prevDisabled=e.disabled||function(t,e,n){const r=Object.assign(t.getPrev(e,"m"),{day:1});return null!=n&&(r.year===n.year&&r.month<n.month||r.year<n.year&&1===n.month)}(this._calendar,e.firstDate,e.minDate),e.nextDisabled=e.disabled||function(t,e,n){const r=Object.assign(t.getNext(e,"m"),{day:1});return null!=n&&r.after(n)}(this._calendar,e.lastDate,e.maxDate))}return e}}return t.\u0275fac=function(e){return new(e||t)(Kt(Bv),Kt(Xv))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();var Yv=function(t){return t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT",t}({});let Zv=(()=>{class t{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();function Jv(){return new ew}let tw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:Jv,token:t,providedIn:"root"}),t})(),ew=(()=>{class t extends tw{fromModel(t){return t&&iv(t.year)&&iv(t.month)&&iv(t.day)?{year:t.year,month:t.month,day:t.day}:null}toModel(t){return t&&iv(t.year)&&iv(t.month)&&iv(t.day)?{year:t.year,month:t.month,day:t.day}:null}}return t.\u0275fac=function(e){return nw(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const nw=Cr(ew),rw={provide:Uy,useExisting:St(()=>sw),multi:!0};let iw=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(sa(Ic))},t.\u0275dir=ve({type:t,selectors:[["ng-template","ngbDatepickerContent",""]]}),t})(),sw=(()=>{class t{constructor(t,e,n,r,i,s,o,a){this._service=t,this._calendar=e,this.i18n=n,this._elementRef=s,this._ngbDateAdapter=o,this._ngZone=a,this._controlValue=null,this._destroyed$=new T,this._publicState={},this.navigate=new Qc,this.dateSelect=new Qc,this.onChange=t=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate"].forEach(t=>this[t]=r[t]),t.dateSelect$.pipe(Ay(this._destroyed$)).subscribe(t=>{this.dateSelect.emit(t)}),t.model$.pipe(Ay(this._destroyed$)).subscribe(t=>{const e=t.firstDate,n=this.model?this.model.firstDate:null;this._publicState={maxDate:t.maxDate,minDate:t.minDate,firstDate:t.firstDate,lastDate:t.lastDate,focusedDate:t.focusDate,months:t.months.map(t=>t.firstDate)};let r=!1;if(!e.equals(n)&&(this.navigate.emit({current:n?{year:n.year,month:n.month}:null,next:{year:e.year,month:e.month},preventDefault:()=>r=!0}),r&&null!==n))return void this._service.open(n);const s=t.selectedDate,o=t.focusDate,a=this.model?this.model.focusDate:null;this.model=t,$v(s,this._controlValue)&&(this._controlValue=s,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(s))),$v(o,a)&&a&&t.focusVisible&&this.focus(),i.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(t){this._service.focus(Fv.from(t))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(Kp(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');t&&t.focus()})}navigateTo(t){this._service.open(Fv.from(t?t.day?t:Object.assign(Object.assign({},t),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=ly(this._contentEl.nativeElement,"focusin"),e=ly(this._contentEl.nativeElement,"focusout"),{nativeElement:n}=this._elementRef;W(t,e).pipe(Ip(({target:t,relatedTarget:e})=>!(av(t,"ngb-dp-day")&&av(e,"ngb-dp-day")&&n.contains(t)&&n.contains(e))),Ay(this._destroyed$)).subscribe(({type:t})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===t})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const t={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].forEach(e=>t[e]=this[e]),this._service.set(t),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(t){const e={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].filter(e=>e in t).forEach(t=>e[t]=this[t]),this._service.set(e),"startDate"in t){const{currentValue:e,previousValue:n}=t.startDate;Wv(n,e)&&this.navigateTo(this.startDate)}}onDateSelect(t){this._service.focus(t),this._service.select(t,{emitEvent:!0})}onNavigateDateSelect(t){this._service.open(t)}onNavigateEvent(t){switch(t){case Yv.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Yv.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._service.set({disabled:t})}writeValue(t){this._controlValue=Fv.from(this._ngbDateAdapter.fromModel(t)),this._service.select(this._controlValue)}}return t.\u0275fac=function(e){return new(e||t)(sa(Qv),sa(Bv),sa(Xv),sa(Zv),sa(wo),sa(lc),sa(tw),sa(Lu))},t.\u0275cmp=fe({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(t,e,n){if(1&t&&(r=n,i=iw,!0,pu(pn(),dn(),i,true,undefined,!0,gn(),r)),2&t){let t;lu(t=fu())&&(e.contentTemplate=t.first)}var r,i},viewQuery:function(t,e){if(1&t&&(cu(n_,!0),cu(r_,!0)),2&t){let t;lu(t=fu())&&(e._defaultDayTemplate=t.first),lu(t=fu())&&(e._contentEl=t.first)}},inputs:{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],features:[ic([rw,Qv]),je],decls:10,vars:5,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(t,e){if(1&t&&(ra(0,i_,1,5,"ng-template",null,0,bu),ra(2,a_,1,1,"ng-template",null,1,bu),la(4,"div",2),ra(5,l_,1,7,"ngb-datepicker-navigation",3),ca(),la(6,"div",4,5),ra(8,c_,0,0,"ng-template",6),ca(),ra(9,u_,0,0,"ng-template",6)),2&t){const t=ia(3);ps(5),oa("ngIf","none"!==e.navigation),ps(1),Oa("ngb-dp-months",!e.contentTemplate),ps(2),oa("ngTemplateOutlet",(null==e.contentTemplate?null:e.contentTemplate.templateRef)||t),ps(1),oa("ngTemplateOutlet",e.footerTemplate)}},directives:function(){return[Td,kd,Pw,wd,lw,cw]},styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{background-color:#f8f9fa;background-color:var(--light);border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{background-color:#f8f9fa;background-color:var(--light);font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"],encapsulation:2,changeDetection:0}),t})();var ow=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}({});let aw=(()=>{class t{processKey(t,e){const{state:n,calendar:r}=e;switch(t.which){case ow.PageUp:e.focusDate(r.getPrev(n.focusedDate,t.shiftKey?"y":"m",1));break;case ow.PageDown:e.focusDate(r.getNext(n.focusedDate,t.shiftKey?"y":"m",1));break;case ow.End:e.focusDate(t.shiftKey?n.maxDate:n.lastDate);break;case ow.Home:e.focusDate(t.shiftKey?n.minDate:n.firstDate);break;case ow.ArrowLeft:e.focusDate(r.getPrev(n.focusedDate,"d",1));break;case ow.ArrowUp:e.focusDate(r.getPrev(n.focusedDate,"d",r.getDaysPerWeek()));break;case ow.ArrowRight:e.focusDate(r.getNext(n.focusedDate,"d",1));break;case ow.ArrowDown:e.focusDate(r.getNext(n.focusedDate,"d",r.getDaysPerWeek()));break;case ow.Enter:case ow.Space:e.focusSelect();break;default:return}t.preventDefault(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})(),lw=(()=>{class t{constructor(t,e,n,r){this.i18n=t,this.datepicker=e,this._keyboardService=n,this._service=r}set month(t){this.viewModel=this._service.getMonth(t)}onKeyDown(t){this._keyboardService.processKey(t,this.datepicker)}doSelect(t){t.context.disabled||t.hidden||this.datepicker.onDateSelect(t.date)}}return t.\u0275fac=function(e){return new(e||t)(sa(Xv),sa(sw),sa(aw),sa(Qv))},t.\u0275cmp=fe({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(t,e){1&t&&ma("keydown",function(t){return e.onKeyDown(t)})},inputs:{month:"month"},decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(ra(0,p_,3,2,"div",0),ra(1,__,1,1,"ng-template",1)),2&t&&(oa("ngIf",e.datepicker.showWeekdays),ps(1),oa("ngForOf",e.viewModel.weeks))},directives:[Td,wd,kd],styles:['ngb-datepicker-month{display:block}.ngb-dp-week-number,.ngb-dp-weekday{font-style:italic;line-height:2rem;text-align:center}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{background-color:#f8f9fa;background-color:var(--light);border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{height:2rem;width:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}'],encapsulation:2}),t})(),cw=(()=>{class t{constructor(t){this.i18n=t,this.navigation=Yv,this.months=[],this.navigate=new Qc,this.select=new Qc}onClickPrev(t){t.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(t){t.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}return t.\u0275fac=function(e){return new(e||t)(sa(Xv))},t.\u0275cmp=fe({type:t,selectors:[["ngb-datepicker-navigation"]],inputs:{months:"months",date:"date",disabled:"disabled",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},decls:8,vars:4,consts:function(){let t,e,n,r;return t=$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,e=$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,n=$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,r=$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,[[1,"ngb-dp-arrow"],["type","button","aria-label",t,"title",e,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",n,"title",r,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(t,e){1&t&&(la(0,"div",0),la(1,"button",1),ma("click",function(t){return e.onClickPrev(t)}),ua(2,"span",2),ca(),ca(),ra(3,v_,1,4,"ngb-datepicker-navigation-select",3),ra(4,C_,1,1,void 0,4),la(5,"div",5),la(6,"button",6),ma("click",function(t){return e.onClickNext(t)}),ua(7,"span",2),ca(),ca()),2&t&&(ps(1),oa("disabled",e.prevDisabled),ps(2),oa("ngIf",e.showSelect),ps(1),oa("ngIf",!e.showSelect),ps(2),oa("disabled",e.nextDisabled))},directives:function(){return[Td,Mw,wd]},styles:["ngb-datepicker-navigation{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.ngb-dp-navigation-chevron{-webkit-transform:rotate(-135deg);border-style:solid;border-width:.2em .2em 0 0;display:inline-block;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg);width:.75em}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);margin-left:.15em;margin-right:.25em;transform:rotate(45deg)}.ngb-dp-arrow{-ms-flex:1 1 auto;display:-ms-flexbox;display:flex;flex:1 1 auto;height:2rem;margin:0;padding-left:0;padding-right:0;width:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{background-color:transparent;border:none;margin:0 .5rem;padding:0 .25rem;z-index:1}.ngb-dp-arrow-btn:focus{outline-style:auto;outline-width:1px}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{-ms-flex:1 1 9rem;display:-ms-flexbox;display:flex;flex:1 1 9rem}"],encapsulation:2,changeDetection:0}),t})();const uw=(t,e)=>!!e&&e.some(e=>e.contains(t)),hw=(t,e)=>!e||null!=function(t,e){return e?void 0===t.closest?null:t.closest(e):null}(t,e),dw="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function pw(t,e,n,r,i,s,o,a){var l;n&&t.runOutsideAngular((l=()=>{const l=ly(e,"keydown").pipe(Ay(i),Ip(t=>t.which===ow.Escape),cf(t=>t.preventDefault())),c=ly(e,"mousedown").pipe(E(t=>{const e=t.target;return 2!==t.button&&!uw(e,o)&&("inside"===n?uw(e,s)&&hw(e,a):"outside"===n?!uw(e,s):hw(e,a)||!uw(e,s))}),Ay(i)),u=ly(e,"mouseup").pipe(Ry(c),Ip(([t,e])=>e),Vy(0),Ay(i));by([l.pipe(E(t=>0)),u.pipe(E(t=>1))]).subscribe(e=>t.run(()=>r(e)))},dw?()=>setTimeout(()=>l(),100):l))}const fw=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function gw(t){const e=Array.from(t.querySelectorAll(fw)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}const mw=(t,e,n,r=!1)=>{t.runOutsideAngular(()=>{const t=ly(e,"focusin").pipe(Ay(n),E(t=>t.target));ly(e,"keydown").pipe(Ay(n),Ip(t=>t.which===ow.Tab),Ry(t)).subscribe(([t,n])=>{const[r,i]=gw(e);n!==r&&n!==e||!t.shiftKey||(i.focus(),t.preventDefault()),n!==i||t.shiftKey||(r.focus(),t.preventDefault())}),r&&ly(e,"click").pipe(Ay(n),Ry(t),E(t=>t[1])).subscribe(t=>t.focus())})},yw=/\s+/,bw=new class{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let n,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const e=this.offsetParent(t);n=this.offset(t,!1),e!==document.documentElement&&(r=this.offset(e,!1)),r.top+=e.clientTop,r.left+=e.clientLeft}return n.top-=r.top,n.bottom-=r.top,n.left-=r.left,n.right-=r.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(t,e=!0){const n=t.getBoundingClientRect(),r=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft;let s={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+r,bottom:n.bottom+r,left:n.left+i,right:n.right+i};return e&&(s.height=Math.round(s.height),s.width=Math.round(s.width),s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right)),s}positionElements(t,e,n,r){const[i="top",s="center"]=n.split("-"),o=r?this.offset(t,!1):this.position(t,!1),a=this.getAllStyles(e),l=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),u=parseFloat(a.marginLeft),h=parseFloat(a.marginRight);let d=0,p=0;switch(i){case"top":d=o.top-(e.offsetHeight+l+c);break;case"bottom":d=o.top+o.height;break;case"left":p=o.left-(e.offsetWidth+u+h);break;case"right":p=o.left+o.width}switch(s){case"top":d=o.top;break;case"bottom":d=o.top+o.height-e.offsetHeight;break;case"left":p=o.left;break;case"right":p=o.left+o.width-e.offsetWidth;break;case"center":"top"===i||"bottom"===i?p=o.left+o.width/2-e.offsetWidth/2:d=o.top+o.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(d)}px)`;const f=e.getBoundingClientRect(),g=document.documentElement,m=window.innerHeight||g.clientHeight,y=window.innerWidth||g.clientWidth;return f.left>=0&&f.top>=0&&f.right<=y&&f.bottom<=m}};function _w(t,e,n,r,i){let s=Array.isArray(n)?n:n.split(yw);const o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=e.classList,l=t=>{const[e,n]=t.split("-"),r=[];return i&&(r.push(`${i}-${e}`),n&&r.push(`${i}-${e}-${n}`),r.forEach(t=>{a.add(t)})),r};i&&o.forEach(t=>{a.remove(`${i}-${t}`)});let c=s.findIndex(t=>"auto"===t);c>=0&&o.forEach(function(t){null==s.find(e=>-1!==e.search("^"+t))&&s.splice(c++,1,t)});const u=e.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let h=null,d=!1;for(h of s){let n=l(h);if(bw.positionElements(t,e,h,r)){d=!0;break}i&&n.forEach(t=>{a.remove(t)})}return d||(h=s[0],l(h),bw.positionElements(t,e,h,r)),h}function vw(){return new Sw}let ww=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:vw,token:t,providedIn:"root"}),t})(),Sw=(()=>{class t extends ww{parse(t){if(null!=t){const e=t.trim().split("-");if(1===e.length&&rv(e[0]))return{year:J_(e[0]),month:null,day:null};if(2===e.length&&rv(e[0])&&rv(e[1]))return{year:J_(e[0]),month:J_(e[1]),day:null};if(3===e.length&&rv(e[0])&&rv(e[1])&&rv(e[2]))return{year:J_(e[0]),month:J_(e[1]),day:J_(e[2])}}return null}format(t){return t?`${t.year}-${rv(t.month)?ov(t.month):""}-${rv(t.day)?ov(t.day):""}`:""}}return t.\u0275fac=function(e){return Tw(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const Tw=Cr(Sw);let Cw=(()=>{class t extends Zv{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"],this.restoreFocus=!0}}return t.\u0275fac=function(e){return xw(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const xw=Cr(Cw),Ew={provide:Uy,useExisting:St(()=>Aw),multi:!0},kw={provide:Yy,useExisting:St(()=>Aw),multi:!0};let Aw=(()=>{class t{constructor(t,e,n,r,i,s,o,a,l,c,u){this._parserFormatter=t,this._elRef=e,this._vcRef=n,this._renderer=r,this._cfr=i,this._ngZone=s,this._calendar=o,this._dateAdapter=a,this._document=l,this._changeDetector=c,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this.dateSelect=new Qc,this.navigate=new Qc,this.closed=new Qc,this._onChange=t=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement"].forEach(t=>this[t]=u[t]),this._zoneSubscription=s.onStable.subscribe(()=>this._updatePopupPosition())}get disabled(){return this._disabled}set disabled(t){this._disabled=""===t||t&&"false"!==t,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}registerOnValidatorChange(t){this._validatorChange=t}setDisabledState(t){this.disabled=t}validate(t){const{value:e}=t;if(null!=e){const t=this._fromDateStruct(this._dateAdapter.fromModel(e));if(!t)return{ngbDate:{invalid:e}};if(this.minDate&&t.before(Fv.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:e}}};if(this.maxDate&&t.after(Fv.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:e}}}}return null}writeValue(t){this._model=this._fromDateStruct(this._dateAdapter.fromModel(t)),this._writeModelValue(this._model)}manualDateChange(t,e=!1){const n=t!==this._inputValue;n&&(this._inputValue=t,this._model=this._fromDateStruct(this._parserFormatter.parse(t))),!n&&e||this._onChange(this._model?this._dateAdapter.toModel(this._model):""===t?null:t),e&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){const t=this._cfr.resolveComponentFactory(sw);this._cRef=this._vcRef.createComponent(t),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(t=>{this.writeValue(t),this._onChange(t),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,mw(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),pw(this._ngZone,this._document,this.autoClose,()=>this.close(),this.closed,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this.closed.emit(),this._changeDetector.markForCheck();let t=this._elWithFocus;nv(this.restoreFocus)?t=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(t=this.restoreFocus),t&&t.focus?t.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(t){this.isOpen()&&this._cRef.instance.navigateTo(t)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(t){(t.minDate||t.maxDate)&&(this._validatorChange(),this.isOpen()&&(t.minDate&&(this._cRef.instance.minDate=this.minDate),t.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(t)))}ngOnDestroy(){this.close(),this._zoneSubscription.unsubscribe()}_applyDatepickerInputs(t){["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekdays","showWeekNumbers"].forEach(e=>{void 0!==this[e]&&(t[e]=this[e])}),t.startDate=this.startDate||this._model}_applyPopupStyling(t){this._renderer.addClass(t,"dropdown-menu"),this._renderer.addClass(t,"show"),"body"===this.container&&this._renderer.addClass(t,"ngb-dp-body")}_subscribeForDatepickerOutputs(t){t.navigate.subscribe(t=>this.navigate.emit(t)),t.dateSelect.subscribe(t=>{this.dateSelect.emit(t),!0!==this.autoClose&&"inside"!==this.autoClose||this.close()})}_writeModelValue(t){const e=this._parserFormatter.format(t);this._inputValue=e,this._renderer.setProperty(this._elRef.nativeElement,"value",e),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(t)),this._onTouched())}_fromDateStruct(t){const e=t?new Fv(t.year,t.month,t.day):null;return this._calendar.isValid(e)?e:null}_updatePopupPosition(){if(!this._cRef)return;let t;if(t=nv(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!t)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");_w(t,this._cRef.location.nativeElement,this.placement,"body"===this.container)}}return t.\u0275fac=function(e){return new(e||t)(sa(ww),sa(lc),sa(Rc),sa(dc),sa(ac),sa(Lu),sa(Bv),sa(tw),sa(yh),sa(wo),sa(Cw))},t.\u0275dir=ve({type:t,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(t,e){1&t&&ma("input",function(t){return e.manualDateChange(t.target.value)})("change",function(t){return e.manualDateChange(t.target.value,!0)})("focus",function(){return e.onFocus()})("blur",function(){return e.onBlur()}),2&t&&Qa("disabled",e.disabled)},inputs:{disabled:"disabled",autoClose:"autoClose",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",restoreFocus:"restoreFocus",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[ic([Ew,kw,{provide:Zv,useExisting:Cw}]),je]}),t})(),Pw=(()=>{class t{constructor(t){this.i18n=t}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}return t.\u0275fac=function(e){return new(e||t)(sa(Xv))},t.\u0275cmp=fe({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(t,e){2&t&&Oa("bg-primary",e.selected)("text-white",e.selected)("text-muted",e.isMuted())("outside",e.isMuted())("active",e.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:x_,decls:1,vars:1,template:function(t,e){1&t&&$a(0),2&t&&Wa(e.i18n.getDayNumerals(e.date))},styles:["[ngbDatepickerDayView]{background:transparent;border-radius:.25rem;height:2rem;line-height:2rem;text-align:center;width:2rem}[ngbDatepickerDayView].outside{opacity:.5}"],encapsulation:2,changeDetection:0}),t})(),Mw=(()=>{class t{constructor(t,e){this.i18n=t,this._renderer=e,this.select=new Qc,this._month=-1,this._year=-1}changeMonth(t){this.select.emit(new Fv(this.date.year,J_(t),1))}changeYear(t){this.select.emit(new Fv(J_(t),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}return t.\u0275fac=function(e){return new(e||t)(sa(Xv),sa(dc))},t.\u0275cmp=fe({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(t,e){if(1&t&&(cu(E_,!0,lc),cu(k_,!0,lc)),2&t){let t;lu(t=fu())&&(e.monthSelect=t.first),lu(t=fu())&&(e.yearSelect=t.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:6,vars:4,consts:function(){let t,e,n,r;return t=$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,e=$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,n=$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`,r=$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`,[["aria-label",t,"title",e,1,"custom-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",n,"title",r,1,"custom-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(t,e){1&t&&(la(0,"select",0,1),ma("change",function(t){return e.changeMonth(t.target.value)}),ra(2,A_,2,3,"option",2),ca(),la(3,"select",3,4),ma("change",function(t){return e.changeYear(t.target.value)}),ra(5,P_,2,2,"option",2),ca()),2&t&&(oa("disabled",e.disabled),ps(2),oa("ngForOf",e.months),ps(1),oa("disabled",e.disabled),ps(2),oa("ngForOf",e.years))},directives:[wd,Fb,Bb],styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;font-size:.875rem;height:1.85rem;padding:0 .5rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"],encapsulation:2,changeDetection:0}),t})();new Date(1882,10,12),new Date(2174,10,25);let Ow=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd,Kb]]}),t})(),Iw=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)}}),t})(),Dw=(()=>{class t{constructor(t){this.backdrop=!0,this.keyboard=!0,this.animation=t.animation}}return t.\u0275fac=function(e){return new(e||t)(Kt(uv))},t.\u0275prov=ut({factory:function(){return new t(Kt(uv))},token:t,providedIn:"root"}),t})();class Rw{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class Nw{constructor(t,e,n,r,i,s,o){this._type=t,this._injector=e,this._viewContainerRef=n,this._renderer=r,this._ngZone=i,this._componentFactoryResolver=s,this._applicationRef=o,this._windowRef=null,this._contentRef=null}open(t,e,n=!1){this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:r}=this._windowRef.location,i=this._ngZone.onStable.asObservable().pipe(Kp(1)).pipe(L(()=>fv(r,({classList:t})=>t.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:i}}close(t=!1){return this._windowRef?fv(this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:t,runningTransition:"stop"}).pipe(cf(()=>{var t;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(t=this._contentRef)||void 0===t?void 0:t.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):bp(void 0)}_getContentRef(t,e){if(t){if(t instanceof Ic){const n=t.createEmbeddedView(e);return this._applicationRef.attachView(n),new Rw([n.rootNodes],n)}return new Rw([[this._renderer.createText(""+t)]])}return new Rw([])}}const Hw=()=>{};let Fw=(()=>{class t{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):Hw}_adjustBody(t){const e=this._document.body,n=e.style.paddingRight,r=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=r+t+"px",()=>e.style["padding-right"]=n}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}}return t.\u0275fac=function(e){return new(e||t)(Kt(yh))},t.\u0275prov=ut({factory:function(){return new t(Kt(yh))},token:t,providedIn:"root"}),t})(),Vw=(()=>{class t{constructor(t,e){this._el=t,this._zone=e}ngOnInit(){this._zone.onStable.asObservable().pipe(Kp(1)).subscribe(()=>{fv(this._el.nativeElement,({classList:t})=>t.add("show"),{animation:this.animation,runningTransition:"continue"})})}hide(){return fv(this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(sa(lc),sa(Lu))},t.\u0275cmp=fe({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(t,e){2&t&&(Ia("modal-backdrop"+(e.backdropClass?" "+e.backdropClass:"")),Oa("show",!e.animation)("fade",e.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();class Gw{close(t){}dismiss(t){}}class Lw{constructor(t,e,n,r){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new T,this._dismissed=new T,this._hidden=new T,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Ay(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Ay(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():bp(void 0);t.subscribe(()=>{const{nativeElement:t}=this._windowCmptRef.location;t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Sy(t,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Bw=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}({});let jw=(()=>{class t{constructor(t,e,n){this._document=t,this._elRef=e,this._zone=n,this._closed$=new T,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Qc,this.shown=new T,this.hidden=new T}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){this._show()}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,e={animation:this.animation,runningTransition:"stop"},n=Sy(fv(t,()=>t.classList.remove("show"),e),fv(this._dialogEl.nativeElement,()=>{},e));return n.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),n}_show(){const{nativeElement:t}=this._elRef,e={animation:this.animation,runningTransition:"continue"};Sy(fv(t,()=>t.classList.add("show"),e),fv(this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{ly(t,"keydown").pipe(Ay(this._closed$),Ip(t=>t.which===ow.Escape)).subscribe(t=>{this.keyboard?requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(Bw.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let e=!1;ly(this._dialogEl.nativeElement,"mousedown").pipe(Ay(this._closed$),cf(()=>e=!1),zp(()=>ly(t,"mouseup").pipe(Ay(this._closed$),Kp(1))),Ip(({target:e})=>t===e)).subscribe(()=>{e=!0}),ly(t,"click").pipe(Ay(this._closed$)).subscribe(({target:n})=>{t===n&&("static"===this.backdrop?this._bumpBackdrop():!0!==this.backdrop||e||this._zone.run(()=>this.dismiss(Bw.BACKDROP_CLICK))),e=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),n=gw(t)[0];(e||n||t).focus()}}_restoreFocus(){const t=this._document.body,e=this._elWithFocus;let n;n=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&fv(this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(sa(yh),sa(lc),sa(Lu))},t.\u0275cmp=fe({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){if(1&t&&cu(M_,!0),2&t){let t;lu(t=fu())&&(e._dialogEl=t.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,e){2&t&&(ea("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),Ia("modal d-block"+(e.windowClass?" "+e.windowClass:"")),Oa("fade",e.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Qb,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(wa(),la(0,"div",0,1),la(2,"div",2),Sa(3),ca(),ca()),2&t&&Ia("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),Uw=(()=>{class t{constructor(t,e,n,r,i,s){this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=r,this._rendererFactory=i,this._ngZone=s,this._activeWindowCmptHasChanged=new T,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new Qc,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];mw(this._ngZone,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,n,r){const i=r.container instanceof HTMLElement?r.container:sv(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!i)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);const l=new Gw,c=this._getContentRef(t,r.injector||e,n,l,r);let u=!1!==r.backdrop?this._attachBackdrop(t,i):void 0,h=this._attachWindowComponent(t,i,c),d=new Lw(h,c,u,r.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(h),d.result.then(o,o),d.result.then(a,a),l.close=t=>{d.close(t)},l.dismiss=t=>{d.dismiss(t)},this._applyWindowOptions(h.instance,r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),u&&u.instance&&this._applyBackdropOptions(u.instance,r),d}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let n=t.resolveComponentFactory(Vw).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,e,n){let r=t.resolveComponentFactory(jw).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_applyWindowOptions(t,e){this._windowAttributes.forEach(n=>{sv(e[n])&&(t[n]=e[n])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(n=>{sv(e[n])&&(t[n]=e[n])})}_getContentRef(t,e,n,r,i){return n?n instanceof Ic?this._createFromTemplateRef(n,r):nv(n)?this._createFromString(n):this._createFromComponent(t,e,n,r,i):new Rw([])}_createFromTemplateRef(t,e){const n=t.createEmbeddedView({$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new Rw([n.rootNodes],n)}_createFromString(t){const e=this._document.createTextNode(""+t);return new Rw([[e]])}_createFromComponent(t,e,n,r,i){const s=t.resolveComponentFactory(n),o=Vo.create({providers:[{provide:Gw,useValue:r}],parent:e}),a=s.create(o),l=a.location.nativeElement;return i.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new Rw([[l]],a.hostView,a)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&(this._modalRefs.splice(e,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(Kt(sh),Kt(Vo),Kt(yh),Kt(Fw),Kt(uc),Kt(Lu))},t.\u0275prov=ut({factory:function(){return new t(Kt(sh),Kt(Gt),Kt(yh),Kt(Fw),Kt(uc),Kt(Lu))},token:t,providedIn:"root"}),t})(),$w=(()=>{class t{constructor(t,e,n,r){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=r}open(t,e={}){const n=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(Kt(ac),Kt(Vo),Kt(Uw),Kt(Dw))},t.\u0275prov=ut({factory:function(){return new t(Kt(ac),Kt(Gt),Kt(Uw),Kt(Dw))},token:t,providedIn:"root"}),t})(),Ww=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},providers:[$w]}),t})(),zw=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd]]}),t})(),qw=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd]]}),t})();class Xw{constructor(t,e){this.open=t,this.close=e,e||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const Kw={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Qw=t=>t>0?Vy(t):t=>t;let Yw=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd]]}),t})(),Zw=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd]]}),t})(),Jw=(()=>{class t{constructor(){this.max=10,this.readonly=!1,this.resettable=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const tS={provide:Uy,useExisting:St(()=>eS),multi:!0};let eS=(()=>{class t{constructor(t,e){this._changeDetectorRef=e,this.contexts=[],this.disabled=!1,this.hover=new Qc,this.leave=new Qc,this.rateChange=new Qc(!0),this.onChange=t=>{},this.onTouched=()=>{},this.max=t.max,this.readonly=t.readonly}ariaValueText(){return`${this.nextRate} out of ${this.max}`}isInteractive(){return!this.readonly&&!this.disabled}enter(t){this.isInteractive()&&this._updateState(t),this.hover.emit(t)}handleBlur(){this.onTouched()}handleClick(t){this.isInteractive()&&this.update(this.resettable&&this.rate===t?0:t)}handleKeyDown(t){switch(t.which){case ow.ArrowDown:case ow.ArrowLeft:this.update(this.rate-1);break;case ow.ArrowUp:case ow.ArrowRight:this.update(this.rate+1);break;case ow.Home:this.update(0);break;case ow.End:this.update(this.max);break;default:return}t.preventDefault()}ngOnChanges(t){t.rate&&this.update(this.rate)}ngOnInit(){this.contexts=Array.from({length:this.max},(t,e)=>({fill:0,index:e})),this._updateState(this.rate)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(t){this.disabled=t}update(t,e=!0){const n=ev(t,this.max,0);this.isInteractive()&&this.rate!==n&&(this.rate=n,this.rateChange.emit(this.rate)),e&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(t){this.update(t,!1),this._changeDetectorRef.markForCheck()}_updateState(t){this.nextRate=t,this.contexts.forEach((e,n)=>e.fill=Math.round(100*ev(t-n,1,0)))}}return t.\u0275fac=function(e){return new(e||t)(sa(Jw),sa(wo))},t.\u0275cmp=fe({type:t,selectors:[["ngb-rating"]],contentQueries:function(t,e,n){if(1&t&&du(n,Ic,!0),2&t){let t;lu(t=fu())&&(e.starTemplateFromContent=t.first)}},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(t,e){1&t&&ma("blur",function(){return e.handleBlur()})("keydown",function(t){return e.handleKeyDown(t)})("mouseleave",function(){return e.reset()}),2&t&&(Qa("tabindex",e.disabled?-1:0),ea("aria-valuemax",e.max)("aria-valuenow",e.nextRate)("aria-valuetext",e.ariaValueText())("aria-disabled",!!e.readonly||null))},inputs:{max:"max",readonly:"readonly",rate:"rate",resettable:"resettable",starTemplate:"starTemplate"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},features:[ic([tS]),je],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"sr-only"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(ra(0,O_,1,1,"ng-template",null,0,bu),ra(2,D_,4,5,"ng-template",1)),2&t&&(ps(2),oa("ngForOf",e.contexts))},directives:[wd,kd],encapsulation:2,changeDetection:0}),t})(),nS=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd]]}),t})();class rS{constructor(t,e,n){this.hour=J_(t),this.minute=J_(e),this.second=J_(n)}changeHour(t=1){this.updateHour((isNaN(this.hour)?0:this.hour)+t)}updateHour(t){this.hour=rv(t)?(t<0?24+t:t)%24:NaN}changeMinute(t=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+t)}updateMinute(t){rv(t)?(this.minute=t%60<0?60+t%60:t%60,this.changeHour(Math.floor(t/60))):this.minute=NaN}changeSecond(t=1){this.updateSecond((isNaN(this.second)?0:this.second)+t)}updateSecond(t){rv(t)?(this.second=t<0?60+t%60:t%60,this.changeMinute(Math.floor(t/60))):this.second=NaN}isValid(t=!0){return rv(this.hour)&&rv(this.minute)&&(!t||rv(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let iS=(()=>{class t{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();function sS(){return new aS}let oS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:sS,token:t,providedIn:"root"}),t})(),aS=(()=>{class t extends oS{fromModel(t){return t&&iv(t.hour)&&iv(t.minute)?{hour:t.hour,minute:t.minute,second:iv(t.second)?t.second:null}:null}toModel(t){return t&&iv(t.hour)&&iv(t.minute)?{hour:t.hour,minute:t.minute,second:iv(t.second)?t.second:null}:null}}return t.\u0275fac=function(e){return lS(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const lS=Cr(aS);let cS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return t=Kt(Au),new uS(t);var t},token:t,providedIn:"root"}),t})(),uS=(()=>{class t extends cS{constructor(t){super(),this._periods=Lh(t,Hh.Standalone,Fh.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}}return t.\u0275fac=function(e){return new(e||t)(Kt(Au))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const hS=/[^0-9]/g,dS={provide:Uy,useExisting:St(()=>pS),multi:!0};let pS=(()=>{class t{constructor(t,e,n,r){this._config=t,this._ngbTimeAdapter=e,this._cd=n,this.i18n=r,this.onChange=t=>{},this.onTouched=()=>{},this.meridian=t.meridian,this.spinners=t.spinners,this.seconds=t.seconds,this.hourStep=t.hourStep,this.minuteStep=t.minuteStep,this.secondStep=t.secondStep,this.disabled=t.disabled,this.readonlyInputs=t.readonlyInputs,this.size=t.size}set hourStep(t){this._hourStep=iv(t)?t:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(t){this._minuteStep=iv(t)?t:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(t){this._secondStep=iv(t)?t:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(t){const e=this._ngbTimeAdapter.fromModel(t);this.model=e?new rS(e.hour,e.minute,e.second):new rS,this.seconds||e&&rv(e.second)||(this.model.second=0),this._cd.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}changeHour(t){this.model.changeHour(t),this.propagateModelChange()}changeMinute(t){this.model.changeMinute(t),this.propagateModelChange()}changeSecond(t){this.model.changeSecond(t),this.propagateModelChange()}updateHour(t){const e=this.model.hour>=12,n=J_(t);this.model.updateHour(this.meridian&&(e&&n<12||!e&&12===n)?n+12:n),this.propagateModelChange()}updateMinute(t){this.model.updateMinute(J_(t)),this.propagateModelChange()}updateSecond(t){this.model.updateSecond(J_(t)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(t){t.value=t.value.replace(hS,"")}formatHour(t){return rv(t)?ov(this.meridian?t%12==0?12:t%12:t%24):ov(NaN)}formatMinSec(t){return ov(rv(t)?t:NaN)}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(t){t.seconds&&!this.seconds&&this.model&&!rv(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(t=!0){t&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}return t.\u0275fac=function(e){return new(e||t)(sa(iS),sa(oS),sa(wo),sa(cS))},t.\u0275cmp=fe({type:t,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},features:[ic([dS]),je],decls:16,vars:25,consts:function(){let t,e,n,r,i,s,o,a,l,c,u,h,d,p;return t=$localize`:@@ngb.timepicker.HH␟ce676ab1d6d98f85c836381cf100a4a91ef95a1f␟4043638465245303811:HH`,e=$localize`:@@ngb.timepicker.hours␟3bbce5fef7e1151da052a4e529453edb340e3912␟8070396816726827304:Hours`,n=$localize`:@@ngb.timepicker.MM␟72c8edf6a50068a05bde70991e36b1e881f4ca54␟1647282246509919852:MM`,r=$localize`:@@ngb.timepicker.minutes␟41e62daa962947c0d23ded0981975d1bddf0bf38␟5531237363767747080:Minutes`,i=$localize`:@@ngb.timepicker.increment-hours␟cb74bc1d625a6c1742f0d7d47306cf495780c218␟5939278348542933629:Increment hours`,s=$localize`:@@ngb.timepicker.decrement-hours␟147c7a19429da7d999e247d22e33fee370b1691b␟3651829882940481818:Decrement hours`,o=$localize`:@@ngb.timepicker.increment-minutes␟f5a4a3bc05e053f6732475d0e74875ec01c3a348␟180147720391025024:Increment minutes`,a=$localize`:@@ngb.timepicker.decrement-minutes␟c1a6899e529c096da5b660385d4e77fe1f7ad271␟7447789825403243588:Decrement minutes`,l=$localize`:@@ngb.timepicker.SS␟ebe38d36a40a2383c5fefa9b4608ffbda08bd4a3␟3628127143071124194:SS`,c=$localize`:@@ngb.timepicker.seconds␟4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c␟8874012390997067175:Seconds`,u=$localize`:@@ngb.timepicker.increment-seconds␟912322ecee7d659d04dcf494a70e22e49d334b26␟5364772110539092174:Increment seconds`,h=$localize`:@@ngb.timepicker.decrement-seconds␟5db47ac104294243a70eb9124fbea9d0004ddf69␟753633511487974857:Decrement seconds`,d=$localize`:@@ngb.timepicker.PM␟8d6e691e10306c1b34c6b26805151aaea320ef7f␟3564199131264287502:${"\ufffd0\ufffd"}:INTERPOLATION:`,p=$localize`:@@ngb.timepicker.AM␟69a1f176a93998876952adac57c3bc3863b6105e␟4592818992509942761:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric","placeholder",t,"aria-label",e,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",n,"aria-label",r,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"sr-only"],i,[1,"chevron","ngb-tp-chevron","bottom"],s,o,a,[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",l,"aria-label",c,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown"],u,h,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],d,p]},template:function(t,e){1&t&&(la(0,"fieldset",0),la(1,"div",1),la(2,"div",2),ra(3,R_,4,7,"button",3),la(4,"input",4),ma("change",function(t){return e.updateHour(t.target.value)})("input",function(t){return e.formatInput(t.target)})("keydown.ArrowUp",function(t){return e.changeHour(e.hourStep),t.preventDefault()})("keydown.ArrowDown",function(t){return e.changeHour(-e.hourStep),t.preventDefault()}),ca(),ra(5,N_,4,7,"button",3),ca(),la(6,"div",5),$a(7,":"),ca(),la(8,"div",6),ra(9,H_,4,7,"button",3),la(10,"input",7),ma("change",function(t){return e.updateMinute(t.target.value)})("input",function(t){return e.formatInput(t.target)})("keydown.ArrowUp",function(t){return e.changeMinute(e.minuteStep),t.preventDefault()})("keydown.ArrowDown",function(t){return e.changeMinute(-e.minuteStep),t.preventDefault()}),ca(),ra(11,F_,4,7,"button",3),ca(),ra(12,V_,2,0,"div",8),ra(13,B_,4,9,"div",9),ra(14,j_,1,0,"div",8),ra(15,W_,5,9,"div",10),ca(),ca()),2&t&&(Oa("disabled",e.disabled),oa("disabled",e.disabled),ps(3),oa("ngIf",e.spinners),ps(1),Oa("form-control-sm",e.isSmallSize)("form-control-lg",e.isLargeSize),oa("value",e.formatHour(null==e.model?null:e.model.hour))("readOnly",e.readonlyInputs)("disabled",e.disabled),ps(1),oa("ngIf",e.spinners),ps(4),oa("ngIf",e.spinners),ps(1),Oa("form-control-sm",e.isSmallSize)("form-control-lg",e.isLargeSize),oa("value",e.formatMinSec(null==e.model?null:e.model.minute))("readOnly",e.readonlyInputs)("disabled",e.disabled),ps(1),oa("ngIf",e.spinners),ps(1),oa("ngIf",e.seconds),ps(1),oa("ngIf",e.seconds),ps(1),oa("ngIf",e.meridian),ps(1),oa("ngIf",e.meridian))},directives:[Td],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{-webkit-transform:rotate(-45deg);border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{-webkit-transform:rotate(135deg);top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{-ms-flex-align:center;-ms-flex-direction:column;-ms-flex-pack:distribute;align-items:center;display:-ms-flexbox;display:flex;flex-direction:column;justify-content:space-around}.ngb-tp-spacer{text-align:center;width:1em}'],encapsulation:2}),t})(),fS=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd]]}),t})(),gS=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd]]}),t})(),mS=(()=>{class t{constructor(t){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0,this.animation=t.animation}}return t.\u0275fac=function(e){return new(e||t)(Kt(uv))},t.\u0275prov=ut({factory:function(){return new t(Kt(uv))},token:t,providedIn:"root"}),t})(),yS=0,bS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,e){2&t&&(Qa("id",e.id),Ia("tooltip"+(e.tooltipClass?" "+e.tooltipClass:"")),Oa("fade",e.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:Qb,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(t,e){1&t&&(wa(),ua(0,"div",0),la(1,"div",1),Sa(2),ca())},styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"],encapsulation:2,changeDetection:0}),t})(),_S=(()=>{class t{constructor(t,e,n,r,i,s,o,a,l,c){this._elementRef=t,this._renderer=e,this._ngZone=o,this._document=a,this._changeDetector=l,this.shown=new Qc,this.hidden=new Qc,this._ngbTooltipWindowId="ngb-tooltip-"+yS++,this._windowRef=null,this.animation=s.animation,this.autoClose=s.autoClose,this.placement=s.placement,this.triggers=s.triggers,this.container=s.container,this.disableTooltip=s.disableTooltip,this.tooltipClass=s.tooltipClass,this.openDelay=s.openDelay,this.closeDelay=s.closeDelay,this._popupService=new Nw(bS,n,i,e,this._ngZone,r,c),this._zoneSubscription=o.onStable.subscribe(()=>{this._windowRef&&_w(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(t){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:e,transition$:n}=this._popupService.open(this._ngbTooltip,t,this.animation);this._windowRef=e,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),pw(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),n.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function(t,e,n,r,i,s,o=0,a=0){const l=function(t,e=Kw){const n=(t||"").trim();if(0===n.length)return[];const r=n.split(/\s+/).map(t=>t.split(":")).map(t=>{let n=e[t[0]]||t;return new Xw(n[0],n[1])}),i=r.filter(t=>t.isManual());if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===i.length&&r.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return r}(n);if(1===l.length&&l[0].isManual())return()=>{};const c=function(t,e,n,r){return new b(i=>{const s=[],o=()=>i.next(!0),a=()=>i.next(!1),l=()=>i.next(!r());return n.forEach(n=>{n.open===n.close?s.push(t.listen(e,n.open,l)):s.push(t.listen(e,n.open,o),t.listen(e,n.close,a))}),()=>{s.forEach(t=>t())}})}(t,e,l,r).pipe(function(t,e,n){return r=>{let i=null;const s=r.pipe(E(t=>({open:t})),Ip(t=>{const e=n();return e===t.open||i&&i.open!==e?(i&&i.open!==t.open&&(i=null),!1):(i=t,!0)}),J());return W(s.pipe(Ip(t=>t.open),Qw(t)),s.pipe(Ip(t=>!t.open),Qw(e))).pipe(Ip(t=>t===i&&(i=null,t.open!==n())),E(t=>t.open))}}(o,a,r)).subscribe(t=>t?i():s());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:t}){t&&this.isOpen()&&(this._windowRef.instance.tooltipClass=t.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(sa(lc),sa(dc),sa(Vo),sa(ac),sa(Rc),sa(mS),sa(Lu),sa(yh),sa(wo),sa(sh))},t.\u0275dir=ve({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[je]}),t})(),vS=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)}}),t})(),wS=(()=>{class t{constructor(){this.highlightClass="ngb-highlight"}ngOnChanges(t){const e=tv(this.result),n=(Array.isArray(this.term)?this.term:[this.term]).map(t=>tv(t).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")).filter(t=>t);this.parts=n.length?e.split(new RegExp(`(${n.join("|")})`,"gmi")):[e]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term"},features:[je],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(t,e){1&t&&ra(0,X_,3,2,"ng-template",0),2&t&&oa("ngForOf",e.parts)},directives:[wd,Td],styles:[".ngb-highlight{font-weight:700}"],encapsulation:2,changeDetection:0}),t})(),SS=(()=>{class t{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=tv,this.selectEvent=new Qc,this.activeChangeEvent=new Qc}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(t){this.activeIdx=t,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(t){this.selectEvent.emit(t)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox",1,"dropdown-menu","show"],hostVars:1,hostBindings:function(t,e){1&t&&ma("mousedown",function(t){return t.preventDefault()}),2&t&&Qa("id",e.id)},inputs:{focusFirst:"focusFirst",formatter:"formatter",id:"id",results:"results",term:"term",resultTemplate:"resultTemplate"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(ra(0,K_,1,2,"ng-template",null,0,bu),ra(2,Z_,2,9,"ng-template",1)),2&t&&(ps(2),oa("ngForOf",e.results))},directives:[wd,wS,kd],encapsulation:2}),t})();const TS=new Vt("live announcer delay",{providedIn:"root",factory:function(){return 100}});function CS(t,e=!1){let n=t.body.querySelector("#ngb-live");return null==n&&e&&(n=t.createElement("div"),n.setAttribute("id","ngb-live"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n.classList.add("sr-only"),t.body.appendChild(n)),n}let xS=(()=>{class t{constructor(t,e){this._document=t,this._delay=e}ngOnDestroy(){const t=CS(this._document);t&&t.parentElement.removeChild(t)}say(t){const e=CS(this._document,!0),n=this._delay;if(null!=e){e.textContent="";const r=()=>e.textContent=t;null===n?r():setTimeout(r,n)}}}return t.\u0275fac=function(e){return new(e||t)(Kt(yh),Kt(TS))},t.\u0275prov=ut({factory:function(){return new t(Kt(yh),Kt(TS))},token:t,providedIn:"root"}),t})(),ES=(()=>{class t{constructor(){this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({factory:function(){return new t},token:t,providedIn:"root"}),t})();const kS={provide:Uy,useExisting:St(()=>PS),multi:!0};let AS=0,PS=(()=>{class t{constructor(t,e,n,r,i,s,o,a,l,c,u,h){this._elementRef=t,this._renderer=n,this._live=a,this._document=l,this._ngZone=c,this._changeDetector=u,this._subscription=null,this._closed$=new T,this._inputValueBackup=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new Qc,this.activeDescendant=null,this.popupId="ngb-typeahead-"+AS++,this._onTouched=()=>{},this._onChange=t=>{},this.container=s.container,this.editable=s.editable,this.focusFirst=s.focusFirst,this.showHint=s.showHint,this.placement=s.placement,this._valueChanges=ly(t.nativeElement,"input").pipe(E(t=>t.target.value)),this._resubscribeTypeahead=new _p(null),this._popupService=new Nw(SS,r,e,n,this._ngZone,i,h),this._zoneSubscription=o.onStable.subscribe(()=>{this.isPopupOpen()&&_w(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)})}ngOnInit(){const t=this._valueChanges.pipe(cf(t=>{this._inputValueBackup=this.showHint?t:null,this._onChange(this.editable?t:void 0)})).pipe(this.ngbTypeahead),e=this._resubscribeTypeahead.pipe(zp(()=>t));this._subscription=this._subscribeToUserInput(e)}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}writeValue(t){this._writeInputValue(this._formatItemForInput(t)),this.showHint&&(this._inputValueBackup=t)}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(t){if(this.isPopupOpen())switch(t.which){case ow.ArrowDown:t.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case ow.ArrowUp:t.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case ow.Enter:case ow.Tab:const e=this._windowRef.instance.getActive();sv(e)&&(t.preventDefault(),t.stopPropagation(),this._selectResult(e)),this._closePopup()}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._elementRef.nativeElement.value;const{windowRef:t}=this._popupService.open();this._windowRef=t,this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(t=>this._selectResultClosePopup(t)),this._windowRef.instance.activeChangeEvent.subscribe(t=>this.activeDescendant=t),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),pw(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(t){let e=!1;this.selectItem.emit({item:t,preventDefault:()=>{e=!0}}),this._resubscribeTypeahead.next(null),e||(this.writeValue(t),this._onChange(t))}_selectResultClosePopup(t){this._selectResult(t),this._closePopup()}_showHint(){var t;if(this.showHint&&(null===(t=this._windowRef)||void 0===t?void 0:t.instance.hasActive())&&null!=this._inputValueBackup){const t=this._inputValueBackup.toLowerCase(),e=this._formatItemForInput(this._windowRef.instance.getActive());t===e.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+e.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,e.length])):this._writeInputValue(e)}}_formatItemForInput(t){return null!=t&&this.inputFormatter?this.inputFormatter(t):tv(t)}_writeInputValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",tv(t))}_subscribeToUserInput(t){return t.subscribe(t=>{t&&0!==t.length?(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=t,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const e=t?t.length:0;this._live.say(0===e?"No results available":`${e} result${1===e?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}}return t.\u0275fac=function(e){return new(e||t)(sa(lc),sa(Rc),sa(dc),sa(Vo),sa(ac),sa(ES),sa(Lu),sa(xS),sa(yh),sa(Lu),sa(wo),sa(sh))},t.\u0275dir=ve({type:t,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(t,e){1&t&&ma("blur",function(){return e.handleBlur()})("keydown",function(t){return e.handleKeyDown(t)}),2&t&&(Qa("autocomplete",e.autocomplete),ea("aria-autocomplete",e.showHint?"both":"list")("aria-activedescendant",e.activeDescendant)("aria-owns",e.isPopupOpen()?e.popupId:null)("aria-expanded",e.isPopupOpen()),Oa("open",e.isPopupOpen()))},inputs:{autocomplete:"autocomplete",placement:"placement",container:"container",editable:"editable",focusFirst:"focusFirst",showHint:"showHint",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[ic([kS])]}),t})(),MS=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd]]}),t})();const OS=[gv,mv,Tv,Nv,Hv,Ow,Iw,Ww,zw,qw,Yw,Zw,nS,fS,gS,vS,MS];let IS=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[OS,gv,mv,Tv,Nv,Hv,Ow,Iw,Ww,zw,qw,Yw,Zw,nS,fS,gS,vS,MS]}),t})();var DS,RS=new Uint8Array(16);function NS(){if(!DS&&!(DS="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return DS(RS)}for(var HS=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,FS=function(t){return"string"==typeof t&&HS.test(t)},VS=[],GS=0;GS<256;++GS)VS.push((GS+256).toString(16).substr(1));var LS=function(t,e,n){var r=(t=t||{}).random||(t.rng||NS)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(VS[t[e+0]]+VS[t[e+1]]+VS[t[e+2]]+VS[t[e+3]]+"-"+VS[t[e+4]]+VS[t[e+5]]+"-"+VS[t[e+6]]+VS[t[e+7]]+"-"+VS[t[e+8]]+VS[t[e+9]]+"-"+VS[t[e+10]]+VS[t[e+11]]+VS[t[e+12]]+VS[t[e+13]]+VS[t[e+14]]+VS[t[e+15]]).toLowerCase();if(!FS(n))throw TypeError("Stringified UUID is invalid");return n}(r)};let BS=(()=>{class t{}return t.ASSETS=new Map([["asset_plant","https://drive.google.com/file/d/18MyEBfCcQrfQxSHaEE_cnax3pG_8GOIW/view?usp=sharing"],["asset_phone","https://drive.google.com/file/d/1sEUBqn9DFsGLW1fwUWHdpKtdL2rcCfvR/view?usp=sharing"],["asset_coffee","https://drive.google.com/file/d/1UjFKfarRj3GAFFUI29LM8Y5iU9j5BPbg/view?usp=sharing"],["asset_notfound","https://drive.google.com/file/d/1ksYOdflMPDpxaQM-0aT5tPkPJGpsu6qg/view?usp=sharing"],["asset_me","https://drive.google.com/file/d/1ntjjLD0jegDVmnQpBYTUh39j6K5QAl-s/view?usp=sharing"]]),t})();class jS{constructor(t="",e=0){this.id=t,this.creationDateTime=e,""===this.id&&(this.id=LS()),0===this.creationDateTime&&(this.creationDateTime=(new Date).getTime())}}class US extends jS{constructor(t="",e="",n="",r="",i="",s="",o="",a=0){super(),this.title=t,this.description=e,this.thumbnailUrl=n,this.link=r,this.data=i,this.tags=s,this.cover=o,this.readTimeMin=a}isEmpty(){return!(this.title||this.description||this.thumbnailUrl||this.link||this.data||this.tags||this.cover)}}class $S extends jS{constructor(t=0,e="",n="",r="",i=[]){super(),this.index=t,this.label=e,this.faIcon=n,this.url=r,this.subMenu=i}}class WS extends jS{constructor(t="",e){super(),this.pageTitle=t,this.metas=e}}let zS=(()=>{class t{constructor(t,e){this.document=t,this.platformId=e}static getDriveUrl(t){return"https://drive.google.com/uc?export=view&id="+t.replace("https://drive.google.com/file/d/","").split("/")[0]}getStyle(t,e){if(!e)return console.error("Error data cannot be null or empty"),"<p>null</p>";switch(t){case"listitem":return'<li><span class="elem">'+e[0]+"</span></li>";case"list":return!0===e[1]?"<ol class='ordered-list'>"+e[0]+"</ol>":"<ul>"+e[0]+"</ul>";case"table":return'<table class="table table-bordered table-hover table-sm"><thead>'+e[0]+"</thead><tbody>"+e[1]+"</tbody></table>";case"image":return'<img src="'+this.getImageUrl(e[0])+'" title="'+e[1]+'" alt="'+e[2]+'"/>';default:return"<p>data</p>"}}cleanString(t){return(t=t.toLowerCase().trim()).replace(/[^a-zA-Z0-9 ]/g,"").replace(/[ ]/g,"-")}omit(t,e){if("data"!==t&&"src"!==t)return e}getImageUrl(e){if(e.startsWith("asset_")){let n=BS.ASSETS.get(e);return null===n&&(n=BS.ASSETS.get("asset_notfound")),t.getDriveUrl(n)}return e.startsWith("https://drive.google.com/file/d/")?t.getDriveUrl(e):e}loadingApp(t,e){const n=this.document.getElementById("loading-screen");t?e.removeClass(n,"hide"):e.addClass(n,"hide")}regexMatch(t,e){return t.test(e)}shouldUpdate(t,e){return(new Date).getTime()-t>e}diffDate(e,n){let r=Math.floor(e.getTime()-n.getTime());const i=Math.floor(r/t.year);r-=i*t.year;const s=Math.floor(r/t.month);r-=s*t.month;const o=Math.floor(r/t.day);r-=o*t.day;const a=Math.floor(r/t.hour);r-=a*t.hour;const l=Math.floor(r/t.min);r-=l*t.min;const c=Math.floor(r/t.sec);return r-=c*t.sec,[i,s,o,a,l,c]}equalsObjects(t,e){return JSON.stringify(t)===JSON.stringify(e)}getClone(t){return Object.assign({},t)}isBrowserClient(){return Rd(this.platformId)}}return t.sec=1e3,t.min=60*t.sec,t.hour=60*t.min,t.day=24*t.hour,t.month=31*t.day,t.year=12*t.month,t.\u0275fac=function(e){return new(e||t)(Kt(yh),Kt(xu))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function qS(t=0,e=fy){return(!gy(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=fy),new b(n=>(n.add(e.schedule(XS,t,{subscriber:n,counter:0,period:t})),n))}function XS(t){const{subscriber:e,counter:n,period:r}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}class KS{}class QS{}class YS{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 YS?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 YS;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof YS?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 ZS{encodeKey(t){return JS(t)}encodeValue(t){return JS(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function JS(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class tT{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new ZS,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.split("&").forEach(t=>{const r=t.indexOf("="),[i,s]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=n.get(i)||[];o.push(s),n.set(i,o)}),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"})}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 tT({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(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)}}function eT(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function nT(t){return"undefined"!=typeof Blob&&t instanceof Blob}function rT(t){return"undefined"!=typeof FormData&&t instanceof FormData}class iT{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.params&&(this.params=i.params)),this.headers||(this.headers=new YS),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 tT,this.urlWithParams=e}serializeBody(){return null===this.body?null:eT(this.body)||nT(this.body)||rT(this.body)||"string"==typeof this.body?this.body:this.body instanceof tT?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||rT(this.body)?null:nT(this.body)?this.body.type||null:eT(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof tT?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,r=t.responseType||this.responseType,i=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new iT(e,n,i,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:s})}}var sT=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class oT{constructor(t,e=200,n="OK"){this.headers=t.headers||new YS,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 aT extends oT{constructor(t={}){super(t),this.type=sT.ResponseHeader}clone(t={}){return new aT({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 lT extends oT{constructor(t={}){super(t),this.type=sT.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new lT({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 cT extends oT{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 uT(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let hT=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof iT)r=t;else{let i=void 0;i=n.headers instanceof YS?n.headers:new YS(n.headers);let s=void 0;n.params&&(s=n.params instanceof tT?n.params:new tT({fromObject:n.params})),r=new iT(t,e,void 0!==n.body?n.body:null,{headers:i,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=bp(r).pipe(of(t=>this.handler.handle(t)));if(t instanceof iT||"events"===n.observe)return i;const s=i.pipe(Ip(t=>t instanceof lT));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(E(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(E(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(E(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(E(t=>t.body))}case"response":return s;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 tT).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,uT(n,e))}post(t,e,n={}){return this.request("POST",t,uT(n,e))}put(t,e,n={}){return this.request("PUT",t,uT(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Kt(KS))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class dT{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const pT=new Vt("HTTP_INTERCEPTORS");let fT=(()=>{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 gT=/^\)\]\}',?\n/;class mT{}let yT=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),bT=(()=>{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 b(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 s=()=>{if(null!==i)return i;const e=1223===n.status?204:n.status,r=n.statusText||"OK",s=new YS(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return i=new aT({headers:s,status:e,statusText:r,url:o}),i},o=()=>{let{headers:r,status:i,statusText:o,url:a}=s(),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(gT,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new lT({body:l,headers:r,status:i,statusText:o,url:a||void 0})),e.complete()):e.error(new cT({error:l,headers:r,status:i,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=s(),i=new cT({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(s()),l=!0);let i={type:sT.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:sT.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:sT.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),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)(Kt(mT))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const _T=new Vt("XSRF_COOKIE_NAME"),vT=new Vt("XSRF_HEADER_NAME");class wT{}let ST=(()=>{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=bd(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Kt(yh),Kt(xu),Kt(_T))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),TT=(()=>{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)(Kt(wT),Kt(vT))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),CT=(()=>{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(pT,[]);this.chain=t.reduceRight((t,e)=>new dT(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(QS),Kt(Vo))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),xT=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:TT,useClass:fT}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:_T,useValue:e.cookieName}:[],e.headerName?{provide:vT,useValue:e.headerName}:[]]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},providers:[TT,{provide:pT,useExisting:TT,multi:!0},{provide:wT,useClass:ST},{provide:_T,useValue:"XSRF-TOKEN"},{provide:vT,useValue:"X-XSRF-TOKEN"}]}),t})(),ET=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},providers:[hT,{provide:KS,useClass:CT},bT,{provide:QS,useExisting:bT},yT,{provide:mT,useExisting:yT}],imports:[[xT.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),kT=(()=>{class t{constructor(t,e,n){this.http=t,this.appService=n,this.ID_ROOT="/:id:",this.interval=6e5,this.subscriptions=[],this.updating=!1,this.firstUpdate=!1,this.lastUpdate=(new Date).getTime(),this.offlineRepo={},this.repoBaseUrl=e,this.appService.isBrowserClient()&&this.subscriptions.push(qS(this.interval).subscribe(()=>this.updateRepo()))}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}create(t,e){return ay(this,void 0,void 0,function*(){yield this.update(t,e)})}readAll(t){return ay(this,void 0,void 0,function*(){yield this.updateFirstTime(4e3);try{const e=[],n=this.getKey(t);if(""!==t&&!this.offlineRepo[n])return Promise.resolve(e);if(""===t){for(const t of Object.keys(this.offlineRepo))e.push(this.offlineRepo[t]);return Promise.resolve(e)}for(const t of Object.keys(this.offlineRepo[n]))e.push(this.offlineRepo[n][t]);return Promise.resolve(e)}catch(e){return console.error("Error while executing request: ",e),Promise.reject([])}})}readByProp(t,e,n){return ay(this,void 0,void 0,function*(){const r=(yield this.readAll(t)).slice(0,n);return e?r.sort((t,n)=>t[e]>n[e]?1:-1):r})}update(t,e){return ay(this,void 0,void 0,function*(){try{yield this.http.put(this.resolveUrl([e,"/"+t.id]),t).toPromise(),yield this.updateRepo()}catch(n){yield Promise.reject("Error while executing request: "+n)}})}deleteAll(t){return ay(this,void 0,void 0,function*(){try{yield this.http.delete(this.resolveUrl([t])).toPromise()}catch(e){yield Promise.reject("Error while executing request: "+e)}})}deleteById(t,e){return ay(this,void 0,void 0,function*(){try{yield this.http.delete(this.resolveUrl([e,"/"+t])).toPromise()}catch(n){yield Promise.reject("Error while executing request: "+n)}})}resolveUrl(t){let e="";for(const n of t)e=e.concat(n);return this.repoBaseUrl.replace(this.ID_ROOT,e)}updateRepo(){return ay(this,void 0,void 0,function*(){this.updating||(this.updating=!0,this.offlineRepo=yield this.http.get(this.resolveUrl([""])).toPromise(),null===this.offlineRepo&&(this.offlineRepo=[]),this.lastUpdate=(new Date).getTime(),this.updating=!1)})}updateFirstTime(t){return ay(this,void 0,void 0,function*(){this.firstUpdate||(this.updating?yield this.delay(t):(yield this.updateRepo(),this.firstUpdate=!0))})}getKey(t){return t.replace("/","")}delay(t){return new Promise(e=>setTimeout(e,t))}}return t.\u0275fac=function(e){return new(e||t)(Kt(hT),Kt(String),Kt(zS))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),AT=(()=>{class t extends kT{constructor(t,e){super(t,"https://ky-pages.firebaseio.com/posts/:id:.json",e),this.http=t,this.appService=e}getPostsByValue(t,e){return ay(this,void 0,void 0,function*(){const n=[];try{const r=yield this.readAll(""),i=t.toLowerCase().split(" ");for(const t of i)for(const i of r)if((i.link.toLowerCase().includes(t)||i.title.toLowerCase().includes(t)||i.description.toLowerCase().includes(t))&&(n.push(i),n.length>=e))return Promise.resolve(n)}catch(r){return console.error("Error while executing request: ",r),Promise.reject([])}return Promise.resolve(n)})}getPostByLink(t){return ay(this,void 0,void 0,function*(){t=t.toLowerCase();const e=yield this.readAll("");for(const n of e)if(n.link.toLowerCase()===t.toLowerCase())return n;return new US})}}return t.\u0275fac=function(e){return new(e||t)(Kt(hT),Kt(zS))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const PT=["carousel"];function MT(t,e){if(1&t&&(la(0,"div",7),la(1,"h3"),$a(2),ca(),la(3,"p"),$a(4),ca(),ca(),la(5,"a",8),ua(6,"img",9),ca()),2&t){const t=_a().$implicit,e=_a(2);ps(2),Wa(t.title),ps(2),Wa(t.description),ps(1),oa("routerLink",t.link),ps(1),oa("src",e.appService.getImageUrl(t.cover),mi)("alt",t.title)}}function OT(t,e){1&t&&ra(0,MT,7,5,"ng-template",6)}function IT(t,e){if(1&t){const t=pa();la(0,"div",1),la(1,"div",2),la(2,"ngb-carousel",3,4),ma("slide",function(e){return fn(t),_a().onSlide(e)}),ra(4,OT,1,0,void 0,5),ca(),ca(),ca()}if(2&t){const t=_a();ps(2),oa("interval",t.interval)("pauseOnHover",t.pauseOnHover)("pauseOnFocus",t.pauseOnFocus)("showNavigationArrows",t.posts.length>0),ps(2),oa("ngForOf",t.posts)}}let DT=(()=>{class t{constructor(t,e){this.appService=t,this.postsRepo=e,this.paused=!1,this.unpauseOnArrow=!0,this.pauseOnIndicator=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.interval=4e3,this.count=5}ngOnInit(){this.feedCarousel()}togglePaused(){this.paused?this.carousel.cycle():this.carousel.pause(),this.paused=!this.paused}onSlide(t){this.unpauseOnArrow&&t.paused&&(t.source===Rv.ARROW_LEFT||t.source===Rv.ARROW_RIGHT)&&this.togglePaused(),this.pauseOnIndicator&&!t.paused&&t.source===Rv.INDICATOR&&this.togglePaused()}feedCarousel(){return ay(this,void 0,void 0,function*(){this.posts=yield this.postsRepo.readByProp("","title",this.count)})}}return t.\u0275fac=function(e){return new(e||t)(sa(zS),sa(AT))},t.\u0275cmp=fe({type:t,selectors:[["app-carousel"]],viewQuery:function(t,e){if(1&t&&uu(PT,!0),2&t){let t;lu(t=fu())&&(e.carousel=t.first)}},inputs:{count:"count"},decls:1,vars:1,consts:[["class","row",4,"ngIf"],[1,"row"],[1,"col-12"],[1,"car",3,"interval","pauseOnHover","pauseOnFocus","showNavigationArrows","slide"],["carousel",""],[4,"ngFor","ngForOf"],["ngbSlide",""],[1,"carousel-caption"],[3,"routerLink"],[1,"image",3,"src","alt"]],template:function(t,e){1&t&&ra(0,IT,5,5,"div",0),2&t&&oa("ngIf",e.posts)},directives:[Td,Dv,wd,Iv,Lm],styles:["*[_ngcontent-%COMP%]{color:#fff}.car[_ngcontent-%COMP%]{margin:1rem 0;box-shadow:0 0 .3rem .2rem rgba(0,0,0,.5)!important;overflow:hidden;transition:all .2s ease-out;height:400px}.car[_ngcontent-%COMP%]:hover{box-shadow:0 0 .5rem .4rem rgba(0,0,0,.5)!important}.image[_ngcontent-%COMP%]{height:400px;width:100%;object-fit:cover;transition:all .2s ease-out}.image[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})();const RT={UKNOWN:"Unknown"},NT={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:RT.UKNOWN},HT={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},FT={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},VT={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:RT.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone"},GT={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:RT.UKNOWN},LT={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",UNKNOWN:RT.UKNOWN.toLowerCase()},BT=Object.assign(Object.assign(Object.assign({},HT),FT),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/}),jT={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,iOS:/(iPhone OS\s*[0-9_]+)/},UT={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},$T=(t,e)=>(t[e]=jT[e],t),WT=Object.keys(jT).reduce($T,{}),zT=(t,e)=>(t[NT[e]]=UT[e],t),qT=Object.keys(UT).reduce(zT,{});var XT=Object.freeze({__proto__:null,GENERAL:RT,BROWSERS:NT,MOBILES_RE:HT,TABLETS_RE:FT,DEVICES:VT,OS:GT,OS_VERSIONS:LT,OS_RE:{WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:BT,OS_VERSIONS_RE_MAP:jT,BROWSER_VERSIONS_RE_MAP:UT,OS_VERSIONS_RE:WT,BROWSER_VERSIONS_RE:qT,"\u02750":$T,"\u02751":zT});class KT{constructor(){}test(t,e){return"string"==typeof e&&(e=new RegExp(e)),e instanceof RegExp?e.test(t):e&&Array.isArray(e.and)?e.and.every(e=>this.test(t,e)):e&&Array.isArray(e.or)?e.or.some(e=>this.test(t,e)):!(!e||!e.not||this.test(t,e.not))}exec(t,e){return"string"==typeof e&&(e=new RegExp(e)),e instanceof RegExp?e.exec(t):e&&Array.isArray(e)?e.reduce((e,n)=>e||this.exec(t,n),null):null}}var QT=function(t){return t.Mobile="mobile",t.Tablet="tablet",t.Desktop="desktop",t.Unknown="unknown",t}({}),YT=function(t){return t.Portrait="portrait",t.Landscape="landscape",t}({});let ZT=(()=>{class t{constructor(t){this.platformId=t,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new KT,this.deviceType="",this.orientation="",Rd(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(t=this.userAgent){t!==this.userAgent&&(this.userAgent=t);const e=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(e.forEach(e=>{this[e.prop]=Object.keys(XT[e.const]).reduce((n,r)=>"device"===XT[e.const][r]&&Rd(this.platformId)&&(this.reTree.test(this.userAgent,FT.iPad)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(n[XT[e.const][r]]="iPad",Object):(n[XT[e.const][r]]=this.reTree.test(t,XT[e.const+"_RE"][r]),n),{})}),e.forEach(t=>{this[t.prop]=Object.keys(XT[t.const]).map(e=>XT[t.const][e]).reduce((e,n)=>"device"===t.prop&&e===XT[t.const].ANDROID?this[t.prop][n]?n:e:e===XT[t.const].UNKNOWN&&this[t.prop][n]?n:e,XT[t.const].UNKNOWN)}),this.browser_version="0",this.browser!==NT.UNKNOWN){const e=this.reTree.exec(t,qT[this.browser]);e&&(this.browser_version=e[1])}this.orientation="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?YT.Landscape:YT.Portrait:RT.UKNOWN,this.deviceType=this.isTablet()?QT.Tablet:this.isMobile(this.userAgent)?QT.Mobile:this.isDesktop(this.userAgent)?QT.Desktop:QT.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(t=this.userAgent){return!this.isTablet(t)&&!!Object.keys(HT).find(e=>this.reTree.test(t,HT[e]))}isTablet(t=this.userAgent){return!(!Rd(this.platformId)||!(this.reTree.test(this.userAgent,FT.iPad)||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(FT).find(e=>!!this.reTree.test(t,FT[e]))}isDesktop(t=this.userAgent){const e=[VT.PS4,VT.CHROME_BOOK,VT.UNKNOWN];return(this.device!==VT.UNKNOWN||!this.isMobile(t)&&!this.isTablet(t))&&e.indexOf(this.device)>-1}}return t.\u0275fac=function(e){return new(e||t)(Kt(xu))},t.\u0275prov=ut({factory:function(){return new t(Kt(xu))},token:t,providedIn:"root"}),t})();const JT=function(t){return{"background-image":t}};function tC(t,e){if(1&t){const t=pa();la(0,"div"),la(1,"a",5,6),ma("mouseover",function(){fn(t);const e=ia(2),n=ia(7),r=ia(9),i=ia(15),s=ia(5),o=ia(13);return _a().hoverThmb(e,n,r,i,s,o,!0)})("mouseout",function(){fn(t);const e=ia(2),n=ia(7),r=ia(9),i=ia(15),s=ia(5),o=ia(13);return _a().hoverThmb(e,n,r,i,s,o,!1)}),la(3,"div",7),ua(4,"div",8,9),ca(),la(6,"div",10,11),la(8,"div",12,13),la(10,"div"),$a(11),ca(),ca(),ua(12,"div",14,15),la(14,"div",16,17),$a(16),ca(),ca(),ca(),ca()}if(2&t){const t=e.$implicit,n=_a();Ka("",n.getColumns()," p-3"),ps(1),oa("routerLink",n.getPostLink(t.link))("ngClass",n.isMobile()?"hover":""),ps(3),oa("ngClass",n.isMobile()?"hover":"")("ngStyle",Wc(13,JT," url("+n.appService.getImageUrl(t.thumbnailUrl)+")")),ps(2),oa("ngClass",n.isMobile()?"hover":""),ps(2),oa("ngClass",n.isMobile()?"hover":""),ps(3),Wa(t.title),ps(1),oa("ngClass",n.isMobile()?"hover":""),ps(2),oa("ngClass",n.isMobile()?"hover":""),ps(2),Wa(t.description)}}let eC=(()=>{class t{constructor(t,e,n,r,i){this.postsRepo=t,this.renderer=e,this.element=n,this.deviceService=r,this.appService=i,this.blogPosts=[],this.customPosts=!1,this.sliceFrom=0,this.postsPerStep=6,this.columns=3,this.sortProperty="creationDateTime"}ngOnInit(){this.feedPosts()}feedPosts(){return ay(this,void 0,void 0,function*(){this.customPosts||(this.appService.loadingApp(!0,this.renderer),this.blogPosts=this.blogPosts.concat(yield this.getNextPosts()),this.appService.loadingApp(!1,this.renderer))})}getNextPosts(){return ay(this,void 0,void 0,function*(){const t=this.sliceFrom+this.postsPerStep;let e;const n=(yield this.postsRepo.readAll("")).sort((t,e)=>t[this.sortProperty]>e[this.sortProperty]?1:-1);return e=this.sliceFrom<n.length?n.slice(this.sliceFrom,t):[],this.sliceFrom=t,Promise.resolve(e)})}getColumns(){return 1===this.columns?"col-12":2===this.columns?"col-md-6":3===this.columns?"col-md-4":"col-md-3"}getPostLink(t){return t}hoverThmb(t,e,n,r,i,s,o){o?(this.renderer.addClass(t,"hover"),this.renderer.addClass(i,"hover"),this.renderer.addClass(e,"hover"),this.renderer.addClass(n,"hover"),this.renderer.addClass(r,"hover"),this.renderer.addClass(s,"hover")):(this.renderer.removeClass(t,"hover"),this.renderer.removeClass(i,"hover"),this.renderer.removeClass(e,"hover"),this.renderer.removeClass(n,"hover"),this.renderer.removeClass(r,"hover"),this.renderer.removeClass(s,"hover"))}isMobile(){return this.deviceService.isMobile()}hasOverFlown(t){return t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth}}return t.\u0275fac=function(e){return new(e||t)(sa(AT),sa(dc),sa(lc),sa(ZT),sa(zS))},t.\u0275cmp=fe({type:t,selectors:[["app-post-thumbnails"]],inputs:{blogPosts:"blogPosts",customPosts:"customPosts",postsPerStep:"postsPerStep",columns:"columns",sortProperty:"sortProperty"},decls:6,vars:1,consts:[[1,"row","px-3"],[3,"class",4,"ngFor","ngForOf"],[1,"row","mb-4"],[1,"offset-md-4","col-md-4","text-center"],["type","button",1,"btn","btn-outline-dark","btn-block",3,"click"],[1,"post-thumbnail-container","d-flex","align-content-stretch","flex-wrap","hvr-hang",3,"routerLink","ngClass","mouseover","mouseout"],["thmbCont",""],[1,"thumbnail-pic-wrapper"],[1,"thumbnail-pic","d-flex","align-items-center","justify-content-center",3,"ngClass","ngStyle"],["thmbPic",""],[1,"thumbnail-title-container","h5","d-flex","flex-column",3,"ngClass"],["thmbTitCont",""],[1,"thumbnail-title","d-flex","align-items-center",3,"ngClass"],["thmbTit",""],[1,"thumbnail-sep",3,"ngClass"],["thmbSep",""],[1,"thumbnail-desc",3,"ngClass"],["thmbDesc",""]],template:function(t,e){1&t&&(la(0,"div",0),ra(1,tC,17,15,"div",1),ca(),la(2,"div",2),la(3,"div",3),la(4,"button",4),ma("click",function(){return e.feedPosts()}),$a(5," Load more posts... "),ca(),ca(),ca()),2&t&&(ps(1),oa("ngForOf",e.blogPosts))},directives:[wd,Lm,_d,Ed],styles:[".post-thumbnail-container[_ngcontent-%COMP%]{position:relative;height:20rem;max-height:40rem;color:inherit;overflow:hidden;text-decoration:none;border-radius:.5rem;box-shadow:0 0 .2rem .2rem rgba(0,0,0,.2)!important;transition:all .2s ease-out}.post-thumbnail-container.hover[_ngcontent-%COMP%]{box-shadow:0 0 .4rem .4rem rgba(0,0,0,.2)!important}.thumbnail-pic-wrapper[_ngcontent-%COMP%]{overflow:hidden;height:100%;width:100%}.thumbnail-pic[_ngcontent-%COMP%]{height:100%;background-repeat:no-repeat;background-position:50%;background-size:cover;transition:none;position:relative}.thumbnail-pic.hover[_ngcontent-%COMP%]{transition:all .2s ease-out;transform:scale(1.1);filter:blur(3px)}.thumbnail-title-container[_ngcontent-%COMP%]{height:20%;width:100%;position:absolute;bottom:0;background-color:hsla(0,0%,100%,.8);margin:0;transition:none}.thumbnail-title-container.hover[_ngcontent-%COMP%]{height:100%;transition:height .2s ease-out}.thumbnail-title[_ngcontent-%COMP%]{font-weight:900;text-transform:uppercase;line-height:2rem;text-overflow:ellipsis;text-shadow:none}.thumbnail-title[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%}.thumbnail-title.hover[_ngcontent-%COMP%]{padding:.5rem 0;max-height:5rem;overflow:hidden;height:6rem}.thumbnail-sep[_ngcontent-%COMP%]{width:0;height:4px;background-color:#464646;margin:0 auto}.thumbnail-sep.hover[_ngcontent-%COMP%]{width:100%;height:4px}.thumbnail-desc[_ngcontent-%COMP%]{text-align:left;padding:.2rem;height:100%;opacity:0;font-size:1.2rem;margin-top:3rem;text-shadow:none;font-weight:700;transition:none}.thumbnail-desc.hover[_ngcontent-%COMP%]{transition:all .4s ease-in-out;opacity:1;margin-top:.2rem}.btn[_ngcontent-%COMP%]{transition:all .2s ease-in-out}.btn[_ngcontent-%COMP%]:hover{box-shadow:0 0 .3rem .2rem rgba(0,0,0,.2)!important}.hide[_ngcontent-%COMP%]{display:none!important}"]}),t})(),nC=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-home"]],decls:10,vars:2,consts:[[1,"row","px-2","py-3","text-center"],[1,"col-md-12"],[1,"hhr"],[3,"count"],[3,"columns"]],template:function(t,e){1&t&&(la(0,"div",0),la(1,"div",1),la(2,"h1",2),$a(3,"FEATURED"),ca(),ca(),ca(),ua(4,"app-carousel",3),la(5,"div",0),la(6,"div",1),la(7,"h1",2),$a(8,"LATEST"),ca(),ca(),ca(),ua(9,"app-post-thumbnails",4)),2&t&&(ps(4),oa("count",5),ps(5),oa("columns",3))},directives:[DT,eC],styles:[".uc[_ngcontent-%COMP%]{width:40vw;height:40vh;display:inline-block;background-repeat:no-repeat;background-position:50%;background-image:url(https://drive.google.com/uc?export=view&id=1xqznR9M7oTGdaEL7Z98MObv0Iy4WCVIf);background-size:contain;transition:background-image .25s ease-in-out}.uc[_ngcontent-%COMP%]:active, .uc[_ngcontent-%COMP%]:hover{background:url(https://drive.google.com/uc?export=view&id=1uDE3TH77Kx-cz1O9DL_2q_Y6fyGsouIZ) no-repeat 50%;background-size:contain}.uc2_loader[_ngcontent-%COMP%]{background:url(https://drive.google.com/uc?export=view&id=1uDE3TH77Kx-cz1O9DL_2q_Y6fyGsouIZ) no-repeat 50%;display:none}"]}),t})(),rC=(()=>{class t{constructor(t,e){this.titleService=t,this.metaService=e,this.APP_ID="yassir-khaldi-dev-courses",this.SITE_NAME="Yassir Khaldi Development Courses",this.TW_ACCT="khaldi_yassir"}addMeta(t){this.titleService.setTitle(t.pageTitle),this.metaService.addTags(t.metas)}getSocialMeta(t="",e="",n="",r="",i=""){return[{property:"og:title",name:"og:title",content:t},{property:"og:description",name:"og:description",content:e},{property:"og:image",name:"og:image",content:n},{property:"og:url",name:"og:url",content:i},{property:"fb:app_id",name:"fb:app_id",content:this.APP_ID},{property:"twitter:card",name:"twitter:card",content:"summary_large_image"},{property:"twitter:site",name:"twitter:site",content:this.TW_ACCT},{property:"twitter:creator",name:"twitter:creator",content:this.TW_ACCT},{property:"twitter:image:alt",name:"twitter:image:alt",content:r},{property:"og:type",name:"og:type",content:"website"},{property:"og:site_name",name:"og:site_name",content:this.SITE_NAME}]}getSeoMeta(t="",e="",n="index, follow"){return[{property:"keywords",name:"keywords",content:e},{property:"description",name:"description",content:t},{property:"robots",name:"robots",content:n}]}setPageMeta(t){const e=[],n=t.title,r=t.description,i=t.tags.replace(/;/g,","),s=window.location.href;e.push(...this.getSeoMeta(r,i)),e.push(...this.getSocialMeta(n,r,t.cover,t.title,s)),this.addMeta(new WS(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Kt(yp),Kt(gp))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function iC(t,e){1&t&&(la(0,"div",2),la(1,"p",3),$a(2,"Share"),ca(),la(3,"div"),ua(4,"i",4),ca(),la(5,"div"),ua(6,"i",5),ca(),la(7,"div"),ua(8,"i",6),ca(),ca())}function sC(t,e){if(1&t){const t=pa();la(0,"div",7),la(1,"span",8),$a(2),ca(),la(3,"a",9),ma("click",function(){fn(t);const e=_a();return e.sharePopUp(e.fbShareUrl)}),ua(4,"i",10),ca(),la(5,"a",11),ma("click",function(){fn(t);const e=_a();return e.sharePopUp(e.twShareUrl)}),ua(6,"i",12),ca(),la(7,"a",13),ma("click",function(){fn(t);const e=_a();return e.sharePopUp(e.inShareUrl)}),ua(8,"i",14),ca(),ca()}if(2&t){const t=_a();ps(2),Wa(t.shareText)}}let oC=(()=>{class t{constructor(t){this.router=t,this.inlineButtons=!1,this.shareText="Share:",this.fbShareUrl="https://www.facebook.com/sharer/sharer.php?u=:url:",this.twShareUrl="https://twitter.com/share?url=:url:",this.inShareUrl="https://www.linkedin.com/sharing/share-offsite/?url=:url:"}ngOnInit(){}sharePopUp(t){const e=screen.width/2-200,n=screen.height/2-200;return t=t.replace(":url:",window.location.href),window.open(t,"Share Post","location=no,status=no,menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=400,left="+e+",top="+n),!1}copyLink(){navigator.clipboard.writeText("your text").then().catch(t=>console.error(t))}}return t.\u0275fac=function(e){return new(e||t)(sa(Gm))},t.\u0275cmp=fe({type:t,selectors:[["app-share-buttons"]],inputs:{inlineButtons:"inlineButtons",shareText:"shareText"},decls:2,vars:2,consts:[["class","shareSideBar",4,"ngIf"],["class","shareInlineBar d-flex justify-content-center",4,"ngIf"],[1,"shareSideBar"],[1,"lead"],[1,"fab","fa-facebook-square"],[1,"fab","fa-twitter-square"],[1,"fab","fa-linkedin"],[1,"shareInlineBar","d-flex","justify-content-center"],[1,"mr-2","d-flex","align-items-center"],["href","#","target","_blank","title","Share on Facebook",1,"fb",3,"click"],[1,"fab","fa-facebook-square","mr-2"],["href","#","target","_blank","title","Share on Twitter",1,"tw",3,"click"],[1,"fab","fa-twitter-square","mr-2"],["href","#","target","_blank","title","Share on LinkedIn",1,"in",3,"click"],[1,"fab","fa-linkedin","mr-2"]],template:function(t,e){1&t&&(ra(0,iC,9,0,"div",0),ra(1,sC,9,1,"div",1)),2&t&&(oa("ngIf",!e.inlineButtons),ps(1),oa("ngIf",e.inlineButtons))},directives:[Td],styles:[".shareInlineBar[_ngcontent-%COMP%]{transition:all .1s ease-in-out}.shareInlineBar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:1.6rem}.shareInlineBar[_ngcontent-%COMP%] .fb[_ngcontent-%COMP%]{color:#3b5998}.shareInlineBar[_ngcontent-%COMP%] .fb[_ngcontent-%COMP%]:hover{text-shadow:2px 2px 1rem #000}.shareInlineBar[_ngcontent-%COMP%] .tw[_ngcontent-%COMP%]{color:#00acee}.shareInlineBar[_ngcontent-%COMP%] .tw[_ngcontent-%COMP%]:hover{text-shadow:2px 2px 1rem #000}.shareInlineBar[_ngcontent-%COMP%] .in[_ngcontent-%COMP%]{color:#0e76a8}.shareInlineBar[_ngcontent-%COMP%] .in[_ngcontent-%COMP%]:hover{text-shadow:2px 2px 1rem #000}.shareInlineBar[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{color:#a83f0e}.shareInlineBar[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]:hover{text-shadow:2px 2px 1rem #000}.shareSideBar[_ngcontent-%COMP%]{position:absolute;z-index:1000;top:40%;margin:auto;left:0;font-size:2rem;background:#0a85ff;color:#fff;border-radius:0 .5rem .5rem 0;width:.4rem;overflow:hidden;box-shadow:0 0 .3rem .2rem rgba(0,0,0,.2)!important;transition:all .2s ease-in-out}.shareSideBar[_ngcontent-%COMP%]:hover{padding:0;width:auto;box-shadow:0 0 .4rem .3rem rgba(0,0,0,.2)!important}.shareSideBar[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{margin-left:.4rem;margin-right:.4rem}"]}),t})();var aC=n("DlQD");const lC=["*"];class cC{}const uC=new Vt("SECURITY_CONTEXT");let hC=(()=>{class t{constructor(t,e,n,r,i){this.platform=t,this.securityContext=e,this.http=n,this.sanitizer=i,this.initialMarkedOptions={renderer:new aC.Renderer},this.options=r}get options(){return this._options}set options(t){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),t)}get renderer(){return this.options.renderer}set renderer(t){this.options.renderer=t}compile(t,e=!1,n=!1,r=this.options){const i=this.trimIndentation(t),s=e?this.decodeHtml(i):i,o=n?this.renderEmoji(s):s,a=Object(aC.parse)(o,r);return this.sanitizer.sanitize(this.securityContext,a)||""}getSource(t){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(t,{responseType:"text"}).pipe(E(e=>this.handleExtension(t,e)))}highlight(t){if(Rd(this.platform)&&"undefined"!=typeof Prism){t||(t=document);const e=t.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(e,t=>t.classList.add("language-none")),Prism.highlightAllUnder(t)}}renderKatex(t,e){if(!Rd(this.platform))return t;if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return t.replace(/\$([^\s][^$]*?[^\s])\$/gm,(t,n)=>katex.renderToString(n,e))}decodeHtml(t){if(!Rd(this.platform))return t;const e=document.createElement("textarea");return e.innerHTML=t,e.value}handleExtension(t,e){const n=t?t.split("?")[0].split(".").splice(-1).join():null;return"md"!==n?"```"+n+"\n"+e+"\n```":e}renderEmoji(t){if(!Rd(this.platform))return t;if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(t)}trimIndentation(t){if(!t)return"";let e;return t.split("\n").map(t=>{let n=e;return t.length>0&&(n=isNaN(n)?t.search(/\S|$/):Math.min(t.search(/\S|$/),n)),isNaN(e)&&(e=n),n?t.substring(n):t}).join("\n")}}return t.\u0275fac=function(e){return new(e||t)(Kt(xu),Kt(uC),Kt(hT,8),Kt(cC,8),Kt(cp))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();var dC=function(t){return t.LineHighlight="line-highlight",t.LineNumbers="line-numbers",t}({});let pC=(()=>{class t{constructor(t,e){this.element=t,this.markdownService=e,this.error=new Qc,this.load=new Qc,this.ready=new Qc,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1}get emoji(){return this._emoji}set emoji(t){this._emoji=this.coerceBooleanProperty(t)}get katex(){return this._katex}set katex(t){this._katex=this.coerceBooleanProperty(t)}get lineHighlight(){return this._lineHighlight}set lineHighlight(t){this._lineHighlight=this.coerceBooleanProperty(t)}get lineNumbers(){return this._lineNumbers}set lineNumbers(t){this._lineNumbers=this.coerceBooleanProperty(t)}ngOnChanges(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){this.data||this.src||this.handleTransclusion()}render(t,e=!1){let n=this.markdownService.compile(t,e,this.emoji);n=this.katex?this.markdownService.renderKatex(n,this.katexOptions):n,this.element.nativeElement.innerHTML=n,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}coerceBooleanProperty(t){return null!=t&&""+t!="false"}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe(t=>{this.render(t),this.load.emit(t)},t=>this.error.emit(t))}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.lineHighlight&&(this.setPluginClass(this.element.nativeElement,dC.LineHighlight),this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset})),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,dC.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(t,e){const n=t.querySelectorAll("pre");for(let r=0;r<n.length;r++){const t=e instanceof Array?e:[e];n.item(r).classList.add(...t)}}setPluginOptions(t,e){const n=t.querySelectorAll("pre");for(let r=0;r<n.length;r++)Object.keys(e).forEach(t=>{const i=e[t];if(i){const e=this.toLispCase(t);n.item(r).setAttribute(e,i.toString())}})}toLispCase(t){const e=t.match(/([A-Z])/g);if(!e)return t;let n=t.toString();for(let r=0,i=e.length;r<i;r++)n=n.replace(new RegExp(e[r]),"-"+e[r].toLowerCase());return"-"===n.slice(0,1)&&(n=n.slice(1)),n}}return t.\u0275fac=function(e){return new(e||t)(sa(lc),sa(hC))},t.\u0275cmp=fe({type:t,selectors:[["markdown"],["","markdown",""]],inputs:{emoji:"emoji",katex:"katex",lineHighlight:"lineHighlight",lineNumbers:"lineNumbers",data:"data",src:"src",katexOptions:"katexOptions",line:"line",lineOffset:"lineOffset",start:"start"},outputs:{error:"error",load:"load",ready:"ready"},features:[je],ngContentSelectors:lC,decls:1,vars:0,template:function(t,e){1&t&&(wa(),Sa(0))},encapsulation:2}),t})(),fC=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[hC,e&&e.loader||[],e&&e.markedOptions||[],{provide:uC,useValue:e&&null!=e.sanitize?e.sanitize:fi.HTML}]}}static forChild(){return{ngModule:t}}}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)}}),t})();function gC(t,e){1&t&&ua(0,"markdown",25),2&t&&oa("data",_a(2).post.data)}function mC(t,e){if(1&t&&(la(0,"div",4),la(1,"div",5),la(2,"div",6),ua(3,"div",7),ua(4,"div",8),la(5,"div",9),la(6,"h1",10),$a(7),ca(),la(8,"h4"),$a(9),ca(),ca(),la(10,"div",11),la(11,"div",12),ua(12,"i",13),$a(13,"Author: "),la(14,"a",14),$a(15,"Yassir KHALDI"),ca(),ca(),la(16,"div",12),ua(17,"i",15),$a(18," Read time:"),la(19,"span",16),$a(20),ca(),ca(),la(21,"div",12),ua(22,"i",17),$a(23),ca(),ca(),la(24,"div",18),la(25,"div"),ua(26,"i",15),$a(27," Read time:"),la(28,"span",19),$a(29),ca(),ca(),la(30,"div"),ua(31,"i",20),$a(32),ca(),la(33,"div"),ua(34,"i",21),$a(35,"Author:"),la(36,"a",14),$a(37,"Yassir KHALDI"),ca(),ca(),ca(),ca(),la(38,"div",22),ua(39,"app-share-buttons",3),ua(40,"hr"),ca(),la(41,"div",23),ra(42,gC,1,1,"markdown",24),ca(),ca(),ca()),2&t){const t=_a();ps(3),oa("ngStyle",t.getStyle()),ps(4),Wa(t.post.title.toUpperCase()),ps(2),Wa(t.post.description),ps(11),za("",t.post.readTimeMin," minutes."),ps(3),za("",t.calculatePostDate()," "),ps(6),za("",t.post.readTimeMin," minutes."),ps(3),Wa(t.calculatePostDate()),ps(7),oa("inlineButtons",!0),ps(3),oa("ngIf",t.post.data)}}let yC=(()=>{class t{constructor(t,e){this.appService=t,this.metaService=e}set postInput(t){t&&(this.post=t,this.metaService.setPageMeta(t))}ngOnInit(){}disable(){return!1}getStyle(){return{backgroundImage:'url("'+this.appService.getImageUrl(this.post.cover)+'"), url("'+this.appService.getImageUrl(this.post.thumbnailUrl)+'")'}}calculatePostDate(){const t=new Date(this.post.creationDateTime);return t.getDate()+" "+t.toLocaleString("default",{month:"long"})+" "+t.getFullYear()}}return t.\u0275fac=function(e){return new(e||t)(sa(zS),sa(rC))},t.\u0275cmp=fe({type:t,selectors:[["app-markdown-post"]],inputs:{postInput:"postInput"},decls:4,vars:2,consts:[["class","md-container my-3",4,"ngIf"],[1,"row","my-1"],[1,"col-12","lead"],["shareText","Share:",3,"inlineButtons"],[1,"md-container","my-3"],[1,"row"],[1,"col-12","postCover","d-flex","align-items-center"],[1,"bgImg",3,"ngStyle"],[1,"color"],[1,"coverBody","fullWidth"],[1,"title"],[1,"coverFooter","fullWidth","d-none","d-md-flex","justify-content-between","px-4"],[1,"d-flex","align-items-center"],[1,"fas","fa-user-edit","mr-2","d-inline-block"],["routerLink","/about",1,"d-inline-block","ml-2"],[1,"fas","fa-clock","d-inline-block","mr-2"],[1,"ml-2",2,"text-decoration","underline"],[1,"far","fa-calendar-alt","mr-2","d-inline-block"],[1,"coverFooter","fullWidth","d-md-none","d-flex","flex-column","px-4","text-center"],[1,"ml-2","d-inline-block",2,"text-decoration","underline"],[1,"far","fa-calendar-alt","mr-2","my-1","d-inline-block"],[1,"fas","fa-user-edit","mr-2","my-1","d-inline-block"],[1,"col-12","text-center","px-4","py-2","lead"],[1,"col-12","md-data-container"],["emoji","","lineNumbers","",3,"data",4,"ngIf"],["emoji","","lineNumbers","",3,"data"]],template:function(t,e){1&t&&(ra(0,mC,43,9,"div",0),la(1,"div",1),la(2,"div",2),ua(3,"app-share-buttons",3),ca(),ca()),2&t&&(oa("ngIf",e.post),ps(3),oa("inlineButtons",!0))},directives:[Td,oC,Ed,Lm,pC],styles:[".md-container[_ngcontent-%COMP%]{width:100%;text-align:justify;cursor:default;transition:all .2s ease-in-out;box-shadow:0 0 .3rem .2rem rgba(0,0,0,.4)!important;border-radius:.6rem;overflow:hidden}.md-container[_ngcontent-%COMP%]:active, .md-container[_ngcontent-%COMP%]:hover{box-shadow:0 0 .4rem .3rem rgba(0,0,0,.4)!important}.postCover[_ngcontent-%COMP%]{min-height:400px;text-align:center;position:relative;word-wrap:break-word}.postCover[_ngcontent-%COMP%] .bgImg[_ngcontent-%COMP%]{background-position:50%,50%;background-repeat:no-repeat,no-repeat;background-size:cover,cover;filter:blur(2px);overflow:hidden;z-index:1}.postCover[_ngcontent-%COMP%] .bgImg[_ngcontent-%COMP%], .postCover[_ngcontent-%COMP%] .color[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;top:0;left:0}.postCover[_ngcontent-%COMP%] .color[_ngcontent-%COMP%]{background-color:hsla(0,0%,100%,.35);z-index:2}.postCover[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:underline}.postCover[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{z-index:3;color:#fff!important;display:block}.postCover[_ngcontent-%COMP%] .fullWidth[_ngcontent-%COMP%]{width:100%}.postCover[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem}.coverBody[_ngcontent-%COMP%]{margin-bottom:4rem}.coverFooter[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;margin-bottom:.5rem;margin-top:.5rem}"]}),t})();function bC(t,e){1&t&&(la(0,"div",1),la(1,"div",2),la(2,"div",3),la(3,"h1",4),$a(4,"ALL POSTS"),ca(),ca(),ca(),ua(5,"app-post-thumbnails",5),ca()),2&t&&(ps(5),oa("columns",3))}function _C(t,e){if(1&t&&(la(0,"div",1),ua(1,"app-markdown-post",6),ca()),2&t){const t=_a();ps(1),oa("postInput",t.currentPost)}}let vC=(()=>{class t{constructor(t,e){this.route=t,this.postsRepo=e,this.linkParam="link",this.routeSubs=new h,this.currentPost=new US,this.link=""}ngOnInit(){this.routeSubs=this.route.params.subscribe(t=>{this.link="/posts/"+t[this.linkParam],this.feedPosts()})}ngOnDestroy(){this.routeSubs.unsubscribe()}isEmpty(){return""===this.route.snapshot.params[this.linkParam]}feedPosts(){return ay(this,void 0,void 0,function*(){this.currentPost=yield this.postsRepo.getPostByLink(this.link)})}}return t.\u0275fac=function(e){return new(e||t)(sa(vg),sa(AT))},t.\u0275cmp=fe({type:t,selectors:[["app-posts"]],decls:2,vars:2,consts:[["class","container-fluid",4,"ngIf"],[1,"container-fluid"],[1,"row","px-3","py-3","text-center"],[1,"col-md-12"],[1,"hhr"],[3,"columns"],[3,"postInput"]],template:function(t,e){1&t&&(ra(0,bC,6,1,"div",0),ra(1,_C,2,1,"div",0)),2&t&&(oa("ngIf",e.isEmpty()),ps(1),oa("ngIf",!e.isEmpty()))},directives:[Td,eC,yC],styles:[""]}),t})(),wC=(()=>{class t{constructor(t,e){this.renderer=t,this.document=e}ngOnInit(){const t=this.document.getElementById("pageNotFound"),e=this.document.getElementById("floor");this.renderer.addClass(t,"show"),this.renderer.addClass(e,"hide")}}return t.\u0275fac=function(e){return new(e||t)(sa(dc),sa(yh))},t.\u0275cmp=fe({type:t,selectors:[["app-page-not-found"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})(),SC=(()=>{class t extends kT{constructor(t,e){super(t,"https://ky-pages.firebaseio.com/users/:id:.json",e),this.http=t,this.appService=e}}return t.\u0275fac=function(e){return new(e||t)(Kt(hT),Kt(zS))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),TC=(()=>{class t{constructor(){this.maxThreshold=200}pushToArray(t,e){let n=[];const r=localStorage.getItem(t);r&&(n=JSON.parse(r)),n.push(e),n.length>this.maxThreshold&&(n=n.slice(n.length-this.maxThreshold,n.length+1)),localStorage.setItem(t,JSON.stringify(n))}getArray(t){const e=localStorage.getItem(t);return e?JSON.parse(e):[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),CC=(()=>{class t{constructor(t){this.sanitizer=t}transform(t){return null!=t?this.sanitizer.bypassSecurityTrustUrl(t):""}}return t.\u0275fac=function(e){return new(e||t)(sa(cp))},t.\u0275pipe=we({name:"safeUrl",type:t,pure:!0}),t})();function xC(t,e){if(1&t){const t=pa();la(0,"div",31),la(1,"input",32),ma("ngModelChange",function(e){return fn(t),_a(2).currentPost.title=e}),ca(),ca()}if(2&t){const t=_a(2);ps(1),oa("ngModel",t.currentPost.title)}}function EC(t,e){if(1&t&&(la(0,"div",33),$a(1),ca()),2&t){const t=_a(2);ps(1),Wa(t.currentPost.title)}}function kC(t,e){if(1&t){const t=pa();la(0,"div",31),la(1,"input",32),ma("ngModelChange",function(e){return fn(t),_a(2).currentPost.description=e}),ca(),ca()}if(2&t){const t=_a(2);ps(1),oa("ngModel",t.currentPost.description)}}function AC(t,e){if(1&t&&(la(0,"div",33),$a(1),ca()),2&t){const t=_a(2);ps(1),Wa(t.currentPost.description)}}function PC(t,e){if(1&t){const t=pa();la(0,"div",31),la(1,"input",32),ma("ngModelChange",function(e){return fn(t),_a(2).currentPost.tags=e}),ca(),ca()}if(2&t){const t=_a(2);ps(1),oa("ngModel",t.currentPost.tags)}}function MC(t,e){if(1&t&&(la(0,"div",34),$a(1),ca()),2&t){const t=_a(2);ps(1),Wa(t.currentPost.tags)}}function OC(t,e){if(1&t){const t=pa();la(0,"div",31),la(1,"input",32),ma("ngModelChange",function(e){return fn(t),_a(2).currentPost.thumbnailUrl=e}),ca(),ca()}if(2&t){const t=_a(2);ps(1),oa("ngModel",t.currentPost.thumbnailUrl)}}function IC(t,e){if(1&t&&(ua(0,"img",35),Xc(1,"safeUrl")),2&t){const t=_a(2);oa("src",Kc(1,1,t.appService.getImageUrl(t.currentPost.thumbnailUrl)),mi)}}function DC(t,e){if(1&t){const t=pa();la(0,"div",31),la(1,"input",32),ma("ngModelChange",function(e){return fn(t),_a(2).currentPost.cover=e}),ca(),ca()}if(2&t){const t=_a(2);ps(1),oa("ngModel",t.currentPost.cover)}}function RC(t,e){if(1&t&&(ua(0,"img",35),Xc(1,"safeUrl")),2&t){const t=_a(2);oa("src",Kc(1,1,t.appService.getImageUrl(t.currentPost.cover)),mi)}}function NC(t,e){if(1&t){const t=pa();la(0,"div",36),la(1,"textarea",37),ma("ngModelChange",function(e){return fn(t),_a(2).currentPost.data=e}),ca(),ca()}if(2&t){const t=_a(2);ps(1),oa("ngModel",t.currentPost.data)}}function HC(t,e){1&t&&ua(0,"app-markdown-post",38),2&t&&oa("postInput",_a(2).currentPost)}function FC(t,e){if(1&t){const t=pa();la(0,"div",2),ma("selectstart",function(e){return fn(t),_a().enable(e)})("copy",function(e){return fn(t),_a().enable(e)})("paste",function(e){return fn(t),_a().enable(e)})("cut",function(e){return fn(t),_a().enable(e)})("drag",function(e){return fn(t),_a().enable(e)})("drop",function(e){return fn(t),_a().enable(e)})("select",function(e){return fn(t),_a().enable(e)})("contextmenu",function(e){return fn(t),_a().enable(e)}),la(1,"div",3),la(2,"div",4),la(3,"h1",5),$a(4,"Create a new post"),ca(),ca(),la(5,"div",6),la(6,"button",7),ma("click",function(){return fn(t),_a().togglePreview()}),$a(7,"Preview"),ca(),la(8,"button",8),ma("click",function(){return fn(t),_a().addPost()}),$a(9,"Submit"),ca(),la(10,"button",9),ma("click",function(){return fn(t),_a().clearPost()}),$a(11,"Clear"),ca(),la(12,"button",10),ma("click",function(){fn(t);const e=_a(),n=ia(2);return e.showHistory(n)}),$a(13,"History"),ca(),ca(),la(14,"div",11),la(15,"div",12),la(16,"input",13),ma("ngModelChange",function(e){return fn(t),_a().autosaveBoolean=e})("change",function(){return fn(t),_a().changeAutoSave()}),ca(),la(17,"label",14),$a(18,"Autosave"),ca(),ca(),la(19,"div",15),la(20,"label",16),$a(21,"Interval (seconds)"),ca(),la(22,"input",17),ma("ngModelChange",function(e){return fn(t),_a().interval=e})("change",function(){return fn(t),_a().changeAutoSave()}),ca(),ca(),ca(),ca(),ua(23,"hr"),la(24,"div",3),la(25,"div",18),la(26,"div",19),la(27,"p",20),$a(28,"Title:"),ca(),ca(),ra(29,xC,2,1,"div",21),ra(30,EC,2,1,"div",22),ca(),ca(),ua(31,"hr"),la(32,"div",3),la(33,"div",18),la(34,"div",19),la(35,"p",20),$a(36,"Description:"),ca(),ca(),ra(37,kC,2,1,"div",21),ra(38,AC,2,1,"div",22),ca(),ca(),ua(39,"hr"),la(40,"div",3),la(41,"div",18),la(42,"div",19),la(43,"p",23),$a(44,"Tags "),la(45,"small"),$a(46,"(;)"),ca(),$a(47," :"),ca(),ca(),ra(48,PC,2,1,"div",21),ra(49,MC,2,1,"div",24),ca(),ca(),ua(50,"hr"),la(51,"div",3),la(52,"div",18),la(53,"div",19),la(54,"p",25),$a(55,"Thumbnail url:"),ca(),ca(),ra(56,OC,2,1,"div",21),la(57,"div"),ra(58,IC,2,3,"img",26),ca(),ca(),ca(),ua(59,"hr"),la(60,"div",3),la(61,"div",18),la(62,"div",19),la(63,"p",25),$a(64,"Cover (500x1140px):"),ca(),ca(),ra(65,DC,2,1,"div",21),la(66,"div"),ra(67,RC,2,3,"img",26),ca(),ca(),ca(),ua(68,"hr"),la(69,"div",3),la(70,"div",27),la(71,"p",28),$a(72,"Write your content in markdown:"),ca(),ca(),ra(73,NC,2,1,"div",29),ua(74,"div"),ca(),ra(75,HC,1,1,"app-markdown-post",30),ca()}if(2&t){const t=_a();ps(16),oa("checked",t.autosaveBoolean)("ngModel",t.autosaveBoolean),ps(6),oa("ngModel",t.interval),ps(7),oa("ngIf",!t.preview),ps(1),oa("ngIf",t.preview),ps(7),oa("ngIf",!t.preview),ps(1),oa("ngIf",t.preview),ps(10),oa("ngIf",!t.preview),ps(1),oa("ngIf",t.preview),ps(7),oa("ngIf",!t.preview),ps(2),oa("ngIf",t.preview),ps(7),oa("ngIf",!t.preview),ps(2),oa("ngIf",t.preview),ps(6),oa("ngIf",!t.preview),ps(2),oa("ngIf",t.preview)}}function VC(t,e){if(1&t){const t=pa();la(0,"div",48),la(1,"div",49,50),ma("click",function(){fn(t);const e=ia(2);return _a(2).activate(e)}),la(3,"h5"),$a(4),ca(),la(5,"p"),$a(6),ca(),ca(),ca()}if(2&t){const t=e.$implicit;ps(4),Wa(t.title),ps(2),Wa(t.description)}}function GC(t,e){if(1&t&&(la(0,"div",39),la(1,"h4",40),$a(2,"Posts History"),ca(),la(3,"button",41),ma("click",function(){return e.$implicit.dismiss("Cross click")}),la(4,"span",42),$a(5,"\xd7"),ca(),ca(),ca(),la(6,"div",43),la(7,"div",44),la(8,"div",3),ra(9,VC,7,2,"div",45),ca(),ca(),ca(),la(10,"div",46),la(11,"button",47),$a(12,"Save"),ca(),ca()),2&t){const t=_a();ps(9),oa("ngForOf",t.getBlogPosts())}}function LC(t,e){if(1&t&&(la(0,"div",24),la(1,"div",25),la(2,"div",26),$a(3),ca(),la(4,"div",27),$a(5),ca(),ca(),ca()),2&t){const t=e.$implicit,n=_a();oa("ngbTooltip",n.getTooltip(t)),ps(2),oa("ngStyle",n.getGaugeTitleWidth()),ps(1),Wa(t.name),ps(1),oa("ngStyle",n.getGaugeWidth(t.value)),ps(1),Wa(t.value+"%")}}const BC=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:nC},{path:"posts",redirectTo:"posts/",pathMatch:"full"},{path:"posts/:link",component:vC},{path:"md",component:(()=>{class t{constructor(t,e,n,r,i,s,o){this.changeDetector=t,this.appService=e,this.postsRepository=n,this.modalService=r,this.renderer=i,this.security=s,this.localStorageService=o,this.MD_EDITOR_POST_HISTORY_KEY="MD_EDITOR_POST_HISTORY",this.preview=!1,this.html=!1,this.currentPost=new US,this.previouslySavedPost=new US,this.allow=!1,this.autosaveBoolean=!0,this.interval=60,this.autosaveSubscriber=new h}ngOnInit(){"yasslima"===prompt("Password:","Password")&&(this.allow=!0,this.autosaveSubscriber=qS(1e3*this.interval).subscribe(()=>this.autosavePost()))}togglePreview(){this.preview=!this.preview,this.changeDetector.detectChanges()}addPost(){return ay(this,void 0,void 0,function*(){try{this.appService.loadingApp(!0,this.renderer),this.currentPost.link="/posts/"+this.appService.cleanString(this.currentPost.title),this.currentPost.creationDateTime=(new Date).getTime(),this.calculateReadingTime(),yield this.postsRepository.create(this.currentPost,""),console.log("Post successfully added"),this.appService.loadingApp(!1,this.renderer)}catch(t){console.log("Error while adding post: ",t),this.appService.loadingApp(!1,this.renderer)}this.preview=!0,this.togglePreview()})}enable(t){return t.stopImmediatePropagation(),!0}changeAutoSave(){this.autosaveBoolean?(this.autosaveSubscriber.unsubscribe(),this.autosaveSubscriber=qS(1e3*this.interval).subscribe(()=>this.autosavePost())):this.autosaveSubscriber.unsubscribe()}autosavePost(){this.currentPost.isEmpty()||this.appService.equalsObjects(this.currentPost,this.previouslySavedPost)||(this.localStorageService.pushToArray(this.MD_EDITOR_POST_HISTORY_KEY,this.currentPost),this.previouslySavedPost=this.appService.getClone(this.currentPost))}ngOnDestroy(){this.autosaveSubscriber.unsubscribe()}clearPost(){this.currentPost=new US}getBlogPosts(){return this.localStorageService.getArray(this.MD_EDITOR_POST_HISTORY_KEY)}showHistory(t){this.modalService.open(t,{scrollable:!0,centered:!0,size:"xl"})}activate(t){this.renderer.addClass(t,"active")}calculateReadingTime(){const t=this.currentPost.data.split(/\s/g).length;this.currentPost.readTimeMin=Math.ceil(t/200)}}return t.\u0275fac=function(e){return new(e||t)(sa(wo),sa(zS),sa(AT),sa($w),sa(dc),sa(SC),sa(TC))},t.\u0275cmp=fe({type:t,selectors:[["app-markdown-editor"]],decls:3,vars:1,consts:[["class","container p-5 mb-5",3,"selectstart","copy","paste","cut","drag","drop","select","contextmenu",4,"ngIf"],["historyPosts",""],[1,"container","p-5","mb-5",3,"selectstart","copy","paste","cut","drag","drop","select","contextmenu"],[1,"row"],[1,"col-md-6","d-flex","justify-content-start","align-items-center"],[1,"my-0"],[1,"col-md-6","d-flex","justify-content-end","align-items-center"],["type","button",1,"btn","btn-sm","btn-success","mr-2",3,"click"],["type","button",1,"btn","btn-sm","btn-primary","mr-2",3,"click"],["type","button",1,"btn","btn-sm","btn-dark","mr-2",3,"click"],["type","button",1,"btn","btn-sm","btn-secondary","mr-2",3,"click"],[1,"col-md-12","d-flex","justify-content-around"],[1,"custom-control","custom-switch","mr-3"],["type","checkbox","id","md-autosave",1,"custom-control-input",3,"checked","ngModel","ngModelChange","change"],["for","md-autosave",1,"custom-control-label"],[1,"form-group"],["for","md-interval",1,"d-inline-block","mr-2"],["type","number","id","md-interval",1,"form-control","d-inline-block",2,"width","70px","height","2rem",3,"ngModel","ngModelChange","change"],[1,"col-md-12","m-0","form-group","d-flex","align-items-center"],[1,"col-md-2","text-left"],[1,"m-0","lead"],["class","flex-grow-1",4,"ngIf"],["class","flex-grow-1 h3 text-left",4,"ngIf"],[1,"lead","m-0","mr-2","d-inline-block"],["class","flex-grow-1 h6 text-left mb-0",4,"ngIf"],[1,"lead","m-0"],["alt","img","class","img-fluid img-thumbnail rounded","style","max-height: 10rem",3,"src",4,"ngIf"],[1,"col-12","text-left","ml-3"],[1,"lead"],["class","col-12 form-group",4,"ngIf"],[3,"postInput",4,"ngIf"],[1,"flex-grow-1"],["type","text",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],[1,"flex-grow-1","h3","text-left"],[1,"flex-grow-1","h6","text-left","mb-0"],["alt","img",1,"img-fluid","img-thumbnail","rounded",2,"max-height","10rem",3,"src"],[1,"col-12","form-group"],["rows","10",1,"form-control","form-control-sm",3,"ngModel","ngModelChange"],[3,"postInput"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"container-fluid"],["class","col-md-4",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-success"],[1,"col-md-4"],[1,"card","p-1","bg-light","history-cont","m-1",3,"click"],["postCont",""]],template:function(t,e){1&t&&(ra(0,FC,76,15,"div",0),ra(1,GC,13,1,"ng-template",null,1,bu)),2&t&&oa("ngIf",e.allow)},directives:[Td,Wy,pb,qb,Ab,Xy,yC,wd],pipes:[CC],styles:[".history-cont[_ngcontent-%COMP%]{height:100px;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:all .2s ease-out}.history-cont.active[_ngcontent-%COMP%], .history-cont[_ngcontent-%COMP%]:hover{box-shadow:0 0 .3rem .3rem rgba(0,0,0,.2)!important}.history-cont[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;padding-top:.3rem;padding-bottom:.3rem}"]}),t})()},{path:"about",component:(()=>{class t{constructor(t){this.appService=t,this.age=this.getAge("1995/01/01"),this.codingYears=[],this.subscriptions=[],this.data=[{name:"Html/Sass",value:90},{name:"TypeScript",value:80},{name:"Angular",value:70},{name:"JavaSE/EE",value:70},{name:"Spring Framework",value:60},{name:"C#/.Net",value:30},{name:"MySQL",value:70},{name:"MongoDb",value:50},{name:"NativeScript",value:25},{name:"Firebase",value:30},{name:"Graphic Design",value:60},{name:"UI/UX Design",value:40}]}ngOnInit(){this.updateCodingYears(),this.subscriptions.push(qS(1e3).subscribe(()=>this.updateCodingYears()))}getAge(t){const e=new Date,n=new Date(t);let r=e.getFullYear()-n.getFullYear();const i=e.getMonth()-n.getMonth();return(i<0||0===i&&e.getDate()<n.getDate())&&r--,r}updateCodingYears(){const t=new Date(2015,8,1,8,30,0),e=new Date;this.codingYears=this.appService.diffDate(e,t)}getGaugeWidth(t){return this.appService.isBrowserClient()?{width:(window.screen.width>992?80:65)*t/100+"%"}:{width:80*t/100+"%"}}getTooltip(t){return t.value<=15?"Novice":t.value<=30?"Advanced Beginner":t.value<=60?"Competent":t.value<=80?"Proficient":"Expert"}getGaugeTitleWidth(){return this.appService.isBrowserClient()?window.screen.width>992?{width:"20%"}:{width:"35%"}:{width:"20%"}}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(sa(zS))},t.\u0275cmp=fe({type:t,selectors:[["app-about"]],decls:70,vars:10,consts:[[1,"container-fluid"],[1,"row","px-3","py-3"],[1,"col-md-12"],[1,"hhr"],[1,"row","text-left","box"],[1,"col-md-12","d-md-none","d-block","px-5","py-2"],["alt","Yassir KHALDI",1,"img-fluid","me",3,"src"],[1,"col-md-12","text-md-left","text-center"],["alt","Yassir KHALDI",1,"img-fluid","me","resize","d-none","d-md-block","hvr-float-shadow",3,"src"],[1,"lead","text-muted"],[1,"text-muted"],[1,"bio"],["href","mailto:[email protected]"],[1,"col-md-12","d-flex","flex-wrap","justify-content-around"],[1,"text-center","soft-skill","bg-primary","hvr-icon-hang"],[1,"far","fa-lightbulb","h2","hvr-icon"],[1,"py-0"],[1,"lead","desc"],[1,"text-center","soft-skill","bg-dark","hvr-icon-hang"],[1,"fas","fa-expand-arrows-alt","h2","hvr-icon"],[1,"text-center","soft-skill","bg-info","hvr-icon-hang"],[1,"fas","fa-people-carry","h2","hvr-icon"],[1,"p-0"],["placement","top",3,"ngbTooltip",4,"ngFor","ngForOf"],["placement","top",3,"ngbTooltip"],[1,"progress","my-2"],[1,"progress-bar","gauge-title",3,"ngStyle"],[1,"progress-bar","gauge",3,"ngStyle"]],template:function(t,e){1&t&&(la(0,"div",0),la(1,"div",1),la(2,"div",2),la(3,"h1",3),$a(4,"ABOUT ME"),ca(),ca(),ca(),la(5,"div",4),la(6,"div",2),la(7,"h1",3),$a(8,"Biography"),ca(),ca(),la(9,"div",5),ua(10,"img",6),ca(),la(11,"div",7),ua(12,"img",8),la(13,"h2"),$a(14,"Hello! I'm Yassir."),ca(),la(15,"p",9),$a(16),la(17,"strong"),$a(18,"Full Stack Developer"),ca(),$a(19,", based in Casablanca, Morocco."),ca(),la(20,"p",10),$a(21),ca(),la(22,"div",11),la(23,"p"),$a(24,"I began my professional career at a multinational consulting company, where I was mainly focused on building and maintaining "),la(25,"strong"),la(26,"u"),$a(27,"E-Commerce Solutions"),ca(),ca(),$a(28," for some big brands on the market, and gathered 2 years of expertise in this field. "),ca(),la(29,"p"),$a(30,"Then I switched my area of expertise into the Banking sector, by joining one of the leading companies in this field, where I enjoy building innovative and powerful "),la(31,"strong"),la(32,"u"),$a(33,"Banking Solutions"),ca(),ca(),$a(34," among a great team of consultants. "),ca(),la(35,"p"),$a(36,"If you have a project and looking for a freelancer, send me an "),la(37,"a",12),la(38,"u"),$a(39,"Email"),ca(),ca(),$a(40,". "),ca(),ca(),ca(),ca(),la(41,"div",4),la(42,"div",2),la(43,"h1",3),$a(44,"Soft Skills"),ca(),ca(),la(45,"div",13),la(46,"div",14),ua(47,"i",15),la(48,"h4",16),$a(49,"Problem Solver"),ca(),la(50,"p",17),$a(51,"Every problem has a solution, you just need enough time and resources to find it."),ca(),ca(),la(52,"div",18),ua(53,"i",19),la(54,"h4",16),$a(55,"Adaptable"),ca(),la(56,"p",17),$a(57,"It is not the strongest of the species that survives ... It is the one that is most adaptable to change."),ca(),ca(),la(58,"div",20),ua(59,"i",21),la(60,"h4",22),$a(61,"Collaborator"),ca(),la(62,"p",17),$a(63,"I believe patience, empathy and communication are the keys to succeed in teamwork."),ca(),ca(),ca(),ca(),la(64,"div",4),la(65,"div",2),la(66,"h1",3),$a(67,"Technical Skills"),ca(),ca(),la(68,"div",2),ra(69,LC,6,5,"div",23),ca(),ca(),ca()),2&t&&(ps(10),oa("src",e.appService.getImageUrl("asset_me"),mi),ps(2),oa("src",e.appService.getImageUrl("asset_me"),mi),ps(4),za("I'm a ",e.age," years old "),ps(5),Xa("I have been professionally coding for: ",e.codingYears[0]," years, ",e.codingYears[1]," months, ",e.codingYears[2]," days, ",e.codingYears[3]," hours, ",e.codingYears[4]," minutes and ",e.codingYears[5]," seconds."),ps(48),oa("ngForOf",e.data))},directives:[wd,_S,Ed],styles:[".me[_ngcontent-%COMP%]{box-shadow:0 0 .2rem .2rem rgba(0,0,0,.3)!important;border-radius:50%;transition:all .2s ease-in-out;padding:.4rem}.me.resize[_ngcontent-%COMP%]{shape-outside:circle();float:left;width:200px;margin:1rem 1rem 1rem 0}@media (max-width:500px){.me.resize[_ngcontent-%COMP%]{width:180px;height:180px;margin:.5rem}}.me[_ngcontent-%COMP%]:hover{box-shadow:0 0 .4rem .4rem rgba(0,0,0,.3)!important}.bio[_ngcontent-%COMP%]{text-align:justify}.box[_ngcontent-%COMP%]{box-shadow:0 0 .3rem .3rem rgba(0,0,0,.3)!important;padding:1rem;margin:3rem 1rem;border-radius:.5rem}a[_ngcontent-%COMP%]{font-weight:700}.soft-skill[_ngcontent-%COMP%]{padding:2rem;border-radius:50%;width:300px;height:300px;margin:1rem;color:#fff!important;box-shadow:0 0 .2rem .2rem rgba(0,0,0,.3),inset 0 0 0 .3rem #fff!important;transition:all .2s ease-in-out;opacity:.75}.soft-skill[_ngcontent-%COMP%]:hover{box-shadow:0 0 .4em .4rem rgba(0,0,0,.3),inset 0 0 0 .3rem #fff!important}@media (max-width:500px){.soft-skill[_ngcontent-%COMP%]{width:180px;height:180px;margin:.5rem}}@media (max-width:500px){.soft-skill[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{display:none}}.soft-skill[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:#fff!important;word-break:break-all}.progress[_ngcontent-%COMP%]{font-size:1rem;height:1.6rem;border-radius:.2rem;transition:all .2s ease-in-out;cursor:pointer}.progress[_ngcontent-%COMP%]:hover{transform:scale(1.01);box-shadow:0 2px .1rem 0 rgba(0,0,0,.3)!important}.gauge-title[_ngcontent-%COMP%]{background-color:#0e6b7b!important;text-align:center;text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.gauge[_ngcontent-%COMP%]{background-color:rgba(23,162,184,.75)!important;text-align:center}"]}),t})()},{path:"**",component:wC}];let jC=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Zm.forRoot(BC)],Zm]}),t})(),UC=(()=>{class t extends kT{constructor(t,e){super(t,"https://ky-pages.firebaseio.com/menus/:id:.json",e),this.http=t,this.appService=e}readAll(t){const e=Object.create(null,{readAll:{get:()=>super.readAll}});return ay(this,void 0,void 0,function*(){const n=yield e.readAll.call(this,t);return Promise.resolve(n.sort((t,e)=>t.index>e.index?1:-1))})}}return t.\u0275fac=function(e){return new(e||t)(Kt(hT),Kt(zS))},t.\u0275prov=ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function $C(t,e){if(1&t&&(la(0,"a",14),la(1,"strong"),$a(2),ca(),$a(3),ca()),2&t){const t=_a().$implicit;oa("href",t.link,mi),ps(2),za("",t.title,": "),ps(1),za(" ",t.description,"")}}function WC(t,e){if(1&t&&(la(0,"a",15),la(1,"strong"),ua(2,"i",6),$a(3),ca(),ca()),2&t){const t=_a().$implicit;oa("routerLink",t.link),ps(3),za(" ",t.title,"")}}function zC(t,e){if(1&t&&(la(0,"div",9),ra(1,$C,4,3,"a",12),ra(2,WC,4,2,"a",13),ca()),2&t){const t=e.last;ps(1),oa("ngIf",!t),ps(1),oa("ngIf",t)}}let qC=(()=>{class t{constructor(t,e,n){this.renderer=t,this.postsRepo=e,this.appService=n,this.maxSuggestions=5,this.postSuggestions=[],this.searchedValue=""}ngOnInit(){}searchFocus(t,e,n,r){r?(this.renderer.removeClass(t,"animate__fadeOutDown"),this.renderer.addClass(e,"active"),this.renderer.addClass(t,"active"),this.renderer.addClass(t,"animate__fadeInUp"),this.renderer.addClass(n,"active")):setTimeout(()=>{this.renderer.addClass(t,"animate__fadeOutDown"),this.renderer.removeClass(t,"active"),this.renderer.removeClass(t,"animate__fadeInUp"),this.renderer.removeClass(e,"active"),this.renderer.removeClass(n,"active")},155)}suggest(){return ay(this,void 0,void 0,function*(){this.searchedValue.length>3&&(this.postSuggestions=yield this.postsRepo.getPostsByValue(this.searchedValue,this.maxSuggestions),this.postSuggestions.push(new US("Find more results for: "+this.searchedValue,"","","posts")))})}}return t.\u0275fac=function(e){return new(e||t)(sa(dc),sa(AT),sa(zS))},t.\u0275cmp=fe({type:t,selectors:[["app-search"]],decls:13,vars:2,consts:[[1,"p-0","m-0","search-panel"],[1,"col-12","form-group","text-center","m-0","p-0"],["type","text","placeholder","Search","autocomplete","off",1,"form-control","search",3,"ngModel","focus","focusout","input","ngModelChange"],["search",""],[1,"sr-icon"],["icon",""],[1,"fas","fa-search"],[1,"suggestions","row","animate__animated"],["suggestions",""],[1,"col-md-12"],[1,"text-muted"],["class","col-md-12",4,"ngFor","ngForOf"],["class","suggestion",3,"href",4,"ngIf"],["class","suggestion last",3,"routerLink",4,"ngIf"],[1,"suggestion",3,"href"],[1,"suggestion","last",3,"routerLink"]],template:function(t,e){if(1&t){const t=pa();la(0,"div",0),la(1,"div",1),la(2,"input",2,3),ma("focus",function(){fn(t);const n=ia(8),r=ia(3),i=ia(5);return e.searchFocus(n,r,i,!0)})("focusout",function(){fn(t);const n=ia(8),r=ia(3),i=ia(5);return e.searchFocus(n,r,i,!1)})("input",function(){return e.suggest()})("ngModelChange",function(t){return e.searchedValue=t}),ca(),la(4,"span",4,5),ua(6,"i",6),ca(),ca(),la(7,"div",7,8),la(9,"div",9),la(10,"small",10),$a(11,"Suggestions"),ca(),ca(),ra(12,zC,3,2,"div",11),ca(),ca()}2&t&&(ps(2),oa("ngModel",e.searchedValue),ps(10),oa("ngForOf",e.postSuggestions))},directives:[Xy,pb,qb,wd,Td,Lm],styles:[".search-panel[_ngcontent-%COMP%]{font-size:1rem;position:relative}.search[_ngcontent-%COMP%]{margin:.5rem 0;padding:0;height:1.8rem;border-radius:2rem;width:90%;display:inline-block;text-align:center;transition:width .2s ease-out}.search.active[_ngcontent-%COMP%]{width:100%;outline-style:none;outline-color:transparent;border-color:transparent;box-shadow:0 0 .5rem 0 rgba(0,0,0,.4)!important}.suggestions[_ngcontent-%COMP%]{min-height:2rem;background-color:#fff;z-index:1001;position:absolute;left:0;right:0;margin:auto;border-radius:.8rem;width:100%;transition:all .2s ease-out;opacity:0;text-align:center;padding-top:1rem;padding-bottom:.5rem;visibility:hidden;box-shadow:0 0 .2rem .2rem rgba(0,0,0,.3)!important}.suggestions.active[_ngcontent-%COMP%]{opacity:1;transition:all .6s ease-out;visibility:visible}.suggestion[_ngcontent-%COMP%]{cursor:pointer;padding:.5rem 1rem;margin:auto;width:100%;display:inline-block;border-radius:.6rem;text-decoration:none;transition:all .2s ease-in-out;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-weight:400;text-shadow:none}.suggestion[_ngcontent-%COMP%]:hover{background-color:#d7d7d7;color:inherit}.suggestion.last[_ngcontent-%COMP%]{color:#6485d9}.sr-icon[_ngcontent-%COMP%]{position:absolute;top:26%;right:2.5rem;transition:all .2s ease-out}.sr-icon.active[_ngcontent-%COMP%]{right:.9rem}.sr-icon.active[_ngcontent-%COMP%] .fa-search[_ngcontent-%COMP%]{filter:drop-shadow(0 0 1px rgba(0,0,0,.7));transition:all .2s ease-out}"]}),t})();const XC=["menuDes"],KC=["submenuContainerDes"],QC=["menuMob"],YC=["submenuContainerMob"];function ZC(t,e){if(1&t&&(la(0,"a",15),ua(1,"i",16),$a(2),ca()),2&t){const t=_a(2).$implicit;oa("routerLink",t.url),ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function JC(t,e){if(1&t&&(la(0,"a",17),ua(1,"i",16),$a(2),ca()),2&t){const t=_a(2).$implicit;oa("href",t.url,mi),ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function tx(t,e){if(1&t&&(la(0,"a",18),ua(1,"i",16),$a(2),ca()),2&t){const t=_a(2).$implicit;ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function ex(t,e){if(1&t&&(la(0,"div"),ra(1,ZC,3,3,"a",12),ra(2,JC,3,3,"a",13),ra(3,tx,3,2,"a",14),ca()),2&t){const t=_a().$implicit,e=_a(2);ps(1),oa("ngIf",""!==t.url&&!e.isHrefLink(t.url)),ps(1),oa("ngIf",""!==t.url&&e.isHrefLink(t.url)),ps(1),oa("ngIf",""===t.url)}}function nx(t,e){if(1&t&&(la(0,"a",18),ua(1,"i",16),$a(2),ca()),2&t){const t=_a(2).$implicit;ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function rx(t,e){if(1&t&&(la(0,"a",22),ua(1,"i",16),$a(2),ca()),2&t){const t=_a().$implicit;oa("routerLink",t.url),ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function ix(t,e){if(1&t&&(la(0,"a",23),ua(1,"i",16),$a(2),ca()),2&t){const t=_a().$implicit;oa("href",t.url,mi),ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function sx(t,e){if(1&t&&(la(0,"a",24),ua(1,"i",16),$a(2),ca()),2&t){const t=_a().$implicit;ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function ox(t,e){if(1&t&&(la(0,"div"),ra(1,rx,3,3,"a",19),ra(2,ix,3,3,"a",20),ra(3,sx,3,2,"a",21),ca()),2&t){const t=e.$implicit,n=_a(4);ps(1),oa("ngIf",""!==t.url&&!n.isHrefLink(t.url)),ps(1),oa("ngIf",""!==t.url&&n.isHrefLink(t.url)),ps(1),oa("ngIf",""===t.url)}}function ax(t,e){if(1&t&&(la(0,"div"),ra(1,nx,3,2,"a",14),ra(2,ox,4,3,"div",10),ca()),2&t){const t=_a().$implicit;ps(1),oa("ngIf",""===t.url),ps(1),oa("ngForOf",t.subMenu)}}function lx(t,e){if(1&t&&(la(0,"div"),ra(1,ex,4,3,"div",11),ra(2,ax,3,2,"div",11),ua(3,"hr"),ca()),2&t){const t=e.$implicit;ps(1),oa("ngIf",!t.subMenu),ps(1),oa("ngIf",t.subMenu)}}function cx(t,e){if(1&t){const t=pa();la(0,"div",2,3),ma("click",function(){fn(t);const e=ia(9);return _a().toggleSubMenuClick(e)}),la(2,"div",4),la(3,"a",5),$a(4),ua(5,"i",6),ca(),la(6,"a",7),$a(7),ca(),ca(),la(8,"div",8,9),ra(10,lx,4,2,"div",10),ca(),ca()}if(2&t){const t=_a();ps(4),za("",t.menu.label," "),ps(3),Wa(t.menu.label),ps(3),oa("ngForOf",t.menu.subMenu)}}function ux(t,e){if(1&t&&(la(0,"a",33),$a(1),ua(2,"i",6),ca()),2&t){const t=_a(2);oa("routerLink",t.menu.url),ps(1),za("",t.menu.label," ")}}function hx(t,e){if(1&t&&(la(0,"a",34),$a(1),ua(2,"i",6),ca()),2&t){const t=_a(2);oa("href",t.menu.url,mi),ps(1),Wa(t.menu.label)}}function dx(t,e){if(1&t&&(la(0,"a",5),$a(1),ua(2,"i",6),ca()),2&t){const t=_a(2);ps(1),Wa(t.menu.label)}}function px(t,e){if(1&t&&(la(0,"a",15),ua(1,"i",16),$a(2),ca()),2&t){const t=_a(2).$implicit;oa("routerLink",t.url),ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function fx(t,e){if(1&t&&(la(0,"a",17),ua(1,"i",16),$a(2),ca()),2&t){const t=_a(2).$implicit;oa("href",t.url,mi),ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function gx(t,e){if(1&t&&(la(0,"a",18),ua(1,"i",16),$a(2),ca()),2&t){const t=_a(2).$implicit;ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function mx(t,e){if(1&t&&(la(0,"div"),ra(1,px,3,3,"a",12),ra(2,fx,3,3,"a",13),ra(3,gx,3,2,"a",14),ca()),2&t){const t=_a().$implicit,e=_a(2);ps(1),oa("ngIf",""!==t.url&&!e.isHrefLink(t.url)),ps(1),oa("ngIf",""!==t.url&&e.isHrefLink(t.url)),ps(1),oa("ngIf",""===t.url)}}function yx(t,e){if(1&t&&(la(0,"a",18),ua(1,"i",16),$a(2),ca()),2&t){const t=_a(2).$implicit;ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function bx(t,e){if(1&t&&(la(0,"a",22),ua(1,"i",16),$a(2),ca()),2&t){const t=_a().$implicit;oa("routerLink",t.url),ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function _x(t,e){if(1&t&&(la(0,"a",23),ua(1,"i",16),$a(2),ca()),2&t){const t=_a().$implicit;oa("href",t.url,mi),ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function vx(t,e){if(1&t&&(la(0,"a",24),ua(1,"i",16),$a(2),ca()),2&t){const t=_a().$implicit;ps(1),oa("ngClass",t.faIcon),ps(1),Wa(t.label)}}function wx(t,e){if(1&t&&(la(0,"div"),ra(1,bx,3,3,"a",19),ra(2,_x,3,3,"a",20),ra(3,vx,3,2,"a",21),ca()),2&t){const t=e.$implicit,n=_a(4);ps(1),oa("ngIf",""!==t.url&&!n.isHrefLink(t.url)),ps(1),oa("ngIf",""!==t.url&&n.isHrefLink(t.url)),ps(1),oa("ngIf",""===t.url)}}function Sx(t,e){if(1&t&&(la(0,"div"),ra(1,yx,3,2,"a",14),ra(2,wx,4,3,"div",10),ca()),2&t){const t=_a().$implicit;ps(1),oa("ngIf",""===t.url),ps(1),oa("ngForOf",t.subMenu)}}function Tx(t,e){if(1&t&&(la(0,"div"),ra(1,mx,4,3,"div",11),ra(2,Sx,3,2,"div",11),ua(3,"hr"),ca()),2&t){const t=e.$implicit;ps(1),oa("ngIf",!t.subMenu),ps(1),oa("ngIf",t.subMenu)}}function Cx(t,e){if(1&t){const t=pa();la(0,"div",25,26),ma("mouseover",function(){fn(t);const e=ia(10);return _a().toggleSubMenu(e,!0)})("mouseleave",function(){fn(t);const e=ia(10);return _a().toggleSubMenu(e,!1)}),la(2,"div",4),ra(3,ux,3,2,"a",27),ra(4,hx,3,2,"a",28),ra(5,dx,3,1,"a",29),la(6,"a",7),ua(7,"i",30),$a(8),ca(),ca(),la(9,"div",31,32),ra(11,Tx,4,2,"div",10),ca(),ca()}if(2&t){const t=_a();ps(3),oa("ngIf",""!==t.menu.url&&!t.isHrefLink(t.menu.url)),ps(1),oa("ngIf",""!==t.menu.url&&t.isHrefLink(t.menu.url)),ps(1),oa("ngIf",""===t.menu.url),ps(2),oa("ngClass",t.menu.faIcon),ps(1),Wa(t.menu.label),ps(3),oa("ngForOf",t.menu.subMenu)}}let xx=(()=>{class t{constructor(t,e,n){this.renderer=t,this.appService=e,this.deviceService=n,this.menu=new $S,this.visible=!1,this.console=console}ngAfterViewInit(){this.deskInit(),this.mobileInit()}toggleSubMenu(t,e){e?(this.renderer.removeClass(t,"animate__fadeOutDown"),this.renderer.addClass(t,"active"),this.renderer.addClass(t,"animate__fadeInUp")):setTimeout(()=>{this.renderer.addClass(t,"animate__fadeOutDown"),this.renderer.removeClass(t,"active"),this.renderer.removeClass(t,"animate__fadeInUp")},50)}toggleSubMenuClick(t){this.visible=!this.visible,this.toggleSubMenu(t,this.visible)}isHrefLink(t){return this.appService.regexMatch(/(http|mailto|javascript)/g,t.toLowerCase())}isMobile(){return this.deviceService.isMobile()}deskInit(){!this.isMobile()&&this.menuDes&&this.submenuContainerDes&&(this.renderer.setStyle(this.submenuContainerDes.nativeElement,"left",this.menuDes.nativeElement.offsetLeft+"px"),this.renderer.setStyle(this.submenuContainerDes.nativeElement,"top",this.menuDes.nativeElement.offsetTop+this.menuDes.nativeElement.offsetHeight-10+"px"))}mobileInit(){this.isMobile()&&this.menuMob&&this.submenuContainerMob&&(this.renderer.setStyle(this.submenuContainerMob.nativeElement,"left",this.menuMob.nativeElement.offsetLeft+"px"),this.renderer.setStyle(this.submenuContainerMob.nativeElement,"top",this.menuMob.nativeElement.offsetTop+this.menuMob.nativeElement.offsetHeight-10+"px"))}}return t.\u0275fac=function(e){return new(e||t)(sa(dc),sa(zS),sa(ZT))},t.\u0275cmp=fe({type:t,selectors:[["app-drop-down-menu"]],viewQuery:function(t,e){if(1&t&&(uu(XC,!0),uu(KC,!0),uu(QC,!0),uu(YC,!0)),2&t){let t;lu(t=fu())&&(e.menuDes=t.first),lu(t=fu())&&(e.submenuContainerDes=t.first),lu(t=fu())&&(e.menuMob=t.first),lu(t=fu())&&(e.submenuContainerMob=t.first)}},inputs:{menu:"menu"},decls:2,vars:2,consts:[["class","d-inline-block menu d-flex align-items-center",3,"click",4,"ngIf"],["class","d-inline-block menu d-flex align-items-center",3,"mouseover","mouseleave",4,"ngIf"],[1,"d-inline-block","menu","d-flex","align-items-center",3,"click"],["menuMob",""],[1,"parentMenu"],[1,"mr-3","d-none","d-md-inline-block"],[1,"ml-1","fas","fa-angle-down"],[1,"m-0","d-md-none","d-inline-block"],[1,"submenus","animate__animated","scrollbar-primary","text-left"],["submenuContainerMob",""],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","submenu",3,"routerLink",4,"ngIf"],["class","submenu","target","_blank",3,"href",4,"ngIf"],["class","submenu",4,"ngIf"],[1,"submenu",3,"routerLink"],[1,"mr-2",3,"ngClass"],["target","_blank",1,"submenu",3,"href"],[1,"submenu"],["class","submenu2",3,"routerLink",4,"ngIf"],["class","submenu2","target","_blank",3,"href",4,"ngIf"],["class","submenu2",4,"ngIf"],[1,"submenu2",3,"routerLink"],["target","_blank",1,"submenu2",3,"href"],[1,"submenu2"],[1,"d-inline-block","menu","d-flex","align-items-center",3,"mouseover","mouseleave"],["menuDes",""],["class","mr-3 d-none d-md-inline-block",3,"routerLink",4,"ngIf"],["target","_blank","class","mr-3 d-none d-md-inline-block",3,"href",4,"ngIf"],["class","mr-3 d-none d-md-inline-block",4,"ngIf"],[1,"mr-1",3,"ngClass"],[1,"submenus","animate__animated","scrollbar-primary"],["submenuContainerDes",""],[1,"mr-3","d-none","d-md-inline-block",3,"routerLink"],["target","_blank",1,"mr-3","d-none","d-md-inline-block",3,"href"]],template:function(t,e){1&t&&(ra(0,cx,11,3,"div",0),ra(1,Cx,12,6,"div",1)),2&t&&(oa("ngIf",e.isMobile()),ps(1),oa("ngIf",!e.isMobile()))},directives:[Td,wd,Lm,_d],styles:[".menu[_ngcontent-%COMP%]{cursor:pointer;height:100%}.submenus[_ngcontent-%COMP%]{background-color:#fff;z-index:1001;position:absolute;margin:.5rem auto auto;border-radius:.5rem;transition:all .2s ease-out;opacity:0;text-align:center;padding-top:.5rem;padding-bottom:0;visibility:hidden;box-shadow:0 0 .2rem .2rem rgba(0,0,0,.3)!important;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;overflow-y:auto;overflow-x:hidden;max-height:80vh}.submenus.active[_ngcontent-%COMP%]{opacity:1;transition:all .6s ease-out;visibility:visible}.submenu[_ngcontent-%COMP%]{cursor:pointer;padding:.2rem .7rem;margin:0 .5rem;border-radius:.4rem;text-decoration:none;transition:all .2s ease-in-out;text-overflow:ellipsis;white-space:nowrap;display:inline-block;overflow:hidden;font-weight:400;text-shadow:none;min-width:10rem;text-align:left}.submenu[_ngcontent-%COMP%]:hover{background-color:#d7d7d7;color:inherit}.submenu2[_ngcontent-%COMP%]{border-radius:0 .6rem .6rem 0;cursor:pointer;padding:.2rem .7rem .2rem .5rem;margin:-.5rem .5rem 0 3rem;text-decoration:none;transition:all .2s ease-in-out;text-overflow:ellipsis;white-space:nowrap;display:inline-block;overflow:hidden;font-weight:400;text-shadow:none;min-width:10rem;border-left:1px solid #7d7d7d;text-align:left!important}.submenu2[_ngcontent-%COMP%]:hover{background-color:#d7d7d7;color:inherit}hr[_ngcontent-%COMP%]{margin:0}"]}),t})();function Ex(t,e){if(1&t&&(ha(0),ua(1,"app-drop-down-menu",7),da()),2&t){const t=_a().$implicit;ps(1),oa("menu",t)}}function kx(t,e){if(1&t&&(ha(0),la(1,"div",8),la(2,"a",9),$a(3),ca(),ca(),da()),2&t){const t=_a().$implicit;ps(2),oa("routerLink",t.url),ps(1),Wa(t.label)}}function Ax(t,e){if(1&t&&(ha(0),ra(1,Ex,2,1,"ng-container",6),ra(2,kx,4,2,"ng-container",6),da()),2&t){const t=e.$implicit,n=_a();ps(1),oa("ngIf",n.hasSubmenu(t)),ps(1),oa("ngIf",!n.hasSubmenu(t))}}function Px(t,e){if(1&t&&(ha(0),ua(1,"app-drop-down-menu",7),da()),2&t){const t=_a().$implicit;ps(1),oa("menu",t)}}function Mx(t,e){if(1&t&&(ha(0),ra(1,Px,2,1,"ng-container",6),da()),2&t){const t=e.$implicit,n=_a();ps(1),oa("ngIf",n.hasSubmenu(t))}}let Ox=(()=>{class t{constructor(t){this.menusRepo=t}ngOnInit(){this.menusLg=this.menusRepo.readAll("/nav-lg"),this.menusSm=this.menusRepo.readAll("/nav-sm")}hasSubmenu(t){return t.subMenu&&t.subMenu.length>0}}return t.\u0275fac=function(e){return new(e||t)(sa(UC))},t.\u0275cmp=fe({type:t,selectors:[["app-header"]],decls:10,vars:6,consts:[[1,"container-fluid","contact"],[1,"row","bg-light"],[1,"col-8","m-0","px-2","py-0","d-none","d-md-flex","align-items-stretch"],[4,"ngFor","ngForOf"],[1,"col-2","m-0","px-2","py-0","d-flex","d-md-none","align-items-stretch"],[1,"col-10","col-md-4","p-0","m-0","px-2"],[4,"ngIf"],[3,"menu"],[1,"d-flex","align-items-center"],[1,"mr-3",3,"routerLink"]],template:function(t,e){1&t&&(la(0,"div",0),la(1,"div",1),la(2,"div",2),ra(3,Ax,3,2,"ng-container",3),Xc(4,"async"),ca(),la(5,"div",4),ra(6,Mx,2,1,"ng-container",3),Xc(7,"async"),ca(),la(8,"div",5),ua(9,"app-search"),ca(),ca(),ca()),2&t&&(ps(3),oa("ngForOf",Kc(4,2,e.menusLg)),ps(3),oa("ngForOf",Kc(7,4,e.menusSm)))},directives:[wd,qC,Td,xx,Lm],pipes:[Id],styles:[".contact[_ngcontent-%COMP%]{box-shadow:0 .2rem .3rem -.1rem rgba(0,0,0,.4)!important;z-index:1000}.contact[_ngcontent-%COMP%], .stretch[_ngcontent-%COMP%]{top:0;position:absolute}.stretch[_ngcontent-%COMP%]{width:100%;height:100%}"]}),t})(),Ix=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-body"]],decls:2,vars:0,consts:[[1,"text-center","blog-container","scrollbar-primary","py-5"]],template:function(t,e){1&t&&(la(0,"div",0),ua(1,"router-outlet"),ca())},directives:[jm],styles:[".blog-container[_ngcontent-%COMP%]{height:100vh;overflow-y:scroll;overflow-x:hidden}"]}),t})(),Dx=(()=>{class t{constructor(){this.year=(new Date).getFullYear()}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-footer"]],decls:14,vars:1,consts:[[1,"container-fluid","footer"],[1,"row","text-center"],[1,"col-md-4","text-center","text-md-left"],["href","javascript:void(0)",1,"mr-1"],["href","javascript:void(0)",1,"ml-1"],[1,"d-none","d-md-inline","col-md-4"],[1,"fas","fa-heart","text-danger"],[1,"col-md-4","text-center","text-md-right"]],template:function(t,e){1&t&&(la(0,"div",0),la(1,"div",1),la(2,"div",2),la(3,"a",3),$a(4,"Privacy Policy"),ca(),$a(5,"| "),la(6,"a",4),$a(7,"User Agreement"),ca(),ca(),la(8,"div",5),$a(9,"With "),ua(10,"i",6),$a(11," by Yassir KHALDI."),ca(),la(12,"div",7),$a(13),ca(),ca(),ca()),2&t&&(ps(13),za("Copyright \xa9 ",e.year,"."))},styles:[".footer[_ngcontent-%COMP%]{background-color:#f8f9fa!important;box-shadow:0 -.2rem .3rem -.1rem rgba(0,0,0,.4)!important;bottom:0;position:absolute}.fa-heart[_ngcontent-%COMP%]{stroke:#000;stroke-width:30px}"]}),t})(),Rx=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.renderer=e,this.menuRepo=n,this.postRepo=r,this.appService=i,this.title="KY-Pages",this.appService.isBrowserClient()&&this.autoForward()}InitializeMenus(){return ay(this,void 0,void 0,function*(){console.log("Delete: ",yield this.menuRepo.deleteAll(""));const t=[new $S(1,"Facebook","fab fa-facebook-square","https://www.facebook.com/YassirKHL"),new $S(2,"GitHub","fab fa-github-square","https://github.com/khaldi-yass"),new $S(3,"LinkedIn","fab fa-linkedin","https://www.linkedin.com/in/khaldiyassir"),new $S(4,"Email","fas fa-envelope-square","mailto:[email protected]")],e=[new $S(1,"Home","fas fa-home","/"),new $S(2,"Posts","fas fa-list","/posts/"),new $S(4,"About","fas fa-info-circle","/about"),new $S(5,"Contact","fas fa-headset","",t)];for(const r of e)yield this.menuRepo.create(r,"/nav-lg");const n=new $S(1,"","fas fa-bars","",e);yield this.menuRepo.create(n,"/nav-sm")})}homePage(){const t=document.getElementById("pageNotFound"),e=document.getElementById("floor");this.renderer.removeClass(t,"show"),this.renderer.removeClass(e,"hide"),this.router.navigateByUrl("/home")}autoForward(){const t=localStorage.getItem("path");t&&(localStorage.removeItem("path"),this.router.navigate([t]))}disable(){return!1}}return t.\u0275fac=function(e){return new(e||t)(sa(Gm),sa(dc),sa(UC),sa(AT),sa(zS))},t.\u0275cmp=fe({type:t,selectors:[["app-root"]],decls:23,vars:0,consts:[[3,"selectstart","copy","paste","cut","drag","drop","select","contextmenu"],["id","loading-screen",1,"spinner-cont","hide"],[1,"fas","fa-circle-notch"],["id","pageNotFound",1,"container-fluid","floor","align-items-center","notFound","d-flex","justify-content-center"],[1,"row","text-center"],[1,"col-12"],[1,"m-0","my-2","font-weight-bolder","display-1"],["routerLink","","ngbTooltip","HomePage","placement","bottom",3,"click"],[1,"col-md-6","offset-md-3"],[1,"m-0","my-2","font-weight-bolder"],[1,"m-0","my-2"],["id","floor",1,"container-fluid","floor","mx-0","my-0","d-flex","align-items-center"],[1,"desk","container","my-2","px-0","rounded-lg","shadow-lg"],[1,"sideDesk","my-2","px-0","rounded-lg","shadow-lg","d-none"]],template:function(t,e){1&t&&(la(0,"div",0),ma("selectstart",function(){return e.disable()})("copy",function(){return e.disable()})("paste",function(){return e.disable()})("cut",function(){return e.disable()})("drag",function(){return e.disable()})("drop",function(){return e.disable()})("select",function(){return e.disable()})("contextmenu",function(){return e.disable()}),la(1,"div",1),la(2,"div"),ua(3,"i",2),ca(),ca(),la(4,"div",3),la(5,"div",4),la(6,"div",5),la(7,"h1",6),la(8,"a",7),ma("click",function(){return e.homePage()}),$a(9,"404"),ca(),ca(),ca(),la(10,"div",8),ua(11,"app-search"),ca(),la(12,"div",5),la(13,"h2",9),$a(14,"Oups! We can't find the page you're looking for."),ca(),la(15,"h4",10),$a(16,"Maybe our search engine can help you."),ca(),ca(),ca(),ca(),la(17,"div",11),la(18,"div",12),ua(19,"app-header"),ua(20,"app-body"),ua(21,"app-footer"),ca(),ua(22,"div",13),ca(),ca())},directives:[Lm,_S,qC,Ox,Ix,Dx],styles:[".desk[_ngcontent-%COMP%]{overflow:hidden}.desk[_ngcontent-%COMP%], .sideDesk[_ngcontent-%COMP%]{background-color:#fff;height:calc(100vh - 1rem);position:relative}.sideDesk[_ngcontent-%COMP%]{width:calc(100vw - 1140px);max-width:500px;overflow-x:hidden;display:none}@media (min-width:1250px){.sideDesk[_ngcontent-%COMP%]{display:block}}.floor[_ngcontent-%COMP%]{background:url(https://drive.google.com/uc?export=view&id=1MAxRTP03NbVXVI7ujZLjgqEq9jLnVFCd);min-height:100vh;max-height:100vh;min-width:100vw;max-width:100vw;overflow:hidden}.notFound[_ngcontent-%COMP%]{overflow:auto!important;display:none!important}.notFound[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .notFound[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .notFound[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .notFound[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .notFound[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#fff!important;text-shadow:2px 2px 1rem #000}.notFound.show[_ngcontent-%COMP%]{display:flex!important}.hide[_ngcontent-%COMP%]{display:none!important}.spinner-cont[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;left:0;width:30vw;height:30vh;z-index:10000;margin:auto;display:flex;align-items:center;justify-content:center;border-radius:.4rem;transition:all .2s ease-in-out;font-size:4rem}.spinner-cont[_ngcontent-%COMP%] .fa-circle-notch[_ngcontent-%COMP%]{filter:drop-shadow(0 0 .4rem rgba(0,0,0,.78));transition:all .2s ease-in-out;animation:fa-spinning 1s linear infinite}.spinner-cont[_ngcontent-%COMP%] .fa-circle-notch[_ngcontent-%COMP%]:active, .spinner-cont[_ngcontent-%COMP%] .fa-circle-notch[_ngcontent-%COMP%]:hover{filter:drop-shadow(0 0 .7rem rgba(0,0,0,.78))}@keyframes fa-spinning{to{transform:rotate(1turn)}}"]}),t})();const Nx={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},Hx=new Vt("config");let Fx=(()=>{let t=class{constructor(t){this.config=t,this.count=0,this.config||(this.config={modules:Nx})}getQuill(){return this.count++,this.Quill||1!==this.count||(this.$importPromise=new Promise(t=>{return e=this,void 0,i=function*(){var e,r;const i=yield n.e(12).then(n.t.bind(null,"kzlf",7));this.Quill=i.default?i.default:i,null===(e=this.config.customOptions)||void 0===e||e.forEach(t=>{const e=this.Quill.import(t.import);e.whitelist=t.whitelist,this.Quill.register(e,!0,this.config.suppressGlobalRegisterWarning)}),null===(r=this.config.customModules)||void 0===r||r.forEach(({implementation:t,path:e})=>{this.Quill.register(e,t,this.config.suppressGlobalRegisterWarning)}),t(this.Quill)},new((r=void 0)||(r=Promise))(function(t,n){function s(t){try{a(i.next(t))}catch(e){n(e)}}function o(t){try{a(i.throw(t))}catch(e){n(e)}}function a(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r(function(t){t(n)})).then(s,o)}a((i=i.apply(e,[])).next())});var e,r,i})),this.$importPromise}};return t.\u0275fac=function(e){return new(e||t)(Kt(Hx))},t.\u0275prov=ut({factory:function(){return new t(Kt(Hx))},token:t,providedIn:"root"}),t=function(t,e,n,r){var i,s=arguments.length,o=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,n,o):i(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}([(0,e=rt(Hx),function(t,n){e(t,n,0)})],t),t;var e})();var Vx;let Gx=(()=>{let t=Vx=class{static forRoot(t){return{ngModule:Vx,providers:[{provide:Hx,useValue:t}]}}};return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},providers:[Fx],imports:[[Dd]]}),t})();const Lx=new Vt("HIGHLIGHT_OPTIONS");let Bx=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)}}),t})();class jx{}const Ux="*";function $x(t,e=null){return{type:2,steps:t,options:e}}function Wx(t){return{type:6,styles:t,offset:null}}function zx(t){Promise.resolve(null).then(t)}class qx{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){zx(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Xx{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const i=this.players.length;0==i?zx(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++r==i&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Kx{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Qx extends Kx{constructor(t,e,n,r){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r}}class Yx extends Kx{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Zx extends Kx{constructor(t){super(),this.element=t instanceof lc?t.nativeElement:t}}class Jx extends class extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Qx?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Yx?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Zx?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,n,r,i){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=i}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}{}function tE(){}var eE=function(t){return null==t?tE:function(){return this.querySelector(t)}};function nE(){return[]}var rE=function(t){return null==t?nE:function(){return this.querySelectorAll(t)}},iE=function(t){return function(){return this.matches(t)}},sE=function(t){return new Array(t.length)};function oE(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function aE(t,e,n,r,i,s){for(var o,a=0,l=e.length,c=s.length;a<c;++a)(o=e[a])?(o.__data__=s[a],r[a]=o):n[a]=new oE(t,s[a]);for(;a<l;++a)(o=e[a])&&(i[a]=o)}function lE(t,e,n,r,i,s,o){var a,l,c,u={},h=e.length,d=s.length,p=new Array(h);for(a=0;a<h;++a)(l=e[a])&&(p[a]=c="$"+o.call(l,l.__data__,a,e),c in u?i[a]=l:u[c]=l);for(a=0;a<d;++a)(l=u[c="$"+o.call(t,s[a],a,s)])?(r[a]=l,l.__data__=s[a],u[c]=null):n[a]=new oE(t,s[a]);for(a=0;a<h;++a)(l=e[a])&&u[p[a]]===l&&(i[a]=l)}function cE(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}oE.prototype={constructor:oE,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var uE="http://www.w3.org/1999/xhtml",hE={svg:"http://www.w3.org/2000/svg",xhtml:uE,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},dE=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),hE.hasOwnProperty(e)?{space:hE[e],local:t}:t};function pE(t){return function(){this.removeAttribute(t)}}function fE(t){return function(){this.removeAttributeNS(t.space,t.local)}}function gE(t,e){return function(){this.setAttribute(t,e)}}function mE(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function yE(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function bE(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var _E=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function vE(t){return function(){this.style.removeProperty(t)}}function wE(t,e,n){return function(){this.style.setProperty(t,e,n)}}function SE(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function TE(t,e){return t.style.getPropertyValue(e)||_E(t).getComputedStyle(t,null).getPropertyValue(e)}function CE(t){return function(){delete this[t]}}function xE(t,e){return function(){this[t]=e}}function EE(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function kE(t){return t.trim().split(/^|\s+/)}function AE(t){return t.classList||new PE(t)}function PE(t){this._node=t,this._names=kE(t.getAttribute("class")||"")}function ME(t,e){for(var n=AE(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function OE(t,e){for(var n=AE(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function IE(t){return function(){ME(this,t)}}function DE(t){return function(){OE(this,t)}}function RE(t,e){return function(){(e.apply(this,arguments)?ME:OE)(this,t)}}function NE(){this.textContent=""}function HE(t){return function(){this.textContent=t}}function FE(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function VE(){this.innerHTML=""}function GE(t){return function(){this.innerHTML=t}}function LE(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function BE(){this.nextSibling&&this.parentNode.appendChild(this)}function jE(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function UE(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===uE&&e.documentElement.namespaceURI===uE?e.createElement(t):e.createElementNS(n,t)}}function $E(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}PE.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var WE=function(t){var e=dE(t);return(e.local?$E:UE)(e)};function zE(){return null}function qE(){var t=this.parentNode;t&&t.removeChild(this)}function XE(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function KE(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var QE={},YE=null;function ZE(t,e,n){return t=JE(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function JE(t,e,n){return function(r){var i=YE;YE=r;try{t.call(this,this.__data__,e,n)}finally{YE=i}}}function tk(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function ek(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,s=e.length;r<s;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function nk(t,e,n){var r=QE.hasOwnProperty(t.type)?ZE:JE;return function(i,s,o){var a,l=this.__on,c=r(e,s,o);if(l)for(var u=0,h=l.length;u<h;++u)if((a=l[u]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=c,a.capture=n),void(a.value=e);this.addEventListener(t.type,c,n),a={type:t.type,name:t.name,value:e,listener:c,capture:n},l?l.push(a):this.__on=[a]}}function rk(t,e,n){var r=_E(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function ik(t,e){return function(){return rk(this,t,e)}}function sk(t,e){return function(){return rk(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(QE={mouseenter:"mouseover",mouseleave:"mouseout"}));var ok=[null];function ak(t,e){this._groups=t,this._parents=e}function lk(){return new ak([[document.documentElement]],ok)}ak.prototype=lk.prototype={constructor:ak,select:function(t){"function"!=typeof t&&(t=eE(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s,o,a=e[i],l=a.length,c=r[i]=new Array(l),u=0;u<l;++u)(s=a[u])&&(o=t.call(s,s.__data__,u,a))&&("__data__"in s&&(o.__data__=s.__data__),c[u]=o);return new ak(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=rE(t));for(var e=this._groups,n=e.length,r=[],i=[],s=0;s<n;++s)for(var o,a=e[s],l=a.length,c=0;c<l;++c)(o=a[c])&&(r.push(t.call(o,o.__data__,c,a)),i.push(o));return new ak(r,i)},filter:function(t){"function"!=typeof t&&(t=iE(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s,o=e[i],a=o.length,l=r[i]=[],c=0;c<a;++c)(s=o[c])&&t.call(s,s.__data__,c,o)&&l.push(s);return new ak(r,this._parents)},data:function(t,e){if(!t)return f=new Array(this.size()),u=-1,this.each(function(t){f[++u]=t}),f;var n,r=e?lE:aE,i=this._parents,s=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var o=s.length,a=new Array(o),l=new Array(o),c=new Array(o),u=0;u<o;++u){var h=i[u],d=s[u],p=d.length,f=t.call(h,h&&h.__data__,u,i),g=f.length,m=l[u]=new Array(g),y=a[u]=new Array(g);r(h,d,m,y,c[u]=new Array(p),f,e);for(var b,_,v=0,w=0;v<g;++v)if(b=m[v]){for(v>=w&&(w=v+1);!(_=y[w])&&++w<g;);b._next=_||null}}return(a=new ak(a,i))._enter=l,a._exit=c,a},enter:function(){return new ak(this._enter||this._groups.map(sE),this._parents)},exit:function(){return new ak(this._exit||this._groups.map(sE),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,s=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?s.remove():n(s),r&&i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=Math.min(r,n.length),s=new Array(r),o=0;o<i;++o)for(var a,l=e[o],c=n[o],u=l.length,h=s[o]=new Array(u),d=0;d<u;++d)(a=l[d]||c[d])&&(h[d]=a);for(;o<r;++o)s[o]=e[o];return new ak(s,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],s=i.length-1,o=i[s];--s>=0;)(r=i[s])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=cE);for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var o,a=n[s],l=a.length,c=i[s]=new Array(l),u=0;u<l;++u)(o=a[u])&&(c[u]=o);c.sort(e)}return new ak(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length;i<s;++i){var o=r[i];if(o)return o}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,s=e[n],o=0,a=s.length;o<a;++o)(i=s[o])&&t.call(i,i.__data__,o,s);return this},attr:function(t,e){var n=dE(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?fE:pE:"function"==typeof e?n.local?bE:yE:n.local?mE:gE)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?vE:"function"==typeof e?SE:wE)(t,e,null==n?"":n)):TE(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?CE:"function"==typeof e?EE:xE)(t,e)):this.node()[t]},classed:function(t,e){var n=kE(t+"");if(arguments.length<2){for(var r=AE(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?RE:e?IE:DE)(n,e))},text:function(t){return arguments.length?this.each(null==t?NE:("function"==typeof t?FE:HE)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?VE:("function"==typeof t?LE:GE)(t)):this.node().innerHTML},raise:function(){return this.each(BE)},lower:function(){return this.each(jE)},append:function(t){var e="function"==typeof t?t:WE(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:WE(t),r=null==e?zE:"function"==typeof e?e:eE(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(qE)},clone:function(t){return this.select(t?KE:XE)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,s=tk(t+""),o=s.length;if(!(arguments.length<2)){for(a=e?nk:ek,null==n&&(n=!1),r=0;r<o;++r)this.each(a(s[r],e,n));return this}var a=this.node().__on;if(a)for(var l,c=0,u=a.length;c<u;++c)for(r=0,l=a[c];r<o;++r)if((i=s[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?sk:ik)(t,e))}};var ck=lk,uk={value:function(){}};function hk(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new dk(r)}function dk(t){this._=t}function pk(t,e){return t.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function fk(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function gk(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=uk,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}dk.prototype=hk.prototype={constructor:dk,on:function(t,e){var n,r=this._,i=pk(t+"",r),s=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<o;)if(n=(t=i[s]).type)r[n]=gk(r[n],t.name,e);else if(null==e)for(n in r)r[n]=gk(r[n],t.name,null);return this}for(;++s<o;)if((n=(t=i[s]).type)&&(n=fk(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new dk(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),s=0;s<n;++s)i[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=0,n=(r=this._[t]).length;s<n;++s)r[s].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,s=r.length;i<s;++i)r[i].value.apply(e,n)}};var mk=hk,yk=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function bk(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function _k(){}var vk=.7,wk=1/vk,Sk="\\s*([+-]?\\d+)\\s*",Tk="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ck="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xk=/^#([0-9a-f]{3,8})$/,Ek=new RegExp("^rgb\\("+[Sk,Sk,Sk]+"\\)$"),kk=new RegExp("^rgb\\("+[Ck,Ck,Ck]+"\\)$"),Ak=new RegExp("^rgba\\("+[Sk,Sk,Sk,Tk]+"\\)$"),Pk=new RegExp("^rgba\\("+[Ck,Ck,Ck,Tk]+"\\)$"),Mk=new RegExp("^hsl\\("+[Tk,Ck,Ck]+"\\)$"),Ok=new RegExp("^hsla\\("+[Tk,Ck,Ck,Tk]+"\\)$"),Ik={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Dk(){return this.rgb().formatHex()}function Rk(){return this.rgb().formatRgb()}function Nk(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=xk.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Hk(e):3===n?new Lk(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Fk(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Fk(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ek.exec(t))?new Lk(e[1],e[2],e[3],1):(e=kk.exec(t))?new Lk(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ak.exec(t))?Fk(e[1],e[2],e[3],e[4]):(e=Pk.exec(t))?Fk(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Mk.exec(t))?$k(e[1],e[2]/100,e[3]/100,1):(e=Ok.exec(t))?$k(e[1],e[2]/100,e[3]/100,e[4]):Ik.hasOwnProperty(t)?Hk(Ik[t]):"transparent"===t?new Lk(NaN,NaN,NaN,0):null}function Hk(t){return new Lk(t>>16&255,t>>8&255,255&t,1)}function Fk(t,e,n,r){return r<=0&&(t=e=n=NaN),new Lk(t,e,n,r)}function Vk(t){return t instanceof _k||(t=Nk(t)),t?new Lk((t=t.rgb()).r,t.g,t.b,t.opacity):new Lk}function Gk(t,e,n,r){return 1===arguments.length?Vk(t):new Lk(t,e,n,null==r?1:r)}function Lk(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Bk(){return"#"+Uk(this.r)+Uk(this.g)+Uk(this.b)}function jk(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Uk(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function $k(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new zk(t,e,n,r)}function Wk(t){if(t instanceof zk)return new zk(t.h,t.s,t.l,t.opacity);if(t instanceof _k||(t=Nk(t)),!t)return new zk;if(t instanceof zk)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),s=Math.max(e,n,r),o=NaN,a=s-i,l=(s+i)/2;return a?(o=e===s?(n-r)/a+6*(n<r):n===s?(r-e)/a+2:(e-n)/a+4,a/=l<.5?s+i:2-s-i,o*=60):a=l>0&&l<1?0:o,new zk(o,a,l,t.opacity)}function zk(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function qk(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Xk(t,e,n,r,i){var s=t*t,o=s*t;return((1-3*t+3*s-o)*e+(4-6*s+3*o)*n+(1+3*t+3*s-3*o)*r+o*i)/6}yk(_k,Nk,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Dk,formatHex:Dk,formatHsl:function(){return Wk(this).formatHsl()},formatRgb:Rk,toString:Rk}),yk(Lk,Gk,bk(_k,{brighter:function(t){return t=null==t?wk:Math.pow(wk,t),new Lk(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?vk:Math.pow(vk,t),new Lk(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Bk,formatHex:Bk,formatRgb:jk,toString:jk})),yk(zk,function(t,e,n,r){return 1===arguments.length?Wk(t):new zk(t,e,n,null==r?1:r)},bk(_k,{brighter:function(t){return t=null==t?wk:Math.pow(wk,t),new zk(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?vk:Math.pow(vk,t),new zk(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Lk(qk(t>=240?t-240:t+120,i,r),qk(t,i,r),qk(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Kk=function(t){return function(){return t}};function Qk(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Kk(isNaN(t)?e:t)}var Yk=function t(e){var n=function(t){return 1==(t=+t)?Qk:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Kk(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Gk(t)).r,(e=Gk(e)).r),i=n(t.g,e.g),s=n(t.b,e.b),o=Qk(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=s(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Zk(t){return function(e){var n,r,i=e.length,s=new Array(i),o=new Array(i),a=new Array(i);for(n=0;n<i;++n)r=Gk(e[n]),s[n]=r.r||0,o[n]=r.g||0,a[n]=r.b||0;return s=t(s),o=t(o),a=t(a),r.opacity=1,function(t){return r.r=s(t),r.g=o(t),r.b=a(t),r+""}}}Zk(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],s=t[r+1];return Xk((n-r/e)*e,r>0?t[r-1]:2*i-s,i,s,r<e-1?t[r+2]:2*s-i)}}),Zk(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e);return Xk((n-r/e)*e,t[(r+e-1)%e],t[r%e],t[(r+1)%e],t[(r+2)%e])}});var Jk,tA,eA=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},nA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rA=new RegExp(nA.source,"g"),iA=function(t,e){var n,r,i,s=nA.lastIndex=rA.lastIndex=0,o=-1,a=[],l=[];for(t+="",e+="";(n=nA.exec(t))&&(r=rA.exec(e));)(i=r.index)>s&&(i=e.slice(s,i),a[o]?a[o]+=i:a[++o]=i),(n=n[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,l.push({i:o,x:eA(n,r)})),s=rA.lastIndex;return s<e.length&&(i=e.slice(s),a[o]?a[o]+=i:a[++o]=i),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)a[(n=l[r]).i]=n.x(t);return a.join("")})},sA=0,oA=0,aA=0,lA=0,cA=0,uA=0,hA="object"==typeof performance&&performance.now?performance:Date,dA="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function pA(){return cA||(dA(fA),cA=hA.now()+uA)}function fA(){cA=0}function gA(){this._call=this._time=this._next=null}function mA(t,e,n){var r=new gA;return r.restart(t,e,n),r}function yA(){cA=(lA=hA.now())+uA,sA=oA=0;try{!function(){pA(),++sA;for(var t,e=Jk;e;)(t=cA-e._time)>=0&&e._call.call(null,t),e=e._next;--sA}()}finally{sA=0,function(){for(var t,e,n=Jk,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Jk=e);tA=t,_A(r)}(),cA=0}}function bA(){var t=hA.now(),e=t-lA;e>1e3&&(uA-=e,lA=t)}function _A(t){sA||(oA&&(oA=clearTimeout(oA)),t-cA>24?(t<1/0&&(oA=setTimeout(yA,t-hA.now()-uA)),aA&&(aA=clearInterval(aA))):(aA||(lA=hA.now(),aA=setInterval(bA,1e3)),sA=1,dA(yA)))}gA.prototype=mA.prototype={constructor:gA,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?pA():+n)+(null==e?0:+e),this._next||tA===this||(tA?tA._next=this:Jk=this,tA=this),this._call=t,this._time=n,_A()},stop:function(){this._call&&(this._call=null,this._time=1/0,_A())}};var vA=function(t,e,n){var r=new gA;return r.restart(function(n){r.stop(),t(n+e)},e=null==e?0:+e,n),r},wA=mk("start","end","cancel","interrupt"),SA=[],TA=function(t,e,n,r,i,s){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function s(l){var c,u,h,d;if(1!==n.state)return a();for(c in i)if((d=i[c]).name===n.name){if(3===d.state)return vA(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[c])}if(vA(function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(l))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),c=0,u=-1;c<h;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=d);r.length=u+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1),s=-1,o=r.length;++s<o;)r[s].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=mA(function(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:wA,tween:SA,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})};function CA(t,e){var n=EA(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function xA(t,e){var n=EA(t,e);if(n.state>3)throw new Error("too late; already running");return n}function EA(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var kA,AA,PA,MA,OA=180/Math.PI,IA={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},DA=function(t,e,n,r,i,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*OA,skewX:Math.atan(l)*OA,scaleX:o,scaleY:a}};function RA(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(s,o){var a=[],l=[];return s=t(s),o=t(o),function(t,r,i,s,o,a){if(t!==i||r!==s){var l=o.push("translate(",null,e,null,n);a.push({i:l-4,x:eA(t,i)},{i:l-2,x:eA(r,s)})}else(i||s)&&o.push("translate("+i+e+s+n)}(s.translateX,s.translateY,o.translateX,o.translateY,a,l),function(t,e,n,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:n.push(i(n)+"rotate(",null,r)-2,x:eA(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(s.rotate,o.rotate,a,l),function(t,e,n,s){t!==e?s.push({i:n.push(i(n)+"skewX(",null,r)-2,x:eA(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(s.skewX,o.skewX,a,l),function(t,e,n,r,s,o){if(t!==n||e!==r){var a=s.push(i(s)+"scale(",null,",",null,")");o.push({i:a-4,x:eA(t,n)},{i:a-2,x:eA(e,r)})}else 1===n&&1===r||s.push(i(s)+"scale("+n+","+r+")")}(s.scaleX,s.scaleY,o.scaleX,o.scaleY,a,l),s=o=null,function(t){for(var e,n=-1,r=l.length;++n<r;)a[(e=l[n]).i]=e.x(t);return a.join("")}}}var NA=RA(function(t){return"none"===t?IA:(kA||(kA=document.createElement("DIV"),AA=document.documentElement,PA=document.defaultView),kA.style.transform=t,t=PA.getComputedStyle(AA.appendChild(kA),null).getPropertyValue("transform"),AA.removeChild(kA),t=t.slice(7,-1).split(","),DA(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),HA=RA(function(t){return null==t?IA:(MA||(MA=document.createElementNS("http://www.w3.org/2000/svg","g")),MA.setAttribute("transform",t),(t=MA.transform.baseVal.consolidate())?DA((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):IA)},", ",")",")");function FA(t,e){var n,r;return function(){var i=xA(this,t),s=i.tween;if(s!==n)for(var o=0,a=(r=n=s).length;o<a;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function VA(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var s=xA(this,t),o=s.tween;if(o!==r){i=(r=o).slice();for(var a={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=a;break}l===c&&i.push(a)}s.tween=i}}function GA(t,e,n){var r=t._id;return t.each(function(){var t=xA(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return EA(t,r).value[e]}}var LA=function(t,e){var n;return("number"==typeof e?eA:e instanceof Nk?Yk:(n=Nk(e))?(e=n,Yk):iA)(t,e)};function BA(t){return function(){this.removeAttribute(t)}}function jA(t){return function(){this.removeAttributeNS(t.space,t.local)}}function UA(t,e,n){var r,i,s=n+"";return function(){var o=this.getAttribute(t);return o===s?null:o===r?i:i=e(r=o,n)}}function $A(t,e,n){var r,i,s=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===s?null:o===r?i:i=e(r=o,n)}}function WA(t,e,n){var r,i,s;return function(){var o,a,l=n(this);if(null!=l)return(o=this.getAttribute(t))===(a=l+"")?null:o===r&&a===i?s:(i=a,s=e(r=o,l));this.removeAttribute(t)}}function zA(t,e,n){var r,i,s;return function(){var o,a,l=n(this);if(null!=l)return(o=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:o===r&&a===i?s:(i=a,s=e(r=o,l));this.removeAttributeNS(t.space,t.local)}}function qA(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function XA(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function KA(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&XA(t,i)),n}return i._value=e,i}function QA(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&qA(t,i)),n}return i._value=e,i}function YA(t,e){return function(){CA(this,t).delay=+e.apply(this,arguments)}}function ZA(t,e){return e=+e,function(){CA(this,t).delay=e}}function JA(t,e){return function(){xA(this,t).duration=+e.apply(this,arguments)}}function tP(t,e){return e=+e,function(){xA(this,t).duration=e}}function eP(t,e){if("function"!=typeof e)throw new Error;return function(){xA(this,t).ease=e}}function nP(t,e,n){var r,i,s=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?CA:xA;return function(){var o=s(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(e,n),o.on=i}}var rP=ck.prototype.constructor;function iP(t){return function(){this.style.removeProperty(t)}}function sP(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function oP(t,e,n){var r,i;function s(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&sP(t,s,n)),r}return s._value=e,s}function aP(t){return function(e){this.textContent=t.call(this,e)}}function lP(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&aP(r)),e}return r._value=t,r}var cP=0;function uP(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function hP(){return++cP}var dP=ck.prototype;uP.prototype=(function(t){return ck().transition(t)}).prototype={constructor:uP,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=eE(t));for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o)for(var a,l,c=r[o],u=c.length,h=s[o]=new Array(u),d=0;d<u;++d)(a=c[d])&&(l=t.call(a,a.__data__,d,c))&&("__data__"in a&&(l.__data__=a.__data__),h[d]=l,TA(h[d],e,n,d,h,EA(a,n)));return new uP(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=rE(t));for(var r=this._groups,i=r.length,s=[],o=[],a=0;a<i;++a)for(var l,c=r[a],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var d,p=t.call(l,l.__data__,h,c),f=EA(l,n),g=0,m=p.length;g<m;++g)(d=p[g])&&TA(d,e,n,g,p,f);s.push(p),o.push(l)}return new uP(s,o,e,n)},filter:function(t){"function"!=typeof t&&(t=iE(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s,o=e[i],a=o.length,l=r[i]=[],c=0;c<a;++c)(s=o[c])&&t.call(s,s.__data__,c,o)&&l.push(s);return new uP(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=Math.min(r,n.length),s=new Array(r),o=0;o<i;++o)for(var a,l=e[o],c=n[o],u=l.length,h=s[o]=new Array(u),d=0;d<u;++d)(a=l[d]||c[d])&&(h[d]=a);for(;o<r;++o)s[o]=e[o];return new uP(s,this._parents,this._name,this._id)},selection:function(){return new rP(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=hP(),r=this._groups,i=r.length,s=0;s<i;++s)for(var o,a=r[s],l=a.length,c=0;c<l;++c)if(o=a[c]){var u=EA(o,e);TA(o,t,n,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new uP(r,this._parents,t,n)},call:dP.call,nodes:dP.nodes,node:dP.node,size:dP.size,empty:dP.empty,each:dP.each,on:function(t,e){var n=this._id;return arguments.length<2?EA(this.node(),n).on.on(t):this.each(nP(n,t,e))},attr:function(t,e){var n=dE(t),r="transform"===n?HA:LA;return this.attrTween(t,"function"==typeof e?(n.local?zA:WA)(n,r,GA(this,"attr."+t,e)):null==e?(n.local?jA:BA)(n):(n.local?$A:UA)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=dE(t);return this.tween(n,(r.local?KA:QA)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?NA:LA;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var s=TE(this,t),o=(this.style.removeProperty(t),TE(this,t));return s===o?null:s===n&&o===r?i:i=e(n=s,r=o)}}(t,r)).on("end.style."+t,iP(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,s;return function(){var o=TE(this,t),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=TE(this,t)),o===l?null:o===r&&l===i?s:(i=l,s=e(r=o,a))}}(t,r,GA(this,"style."+t,e))).each(function(t,e){var n,r,i,s,o="style."+e,a="end."+o;return function(){var l=xA(this,t),c=l.on,u=null==l.value[o]?s||(s=iP(e)):void 0;c===n&&i===u||(r=(n=c).copy()).on(a,i=u),l.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,s=n+"";return function(){var o=TE(this,t);return o===s?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,oP(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(GA(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,lP(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=EA(this.node(),n).tween,s=0,o=i.length;s<o;++s)if((r=i[s]).name===t)return r.value;return null}return this.each((null==e?FA:VA)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?YA:ZA)(e,t)):EA(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?JA:tP)(e,t)):EA(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(eP(e,t)):EA(this.node(),e).ease},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(s,o){var a={value:o},l={value:function(){0==--i&&s()}};n.each(function(){var n=xA(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})})}};var pP={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function fP(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return pP.time=pA(),pP;return n}function gP(t){return{type:t}}ck.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var n,r,i,s=t.__transition,o=!0;if(s){for(i in e=null==e?null:e+"",s)(n=s[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete s[i]):o=!1;o&&delete t.__transition}}(this,t)})},ck.prototype.transition=function(t){var e,n;t instanceof uP?(e=t._id,t=t._name):(e=hP(),(n=pP).time=pA(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var o,a=r[s],l=a.length,c=0;c<l;++c)(o=a[c])&&TA(o,t,e,c,a,n||fP(o,e));return new uP(r,this._parents,t,e)},["w","e"].map(gP),["n","s"].map(gP),["n","w","e","s","nw","ne","sw","se"].map(gP);var mP=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},yP=function(t){let e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const s=r+i>>>1;n(t[s],e)<0?r=s+1:i=s}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>mP(t(e),n)}(t)),{left:r,center:function(t,n,i,s){null==i&&(i=0),null==s&&(s=t.length);const o=r(t,n,i,s-1);return o>i&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const s=r+i>>>1;n(t[s],e)>0?i=s:r=s+1}return r}}};Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var bP=new Date,_P=new Date;function vP(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,s){var o,a=[];if(n=i.ceil(n),s=null==s?1:Math.floor(s),!(n<r&&s>0))return a;do{a.push(o=new Date(+n)),e(n,s),t(n)}while(o<n&&n<r);return a},i.filter=function(n){return vP(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return bP.setTime(+e),_P.setTime(+r),t(bP),t(_P),Math.floor(n(bP,_P))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}vP(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}).every=function(t){return isFinite(t=Math.floor(t))&&t>0?vP(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null},vP(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});var wP=1e3,SP=6e4,TP=36e5;function CP(t){return vP(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*SP)/6048e5})}CP(0),CP(1),CP(2),CP(3),CP(4),CP(5),CP(6),vP(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*SP)/864e5,t=>t.getDate()-1),vP(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*wP-t.getMinutes()*SP)},function(t,e){t.setTime(+t+e*TP)},function(t,e){return(e-t)/TP},function(t){return t.getHours()}),vP(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*wP)},function(t,e){t.setTime(+t+e*SP)},function(t,e){return(e-t)/SP},function(t){return t.getMinutes()}),vP(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*wP)},function(t,e){return(e-t)/wP},function(t){return t.getUTCSeconds()});var xP=vP(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});xP.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?vP(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):xP:null};var EP=new Date,kP=new Date;function AP(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,s){var o,a=[];if(n=i.ceil(n),s=null==s?1:Math.floor(s),!(n<r&&s>0))return a;do{a.push(o=new Date(+n)),e(n,s),t(n)}while(o<n&&n<r);return a},i.filter=function(n){return AP(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return EP.setTime(+e),kP.setTime(+r),t(EP),t(kP),Math.floor(n(EP,kP))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var PP=864e5,MP=6048e5;function OP(t){return AP(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/MP})}var IP=OP(0),DP=OP(1),RP=(OP(2),OP(3),OP(4)),NP=(OP(5),OP(6),AP(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/PP},function(t){return t.getUTCDate()-1}));function HP(t){return AP(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/MP})}var FP=HP(0),VP=HP(1),GP=(HP(2),HP(3),HP(4)),LP=(HP(5),HP(6),AP(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/PP},function(t){return t.getDate()-1})),BP=AP(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});BP.every=function(t){return isFinite(t=Math.floor(t))&&t>0?AP(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var jP=BP,UP=AP(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});UP.every=function(t){return isFinite(t=Math.floor(t))&&t>0?AP(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var $P=UP;var WP={"-":"",_:" ",0:"0"},zP=/[\\^$*+?|[\]().{}]/g;function qP(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function XP(t){return t.replace(zP,"\\$&")}function KP(t){return new RegExp("^(?:"+t.map(XP).join("|")+")","i")}function QP(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function YP(t,e){return qP(t.getDate(),e,2)}function ZP(t,e){return qP(t.getHours(),e,2)}function JP(t,e){return qP(t.getHours()%12||12,e,2)}function tM(t,e){return qP(1+LP.count(jP(t),t),e,3)}function eM(t,e){return qP(t.getMilliseconds(),e,3)}function nM(t,e){return eM(t,e)+"000"}function rM(t,e){return qP(t.getMonth()+1,e,2)}function iM(t,e){return qP(t.getMinutes(),e,2)}function sM(t,e){return qP(t.getSeconds(),e,2)}function oM(t){var e=t.getDay();return 0===e?7:e}function aM(t,e){return qP(FP.count(jP(t)-1,t),e,2)}function lM(t){var e=t.getDay();return e>=4||0===e?GP(t):GP.ceil(t)}function cM(t,e){return t=lM(t),qP(GP.count(jP(t),t)+(4===jP(t).getDay()),e,2)}function uM(t){return t.getDay()}function hM(t,e){return qP(VP.count(jP(t)-1,t),e,2)}function dM(t,e){return qP(t.getFullYear()%100,e,2)}function pM(t,e){return qP((t=lM(t)).getFullYear()%100,e,2)}function fM(t,e){return qP(t.getFullYear()%1e4,e,4)}function gM(t,e){var n=t.getDay();return qP((t=n>=4||0===n?GP(t):GP.ceil(t)).getFullYear()%1e4,e,4)}function mM(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+qP(e/60|0,"0",2)+qP(e%60,"0",2)}function yM(t,e){return qP(t.getUTCDate(),e,2)}function bM(t,e){return qP(t.getUTCHours(),e,2)}function _M(t,e){return qP(t.getUTCHours()%12||12,e,2)}function vM(t,e){return qP(1+NP.count($P(t),t),e,3)}function wM(t,e){return qP(t.getUTCMilliseconds(),e,3)}function SM(t,e){return wM(t,e)+"000"}function TM(t,e){return qP(t.getUTCMonth()+1,e,2)}function CM(t,e){return qP(t.getUTCMinutes(),e,2)}function xM(t,e){return qP(t.getUTCSeconds(),e,2)}function EM(t){var e=t.getUTCDay();return 0===e?7:e}function kM(t,e){return qP(IP.count($P(t)-1,t),e,2)}function AM(t){var e=t.getUTCDay();return e>=4||0===e?RP(t):RP.ceil(t)}function PM(t,e){return t=AM(t),qP(RP.count($P(t),t)+(4===$P(t).getUTCDay()),e,2)}function MM(t){return t.getUTCDay()}function OM(t,e){return qP(DP.count($P(t)-1,t),e,2)}function IM(t,e){return qP(t.getUTCFullYear()%100,e,2)}function DM(t,e){return qP((t=AM(t)).getUTCFullYear()%100,e,2)}function RM(t,e){return qP(t.getUTCFullYear()%1e4,e,4)}function NM(t,e){var n=t.getUTCDay();return qP((t=n>=4||0===n?RP(t):RP.ceil(t)).getUTCFullYear()%1e4,e,4)}function HM(){return"+0000"}function FM(){return"%"}function VM(t){return+t}function GM(t){return Math.floor(+t/1e3)}!function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,o=t.shortDays,a=t.months,l=t.shortMonths,c=(KP(i),QP(i),KP(s),QP(s),KP(o),QP(o),KP(a),QP(a),KP(l),QP(l),{a:function(t){return o[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:YP,e:YP,f:nM,g:pM,G:gM,H:ZP,I:JP,j:tM,L:eM,m:rM,M:iM,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:VM,s:GM,S:sM,u:oM,U:aM,V:cM,w:uM,W:hM,x:null,X:null,y:dM,Y:fM,Z:mM,"%":FM}),u={a:function(t){return o[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:yM,e:yM,f:SM,g:DM,G:NM,H:bM,I:_M,j:vM,L:wM,m:TM,M:CM,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:VM,s:GM,S:xM,u:EM,U:kM,V:PM,w:MM,W:OM,x:null,X:null,y:IM,Y:RM,Z:HM,"%":FM};function h(t,e){return function(n){var r,i,s,o=[],a=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++a<c;)37===t.charCodeAt(a)&&(o.push(t.slice(l,a)),null!=(i=WP[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(s=e[r])&&(r=s(n,i)),o.push(r),l=a+1);return o.push(t.slice(l,a)),o.join("")}}c.x=h(n,c),c.X=h(r,c),c.c=h(e,c),u.x=h(n,u),u.X=h(r,u),u.c=h(e,u)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),yP(mP),yP(function(t){return null===t?NaN:+t});var LM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function BM(t){if(!(e=LM.exec(t)))throw new Error("invalid format: "+t);var e;return new jM({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function jM(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}BM.prototype=jM.prototype,jM.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var UM,$M=Array.prototype.map;function WM(t){this._context=t}void 0===(UM={decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}).grouping||void 0===UM.thousands||$M.call(UM.grouping,Number),void 0===UM.numerals||$M.call(UM.numerals,String),Symbol("implicit"),WM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var zM=Math.PI,qM=2*zM,XM=1e-6,KM=qM-XM;function QM(){this._x0=this._y0=this._x1=this._y1=null,this._=""}QM.prototype=(function(){return new QM}).prototype={constructor:QM,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+s)},arcTo:function(t,e,n,r,i){var s=this._x1,o=this._y1,a=(n=+n)-(t=+t),l=(r=+r)-(e=+e),c=s-t,u=o-e,h=c*c+u*u;if((i=+i)<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>XM)if(Math.abs(u*a-l*c)>XM&&i){var d=n-s,p=r-o,f=a*a+l*l,g=d*d+p*p,m=Math.sqrt(f),y=Math.sqrt(h),b=i*Math.tan((zM-Math.acos((f+h-g)/(2*m*y)))/2),_=b/y,v=b/m;Math.abs(_-1)>XM&&(this._+="L"+(t+_*c)+","+(e+_*u)),this._+="A"+i+","+i+",0,0,"+ +(u*d>c*p)+","+(this._x1=t+v*a)+","+(this._y1=e+v*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,s){t=+t,e=+e,s=!!s;var o=(n=+n)*Math.cos(r),a=n*Math.sin(r),l=t+o,c=e+a,u=1^s,h=s?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>XM||Math.abs(this._y1-c)>XM)&&(this._+="L"+l+","+c),n&&(h<0&&(h=h%qM+qM),h>KM?this._+="A"+n+","+n+",0,1,"+u+","+(t-o)+","+(e-a)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>XM&&(this._+="A"+n+","+n+",0,"+ +(h>=zM)+","+u+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var YM=function(){};function ZM(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function JM(t,e){this._context=t,this._k=(1-e)/6}function tO(t,e){this._context=t,this._k=(1-e)/6}function eO(t){this._curve=t}JM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ZM(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ZM(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new JM(t,e)}return n.tension=function(e){return t(+e)},n}(0),tO.prototype={areaStart:YM,areaEnd:YM,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ZM(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new tO(t,e)}return n.tension=function(e){return t(+e)},n}(0),eO.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math;var nO=function(t,e,n,r,i){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(r-e)/t.value;++a<l;)(s=o[a]).y0=n,s.y1=i,s.x0=e,s.x1=e+=s.value*c},rO=function(t,e,n,r,i){for(var s,o=t.children,a=-1,l=o.length,c=t.value&&(i-n)/t.value;++a<l;)(s=o[a]).x0=e,s.x1=r,s.y0=n,s.y1=n+=s.value*c};function iO(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function sO(t,e){var n,r,i,s,o,a=new cO(t),l=+t.value&&(a.value=t.value),c=[a];for(null==e&&(e=oO);n=c.pop();)if(l&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),s=o-1;s>=0;--s)c.push(r=n.children[s]=new cO(i[s])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(lO)}function oO(t){return t.children}function aO(t){t.data=t.data.data}function lO(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function cO(t){this.data=t,this.depth=this.height=0,this.parent=null}!function t(e){function n(t,n,r,i,s){!function(t,e,n,r,i,s){for(var o,a,l,c,u,h,d,p,f,g,m,y=[],b=e.children,_=0,v=0,w=b.length,S=e.value;_<w;){l=i-n,c=s-r;do{u=b[v++].value}while(!u&&v<w);for(h=d=u,m=u*u*(g=Math.max(c/l,l/c)/(S*t)),f=Math.max(d/m,m/h);v<w;++v){if(u+=a=b[v].value,a<h&&(h=a),a>d&&(d=a),m=u*u*g,(p=Math.max(d/m,m/h))>f){u-=a;break}f=p}y.push(o={value:u,dice:l<c,children:b.slice(_,v)}),o.dice?nO(o,n,r,i,S?r+=c*u/S:s):rO(o,n,r,S?n+=l*u/S:i,s),S-=u,_=v}}(e,t,n,r,i,s)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}((1+Math.sqrt(5))/2),cO.prototype=sO.prototype={constructor:cO,count:function(){return this.eachAfter(iO)},each:function(t){var e,n,r,i,s=this,o=[s];do{for(e=o.reverse(),o=[];s=e.pop();)if(t(s),n=s.children)for(r=0,i=n.length;r<i;++r)o.push(n[r])}while(o.length);return this},eachAfter:function(t){for(var e,n,r,i=this,s=[i],o=[];i=s.pop();)if(o.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)s.push(e[n]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return sO(this).eachBefore(aO)}};const uO=["caretElm"];function hO(t,e){}const dO=function(t){return{model:t}};function pO(t,e){if(1&t&&(la(0,"span"),ra(1,hO,0,0,"ng-template",5),ca()),2&t){const t=_a();ps(1),oa("ngTemplateOutlet",t.template)("ngTemplateOutletContext",Wc(2,dO,t.context))}}function fO(t,e){1&t&&ua(0,"span",6),2&t&&oa("innerHTML",_a().title,gi)}let gO=(()=>{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const r of n)t.instance[r]=e.inputs[r]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const r of n)t.instance[r]=e.outputs[r]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const r=this.getComponentRootNode(n),i=new Jx(r,this.componentFactoryResolver,this.applicationRef,this.injector),s=new Qx(t),o=i.attach(s);return this.projectComponentBindings(o,e),o}}return t.\u0275fac=function(e){return new(e||t)(Kt(sh),Kt(ac),Kt(Vo))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function mO(t,e,n){let r,i,s;n=n||{};let o=null,a=0;function l(){a=!1===n.leading?0:+new Date,o=null,s=t.apply(r,i)}return function(){const c=+new Date;a||!1!==n.leading||(a=c);const u=e-(c-a);return r=this,i=arguments,u<=0?(clearTimeout(o),o=null,a=c,s=t.apply(r,i)):o||!1===n.trailing||(o=setTimeout(l,u)),s}}var yO=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function bO(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function _O(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class vO{static calculateVerticalAlignment(t,e,n){let r=bO(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(t,e,n,r){let i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);const s=bO(t,e,r);return s+e.height>window.innerHeight&&(i+=s+e.height-window.innerHeight),i}static calculateHorizontalAlignment(t,e,n){let r=_O(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(t,e,n,r){let i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);const s=_O(t,e,r);return s+e.width>window.innerWidth&&(i+=s+e.width-window.innerWidth),i}static shouldFlip(t,e,n,r){let i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}static positionCaret(t,e,n,r,i){let s=0,o=0;return t===yO.right?(o=-7,s=vO.calculateVerticalCaret(n,e,r,i)):t===yO.left?(o=e.width,s=vO.calculateVerticalCaret(n,e,r,i)):t===yO.top?(s=e.height,o=vO.calculateHorizontalCaret(n,e,r,i)):t===yO.bottom&&(s=-7,o=vO.calculateHorizontalCaret(n,e,r,i)),{top:s,left:o}}static positionContent(t,e,n,r,i){let s=0,o=0;return t===yO.right?(o=n.left+n.width+r,s=vO.calculateVerticalAlignment(n,e,i)):t===yO.left?(o=n.left-e.width-r,s=vO.calculateVerticalAlignment(n,e,i)):t===yO.top?(s=n.top-e.height-r,o=vO.calculateHorizontalAlignment(n,e,i)):t===yO.bottom&&(s=n.top+n.height+r,o=vO.calculateHorizontalAlignment(n,e,i)),{top:s,left:o}}static determinePlacement(t,e,n,r){if(vO.shouldFlip(n,e,t,r)){if(t===yO.right)return yO.left;if(t===yO.left)return yO.right;if(t===yO.top)return yO.bottom;if(t===yO.bottom)return yO.top}return t}}let wO,SO=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,t+=" type-"+this.type,t+=" "+this.cssClass,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:r,left:i}=vO.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",r+"px"),this.renderer.setStyle(t,"left",i+"px")}positionCaret(t,e){const n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),{top:i,left:s}=vO.positionCaret(this.placement,e,t,r,this.alignment);this.renderer.setStyle(n,"top",i+"px"),this.renderer.setStyle(n,"left",s+"px")}checkFlip(t,e){this.placement=vO.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(sa(lc),sa(dc))},t.\u0275cmp=fe({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&uu(uO,!0),2&t){let t;lu(t=fu())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&ma("resize",function(){return e.onWindowResize()},!1,Ve),2&t&&Ia(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&(la(0,"div"),ua(1,"span",0,1),la(3,"div",2),ra(4,pO,2,4,"span",3),ra(5,fO,1,1,"span",4),ca(),ca()),2&t&&(ps(1),Ka("tooltip-caret position-",e.placement,""),oa("hidden",!e.showCaret),ps(3),oa("ngIf",!e.title),ps(1),oa("ngIf",e.title))},directives:[Td,kd],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),function(t,e,n,r){var i,s=arguments.length,o=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,n,o):i(e,n))||o);s>3&&o&&Object.defineProperty(e,n,o)}([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:mO(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t})(),TO=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=SO}}return t.\u0275fac=function(e){return new(e||t)(Kt(gO))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),CO=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd]]}),t})(),xO=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},providers:[gO,TO],imports:[[Dd]]}),t})();"undefined"!=typeof window?wO=window:"undefined"!=typeof global&&(wO=global);let EO=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Dd,CO,xO],Dd,CO,xO]}),t})(),kO=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[EO]]}),t})(),AO=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[EO]]}),t})(),PO=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[EO]]}),t})(),MO=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[EO]]}),t})(),OO=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[EO]]}),t})();Math;let IO=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[EO]]}),t})(),DO=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[EO,IO,OO]]}),t})(),RO=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[EO]]}),t})(),NO=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[EO]]}),t})(),HO=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[EO,IO,AO]]}),t})(),FO=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[EO,kO,AO,PO,MO,OO,DO,RO,IO,NO,HO]}),t})();function VO(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function GO(t){switch(t.length){case 0:return new qx;case 1:return t[0];default:return new Xx(t)}}function LO(t,e,n,r,i={},s={}){const o=[],a=[];let l=-1,c=null;if(r.forEach(t=>{const n=t.offset,r=n==l,u=r&&c||{};Object.keys(t).forEach(n=>{let r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,o),a){case"!":a=i[n];break;case Ux:a=s[n];break;default:a=e.normalizeStyleValue(n,r,a,o)}u[r]=a}),r||a.push(u),c=u,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function BO(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&jO(n,"start",t)));break;case"done":t.onDone(()=>r(n&&jO(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&jO(n,"destroy",t)))}}function jO(t,e,n){const r=n.totalTime,i=UO(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),s=t._data;return null!=s&&(i._data=s),i}function UO(t,e,n,r,i="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function $O(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function WO(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let zO=(t,e)=>!1,qO=(t,e)=>!1,XO=(t,e,n)=>[];const KO=VO();(KO||"undefined"!=typeof Element)&&(zO=(t,e)=>t.contains(e),qO=(()=>{if(KO||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):qO}})(),XO=(t,e,n)=>{let r=[];if(n)r.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&r.push(n)}return r});let QO=null,YO=!1;function ZO(t){QO||(QO=("undefined"!=typeof document?document.body:null)||{},YO=!!QO.style&&"WebkitAppearance"in QO.style);let e=!0;return QO.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in QO.style,!e&&YO)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in QO.style),e}const JO=qO,tI=zO,eI=XO;function nI(t){const e={};return Object.keys(t).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}let rI=(()=>{class t{validateStyleProperty(t){return ZO(t)}matchesElement(t,e){return JO(t,e)}containsElement(t,e){return tI(t,e)}query(t,e,n){return eI(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,i,s=[],o){return new qx(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})(),iI=(()=>{class t{}return t.NOOP=new rI,t})();const sI="ng-enter",oI="ng-leave",aI="ng-trigger",lI=".ng-trigger",cI="ng-animating",uI=".ng-animating";function hI(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:dI(parseFloat(e[1]),e[2])}function dI(t,e){switch(e){case"s":return 1e3*t;default:return t}}function pI(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let r,i=0,s="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=dI(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(i=dI(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else r=t;if(!n){let n=!1,s=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:i,easing:s}}(t,e,n)}function fI(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function gI(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else fI(t,n);return n}function mI(t,e,n){return n?e+":"+n+";":""}function yI(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style.item(n);e+=mI(0,r,t.style.getPropertyValue(r))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=mI(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function bI(t,e,n){t.style&&(Object.keys(e).forEach(r=>{const i=EI(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]}),VO()&&yI(t))}function _I(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=EI(e);t.style[n]=""}),VO()&&yI(t))}function vI(t){return Array.isArray(t)?1==t.length?t[0]:$x(t):t}const wI=new RegExp("{{\\s*(.+?)\\s*}}","g");function SI(t){let e=[];if("string"==typeof t){let n;for(;n=wI.exec(t);)e.push(n[1]);wI.lastIndex=0}return e}function TI(t,e,n){const r=t.toString(),i=r.replace(wI,(t,r)=>{let i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function CI(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const xI=/-+([a-z0-9])/g;function EI(t){return t.replace(xI,(...t)=>t[1].toUpperCase())}function kI(t,e){return 0===t||0===e}function AI(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let s=e[0],o=[];if(r.forEach(t=>{s.hasOwnProperty(t)||o.push(t),s[t]=n[t]}),o.length)for(var i=1;i<e.length;i++){let n=e[i];o.forEach(function(e){n[e]=MI(t,e)})}}return e}function PI(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function MI(t,e){return window.getComputedStyle(t)[e]}const OI="*";function II(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}const r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=r[1],s=r[2],o=r[3];e.push(NI(i,o)),"<"!=s[0]||i==OI&&o==OI||e.push(NI(o,i))}(t,n,e)):n.push(t),n}const DI=new Set(["true","1"]),RI=new Set(["false","0"]);function NI(t,e){const n=DI.has(t)||RI.has(t),r=DI.has(e)||RI.has(e);return(i,s)=>{let o=t==OI||t==i,a=e==OI||e==s;return!o&&n&&"boolean"==typeof i&&(o=i?DI.has(t):RI.has(t)),!a&&r&&"boolean"==typeof s&&(a=s?DI.has(e):RI.has(e)),o&&a}}const HI=new RegExp("s*:selfs*,?","g");function FI(t,e,n){return new VI(t).build(e,n)}class VI{constructor(t){this._driver=t}build(t,e){const n=new GI(e);return this._resetContextStyleTimingState(n),PI(this,vI(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const i=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,r=n.name;r.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,i.push(this.visitState(n,e))}),n.name=r}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,r+=i.depCount,s.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:s,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const i=new Set,s=r||{};if(n.styles.forEach(t=>{if(LI(t)){const e=t;Object.keys(e).forEach(t=>{SI(e[t]).forEach(t=>{s.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=CI(i.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=PI(this,vI(t.animation),e);return{type:1,matchers:II(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:BI(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>PI(this,t,e)),options:BI(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const i=t.steps.map(t=>{e.currentTime=n;const i=PI(this,t,e);return r=Math.max(r,e.currentTime),i});return e.currentTime=r,{type:3,steps:i,options:BI(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return jI(pI(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=jI(0,0,"");return t.dynamic=!0,t.strValue=r,t}return n=n||pI(r,e),jI(n.duration,n.delay,n.easing)}(t.timings,e.errors);let r;e.currentAnimateTimings=n;let i=t.styles?t.styles:Wx({});if(5==i.type)r=this.visitKeyframes(i,e);else{let i=t.styles,s=!1;if(!i){s=!0;const t={};n.easing&&(t.easing=n.easing),i=Wx(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(i,e);o.isEmptyStep=s,r=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==Ux?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let r=!1,i=null;return n.forEach(t=>{if(LI(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],o=s[n];let a=!0;o&&(i!=r&&i>=o.startTime&&r<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${r}ms"`),a=!1),i=o.startTime),a&&(s[n]={startTime:i,endTime:r}),e.options&&function(t,e,n){const r=e.params||{},i=SI(t);i.length&&i.forEach(t=>{r.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const i=[];let s=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(LI(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(LI(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(r++,c=n.offset=l),o=o||c<0||c>1,s=s||c<a,a=c,i.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let u=0;r>0&&r<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(u=1/(c-1));const h=c-1,d=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return l.forEach((t,r)=>{const s=u>0?r==h?1:u*r:i[r],o=s*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=s,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:PI(this,vI(t.animation),e),options:BI(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:BI(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:BI(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[i,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(HI,"")),[t=t.replace(/@\*/g,lI).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,uI),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,$O(e.collectedStyles,e.currentQuerySelector,{});const o=PI(this,vI(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:BI(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:pI(t.timings,e.errors,!0);return{type:12,animation:PI(this,vI(t.animation),e),timings:n,options:null}}}class GI{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function LI(t){return!Array.isArray(t)&&"object"==typeof t}function BI(t){var e;return t?(t=fI(t)).params&&(t.params=(e=t.params)?fI(e):null):t={},t}function jI(t,e,n){return{duration:t,delay:e,easing:n}}function UI(t,e,n,r,i,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class $I{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const WI=new RegExp(":enter","g"),zI=new RegExp(":leave","g");function qI(t,e,n,r,i,s={},o={},a,l,c=[]){return(new XI).buildKeyframes(t,e,n,r,i,s,o,a,l,c)}class XI{buildKeyframes(t,e,n,r,i,s,o,a,l,c=[]){l=l||new $I;const u=new QI(t,e,l,r,i,c,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),PI(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[UI(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);i!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let r=e.currentTimeline.currentTime;const i=null!=n.duration?hI(n.duration):null,s=null!=n.delay?hI(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,s);r=Math.max(r,n.duration+n.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),PI(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const i=t.options;if(i&&(i.params||i.delay)&&(r=e.createSubContext(i),r.transformIntoNewTimeline(),null!=i.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=KI);const t=hI(i.delay);r.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>PI(this,t,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const i=t.options&&t.options.delay?hI(t.options.delay):0;t.steps.forEach(s=>{const o=e.createSubContext(t.options);i&&o.delayNextStep(i),PI(this,s,o),r=Math.max(r,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return pI(e.params?TI(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*i),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+i),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},i=r.delay?hI(r.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=KI);let s=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,r)=>{e.currentQueryIndex=r;const o=e.createSubContext(t.options,n);i&&o.delayNextStep(i),n===e.element&&(a=o.currentTimeline),PI(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,i=t.timings,s=Math.abs(i.duration),o=s*(e.currentQueryTotal-1);let a=s*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;PI(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}const KI={};class QI{constructor(t,e,n,r,i,s,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=KI,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new YI(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=hI(n.duration)),null!=n.delay&&(r.delay=hI(n.delay));const i=n.params;if(i){let t=r.params;t||(t=this.options.params={}),Object.keys(i).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=TI(i[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,i=new QI(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=KI,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new ZI(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,i,s){let o=[];if(r&&o.push(this.element),t.length>0){t=(t=t.replace(WI,"."+this._enterClassName)).replace(zI,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return i||0!=o.length||s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class YI{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new YI(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Ux,this._currentKeyframe[t]=Ux}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const i=r&&r.params||{},s=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]=Ux})):gI(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(s).forEach(t=>{const e=TI(s[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Ux),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],r=t._styleSummary[e];(!n||r.time>n.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((i,s)=>{const o=gI(i,!0);Object.keys(o).forEach(n=>{const r=o[n];"!"==r?t.add(n):r==Ux&&e.add(n)}),n||(o.offset=s/this.duration),r.push(o)});const i=t.size?CI(t.values()):[],s=e.size?CI(e.values()):[];if(n){const t=r[0],e=fI(t);t.offset=0,e.offset=1,r=[t,e]}return UI(this.element,r,i,s,this.duration,this.startTime,this.easing,!1)}}class ZI extends YI{constructor(t,e,n,r,i,s,o=!1){super(t,e,s.delay),this.element=e,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const i=[],s=n+e,o=e/s,a=gI(t[0],!1);a.offset=0,i.push(a);const l=gI(t[0],!1);l.offset=JI(o),i.push(l);const c=t.length-1;for(let r=1;r<=c;r++){let o=gI(t[r],!1);o.offset=JI((e+o.offset*n)/s),i.push(o)}n=s,e=0,r="",t=i}return UI(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function JI(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class tD{}class eD extends tD{normalizePropertyName(t,e){return EI(t)}normalizeStyleValue(t,e,n,r){let i="";const s=n.toString().trim();if(nD[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&r.push(`Please provide a CSS unit value for ${t}:${n}`)}return s+i}}const nD=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function rD(t,e,n,r,i,s,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const iD={};class sD{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function(t,e,n,r,i){return t.some(t=>t(e,n,r,i))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],i=this._stateStyles[t],s=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):s}build(t,e,n,r,i,s,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||iD,d=this.buildStyles(n,o&&o.params||iD,u),p=a&&a.params||iD,f=this.buildStyles(r,p,u),g=new Set,m=new Map,y=new Map,b="void"===r,_={params:Object.assign(Object.assign({},h),p)},v=c?[]:qI(t,e,this.ast.animation,i,s,d,f,_,l,u);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),u.length)return rD(e,this._triggerName,n,r,b,d,f,[],[],m,y,w,u);v.forEach(t=>{const n=t.element,r=$O(m,n,{});t.preStyleProps.forEach(t=>r[t]=!0);const i=$O(y,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&g.add(n)});const S=CI(g.values());return rD(e,this._triggerName,n,r,b,d,f,v,S,m,y,w)}}class oD{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},r=fI(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let s=i[t];s.length>1&&(s=TI(s,r,e)),n[t]=s})}}),n}}class aD{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new oD(t.style,t.options&&t.options.params||{})}),lD(this.states,"true","1"),lD(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new sD(t,e,this.states))}),this.fallbackTransition=new sD(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(i=>i.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function lD(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const cD=new $I;class uD{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],r=FI(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r}_buildPlayer(t,e,n){const r=t.element,i=LO(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],i=this._animations[t];let s;const o=new Map;if(i?(s=qI(this._driver,e,i,sI,oI,{},{},n,cD,r),s.forEach(t=>{const e=$O(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),s=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Ux)})});const a=GO(s.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,r){const i=UO(e,"","","");return BO(this._getPlayer(t),n,i,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const hD="ng-animate-queued",dD="ng-animate-disabled",pD=".ng-animate-disabled",fD=[],gD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},mD={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class yD{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(r=n?t.value:t)?r:null,n){const e=fI(t);delete e.value,this.options=e}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const bD="void",_D=new yD(bD);class vD{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,kD(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var i;const s=$O(this._elementListeners,t,[]),o={name:e,phase:n,callback:r};s.push(o);const a=$O(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(kD(t,aI),kD(t,"ng-trigger-"+e),a[e]=_D),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(o);t>=0&&s.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,r=!0){const i=this._getTrigger(e),s=new SD(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(kD(t,aI),kD(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new yD(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=_D),l.value!==bD&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){const r=n[i];if(!e.hasOwnProperty(r)||t[r]!==e[r])return!1}return!0}(a.params,l.params)){const e=[],n=i.matchStyles(a.value,a.params,e),r=i.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{_I(t,n),bI(t,r)})}return}const c=$O(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=i.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!r)return;u=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:s,isFallbackTransition:h}),h||(kD(t,hD),s.onStart(()=>{AD(t,hD)})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(s);t>=0&&n.splice(t,1)}}),this.players.push(s),c.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,lI,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,r){const i=this._engine.statesByElement.get(t);if(i){const s=[];if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,bD,r);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&GO(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const r=e.name;if(n.has(r))return;n.add(r);const i=this._triggers[r].fallbackTransition,s=this._engine.statesByElement.get(t)[r]||_D,o=new yD(bD),a=new SD(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:i,fromState:s,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)r=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const r=t.__ng_removed;r&&r!==gD||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){kD(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const i=n.element,s=this._elementListeners.get(i);s&&s.forEach(e=>{if(e.name==n.triggerName){const r=UO(i,n.triggerName,n.fromState.value,n.toState.value);r._data=t,BO(n.player,e.phase,r,e.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,r=e.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class wD{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new vD(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let r=0;r<t.length;r++){const i=n[t[r]].namespaceId;if(i){const t=this._fetchNamespace(i);t&&e.add(t)}}}return e}trigger(t,e,n,r){if(TD(e)){const i=this._fetchNamespace(t);if(i)return i.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!TD(e))return;const i=e.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const r=this._fetchNamespace(t);r&&r.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),kD(t,dD)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),AD(t,dD))}removeNode(t,e,n,r){if(TD(e)){const i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,r,i){return TD(e)?this._fetchNamespace(t).listen(e,n,r,i):()=>{}}_buildInstruction(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)}destroyInnerAnimations(t){let e=this.driver.query(t,lI,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,uI,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return GO(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=gD,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,pD)&&this.markElementAsDisabled(t,!1),this.driver.query(t,pD,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)kD(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?GO(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new $I,r=[],i=new Map,s=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=ED(h,this.collectedEnterElements),p=new Map;let f=0;d.forEach((t,e)=>{const n=sI+f++;p.set(e,n),t.forEach(t=>kD(t,n))});const g=[],m=new Set,y=new Set;for(let M=0;M<this.collectedLeaveElements.length;M++){const t=this.collectedLeaveElements[M],e=t.__ng_removed;e&&e.setForRemoval&&(g.push(t),m.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>m.add(t)):y.add(t))}const b=new Map,_=ED(h,Array.from(m));_.forEach((t,e)=>{const n=oI+f++;b.set(e,n),t.forEach(t=>kD(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>AD(t,n))}),_.forEach((t,e)=>{const n=b.get(e);t.forEach(t=>AD(t,n))}),g.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(v.push(e),this.collectedEnterElements.length){const t=i.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!u||!this.driver.containsElement(u,i),h=b.get(i),d=p.get(i),f=this._buildInstruction(t,n,d,h,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>_I(i,f.fromStyles)),e.onDestroy(()=>bI(i,f.toStyles)),void r.push(e);if(t.isFallbackTransition)return e.onStart(()=>_I(i,f.fromStyles)),e.onDestroy(()=>bI(i,f.toStyles)),void r.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,f.timelines),s.push({instruction:f,player:e,element:i}),f.queriedElements.forEach(t=>$O(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let r=l.get(e);r||l.set(e,r=new Set),n.forEach(t=>r.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,T=new Map;s.forEach(t=>{const e=t.element;n.has(e)&&(T.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{$O(S,e,[]).push(t),t.destroy()})});const C=g.filter(t=>OD(t,a,l)),x=new Map;xD(x,this.driver,y,l,Ux).forEach(t=>{OD(t,a,l)&&C.push(t)});const E=new Map;d.forEach((t,e)=>{xD(E,this.driver,new Set(t),a,"!")}),C.forEach(t=>{const e=x.get(t),n=E.get(t);x.set(t,Object.assign(Object.assign({},e),n))});const k=[],A=[],P={};s.forEach(t=>{const{element:e,player:s,instruction:o}=t;if(n.has(e)){if(c.has(e))return s.onDestroy(()=>bI(e,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void r.push(s);let t=P;if(T.size>1){let n=e;const r=[];for(;n=n.parentNode;){const e=T.get(n);if(e){t=e;break}r.push(n)}r.forEach(e=>T.set(e,t))}const n=this._buildAnimation(s.namespaceId,o,S,i,E,x);if(s.setRealPlayer(n),t===P)k.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=GO(e)),r.push(s)}}else _I(e,o.fromStyles),s.onDestroy(()=>bI(e,o.toStyles)),A.push(s),c.has(e)&&r.push(s)}),A.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=GO(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let M=0;M<g.length;M++){const t=g[M],e=t.__ng_removed;if(AD(t,oI),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let r=this.driver.query(t,uI,!0);for(let t=0;t<r.length;t++){let e=o.get(r[t]);e&&e.length&&n.push(...e)}}const r=n.filter(t=>!t.destroyed);r.length?PD(this,t,r):this.processLeaveNode(t)}return g.length=0,k.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),k}elementContainsData(t,e){let n=!1;const r=e.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,i){let s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||i==bD;e.forEach(e=>{e.queued||(t||e.triggerName==r)&&s.push(e)})}}return(n||r)&&(s=s.filter(t=>!(n&&n!=t.namespaceId||r&&r!=t.triggerName))),s}_beforeAnimationBuild(t,e,n){const r=e.element,i=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==r,l=$O(n,t,[]);this._getPreviousPlayers(t,a,i,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}_I(r,e.fromStyles)}_buildAnimation(t,e,n,r,i,s){const o=e.triggerName,a=e.element,l=[],c=new Set,u=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new qx(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return MD(t,e),e}((n.get(h)||fD).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=i.get(h),m=s.get(h),y=LO(0,this._normalizer,0,e.keyframes,g,m),b=this._buildPlayer(e,y,f);if(e.subTimeline&&r&&u.add(h),p){const e=new SD(t,o,h);e.setRealPlayer(b),l.push(e)}return b});l.forEach(t=>{$O(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>kD(t,cI));const d=GO(h);return d.onDestroy(()=>{c.forEach(t=>AD(t,cI)),bI(a,e.toStyles)}),u.forEach(t=>{$O(r,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new qx(t.duration,t.delay)}}class SD{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new qx,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>BO(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){$O(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function TD(t){return t&&1===t.nodeType}function CD(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function xD(t,e,n,r,i){const s=[];n.forEach(t=>s.push(CD(t)));const o=[];r.forEach((n,r)=>{const s={};n.forEach(t=>{const n=s[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r.__ng_removed=mD,o.push(r))}),t.set(r,s)});let a=0;return n.forEach(t=>CD(t,s[a++])),o}function ED(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const r=new Set(e),i=new Map;function s(t){if(!t)return 1;let e=i.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:r.has(o)?1:s(o),i.set(t,e),e}return e.forEach(t=>{const e=s(t);1!==e&&n.get(e).push(t)}),n}function kD(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function AD(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function PD(t,e,n){GO(n).onDone(()=>t.processLeaveNode(e))}function MD(t,e){for(let n=0;n<t.length;n++){const r=t[n];r instanceof Xx?MD(r.players,e):e.push(r)}}function OD(t,e,n){const r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(t=>i.add(t)):e.set(t,r),n.delete(t),!0}class ID{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new wD(t,e,n),this._timelineEngine=new uD(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,r,i){const s=t+"-"+r;let o=this._triggerCache[s];if(!o){const t=[],e=FI(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new aD(t,e)}(r,e),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,r,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[t,i]=WO(n);this._timelineEngine.command(t,e,i,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,i){if("@"==n.charAt(0)){const[t,r]=WO(n);return this._timelineEngine.listen(t,e,r,i)}return this._transitionEngine.listen(t,e,n,r,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function DD(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=ND(e[0]),e.length>1&&(r=ND(e[e.length-1]))):e&&(n=ND(e)),n||r?new RD(t,n,r):null}let RD=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&bI(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(bI(this._element,this._initialStyles),this._endStyles&&(bI(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(_I(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(_I(this._element,this._endStyles),this._endStyles=null),bI(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function ND(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const i=n[r];HD(i)&&(e=e||{},e[i]=t[i])}return e}function HD(t){return"display"===t||"position"===t}const FD="animation",VD="animationend";class GD{constructor(t,e,n,r,i,s,o){this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=i,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=WD(t,"").trim();n.length&&(function(t,e){let n=0;for(let r=0;r<t.length;r++)","===t.charAt(r)&&n++}(n),e=`${n}, ${e}`),$D(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),UD(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){LD(this._element,this._name,"paused")}resume(){LD(this._element,this._name,"running")}setPosition(t){const e=BD(this._element,this._name);this._position=t*this._duration,$D(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),UD(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=WD(t,"").split(","),r=jD(n,e);r>=0&&(n.splice(r,1),$D(t,"",n.join(",")))}(this._element,this._name))}}function LD(t,e,n){$D(t,"PlayState",n,BD(t,e))}function BD(t,e){const n=WD(t,"");return n.indexOf(",")>0?jD(n.split(","),e):jD([n],e)}function jD(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function UD(t,e,n){n?t.removeEventListener(VD,e):t.addEventListener(VD,e)}function $D(t,e,n,r){const i=FD+e;if(null!=r){const e=t.style[i];if(e.length){const t=e.split(",");t[r]=n,n=t.join(",")}}t.style[i]=n}function WD(t,e){return t.style[FD+e]}class zD{constructor(t,e,n,r,i,s,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=r+i,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new GD(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:MI(this.element,n))})}this.currentSnapshot=t}}class qD extends qx{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=nI(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class XD{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return ZO(t)}matchesElement(t,e){return JO(t,e)}containsElement(t,e){return tI(t,e)}query(t,e,n){return eI(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>nI(t));let r=`@keyframes ${e} {\n`,i="";n.forEach(t=>{i=" ";const e=parseFloat(t.offset);r+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=`${i}animation-timing-function: ${n};\n`));default:return void(r+=`${i}${e}: ${n};\n`)}}),r+=i+"}\n"}),r+="}\n";const s=document.createElement("style");return s.textContent=r,s}animate(t,e,n,r,i,s=[],o){o&&this._notifyFaultyScrubber();const a=s.filter(t=>t instanceof zD),l={};kI(n,r)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=AI(t,e,l));if(0==n)return new qD(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=DD(t,e),p=new zD(t,e,u,n,r,i,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class KD{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:MI(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class QD{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(YD().toString()),this._cssKeyframesDriver=new XD}validateStyleProperty(t){return ZO(t)}matchesElement(t,e){return JO(t,e)}containsElement(t,e){return tI(t,e)}query(t,e,n){return eI(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,r,i,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,s);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);const l={},c=s.filter(t=>t instanceof KD);kI(n,r)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=DD(t,e=AI(t,e=e.map(t=>gI(t,!1)),l));return new KD(t,e,a,u)}}function YD(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let ZD=(()=>{class t extends jx{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ue.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?$x(t):t;return eR(this._renderer,null,e,"register",[n]),new JD(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Kt(uc),Kt(yh))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class JD extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new tR(this._id,t,e||{},this._renderer)}}class tR{constructor(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return eR(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function eR(t,e,n,r,i){return t.setProperty(e,`@@${n}:${r}`,i)}const nR="@",rR="@.disabled";let iR=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new sR("",n,this.engine),this._rendererCache.set(n,t)),t}const r=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(r,i,t,e.name,e)};return e.data.animation.forEach(s),new oR(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Kt(uc),Kt(ID),Kt(Lu))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();class sR{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,r=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==nR&&e==rR?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class oR extends sR{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==nR?"."==e.charAt(1)&&e==rR?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==nR){const r=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),s="";return i.charAt(0)!=nR&&([i,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,r,i,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let aR=(()=>{class t extends ID{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(yh),Kt(iI),Kt(tD))},t.\u0275prov=ut({token:t,factory:t.\u0275fac}),t})();const lR=[{provide:iI,useFactory:function(){return"function"==typeof YD()?new QD:new XD}},{provide:new Vt("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:jx,useClass:ZD},{provide:tD,useFactory:function(){return new eD}},{provide:ID,useClass:aR},{provide:uc,useFactory:function(t,e,n){return new iR(t,e,n)},deps:[Jd,ID,Lu]}];let cR=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},providers:lR,imports:[pp]}),t})();function uR(t){const e=new aC.Renderer;return e.table=(e,n)=>t.getStyle("table",[e,n]),e.image=(e,n,r)=>t.getStyle("image",[e,n,r]),e.listitem=e=>t.getStyle("listitem",[e]),{renderer:e,gfm:!0,breaks:!1,pedantic:!1,smartLists:!0,smartypants:!1}}let hR=(()=>{class t{constructor(){}}return t.\u0275mod=be({type:t,bootstrap:[Rx]}),t.\u0275inj=ht({factory:function(e){return new(e||t)},providers:[{provide:Lx,useValue:{coreLibraryLoader:()=>n.e(4).then(n.t.bind(null,"ECCn",7)),lineNumbersLoader:()=>n.e(11).then(n.t.bind(null,"gPJM",7)),languages:{typescript:()=>n.e(9).then(n.t.bind(null,"r0Rl",7)),javascript:()=>n.e(7).then(n.t.bind(null,"TdF3",7)),xml:()=>n.e(10).then(n.t.bind(null,"jctj",7)),css:()=>n.e(5).then(n.t.bind(null,"7oys",7)),java:()=>n.e(6).then(n.t.bind(null,"My+Z",7)),markdown:()=>n.e(8).then(n.t.bind(null,"BLBw",7))}}}],imports:[[ET,pp,jC,Kb,Gx.forRoot(),fC.forRoot({loader:hT,markedOptions:{provide:cC,useFactory:uR,deps:[zS]}}),Bx,IS,FO,pp,cR]]}),t})();!function(){if(Br)throw new Error("Cannot enable prod mode after platform setup.");Lr=!1}(),window&&(window.console.log=window.console.warn=window.console.info=window.console.debug=()=>{}),hp().bootstrapModule(hR).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);